/* De opmaak van de webversie. De kleuren hieronder zijn alleen de beginwaarden: merk.js zet de echte kleuren. */

@font-face { font-family: Outfit; src: url(letters/outfit_medium.ttf) format('truetype'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: Outfit; src: url(letters/outfit_semibold.ttf) format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Outfit; src: url(letters/outfit_bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }

:root {
  /* Beginwaarden; merk.js (via begin.js) zet hier de kleuren van het merk overheen. */
  --achtergrond: #000414;
  --selectie-boven: #F4F7FD;
  --selectie-onder: #E2E9F7;
  --gloed-1: #031139;
  --gloed-2: #010923;
  --accent: #2F73EC;
  --accent-licht: #A8C3F5;
  --accent-diep: #1F4B99;
  --paneel: #050F2A;
  --paneel-licht: #091A3F;
  --selectie: linear-gradient(90deg, var(--selectie-boven), var(--selectie-onder));
  --op-selectie: #0A1530;
  --tekst: #FFFFFF;
  --zacht: rgba(255, 255, 255, .70);
  --flauw: rgba(255, 255, 255, .50);
  --lijn: rgba(255, 255, 255, .12);
  --waardering: #FFD60A;
  --fout: #FF6B6B;
  --terugkijken: #FF9F0A;
  --favoriet: #F43F5E;

  --rand: 16px;
  --boven: env(safe-area-inset-top, 0px);
  --onder: env(safe-area-inset-bottom, 0px);
  --links: env(safe-area-inset-left, 0px);
  --rechts: env(safe-area-inset-right, 0px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background: var(--achtergrond);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font: 500 15px/21px Outfit, system-ui, -apple-system, sans-serif;
  color: var(--tekst);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

/* Achtergrond met gloed: middelpunt op 80% van de breedte en 12% boven de rand, straal 1,35 keer de langste zijde. */
.gloed {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle max(135vw, 135vh) at 80% -12%, var(--gloed-1) 0%, var(--gloed-2) 30%, var(--achtergrond) 62%, #000000 100%);
}
/* In Safari staat boven en onder het venster een effen strook in de achtergrondkleur (achter de statusbalk en de
   adresbalk). De gloed loopt daar zacht in over, zodat er geen naad te zien is. Als app op het beginscherm is dat
   niet nodig: dan vult de pagina het hele scherm. */
@media not all and (display-mode: standalone) {
  .gloed::before, .gloed::after { content: ''; position: absolute; left: 0; right: 0; }
  .gloed::before { top: 0; height: 56px; background: linear-gradient(var(--achtergrond), transparent); }
  .gloed::after { bottom: 0; height: 110px; background: linear-gradient(transparent, var(--achtergrond)); }
}

button, input { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; margin: 0; cursor: pointer; text-align: inherit; touch-action: manipulation; }
h1, h2, h3, p { margin: 0; }
img { -webkit-user-drag: none; }

.ic { width: 24px; height: 24px; fill: currentColor; flex: none; display: block; }
button, img, .kaart { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.midden > span { display: block; }
.zacht { color: var(--zacht); }
.flauw { color: var(--flauw); }
.klein { font-size: 13px; line-height: 18px; }
.rek { flex: 1; }

#scherm {
  max-width: 1000px;
  margin: 0 auto;
  padding: calc(var(--boven) + 10px) var(--links) calc(var(--onder) + 96px) var(--rechts);
}
#scherm.zonder-balk { padding-bottom: calc(var(--onder) + 24px); }
#scherm.speler { padding-top: 0; }

/* ---------- Koppen ---------- */

.kop {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 var(--rand);
}
.kop h1 { font: 700 28px/34px Outfit, sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kop.met-terug { padding-left: 4px; }
.kop.met-terug h1 { font-size: 24px; }
.woordmerk { height: 40px; width: auto; display: block; }

.rond-knop {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  flex: none;
}
.rond-knop .ic { width: 28px; height: 28px; }
.rond-knop:active { background: rgba(255, 255, 255, .08); }
.kop .rond-knop:last-child { margin-right: -8px; }

.demo-label {
  padding: 3px 12px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--accent-licht);
  font: 600 13px/18px Outfit, sans-serif;
  letter-spacing: .4px;
  text-transform: uppercase;
  flex: none;
}

/* ---------- Knoppen ---------- */

.knop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  background: var(--paneel-licht);
  font: 600 17px/22px Outfit, sans-serif;
  text-align: center;
}
.knop.hoofd { background: var(--accent); }
.knop:active { filter: brightness(1.15); }
.knop .ic { width: 22px; height: 22px; }

/* ---------- Onderbalk (capsule) ---------- */

#onderbalk {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(10px, var(--onder));
  width: min(calc(100vw - 28px), 430px);
  height: 60px;
  display: flex;
  padding: 5px;
  border-radius: 999px;
  background: rgba(13, 22, 46, .90);
  border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  z-index: 20;
}
#onderbalk[hidden] { display: none; }
#onderbalk button {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 999px;
  color: var(--zacht);
  font: 600 11.5px/14px Outfit, sans-serif;
}
#onderbalk button.gekozen { background: var(--selectie); color: var(--op-selectie); }

/* ---------- Home ---------- */

.strook {
  margin: 8px var(--rand) 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--paneel-licht);
  border: 1px solid var(--lijn);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.strook .knop { min-height: 44px; font-size: 15px; border-radius: 12px; }

.rij-kop {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  padding: 0 calc(var(--rand) - 6px) 0 var(--rand);
  font: 600 20px/26px Outfit, sans-serif;
}
.rij-kop span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rij-kop .ic { color: var(--zacht); width: 28px; height: 28px; }

.rij {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px var(--rand) 4px;
  scroll-padding-left: var(--rand);
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  align-items: flex-start;
}
.rij::-webkit-scrollbar { display: none; }
.rij > * { flex: 0 0 112px; width: 112px; scroll-snap-align: start; }

/* ---------- Kaarten ---------- */

.kaart { display: block; min-width: 0; }
.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--paneel-licht);
}
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster .leeg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 8px;
  color: var(--zacht);
  font: 600 15px/20px Outfit, sans-serif;
  text-align: center;
}
.cijfer {
  position: absolute;
  top: 6px;
  left: 6px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px 2px 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .58);
  font: 600 12px/16px Outfit, sans-serif;
}
.cijfer .ic { width: 13px; height: 13px; color: var(--waardering); }
.kaart-titel {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 7px 2px 0;
  font: 500 14px/19px Outfit, sans-serif;
}
.kaart:active .poster, .zender-tegel:active .logo { filter: brightness(1.2); }

.zender-tegel .logo { aspect-ratio: 1; border-radius: 12px; }
.zender-tegel .logo .ic { width: 40px; height: 40px; }
.logo {
  display: grid;
  place-items: center;
  background: var(--paneel-licht);
  color: var(--flauw);
  border-radius: 8px;
  overflow: hidden;
  flex: none;
}
.logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; display: block; }

.rooster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 16px 12px;
  padding: 4px var(--rand);
  align-items: start;
}

/* ---------- Zoekveld en tabjes ---------- */

.zoekveld {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  margin: 6px var(--rand) 10px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--paneel-licht);
  color: var(--zacht);
}
.zoekveld input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: none;
  color: var(--tekst);
  font: 500 17px/22px Outfit, sans-serif;
}
.zoekveld input::placeholder { color: var(--flauw); }
.zoekveld input::-webkit-search-cancel-button { display: none; }

.tabjes {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 var(--rand) 4px;
  scrollbar-width: none;
}
.tabjes::-webkit-scrollbar { display: none; }
.tabje {
  flex: none;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--paneel-licht);
  font: 600 16px/22px Outfit, sans-serif;
  white-space: nowrap;
}
.tabje.gekozen { background: var(--selectie); color: var(--op-selectie); }

.lijst-kop { display: flex; align-items: baseline; gap: 10px; padding: 12px var(--rand) 8px; }
.lijst-kop h2 { font: 600 20px/26px Outfit, sans-serif; }

.leeg-tekst { padding: 40px 32px; text-align: center; color: var(--zacht); }

/* ---------- Zenderlijst ---------- */

.zender {
  display: flex;
  align-items: center;
  gap: 12px;
  width: calc(100% - 16px);
  margin: 0 8px;
  padding: 9px 8px;
  border-radius: 16px;
}
.zender .logo { width: 64px; height: 44px; }
.zender .midden { flex: 1; min-width: 0; }
.zender .naam { display: flex; align-items: baseline; gap: 7px; font: 600 18px/23px Outfit, sans-serif; }
.zender .naam b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zender .nummer { color: var(--flauw); font: 500 13px/18px Outfit, sans-serif; }
.zender .archief { width: 16px; height: 16px; color: var(--terugkijken); align-self: center; }
.zender .nu, .zender .straks { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 19px; min-height: 19px; }
.zender .nu { color: var(--zacht); }
.zender .straks { color: var(--flauw); }
.balkje { height: 3px; margin: 4px 0 3px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.balkje i { display: block; width: 0; height: 100%; border-radius: 3px; background: var(--accent); }
.balkje.leeg { visibility: hidden; }
.zender:active { background: rgba(255, 255, 255, .06); }
.zender.gekozen { background: var(--selectie); color: var(--op-selectie); }
.zender.gekozen .nummer, .zender.gekozen .nu, .zender.gekozen .straks { color: color-mix(in srgb, var(--op-selectie) 72%, transparent); }
.zender.gekozen .balkje { background: color-mix(in srgb, var(--op-selectie) 22%, transparent); }
.zender.gekozen .balkje i { background: var(--op-selectie); }
.zender.gekozen .logo { background: color-mix(in srgb, var(--op-selectie) 12%, transparent); color: color-mix(in srgb, var(--op-selectie) 55%, transparent); }

/* ---------- Pagina van een film of serie ---------- */

.held { position: relative; margin-top: calc(-1 * (var(--boven) + 10px)); padding: calc(var(--boven) + 62px) var(--rand) 0; overflow: hidden; }
.held .waas {
  position: absolute;
  top: -40px;
  left: -40px;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  object-fit: cover;
  object-position: center 20%;
  filter: blur(28px) saturate(1.2);
  opacity: .55;
  -webkit-mask-image: linear-gradient(#000 35%, transparent 96%);
  mask-image: linear-gradient(#000 35%, transparent 96%);
}
.held .poster { position: relative; width: min(46%, 220px); margin: 0 auto; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.held .terug {
  position: absolute;
  top: calc(var(--boven) + 8px);
  left: 8px;
  background: rgba(0, 0, 0, .45);
  z-index: 2;
}
.info { padding: 18px var(--rand) 0; }
.info h1 { font: 700 26px/32px Outfit, sans-serif; }
.info .regel { margin-top: 6px; color: var(--zacht); font-size: 16px; line-height: 22px; }
.info .score { display: flex; align-items: center; gap: 5px; margin-top: 8px; font: 600 16px/22px Outfit, sans-serif; }
.info .score .ic { width: 18px; height: 18px; color: var(--waardering); }
.info .knop { margin-top: 16px; }
.info .tekst { margin-top: 18px; font-size: 16px; line-height: 23px; color: rgba(255, 255, 255, .88); }
.info .feit { margin-top: 10px; color: var(--zacht); }
.info .feit b { color: var(--tekst); font-weight: 600; }

.aflevering { display: flex; align-items: center; gap: 12px; width: calc(100% - 16px); margin: 0 8px; padding: 8px; border-radius: 16px; }
.aflevering .poster { width: 56px; flex: none; border-radius: 8px; }
.aflevering .midden { flex: 1; min-width: 0; }
.aflevering .naam { font: 600 17px/22px Outfit, sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aflevering .tekst { color: var(--zacht); font-size: 14px; line-height: 19px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.aflevering > .ic { color: var(--zacht); }
.aflevering:active { background: rgba(255, 255, 255, .06); }
.aflevering.gekozen { background: var(--selectie); color: var(--op-selectie); }
.aflevering.gekozen .tekst, .aflevering.gekozen > .ic { color: color-mix(in srgb, var(--op-selectie) 72%, transparent); }

/* ---------- Speler ---------- */

.beeldvak {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: var(--boven);
  background: #000;
}
.beeldvak .beeld { position: relative; aspect-ratio: 16 / 9; max-height: 62vh; margin: 0 auto; background: #000; }
.beeldvak video { width: 100%; height: 100%; display: block; background: #000; }
.beeldvak .kan-niet {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 28px;
  background: #000;
  color: var(--zacht);
  text-align: center;
}
/* De eigen tijdbalk onder het beeld, bij een film die de server inpakt: de tijd van de hele film. */
.filmbalk {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px var(--rand) 6px;
  color: var(--zacht);
  font: 500 13px/18px Outfit, sans-serif;
  font-variant-numeric: tabular-nums;
}
.filmbalk[hidden] { display: none; }
.filmbalk input { flex: 1; min-width: 0; height: 30px; margin: 0; accent-color: var(--accent-licht); }
.nu-kop { padding: 10px var(--rand) 12px; }
.nu-rij { display: flex; align-items: center; gap: 4px; margin-left: -12px; }
.nu-kop .midden { flex: 1; min-width: 0; }
.nu-kop h1 { font: 700 22px/28px Outfit, sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nu-kop .sub { color: var(--zacht); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nu-kop .sub:empty { display: none; }
.naar-tv {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  margin-top: 10px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--paneel-licht);
  font: 600 15px/20px Outfit, sans-serif;
}
.naar-tv[hidden] { display: none; }
.naar-tv.bezig { background: var(--accent); }
/* Terwijl de eigen speler het beeld overneemt om de sporen te laten zien: even niet nog een keer tikken. */
#sporen-knop.bezig { opacity: .55; pointer-events: none; }

/* ---------- Welkom en portaal ---------- */

.welkom {
  min-height: calc(100vh - var(--boven) - var(--onder) - 34px);
  min-height: calc(100dvh - var(--boven) - var(--onder) - 34px);
  display: flex;
  flex-direction: column;
  padding: 0 22px;
}
.welkom .midden { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 0; }
.welkom .logo-groot { width: min(62%, 260px); height: auto; }
.welkom h1 { margin-top: 22px; font: 700 27px/33px Outfit, sans-serif; }
.welkom .midden p { margin-top: 12px; font-size: 16px; line-height: 23px; max-width: 420px; }
.soorten { display: flex; justify-content: center; gap: 22px; margin-top: 26px; }
.soorten div { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 64px; color: var(--zacht); font: 600 12px/16px Outfit, sans-serif; white-space: nowrap; }
.soorten span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--paneel-licht); color: var(--accent-licht); }
.soorten .ic { width: 22px; height: 22px; }
.welkom .onder { display: flex; flex-direction: column; gap: 10px; max-width: 480px; width: 100%; margin: 0 auto; }
.welkom .onder p { text-align: center; margin-top: 4px; }

.formulier { padding: 6px var(--rand) 0; max-width: 560px; margin: 0 auto; }
.keuze { display: flex; padding: 4px; border-radius: 16px; background: var(--paneel); }
.keuze button { flex: 1; height: 44px; border-radius: 12px; color: var(--zacht); font: 600 16px/22px Outfit, sans-serif; text-align: center; }
.keuze button.gekozen { background: var(--selectie); color: var(--op-selectie); }
.formulier .uitleg { margin: 16px 2px 4px; font-size: 16px; line-height: 23px; }
.veld { display: block; margin-top: 14px; }
.veld > span:first-child { display: block; margin: 0 4px 6px; color: var(--zacht); font: 600 13px/18px Outfit, sans-serif; }
.veld .invoer { display: flex; align-items: center; height: 52px; border-radius: 16px; background: var(--paneel-licht); }
.veld input { flex: 1; min-width: 0; height: 100%; padding: 0 16px; border: 0; outline: 0; background: none; border-radius: 16px; font: 500 17px/22px Outfit, sans-serif; }
.veld input::placeholder { color: var(--flauw); }
.veld .invoer:focus-within { box-shadow: 0 0 0 1.5px var(--accent); }
.veld .oog { color: var(--zacht); }
.formulier .knop { margin-top: 22px; }
.formulier-fout { margin: 14px 4px 0; color: var(--fout); font-size: 15px; line-height: 21px; }
.onder-formulier { margin-top: 14px; text-align: center; }

/* ---------- Instellingen ---------- */

.blok { margin: 10px var(--rand) 0; padding: 14px 16px; border-radius: 18px; background: var(--paneel-licht); }
.blok h2 { font: 600 17px/22px Outfit, sans-serif; }
.blok p { margin-top: 6px; color: var(--zacht); }
.blok .knop { margin-top: 12px; min-height: 46px; font-size: 15px; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.blok .knop.hoofd { background: var(--accent); }
.blok > .knop:first-child { margin-top: 0; }
.blok .waarde { display: flex; justify-content: space-between; gap: 12px; }
.blok .waarde span { color: var(--zacht); }

/* ---------- Meldingen (rechtsboven, eigen stijl) ---------- */

#meldingen {
  position: fixed;
  top: calc(var(--boven) + 10px);
  left: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  z-index: 50;
  pointer-events: none;
}
.melding {
  max-width: 340px;
  padding: 11px 15px;
  border-radius: 14px;
  background: var(--paneel-licht);
  border: 1px solid color-mix(in srgb, var(--accent-licht) 35%, transparent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  animation: melding-in .22s ease-out;
}
.melding.weg { opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s; }
@keyframes melding-in { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- Wachten, meldingen in de pagina, kleine onderdelen ---------- */

[hidden] { display: none !important; }
.meer { height: 1px; }
.wacht { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 36px 20px; color: var(--zacht); text-align: center; }
.rondje { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--lijn); border-top-color: var(--accent-licht); animation: draai .8s linear infinite; }
@keyframes draai { to { transform: rotate(360deg); } }
.knop[disabled] { opacity: .6; cursor: default; }
.knop.smal { display: inline-flex; width: auto; min-height: 44px; padding: 0 22px; margin-top: 14px; font-size: 15px; border-radius: 12px; }
.kan-niet .knop.smal { margin-top: 0; background: rgba(255, 255, 255, .16); }
.kan-niet p { max-width: 520px; }
.let-op { display: flex; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--paneel-licht); border: 1px solid var(--lijn); color: var(--zacht); }
.let-op .ic { width: 22px; height: 22px; margin-top: 1px; color: var(--accent-licht); }
.info .let-op + .knop { margin-top: 10px; }
.soort-label { flex: none; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--lijn); color: var(--zacht); font: 600 11px/16px Outfit, sans-serif; letter-spacing: .4px; }
.aflevering.gekozen .soort-label { color: inherit; border-color: currentColor; }
.tabjes.los { margin-top: 18px; padding-bottom: 8px; }
#onder-lijst .info { padding-top: 0; }
#onder-lijst .info .tekst { margin-top: 4px; }
:focus-visible { outline: 2px solid var(--accent-licht); outline-offset: 2px; }
input:focus-visible { outline: none; }

/* ---------- Favorieten, waar je gebleven was, sorteren ---------- */

.hart.aan { color: var(--favoriet); }
.held .hart {
  position: absolute;
  top: calc(var(--boven) + 8px);
  right: 8px;
  background: rgba(0, 0, 0, .45);
  z-index: 2;
}
.poster .voortgang { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 4px; border-radius: 4px; background: rgba(0, 0, 0, .6); overflow: hidden; }
.poster .voortgang i { display: block; height: 100%; border-radius: 4px; background: var(--accent-licht); }
.aflevering .poster .voortgang { left: 3px; right: 3px; bottom: 3px; height: 3px; }
.kaart-sub { display: block; margin: 1px 2px 0; color: var(--zacht); font: 500 12px/16px Outfit, sans-serif; text-align: left; }
.kaart .kaart-titel { text-align: left; }
.tabje { display: inline-flex; align-items: center; gap: 6px; }
.tabje .ic { width: 18px; height: 18px; color: var(--accent-licht); }
.tabje.gekozen .ic { color: inherit; }

select {
  -webkit-appearance: none;
  appearance: none;
  max-width: 100%;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: inherit;
  font: 600 15px/20px Outfit, sans-serif;
  text-overflow: ellipsis;
  cursor: pointer;
}
.sorteer, .kies {
  display: inline-flex;
  align-items: center;
  flex: none;
  max-width: 60%;
  padding-left: 12px;
  border-radius: 999px;
  background: var(--paneel-licht);
  color: var(--tekst);
}
.sorteer .ic, .kies .ic { width: 18px; height: 18px; color: var(--accent-licht); }
.sorteer select, .kies select { padding-left: 8px; min-width: 0; }
.kies { background: rgba(255, 255, 255, .08); }
.lijst-kop { align-items: center; }
.lijst-kop h2 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lijst-kop .flauw { flex: none; }

.info .knop + .knop { margin-top: 10px; }

/* ---------- Knoppen onder het beeld ---------- */

.pillen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pil {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px 0 11px;
  border-radius: 999px;
  border: 1px solid var(--lijn);
  font: 600 14px/19px Outfit, sans-serif;
}
.pil .ic { width: 20px; height: 20px; color: var(--accent-licht); }
.pil:active { background: rgba(255, 255, 255, .08); }

/* ---------- Schuifjes, rijen met knoppen ---------- */

.schakel-rij {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 52px;
  text-align: left;
  font: 600 16px/21px Outfit, sans-serif;
}
.schakel-rij > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.schakel { position: relative; flex: none; width: 50px; height: 30px; border-radius: 999px; background: rgba(255, 255, 255, .18); transition: background .15s; }
.schakel i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s; }
.schakel-rij[aria-checked="true"] .schakel { background: var(--accent); }
.schakel-rij[aria-checked="true"] .schakel i { transform: translateX(20px); }
.blok > .schakel-rij { min-height: 30px; }
.schakels { margin: 6px var(--rand) 0; padding: 2px 16px; border-radius: 18px; background: var(--paneel-licht); }
.schakels .schakel-rij + .schakel-rij { border-top: 1px solid var(--lijn); }
.knoppen-rij { display: flex; gap: 10px; }
.knoppen-rij .knop { flex: 1 1 0; min-width: 0; padding: 0 10px; }
.fout-tekst, .blok p.fout-tekst { color: var(--fout); }
.blok label.waarde { align-items: center; }
.strook.let-erop { flex-direction: row; align-items: flex-start; gap: 10px; border-color: color-mix(in srgb, var(--fout) 55%, transparent); }
.strook.let-erop .ic { width: 22px; height: 22px; color: var(--fout); }

/* ---------- Tv-gids van een zender ---------- */

.gids-kop { display: flex; align-items: center; gap: 12px; padding: 4px var(--rand) 0; }
.gids-kop .logo { width: 64px; height: 44px; }
.gids-kop .knop { flex: 1; min-height: 46px; }
.gids-kop .hart { margin-right: -8px; }
.programmas { padding: 0 8px; }
.programma {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 11px 10px;
  border-radius: 14px;
  text-align: left;
}
.programma + .programma { margin-top: 2px; }
.programma .tijd { flex: none; width: 46px; color: var(--zacht); font: 600 15px/22px Outfit, sans-serif; font-variant-numeric: tabular-nums; }
.programma .midden { flex: 1; min-width: 0; }
.programma .midden > span { display: block; }
.programma .naam { font: 600 17px/22px Outfit, sans-serif; overflow-wrap: anywhere; }
.programma .tekst { margin-top: 2px; color: var(--zacht); font-size: 14px; line-height: 19px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.programma.open .tekst { white-space: normal; }
.programma.geweest { opacity: .5; }
.programma.nu { background: var(--paneel-licht); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-licht) 40%, transparent); }
.programma.nu .tijd { color: var(--tekst); }
.programma .nu-label { margin-top: 3px; color: var(--accent-licht); font: 600 12px/16px Outfit, sans-serif; letter-spacing: .4px; text-transform: uppercase; }
.programma .balkje { margin: 5px 0 2px; }
.programma:active { background: rgba(255, 255, 255, .06); }

/* ---------- Een vraag in een eigen venster ---------- */

.venster-achter {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 8, .66);
  animation: venster-in .15s ease-out;
}
.venster {
  width: 100%;
  max-width: 400px;
  padding: 20px;
  border-radius: 22px;
  background: var(--paneel-licht);
  border: 1px solid var(--lijn);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}
.venster h2 { font: 700 20px/26px Outfit, sans-serif; }
.venster p { margin: 8px 0 0; color: var(--zacht); font-size: 16px; line-height: 22px; }
.venster .knoppen-rij { margin-top: 20px; }
.venster .knop { min-height: 48px; background: rgba(255, 255, 255, .08); }
.venster .knop.hoofd { background: var(--accent); }
@keyframes venster-in { from { opacity: 0; } }

/* ---------- Radio in de speler: het logo met eigen knoppen ---------- */

/* Het videovak speelt het geluid; het is er wel, maar je ziet het niet. */
.beeld.radio video { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.radio-kaart {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: radial-gradient(120% 130% at 50% 0%, var(--paneel-licht), var(--achtergrond));
}
.radio-kaart .logo { width: 92px; height: 92px; border-radius: 20px; background: rgba(255, 255, 255, .08); }
.radio-kaart .logo .ic { width: 44px; height: 44px; }
.radio-knoppen { display: flex; align-items: center; gap: 20px; }
.radio-knoppen .rond-knop.groot { width: 60px; height: 60px; background: var(--selectie); color: var(--op-selectie); }
.radio-knoppen .rond-knop.groot .ic { width: 34px; height: 34px; }
.radio-knoppen .rond-knop[disabled] { opacity: .3; }

/* ---------- Het kleine spelertje: blijft staan terwijl je bladert ---------- */

#mini {
  position: fixed;
  right: max(12px, var(--rechts));
  bottom: calc(max(10px, var(--onder)) + 70px);
  width: min(50vw, 300px);
  z-index: 25;
  border-radius: 16px;
  overflow: hidden;
  background: var(--paneel-licht);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .6);
  animation: venster-in .18s ease-out;
}
body.geen-balk #mini { bottom: calc(var(--onder) + 14px); }
#mini-plek { aspect-ratio: 16 / 9; background: #000; cursor: pointer; }
#mini-plek video { width: 100%; height: 100%; display: block; background: #000; pointer-events: none; }
#mini.radio { width: min(calc(100vw - 24px), 360px); }
#mini.radio #mini-plek { aspect-ratio: auto; height: 0; overflow: hidden; }
.mini-balk { display: flex; align-items: center; gap: 2px; padding: 4px 4px 4px 10px; }
.mini-titel { flex: 1; min-width: 0; height: 44px; display: flex; align-items: center; gap: 9px; text-align: left; }
.mini-titel > span { min-width: 0; display: block; }
.mini-titel b, .mini-titel i { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; }
.mini-titel b { font: 600 14px/18px Outfit, sans-serif; }
.mini-titel i { font-size: 12px; line-height: 16px; color: var(--zacht); }
.mini-titel .logo { width: 38px; height: 38px; background: rgba(255, 255, 255, .08); }
.mini-titel .logo .ic { width: 22px; height: 22px; }
#mini .rond-knop { width: 40px; height: 40px; }
#mini .rond-knop .ic { width: 24px; height: 24px; }
/* Ruimte onderaan de pagina, zodat het spelertje nooit voorgoed iets afdekt. */
body.met-mini #scherm { padding-bottom: calc(var(--onder) + 290px); }

/* ---------- Portalen en pincode in Instellingen ---------- */

.portalen { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.portaal-rij { display: flex; align-items: center; gap: 2px; padding-right: 4px; border-radius: 14px; background: rgba(255, 255, 255, .06); }
.portaal-rij.open { background: var(--selectie); color: var(--op-selectie); }
.portaal-kies { flex: 1; min-width: 0; min-height: 56px; display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 14px; text-align: left; }
.portaal-kies .midden { flex: 1; min-width: 0; }
.portaal-kies b, .portaal-kies .klein { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portaal-kies b { font: 600 16px/21px Outfit, sans-serif; }
.portaal-kies .klein { opacity: .7; }
.portaal-kies .ic { width: 22px; height: 22px; flex: none; }
.portaal-rij .rond-knop { width: 44px; height: 44px; }
.portaal-rij .rond-knop .ic { width: 22px; height: 22px; }
input.pin { text-align: center; letter-spacing: .5em; font-size: 22px; -webkit-text-security: disc; }
.venster .invoer { display: flex; height: 52px; margin-top: 14px; border-radius: 16px; background: rgba(255, 255, 255, .08); }
.venster .invoer input { flex: 1; min-width: 0; padding: 0 16px; border: 0; outline: 0; background: none; border-radius: 16px; color: inherit; font: 500 22px/28px Outfit, sans-serif; }
.venster .invoer:focus-within { box-shadow: 0 0 0 1.5px var(--accent); }
.venster .formulier-fout { margin-top: 10px; }

/* ---------- De tv-gids als raster ---------- */

.raster {
  --kolom: 92px;
  margin: 4px var(--rand) 0;
  max-height: calc(100vh - 290px);
  max-height: calc(100dvh - 290px);
  min-height: 260px;
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 16px;
  background: var(--paneel);
  border: 1px solid var(--lijn);
  scrollbar-width: thin;
}
.raster-binnen { position: relative; width: calc(var(--kolom) + var(--breed)); }
.raster-kop { position: sticky; top: 0; z-index: 4; display: flex; height: 34px; background: var(--paneel-licht); }
.raster-hoek { position: sticky; left: 0; z-index: 5; flex: none; width: var(--kolom); background: var(--paneel-licht); }
.raster-tijden { position: relative; flex: none; width: var(--breed); }
.raster-tijden span { position: absolute; top: 0; padding-left: 8px; color: var(--zacht); font: 600 13px/34px Outfit, sans-serif; border-left: 1px solid var(--lijn); }
.raster-rij { display: flex; height: 62px; border-top: 1px solid var(--lijn); }
.raster-zender {
  position: sticky;
  left: 0;
  z-index: 3;
  flex: none;
  width: var(--kolom);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px;
  background: var(--paneel-licht);
}
.raster-zender .logo { width: 52px; height: 32px; }
.raster-zender span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--zacht); font: 600 11px/14px Outfit, sans-serif; }
.raster-baan { position: relative; flex: none; width: var(--breed); }
.raster-blok {
  position: absolute;
  top: 4px;
  bottom: 4px;
  padding: 5px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .07);
  border-left: 2px solid var(--paneel);
  text-align: left;
  overflow: hidden;
}
.raster-blok b, .raster-blok span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.raster-blok b { font: 600 14px/19px Outfit, sans-serif; }
.raster-blok span { color: var(--flauw); font-size: 12px; line-height: 16px; }
.raster-blok.nu { background: color-mix(in srgb, var(--accent) 38%, transparent); }
.raster-blok.nu span { color: var(--zacht); }
.raster-leeg { position: absolute; left: 12px; top: 0; color: var(--flauw); font-size: 13px; line-height: 62px; }
.raster-nu { position: absolute; top: 34px; bottom: 0; z-index: 2; width: 2px; margin-left: -1px; background: var(--fout); pointer-events: none; }

/* ---------- Kiezen in een venster (geluid en ondertitels) ---------- */

.venster .keuzes { max-height: 56vh; margin: 6px -8px 0; overflow-y: auto; scrollbar-width: thin; }
.venster h3 { margin: 14px 8px 4px; color: var(--flauw); font: 600 13px/18px Outfit, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.keuze {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  text-align: left;
  font: 600 16px/21px Outfit, sans-serif;
}
.keuze span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.keuze .ic { width: 22px; height: 22px; flex: none; }
.keuze.gekozen { background: var(--selectie); color: var(--op-selectie); }
.keuze:not(.gekozen):active { background: rgba(255, 255, 255, .08); }

@media (hover: hover) {
  .keuze:not(.gekozen):hover { background: rgba(255, 255, 255, .06); }
  .kaart:hover .poster, .zender-tegel:hover .logo { filter: brightness(1.15); }
  .zender:not(.gekozen):hover, .aflevering:not(.gekozen):hover { background: rgba(255, 255, 255, .06); }
  .rond-knop:hover { background: rgba(255, 255, 255, .08); }
  .knop:hover { filter: brightness(1.1); }
  .tabje:not(.gekozen):hover { filter: brightness(1.3); }
  .pil:hover, .programma:not(.nu):hover { background: rgba(255, 255, 255, .06); }
}

/* ---------- Breder scherm (tablet, laptop) ---------- */

@media (min-width: 600px) {
  :root { --rand: 24px; }
  .rij > * { flex-basis: 140px; width: 140px; }
  .rooster { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px 16px; }
  .beeldvak .beeld { max-width: 1000px; }
}

/* In Safari begint de wazige achtergrond van een film of serie zacht onder de effen strook van de statusbalk. */
@media not all and (display-mode: standalone) {
  .held .waas {
    -webkit-mask-image: linear-gradient(transparent 36px, #000 36%, #000 46%, transparent 96%);
    mask-image: linear-gradient(transparent 36px, #000 36%, #000 46%, transparent 96%);
  }
}

/* ---------- Laptop: categorieen links, de lijst ernaast; in de speler het beeld links en de lijst rechts ---------- */

@media (min-width: 900px) {
  #scherm { max-width: 1280px; }
  .met-zij { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: start; }
  .met-zij #zij { position: sticky; top: 10px; max-height: calc(100vh - 100px); overflow-y: auto; padding-bottom: 12px; scrollbar-width: thin; }
  .met-zij .tabjes { flex-direction: column; overflow: visible; gap: 2px; padding: 0 8px 0 var(--rand); }
  .met-zij .tabje { height: auto; min-height: 40px; padding: 9px 14px; border-radius: 12px; background: none; white-space: normal; text-align: left; font-size: 15px; line-height: 20px; }
  .met-zij .tabje:not(.gekozen):hover { background: var(--paneel-licht); filter: none; }
  .met-zij .tabje.gekozen { background: var(--selectie); }
  .zoekveld { max-width: 560px; }

  #scherm.speler { display: grid; grid-template-columns: minmax(0, 1fr) 400px; align-items: start; max-width: 1600px; }
  #scherm.speler .beeldvak .beeld { max-width: none; max-height: 100vh; }
  #scherm.speler #onder-beeld { position: sticky; top: 0; max-height: 100vh; overflow-y: auto; scrollbar-width: thin; }
}
