/* SEO Cast. Values ported 1:1 from design/Main.dc.html. */
:root {
  --coral: #FE5958;
  --coral-text: #C8352F;
  --ink: #2A0F0E;
  --ink-card: #3A1A18;
  --bg: #FFF7F4;
  --white: #FFFFFF;
  --muted: #6B5552;
  --muted-2: #5A4542;
  --hairline: #E8D3CE;
  --track: #F3DFDA;
  --chapter-active: #FFE4DE;
  --strip: #FFF4F1;
  --heading: Montserrat, sans-serif;
}

/* ---------- Global (from the design's helmet) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 16px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body { margin: 0; background: var(--bg); }
a { color: var(--coral-text); }
a:hover { color: #8F201C; }
@media (hover: hover) { .ep-row:hover { background: #FFEDE8; } }
.navlinks a { color: var(--white); text-decoration: none; }
.navlinks a:hover { color: var(--ink); }
button:focus-visible, a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
input, textarea { font: inherit; }
input:focus, textarea:focus { outline: 3px solid var(--ink); outline-offset: 1px; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.page { font-family: Inter, system-ui, sans-serif; color: var(--ink); background: var(--bg); width: 100%; overflow-x: hidden; }
.wrap { max-width: 1200px; margin: 0 auto; }
.card { background: var(--white); border-radius: 20px; }

/* ---------- Shared pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: inherit; font-weight: 600; font-size: 15px; padding: 12px 20px; border-radius: 999px; min-height: 44px; cursor: pointer; }
.pill-dark { background: var(--ink); color: var(--white); border: none; }
.pill-dark:hover { color: var(--white); }
.pill-outline { background: transparent; border: 2px solid var(--ink); color: var(--ink); padding: 10px 20px; }
.pill-outline:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { background: var(--coral); position: relative; padding: 0 24px 190px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 120px), 0 100%); }
.nav { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; flex-wrap: wrap; position: relative; }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { display: block; height: 52px; width: auto; }
.navlinks { display: flex; align-items: center; gap: 32px; font-weight: 600; font-size: 15px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-dark { background: var(--ink); color: var(--white); text-decoration: none; font-weight: 600; font-size: 15px; padding: 13px 22px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.btn-dark:hover { color: var(--white); }
.nav-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 2px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }

.hero-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 48px; }
.hero-copy { flex: 1 1 520px; min-width: 0; }
.hero-eyebrow { margin: 0 0 20px; font-weight: 700; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink); }
.hero-h1 { margin: 0; font-family: var(--heading); font-weight: 900; font-size: clamp(36px, 4.4vw, 62px); line-height: 1.02; letter-spacing: -1.5px; color: var(--white); }
.hero-intro { margin: 28px 0 0; font-size: 19px; line-height: 1.6; max-width: 540px; color: var(--ink); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-cover { flex: 0 1 420px; min-width: 260px; position: relative; padding: 22px; }
.bracket { position: absolute; width: 46%; height: 46%; }
.bracket-tl { left: 0; top: 0; border-left: 4px solid var(--white); border-top: 4px solid var(--white); }
.bracket-br { right: 0; bottom: 0; border-right: 4px solid var(--white); border-bottom: 4px solid var(--white); }
.hero-cover img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; box-shadow: 0 30px 60px rgba(42,15,14,0.28); }

.hero-hosts { display: none; max-width: 640px; margin: 40px auto 0; }
.hero-hosts img { display: block; width: 100%; height: auto; -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent); }

/* ---------- Latest episode ---------- */
.latest { padding: 0 24px; margin-top: -150px; position: relative; }
.latest-card { max-width: 1200px; margin: 0 auto; box-shadow: 0 24px 60px rgba(42,15,14,0.14); padding: 28px; }
.latest-top { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.pl-thumb { width: 112px; height: 112px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; }
.latest-main { flex: 1 1 380px; min-width: 0; }
.latest-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.badge { background: var(--ink); color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.latest-code { font-size: 14px; font-weight: 600; color: var(--coral-text); }
.latest-date { font-size: 14px; color: var(--muted); }
.latest-title { margin: 0; font-family: var(--heading); font-weight: 800; font-size: 24px; line-height: 1.25; letter-spacing: -0.3px; }
.latest-title a { color: inherit; text-decoration: none; }
.latest-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.latest-teaser { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted-2); }
.controls { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.pl-skip { width: 44px; height: 44px; border: none; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.play-btn { width: 56px; height: 56px; border-radius: 50%; border: none; background: var(--coral); cursor: pointer; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; padding: 0; }
.play-btn-sm { width: 48px; height: 48px; }
.time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar { flex: 1 1 auto; height: 6px; background: var(--track); border-radius: 999px; position: relative; min-width: 60px; cursor: pointer; }
.bar-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--coral); border-radius: 999px; }

.notes-btn { flex: 0 0 auto; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; border: 2px solid var(--ink); background: transparent; color: var(--ink); padding: 10px 18px 10px 20px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.notes-btn[aria-expanded="true"] { background: var(--ink); color: var(--white); }
.notes-btn svg { transition: transform .2s ease; }
.notes-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Play/pause icon swap: .is-playing on the episode container */
.i-pause { display: none; }
.is-playing .i-pause { display: block; }
.is-playing .i-play { display: none; }

/* ---------- Shownotes + chapters (latest card and open rows) ---------- */
.notes-panel { border-top: 1px solid #F0DCD7; margin-top: 28px; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 32px 56px; }
.notes-col { flex: 1 1 380px; min-width: 0; }
.chapters-col { flex: 1 1 320px; min-width: 0; }
.panel-label { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--coral-text); }
.summary { margin: 0; font-size: 16px; line-height: 1.7; color: #3D2724; }
.facts { margin: 22px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14px; line-height: 1.5; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--muted-2); }
.springcast-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-weight: 600; font-size: 15px; }
.chapters { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.chapter { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 14px; padding: 10px 12px; border: none; border-radius: 10px; background: transparent; color: var(--ink); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
@media (hover: hover) { .chapter:not(.is-active):hover { background: #FFEDE8; } }
.ch-t { flex: 0 0 52px; font-weight: 700; color: var(--coral-text); font-variant-numeric: tabular-nums; }
.ch-label { flex: 1 1 auto; font-weight: 500; }
.ch-now { display: none; flex: 0 0 auto; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--white); background: var(--ink); padding: 3px 8px; border-radius: 999px; }
.chapter.is-active { background: var(--chapter-active); }
.chapter.is-active .ch-label { font-weight: 700; }
.chapter.is-active .ch-now { display: inline-block; }
.no-chapters { margin: 0; font-size: 15px; color: var(--muted-2); }

/* ---------- Episodes ---------- */
.episodes { padding: 120px 24px 100px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.eyebrow { margin: 0 0 12px; font-weight: 700; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--coral-text); }
.eyebrow-accent { color: var(--coral); }
.h2 { margin: 0; font-family: var(--heading); font-weight: 900; font-size: clamp(36px, 4.4vw, 56px); line-height: 1; letter-spacing: -1.5px; }
.section-link { font-weight: 600; font-size: 16px; }

.ep-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ep { border-bottom: 1px solid var(--hairline); background: transparent; border-radius: 0; box-shadow: none; }
.ep.is-open { background: var(--white); border-radius: 16px; box-shadow: 0 18px 40px rgba(42,15,14,0.10); }
.ep-row { width: 100%; border: none; background: transparent; font: inherit; text-align: left; color: var(--ink); cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding: 26px 12px; border-radius: 16px; }
.ep-num { flex: 0 0 96px; font-family: var(--heading); font-weight: 900; font-size: 44px; line-height: 1; color: var(--coral); letter-spacing: -1px; }
.ep-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ep-guest { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.now-tag { display: none; font-size: 11px; letter-spacing: 1px; color: var(--white); background: var(--coral-text); padding: 3px 8px; border-radius: 999px; }
.is-playing .now-tag { display: inline-block; }
.ep-title { font-family: var(--heading); font-weight: 800; font-size: 20px; line-height: 1.3; }
.ep-date { flex: 0 0 auto; font-size: 14px; color: var(--muted); }
.ep-circle { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; display: flex; align-items: center; justify-content: center; }
.is-playing .ep-circle { border-color: var(--coral-text); background: var(--coral-text); }

.ep-panel { padding: 0 24px 32px 140px; }
.strip { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--strip); border-radius: 14px; }
.ep-panel .notes-panel { border-top: none; margin-top: 28px; padding-top: 0; }
.ep-panel .notes-col { flex-basis: 360px; }
.ep-panel .chapters-col { flex-basis: 300px; }

.feed-status { padding: 26px 12px; margin: 0; color: var(--muted-2); font-size: 16px; }

/* ---------- Episode page (aflevering.php) ---------- */
.ep-h1 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -1px; max-width: 900px; }
.hero-ep .hero-intro { max-width: 720px; }
.crumbs { margin: 0 0 20px; font-size: 14px; font-weight: 600; color: var(--ink); }
.crumbs a { color: var(--ink); }
.crumbs a:hover { color: var(--white); }
.summary + .summary { margin-top: 14px; }
.listen-also { margin: 22px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted-2); }
a.ep-link { text-decoration: none; }
a.ep-link:hover { color: var(--ink); }
@media (hover: hover) { a.ep-link:hover { background: #FFEDE8; } }
.more-wrap { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- Hosts ---------- */
.hosts { background: var(--ink); color: var(--white); padding: 110px 24px; }
.hosts-head { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-end; margin-bottom: 56px; }
.hosts-title { flex: 1 1 420px; }
.hosts-intro { flex: 1 1 420px; margin: 0; font-size: 17px; line-height: 1.65; color: #E9DCD9; }
.hosts-intro a, .host-links a { color: var(--white); }
.hosts-intro a:hover, .host-links a:hover { color: var(--coral); }
.hosts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.host { background: var(--ink-card); border-radius: 20px; padding: 32px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.host-avatar { width: 160px; height: 160px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; background: var(--coral); }
.host-avatar img { display: block; width: 180%; max-width: none; height: auto; }
.host-hans { margin-left: -6%; margin-top: -52%; }
.host-martijn { margin-left: -80%; margin-top: -52%; }
.host-body { flex: 1 1 220px; min-width: 0; }
.host-name { margin: 0; font-family: var(--heading); font-weight: 800; font-size: 26px; }
.host-role { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--coral); }
.host-bio { margin: 16px 0 0; font-size: 16px; line-height: 1.6; color: #E9DCD9; }
.host-links { display: flex; gap: 16px; margin-top: 18px; font-size: 15px; font-weight: 600; }

/* ---------- Guest form ---------- */
.guest { padding: 110px 24px; }
.guest-inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.guest-copy { flex: 1 1 380px; min-width: 0; }
.guest-intro { margin: 24px 0 0; font-size: 18px; line-height: 1.65; color: #4A3533; }
.guest-bullets { margin: 28px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.guest-bullets li { display: flex; gap: 12px; align-items: center; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); flex: 0 0 auto; }
.form-card { flex: 1 1 480px; min-width: 0; padding: 36px; box-shadow: 0 20px 50px rgba(42,15,14,0.1); }
.guest-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea { border: 1.5px solid #CDB5B0; border-radius: 10px; padding: 13px 14px; font-size: 16px; background: #FFFBFA; color: var(--ink); width: 100%; }
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--coral-text); }
.field-error, .form-error { margin: 0; font-size: 14px; font-weight: 600; color: var(--coral-text); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit-btn { margin-top: 6px; background: var(--ink); color: var(--white); border: none; font: inherit; font-weight: 700; font-size: 16px; padding: 16px 24px; border-radius: 999px; min-height: 52px; cursor: pointer; }
.submit-btn[disabled] { opacity: .6; cursor: progress; }

.thanks { text-align: center; padding: 48px 8px; }
.thanks-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--coral); margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.thanks-title { margin: 24px 0 0; font-family: var(--heading); font-weight: 800; font-size: 26px; }
.thanks-title:focus { outline: none; }
.thanks-text { margin: 10px 0 0; font-size: 16px; line-height: 1.6; color: var(--muted-2); }
.thanks-reset { margin-top: 24px; }

/* ---------- Footer ---------- */
.footer { background: var(--coral); padding: 64px 24px 40px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 40px; }
.footer-brand { flex: 1 1 320px; }
.footer-brand img { display: block; height: 84px; width: auto; }
.footer-brand p { margin: 18px 0 0; font-size: 16px; line-height: 1.6; max-width: 380px; color: var(--ink); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 48px; font-size: 15px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--ink); }
.footer-col a:hover { color: var(--white); }
.footer-label { font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: 13px; color: var(--ink); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1.5px solid rgba(42,15,14,0.35); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink); }

/* ---------- Responsive (breakpoints from the design) ---------- */
@media (max-width: 1023px) {
  .hero-cover { display: none !important; }
  .hero-hosts { display: block !important; }
  .hero-h1 { font-size: clamp(36px, 7vw, 64px) !important; }
  .hero { padding-bottom: 135px !important; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 60px), 0 100%) !important; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .navlinks { display: none !important; }
  .navlinks.is-open { display: flex !important; position: absolute; z-index: 10; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); border-radius: 16px; padding: 8px; box-shadow: 0 18px 40px rgba(42,15,14,0.25); }
  .navlinks.is-open a { padding: 12px 16px; min-height: 44px; border-radius: 10px; }
  .navlinks.is-open a:hover { color: var(--white); background: var(--ink-card); }
  .ep-panel { padding: 0 12px 24px !important; }
  .ep-num { flex-basis: 100% !important; font-size: 32px !important; }
}
@media (max-width: 560px) {
  .pl-thumb, .pl-skip { display: none !important; }
  .hero { padding-bottom: 140px !important; }
  .hero-hosts { margin-top: 28px !important; }
  .nav-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
