/*
 * @file site/style.css
 * @description Heart Beats collective marketing site — M3 tokens with glow-pink primary accent.
 */
@import url('/tokens-m3.css');

:root {
    --md-sys-color-primary: #ff00cc;
    --md-sys-color-on-primary: #3b001f;
    --md-sys-color-primary-container: #5c1d4a;
    --md-sys-color-on-primary-container: #ffcce8;
    --md-sys-color-secondary: #00f0ff;
    --md-sys-color-on-secondary: #001415;
    --md-sys-color-secondary-container: #1a3d42;
    --md-sys-color-on-secondary-container: #a8f4ff;

    --hb-pink: var(--md-sys-color-primary);
    --twitch-cyan: var(--md-sys-color-secondary);
    --discord-purple: #5865f2;
    --text-white: var(--md-sys-color-on-surface);
    --bg-black: var(--md-sys-color-surface);
    --brand-raidpal: #7c3aed;
    --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:
        radial-gradient(ellipse at 20% 0%, color-mix(in srgb, var(--hb-pink) 18%, transparent) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 100%, color-mix(in srgb, var(--twitch-cyan) 12%, transparent) 0%, transparent 50%),
        linear-gradient(
            color-mix(in srgb, var(--md-sys-color-surface) 82%, transparent),
            color-mix(in srgb, var(--md-sys-color-surface) 94%, transparent)
        );
    background-attachment: fixed;
    background-size: cover;
    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;
}

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

.hero {
    text-align: center;
    padding: 40px 20px 20px;
}

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

.brand-logo {
    max-width: 420px;
    max-height: 280px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 2px 16px color-mix(in srgb, var(--hb-pink) 45%, transparent));
    transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1);
    object-fit: contain;
}

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

.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-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: 820px) {
    .drawer-container {
        flex-direction: column;
        height: auto;
        max-height: none;
        min-height: 0;
    }

    .drawer-nav {
        width: 100%;
        flex: 0 0 auto;
        flex-direction: row;
        align-items: stretch;
        border-right: none;
        border-bottom: 1px solid var(--md-sys-color-outline-variant);
        overflow-x: auto;
        scrollbar-width: none;
        gap: 6px;
        padding: 4px 8px 5px;
        min-height: 0;
    }

    .drawer-nav::-webkit-scrollbar {
        display: none;
    }

    .drawer-group-label {
        display: none;
    }

    .drawer-tab {
        flex: 1 1 0;
        min-width: 0;
        text-align: center;
        padding: 9px 6px;
        font-size: 0.68rem;
        letter-spacing: 0.05em;
        white-space: nowrap;
        border: none;
        border-bottom: 2px solid transparent;
        border-radius: var(--md-sys-shape-corner-small) var(--md-sys-shape-corner-small) 0 0;
        background: color-mix(in srgb, var(--md-sys-color-surface-container-high) 50%, transparent);
    }

    .drawer-tab.active {
        background: var(--md-sys-color-primary-container);
        color: var(--md-sys-color-on-primary-container);
        border-bottom-color: var(--md-sys-color-primary);
        box-shadow: none;
    }

    .drawer-content-area {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: visible;
        overflow-x: hidden;
        padding: 14px 12px 20px;
        -webkit-overflow-scrolling: touch;
    }

    #roster-panel.drawer-panel {
        padding-bottom: 4px;
    }
}

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, 204, 0.03), rgba(0, 240, 255, 0.015), rgba(255, 0, 204, 0.03));
    z-index: 9999;
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
    opacity: 0.22;
}

.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-discord {
    border-color: var(--discord-purple);
    color: var(--discord-purple);
}
.btn-discord:hover {
    background: color-mix(in srgb, var(--discord-purple) 22%, var(--md-sys-color-surface-container-high));
    color: var(--md-sys-color-on-surface);
    border-color: var(--discord-purple);
    box-shadow: var(--md-sys-elevation-1);
}

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

.btn-apply {
    border-color: var(--hb-pink);
    color: var(--hb-pink);
    background: color-mix(in srgb, var(--hb-pink) 12%, var(--md-sys-color-surface-container-high));
}
.btn-apply:hover {
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    border-color: var(--hb-pink);
    box-shadow: var(--md-sys-elevation-1);
}

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

.hb-about-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.hb-about-lead strong {
    color: var(--hb-pink);
}

.hb-about-title {
    font-size: 1.2rem;
    line-height: 1.4;
    color: var(--hb-pink);
    font-weight: 700;
    margin-bottom: 20px;
}

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

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

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

.hb-about-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hb-about-list li {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--md-sys-color-on-surface-variant);
    padding: 12px 14px;
    border-left: 3px solid var(--hb-pink);
    background: color-mix(in srgb, var(--md-sys-color-surface-container-low) 90%, transparent);
    border-radius: 0 var(--md-sys-shape-corner-small) var(--md-sys-shape-corner-small) 0;
}

.hb-about-list strong {
    color: var(--md-sys-color-on-surface);
}

.hb-inline-link {
    color: var(--md-sys-color-secondary);
    font-weight: 600;
    text-decoration: none;
}

.hb-inline-link:hover {
    text-decoration: underline;
}

.hb-inline-link:hover {
    text-decoration: underline;
}

.hb-code {
    font-family: 'Rajdhani', monospace;
    font-size: 0.9em;
    color: var(--md-sys-color-secondary);
}

.roster-stage {
    display: block;
    min-height: 660px;
    margin-top: 8px;
    outline: none;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

.roster-stage:focus-visible {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--hb-pink) 45%, transparent);
    border-radius: var(--md-sys-shape-corner-medium);
}

.roster-carousel {
    position: relative;
    width: 100%;
    height: 620px;
    overflow: hidden;
    border-radius: var(--md-sys-shape-corner-medium);
    background:
        radial-gradient(ellipse 42% 62% at 52% 50%, color-mix(in srgb, var(--hb-pink) 10%, transparent), transparent 74%),
        var(--md-sys-color-surface-container-low);
    border: 1px solid var(--md-sys-color-outline-variant);
    box-shadow: var(--md-sys-elevation-1);
}

.roster-carousel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--md-sys-color-surface-container-low) 70%, transparent) 0%,
        transparent 10%,
        transparent 90%,
        color-mix(in srgb, var(--md-sys-color-surface-container-low) 70%, transparent) 100%
    );
    pointer-events: none;
    z-index: 40;
}

.roster-carousel-track {
    position: absolute;
    inset: 0;
}

.roster-carousel-card {
    position: absolute;
    left: var(--roster-pivot, 24%);
    top: 50%;
    width: 200px;
    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-high) 94%, transparent);
    box-shadow: var(--md-sys-elevation-1);
    cursor: pointer;
    text-align: left;
    color: inherit;
    font: inherit;
    transition:
        transform 0.58s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.34s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        width 0.35s ease,
        min-height 0.35s ease;
    overflow: hidden;
    padding: 0;
    will-change: transform, opacity;
}

.roster-carousel-card:hover {
    border-color: color-mix(in srgb, var(--hb-pink) 35%, var(--md-sys-color-outline-variant));
}

.roster-carousel-card--focused {
    width: min(320px, 44%);
    min-height: unset;
    border-color: color-mix(in srgb, var(--hb-pink) 58%, var(--md-sys-color-outline-variant));
    box-shadow:
        0 0 28px color-mix(in srgb, var(--hb-pink) 30%, transparent),
        var(--md-sys-elevation-2);
    cursor: default;
}

.roster-carousel-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    min-height: 58px;
}

.roster-carousel-card--focused .roster-carousel-compact {
    display: none;
}

.roster-carousel-detail {
    display: none;
    flex-direction: column;
}

.roster-carousel-card--focused .roster-carousel-detail {
    display: flex;
}

.roster-carousel-thumb {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: var(--md-sys-shape-corner-small);
    background: var(--md-sys-color-surface-container-highest);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.roster-carousel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 1px 4px color-mix(in srgb, var(--hb-pink) 20%, transparent));
}

.roster-carousel-thumb--fallback {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    font-weight: 900;
    color: var(--hb-pink);
    letter-spacing: 0.06em;
}

.roster-carousel-compact-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--md-sys-color-on-surface);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.roster-carousel-detail-media {
    aspect-ratio: 16 / 10;
    background: var(--md-sys-color-surface-container-highest);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.roster-carousel-detail-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px color-mix(in srgb, var(--hb-pink) 30%, transparent));
}

.roster-carousel-detail-media--fallback {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--hb-pink);
    letter-spacing: 0.12em;
}

.roster-carousel-detail-body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.roster-wheel-hint {
    margin: 14px 0 0;
    font-size: 0.82rem;
    color: var(--md-sys-color-on-surface-variant);
    letter-spacing: 0.04em;
    text-align: center;
}

.roster-hint-mobile {
    display: none;
}

.roster-mobile-nav {
    display: none;
    justify-content: center;
    gap: 14px;
    margin-top: 12px;
}

.roster-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--md-sys-shape-corner-full);
    border: 1px solid var(--md-sys-color-outline-variant);
    background: color-mix(in srgb, var(--md-sys-color-surface-container-high) 90%, transparent);
    color: var(--md-sys-color-on-surface);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.roster-nav-btn:hover,
.roster-nav-btn:focus-visible {
    border-color: var(--hb-pink);
    background: var(--md-sys-color-primary-container);
    box-shadow: 0 0 12px color-mix(in srgb, var(--hb-pink) 25%, transparent);
    outline: none;
}

@media (max-width: 820px) {
    .roster-stage {
        min-height: 480px;
    }

    .roster-carousel {
        height: 440px;
    }

    .roster-carousel-card--focused {
        width: min(300px, calc(100vw - 56px));
    }

    .roster-carousel-detail-body .member-card-links {
        gap: 10px;
    }

    .roster-carousel-detail-body .member-link-chip {
        font-size: 0.68rem;
        padding: 8px 12px;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
    }

    .roster-hint-desktop {
        display: none;
    }

    .roster-hint-mobile {
        display: inline;
    }

    .roster-mobile-nav {
        display: flex;
    }

    #roster-panel .events-panel-sub {
        font-size: 0.88rem;
        margin-bottom: 12px;
        line-height: 1.45;
    }

    #roster-panel .events-panel-title {
        font-size: 1.4rem;
        margin-bottom: 6px;
    }

    .roster-carousel-compact {
        min-height: 52px;
        padding: 10px 12px;
    }

    .roster-carousel-thumb {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .roster-stage {
        min-height: 430px;
    }

    .roster-carousel {
        height: 390px;
    }

    .roster-carousel-card {
        width: min(190px, 52vw);
    }

    .roster-carousel-card--focused {
        width: min(280px, calc(100vw - 40px));
    }

    .roster-carousel-detail-media {
        aspect-ratio: 16 / 11;
        padding: 12px;
    }

    .roster-carousel-detail-media--fallback {
        font-size: 2.2rem;
    }

    .roster-carousel-detail-body {
        padding: 12px 14px 16px;
    }

    .roster-carousel-detail-body .member-card-name {
        font-size: 1.05rem;
    }
}

.member-card-name {
    font-size: 1.15rem;
    color: var(--md-sys-color-on-surface);
    margin: 0;
    font-weight: 800;
}

.member-card-role {
    font-size: 0.85rem;
    color: var(--md-sys-color-primary);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0;
}

.member-card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.member-link-chip {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--md-sys-color-on-surface);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--md-sys-shape-corner-full);
    padding: 5px 10px;
    background: color-mix(in srgb, var(--md-sys-color-surface-container-high) 80%, transparent);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    --chip-brand: var(--md-sys-color-on-surface-variant);
}

.member-link-chip--twitch { --chip-brand: #9146ff; }
.member-link-chip--youtube { --chip-brand: #ff0000; }
.member-link-chip--soundcloud { --chip-brand: #ff5500; }
.member-link-chip--bluesky { --chip-brand: #0085ff; }
.member-link-chip--discord { --chip-brand: #5865f2; }
.member-link-chip--x { --chip-brand: #e7e9ea; }
.member-link-chip--instagram { --chip-brand: #e4405f; }
.member-link-chip--tiktok { --chip-brand: #00f2ea; }
.member-link-chip--spotify { --chip-brand: #1db954; }
.member-link-chip--kofi { --chip-brand: #ff5e5b; }
.member-link-chip--mixcloud { --chip-brand: #5000ff; }
.member-link-chip--throne { --chip-brand: #ff8c00; }
.member-link-chip--linktree { --chip-brand: #43e55e; }
.member-link-chip--apple { --chip-brand: #fa2d48; }
.member-link-chip--clubglo { --chip-brand: #00f0ff; }
.member-link-chip--merch { --chip-brand: #a855f7; }

.member-link-chip:not(.member-link-chip--default) {
    border-color: color-mix(in srgb, var(--chip-brand) 42%, var(--md-sys-color-outline-variant));
    color: color-mix(in srgb, var(--chip-brand) 88%, white);
    background: color-mix(in srgb, var(--chip-brand) 10%, var(--md-sys-color-surface-container-high));
}

.member-link-chip:not(.member-link-chip--default):hover {
    border-color: var(--chip-brand);
    color: var(--chip-brand);
    background: color-mix(in srgb, var(--chip-brand) 22%, var(--md-sys-color-surface-container-high));
    box-shadow: 0 0 12px color-mix(in srgb, var(--chip-brand) 35%, transparent);
}

.member-link-chip--default:hover {
    border-color: var(--hb-pink);
    color: var(--hb-pink);
    background: var(--md-sys-color-primary-container);
}

.member-link-chip--x:not(.member-link-chip--default):hover {
    color: #fff;
    background: color-mix(in srgb, #000 55%, var(--md-sys-color-surface-container-high));
}

.member-card-no-links {
    font-size: 0.85rem;
    color: var(--md-sys-color-on-surface-variant);
    font-style: italic;
}

.panel-figure {
    border-radius: var(--md-sys-shape-corner-medium);
}

.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;
}

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

.site-footer a {
    color: var(--md-sys-color-secondary);
    text-decoration: none;
    font-weight: 600;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer-copy {
    display: block;
    margin-top: 8px;
    letter-spacing: 0.2em;
    opacity: 0.75;
}
