/* ============================================================
   PODCASTS.HTML — per podcast de nieuwste aflevering als kaart, in een
   vaste volgorde, met een keuze per podcast erboven. Gegenereerd door
   tools/podcasts.py; de keuze zit in assets/js/podcasts.js.

   Eén kolom, zo breed als een artikel. Een kaart: podcast, datum en duur,
   titel, de eerste hele zinnen van de maker en meteen de Spotify-speler,
   met daaronder een kleine link "Open in Spotify" (de speler heeft die link
   zelf ook). Kies je één podcast, dan staan al zijn afleveringen er als
   dezelfde kaarten, nieuwste bovenaan.
   ============================================================ */
.podcasts-page { max-width: 808px; margin: 0 auto; padding: 48px 24px 80px; }

/* de keuze per podcast (.sort-options uit base.css); verschijnt pas als het
   script draait, want zonder script kan hij niets */
.podcast-filter { overflow-x: auto; margin: 0 0 22px; scrollbar-width: none; }
.podcast-filter::-webkit-scrollbar { display: none; }
.podcast-filter[hidden] { display: none; }
.podcast-filter .sort-options { display: inline-flex; width: max-content; }

.podcast-lijst { display: flex; flex-direction: column; gap: 22px; }

.podcast-card {
  border-radius: var(--r-l); box-shadow: var(--shadow-border);
  background: var(--surface); padding: 18px 18px 16px;
}
.podcast-afl { display: flex; flex-direction: column; scroll-margin-top: calc(var(--header-h, 65px) + 16px); }
.podcast-afl[hidden] { display: none; }
.podcast-afl .pw-meta {
  display: flex; flex-direction: column; gap: 3px; margin: 0 0 10px;
  font-size: var(--fs-ui); line-height: 1.3; font-weight: 500; color: var(--muted);
}
.podcast-afl .pw-show { font-size: var(--fs-tekst); font-weight: 700; color: var(--ink); }
.podcast-afl .pw-titel {
  font-family: 'Oswald', sans-serif; font-weight: 600; font-size: var(--fs-kop-s); line-height: 1.2;
  color: var(--blue-dark); margin: 0 0 8px; text-wrap: balance;
}
/* de eerste hele zinnen van de tekst van de maker (tools/podcasts.py) */
.podcast-afl .pw-omschrijving { margin: 0 0 14px; font-size: var(--fs-tekst); line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }

/* Spotify rendert zelf omslag, titel en speler; de zachte achtergrond staat
   er zolang de speler laadt */
.podcast-embed { display: block; width: 100%; height: 152px; border: 0; border-radius: var(--r-xl); background: var(--blue-tint); }

/* klein, want de speler heeft zelf ook een link naar Spotify */
.podcast-episode-link {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; margin-top: 10px;
  font-size: var(--fs-klein); font-weight: 600; color: var(--muted);
}
.podcast-episode-link svg { width: 10px; height: 10px; }
.podcast-episode-link:hover { color: var(--blue); }

/* aangekomen via het blok op home: de aflevering licht kort op */
.podcast-afl.is-doel { animation: podcast-doel 1.6s var(--ease-zacht); }
@keyframes podcast-doel { from { box-shadow: 0 0 0 2px var(--blue), var(--shadow-border); } }

/* bij de keuze voor één podcast: de link naar al zijn afleveringen */
.podcast-alle { margin: 18px 0 0; }
.podcast-alle[hidden] { display: none; }
.podcast-show-link { font-size: var(--fs-ui); font-weight: 600; color: var(--blue); }
.podcast-show-link:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .podcast-lijst { gap: 18px; }
}
@media (max-width: 640px) {
  .podcasts-page { padding: 32px var(--pagina-zij) 60px; }
  .podcast-card { padding: 16px 15px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .podcast-afl.is-doel { animation: none; }
}
