/* ============================================
   CSS CUSTOM PROPERTIES — TRIPLE PERSONA SYSTEM
   ============================================ */

:root {
    --transition-speed: 0.6s;
    --transition-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --color-gothic-red: #c41e3a;
    --color-gothic-red-glow: rgba(196, 30, 58, 0.5);
    --color-mynx-purple: #b388d9;
    --color-mynx-purple-glow: rgba(179, 136, 217, 0.5);
}

/* ——— GOTHIX ——— */
[data-persona="gothix"] {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121c;
    --bg-card: #161622;
    --bg-card-hover: #1c1c2e;
    --text-primary: #e8e0f0;
    --text-secondary: #beb4cc;
    --text-muted: #8a7ea0;
    --accent: #c41e3a;
    --accent-glow: rgba(196, 30, 58, 0.35);
    --accent-secondary: #8b1a9e;
    --border-color: rgba(196, 30, 58, 0.15);
    --border-hover: rgba(196, 30, 58, 0.4);
    --metallic-border: linear-gradient(145deg, #4a1215, #8b3030, #c47045, #8b3030, #4a1215);
    --metallic-border-hover: linear-gradient(145deg, #6b1a1e, #c44040, #e8a070, #c44040, #6b1a1e);
    --metallic-glow: rgba(180, 80, 60, 0.15);
    --metallic-glow-hover: rgba(196, 90, 60, 0.3);
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 0 20px var(--metallic-glow);
    --card-shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 40px var(--metallic-glow-hover);
    --nebula-color-1: rgba(196, 30, 58, 0.06);
    --nebula-color-2: rgba(139, 26, 158, 0.04);
    --star-color: rgba(255, 200, 200, 0.8);
    --font-display: 'Unbounded', sans-serif;
    --font-body: 'Cormorant Garamond', serif;
    --card-radius: 4px;
    --tag-radius: 2px;
    --giant-star-core: #8b1a1a;
    --giant-star-mid: rgba(160, 20, 30, 0.6);
    --giant-star-outer: rgba(120, 10, 20, 0.2);
    --giant-star-haze: rgba(196, 30, 58, 0.06);
}

/* ——— BOTH (default) ——— */
[data-persona="both"] {
    --bg-primary: #0b0a12;
    --bg-secondary: #13121e;
    --bg-card: #181626;
    --bg-card-hover: #1e1b30;
    --text-primary: #ece4f4;
    --text-secondary: #c4b8d4;
    --text-muted: #9488a8;
    --accent: #d05a7a;
    --accent-glow: rgba(208, 90, 122, 0.3);
    --accent-secondary: #9a5ec0;
    --border-color: rgba(208, 90, 122, 0.12);
    --border-hover: rgba(208, 90, 122, 0.35);
    --metallic-border: linear-gradient(145deg, #3a2455, #7a50a0, #c9a0e0, #b08ad0, #7a50a0, #3a2455);
    --metallic-border-hover: linear-gradient(145deg, #5a3878, #a070c8, #e0c0f5, #c8a0e8, #a070c8, #5a3878);
    --metallic-glow: rgba(160, 100, 200, 0.12);
    --metallic-glow-hover: rgba(180, 120, 220, 0.25);
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.45), 0 0 20px var(--metallic-glow);
    --card-shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.55), 0 0 40px var(--metallic-glow-hover);
    --nebula-color-1: rgba(196, 30, 58, 0.04);
    --nebula-color-2: rgba(179, 136, 217, 0.04);
    --star-color: rgba(230, 200, 240, 0.8);
    --font-display: 'Unbounded', sans-serif;
    --font-body: 'Quicksand', sans-serif;
    --card-radius: 10px;
    --tag-radius: 6px;
    --giant-star-core: #c8a0e8;
    --giant-star-mid: rgba(160, 100, 200, 0.5);
    --giant-star-outer: rgba(140, 80, 200, 0.15);
    --giant-star-haze: rgba(160, 100, 200, 0.05);
}

/* ——— MINXY ——— */
[data-persona="minxy"] {
    --bg-primary: #0d0b14;
    --bg-secondary: #151220;
    --bg-card: #1a1628;
    --bg-card-hover: #211c34;
    --text-primary: #f0e8f5;
    --text-secondary: #d0c0e0;
    --text-muted: #a090b4;
    --accent: #e890b0;
    --accent-glow: rgba(232, 144, 176, 0.3);
    --accent-secondary: #b388d9;
    --border-color: rgba(232, 144, 176, 0.12);
    --border-hover: rgba(232, 144, 176, 0.35);
    --metallic-border: linear-gradient(145deg, #8a7a60, #c8b898, #f0e8d8, #e8d8c0, #c8b898, #8a7a60);
    --metallic-border-hover: linear-gradient(145deg, #a89878, #e0d0b0, #fff8f0, #f0e0c8, #e0d0b0, #a89878);
    --metallic-glow: rgba(220, 200, 160, 0.1);
    --metallic-glow-hover: rgba(240, 220, 180, 0.22);
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 20px var(--metallic-glow);
    --card-shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 40px var(--metallic-glow-hover);
    --nebula-color-1: rgba(232, 144, 176, 0.06);
    --nebula-color-2: rgba(179, 136, 217, 0.05);
    --star-color: rgba(240, 200, 255, 0.8);
    --font-display: 'Quicksand', sans-serif;
    --font-body: 'Quicksand', sans-serif;
    --card-radius: 16px;
    --tag-radius: 99px;
    --giant-star-core: #ffe4a0;
    --giant-star-mid: rgba(255, 200, 100, 0.5);
    --giant-star-outer: rgba(255, 180, 80, 0.15);
    --giant-star-haze: rgba(255, 200, 120, 0.05);
}

/* ============================================
   RESET & BASE
   ============================================ */

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

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background var(--transition-speed) var(--transition-ease),
                color var(--transition-speed) var(--transition-ease);
}

/* ============================================
   STARFIELD & NEBULA
   ============================================ */

#starfield { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.nebula-glow {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 80% 70% at 22% 10%, var(--nebula-color-1), transparent),
        radial-gradient(ellipse 60% 50% at 35% 25%, var(--nebula-color-2), transparent);
    transition: background var(--transition-speed) var(--transition-ease);
}

/* ============================================
   GIANT STAR (background celestial body)
   ============================================ */

.giant-star {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    /* Positioned upper-left so the glow radiates across the page */
    top: -8vh;
    left: 12vw;
    width: 40vmax;
    height: 40vmax;
    display: flex;
    align-items: center;
    justify-content: center;
}

.star-core {
    position: absolute;
    width: 6vmax;
    height: 6vmax;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        var(--giant-star-core) 0%,
        var(--giant-star-mid) 50%,
        transparent 100%
    );
    box-shadow:
        0 0 40px 10px var(--giant-star-mid),
        0 0 80px 30px var(--giant-star-outer);
    transition:
        background var(--transition-speed) var(--transition-ease),
        box-shadow var(--transition-speed) var(--transition-ease);
    animation: starPulse 6s ease-in-out infinite;
}

.star-corona {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        var(--giant-star-outer) 0%,
        var(--giant-star-haze) 40%,
        transparent 70%
    );
    transition: background var(--transition-speed) var(--transition-ease);
    animation: coronaPulse 8s ease-in-out infinite;
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.9; }
}

@keyframes coronaPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.04); opacity: 1; }
}

/* ============================================
   HEADER & TITLE
   ============================================ */

.site-header {
    position: relative; z-index: 10;
    display: flex; flex-direction: column; align-items: center;
    padding: 3rem 1.5rem 2rem; text-align: center;
}

.site-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(2.2rem, 7vw, 4rem);
    font-weight: 700; letter-spacing: 0.03em; line-height: 1.1;
}

.title-gothic {
    color: var(--color-gothic-red);
    text-shadow: 0 0 30px var(--color-gothic-red-glow);
    transition: opacity var(--transition-speed) var(--transition-ease),
                text-shadow var(--transition-speed) var(--transition-ease);
}

.title-mynx {
    color: var(--color-mynx-purple);
    text-shadow: 0 0 30px var(--color-mynx-purple-glow);
    transition: opacity var(--transition-speed) var(--transition-ease),
                text-shadow var(--transition-speed) var(--transition-ease);
}

/* Gothix → Gothic bright, Mynx dim */
[data-persona="gothix"] .title-gothic {
    opacity: 1;
    text-shadow: 0 0 40px var(--color-gothic-red-glow), 0 0 80px rgba(196, 30, 58, 0.25);
}
[data-persona="gothix"] .title-mynx { opacity: 0.2; text-shadow: none; }

/* Both → both bright */
[data-persona="both"] .title-gothic { opacity: 1; }
[data-persona="both"] .title-mynx { opacity: 1; }

/* Minxy → Mynx bright, Gothic dim */
[data-persona="minxy"] .title-gothic { opacity: 0.2; text-shadow: none; }
[data-persona="minxy"] .title-mynx {
    opacity: 1;
    text-shadow: 0 0 40px var(--color-mynx-purple-glow), 0 0 80px rgba(179, 136, 217, 0.25);
}

.site-subtitle {
    font-family: var(--font-body); font-size: 1.05rem;
    color: var(--text-secondary); margin-top: 0.5rem;
    letter-spacing: 0.15em; text-transform: uppercase;
    transition: color var(--transition-speed) var(--transition-ease),
                font-family var(--transition-speed) var(--transition-ease);
}

/* ============================================
   3-POSITION PERSONA SWITCH
   ============================================ */

.persona-switch {
    margin-top: 2rem; display: flex; align-items: center;
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 99px; padding: 4px; gap: 2px;
    transition: background var(--transition-speed) var(--transition-ease),
                border-color var(--transition-speed) var(--transition-ease);
}

.switch-option {
    position: relative; z-index: 2;
    display: flex; align-items: center; gap: 0.35rem;
    padding: 0.5rem 1.2rem; border: none; border-radius: 99px;
    background: transparent; color: var(--text-muted);
    font-family: 'Unbounded', sans-serif;
    font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase;
    cursor: pointer; white-space: nowrap;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.switch-option:hover { color: var(--text-secondary); }
.switch-option.active { color: var(--bg-primary); }

.switch-option svg { flex-shrink: 0; }

.switch-indicator {
    position: absolute; z-index: 1; top: 4px;
    height: calc(100% - 8px); border-radius: 99px;
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    transition: left var(--transition-speed) var(--transition-ease),
                width var(--transition-speed) var(--transition-ease),
                background var(--transition-speed) var(--transition-ease),
                box-shadow var(--transition-speed) var(--transition-ease);
    pointer-events: none;
}

/* ============================================
   LAYOUT & SIDEBAR
   ============================================ */

.main-content {
    position: relative; z-index: 10;
    max-width: 1200px; margin: 0 auto; padding: 0 1.5rem 4rem;
    display: flex; gap: 1.5rem; align-items: flex-start;
}

.sidebar-toggle {
    display: none; position: fixed; top: 1rem; left: 1rem; z-index: 100;
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--bg-secondary); border: 1px solid var(--border-color);
    color: var(--text-secondary); cursor: pointer;
    align-items: center; justify-content: center;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}
.sidebar-toggle:hover { color: var(--accent); border-color: var(--accent); }

.sidebar {
    position: sticky; top: 1.5rem;
    width: 220px; min-width: 220px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 1.25rem;
    display: flex; flex-direction: column; gap: 1.25rem;
    transition: background var(--transition-speed) var(--transition-ease),
                border-color var(--transition-speed) var(--transition-ease),
                border-radius var(--transition-speed) var(--transition-ease);
}

.sidebar-heading {
    font-family: var(--font-display); font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 0.6rem;
}

.sidebar-label {
    display: block; font-family: var(--font-display); font-size: 0.6rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 0.5rem; margin-top: 0.75rem;
}
.sidebar-label:first-of-type { margin-top: 0; }

.sidebar-divider {
    height: 1px; background: var(--border-color);
    transition: background var(--transition-speed) var(--transition-ease);
}

.category-list { display: flex; flex-direction: column; gap: 0.3rem; }

.category-btn {
    font-family: var(--font-display); font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.04em; text-align: left;
    padding: 0.45rem 0.75rem; border-radius: var(--tag-radius);
    border: 1px solid transparent; background: transparent;
    color: var(--text-secondary); cursor: pointer;
    transition: all 0.2s ease;
}
.category-btn:hover { background: rgba(255, 255, 255, 0.04); color: var(--text-primary); }
.category-btn.active {
    background: var(--accent); color: var(--bg-primary);
    border-color: var(--accent);
}

/* Cards per row */
.cards-per-row { display: flex; gap: 0.3rem; }

.cpr-btn {
    font-family: var(--font-display); font-size: 0.7rem; font-weight: 600;
    flex: 1; padding: 0.4rem 0; text-align: center;
    border-radius: var(--tag-radius);
    border: 1px solid var(--border-color); background: transparent;
    color: var(--text-secondary); cursor: pointer;
    transition: all 0.2s ease;
}
.cpr-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }
.cpr-btn.active { background: var(--accent); border-color: var(--accent); color: var(--bg-primary); }

/* Content area */
.content-area { flex: 1; min-width: 0; }

/* Grid column overrides */
.audio-grid.cols-1 { grid-template-columns: 1fr; }
.audio-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.audio-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ============================================
   ACCESSIBILITY WIDGET
   ============================================ */

.a11y-widget {
    position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 100;
    display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem;
}

.a11y-toggle {
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--bg-secondary); border: 1px solid var(--border-color);
    color: var(--text-secondary); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    -webkit-tap-highlight-color: transparent;
}
.a11y-toggle:hover { color: var(--accent); border-color: var(--accent); }

.a11y-menu {
    background: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: var(--card-radius); padding: 0.75rem;
    display: flex; flex-direction: column; gap: 0.4rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    opacity: 0; pointer-events: none;
    transform: translateY(8px);
    transition: all 0.25s ease;
}
.a11y-menu.open {
    opacity: 1; pointer-events: auto; transform: translateY(0);
}

.a11y-menu-label {
    font-family: var(--font-display); font-size: 0.6rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 0.15rem;
}

.a11y-size-btn {
    font-family: var(--font-display); font-size: 0.75rem; font-weight: 600;
    padding: 0.4rem 1.2rem; text-align: center;
    border-radius: var(--tag-radius);
    border: 1px solid var(--border-color); background: transparent;
    color: var(--text-secondary); cursor: pointer;
    transition: all 0.2s ease;
}
.a11y-size-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }
.a11y-size-btn.active { background: var(--accent); border-color: var(--accent); color: var(--bg-primary); }

/* ============================================
   CONTROLS
   ============================================ */

.controls { display: flex; gap: 1rem; margin-bottom: 2rem; }

.search-wrapper { flex: 1; position: relative; }

.search-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px; color: var(--text-muted); pointer-events: none;
}

.search-input {
    width: 100%; padding: 0.75rem 1rem 0.75rem 2.8rem;
    font-family: var(--font-body); font-size: 0.95rem;
    color: var(--text-primary); background: var(--bg-secondary);
    border: 1px solid var(--border-color); border-radius: var(--card-radius);
    outline: none; transition: all 0.3s ease;
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

.sort-select {
    padding: 0.75rem 1rem; font-family: var(--font-body); font-size: 0.95rem;
    color: var(--text-primary); background: var(--bg-secondary);
    border: 1px solid var(--border-color); border-radius: var(--card-radius);
    outline: none; cursor: pointer; transition: all 0.3s ease;
}
.sort-select:focus { border-color: var(--accent); }

/* ============================================
   AUDIO CARDS
   ============================================ */

.audio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }

.audio-card {
    background:
        linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        var(--metallic-border) border-box;
    border: 1.5px solid transparent;
    border-radius: var(--card-radius); padding: 1.4rem 1.5rem;
    display: flex; flex-direction: column; gap: 0.75rem;
    box-shadow: var(--card-shadow);
    transition: background var(--transition-speed) var(--transition-ease),
                border-radius var(--transition-speed) var(--transition-ease),
                box-shadow var(--transition-speed) var(--transition-ease),
                transform 0.3s ease,
                opacity 0.35s ease;
}

/* Card entrance for truly new cards */
.audio-card.entering {
    animation: cardFadeIn 0.4s ease both;
}

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

/* Card exit */
.audio-card.exiting {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.audio-card:hover {
    background:
        linear-gradient(var(--bg-card-hover), var(--bg-card-hover)) padding-box,
        var(--metallic-border-hover) border-box;
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-3px);
}

/* Inner content wrapper for crossfade */
.card-inner {
    display: flex; flex-direction: column; gap: 0.75rem;
    flex: 1;
    transition: opacity 0.3s ease;
}
.card-inner.fade-out { opacity: 0; }
.card-inner.fade-in { opacity: 1; }

.card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; }

.card-title {
    font-family: var(--font-display); font-size: 1rem; font-weight: 600;
    color: var(--text-primary); line-height: 1.35;
    transition: font-family var(--transition-speed) var(--transition-ease);
}

.card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.card-tag {
    font-family: var(--font-body); font-size: 0.75rem;
    padding: 0.2rem 0.6rem; border-radius: var(--tag-radius);
    background: rgba(255, 255, 255, 0.07); color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-radius var(--transition-speed) var(--transition-ease), color 0.3s ease;
}

.card-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem; color: var(--text-secondary); }
.card-meta span { display: flex; align-items: center; gap: 0.3rem; }

.card-links { display: flex; gap: 0.6rem; margin-top: auto; padding-top: 0.75rem; justify-content: center; }

.card-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 72px; height: 38px;
    text-decoration: none; border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
}

.link-reddit {
    color: rgba(255, 120, 50, 0.55);
    background: rgba(255, 90, 0, 0.06);
}
.link-reddit:hover {
    color: #ff6a33;
    background: rgba(255, 90, 0, 0.15);
    border-color: rgba(255, 90, 0, 0.3);
    box-shadow: 0 0 12px rgba(255, 90, 0, 0.15);
}

.link-patreon {
    color: rgba(255, 90, 90, 0.55);
    background: rgba(255, 66, 77, 0.06);
}
.link-patreon:hover {
    color: #ff6a77;
    background: rgba(255, 66, 77, 0.15);
    border-color: rgba(255, 66, 77, 0.3);
    box-shadow: 0 0 12px rgba(255, 66, 77, 0.15);
}

/* ============================================
   EMPTY STATE & FOOTER
   ============================================ */

.empty-state {
    text-align: center; padding: 4rem 1rem;
    color: var(--text-muted); font-family: var(--font-display); font-size: 1.1rem;
}

.site-footer {
    position: relative; z-index: 10; text-align: center;
    padding: 2rem 1rem 3rem; color: var(--text-muted); font-size: 0.85rem;
}
.constellation-divider {
    display: flex; justify-content: center; gap: 0.6rem; margin-bottom: 1rem;
    color: var(--accent); font-size: 0.7rem; opacity: 0.5; letter-spacing: 0.3em;
}
.site-footer strong { color: var(--accent); }

/* ============================================
   TEXT SIZE CLASSES
   ============================================ */

.text-size-12 .card-title { font-size: 0.82rem; }
.text-size-12 .card-tag { font-size: 0.62rem; }
.text-size-12 .card-meta { font-size: 0.72rem; }

.text-size-14 .card-title { font-size: 1rem; }
.text-size-14 .card-tag { font-size: 0.75rem; }
.text-size-14 .card-meta { font-size: 0.85rem; }

.text-size-16 .card-title { font-size: 1.15rem; }
.text-size-16 .card-tag { font-size: 0.85rem; padding: 0.22rem 0.65rem; }
.text-size-16 .card-meta { font-size: 0.95rem; }

.text-size-18 .card-title { font-size: 1.3rem; }
.text-size-18 .card-tag { font-size: 0.95rem; padding: 0.25rem 0.7rem; }
.text-size-18 .card-meta { font-size: 1.05rem; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 860px) {
    .sidebar-toggle { display: flex; }

    .sidebar {
        position: fixed; top: 0; left: 0; bottom: 0; z-index: 90;
        width: 260px; min-width: 260px;
        border-radius: 0; border-left: none; border-top: none; border-bottom: none;
        padding: 4rem 1.25rem 1.5rem;
        transform: translateX(-100%);
        transition: transform 0.35s var(--transition-ease),
                    background var(--transition-speed) var(--transition-ease);
        overflow-y: auto;
    }
    .sidebar.open { transform: translateX(0); }

    .sidebar-backdrop {
        position: fixed; inset: 0; z-index: 80;
        background: rgba(0, 0, 0, 0.5); opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s ease;
    }
    .sidebar-backdrop.visible { opacity: 1; pointer-events: auto; }

    .main-content { flex-direction: column; padding-top: 3.5rem; }
    .content-area { width: 100%; }
}

@media (max-width: 600px) {
    .audio-grid { grid-template-columns: 1fr !important; }
    .controls { flex-direction: column; }
    .site-header { padding: 2rem 1rem 1.5rem; }
    .site-title { font-size: 2rem; }
    .switch-option { padding: 0.45rem 0.8rem; font-size: 0.6rem; }
}
