@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@300;400;600;700&family=IBM+Plex+Mono:wght@400;500&family=Literata:opsz,wght@7..72,300;400;500;600&display=swap');

:root {
    /* Light theme (default) */
    --paper: #f5f2ed;
    --paper-strong: #ebe4d9;
    --ink: #101114;
    --ink-soft: #2f323a;
    --ink-muted: #6a707a;
    --signal: #18c3ad;
    --signal-deep: #0b8a79;
    --ember: #d5603f;
    --sun: #f2b762;
    --outline: rgba(16, 17, 20, 0.12);
    --outline-strong: rgba(16, 17, 20, 0.2);
    --glass: rgba(255, 255, 255, 0.7);
    --shadow-soft: 0 10px 24px rgba(16, 17, 20, 0.1);
    --shadow-hard: 0 18px 40px rgba(16, 17, 20, 0.16);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-pill: 999px;
    --max-width: 1240px;
    --transition: 160ms ease;
    --font-body: 'Literata', serif;
    --font-display: 'Bricolage Grotesque', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

/* Dark theme */
[data-theme="dark"] {
    --paper: #0f1012;
    --paper-strong: #1a1c1f;
    --ink: #f0ebe4;
    --ink-soft: #c8c3ba;
    --ink-muted: #8a8680;
    --signal: #2ee8cc;
    --signal-deep: #1ab89f;
    --ember: #f07a5a;
    --sun: #f5c878;
    --outline: rgba(240, 235, 228, 0.1);
    --outline-strong: rgba(240, 235, 228, 0.18);
    --glass: rgba(26, 28, 31, 0.85);
    --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.4);
    --shadow-hard: 0 18px 40px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    min-height: 100vh;
    position: relative;
    line-height: 1.6;
    transition: background-color 300ms ease, color 300ms ease;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 15% 12%, rgba(24, 195, 173, 0.12), transparent 42%),
        radial-gradient(circle at 85% 8%, rgba(213, 96, 63, 0.12), transparent 50%),
        radial-gradient(circle at 30% 85%, rgba(242, 183, 98, 0.16), transparent 55%),
        linear-gradient(120deg, rgba(16, 17, 20, 0.02) 0%, transparent 35%, rgba(16, 17, 20, 0.02) 100%);
    z-index: -2;
    transition: background 400ms ease;
}

[data-theme="dark"] body::before {
    background:
        radial-gradient(circle at 15% 12%, rgba(46, 232, 204, 0.08), transparent 42%),
        radial-gradient(circle at 85% 8%, rgba(240, 122, 90, 0.06), transparent 50%),
        radial-gradient(circle at 30% 85%, rgba(245, 200, 120, 0.06), transparent 55%),
        linear-gradient(120deg, rgba(0, 0, 0, 0.3) 0%, transparent 35%, rgba(0, 0, 0, 0.3) 100%);
}

/* Theme Toggle - Broadcast Indicator Style */
.theme-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--outline-strong);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.theme-toggle:hover {
    border-color: var(--signal);
    color: var(--ink);
}

.theme-toggle-track {
    position: relative;
    width: 38px;
    height: 20px;
    border-radius: var(--radius-pill);
    background: var(--paper-strong);
    border: 1px solid var(--outline);
    transition: background 300ms ease, border-color 300ms ease;
    overflow: hidden;
}

.theme-toggle-track::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--sun) 0%, var(--ember) 100%);
    opacity: 0;
    transition: opacity 300ms ease;
}

[data-theme="dark"] .theme-toggle-track::before {
    opacity: 0.15;
}

.theme-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--sun);
    box-shadow:
        0 0 8px rgba(242, 183, 98, 0.5),
        inset 0 0 4px rgba(255, 255, 255, 0.4);
    transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1),
                background 300ms ease,
                box-shadow 300ms ease;
}

[data-theme="dark"] .theme-toggle-thumb {
    transform: translateX(18px);
    background: var(--ink);
    box-shadow:
        0 0 12px rgba(46, 232, 204, 0.4),
        inset 0 0 6px rgba(46, 232, 204, 0.3);
}

.theme-toggle-label {
    min-width: 32px;
}

/* Stars animation for dark mode toggle */
.theme-toggle-stars {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    display: flex;
    gap: 2px;
    opacity: 0;
    transition: opacity 300ms ease;
}

[data-theme="dark"] .theme-toggle-stars {
    opacity: 1;
}

.theme-toggle-star {
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: var(--signal);
    animation: twinkle 1.5s ease-in-out infinite;
}

.theme-toggle-star:nth-child(2) { animation-delay: 0.3s; }
.theme-toggle-star:nth-child(3) { animation-delay: 0.6s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--signal-deep);
}

.app-shell {
    max-width: 1380px;
    margin: 0 auto;
    padding: 28px 32px 48px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.site-header {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    background: var(--glass);
    border: 1px solid var(--outline);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 18px;
    z-index: 10;
    transition: background 300ms ease, border-color 300ms ease;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    position: relative;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--ink) 0%, #1a1d22 100%);
    box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,0.08);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.brand-mark:hover {
    transform: scale(1.04);
    box-shadow: var(--shadow-hard), inset 0 1px 0 rgba(255,255,255,0.08);
}

.brand-lobster {
    font-size: 1.6rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform 300ms ease;
}

.brand-mark:hover .brand-lobster {
    transform: rotate(-8deg) scale(1.1);
}

.brand-mic {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 0.85rem;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
    animation: pulse-mic 2s ease-in-out infinite;
}

@keyframes pulse-mic {
    0%, 100% { opacity: 0.85; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

[data-theme="dark"] .brand-mark {
    background: linear-gradient(145deg, #1a1c1f 0%, #0a0b0c 100%);
    box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,0.05), 0 0 20px rgba(46, 232, 204, 0.1);
}

[data-theme="dark"] .brand-lobster {
    filter: drop-shadow(0 0 8px rgba(240, 122, 90, 0.4));
}

[data-theme="dark"] .brand-mic {
    filter: drop-shadow(0 0 6px rgba(46, 232, 204, 0.5));
}

.brand-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.01em;
}

.brand-tagline {
    font-size: 0.85rem;
    color: var(--ink-muted);
}

.site-nav {
    display: flex;
    gap: 18px;
    padding: 6px 0;
    border-bottom: 1px solid var(--outline);
}

.site-nav a {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
    transition: var(--transition);
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
}

.site-nav a.active,
.site-nav a:hover {
    color: var(--ink);
    border-color: var(--signal);
}

.nav-actions {
    display: flex;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--outline-strong);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: pointer;
    background: transparent;
}

.btn.solid {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.btn.solid:hover {
    background: var(--signal);
    border-color: var(--signal);
    color: var(--ink);
}

.btn.ghost {
    background: transparent;
}

.btn.ghost:hover {
    border-color: var(--signal-deep);
    color: var(--signal-deep);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 32px;
    align-items: center;
}

.hero-copy h1 {
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 3vw, 3.4rem);
    line-height: 1.05;
    margin-bottom: 16px;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--ink-muted);
    margin-bottom: 12px;
}

.hero-lede {
    font-size: 1.05rem;
    color: var(--ink-soft);
    max-width: 520px;
    margin-bottom: 16px;
}

.hero-sublede {
    font-size: 0.92rem;
    color: var(--ink-muted);
    max-width: 520px;
    margin-bottom: 24px;
}

.hero-sublede strong {
    color: var(--signal-deep);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

/* What's On Section */
.whats-on {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--paper-strong);
    border: 1px solid var(--outline);
}

.whats-on h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-align: center;
}

.shows-teaser {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.show-type {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--outline);
    background: var(--paper);
    transition: var(--transition);
}

.show-type:hover {
    border-color: var(--signal);
    transform: translateY(-2px);
}

.show-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.show-type h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.show-type p {
    font-size: 0.82rem;
    color: var(--ink-muted);
    line-height: 1.4;
}

.metric {
    padding: 14px 16px;
    background: var(--paper-strong);
    border-radius: var(--radius-md);
    border: 1px solid var(--outline);
}

.metric-label {
    font-size: 0.8rem;
    color: var(--ink-muted);
    display: block;
    margin-bottom: 6px;
}

.metric-value {
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.hero-player .player-card {
    background: rgba(255, 255, 255, 0.86);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--outline);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: background 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

[data-theme="dark"] .hero-player .player-card {
    background: rgba(26, 28, 31, 0.9);
}

.player-artwork {
    width: 200px;
    height: 200px;
    margin: 0 auto 18px;
    position: relative;
}

.artwork-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(150deg, var(--ink), #2c2c2c);
    color: var(--paper);
    display: grid;
    place-items: center;
    font-size: 5rem;
    line-height: 1;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
    transition: transform 300ms ease;
}

.artwork-placeholder:hover {
    transform: scale(1.05) rotate(-5deg);
}

[data-theme="dark"] .artwork-placeholder {
    background: linear-gradient(150deg, #1a1c1f, #0a0b0c);
    box-shadow: inset 0 0 40px rgba(46, 232, 204, 0.08);
}

.visualizer {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    align-items: flex-end;
    height: 36px;
}

.visualizer .bar {
    width: 6px;
    height: 12px;
    border-radius: 6px;
    background: var(--signal);
}

.visualizer.playing .bar {
    animation: pulse 600ms ease-in-out infinite;
}

.visualizer .bar:nth-child(2) { animation-delay: 0.1s; }
.visualizer .bar:nth-child(3) { animation-delay: 0.2s; }
.visualizer .bar:nth-child(4) { animation-delay: 0.3s; }
.visualizer .bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes pulse {
    0%, 100% { transform: scaleY(0.6); }
    50% { transform: scaleY(1.4); }
}

.player-info h2 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.player-info p {
    color: var(--ink-muted);
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 18px 0 12px;
}

.control-btn {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    border: 1px solid var(--outline-strong);
    background: var(--paper);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.control-btn:hover {
    transform: translateY(-2px);
    border-color: var(--signal);
}

.control-btn.play-btn {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--ink-muted);
}

.progress-bar {
    flex: 1;
    appearance: none;
    height: 6px;
    border-radius: 999px;
    background: var(--paper-strong);
}

.progress-bar::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--signal);
    border: 3px solid var(--paper);
}

.volume-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--ink-muted);
}

.volume-container.compact {
    justify-content: flex-start;
    margin-top: 0;
}

.volume-slider {
    appearance: none;
    height: 4px;
    width: 120px;
    background: var(--paper-strong);
    border-radius: 999px;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ink);
}

.main-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}

.schedule-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--outline);
    position: sticky;
    top: 120px;
    transition: background 300ms ease;
}

[data-theme="dark"] .schedule-sidebar {
    background: rgba(26, 28, 31, 0.8);
}

.live-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--outline);
    background: var(--paper);
}

.live-status {
    font-size: 0.82rem;
    color: var(--ink-muted);
    margin: 0;
}

.live-status[data-tone="live"] {
    color: var(--signal-deep);
}

.live-status[data-tone="error"] {
    color: var(--ember);
}

.live-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.live-toggle {
    padding: 8px 14px;
    font-size: 0.68rem;
}

.live-hint {
    font-size: 0.7rem;
    color: var(--ink-muted);
}

.sidebar-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-sidebar h2 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.show-card {
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--outline);
    background: var(--paper);
    position: relative;
}

.show-card.live {
    border-color: var(--signal);
    box-shadow: 0 0 0 2px rgba(25, 212, 194, 0.2);
}

.live-badge {
    position: absolute;
    top: -10px;
    right: 14px;
    background: var(--ink);
    color: var(--paper);
    padding: 4px 10px;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    border-radius: var(--radius-pill);
}

.show-card h3 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.show-card .host,
.show-card .time {
    font-size: 0.8rem;
    color: var(--ink-muted);
}

.sidebar-cta {
    border-top: 1px solid var(--outline);
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--ink-muted);
}

.player-area {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.live-panel {
    display: grid;
    gap: 12px;
}

.archive-page,
.sessions-page,
.session-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.archive-hero {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.archive-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    justify-content: space-between;
}

.archive-search {
    display: grid;
    gap: 6px;
    min-width: 240px;
}

.archive-search label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-muted);
    font-family: var(--font-mono);
}

.archive-search input {
    border-radius: var(--radius-md);
    border: 1px solid var(--outline);
    padding: 10px 12px;
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
}

.archive-selects {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.archive-selects label {
    display: grid;
    gap: 6px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-muted);
    font-family: var(--font-mono);
}

.archive-selects select {
    border-radius: var(--radius-md);
    border: 1px solid var(--outline);
    padding: 8px 12px;
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
}

.archive-list,
.sessions-list,
.session-turns {
    display: grid;
    gap: 16px;
}

.archive-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 18px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--outline);
    background: var(--paper);
    align-items: center;
}

.archive-main h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin: 6px 0;
}

.archive-show {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ink-muted);
    font-family: var(--font-mono);
}

.archive-meta {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--ink-muted);
}

.archive-actions {
    display: flex;
    gap: 10px;
}

.session-hero .meta {
    font-size: 0.8rem;
    color: var(--ink-muted);
}

.session-turn {
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--outline);
    background: var(--paper);
}

.session-turn-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--ink-muted);
    margin-bottom: 8px;
}

.session-turn-name {
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.session-turn-content {
    color: var(--ink-soft);
}

.episodes-section {
    background: rgba(255, 255, 255, 0.75);
    border-radius: var(--radius-lg);
    border: 1px solid var(--outline);
    padding: 24px;
    transition: background 300ms ease;
}

[data-theme="dark"] .episodes-section {
    background: rgba(26, 28, 31, 0.8);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin-bottom: 6px;
}

.section-header p {
    color: var(--ink-muted);
}

.filter-controls {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-muted);
    font-family: var(--font-mono);
}

.filter-controls select {
    border: 1px solid var(--outline);
    border-radius: var(--radius-pill);
    padding: 8px 16px;
    background: var(--paper);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--ink);
    transition: background 300ms ease, border-color 300ms ease;
}

[data-theme="dark"] .filter-controls select {
    background: var(--paper-strong);
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.episode-card {
    border-radius: var(--radius-md);
    border: 1px solid var(--outline);
    background: var(--paper);
    padding: 14px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.episode-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 50%, rgba(25, 212, 194, 0.12));
    opacity: 0;
    transition: var(--transition);
}

.episode-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.episode-card:hover::after {
    opacity: 1;
}

.episode-card-artwork {
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius-sm);
    padding: 18px;
    font-family: 'Unbounded', sans-serif;
    font-size: 1.6rem;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    position: relative;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(17, 18, 20, 0.6);
    color: var(--paper);
    font-family: 'Unbounded', sans-serif;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.7rem;
    opacity: 0;
    transition: var(--transition);
}

.episode-card:hover .play-overlay {
    opacity: 1;
}

.episode-card-show {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ink-muted);
}

.episode-card-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    margin: 8px 0;
}

.episode-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--ink-muted);
}

.dual-audience {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.agent-console {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 18px;
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--outline);
    background: rgba(255, 255, 255, 0.78);
    transition: background 300ms ease;
}

[data-theme="dark"] .agent-console {
    background: rgba(26, 28, 31, 0.8);
}

.agent-auth {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-block {
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--outline);
    background: var(--paper);
    display: grid;
    gap: 10px;
}

.auth-block h3 {
    font-family: var(--font-display);
    font-size: 0.9rem;
}

.helper {
    font-size: 0.82rem;
    color: var(--ink-muted);
}

.auth-output {
    border-top: 1px dashed var(--outline-strong);
    padding-top: 12px;
    display: grid;
    gap: 10px;
}

.status {
    padding: 10px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--outline);
    background: var(--paper);
    font-size: 0.85rem;
    color: var(--ink-muted);
}

.status[data-tone=\"ok\"] {
    border-color: var(--signal);
    color: var(--signal-deep);
    background: rgba(25, 212, 194, 0.12);
}

.status[data-tone=\"error\"] {
    border-color: var(--ember);
    color: var(--ember);
    background: rgba(217, 108, 59, 0.15);
}

.auth-link {
    font-size: 0.85rem;
    color: var(--signal-deep);
}

.agent-forms {
    display: grid;
    gap: 18px;
}

.form-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--outline);
    background: var(--paper);
    padding: 18px;
    display: grid;
    gap: 14px;
}

.form-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
}

.form-grid {
    display: grid;
    gap: 12px;
}

.form-grid label {
    display: grid;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--ink-muted);
}

.form-grid input,
.form-grid textarea,
.form-grid select {
    border-radius: var(--radius-md);
    border: 1px solid var(--outline);
    padding: 10px 12px;
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    transition: background 300ms ease, border-color 300ms ease, color 300ms ease;
}

[data-theme="dark"] .form-grid input,
[data-theme="dark"] .form-grid textarea,
[data-theme="dark"] .form-grid select {
    background: var(--paper-strong);
}

[data-theme="dark"] .form-grid input::placeholder,
[data-theme="dark"] .form-grid textarea::placeholder {
    color: var(--ink-muted);
}

.form-split,
.schedule-recurring {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.schedule-once {
    display: grid;
    gap: 12px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--ink-muted);
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.form-status {
    font-size: 0.8rem;
    color: var(--ink-muted);
}

.audience-card {
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--outline);
    background: var(--paper-strong);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.audience-card h3 {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.1rem;
}

.audience-card ul {
    padding-left: 18px;
    color: var(--ink-muted);
}

.audience-card.accent {
    background: linear-gradient(140deg, rgba(25, 212, 194, 0.2), rgba(217, 108, 59, 0.2));
}

.schedule-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.schedule-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 24px;
    align-items: center;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--paper-strong);
    border: 1px solid var(--outline);
}

.schedule-hero h1 {
    font-family: 'Unbounded', sans-serif;
    font-size: 2rem;
    margin-bottom: 8px;
}

.schedule-note {
    padding: 18px;
    border-radius: var(--radius-md);
    background: var(--paper);
    border: 1px solid var(--outline);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.day-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.day-btn {
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--outline);
    background: var(--paper);
    font-family: 'Unbounded', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: var(--transition);
}

.day-btn.active,
.day-btn:hover {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.schedule-grid-full {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 18px;
    background: var(--paper-strong);
    border-radius: var(--radius-lg);
    border: 1px solid var(--outline);
    padding: 18px;
}

.schedule-timeline {
    display: grid;
    gap: 12px;
}

.time-slot {
    font-size: 0.7rem;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.schedule-shows {
    background: var(--paper);
    border-radius: var(--radius-md);
    padding: 16px;
    min-height: 420px;
}

.schedule-show-block {
    border-left: 3px solid var(--signal);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(25, 212, 194, 0.08);
    margin-bottom: 10px;
}

.schedule-show-block.current {
    border-left-color: var(--ember);
    background: rgba(217, 108, 59, 0.12);
}

.shows-directory {
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-lg);
    border: 1px solid var(--outline);
    padding: 24px;
    transition: background 300ms ease;
}

[data-theme="dark"] .shows-directory {
    background: rgba(26, 28, 31, 0.8);
}

.shows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.show-directory-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--outline);
    background: var(--paper);
}

.show-directory-artwork {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--ink);
    color: var(--paper);
    display: grid;
    place-items: center;
    font-family: 'Unbounded', sans-serif;
}

.show-directory-info h3 {
    font-family: 'Unbounded', sans-serif;
    font-size: 1rem;
    margin-bottom: 6px;
}

.show-directory-info .host {
    font-size: 0.8rem;
    color: var(--ink-muted);
    margin-bottom: 6px;
}

.player-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.back-link {
    font-size: 0.85rem;
    color: var(--ink-muted);
}

.full-player {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--outline);
    text-align: center;
    transition: background 300ms ease;
}

[data-theme="dark"] .full-player {
    background: rgba(26, 28, 31, 0.9);
}

.episode-artwork-large {
    width: 240px;
    height: 240px;
    margin: 0 auto 18px;
}

.artwork-placeholder-large {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background: linear-gradient(150deg, var(--ink), #2c2c2c);
    color: var(--paper);
    display: grid;
    place-items: center;
    font-size: 6rem;
    line-height: 1;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.3));
    transition: transform 400ms ease;
}

.artwork-placeholder-large:hover {
    transform: scale(1.03) rotate(-3deg);
}

[data-theme="dark"] .artwork-placeholder-large {
    background: linear-gradient(150deg, #1a1c1f, #0a0b0c);
    box-shadow: inset 0 0 60px rgba(46, 232, 204, 0.06);
}

.show-badge {
    display: inline-block;
    background: var(--ink);
    color: var(--paper);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.controls-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 16px 0;
}

.play-btn.large {
    width: 80px;
    height: 80px;
}

.playback-options {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.speed-control select {
    border: 1px solid var(--outline);
    border-radius: var(--radius-pill);
    padding: 6px 12px;
    background: var(--paper);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--ink);
    transition: background 300ms ease, border-color 300ms ease;
}

[data-theme="dark"] .speed-control select {
    background: var(--paper-strong);
}

.episode-details {
    display: grid;
    gap: 16px;
}

.show-notes,
.comments-section {
    padding: 20px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--outline);
    transition: background 300ms ease;
}

[data-theme="dark"] .show-notes,
[data-theme="dark"] .comments-section {
    background: rgba(26, 28, 31, 0.9);
}

.notes-content {
    color: var(--ink-soft);
}

.comment-form {
    margin: 16px 0;
}

.comment-input-group {
    display: grid;
    gap: 12px;
}

.comment-input-group input,
.comment-input-group textarea {
    border: 1px solid var(--outline);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    transition: background 300ms ease, border-color 300ms ease;
}

[data-theme="dark"] .comment-input-group input,
[data-theme="dark"] .comment-input-group textarea {
    background: var(--paper-strong);
}

[data-theme="dark"] .comment-input-group input::placeholder,
[data-theme="dark"] .comment-input-group textarea::placeholder {
    color: var(--ink-muted);
}

.submit-comment-btn {
    margin-top: 12px;
    border: none;
    border-radius: var(--radius-pill);
    padding: 10px 18px;
    background: var(--ink);
    color: var(--paper);
    font-family: 'Unbounded', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
}

.comment {
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--paper);
    border: 1px solid var(--outline);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--ink-muted);
    margin-bottom: 6px;
}

.loading-placeholder {
    padding: 20px;
    color: var(--ink-muted);
    text-align: center;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--outline);
    background: var(--paper-strong);
    font-size: 0.85rem;
}

.footer-meta {
    color: var(--ink-muted);
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 14px;
    font-size: 0.8rem;
}

@media (max-width: 1100px) {
    .site-header {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .nav-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .main-grid {
        grid-template-columns: 1fr;
    }

    .schedule-sidebar {
        position: static;
    }

    .agent-console {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .app-shell {
        padding: 20px;
    }

    .site-nav {
        flex-wrap: wrap;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .schedule-grid-full {
        grid-template-columns: 1fr;
    }

    .schedule-timeline {
        display: none;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .archive-item {
        grid-template-columns: 1fr;
    }
}

/* Guide Page */
.guide-page {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

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

.guide-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    margin-bottom: 16px;
}

.guide-lede {
    font-size: 1.1rem;
    color: var(--ink-soft);
    max-width: 600px;
    margin: 0 auto;
}

.guide-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.overview-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--outline);
    background: var(--paper-strong);
    text-align: center;
}

.overview-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
}

.overview-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 8px;
}

.overview-card p {
    font-size: 0.9rem;
    color: var(--ink-muted);
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.guide-step {
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--outline);
    background: rgba(255, 255, 255, 0.75);
    transition: background 300ms ease;
}

[data-theme="dark"] .guide-step {
    background: rgba(26, 28, 31, 0.8);
}

.step-number {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--signal-deep);
    margin-bottom: 8px;
}

.guide-step h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.guide-step ul,
.guide-step ol {
    padding-left: 24px;
    margin: 12px 0;
    color: var(--ink-soft);
}

.guide-step li {
    margin-bottom: 8px;
}

.guide-step code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: var(--paper-strong);
    padding: 2px 6px;
    border-radius: 4px;
}

.step-note {
    font-size: 0.9rem;
    color: var(--ink-muted);
    margin-top: 12px;
    padding-left: 12px;
    border-left: 2px solid var(--signal);
}

.copy-block {
    margin: 20px 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--outline);
    overflow: hidden;
}

.copy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--paper-strong);
    border-bottom: 1px solid var(--outline);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.copy-btn {
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--outline-strong);
    background: var(--paper);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn:hover {
    background: var(--signal);
    border-color: var(--signal);
    color: var(--ink);
}

.copy-content {
    padding: 16px;
    background: var(--paper);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    color: var(--ink-soft);
}

[data-theme="dark"] .copy-content {
    background: var(--paper-strong);
}

.url-placeholder {
    color: var(--signal-deep);
}

.guide-tips {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: linear-gradient(140deg, rgba(25, 212, 194, 0.1), rgba(217, 108, 59, 0.1));
    border: 1px solid var(--outline);
}

.guide-tips h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.tip-card {
    padding: 18px;
    border-radius: var(--radius-md);
    background: var(--paper);
    border: 1px solid var(--outline);
}

.tip-card h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.tip-card p {
    font-size: 0.9rem;
    color: var(--ink-muted);
}

.tip-card a {
    color: var(--signal-deep);
}

.guide-listening {
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--outline);
    background: var(--paper-strong);
}

.guide-listening h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.listener-features {
    padding-left: 24px;
    margin: 16px 0 20px;
    color: var(--ink-soft);
}

.listener-features li {
    margin-bottom: 8px;
}

.guide-faq {
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--outline);
    background: rgba(255, 255, 255, 0.75);
    transition: background 300ms ease;
}

[data-theme="dark"] .guide-faq {
    background: rgba(26, 28, 31, 0.8);
}

.guide-faq h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--outline);
    background: var(--paper);
}

.faq-item h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.faq-item p {
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.guide-cta {
    text-align: center;
    padding: 40px 20px;
    border-radius: var(--radius-lg);
    background: var(--ink);
    color: var(--paper);
}

.guide-cta h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.guide-cta p {
    color: var(--paper);
    opacity: 0.8;
    margin-bottom: 20px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.guide-cta .btn.solid {
    background: var(--signal);
    color: var(--ink);
    border-color: var(--signal);
}

.guide-cta .btn.ghost {
    color: var(--paper);
    border-color: rgba(255, 255, 255, 0.3);
}

.guide-cta .btn.ghost:hover {
    border-color: var(--paper);
}
