/* ---------- EPISODES PAGE ---------- */
.ep-head { max-width: 1180px; margin: 0 auto; padding: 90px 40px 40px; }
.ep-head .kicker { font-family: var(--font-marker), cursive; font-size: 22px; color: var(--violet); display: inline-block; transform: rotate(calc(-1.5deg * var(--mess))); }
.ep-head h1 { font-family: var(--font-display), sans-serif; text-transform: uppercase; font-size: clamp(56px, 10vw, 148px); line-height: 0.9; margin: 12px 0 0; }
/* wide enough for the line to sit on one row on a desktop; it still wraps
   on narrow screens, where one line would not fit at any sensible size */
.ep-head .sub { font-family: var(--font-hand), cursive; font-size: clamp(26px, 3.2vw, 40px); color: var(--violet); margin-top: 18px; max-width: 100%; }
.ep-head .schedule { margin-top: 26px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(15,15,15,0.6); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ep-head .schedule b { color: var(--ink); }
.ep-head .schedule .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--violet); }

/* featured (episode 001) */
.ep-featured { max-width: 1180px; margin: 30px auto 0; padding: 0 40px; }
.ep-featured .fcard {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center;
  background: var(--paper); padding: 48px; box-shadow: 0 22px 50px rgba(15,15,15,0.16);
  position: relative;
}
.ep-featured .fcard::after { content: "LATEST EPISODE"; position: absolute; top: 22px; right: 26px; font-family: var(--font-marker), cursive; font-size: 15px; color: var(--violet); transform: rotate(3deg); }
.ep-featured .fmedia { position: relative; }
.ep-featured .fmedia .polaroid { --r: -3deg; }
.ep-featured .num-sticker { position: absolute; z-index: 6; top: -24px; left: -24px; width: 86px; height: 86px; border-radius: 50%; background: var(--lavender); color: var(--ink); display: grid; place-items: center; align-content: center; gap: 0; line-height: 0.88; font-family: var(--font-display), sans-serif; font-size: 30px; box-shadow: 0 8px 18px rgba(15,15,15,0.25); transform: rotate(calc(-8deg * var(--mess))); }
/* sits directly on top of the number, no gap between them */
.ep-featured .num-sticker small { display: block; font-size: 15px; letter-spacing: 0.14em; line-height: 0.9; margin: 0; }
.ep-featured .fbody .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.ep-featured .fbody .date { font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(15,15,15,0.55); }
.ep-featured .fbody h2 { font-family: var(--font-display), sans-serif; text-transform: uppercase; font-size: clamp(34px, 4.4vw, 62px); line-height: 0.98; }
.ep-featured .fbody .guest { margin-top: 14px; font-size: 17px; }
.ep-featured .fbody .guest b { font-weight: 700; }
.ep-featured .fbody .desc { margin-top: 16px; font-size: 16.5px; line-height: 1.65; color: rgba(15,15,15,0.8); max-width: 52ch; }
.ep-featured .fbody .actions { margin-top: 28px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.ep-featured .fbody .dur { font-family: var(--font-hand), cursive; font-size: 22px; color: var(--violet); }

/* section label */
.list-label { max-width: 1180px; margin: 84px auto 0; padding: 0 40px; display: flex; align-items: center; gap: 18px; }
.list-label h3 { font-family: var(--font-display), sans-serif; text-transform: uppercase; font-size: clamp(24px, 3vw, 40px); }
.list-label .line { flex: 1; height: 2px; background: rgba(15,15,15,0.18); }

/* episode list */
.ep-list { max-width: 1180px; margin: 34px auto 0; padding: 0 40px; display: grid; gap: 46px; }
.ep-card { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; }
.ep-card:nth-child(even) { grid-template-columns: 1fr 260px; }
.ep-card:nth-child(even) .ep-media { order: 2; }
.ep-media { position: relative; }
.ep-media .polaroid { --r: -2.5deg; }
.ep-card:nth-child(even) .ep-media .polaroid { --r: 2.5deg; }
.ep-card:nth-child(3n) .ep-media .polaroid { --r: 1.8deg; }
.ep-media .num-sticker {
  position: absolute; z-index: 6; top: -18px; left: -16px; width: 60px; height: 60px; border-radius: 50%;
  background: var(--ink); color: var(--cream); display: grid; place-items: center;
  font-family: var(--font-display), sans-serif; font-size: 22px; box-shadow: 0 6px 14px rgba(15,15,15,0.3);
  transform: rotate(calc(-9deg * var(--mess)));
}
.ep-card:nth-child(even) .ep-media .num-sticker { left: auto; right: -16px; }
.ep-body .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.ep-body .date { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(15,15,15,0.5); }
.ep-body h2 { font-family: var(--font-display), sans-serif; text-transform: uppercase; font-size: clamp(28px, 3.4vw, 46px); line-height: 1; }
.ep-body h2 a { color: inherit; text-decoration: none; }
.ep-body h2 a:hover { color: var(--violet); }
.ep-body .guest { margin-top: 12px; font-size: 16px; color: rgba(15,15,15,0.85); }
.ep-body .guest b { font-weight: 700; }
.ep-body .desc { margin-top: 12px; font-size: 15.5px; line-height: 1.6; color: rgba(15,15,15,0.72); max-width: 58ch; }
.ep-body .asked { margin-top: 14px; font-family: var(--font-hand), cursive; font-size: 22px; color: var(--violet); max-width: 40ch; }
.ep-body .actions { margin-top: 20px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.ep-body .actions .dur { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(15,15,15,0.5); }
.ep-body .actions .sn-link { font-family: var(--font-display), sans-serif; text-transform: uppercase; font-size: 14px; color: var(--ink); text-decoration: none; border-bottom: 3px solid var(--lavender); padding-bottom: 2px; }
.ep-body .actions .sn-link:hover { color: var(--violet); }

/* upcoming (not-yet-released) teaser cards */
.ep-card.upcoming .polaroid .ph span { opacity: 0.55; }
.ep-card.upcoming .polaroid { --r: -1.5deg; }
.ep-card.upcoming .ep-body h2 { color: rgba(15,15,15,0.55); }
.ep-card.upcoming .num-sticker { background: transparent; color: var(--ink); border: 2px dashed rgba(15,15,15,0.45); box-shadow: none; }
.ep-body .tease-note { margin-top: 12px; font-family: var(--font-hand), cursive; font-size: 20px; color: rgba(125,91,166,0.75); }
.chip.bonus { background: var(--violet); color: var(--cream); }
.num-sticker--wide { font-size: 22px !important; letter-spacing: -0.02em; }
/* text comes from the "Season one starts here" field in /admin */
.ep-featured .fcard--upcoming[data-sticker]::after { content: attr(data-sticker); }

@media (max-width: 820px) {
  .ep-featured .fcard { grid-template-columns: 1fr; gap: 34px; padding: 30px; }
  .ep-featured .fcard::after { position: static; display: block; margin-bottom: 8px; }
  .ep-card, .ep-card:nth-child(even) { grid-template-columns: 1fr; gap: 22px; }
  .ep-card:nth-child(even) .ep-media { order: 0; }
  /* One column here, so centre the card rather than leaving it hard left.
     The width goes on the media wrapper, not just the polaroid: the number
     sticker is positioned against that wrapper, so if it stays full-width
     the sticker ends up at the screen edge, detached from its card. */
  /* width:100% matters — auto margins on a grid item switch it from
     stretching to shrink-to-fit, and it collapses to its content. */
  .ep-media, .ep-featured .fmedia { width: 100%; max-width: 300px; margin-inline: auto; }
  .ep-media .polaroid, .ep-featured .fmedia .polaroid { max-width: 300px; }
  .ep-head { padding: 60px 20px 30px; }
  .ep-featured, .ep-list, .list-label { padding-left: 20px; padding-right: 20px; }
}
