/* === Podcasts ===============================================================
   Modelled on how podcast apps present a catalogue, because that is the shape
   listeners already know: an immersive masthead with cover art and one obvious
   play action, a shelf of shows, then rows where the play affordance sits at
   the front of every line.
   ========================================================================== */

/* --- masthead ------------------------------------------------------------ */

.icrt-podmast {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  display: flex;
  align-items: flex-end;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(2rem, 5vw, 3.5rem) max(1.25rem, calc((100vw - var(--icrt-max)) / 2)) clamp(1.75rem, 4vw, 2.75rem);
  color: var(--icrt-ink);
  background: none;
}

.icrt-podmast__art {
  flex: 0 0 auto;
  width: clamp(8rem, 14vw, 13rem);
  aspect-ratio: 1 / 1;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  /* A cover, not a chip: podcast apps lead with a square, and radio has no
     artwork of its own to lead with. */
  background:
    radial-gradient(circle at 76% 24%, rgba(255, 255, 255, .2) 0 2.2rem, transparent 2.3rem),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 12px),
    linear-gradient(140deg, var(--cw-show-deep, #0b2f6b) 0%, var(--cw-show, #1160d4) 100%);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}

/* The cover, once there is a real one: the gradient and its scanlines were
   scaffolding for a missing picture, so they come off rather than showing
   through a photograph. */
.icrt-podmast__art--photo {
  background: none;
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
}

.icrt-podmast__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.icrt-podmast__body { min-width: 0; }

.icrt-podmast__kind {
  display: none;
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.icrt-podmast__title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--icrt-ink);
}

.icrt-podmast__lead {
  margin: 0.85rem 0 0;
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--icrt-ink-soft);
}

.icrt-podmast__meta {
  margin: 0.7rem 0 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--icrt-muted);
}

.icrt-podmast__play {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.35rem;
  padding: 0.7rem 1.5rem 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--icrt-ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease;
}

.icrt-podmast__play:hover { transform: scale(1.04); background: var(--icrt-accent); color: #fff; }
.icrt-podmast__play svg { width: 22px; height: 22px; }

@media (max-width: 46rem) {
  .icrt-podmast { flex-direction: column; align-items: flex-start; }
}

/* --- shelf --------------------------------------------------------------- */

.icrt-podpage__heading {
  margin: 0 0 1.1rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.icrt-podpage__series { margin: 2.5rem 0 2.75rem; }

.icrt-podtiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  /* auto-fit, not auto-fill: with three shows auto-fill left four empty tracks
     and the shelf occupied a third of the page. These stretch to fill it. */
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

/* Horizontal tiles, the way a podcast app lists a library once the covers are
   no longer the only thing on the row. */
.icrt-podtile a {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1rem;
  border-radius: 0.7rem;
  background: var(--icrt-mist);
  text-decoration: none;
  transition: background .15s ease;
}

.icrt-podtile a:hover { background: var(--icrt-line); }

.icrt-podtile__art {
  position: relative;
  flex: 0 0 auto;
  width: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border-radius: 0.5rem;
  background:
    radial-gradient(circle at 76% 24%, rgba(255, 255, 255, .18) 0 1.6rem, transparent 1.7rem),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 11px),
    linear-gradient(140deg, var(--cw-show-deep, #0b2f6b) 0%, var(--cw-show, #1160d4) 100%);
  box-shadow: 0 10px 24px rgba(10, 20, 40, 0.28);
}

.icrt-podtile__mark { font-size: 1.5rem; font-weight: 700; color: #fff; letter-spacing: 0.04em; }

.icrt-podtile__art--photo {
  background: none;
  border-radius: 12px;
  overflow: hidden;
}

.icrt-podtile__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter .25s ease;
}

.icrt-podtile a:hover .icrt-podtile__img { filter: brightness(.93); }

/* The play badge rises on hover, the way a cover does in a podcast app. */
.icrt-podtile__play {
  position: absolute;
  right: 0.4rem;
  bottom: 0.4rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--icrt-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity .15s ease, transform .15s ease;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.icrt-podtile a:hover .icrt-podtile__play { opacity: 1; transform: translateY(0); }
.icrt-podtile__play svg { width: 18px; height: 18px; }

.icrt-podtile__name {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--icrt-ink);
}

.icrt-podtile__count {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--icrt-muted);
}

/* --- series sections ----------------------------------------------------- */

.icrt-podpage__list { margin: 0 0 3rem; }

.icrt-pod { margin: 0 0 2.5rem; }

.icrt-pod__head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.4rem;
}

.icrt-pod__art {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  border-radius: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 9px),
    linear-gradient(140deg, var(--cw-show-deep, #0b2f6b) 0%, var(--cw-show, #1160d4) 100%);
}

.icrt-pod__art--photo { background: none; overflow: hidden; border-radius: 8px; }

.icrt-pod__img { display: block; width: 100%; height: 100%; object-fit: cover; }

.icrt-pod__id { min-width: 0; }
.icrt-pod__name { margin: 0; font-size: 1.1rem; font-weight: 700; line-height: 1.25; }
.icrt-pod__count { margin: 0.1rem 0 0; font-size: 0.8rem; color: var(--icrt-muted); }

/* --- episode rows -------------------------------------------------------- */

.icrt-pod__eps { list-style: none; margin: 0.75rem 0 0; padding: 0; }

.icrt-ep {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0 1rem;
  padding: 0.85rem 0.9rem;
  border-radius: 0.6rem;
  transition: background .12s ease;
}

.icrt-ep:hover { background: var(--icrt-mist); }
.icrt-ep + .icrt-ep { border-top: 1px solid var(--icrt-line); border-radius: 0; }

/* The play affordance leads every row. In the old list it did not exist at
   all, so nothing on the page invited a click. */
.icrt-ep__play {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--icrt-mist);
  color: var(--icrt-accent);
  border: 1px solid var(--icrt-line);
  transition: background .15s ease, color .15s ease, transform .15s ease;
}

.icrt-ep:hover .icrt-ep__play { background: var(--icrt-accent); color: #fff; transform: scale(1.06); }
.icrt-ep__play svg { width: 16px; height: 16px; }

.icrt-ep__body { min-width: 0; }
.icrt-ep__title { margin: 0; font-size: 1rem; line-height: 1.3; }
.icrt-ep__title a { color: var(--icrt-ink); text-decoration: none; }
.icrt-ep__title a:hover { color: var(--icrt-accent); }

.icrt-ep__blurb {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--icrt-ink-soft);
  max-width: 62rem;
}

.icrt-ep__meta {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--icrt-muted);
}

.icrt-ep__audio { grid-column: 1 / -1; width: 100%; margin-top: 0.7rem; }

.icrt-pods__none {
  margin: 0;
  padding: 1.4rem 1.2rem;
  background: var(--icrt-mist);
  border-radius: 0.8rem;
  color: var(--icrt-ink-soft);
}

/* --- page columns --------------------------------------------------------
   The shelf and the episode lists left a third of a desktop empty beside them.
   The panels are computed from what is published — there is no listen data in
   this build, so there is no honest "trending" to show. */

.icrt-podpage__cols {
  display: grid;
  gap: 2rem;
  margin: 2.5rem 0 0;
}

@media (min-width: 66rem) {
  .icrt-podpage__cols { grid-template-columns: minmax(0, 1fr) 23rem; align-items: start; }
  .icrt-podpage__side { position: sticky; top: 1rem; }
}

.icrt-podpage__main { min-width: 0; }
.icrt-podpage__side { display: grid; gap: 1.25rem; min-width: 0; }

.icrt-podpanel {
  padding: 1.15rem 1.25rem 1.35rem;
  border-radius: 0.9rem;
  background: var(--icrt-paper);
  border: 1px solid var(--icrt-line);
}

.icrt-podpanel__head {
  margin: 0 0 0.9rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--icrt-muted);
  padding-bottom: 0.5rem;
  border-bottom: 0;
}

.icrt-podpanel__list { list-style: none; margin: 0; padding: 0; }

.icrt-podpanel__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--icrt-line);
}

.icrt-podpanel__row:last-child { border-bottom: 0; }

.icrt-podpanel__art {
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 9px),
    linear-gradient(140deg, var(--cw-show-deep, #0b2f6b) 0%, var(--cw-show, #1160d4) 100%);
}

.icrt-podpanel__art--photo { background: none; overflow: hidden; border-radius: 6px; }

.icrt-podpanel__img { display: block; width: 100%; height: 100%; object-fit: cover; }

.icrt-podpanel__t { display: flex; flex-direction: column; min-width: 0; }

.icrt-podpanel__title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--icrt-ink);
  text-decoration: none;
}

.icrt-podpanel__title:hover { color: var(--icrt-accent); }
.icrt-podpanel__meta { margin-top: 0.1rem; font-size: 0.74rem; color: var(--icrt-muted); }

.icrt-podpanel--cta { background: var(--icrt-mist); }
.icrt-podpanel__body { margin: 0 0 0.9rem; font-size: 0.9rem; line-height: 1.6; color: var(--icrt-ink-soft); }

/* --- the featured-episode hero ([cw_podcast_featured]) --------------------
   Not on this page today, but it renders the same square, so it wears the
   same cover rather than the two capitals it used to draw. */

.icrt-podhero__art--photo { background: none; overflow: hidden; border-radius: 16px; padding: 0; }

.icrt-podhero__img { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
  .icrt-podtile__img { transition: none; }
}
