/* ===== THEME VARIABLES ===== */
:root {
    --void: #000000;
    --surface: #0a0a0a;
    --surface-raised: #111111;
    --surface-glass: rgba(10,10,10,0.72);
    --violet: #dc2626;
    --violet-bright: #ef4444;
    --crimson: #dc2626;
    --gold: #92400e;
    --text: #e5e5e5;
    --text-dim: #9ca3af;
    --text-faint: #4b4b5a;
    --border: rgba(255,255,255,0.06);

    /* Legacy aliases */
    --crow-black: var(--void);
    --crow-dark: var(--surface);
    --crow-purple: var(--surface-raised);
    --crow-purple-mid: var(--text-faint);
    --crow-purple-light: var(--text-faint);
    --crow-violet: var(--violet);
    --crow-feather: var(--surface-raised);
    --crow-eye: var(--gold);
    --crow-eye-dim: var(--gold);
    --crow-bone: var(--text);
    --crow-bone-dim: var(--text-dim);
    --crow-ink: var(--void);
    --crow-blood: var(--crimson);
    --crow-success: #5fa85f;
    --crow-error: var(--crimson);
    --font-display: 'Pirata One', cursive;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --comic-border: 3px solid var(--crow-ink);
    --comic-shadow: 4px 4px 0 var(--crow-ink);
    --comic-shadow-sm: 3px 3px 0 var(--crow-ink);

}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .player-panel::before { display: none; }
    .site-logo { animation: none; }
    .video-bg video { transform: none; }
}

/* ===== SPLASH GATE ===== */
.splash-gate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--crow-black);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    transition: opacity 1.5s ease, visibility 1.5s ease;
    will-change: opacity, visibility;
}
.splash-gate.ready {
    cursor: default;
}
.splash-gate.dismissed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.splash-content {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.splash-logo-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 32px;
    padding: 20px;
}
.splash-logo {
    width: 260px;
    height: 260px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(220, 38, 38, 0.4));
    cursor: default;
    pointer-events: none;
    transition: filter 0.3s ease, transform 0.2s ease;
}
.splash-gate.ready .splash-logo {
    cursor: pointer;
    pointer-events: auto;
}
.splash-gate.ready .splash-logo:hover {
    filter: drop-shadow(0 0 40px rgba(220, 38, 38, 0.6));
    transform: scale(1.03);
}
.splash-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 310px;
    height: 310px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    overflow: visible;
}
.splash-ring-track {
    fill: none;
    stroke: rgba(75, 75, 90, 0.15);
    stroke-width: 4;
}
.splash-ring-progress {
    fill: none;
    stroke: var(--crow-violet);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 880;
    stroke-dashoffset: 880;
    transition: stroke-dashoffset 0.4s ease;
    filter: drop-shadow(0 0 6px rgba(220, 38, 38, 0.5));
    will-change: stroke-dashoffset;
}
.splash-ring-progress.complete {
    stroke: var(--crow-bone);
    filter: drop-shadow(0 0 10px rgba(146, 64, 14, 0.4)) drop-shadow(0 0 20px rgba(220, 38, 38, 0.5));
}
/* Crow talon tick marks around the ring */
.splash-ring-ticks {
    fill: none;
    stroke: rgba(75, 75, 90, 0.25);
    stroke-width: 2;
    stroke-linecap: round;
    transition: stroke 0.5s ease;
}
.splash-gate.ready .splash-ring-ticks {
    stroke: rgba(220, 38, 38, 0.4);
}
.splash-enter-btn {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 7rem);
    letter-spacing: 5px;
    color: var(--crow-bone);
    text-shadow: 0 0 30px rgba(146, 64, 14, 0.3), 3px 3px 0 var(--crow-ink);
    margin-bottom: 16px;
    opacity: 0.3;
    transition: opacity 0.5s ease, text-shadow 0.5s ease, transform 0.2s ease;
    background: none;
    border: none;
    cursor: default;
    pointer-events: none;
    padding: 0;
}
.splash-gate.ready .splash-enter-btn {
    opacity: 1;
    animation: splashPulse 3s ease-in-out infinite;
    cursor: pointer;
    pointer-events: auto;
}
.splash-gate.ready .splash-enter-btn:hover {
    color: var(--crow-eye);
    text-shadow: 0 0 40px rgba(146, 64, 14, 0.5), 3px 3px 0 var(--crow-ink);
    transform: scale(1.05);
    animation: none;
}
.splash-silent-btn {
    display: block;
    margin: 0 auto;
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--crow-bone-dim);
    cursor: default;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease, color 0.2s ease;
}
.splash-gate.ready .splash-silent-btn {
    opacity: 0.5;
    cursor: pointer;
    pointer-events: auto;
}
.splash-gate.ready .splash-silent-btn:hover {
    opacity: 1;
    color: var(--crow-bone);
}
.splash-loading-text {
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--crow-purple-light);
    margin-top: 8px;
    min-height: 1em;
    opacity: 0.7;
    transition: opacity 0.5s ease;
}
.splash-gate.ready .splash-loading-text {
    opacity: 0;
}
@keyframes splashPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }
body {
    font-family: var(--font-body);
    background: var(--crow-black);
    color: var(--crow-bone);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }
img { max-width: 100%; height: auto; }
.hidden { display: none !important; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--crow-black); }
::-webkit-scrollbar-thumb { background: var(--crow-purple-mid); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--crow-violet); }

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--crow-violet);
    color: #fff;
    padding: 8px 16px;
    z-index: 10001;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 0;
    outline: 2px solid var(--crow-eye);
    outline-offset: 2px;
}

/* Focus visible */
*:focus-visible {
    outline: 2px solid var(--crow-violet);
    outline-offset: 2px;
}
.player-btn:focus-visible,
.volume-slider:focus-visible,
.player-progress:focus-visible,
.nav-item:focus-visible {
    outline: 2px solid var(--crow-eye);
    outline-offset: 2px;
}

/* ===== VIDEO BACKGROUND ===== */
.video-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}
.video-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, transparent 0%, rgba(7, 7, 10, 0.5) 100%),
        linear-gradient(
            to bottom,
            rgba(7, 7, 10, 0.5) 0%,
            rgba(22, 22, 30, 0.3) 50%,
            rgba(7, 7, 10, 0.6) 100%
        );
}

/* Noise overlay */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    animation: grainBreathe 8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
    .noise-overlay { animation: none; }
}
@keyframes grainBreathe {
    0%, 100% { opacity: 0.02; }
    50% { opacity: 0.04; }
}

/* ===== LIVE INDICATOR ===== */
.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 6px 18px;
    border-radius: 20px;
    background: rgba(7, 7, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
}
.live-indicator.is-live {
    background: rgba(220, 38, 38, 0.25);
    border-color: rgba(220, 38, 38, 0.4);
}
.live-indicator.is-offline {
    background: rgba(22, 22, 30, 0.2);
    border-color: rgba(75, 75, 90, 0.2);
}
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--crow-bone-dim);
    transition: background 0.4s ease;
}
.live-indicator.is-live .live-dot {
    background: #dc2626;
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.6);
    animation: livePulse 1.5s ease-in-out infinite;
}
.live-indicator.is-offline .live-dot {
    background: var(--crow-purple-light);
}
@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(220, 38, 38, 0.5); }
    50% { opacity: 0.5; box-shadow: 0 0 12px rgba(220, 38, 38, 0.8); }
}
.live-text {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--crow-bone-dim);
    transition: color 0.4s ease;
}
.live-indicator.is-live .live-text {
    color: #dc2626;
}
.live-indicator.is-offline .live-text {
    color: var(--crow-purple-light);
}

/* ===== LOGO ===== */
.logo-container {
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    display: inline-block;
}
.site-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(220, 38, 38, 0.3));
    transition: filter 0.4s ease;
}
.site-logo:hover {
    filter: drop-shadow(0 0 30px rgba(220, 38, 38, 0.5));
    transform: scale(1.05);
}
/* When live: logo gets red glow, becomes a Twitch link */
.logo-container.is-live {
    cursor: pointer;
}
.logo-container.is-live .site-logo {
    filter: drop-shadow(0 0 20px rgba(220, 38, 38, 0.4)) drop-shadow(0 0 40px rgba(220, 38, 38, 0.15));
    animation: logoLivePulse 3s ease-in-out infinite;
}
.logo-container.is-live .site-logo:hover {
    filter: drop-shadow(0 0 30px rgba(220, 38, 38, 0.6)) drop-shadow(0 0 50px rgba(220, 38, 38, 0.25));
    transform: scale(1.05);
}
@keyframes logoLivePulse {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(220, 38, 38, 0.4)) drop-shadow(0 0 40px rgba(220, 38, 38, 0.15)); }
    50% { filter: drop-shadow(0 0 28px rgba(220, 38, 38, 0.55)) drop-shadow(0 0 50px rgba(220, 38, 38, 0.25)); }
}
.logo-live-tag {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #fff;
    background: #dc2626;
    padding: 2px 12px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
    animation: livePulse 1.5s ease-in-out infinite;
}

/* ===== TAGLINE ===== */
.tagline {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #8b8b9a;
    margin-bottom: 10px;
    text-shadow:
        0 0 6px rgba(0, 0, 0, 0.9),
        0 0 12px rgba(0, 0, 0, 0.6),
        1px 1px 2px rgba(0, 0, 0, 1);
}

/* ===== SCHEDULE LINE ===== */
.schedule-line {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #8b8b9a;
    margin-bottom: 32px;
    min-height: 1.2em;
    transition: opacity 0.4s ease;
    text-shadow:
        0 0 6px rgba(0, 0, 0, 0.9),
        0 0 12px rgba(0, 0, 0, 0.6),
        1px 1px 2px rgba(0, 0, 0, 1);
}
.schedule-line.hidden-live {
    opacity: 0;
    pointer-events: none;
}

/* ===== HOMEPAGE NAV ===== */
.homepage {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.homepage.hidden {
    display: none !important;
}
.main-nav {
    display: flex;
    gap: 60px;
    align-items: center;
}
.nav-item {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    font-weight: 400;
    letter-spacing: 6px;
    color: var(--crow-bone);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    user-select: none;
    text-shadow: 2px 2px 0 var(--crow-ink);
}
.nav-item::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--crow-violet);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-item:hover {
    color: var(--crow-eye);
    transform: scale(1.05);
    text-shadow:
        2px 2px 0 var(--crow-ink),
        -1px -1px 0 rgba(220, 38, 38, 0.25),
        0 0 30px rgba(146, 64, 14, 0.4);
}
.nav-item:hover::after {
    width: 100%;
    background: var(--crow-eye);
}

/* ===== PAGE SECTIONS (overlays) ===== */
.page-section {
    display: none;
    position: fixed;
    inset: -10px;
    z-index: 100;
    background: rgba(7, 7, 10, 0.6);
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    transform-origin: center center;
}
.page-section.active {
    display: flex;
}
.page-section.active .section-inner {
    animation: panelIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.05) forwards;
}
@keyframes panelIn {
    0%   { opacity: 0; transform: translateY(-12px) scale(0.98); }
    70%  { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.section-inner {
    max-width: 600px;
    width: 90%;
    text-align: center;
    padding: 40px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: var(--surface-glass);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    transform: translateZ(0);
    backface-visibility: hidden;
}
.section-inner h2 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 400;
    letter-spacing: 4px;
    margin-bottom: 24px;
    color: var(--crow-eye);
    text-shadow: 2px 2px 0 var(--crow-ink);
}
.section-inner h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--crow-violet);
    margin-top: 28px;
    margin-bottom: 10px;
}
.section-inner p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--crow-bone-dim);
}
.submissions-info {
    margin-top: 24px;
    padding: 20px;
    border: 2px dashed var(--crow-purple-mid);
    border-radius: 10px;
    background: rgba(22, 22, 30, 0.15);
}
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    padding: 10px 24px;
    background: transparent;
    border: 2px solid var(--crow-purple-mid);
    border-radius: 999px;
    color: var(--crow-bone-dim);
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.back-btn .back-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}
.back-btn:hover {
    border-color: var(--crow-violet);
    color: var(--crow-eye);
    background: rgba(220, 38, 38, 0.08);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.12);
    padding-left: 18px;
    padding-right: 30px;
}
.back-btn:hover .back-arrow {
    transform: translateX(-5px);
}
.back-btn:active {
    transform: scale(0.97);
}

/* ===== SOCIAL LINKS ===== */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 12px;
}
.social-link {
    display: block;
    padding: 16px 24px;
    border: 2px solid var(--crow-purple-mid);
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--crow-bone-dim);
    transition: all 0.2s ease;
}
.social-link:hover {
    border-color: var(--crow-violet);
    color: var(--crow-bone);
    background: rgba(220, 38, 38, 0.06);
    transform: translateY(-2px);
}

/* ===== DISCORD BADGE ===== */
.discord-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border: 2px solid #5865f2;
    border-radius: 12px;
    background: rgba(88, 101, 242, 0.08);
    margin-bottom: 20px;
}
.discord-icon {
    width: 40px;
    height: 40px;
    background: #5865f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
}
.discord-info {
    flex: 1;
    text-align: left;
    min-width: 0;
}
.discord-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--crow-bone);
}
.discord-members {
    font-size: 0.75rem;
    color: var(--crow-bone-dim);
    margin-top: 2px;
}
.discord-members .online-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--crow-success);
    margin-right: 4px;
    vertical-align: middle;
}
.discord-join {
    padding: 8px 20px;
    background: #5865f2;
    color: #fff;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.discord-join:hover {
    background: #4752c4;
    transform: translateY(-1px);
}

/* ===== ARCHIVE ===== */
.archive-inner {
    max-width: 960px;
}
.archive-layout {
    margin-top: 16px;
}
.archive-section-header {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--crow-eye);
    letter-spacing: 3px;
    margin-bottom: 16px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
}
.archive-section-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(220, 38, 38, 0.4), transparent);
}
.archive-vod-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}
.archive-card {
    display: block;
    border: 2px solid var(--crow-ink);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    background: var(--crow-dark);
    position: relative;
    animation: cardEnter 0.5s ease backwards;
    box-shadow: 3px 3px 0 var(--crow-ink);
}
@keyframes cardEnter {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.archive-card:hover {
    border-color: var(--crow-eye);
    background: var(--crow-feather);
    box-shadow: 4px 4px 0 var(--crow-eye-dim);
    transform: translate(-2px, -2px);
}
.archive-card-thumb-wrap {
    position: relative;
    overflow: hidden;
}
.archive-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: var(--crow-feather);
    transition: transform 0.5s ease;
}
.archive-card:hover .archive-card-thumb {
    transform: scale(1.08);
}
.archive-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 7, 10, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.archive-card:hover .archive-card-play {
    opacity: 1;
}
.archive-card-play svg {
    width: 36px;
    height: 36px;
    fill: #fff;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.archive-card:hover .archive-card-play svg {
    transform: scale(1);
}
.archive-card-duration {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(7, 7, 10, 0.8);
    color: var(--crow-bone);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 1px;
    pointer-events: none;
}
.archive-card-body {
    padding: 10px 12px;
    text-align: left;
}
.archive-card-title {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--crow-bone);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.archive-card-meta {
    font-size: 0.65rem;
    color: var(--crow-bone-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 4px;
}
.archive-card-playlist {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-top: 1px solid var(--crow-ink);
    font-size: 0.65rem;
    color: var(--crow-bone-dim);
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: transparent;
}
.archive-card:hover .archive-card-playlist {
    color: var(--crow-eye);
}
.archive-card-playlist img {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
}
.archive-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(220, 38, 38, 0.2), transparent);
    margin-bottom: 20px;
}
.archive-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 20px;
    padding: 8px 20px;
    background: transparent;
    border: 2px solid var(--crow-ink);
    border-radius: 8px;
    color: var(--crow-bone-dim);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 2px 2px 0 var(--crow-ink);
}
.archive-view-all:hover {
    border-color: var(--crow-eye);
    color: var(--crow-eye);
    background: rgba(146, 64, 14, 0.06);
    box-shadow: 3px 3px 0 var(--crow-eye-dim);
    transform: translate(-1px, -1px);
}
.archive-playlist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.archive-playlist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 2px solid var(--crow-ink);
    border-radius: 8px;
    background: var(--crow-dark);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 2px 2px 0 var(--crow-ink);
}
.archive-playlist-item:hover {
    border-color: var(--crow-violet);
    background: var(--crow-feather);
    box-shadow: 3px 3px 0 var(--crow-violet);
    transform: translate(-1px, -1px);
}
.archive-playlist-art {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--crow-feather);
    border: 1px solid rgba(220, 38, 38, 0.15);
}
.archive-playlist-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}
.archive-playlist-name {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--crow-bone);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.archive-playlist-meta {
    font-size: 0.65rem;
    color: var(--crow-bone-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
}
.archive-show-more {
    display: block;
    margin: 20px auto 0;
    padding: 10px 32px;
    background: transparent;
    border: 2px solid var(--crow-ink);
    border-radius: 8px;
    color: var(--crow-bone-dim);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 2px 2px 0 var(--crow-ink);
}
.archive-show-more:hover {
    border-color: var(--crow-violet);
    color: var(--crow-violet);
    background: rgba(220, 38, 38, 0.06);
    box-shadow: 3px 3px 0 var(--crow-violet);
    transform: translate(-1px, -1px);
}

/* Archive skeleton screens */
.archive-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.archive-skeleton-card {
    background: var(--crow-dark);
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--crow-ink);
    box-shadow: 3px 3px 0 var(--crow-ink);
}
.archive-skeleton-card::before {
    content: '';
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(90deg, rgba(22, 22, 30, 0.3) 25%, rgba(22, 22, 30, 0.5) 50%, rgba(22, 22, 30, 0.3) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
}
@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@media (max-width: 768px) {
    .archive-skeleton-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .archive-skeleton-grid { grid-template-columns: 1fr; }
}
.archive-empty {
    color: var(--crow-bone-dim);
    font-size: 0.8rem;
    font-style: italic;
    padding: 12px 0;
}
@media (max-width: 768px) {
    .archive-vod-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .archive-playlist-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .archive-inner {
        max-width: 600px;
    }
}
@media (max-width: 480px) {
    .archive-vod-grid {
        grid-template-columns: 1fr;
    }
    .archive-playlist-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== SUBMISSION NOTES ===== */
.btn-submission-notes {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 22px;
    background: transparent;
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: 8px;
    color: var(--crow-purple-light);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.btn-submission-notes:hover {
    border-color: rgba(220, 38, 38, 0.5);
    color: var(--crow-violet);
    background: rgba(220, 38, 38, 0.06);
    box-shadow: 0 2px 12px rgba(220, 38, 38, 0.08);
}
.notes-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(7, 7, 10, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}
.notes-modal {
    position: relative;
    width: 90%;
    max-width: 580px;
    max-height: 75vh;
    overflow-y: auto;
    background: var(--crow-dark);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 14px;
    padding: 32px 28px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
.notes-modal::-webkit-scrollbar {
    width: 6px;
}
.notes-modal::-webkit-scrollbar-track {
    background: transparent;
}
.notes-modal::-webkit-scrollbar-thumb {
    background: rgba(220, 38, 38, 0.2);
    border-radius: 3px;
}
.notes-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: var(--crow-bone-dim);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.15s ease;
}
.notes-modal-close:hover {
    color: var(--crow-bone);
    background: rgba(220, 38, 38, 0.1);
}
.notes-modal h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--crow-eye);
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-shadow: 1px 1px 0 var(--crow-ink);
}
.notes-modal h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--crow-violet);
    letter-spacing: 1px;
    margin-top: 18px;
    margin-bottom: 6px;
}
.notes-modal p {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--crow-bone-dim);
    margin-bottom: 8px;
}
.notes-modal ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
}
.notes-modal ul li {
    font-size: 0.8rem;
    color: var(--crow-bone-dim);
    padding: 4px 0 4px 16px;
    position: relative;
    line-height: 1.5;
}
.notes-modal ul li::before {
    content: '\2022';
    color: var(--crow-violet);
    position: absolute;
    left: 0;
}
.notes-modal em {
    color: var(--crow-purple-light);
    font-size: 0.75rem;
}
.notes-agree-row {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(220, 38, 38, 0.12);
}
.notes-agree-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--crow-bone);
    transition: color 0.2s ease;
}
.notes-agree-label:hover {
    color: var(--crow-eye);
}
.notes-agree-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--crow-violet);
    cursor: pointer;
    flex-shrink: 0;
}
.submit-gate {
    text-align: center;
    padding: 24px 16px;
    border: 1px dashed rgba(220, 38, 38, 0.2);
    border-radius: 12px;
    background: rgba(22, 22, 30, 0.08);
    margin-bottom: 12px;
}
.submit-gate p {
    font-size: 0.85rem;
    color: var(--crow-bone-dim);
    margin-bottom: 14px;
}

/* ===== SUBMIT FORM ===== */
.submit-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: left;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--crow-bone-dim);
}
.label-hint {
    font-weight: 400;
    color: var(--crow-purple-light);
    font-size: 0.75rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(22, 22, 30, 0.2);
    border: 2px solid var(--crow-purple-mid);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--crow-bone);
    outline: none;
    transition: all 0.2s ease;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--crow-purple-light);
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--crow-violet);
    background: rgba(22, 22, 30, 0.3);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.link-input-row {
    display: flex;
}
.link-input-row input {
    border-radius: 10px 0 0 10px;
    border-right: none;
}
.btn-fetch {
    padding: 12px 18px;
    background: var(--crow-purple-mid);
    color: var(--crow-bone);
    border: 2px solid var(--crow-purple-mid);
    border-radius: 0 10px 10px 0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-fetch:hover {
    background: var(--crow-violet);
    border-color: var(--crow-violet);
}
.fetch-status {
    font-size: 0.8rem;
    margin-top: 6px;
    min-height: 18px;
}
.fetch-status.success { color: var(--crow-success); }
.fetch-status.error { color: var(--crow-error); }
.track-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: rgba(22, 22, 30, 0.15);
    border: 2px solid var(--crow-purple-mid);
    border-radius: 12px;
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.preview-art {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    border: var(--comic-border);
    box-shadow: var(--comic-shadow-sm);
}
.preview-info {
    flex: 1;
    min-width: 0;
}
.preview-title {
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--crow-bone);
}
.preview-artist {
    font-size: 0.8rem;
    color: var(--crow-bone-dim);
}
.preview-handle {
    font-size: 0.72rem;
    color: var(--crow-purple-light);
    font-style: italic;
}
.preview-clear {
    width: 32px;
    height: 32px;
    border: 2px solid var(--crow-purple-mid);
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--crow-bone-dim);
    font-size: 1.2rem;
    transition: all 0.15s;
}
.preview-clear:hover {
    border-color: var(--crow-error);
    color: var(--crow-error);
}
.btn-submit {
    padding: 14px 24px;
    background: var(--crow-purple);
    border: 2px solid var(--crow-violet);
    border-radius: 10px;
    color: var(--crow-bone);
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-submit:hover {
    background: var(--crow-purple-mid);
    border-color: var(--crow-eye);
    color: var(--crow-eye);
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.2);
}
.btn-outline {
    padding: 12px 24px;
    background: transparent;
    border: 2px solid var(--crow-purple-mid);
    border-radius: 10px;
    color: var(--crow-bone);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-outline:hover {
    border-color: var(--crow-violet);
    background: rgba(220, 38, 38, 0.06);
}
.submit-closed {
    text-align: center;
    padding: 20px 16px;
    border: 2px solid rgba(220, 38, 38, 0.3);
    border-radius: 12px;
    background: rgba(220, 38, 38, 0.12);
    margin-top: 12px;
}
.submit-closed.is-paused {
    border-color: rgba(146, 64, 14, 0.35);
    background: rgba(146, 64, 14, 0.08);
}
.submit-closed .closed-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}
.submit-closed .closed-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--crow-error);
    margin-bottom: 6px;
}
.submit-closed.is-paused .closed-title {
    color: var(--crow-eye);
}
.submit-closed .closed-message {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--crow-bone-dim);
}
.submit-closed .closed-message a {
    color: var(--crow-violet);
    text-decoration: underline;
}
.btn-invaders {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 24px;
    background: var(--crow-violet);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 2px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-invaders:hover {
    background: var(--crow-eye);
    transform: scale(1.05);
}
.submit-success {
    text-align: center;
    padding: 40px 20px;
}
.success-check {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--crow-success);
    color: var(--crow-ink);
    border: var(--comic-border);
    box-shadow: var(--comic-shadow-sm);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}
.submit-success h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 6px;
    color: var(--crow-eye);
}
.submit-success p {
    color: var(--crow-bone-dim);
    margin-bottom: 20px;
}

/* ===== MP3 PLAYER (two comic-book panels) ===== */
.mp3-player {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 300px;
    filter: drop-shadow(4px 4px 0 var(--crow-ink));
}
.mp3-player:hover {
    filter: drop-shadow(4px 4px 0 var(--crow-ink));
}

/* Shared panel style */
.player-panel {
    background: #fff;
    color: var(--crow-ink);
    border: 3px solid var(--crow-ink);
    border-radius: 8px;
    padding: 10px;
    position: relative;
}

/* Border-only crumple overlay � content stays clean */
.player-panel::before {
    content: '';
    position: absolute;
    inset: -3px;
    border: 3px solid var(--crow-ink);
    border-radius: 8px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.player-panel.crumpling::before {
    opacity: 1;
    filter: url(#paperCrumple);
}

/* Info panel: art + title/artist + share */
.player-panel-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.player-art {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    background: #eee;
    border: 2px solid var(--crow-ink);
    box-shadow: 2px 2px 0 var(--crow-ink);
    flex-shrink: 0;
}
.player-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.player-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--crow-ink);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
}
.player-title.marquee {
    display: inline-block;
    animation: marquee 8s linear infinite;
}
.player-artist {
    font-size: 0.75rem;
    color: #555;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
}
.player-artist.marquee {
    display: inline-block;
    animation: marquee 8s linear infinite;
}
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Equalizer visualizer */
.player-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
    margin-left: 4px;
}
.player-visualizer span {
    width: 3px;
    background: var(--crow-ink);
    border-radius: 1px;
    animation: eqBounce 0.6s ease-in-out infinite;
    height: 40%;
}
.player-visualizer span:nth-child(1) { animation-delay: 0s; height: 60%; }
.player-visualizer span:nth-child(2) { animation-delay: 0.1s; height: 100%; }
.player-visualizer span:nth-child(3) { animation-delay: 0.2s; height: 40%; }
.player-visualizer span:nth-child(4) { animation-delay: 0.3s; height: 80%; }
.mp3-player.paused .player-visualizer span {
    animation-play-state: paused;
    height: 20%;
    transition: height 0.3s ease;
}
@keyframes eqBounce {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}

/* Share button (square) */
.player-share-btn {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--crow-ink);
    color: #fff;
    border: 2px solid var(--crow-ink);
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 2px 2px 0 var(--crow-ink);
    transition: all 0.15s ease;
    line-height: 1;
}
.player-share-btn:hover {
    background: var(--crow-eye);
    color: var(--crow-ink);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--crow-ink);
}

/* Controls panel: buttons + volume */
.player-panel-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.player-controls {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}
.player-btn {
    background: #fff;
    border: 2px solid var(--crow-ink);
    color: var(--crow-ink);
    font-size: 0.65rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.15s ease;
    letter-spacing: -2px;
    box-shadow: 2px 2px 0 var(--crow-ink);
}
.player-btn:hover {
    background: var(--crow-eye);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--crow-ink);
}
.player-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 var(--crow-ink);
}
.player-btn.play-btn {
    width: 36px;
    height: 28px;
    font-size: 0.9rem;
    padding: 0;
    letter-spacing: 0;
    background: var(--crow-eye);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.player-btn.play-btn:hover {
    background: var(--crow-eye-dim);
}

/* Play button breathing pulse when paused */
@keyframes playPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.mp3-player.paused .player-btn.play-btn {
    animation: playPulse 2s ease-in-out infinite;
}
.mp3-player.playing .player-btn.play-btn {
    animation: none;
}

/* Volume */
.player-volume {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
.volume-icon {
    font-size: 0.85rem;
    cursor: pointer;
    user-select: none;
}
.volume-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    outline: none;
    border: 1px solid var(--crow-ink);
}
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: var(--crow-ink);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--crow-ink);
    box-shadow: 1px 1px 0 var(--crow-ink);
}
.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--crow-ink);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--crow-ink);
    box-shadow: 1px 1px 0 var(--crow-ink);
}

/* ===== OFFLINE BANNER ===== */
.offline-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: var(--crow-blood);
    color: #fff;
    text-align: center;
    padding: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    animation: slideDown 0.3s ease;
}

/* ===== MOBILE PLAYER TOGGLE ===== */
.player-toggle {
    display: none;
}
@media (max-width: 768px) {
    .player-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        bottom: 58px;
        right: 10px;
        z-index: 201;
        width: 32px;
        height: 24px;
        background: var(--crow-ink);
        color: var(--crow-eye);
        border: 2px solid var(--crow-ink);
        border-radius: 6px 6px 0 0;
        font-size: 0.7rem;
        cursor: pointer;
        box-shadow: 2px -1px 0 var(--crow-ink);
        transition: all 0.3s ease;
    }
    .player-toggle:hover {
        background: var(--crow-eye);
        color: var(--crow-ink);
    }
    .player-toggle.is-collapsed {
        bottom: 8px;
        border-radius: 6px;
        box-shadow: 2px 2px 0 var(--crow-ink);
    }
    .mp3-player.collapsed {
        transform: translateY(calc(100% + 20px));
        pointer-events: none;
        opacity: 0;
    }
    .mp3-player {
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
}

/* ===== RESPONSIVE: TABLET (768px) ===== */
@media (max-width: 768px) {
    /* Homepage: use dvh for real viewport, fill the screen */
    .homepage {
        min-height: 100vh;
        min-height: 100dvh;
        height: 100dvh;
        justify-content: space-evenly;
        padding: 16px 0 60px;
    }
    .logo-container {
        margin-bottom: 0;
    }
    .tagline {
        margin-bottom: 0;
    }
    .schedule-line {
        margin-bottom: 0;
    }
    .live-indicator {
        margin-bottom: 0;
    }
    .main-nav {
        flex-direction: column;
        gap: 24px;
    }
    .nav-item {
        font-size: 2.4rem;
        letter-spacing: 4px;
    }
    .site-logo {
        width: 160px;
        height: 160px;
    }

    /* Splash */
    .splash-logo {
        width: 180px;
        height: 180px;
    }
    .splash-logo-wrap {
        margin-bottom: 24px;
    }
    .splash-ring {
        width: 230px;
        height: 230px;
    }

    /* Sections: centered vertically and horizontally on mobile */
    .page-section {
        align-items: center;
        justify-content: center;
        inset: 0;
        padding: 24px 16px 40px;
    }
    .section-inner {
        padding: 28px 20px;
        margin: auto;
    }

    /* MP3 player: drop below section z-index, side-by-side panels */
    .mp3-player {
        z-index: 50;
        width: calc(100% - 20px);
        bottom: 8px;
        left: 10px;
        flex-direction: row;
        gap: 4px;
        filter: drop-shadow(3px 3px 0 var(--crow-ink));
    }
    .player-panel {
        padding: 8px;
        border-width: 2px;
    }
    .player-panel::before {
        inset: -2px;
        border-width: 2px;
    }
    .player-panel-info {
        flex: 1;
        min-width: 0;
    }
    .player-panel-controls {
        flex-shrink: 0;
        flex-direction: column;
        gap: 6px;
    }
    .player-art {
        width: 44px;
        height: 44px;
    }

    /* Notes modal */
    .notes-modal {
        width: 94%;
        max-height: 80vh;
        padding: 24px 20px;
        border-radius: 12px;
    }
    .notes-modal-close {
        width: 36px;
        height: 36px;
        font-size: 1.6rem;
    }

    /* Archive grids */
    .archive-inner {
        max-width: 600px;
    }
    .archive-vod-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .archive-playlist-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Larger touch targets */
    .back-btn {
        padding: 12px 24px;
        margin-bottom: 28px;
        min-height: 44px;
        font-size: 1rem;
        border-width: 1px;
    }
    .btn-submission-notes {
        padding: 10px 22px;
    }
    .player-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    .player-btn.play-btn {
        width: 42px;
        height: 32px;
        font-size: 1rem;
    }
    .player-share-btn {
        width: 34px;
        height: 34px;
        font-size: 1.1rem;
    }
    .player-controls {
        justify-content: center;
    }

    /* Volume slider thumb bigger for touch */
    .volume-slider::-webkit-slider-thumb {
        width: 20px;
        height: 20px;
    }
    .volume-slider::-moz-range-thumb {
        width: 20px;
        height: 20px;
    }
}

/* ===== RESPONSIVE: PHONE (480px) ===== */
@media (max-width: 480px) {
    /* Homepage: compact for small portrait screens, fill viewport */
    .homepage {
        padding: 12px 0 60px;
        gap: 0;
    }
    .logo-container {
        margin-bottom: 0;
    }
    .tagline {
        font-size: 0.65rem;
        letter-spacing: 2px;
        margin-bottom: 0;
    }
    .schedule-line {
        font-size: 0.65rem;
        letter-spacing: 2px;
        margin-bottom: 0;
    }
    .main-nav {
        gap: 0;
        width: 100%;
        padding: 0 24px;
    }
    .nav-item {
        font-size: 2rem;
        letter-spacing: 3px;
        width: 100%;
        text-align: center;
        padding: 14px 0;
        min-height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .site-logo {
        width: 100px;
        height: 100px;
    }
    .live-indicator {
        padding: 4px 12px;
        gap: 5px;
        margin-bottom: 0;
    }
    .live-text {
        font-size: 0.55rem;
    }

    /* Splash */
    .splash-logo {
        width: 140px;
        height: 140px;
    }
    .splash-logo-wrap {
        margin-bottom: 20px;
    }
    .splash-ring {
        width: 190px;
        height: 190px;
    }
    .splash-silent-btn {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }

    /* Sections */
    .page-section {
        padding: 20px 12px 32px;
    }
    .section-inner {
        width: 94%;
        padding: 20px 16px;
        margin: auto;
    }
    .section-inner h2 {
        font-size: 2rem;
        letter-spacing: 3px;
        margin-bottom: 18px;
    }
    .section-inner h3 {
        font-size: 1.2rem;
    }
    .section-inner p {
        font-size: 0.92rem;
        line-height: 1.7;
    }

    /* Back button */
    .back-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
        margin-bottom: 24px;
        min-height: 40px;
        border-width: 1px;
    }

    /* Submit form */
    .form-group input,
    .form-group textarea {
        padding: 14px 12px;
        font-size: 16px; /* prevents iOS zoom on focus */
    }
    .link-input-row {
        flex-direction: column;
    }
    .link-input-row input {
        border-radius: 10px 10px 0 0;
        border-right: 2px solid var(--crow-purple-mid);
        border-bottom: none;
    }
    .btn-fetch {
        border-radius: 0 0 10px 10px;
        padding: 14px 18px;
        font-size: 0.85rem;
    }
    .track-preview {
        gap: 10px;
        padding: 10px;
    }
    .preview-art {
        width: 52px;
        height: 52px;
    }
    .preview-title {
        font-size: 0.85rem;
    }
    .btn-submit {
        padding: 16px 24px;
        font-size: 1.1rem;
    }

    /* Submit gate */
    .submit-gate {
        padding: 20px 12px;
    }

    /* Notes modal */
    .notes-modal {
        width: 96%;
        max-height: 85vh;
        padding: 20px 16px;
        border-radius: 10px;
    }
    .notes-modal h3 {
        font-size: 1.3rem;
    }
    .notes-modal h4 {
        font-size: 0.9rem;
    }
    .notes-modal p {
        font-size: 0.78rem;
    }
    .notes-modal ul li {
        font-size: 0.76rem;
    }
    .notes-agree-label {
        font-size: 0.75rem;
        gap: 8px;
    }
    .notes-agree-label input[type="checkbox"] {
        width: 22px;
        height: 22px;
    }

    /* Discord badge */
    .discord-badge {
        gap: 10px;
        padding: 12px 14px;
    }
    .discord-icon {
        width: 36px;
        height: 36px;
    }
    .discord-icon svg {
        width: 17px;
        height: 13px;
    }
    .discord-name {
        font-size: 0.85rem;
    }
    .discord-join {
        padding: 8px 14px;
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    /* Social links */
    .social-link {
        padding: 14px 18px;
        font-size: 0.95rem;
    }

    /* Archive */
    .archive-vod-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .archive-playlist-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .archive-section-header {
        font-size: 0.9rem;
    }
    .archive-show-more {
        padding: 10px 24px;
        font-size: 0.75rem;
    }

    /* MP3 player compact � side-by-side panels */
    .mp3-player {
        width: calc(100% - 16px);
        left: 8px;
        bottom: 6px;
        gap: 3px;
        filter: drop-shadow(2px 2px 0 var(--crow-ink));
    }
    .player-panel {
        padding: 6px;
        border-width: 2px;
    }
    .player-panel::before {
        inset: -2px;
        border-width: 2px;
    }
    .player-art {
        width: 36px;
        height: 36px;
        border-width: 2px;
        box-shadow: 1px 1px 0 var(--crow-ink);
    }
    .player-title {
        font-size: 0.72rem;
    }
    .player-artist {
        font-size: 0.6rem;
    }
    .player-share-btn {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
        box-shadow: 1px 1px 0 var(--crow-ink);
    }
    .player-btn {
        padding: 4px 8px;
        font-size: 0.6rem;
        box-shadow: 1px 1px 0 var(--crow-ink);
    }
    .player-btn.play-btn {
        width: 34px;
        height: 26px;
        font-size: 0.8rem;
    }
    .volume-slider {
        height: 6px;
    }
    .volume-slider::-webkit-slider-thumb {
        width: 22px;
        height: 22px;
    }
    .volume-slider::-moz-range-thumb {
        width: 22px;
        height: 22px;
    }
}

/* ===== KONAMI EASTER EGG ===== */
.konami-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--crow-black);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: konamiIn 0.15s ease;
    cursor: default;
}
.konami-text {
    font-family: var(--font-display);
    font-size: clamp(3rem, 12vw, 10rem);
    color: var(--crow-eye);
    letter-spacing: 8px;
    text-shadow: 0 0 60px rgba(146, 64, 14, 0.4), 3px 3px 0 var(--crow-ink);
    animation: konamiGlitch 0.35s ease;
    text-align: center;
    padding: 0 20px;
}
@keyframes konamiIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes konamiGlitch {
    0% { transform: translate(0); }
    20% { transform: translate(-5px, 3px); }
    40% { transform: translate(5px, -3px); }
    60% { transform: translate(-3px, -2px); }
    80% { transform: translate(3px, 2px); }
    100% { transform: translate(0); }
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.nav-item {
    transition: all 0.3s ease, text-shadow 0.3s ease;
}
.nav-item:active {
    transform: scale(0.97);
}
.site-logo {
    animation: logoFloat 4s ease-in-out infinite;
}
@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
/* ===== HAUNTED FOOTER GLITCH ===== */
.site-footer {
    position: relative;
    text-align: center;
    margin-top: 48px;
    padding: 8px;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--text-dim);
    opacity: 0.025;
    transition: none;
    pointer-events: none;
    user-select: none;
    overflow: hidden;
}
.site-footer.glitching {
    animation: footerGlitch 0.35s ease-out forwards;
}
.footer-text {
    display: inline-block;
}
.footer-glitch {
    display: none;
    color: var(--violet);
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(220, 38, 38, 0.6);
}
.site-footer.glitching .footer-text {
    opacity: 0;
}
.site-footer.glitching .footer-glitch {
    display: inline-block;
}
@keyframes footerGlitch {
    0%   { opacity: 0.025; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { opacity: 0.025; }
}
