/* NCP Media Search — New Christendom Press Brand Design System */

:root {
    /* Core palette (HSL from media-compass) */
    --background: hsl(30, 25%, 95%);
    --foreground: hsl(20, 30%, 15%);
    --card: hsl(30, 20%, 92%);
    --card-foreground: hsl(20, 30%, 15%);
    --muted: hsl(25, 12%, 85%);
    --muted-foreground: hsl(20, 10%, 45%);
    --secondary: hsl(20, 15%, 88%);
    --secondary-foreground: hsl(20, 25%, 30%);
    --border: hsl(25, 15%, 80%);
    --accent: hsl(20, 40%, 35%);

    /* Brand — NCP sienna + gold */
    --header-bg: hsl(18, 35%, 25%);
    --header-fg: hsl(38, 60%, 70%);
    --gold: hsl(38, 65%, 55%);
    --gold-light: hsl(38, 50%, 68%);
    --gold-muted: hsl(30, 25%, 75%);

    /* Platform colors */
    --youtube: hsl(0, 80%, 50%);
    --spotify: hsl(141, 63%, 42%);
    --apple: hsl(0, 0%, 45%);
    --buzzsprout: hsl(33, 90%, 55%);
    --subsplash: hsl(210, 65%, 50%);

    --radius: 0.25rem;
    --content-width: 72rem;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-color: var(--border);
}

body {
    font-family: 'Palatino Linotype', 'Palatino', 'Book Antiqua', 'Georgia', serif;
    background: var(--background);
    color: var(--foreground);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    min-height: 100vh;
}

/* ── Header ────────────────────────────────────────────── */

.header-dark {
    background-color: var(--header-bg);
    color: var(--header-fg);
}

.header-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
}

.header-brand {
    font-size: 1.125rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    color: inherit;
}

.header-brand-name {
    font-weight: 600;
    color: var(--gold);
}

.header-brand-suffix {
    font-weight: 300;
    color: var(--gold-light);
}

.header-link {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-light);
    opacity: 0.6;
    text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
}

.header-link:hover {
    color: var(--gold);
    opacity: 1;
}

/* ── Hero Banner ───────────────────────────────────────── */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 280px;
    background-color: var(--header-bg);
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.65) 0%,
        rgba(0,0,0,0.55) 40%,
        rgba(0,0,0,0.75) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 1.5rem;
    animation: hero-fade-in 0.8s ease-out both;
}

@keyframes hero-fade-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-family: 'Cormorant Garamond', 'Palatino Linotype', serif;
    font-size: 2.75rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.hero-subtitle {
    margin-top: 0.625rem;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ── Search Area ───────────────────────────────────────── */

.search-area {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    margin-top: -1.5rem;
    position: relative;
    z-index: 10;
    padding-bottom: 1.5rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: calc(var(--radius) + 2px);
    border: 1.5px solid var(--border);
    background: var(--card);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
    transition: border-color 0.25s, box-shadow 0.25s;
    animation: search-settle 0.6s ease-out 0.4s both;
}

@keyframes search-settle {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.search-box:focus-within {
    border-color: var(--gold);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 0 0 3px hsla(38, 65%, 55%, 0.2), 0 0 20px hsla(38, 65%, 55%, 0.08);
}

.search-icon {
    margin-left: 1rem;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--muted-foreground);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 1rem 0.875rem;
    font-size: 16px;
    font-family: inherit;
    color: var(--foreground);
}

.search-input::placeholder {
    color: var(--muted-foreground);
}

.search-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 0.75rem;
}

.search-count {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    font-variant-numeric: tabular-nums;
}

.kbd {
    display: none;
    align-items: center;
    gap: 2px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--muted);
    padding: 2px 6px;
    font-size: 11px;
    font-family: system-ui, sans-serif;
    color: var(--muted-foreground);
}

@media (min-width: 640px) {
    .kbd { display: inline-flex; }
}

/* ── Suggestion Chips ──────────────────────────────────── */

.suggestions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.suggestion-chip {
    border-radius: calc(var(--radius) + 2px);
    border: 1px solid hsla(38, 40%, 55%, 0.35);
    background: hsla(35, 30%, 40%, 0.08);
    padding: 0.4rem 0.875rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--secondary-foreground);
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.suggestion-chip:hover {
    border-color: var(--gold);
    color: var(--foreground);
    background: hsla(38, 50%, 55%, 0.12);
}

/* ── Divider ───────────────────────────────────────────── */

.divider {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.divider-line {
    border-top: 1px solid var(--border);
}

/* ── Filter Bar ────────────────────────────────────────── */

.results-area {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 1rem 1.5rem 5rem;
}

.filter-bar {
    margin-bottom: 0.5rem;
}

.filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    transition: color 0.2s;
}

.filter-toggle:hover {
    color: var(--foreground);
}

.filter-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--header-bg);
    font-size: 10px;
    font-weight: 500;
}

.filter-options {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 0.5rem;
}

.filter-options.expanded {
    display: flex;
}

.filter-btn {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--card);
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-family: inherit;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.filter-btn:hover {
    color: var(--foreground);
}

.filter-btn.active {
    border-color: hsla(38, 65%, 55%, 0.4);
    background: hsla(38, 65%, 55%, 0.1);
    color: var(--gold);
}

.filter-select {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--card);
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-family: inherit;
    color: var(--foreground);
    cursor: pointer;
    outline: none;
}

.filter-clear {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--muted-foreground);
    transition: color 0.2s;
    font-size: 0.75rem;
    line-height: 1;
}

.filter-clear:hover {
    color: var(--foreground);
}

/* ── Result Cards ──────────────────────────────────────── */

.results-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.result-card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--card);
    padding: 1rem;
    transition: border-color 0.2s;
}

.result-card:hover {
    border-color: hsla(38, 65%, 55%, 0.4);
}

/* Top meta row */
.result-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--muted-foreground);
    flex-wrap: wrap;
}

.meta-dot {
    color: var(--border);
}

/* Platform badge */
.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.platform-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.platform-dot-youtube { background: var(--youtube); }
.platform-dot-spotify { background: var(--spotify); }
.platform-dot-apple { background: var(--apple); }
.platform-dot-buzzsprout_rss,
.platform-dot-buzzsprout { background: var(--buzzsprout); }
.platform-dot-subsplash_rss,
.platform-dot-subsplash { background: var(--subsplash); }

/* Match badge */
.match-badge {
    display: inline-block;
    border-radius: calc(var(--radius) + 2px);
    background: var(--secondary);
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--muted-foreground);
}

/* Confidence */
.confidence {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

/* Timestamp link */
.timestamp-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 11px;
    color: var(--gold);
    text-decoration: none;
}

.timestamp-link:hover {
    text-decoration: underline;
}

.timestamp-link svg {
    width: 10px;
    height: 10px;
}

/* Title */
.result-title {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.375rem;
}

.result-title a {
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.2s;
}

.result-title a:hover {
    color: var(--gold);
}

/* Snippet */
.result-snippet {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem;
}

.result-snippet mark {
    background: none;
    font-weight: 600;
    color: var(--gold);
}

/* Footer meta */
.result-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    row-gap: 0.25rem;
    font-size: 12px;
    color: var(--muted-foreground);
}

.result-footer .meta-dot {
    color: var(--border);
}

.result-footer a {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s;
}

.result-footer a:hover {
    color: var(--gold);
}

/* ── Result Card with Thumbnail ────────────────────────── */

.result-card-inner {
    display: flex;
    gap: 1rem;
}

.result-thumb-link {
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    display: block;
}

.result-thumb {
    width: 120px;
    height: 68px;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
    transition: opacity 0.2s;
}

.result-thumb-link:hover .result-thumb {
    opacity: 0.85;
}

.result-card-body {
    flex: 1;
    min-width: 0;
}

@media (max-width: 640px) {
    .result-card-inner {
        flex-direction: column;
    }
    .result-thumb {
        width: 100%;
        height: auto;
        max-height: 180px;
    }
}

/* ── Episode YouTube Card (search results) ───────────── */

.episode-youtube-card {
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--card);
}

.episode-thumb-link {
    display: block;
}

.episode-thumb {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    display: block;
}

.episode-youtube-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

/* ── No Results ────────────────────────────────────────── */

.no-results {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 3rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* ── Results Footer ────────────────────────────────────── */

.results-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 11px;
    color: var(--muted-foreground);
}

/* ── How It Works ──────────────────────────────────────── */

.how-it-works {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
}

.how-it-works-inner {
    max-width: 52rem;
    margin: 0 auto;
}

.section-heading {
    font-family: 'Cormorant Garamond', 'Palatino Linotype', serif;
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    color: var(--foreground);
    margin-bottom: 2rem;
    letter-spacing: 0.01em;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 1.25rem 1rem;
}

.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: hsla(38, 50%, 55%, 0.1);
    border: 1px solid hsla(38, 40%, 55%, 0.25);
    color: var(--gold);
    margin-bottom: 1rem;
}

.step-icon svg {
    width: 22px;
    height: 22px;
}

.step-title {
    font-family: 'Cormorant Garamond', 'Palatino Linotype', serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 0.825rem;
    line-height: 1.6;
    color: var(--muted-foreground);
}

@media (max-width: 640px) {
    .steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .step {
        padding: 1rem 0;
    }
}

/* ── Recently Added ───────────────────────────────────── */

.recent-section {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 1rem 1.5rem 3rem;
}

.recent-inner {
    max-width: 52rem;
    margin: 0 auto;
}

.recent-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.recent-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.125rem;
    border-radius: calc(var(--radius) + 2px);
    border: 1px solid var(--border);
    background: var(--card);
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.recent-card:hover {
    border-color: hsla(38, 65%, 55%, 0.4);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.recent-series {
    font-family: 'DM Mono', 'Consolas', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
}

.recent-title {
    font-family: 'Source Serif 4', 'Palatino Linotype', serif;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--foreground);
}

.recent-meta {
    font-size: 0.7rem;
    color: var(--muted-foreground);
    margin-top: 0.125rem;
}

@media (max-width: 640px) {
    .recent-grid {
        grid-template-columns: 1fr;
    }
    .recent-section {
        padding: 1rem 1rem 2rem;
    }
    .how-it-works {
        padding: 2rem 1rem 1rem;
    }
}

/* ── Site Footer ──────────────────────────────────────── */

.site-footer {
    background: var(--header-bg);
    color: hsla(38, 40%, 70%, 0.7);
    padding: 2rem 1.5rem;
    margin-top: 1rem;
}

.footer-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-brand-name {
    font-family: 'Cormorant Garamond', 'Palatino Linotype', serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gold-light);
    letter-spacing: 0.05em;
}

.footer-tagline {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: hsla(38, 30%, 60%, 0.5);
}

.footer-links a {
    font-size: 0.75rem;
    color: hsla(38, 40%, 70%, 0.6);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--gold);
}

@media (max-width: 640px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .footer-brand {
        align-items: center;
    }
}

/* ── Episode Detail — Editorial Layout ─────────────────── */

.ep {
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 1.5rem 6rem;
    animation: ep-fade-in 0.5s ease-out;
}

@keyframes ep-fade-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Navigation breadcrumb */
.ep-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 0;
    font-size: 0.8rem;
}

.ep-back {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--gold);
    text-decoration: none;
    font-family: 'Source Serif 4', 'Palatino Linotype', serif;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: gap 0.25s ease, opacity 0.2s;
}

.ep-back:hover {
    gap: 0.5rem;
    opacity: 0.75;
}

.ep-back svg {
    transition: transform 0.25s ease;
}

.ep-back:hover svg {
    transform: translateX(-2px);
}

.ep-nav-sep {
    color: var(--border);
    font-weight: 300;
}

.ep-nav-series {
    color: var(--muted-foreground);
    font-family: 'Source Serif 4', 'Palatino Linotype', serif;
    font-style: italic;
}

/* Masthead */
.ep-masthead {
    padding: 1rem 0 2rem;
    border-bottom: 2px solid var(--foreground);
    margin-bottom: 2rem;
    text-align: center;
}

.ep-kicker {
    font-family: 'DM Mono', 'Consolas', monospace;
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 1rem;
}

.ep-headline {
    font-family: 'Cormorant Garamond', 'Palatino Linotype', serif;
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.15;
    color: var(--foreground);
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
}

.ep-byline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    font-family: 'DM Mono', 'Consolas', monospace;
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--muted-foreground);
    letter-spacing: 0.04em;
}

.ep-date {
    text-transform: uppercase;
}

.ep-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.ep-reading-time svg {
    opacity: 0.5;
}

/* Hero figure */
.ep-hero {
    margin: 0 -1.5rem 2rem;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.ep-hero-link {
    display: block;
    position: relative;
}

.ep-hero-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s;
    filter: saturate(0.85) contrast(1.05);
}

.ep-hero-link:hover .ep-hero-img {
    transform: scale(1.02);
    filter: saturate(1) contrast(1);
}

.ep-hero-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.3s;
}

.ep-hero-play svg {
    width: 56px;
    height: 56px;
    color: white;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.ep-hero-link:hover .ep-hero-play {
    opacity: 1;
}

.ep-hero-link:hover .ep-hero-play svg {
    transform: scale(1.1);
}

/* Platform links */
.ep-platforms {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.ep-platforms-label {
    font-family: 'DM Mono', 'Consolas', monospace;
    font-size: 0.65rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted-foreground);
    margin-right: 0.25rem;
}

.ep-platform {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.875rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: transparent;
    font-family: 'Source Serif 4', 'Palatino Linotype', serif;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--foreground);
    transition: all 0.25s ease;
}

.ep-platform svg {
    opacity: 0.6;
    transition: opacity 0.25s;
}

.ep-platform:hover svg {
    opacity: 1;
}

.ep-platform--youtube:hover {
    border-color: var(--youtube);
    color: var(--youtube);
    background: hsla(0, 80%, 50%, 0.06);
}

.ep-platform--spotify:hover {
    border-color: var(--spotify);
    color: var(--spotify);
    background: hsla(141, 63%, 42%, 0.06);
}

.ep-platform--apple_podcasts:hover {
    border-color: hsl(280, 60%, 55%);
    color: hsl(280, 60%, 55%);
    background: hsla(280, 60%, 55%, 0.06);
}

.ep-platform--buzzsprout_rss:hover {
    border-color: var(--buzzsprout);
    color: var(--buzzsprout);
    background: hsla(33, 90%, 55%, 0.06);
}

.ep-platform--subsplash_rss:hover {
    border-color: var(--subsplash);
    color: var(--subsplash);
    background: hsla(210, 65%, 50%, 0.06);
}

/* Section dividers */
.ep-section {
    margin-bottom: 3rem;
}

.ep-section-rule {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ep-section-rule::before,
.ep-section-rule::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.ep-section-label {
    font-family: 'DM Mono', 'Consolas', monospace;
    font-size: 0.65rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted-foreground);
    flex-shrink: 0;
}

/* Description */
.ep-description {
    font-family: 'Source Serif 4', 'Palatino Linotype', serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--foreground);
    max-width: 40rem;
}

.ep-description a {
    color: var(--gold);
    text-decoration-color: hsla(38, 65%, 55%, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}

.ep-description a:hover {
    text-decoration-color: var(--gold);
}

/* Transcript */
.ep-transcript {
    position: relative;
}

.ep-chunk {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    padding: 0.5rem 0.75rem;
    margin: 0 -0.75rem;
    border-radius: var(--radius);
    transition: background 0.2s ease;
    border-left: 2px solid transparent;
}

.ep-chunk:hover {
    background: hsla(30, 20%, 92%, 0.7);
    border-left-color: var(--gold);
}

.ep-chunk--accent {
    /* subtle marker for every 5th chunk to aid reading orientation */
}

.ep-ts {
    flex-shrink: 0;
    min-width: 64px;
    font-family: 'DM Mono', 'Consolas', monospace;
    font-size: 0.72rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    padding-top: 2px;
}

.ep-ts-link {
    color: var(--gold);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.ep-chunk:hover .ep-ts-link {
    opacity: 1;
}

.ep-ts-link:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ep-text {
    font-family: 'Source Serif 4', 'Palatino Linotype', serif;
    font-size: 0.925rem;
    line-height: 1.7;
    color: var(--muted-foreground);
    transition: color 0.2s;
}

.ep-chunk:hover .ep-text {
    color: var(--foreground);
}

/* ── Episode Detail — Responsive ──────────────────────── */

@media (max-width: 640px) {
    .ep {
        padding: 0 1rem 4rem;
    }

    .ep-headline {
        font-size: 1.75rem;
    }

    .ep-masthead {
        text-align: left;
        padding: 0.75rem 0 1.5rem;
    }

    .ep-byline {
        justify-content: flex-start;
    }

    .ep-hero {
        margin: 0 -1rem 1.5rem;
    }

    .ep-hero-img {
        max-height: 240px;
    }

    .ep-platforms {
        gap: 0.5rem;
    }

    .ep-platform {
        padding: 0.35rem 0.7rem;
        font-size: 0.75rem;
    }

    .ep-chunk {
        flex-direction: column;
        gap: 0.125rem;
        padding: 0.625rem 0.5rem;
        margin: 0 -0.5rem;
    }

    .ep-ts {
        min-width: unset;
    }

    .ep-description {
        font-size: 0.95rem;
    }
}

/* ── Utilities ─────────────────────────────────────────── */

.hidden { display: none !important; }

@media (max-width: 640px) {
    .hero-title { font-size: 2rem; }
    .header-inner { padding: 1rem 1rem; }
    .search-area { padding: 0 1rem; margin-top: -1.25rem; padding-bottom: 1rem; }
    .results-area { padding: 1rem 1rem 3rem; }
}
