/* ── VARIABLES ── */
:root {
    --bg:           #0a0a0a;
    --bg-alt:       #101010;
    --surface:      #191919;
    --surface-2:    #222222;
    --accent:       #e63946;
    --accent-2:     #c1121f;
    --text:         #f0ece4;
    --text-muted:   #888888;
    --border:       #2a2a2a;
    --radius:       10px;
    --ease:         0.25s ease;
    --nav-h:        64px;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ── NAV ── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--ease);
}
.navbar.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.5); }

.nav-logo {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
}

.nav-links { display: flex; gap: 1.75rem; }
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color var(--ease);
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}
.nav-links a:hover {
    color: var(--text);
    border-bottom-color: var(--accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    padding: calc(var(--nav-h) + 3rem) 2rem 6rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(10px) brightness(0.25);
    transform: scale(1.12);
    z-index: 0;
}

.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(10,10,10,0.2) 0%, rgba(10,10,10,0.7) 60%, var(--bg) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;            /* both columns top-aligned */
    gap: 4rem;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.hero-portrait {
    display: flex;
    justify-content: center;
    position: sticky;
    top: calc(var(--nav-h) + 2rem); /* image follows scroll, stays visible while reading bio */
    align-self: start;
}

.hero-avatar {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 4 / 5;           /* portrait — feels like a poster, not a thumbnail */
    height: auto;
    border-radius: 18px;
    object-fit: cover;
    border: 4px solid var(--accent);
    box-shadow:
        0 30px 80px rgba(230,57,70,0.32),
        0 0 0 1px rgba(0,0,0,.4),
        0 0 120px rgba(230,57,70,0.18);
}

.hero-avatar-placeholder {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 4 / 5;
    border-radius: 18px;
    background: var(--surface);
    border: 3px dashed rgba(230,57,70,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: rgba(230,57,70,0.35);
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 0.95;
    margin-bottom: .25rem;
}

.hero-genre {
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    margin-top: .25rem;
}

.hero-location {
    font-size: 0.92rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: .5rem;
}
.hero-location i { color: var(--accent); }

.hero-bio {
    color: rgba(240,236,228,0.85);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-top: .5rem;
}
.hero-bio p {
    margin-bottom: 1.1rem;
}
.hero-bio p:last-child { margin-bottom: 0; }
/* When bio is rendered with raw <br> from nl2br, simulate paragraph spacing */
.hero-bio br + br { content: ""; display: block; margin-top: 1rem; }

.hero-scroll {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}
.hero-scroll a {
    color: var(--text-muted);
    font-size: 1.2rem;
    text-decoration: none;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ── SECTIONS ── */
.section { padding: 5rem 2rem; }
.section-alt { background: var(--bg-alt); }

.container { max-width: 1100px; margin: 0 auto; }

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 50px; height: 3px;
    background: var(--accent);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.empty-msg {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    padding: 3rem 1rem;
}
.empty-msg a { color: var(--accent); text-decoration: underline; }
.empty-msg a:hover { color: var(--accent-2); }

/* ── MUSIC PLAYER ── */
.music-player {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
}

.player-main {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.player-cover {
    position: relative;
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-2);
}
.cover-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: none;
}
.cover-img.loaded { display: block; }
.cover-placeholder {
    position: absolute; inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
}

.player-meta { text-align: center; }
.player-title {
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.player-album { color: var(--text-muted); font-size: 0.85rem; margin-top: 2px; }

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.ctrl-btn {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1rem;
    transition: color var(--ease), transform var(--ease);
    line-height: 1;
    padding: 4px;
}
.ctrl-btn:hover { color: var(--accent); transform: scale(1.1); }

.play-btn {
    width: 54px; height: 54px;
    border-radius: 50%;
    background: var(--accent) !important;
    color: #fff !important;
    font-size: 1.15rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--ease), transform var(--ease) !important;
    box-shadow: 0 4px 20px rgba(230,57,70,0.4);
}
.play-btn:hover { background: var(--accent-2) !important; transform: scale(1.06) !important; }

.player-progress {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

input[type=range] {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    transition: transform var(--ease);
}
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.3); }

.player-volume {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Playlist */
.playlist {
    max-height: 370px;
    overflow-y: auto;
    border-radius: var(--radius);
    padding-right: 4px;
}
.playlist::-webkit-scrollbar { width: 5px; }
.playlist::-webkit-scrollbar-track { background: transparent; }
.playlist::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.playlist-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.7rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background var(--ease);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.playlist-item:hover { background: var(--surface-2); }
.playlist-item.active { background: var(--surface-2); }
.playlist-item.active .t-title { color: var(--accent); }

.t-num { color: var(--text-muted); font-size: 0.8rem; min-width: 18px; text-align: center; }
.playlist-item.active .t-num { display: none; }
.t-playing { display: none; color: var(--accent); font-size: 0.8rem; }
.playlist-item.active .t-playing { display: inline; }

.t-info { flex: 1; min-width: 0; }
.t-title { display: block; font-size: 0.92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color var(--ease); }
.t-album { display: block; font-size: 0.78rem; color: var(--text-muted); }
.t-dur { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; }

/* ── VIDEO PLAYER ── */
.video-section {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.5rem;
    align-items: start;
}

.video-main {}

.video-wrapper {
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/9;
    position: relative;
}
.video-wrapper video,
.video-wrapper iframe {
    width: 100%; height: 100%;
    display: block;
    border: none;
}

.video-meta { padding: 1rem 0 0; }
.video-meta h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.video-meta p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }

.video-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}
.video-list::-webkit-scrollbar { width: 5px; }
.video-list::-webkit-scrollbar-track { background: transparent; }
.video-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.video-item {
    display: flex;
    gap: 0.6rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color var(--ease), background var(--ease);
}
.video-item:hover, .video-item.active { border-color: var(--accent); background: var(--surface-2); }

.vi-thumb {
    position: relative;
    width: 90px;
    flex-shrink: 0;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
}
.vi-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vi-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text-muted); }
.vi-play {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    transition: opacity var(--ease);
    font-size: 1.4rem;
    color: #fff;
}
.video-item:hover .vi-play { opacity: 1; }

.vi-info { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; }
.vi-title { font-size: 0.82rem; font-weight: 600; line-height: 1.3; }
.vi-badge { font-size: 0.72rem; color: var(--accent); }

/* ── SHOWS ── */
.shows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.show-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color var(--ease), transform var(--ease);
}
.show-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.show-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--accent);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    width: fit-content;
    min-width: 65px;
    text-align: center;
}
.sd-month { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; opacity: 0.9; }
.sd-day { font-size: 2.1rem; font-weight: 900; line-height: 1; }
.sd-year { font-size: 0.72rem; opacity: 0.85; }

.show-info { flex: 1; }
.show-venue { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.show-loc, .show-time { font-size: 0.87rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.35rem; margin-top: 0.25rem; }

.ticket-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background var(--ease);
}
.ticket-btn:hover { background: var(--accent-2); }
.ticket-free {
    background: var(--surface-2);
    color: var(--text-muted);
    cursor: default;
    pointer-events: none;
}

/* ── GALLERY ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
    background: var(--surface);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-overlay {
    position: absolute; inset: 0;
    background: rgba(230,57,70,0.65);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    opacity: 0;
    transition: opacity var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ── LIGHTBOX ── */
.lightbox {
    position: fixed; inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.96);
    display: none;
    align-items: center;
    justify-content: center;
}
.lightbox.open { display: flex; }

.lb-content { max-width: 90vw; max-height: 90vh; text-align: center; }
.lb-content img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 6px; }
.lb-content p { color: var(--text-muted); margin-top: 0.75rem; font-size: 0.9rem; }

.lb-close, .lb-nav {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 1rem;
    padding: 0.7rem;
    border-radius: 50%;
    line-height: 1;
    transition: background var(--ease);
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,0.25); }
.lb-close { top: 1.25rem; right: 1.25rem; }
.lb-prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.25rem; top: 50%; transform: translateY(-50%); }

/* ── SOCIAL ── */
.social-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.4rem 1.8rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: var(--surface);
    border: 1px solid var(--border);
    min-width: 105px;
    transition: transform var(--ease), border-color var(--ease), background var(--ease), color var(--ease);
}
.social-card i { font-size: 1.7rem; margin-bottom: 0.1rem; }
.social-card:hover { transform: translateY(-5px); color: #fff; }

.social-instagram:hover  { background: linear-gradient(135deg,#833ab4,#fd1d1d,#fcb045); border-color: #fd1d1d; }
.social-spotify:hover    { background: #1db954; border-color: #1db954; }
.social-youtube:hover    { background: #ff0000; border-color: #ff0000; }
.social-tiktok:hover     { background: #010101; border-color: #69c9d0; }
.social-facebook:hover   { background: #1877f2; border-color: #1877f2; }
.social-twitter:hover    { background: #1da1f2; border-color: #1da1f2; }
.social-x-twitter:hover  { background: #111; border-color: #fff; }
.social-soundcloud:hover { background: #ff5500; border-color: #ff5500; }
.social-apple:hover      { background: #fc3c44; border-color: #fc3c44; }
.social-bandcamp:hover   { background: #1da0c3; border-color: #1da0c3; }
.social-twitch:hover     { background: #6441a4; border-color: #6441a4; }
.social-patreon:hover    { background: #ff424d; border-color: #ff424d; }

/* ── FOOTER ── */
.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 1.75rem 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.admin-link { color: var(--text-muted); text-decoration: none; font-size: 0.78rem; transition: color var(--ease); }
.admin-link:hover { color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .video-section { grid-template-columns: 1fr; }
    .video-list { flex-direction: row; flex-wrap: wrap; max-height: none; overflow: visible; }
    .video-item { flex: 1 1 180px; flex-direction: column; }
    .vi-thumb { width: 100%; aspect-ratio: 16/9; }
    .music-player { grid-template-columns: 1fr; }
    .playlist { max-height: 250px; }

    /* Stack hero: portrait above, text below (centered) */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 600px;
    }
    .hero { text-align: center; padding: calc(var(--nav-h) + 1.5rem) 1.25rem 3rem; }
    .hero-text { text-align: center; align-items: center; }
    .hero-location { justify-content: center; }
    .hero-portrait {
        order: -1;                    /* pic above the text */
        position: static;             /* no sticky on mobile — would block the scroll */
        align-self: auto;
    }
    .hero-avatar, .hero-avatar-placeholder {
        max-width: 320px;
        aspect-ratio: 1;              /* square on mobile feels more like an avatar */
    }
    .hero-bio { font-size: .98rem; }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-h); left: 0; right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(10,10,10,0.97);
        border-bottom: 1px solid var(--border);
        padding: 1rem 0;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 0.8rem 2rem; font-size: 0.88rem; border-bottom: none !important; }
    .hamburger { display: flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .shows-grid { grid-template-columns: 1fr; }
    .lb-prev { left: 0.5rem; }
    .lb-next { right: 0.5rem; }

    /* iOS auto-zoom fix — every focusable text input must be ≥16px on mobile */
    input[type="text"],
    input[type="email"],
    input[type="url"],
    input[type="search"],
    input[type="number"],
    input[type="password"],
    input[type="tel"],
    input[type="date"],
    input[type="datetime-local"],
    input[type="time"],
    textarea,
    select { font-size: 16px !important; }

    /* Lightbox controls — keep clear of iOS Safari URL bar */
    .lb-close { top: max(1rem, env(safe-area-inset-top)); }
}
