/*
 * @file site/style.css
 * @description Club Glo / mridge.studio marketing site — Material 3–aligned surfaces, roles, and motion
 *   (same token sheet as stream overlays: `/tokens-m3.css`). Legacy var names bridged for existing markup.
 */
@import url('/tokens-m3.css');

:root {
    /* Bridge legacy markup (inline styles + old classes) to M3 roles */
    --mint-green: var(--md-sys-color-primary);
    --twitch-cyan: var(--md-sys-color-primary);
    --discord-purple: var(--md-sys-color-secondary);
    --text-white: var(--md-sys-color-on-surface);
    --bg-black: var(--md-sys-color-surface);
    --panel-rgba: color-mix(in srgb, var(--md-sys-color-surface-container-high) 92%, transparent);
    --border-glow: var(--md-sys-elevation-2);
    /* Platform brand (outside M3 palette) */
    --brand-soundcloud: #ff5500;
    --site-content-max: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

body {
    background-color: var(--md-sys-color-surface);
    background-image: linear-gradient(
            color-mix(in srgb, var(--md-sys-color-surface) 78%, transparent),
            color-mix(in srgb, var(--md-sys-color-surface) 88%, transparent)
        ),
        url('assets/bg.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: var(--md-sys-color-on-surface);
    font-family: 'Rajdhani', system-ui, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 900;
}

/* --- LAYOUT --- */
.container {
    max-width: var(--site-content-max);
    margin: 0 auto;
    padding: 20px;
}

/* --- HEADER HERO --- */
.hero {
    text-align: center;
    padding: 40px 20px 20px;
}

.logo-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.brand-logo {
    max-width: 400px;
    max-height: 300px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 2px 8px color-mix(in srgb, var(--md-sys-color-primary) 35%, transparent));
    transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1);
    object-fit: contain;
}

.brand-logo:hover {
    transform: scale(1.03);
}

.logo-divider {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--md-sys-color-on-surface-variant);
    opacity: 0.85;
}

/* --- DRAWER LAYOUT (M3 navigation rail + pane) --- */
.drawer-container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 70vh;
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--md-sys-shape-corner-large);
    background: color-mix(in srgb, var(--md-sys-color-surface-container-low) 88%, transparent);
    box-shadow: var(--md-sys-elevation-2);
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.drawer-nav {
    flex: 0 0 250px;
    width: 250px;
    border-right: 1px solid var(--md-sys-color-outline-variant);
    display: flex;
    flex-direction: column;
    background: color-mix(in srgb, var(--md-sys-color-surface-container) 94%, transparent);
    z-index: 10;
}

.drawer-group {
    display: flex;
    flex-direction: column;
}

.drawer-group + .drawer-group {
    border-top: 1px solid var(--md-sys-color-outline-variant);
}

.drawer-group-label {
    padding: 12px 16px 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--md-sys-color-on-surface-variant);
    opacity: 0.85;
    background: color-mix(in srgb, var(--md-sys-color-surface-container-high) 80%, transparent);
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.drawer-tab {
    padding: 22px 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--md-sys-color-on-surface-variant);
    cursor: pointer;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    transition: background-color 0.2s cubic-bezier(0.2, 0, 0, 1), color 0.2s ease, box-shadow 0.2s ease;
    text-align: right;
}

.drawer-tab:hover {
    background: color-mix(in srgb, var(--md-sys-color-on-surface) 6%, transparent);
    color: var(--md-sys-color-on-surface);
}

.drawer-tab.active {
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    box-shadow: inset 4px 0 0 var(--md-sys-color-primary);
}

.drawer-content-area {
    flex-grow: 1;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px 28px;
    background: color-mix(in srgb, var(--md-sys-color-surface-container-lowest) 70%, transparent);
}

.drawer-content-area::-webkit-scrollbar {
    width: 10px;
}
.drawer-content-area::-webkit-scrollbar-track {
    background: var(--md-sys-color-surface-container-low);
}
.drawer-content-area::-webkit-scrollbar-thumb {
    background: var(--md-sys-color-outline);
    border-radius: var(--md-sys-shape-corner-full);
}

.drawer-panel {
    display: none;
    animation: panelEnter 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.drawer-panel.active {
    display: block;
}

@keyframes panelEnter {
    from {
        opacity: 0;
        transform: translateX(12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .drawer-container {
        flex-direction: column;
        height: auto;
        max-height: 80vh;
    }
    .drawer-nav {
        width: 100%;
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid var(--md-sys-color-outline-variant);
        overflow-x: auto;
        gap: 8px;
        padding: 6px 8px;
    }
    .drawer-group {
        flex-direction: row;
        gap: 6px;
    }
    .drawer-group + .drawer-group {
        border-top: none;
        border-left: 1px solid var(--md-sys-color-outline-variant);
        padding-left: 8px;
    }
    .drawer-group-label {
        display: none;
    }
    .drawer-tab {
        flex: 0 0 auto;
        text-align: center;
        padding: 14px 10px;
        font-size: 0.75rem;
        white-space: nowrap;
        border: 1px solid var(--md-sys-color-outline-variant);
        border-radius: var(--md-sys-shape-corner-small);
        border-bottom: 1px solid var(--md-sys-color-outline-variant);
    }
    .drawer-tab.active {
        box-shadow: inset 0 -3px 0 var(--md-sys-color-primary);
    }
}

.section-accent {
    position: relative;
    padding: 20px;
}

.section-accent::before,
.section-accent::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--md-sys-color-outline);
    border-style: solid;
    opacity: 0.45;
}

.section-accent::before {
    top: 0;
    left: 0;
    border-width: 2px 0 0 2px;
    border-radius: var(--md-sys-shape-corner-extra-small) 0 0 0;
}
.section-accent::after {
    bottom: 0;
    right: 0;
    border-width: 0 2px 2px 0;
    border-radius: 0 0 var(--md-sys-shape-corner-extra-small) 0;
}

/* Subtle scanline — toned vs. full cyber overlay so M3 surfaces stay readable */
body::before {
    content: ' ';
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.12) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.015), rgba(0, 0, 255, 0.03));
    z-index: 9999;
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
    opacity: 0.22;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

.staff-name:hover,
.item-name:hover {
    animation: glitch 0.2s infinite;
    color: var(--md-sys-color-primary);
}

.staff-role {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--md-sys-color-on-surface-variant);
}

.item-desc {
    font-size: 0.95rem;
    color: var(--md-sys-color-on-surface-variant);
}

/* --- STAFF CARDS — M3 filled tonal cards --- */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.staff-card {
    display: flex;
    flex-direction: row;
    background: color-mix(in srgb, var(--md-sys-color-surface-container-high) 96%, transparent);
    min-height: 190px;
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--md-sys-shape-corner-medium);
    box-shadow: var(--md-sys-elevation-1);
    transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}

.staff-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--md-sys-elevation-3);
    border-color: color-mix(in srgb, var(--md-sys-color-primary) 45%, var(--md-sys-color-outline-variant));
}

.staff-photo-container {
    width: 50%;
    height: 100%;
    overflow: hidden;
    background: var(--md-sys-color-surface-container-lowest);
}

.staff-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.staff-info {
    width: 50%;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--md-sys-color-on-surface);
}

.staff-name {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--md-sys-color-primary);
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    padding-bottom: 6px;
    width: 100%;
}

.staff-role {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--md-sys-color-on-surface-variant);
    line-height: 1.35;
    white-space: pre-line;
}

.support-card {
    grid-column: 1 / -1;
    max-width: 800px;
    margin: 0 auto;
    min-height: 260px;
}

.support-photo-container {
    width: 50%;
}

/* The paired-card side panels are only 25% wide — far tighter than a normal card's
   info column — so a longer name ("FERROUS") overflows at the standard 1.2rem. */
.support-info-left .staff-name,
.support-info-right .staff-name {
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.support-info-left,
.support-info-right {
    width: 25%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--md-sys-color-on-surface);
}

/* --- MENU --- */
.menu-section {
    background: color-mix(in srgb, var(--md-sys-color-surface-container) 95%, transparent);
    padding: 28px;
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--md-sys-shape-corner-large);
    box-shadow: var(--md-sys-elevation-1);
    position: relative;
}

.menu-section::before {
    content: '';
    position: absolute;
    inset: -1px;
    border: 1px solid color-mix(in srgb, var(--md-sys-color-primary) 20%, transparent);
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.5;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.menu-item {
    background: var(--md-sys-color-surface-container-low);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--md-sys-shape-corner-medium);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--md-sys-elevation-0);
    transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s ease, border-color 0.2s ease;
    min-width: 0;
}

.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--md-sys-elevation-2);
    border-color: color-mix(in srgb, var(--md-sys-color-primary) 35%, var(--md-sys-color-outline-variant));
}

.menu-item-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.menu-item-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    border-bottom: 1px dashed var(--md-sys-color-outline);
    margin-bottom: 10px;
    padding-bottom: 8px;
}

.item-name {
    font-weight: 700;
    color: var(--md-sys-color-primary);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.04em;
    font-size: 0.95rem;
}

.item-price {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    color: var(--md-sys-color-on-primary-container);
    background: var(--md-sys-color-primary-container);
    padding: 2px 10px;
    border-radius: var(--md-sys-shape-corner-full);
}

.item-desc {
    font-size: 0.9rem;
    color: var(--md-sys-color-on-surface-variant);
}

/* --- SOCIAL (M3 text buttons + brand accents) --- */
.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.social-btn {
    padding: 12px 28px;
    text-decoration: none;
    color: var(--md-sys-color-on-surface);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    border: 1px solid var(--md-sys-color-outline);
    border-radius: var(--md-sys-shape-corner-full);
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    background: color-mix(in srgb, var(--md-sys-color-surface-container-highest) 55%, transparent);
}

.social-btn:focus-visible {
    outline: 2px solid var(--md-sys-color-primary);
    outline-offset: 3px;
}

.btn-twitch {
    border-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-primary);
}
.btn-twitch:hover {
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    border-color: var(--md-sys-color-primary);
    box-shadow: var(--md-sys-elevation-1);
}

.btn-discord {
    border-color: var(--md-sys-color-secondary);
    color: var(--md-sys-color-secondary);
}
.btn-discord:hover {
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
    border-color: var(--md-sys-color-secondary);
    box-shadow: var(--md-sys-elevation-1);
}

.btn-soundcloud {
    border-color: var(--brand-soundcloud);
    color: var(--brand-soundcloud);
}
.btn-soundcloud:hover {
    background: color-mix(in srgb, var(--brand-soundcloud) 22%, var(--md-sys-color-surface-container-high));
    color: var(--md-sys-color-on-surface);
    border-color: var(--brand-soundcloud);
    box-shadow: var(--md-sys-elevation-1);
}

/* --- VENUE ADDRESS COPY --- */
.venue-teleport {
    margin-top: 20px;
    padding: 14px;
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--md-sys-shape-corner-medium);
    background: color-mix(in srgb, var(--md-sys-color-surface-container-low) 90%, transparent);
}

.venue-teleport-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 8px;
}

.venue-teleport-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.venue-address {
    flex: 1;
    min-width: 0;
    font-family: 'Rajdhani', system-ui, sans-serif;
    font-size: 1rem;
    padding: 8px 10px;
    border-radius: var(--md-sys-shape-corner-small);
    border: 1px solid var(--md-sys-color-outline-variant);
    background: var(--md-sys-color-surface-container-high);
    color: var(--md-sys-color-on-surface);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copy-address-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--md-sys-color-outline);
    border-radius: var(--md-sys-shape-corner-small);
    background: var(--md-sys-color-surface-container-high);
    color: var(--md-sys-color-primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.copy-address-btn:hover {
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    border-color: var(--md-sys-color-primary);
}

.copy-address-btn:focus-visible {
    outline: 2px solid var(--md-sys-color-primary);
    outline-offset: 2px;
}

.copy-venue-feedback {
    min-height: 1.2em;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--md-sys-color-primary);
}

/* --- DJ ABOUT BLURB --- */
.dj-about-title {
    font-size: 1.2rem;
    line-height: 1.4;
    color: var(--md-sys-color-primary);
    font-weight: 700;
    margin-bottom: 20px;
}

.dj-about-section + .dj-about-section {
    margin-top: 26px;
}

.dj-about-heading {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--md-sys-color-on-surface);
    letter-spacing: 0.08em;
}

.dj-about-copy {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 14px;
}

/* --- PUBLIC EVENTS --- */
.events-panel-title {
    color: var(--md-sys-color-on-surface);
    margin-bottom: 10px;
    font-size: 1.75rem;
    letter-spacing: 0.1em;
}

.events-panel-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    margin-top: 10px;
    border-radius: var(--md-sys-shape-corner-full);
    background: var(--md-sys-color-primary);
}

.events-panel-sub {
    font-size: 0.95rem;
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 28px;
    max-width: 720px;
    line-height: 1.55;
}

.events-state {
    padding: 16px 20px;
    margin-bottom: 16px;
    border: 1px solid var(--md-sys-color-outline-variant);
    background: var(--md-sys-color-surface-container-low);
    border-radius: var(--md-sys-shape-corner-medium);
    color: var(--md-sys-color-on-surface-variant);
}

.events-error {
    border-color: var(--md-sys-color-error);
    background: var(--md-sys-color-error-container);
    color: var(--md-sys-color-on-error-container);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.event-card {
    background: var(--md-sys-color-surface-container-low);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--md-sys-shape-corner-medium);
    overflow: hidden;
    box-shadow: var(--md-sys-elevation-1);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.event-card:hover {
    box-shadow: var(--md-sys-elevation-2);
    border-color: color-mix(in srgb, var(--md-sys-color-primary) 28%, var(--md-sys-color-outline-variant));
}

.event-card-media {
    aspect-ratio: 16 / 10;
    background: var(--md-sys-color-surface-container-highest);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.event-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card-media--empty {
    color: var(--md-sys-color-on-surface-variant);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.event-card-body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.event-card-date {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    color: var(--md-sys-color-primary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-card-title {
    font-size: 1.1rem;
    color: var(--md-sys-color-on-surface);
    margin: 0;
    line-height: 1.35;
    font-weight: 800;
}

.event-card-venue {
    font-size: 0.9rem;
    color: var(--md-sys-color-secondary);
    font-weight: 600;
}

.event-card-loc {
    font-size: 0.85rem;
    color: var(--md-sys-color-on-surface-variant);
    margin: 0;
}

.event-card-desc {
    font-size: 0.82rem;
    color: var(--md-sys-color-on-surface-variant);
    line-height: 1.45;
    margin-top: 6px;
    white-space: pre-wrap;
    max-height: 8rem;
    overflow-y: auto;
}

/* --- VENUE PARTNERS --- */
.partners-grid {
    display: grid;
    /* Narrow enough that the drawer's ~517px content area still gets two columns —
       ten partners should scan in a few rows, not ten full-width blocks. */
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
}

.partner-card {
    background: var(--md-sys-color-surface-container-low);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--md-sys-shape-corner-medium);
    overflow: hidden;
    box-shadow: var(--md-sys-elevation-1);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.partner-card:hover {
    box-shadow: var(--md-sys-elevation-2);
    border-color: color-mix(in srgb, var(--md-sys-color-primary) 28%, var(--md-sys-color-outline-variant));
}

.partner-card--active {
    border-color: color-mix(in srgb, var(--md-sys-color-primary) 40%, var(--md-sys-color-outline-variant));
}

/* Fixed height rather than an aspect ratio: partner logos vary wildly in native
   size (500px square up to 4000px square), and a ratio box lets them balloon
   whenever the column is wide. This caps every logo to the same band. */
.partner-card-media {
    height: 132px;
    background: var(--md-sys-color-surface-container-highest);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 12px;
}

.partner-card-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.partner-card-media--empty {
    color: var(--md-sys-color-on-surface-variant);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: uppercase;
}

.partner-card-body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.partner-card-status {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--md-sys-color-on-surface-variant);
}

.partner-card-status--on {
    color: var(--md-sys-color-primary);
}

.partner-card-title {
    font-size: 0.95rem;
    color: var(--md-sys-color-on-surface);
    margin: 0;
    line-height: 1.3;
    font-weight: 800;
    /* Long single-word venue names ("Resurrection") must not spill the narrow card. */
    overflow-wrap: anywhere;
}

.partner-card-genres {
    font-size: 0.82rem;
    color: var(--md-sys-color-secondary);
    font-weight: 600;
    margin: 0;
}

.partner-card-blurb {
    font-size: 0.85rem;
    color: var(--md-sys-color-on-surface-variant);
    line-height: 1.5;
    margin: 0;
}

.partner-card-addr {
    font-family: 'Fira Code', monospace;
    font-size: 0.74rem;
    color: var(--md-sys-color-on-surface-variant);
    margin: 0;
    word-break: break-word;
}

.partner-card-cta {
    margin-top: auto;
    align-self: flex-start;
    font-size: 0.75rem;
}

/* --- LIVE BAND (Twitch embed; live-only player, offline strip otherwise) --- */
.live-band {
    padding-top: 0;
    padding-bottom: 10px;
}

/* While live the header yields room so the player sits near the fold. */
body[data-stream-live="1"] .hero {
    padding: 18px 20px 0;
}

body[data-stream-live="1"] .logo-display {
    gap: 24px;
    margin-bottom: 0;
}

body[data-stream-live="1"] .brand-logo {
    max-width: 200px;
    max-height: 110px;
}

body[data-stream-live="1"] .social-links {
    margin-top: 12px !important;
}

.live-offline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 12px 18px;
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--md-sys-shape-corner-large);
    background: color-mix(in srgb, var(--md-sys-color-surface-container-low) 88%, transparent);
    backdrop-filter: blur(10px);
}

.live-online {
    padding: 16px 18px 14px;
    border: 1px solid var(--md-sys-color-primary);
    border-radius: var(--md-sys-shape-corner-large);
    background: color-mix(in srgb, var(--md-sys-color-surface-container-low) 92%, transparent);
    box-shadow: var(--md-sys-elevation-2);
    backdrop-filter: blur(10px);
}

.live-online-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.live-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--md-sys-color-on-surface-variant);
}

.live-label--on {
    color: var(--md-sys-color-primary);
}

.live-dot {
    width: 9px;
    height: 9px;
    border-radius: var(--md-sys-shape-corner-full);
    background: var(--md-sys-color-outline);
    flex: 0 0 auto;
}

.live-dot--on {
    background: #ff3b5c;
    animation: live-pulse 1.8s ease-out infinite;
}

@keyframes live-pulse {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, #ff3b5c 65%, transparent); }
    70% { box-shadow: 0 0 0 9px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

@media (prefers-reduced-motion: reduce) {
    .live-dot--on { animation: none; }
}

.live-title {
    margin-top: 4px;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    color: var(--md-sys-color-on-surface);
}

.live-meta {
    font-size: 0.85rem;
    color: var(--md-sys-color-on-surface-variant);
}

.live-next {
    font-size: 0.95rem;
    color: var(--md-sys-color-on-surface-variant);
}

.live-cta {
    white-space: nowrap;
}

.live-player {
    position: relative;
    /* Cap by height so the player still fits a laptop fold; width follows 16:9. */
    width: min(100%, calc(65vh * 16 / 9));
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--md-sys-shape-corner-medium);
    overflow: hidden;
    background: #000;
}

.live-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* No player mounted (host cannot be used as a Twitch embed parent) — CTA carries it. */
.live-player:empty { display: none; }
.live-player:empty ~ .live-hint { display: none; }

.live-hint {
    margin-top: 8px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--md-sys-color-on-surface-variant);
    opacity: 0.8;
}

/* --- FOOTER --- */
.site-footer {
    text-align: center;
    padding: 24px 20px;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    color: var(--md-sys-color-on-surface-variant);
    border-top: 1px solid var(--md-sys-color-outline-variant);
    margin-top: 8px;
}

/* --- PANEL IMAGES (bio / venue) — outline follows M3 shape --- */
.panel-figure {
    border-radius: var(--md-sys-shape-corner-medium);
}

@media (max-width: 768px) {
    .drawer-content-area {
        padding: 16px;
    }
    .menu-grid {
        grid-template-columns: 1fr;
    }
    .staff-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .staff-card {
        min-height: 160px;
    }
    .support-card {
        min-height: 220px;
    }
    .hero-bio {
        font-size: 1.1rem;
    }
    .venue-address {
        font-size: 0.9rem;
    }
    .live-online-head,
    .live-offline {
        flex-direction: column;
        align-items: flex-start;
    }
    .live-cta {
        width: 100%;
        text-align: center;
    }
    .live-title {
        font-size: 1.05rem;
    }
}
