/* Het Huis Anubis — thuisarchief. Stijl naar de Nickelodeon-site van 2008. */

@font-face {
  font-family: "Gochi Hand";
  src: url("../fonts/gochi-hand.woff2") format("woff2");
  font-display: swap;
}

:root {
  /* hout */
  --hout: #632d13;
  --hout-donker: #2a0f04;
  /* perkament */
  --perkament: #a1622a;
  --perkament-licht: #bb8452;
  --kader-bodem: #6a3c14;
  --kader-kop: #42230a;
  /* goud */
  --goud: #d49a55;
  --goud-licht: #f2c27e;
  --goud-tekst: #f2ab52;
  --oranje: #e07a1c;
  /* tekst */
  --room: #f7e3bd;
  --room-zacht: #ecc993;
  --inkt: #241002;
  --link: #ffd486;

  --kop-font: "Trebuchet MS", "Lucida Grande", Tahoma, sans-serif;
  --tekst-font: Verdana, Geneva, Tahoma, sans-serif;
  --hand-font: "Gochi Hand", "Chalkboard SE", "Comic Sans MS", cursive;

  --nerf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='1800'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.09 0.0035' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .04 0 0 0 0 0 1.15 0 0 0 -.48'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --vlekken: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.016' numOctaves='4' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .24 0 0 0 0 .09 0 0 0 0 0 1.6 0 0 0 -.76'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  --korrel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .04 0 0 0 0 0 1.4 0 0 0 -.62'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23k)'/%3E%3C/svg%3E");
  --oog: url("../img/oog.svg");
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--hout-donker);
  scrollbar-color: #b8783a #2a0f04;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font: 12px/1.6 var(--tekst-font);
  color: var(--room);
  background:
    radial-gradient(ellipse 80% 130% at 50% 30%, transparent 50%, rgba(20, 6, 0, .26) 100%),
    repeating-linear-gradient(90deg, transparent 0 238px, rgba(10, 2, 0, .45) 238px 240px, rgba(255, 190, 120, .07) 240px 241px, transparent 241px 300px),
    var(--nerf),
    linear-gradient(90deg, #56230d, var(--hout) 30%, #70371b 55%, var(--hout) 75%, #56230d);
  background-attachment: fixed;
}

::selection { background: var(--oranje); color: var(--inkt); }

a { color: var(--link); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: #fff1cf; }
:focus-visible { outline: 2px solid #ffd27a; outline-offset: 2px; border-radius: 3px; }

img { max-width: 100%; }

.overslaan {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--kader-kop); color: var(--goud-tekst); padding: 8px 12px; border: 1px solid var(--goud);
}
.overslaan:focus { top: 12px; }

/* ---------- de lijst ---------- */

.pagina {
  max-width: 980px;
  margin: 0 auto;
  padding: 72px 14px 40px;
}

.lijst {
  border: 12px solid #b0702f;
  border-image: url("../img/touwrand.png") 24 round;
  box-shadow: 0 0 0 1px #1e0a02, 0 14px 50px rgba(0, 0, 0, .7);
}

.lijst-binnen {
  overflow: hidden;
  background: var(--vlekken), var(--korrel), linear-gradient(170deg, #c08040, #ae6e2f 45%, #9e6024);
  background-size: 360px, 160px, auto;
  box-shadow: inset 0 0 0 1px #2e1305, inset 0 0 50px rgba(50, 18, 0, .35);
}

/* ---------- kop ---------- */

.kop {
  position: relative;
  height: 196px;
  background:
    radial-gradient(ellipse 55% 95% at 64% 62%, rgba(236, 170, 80, .75), rgba(166, 96, 30, .45) 45%, transparent 80%),
    linear-gradient(180deg, rgba(40, 14, 2, .55), transparent 40%);
}

.logo {
  position: absolute;
  z-index: 2;
  left: 22px; top: 10px;
  width: 250px;
}
.logo img {
  display: block;
  width: 100%; height: auto;
  filter: drop-shadow(0 3px 4px rgba(20, 6, 0, .55));
}

.bewoners {
  position: absolute;
  right: 18px; bottom: 0;
  width: 560px; height: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 16%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 16%);
  mask-composite: intersect;
}

/* ---------- navigatiebalk ---------- */

.balk {
  position: relative;
  margin: 0 18px;
  border-radius: 15px;
  padding: 3px;
  background: linear-gradient(180deg, #f0c27c, #9b5f22 35%, #d9a35b 70%, #7a4515);
  box-shadow: 0 4px 8px rgba(0, 0, 0, .5), 0 -1px 0 rgba(0, 0, 0, .4);
}
.balk ul {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 16px;
  min-height: 48px;
  list-style: none;
  border-radius: 12px;
  background: var(--korrel), linear-gradient(180deg, #2b1405, #4d2a0c 55%, #3a1e07);
  background-size: 120px, auto;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, .75), inset 0 -1px 0 rgba(255, 200, 120, .15);
  overflow-x: auto;
  scrollbar-width: none;
}
.balk ul::-webkit-scrollbar { display: none; }
.balk li { flex: none; display: flex; align-items: center; }
.balk li + li::before {
  content: "";
  width: 2px; height: 22px;
  margin: 0 9px;
  border-radius: 1px;
  background: #e09a48;
  transform: rotate(4deg);
  opacity: .9;
}
.balk a {
  display: block;
  padding: 6px 2px 4px;
  font: 24px/1 var(--hand-font);
  color: #eda04c;
  text-decoration: none;
  text-shadow: 0 1px 1px #000;
  white-space: nowrap;
}
.balk a:hover { color: #ffe1a6; }
.balk a[aria-current="page"] {
  color: #ffe1a6;
  text-shadow: 0 0 10px rgba(255, 176, 70, .75), 0 1px 1px #000;
}

/* ---------- kolommen ---------- */

main { display: block; outline: none; }

.kolommen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
  gap: 22px;
  padding: 24px 18px 8px;
  align-items: start;
}
.kolommen > * { display: grid; gap: 22px; min-width: 0; }
.breed { padding: 24px 18px 8px; display: grid; gap: 22px; }

/* ---------- kaders ---------- */

.kader {
  border: 1px solid var(--goud);
  background: var(--korrel), linear-gradient(180deg, rgba(74, 38, 10, .78), rgba(92, 50, 16, .72));
  background-size: 160px, auto;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35), 0 2px 5px rgba(30, 10, 0, .45);
}
.kader-kop {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 7px 12px 6px;
  font: bold 17px/1.3 var(--kop-font);
  color: var(--goud-tekst);
  text-shadow: 0 1px 0 #170800;
  background: linear-gradient(180deg, #57310f, var(--kader-kop));
  border-bottom: 1px solid var(--goud);
}
.kader-kop small {
  font: 11px/1.3 var(--tekst-font);
  color: var(--room-zacht);
  text-shadow: none;
  white-space: nowrap;
}
.kader-kop a { color: var(--room-zacht); }
.kader-inhoud { padding: 14px; }
.kader-inhoud > :first-child { margin-top: 0; }
.kader-inhoud > :last-child { margin-bottom: 0; }

.kader p { margin: 0 0 10px; max-width: 68ch; }
.zacht { color: var(--room-zacht); }

h3 {
  margin: 0 0 4px;
  font: bold 15px/1.3 var(--kop-font);
  color: var(--room);
}

/* ---------- fotolijstjes ---------- */

.lijstje {
  display: block;
  padding: 4px;
  border-radius: 9px;
  background: linear-gradient(145deg, #f3cb86, #a56a2a 45%, #e3ad62 70%, #7b4614);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 240, 200, .6);
}
.lijstje .still {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #1a0a02 var(--oog) center / 30% no-repeat;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6);
}
.lijstje .still img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  background: #1a0a02;
}
.lijstje .still img.mis { opacity: 0; }

/* ---------- knoppen ---------- */

.knop {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px 4px;
  font: 21px/1.1 var(--hand-font);
  color: #f6c47b;
  text-decoration: none;
  text-shadow: 0 1px 1px #000;
  border: 2px solid #d9a35b;
  border-radius: 12px;
  background: linear-gradient(180deg, #7a4719, #4a2609 55%, #5f3311);
  box-shadow:
    0 0 0 1px #2c1404,
    inset 0 1px 0 rgba(255, 222, 160, .5),
    inset 0 -3px 5px rgba(0, 0, 0, .35),
    0 3px 6px rgba(0, 0, 0, .5);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.knop:hover { color: #ffe6b3; background: linear-gradient(180deg, #a3672a, #5a300d 55%, #6f3e15); }
.knop:active { transform: translateY(1px); box-shadow: 0 0 0 1px #2c1404, inset 0 2px 6px rgba(0, 0, 0, .6); }
.knop-groot { font-size: 27px; padding: 8px 22px 6px; border-radius: 14px; }
.knop-klein { font-size: 18px; padding: 3px 12px 2px; border-radius: 10px; }
.knop svg { width: .8em; height: .8em; fill: currentColor; flex: none; }

.tekstknop {
  font: inherit;
  color: var(--link);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.tekstknop:hover { color: #fff1cf; }

/* ---------- voortgangsbalkje ---------- */

.balkje {
  position: relative;
  height: 9px;
  border-radius: 5px;
  background: #2a1404;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 210, 150, .2);
  overflow: hidden;
}
.balkje > span {
  position: absolute; inset: 0 auto 0 0;
  border-radius: 5px;
  background: linear-gradient(180deg, #ffd890, #f08a24 50%, #b9560c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
}

/* ---------- verder kijken ---------- */

.verder {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.verder .lijstje { position: relative; }
.verder-titel { margin: 0 0 2px; font: bold 22px/1.2 var(--kop-font); color: var(--room); }
.verder-sub { margin: 0 0 12px; color: var(--room-zacht); }
.verder .balkje { margin: 0 0 6px; max-width: 280px; }
.verder .knop { margin-top: 12px; }
.verder-alt { margin-top: 10px; font-size: 11px; }
.voorbeeld-melding {
  margin: 14px 0 0;
  padding: 7px 10px;
  font-size: 11px;
  color: var(--inkt);
  background: linear-gradient(180deg, #f8e7c6, #e7c99a);
  border: 1px solid #2a1404;
  border-radius: 4px;
}

.speel-oog {
  position: absolute;
  left: 50%; top: 50%;
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: var(--oog) center / contain no-repeat;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .7));
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}
a:hover .speel-oog, a:focus-visible .speel-oog { transform: scale(1.12); }

/* ---------- seizoenen ---------- */

.seizoenen {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}
.seizoen {
  display: block;
  color: inherit;
  text-decoration: none;
}
.seizoen h3 { margin-top: 9px; font-size: 17px; color: var(--goud-tekst); }
.seizoen:hover h3 { color: #ffd38c; text-decoration: underline; text-underline-offset: 3px; }
.seizoen p { margin: 0 0 6px; font-size: 11px; color: var(--room-zacht); }
.seizoen .lijstje { transition: transform .25s ease-out; }
.seizoen:hover .lijstje { transform: rotate(-1deg) translateY(-2px); }

/* ---------- agendalijstje ---------- */

.agenda {
  margin: 0;
  padding: 0 0 0 16px;
  list-style: square;
}
.agenda li { margin: 0 0 5px; color: var(--goud); }
.agenda li > * { color: var(--room); }
.agenda b { display: inline-block; min-width: 52px; color: var(--room); }
.agenda .leeg { list-style: none; margin-left: -16px; color: var(--room-zacht); }

.midden { text-align: center; margin-top: 12px; }

/* ---------- formulier ---------- */

.zoek { display: grid; gap: 8px; }
.zoek label { font-weight: bold; }
.zoek .rij { display: flex; gap: 6px; align-items: center; }
.veld {
  min-width: 0;
  height: 30px;
  padding: 3px 7px;
  font: 13px var(--tekst-font);
  color: var(--inkt);
  background: linear-gradient(180deg, #e7c99a, #f8e7c6 30%);
  border: 1px solid #2a1404;
  border-radius: 3px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .45), 0 1px 0 rgba(255, 210, 150, .25);
}
select.veld { padding-right: 4px; }
input.veld { width: 64px; }
.zoek .fout { margin: 0; color: #ffc2a0; font-size: 11px; }

/* ---------- film ---------- */

.film-kaart .lijstje { margin-bottom: 10px; }
.film-kaart h3 { color: var(--goud-tekst); }

/* ---------- afleveringenlijst ---------- */

.bladeren {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 2px;
  align-items: center;
  margin: 0 0 12px;
  font-size: 11px;
}
.bladeren a, .bladeren span {
  padding: 2px 6px;
  border: 1px solid transparent;
  border-radius: 3px;
}
.bladeren [aria-current="page"] {
  color: var(--inkt);
  font-weight: bold;
  background: linear-gradient(180deg, #ffd890, #e8932f);
  border-color: #2c1404;
  text-decoration: none;
}
.bladeren .uit { color: rgba(236, 201, 147, .45); }
.bladeren-onder { margin: 12px 0 0; }

.afleveringen {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.afl {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  padding: 7px 6px;
  border-bottom: 1px dotted rgba(212, 154, 85, .55);
}
.afl:hover { background: rgba(255, 196, 110, .14); }
.afl .lijstje { padding: 3px; border-radius: 7px; }
.afl .lijstje .still { border-radius: 4px; }
.afl h3 { font-size: 14px; }
.afl h3 a { color: var(--room); text-decoration: none; }
.afl h3 a::after { content: ""; position: absolute; inset: 0; }
.afl h3 a:hover { color: #fff1cf; text-decoration: underline; }
.afl .titel { margin: 0 0 2px; color: var(--room-zacht); font-style: italic; }
.afl .meta { margin: 0; font-size: 11px; color: var(--room-zacht); }
.afl .balkje { width: 110px; height: 7px; margin-top: 6px; }
.afl .status { position: relative; z-index: 1; font-size: 11px; color: var(--room-zacht); white-space: nowrap; }
.afl .status:empty { display: none; }
.afl > div:nth-child(2) { display: grid; gap: 2px; }
.afl.nu { background: rgba(255, 196, 110, .2); }

.gezien {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: bold;
  color: var(--goud-licht);
}
.gezien::before {
  content: "";
  width: 16px; height: 16px;
  background: var(--oog) center / contain no-repeat;
}

.leeg-staat { text-align: center; padding: 16px 8px; }
.leeg-staat img { width: 72px; height: 72px; margin-bottom: 6px; }
.leeg-staat img.knipper { animation: knipper 2.4s ease-in-out infinite; }
.fout-melding {
  max-width: 52ch;
  margin: 0 auto 10px !important;
  padding: 8px 12px;
  color: var(--inkt);
  background: linear-gradient(180deg, #f8e7c6, #e7c99a);
  border: 1px solid #2a1404;
  border-radius: 4px;
}

/* ---------- zijbalk seizoenlijst ---------- */

.menu-lijst { margin: 0; padding: 0; list-style: none; }
.menu-lijst li { border-bottom: 1px dotted rgba(212, 154, 85, .5); }
.menu-lijst li:last-child { border-bottom: 0; }
.menu-lijst a {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 6px 2px;
  color: var(--room);
  text-decoration: none;
}
.menu-lijst a:hover { color: #fff1cf; text-decoration: underline; }
.menu-lijst a[aria-current="page"] { color: var(--goud-tekst); font-weight: bold; }
.menu-lijst small { color: var(--room-zacht); font-size: 11px; }

/* ---------- kijken ---------- */

.kijk-kop-links { display: flex; gap: 14px; font: 12px var(--tekst-font); }
.kijk-kop-links .uit { color: rgba(236, 201, 147, .4); }

.kijk-onder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
  gap: 22px;
  align-items: start;
}

.volgende-rij {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.volgende-rij a { color: var(--room); text-decoration: none; font-size: 11px; }
.volgende-rij a b { display: block; margin-top: 6px; font: bold 13px var(--kop-font); color: var(--goud-tekst); }
.volgende-rij a:hover b { text-decoration: underline; }
.volgende-rij .lijstje { padding: 3px; border-radius: 7px; }

.vinkje { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; cursor: pointer; }
.vinkje input { margin: 2px 0 0; accent-color: var(--oranje); width: 15px; height: 15px; }

.toetsen { margin: 12px 0 0; padding: 0; list-style: none; font-size: 11px; color: var(--room-zacht); }
.toetsen li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
kbd {
  display: inline-block;
  min-width: 20px;
  padding: 0 5px;
  font: bold 10px/16px var(--tekst-font);
  text-align: center;
  color: var(--inkt);
  background: linear-gradient(#f8e7c6, #d6b07a);
  border: 1px solid #2a1404;
  border-radius: 3px;
  box-shadow: 0 1px 0 #2a1404;
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  opacity: .85;
}
.download-link:hover, .download-link:focus-visible { opacity: 1; }
.download-link svg { width: 12px; height: 12px; flex: none; fill: currentColor; }
.download-link small { color: var(--room-zacht); }
.download-rij { margin: 12px 0 0 !important; padding-top: 9px; border-top: 1px dotted rgba(212, 154, 85, .5); text-align: center; }

/* ---------- over anubis ---------- */

.bewoners-lijst {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bewoner { padding: 10px 0 12px; border-bottom: 1px dotted rgba(212, 154, 85, .55); }
.bewoner h3 { margin: 0; font: 23px/1.1 var(--hand-font); color: var(--goud-tekst); text-shadow: 0 1px 1px #000; }
.bewoner .bewoner-speler { margin: 2px 0 6px; font-size: 11px; font-style: italic; color: var(--room-zacht); }
.bewoner p { margin: 0; }

.seizoen-delen { margin: 0; padding: 0; list-style: none; }
.seizoen-delen li { padding: 6px 0 7px; border-bottom: 1px dotted rgba(212, 154, 85, .5); color: var(--room-zacht); font-size: 11px; }
.seizoen-delen li:last-child { border-bottom: 0; }
.seizoen-delen b { font: bold 13px var(--kop-font); color: var(--room); }
.seizoen-delen b a { color: var(--goud-tekst); }
.seizoen-delen small { margin-left: 4px; }
.weetjes li { margin-bottom: 8px; }

/* ---------- voet ---------- */

.voet {
  padding: 18px 18px 22px;
  text-align: center;
  font-size: 11px;
  color: var(--room-zacht);
  text-shadow: 0 1px 0 rgba(30, 10, 0, .6);
}
.voet p { margin: 0 0 3px; }
.voet-klein { font-size: 10px; opacity: .8; }

/* ================= speler ================= */

.speler {
  position: relative;
  padding: 5px;
  border-radius: 11px;
  background: linear-gradient(145deg, #f3cb86, #a56a2a 45%, #e3ad62 70%, #7b4614);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 240, 200, .6);
}
.speler-binnen {
  position: relative;
  border-radius: 7px;
  overflow: hidden;
  background: #000;
}
.speler-beeld {
  position: relative;
  aspect-ratio: var(--verhouding, 16 / 9);
  max-height: calc(100vh - 140px);
  margin: 0 auto;
  background: #000;
}
.speler video {
  display: block;
  width: 100%; height: 100%;
  background: #000;
  object-fit: contain;
}

/* Overlays */
.speler-laag {
  position: absolute; inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
  color: var(--room);
  background: radial-gradient(ellipse at 50% 45%, rgba(60, 26, 6, .55), rgba(0, 0, 0, .85));
}
.speler-laag[hidden] { display: none; }
.speler-laag p { margin: 0; max-width: 46ch; }
.speler-laag .groot { font: bold 20px/1.3 var(--kop-font); color: var(--goud-tekst); }

.grote-oog {
  width: 108px; height: 108px;
  border: 0; padding: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .8));
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}
.grote-oog svg { width: 100%; height: 100%; display: block; }
.grote-oog .pupil { transition: r .35s cubic-bezier(.16, 1, .3, 1); }
.grote-oog .driehoek { fill: #f6c47b; opacity: .95; transition: opacity .2s; }
.grote-oog:hover { transform: scale(1.06); }
.grote-oog:hover .pupil { r: 37; }

.laden-oog {
  width: 86px; height: 86px;
  background: var(--oog) center / contain no-repeat;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .8));
  animation: knipper 2.4s ease-in-out infinite;
}
@keyframes knipper {
  0%, 86%, 100% { transform: scaleY(1); }
  92% { transform: scaleY(.08); }
}
.laden-balk { width: min(260px, 70%); }

.aftellen-ring { width: 96px; height: 96px; }
.aftellen-ring circle { fill: none; stroke-width: 6; }
.aftellen-ring .spoor { stroke: rgba(255, 200, 130, .2); }
.aftellen-ring .vul { stroke: #f0a040; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.aftellen-ring text { font: bold 30px var(--kop-font); fill: var(--room); }
.knoppenrij { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* Bediening: onder het beeld, net als in 2008 */
.bediening {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--korrel), linear-gradient(180deg, #2b1405, #4d2a0c 55%, #3a1e07);
  background-size: 120px, auto;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, .7);
  color: var(--room);
  font-size: 11px;
}
.bediening button {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  padding: 0;
  color: #f6c47b;
  border: 1px solid #b97d3c;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #8a5420, #3e1f07 70%);
  box-shadow: inset 0 1px 0 rgba(255, 222, 160, .45), 0 2px 3px rgba(0, 0, 0, .5);
  cursor: pointer;
}
.bediening button:hover { color: #ffe6b3; border-color: #f0c27c; }
.bediening button svg { width: 16px; height: 16px; fill: currentColor; }
.bediening .speel { width: 42px; height: 42px; }
.bediening .speel svg { width: 18px; height: 18px; }
.tijd { flex: none; min-width: 92px; font-variant-numeric: tabular-nums; color: var(--room-zacht); }
.tijd b { color: var(--room); font-weight: normal; }

/* De tijdlijn is een echte range-input met een oog als knop */
.tijdlijn, .volume {
  -webkit-appearance: none;
  appearance: none;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  --pct: 0%;
  --buf: 0%;
}
.tijdlijn { flex: 1; min-width: 60px; }
.volume { width: 74px; flex: none; }
.tijdlijn::-webkit-slider-runnable-track, .volume::-webkit-slider-runnable-track {
  height: 9px;
  border-radius: 5px;
  background:
    linear-gradient(180deg, #ffd890, #f08a24 50%, #b9560c) 0 0 / var(--pct) 100% no-repeat,
    linear-gradient(rgba(255, 210, 150, .22), rgba(255, 210, 150, .22)) 0 0 / var(--buf) 100% no-repeat,
    #1c0c02;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 210, 150, .2);
}
.tijdlijn::-moz-range-track, .volume::-moz-range-track {
  height: 9px; border-radius: 5px;
  background:
    linear-gradient(180deg, #ffd890, #f08a24 50%, #b9560c) 0 0 / var(--pct) 100% no-repeat,
    linear-gradient(rgba(255, 210, 150, .22), rgba(255, 210, 150, .22)) 0 0 / var(--buf) 100% no-repeat,
    #1c0c02;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .9);
}
.tijdlijn::-webkit-slider-thumb, .volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  margin-top: -6.5px;
  border: 0;
  border-radius: 50%;
  background: var(--oog) center / contain no-repeat;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .8));
}
.tijdlijn::-moz-range-thumb, .volume::-moz-range-thumb {
  width: 22px; height: 22px; border: 0; border-radius: 50%;
  background: var(--oog) center / contain no-repeat;
}
.volume::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -3.5px; }
.volume::-moz-range-thumb { width: 16px; height: 16px; }

.speler-melding {
  position: absolute; left: 50%; top: 18px;
  transform: translateX(-50%);
  padding: 5px 14px 3px;
  font: 20px var(--hand-font);
  color: #ffe1a6;
  background: rgba(30, 12, 2, .82);
  border: 1px solid var(--goud);
  border-radius: 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s;
}
.speler-melding.aan { opacity: 1; }

/* Volledig scherm: bediening zweeft over het beeld en verdwijnt */
.speler:fullscreen { padding: 0; border-radius: 0; background: #000; }
.speler:-webkit-full-screen { padding: 0; border-radius: 0; background: #000; }
.speler:fullscreen .speler-binnen, .speler:-webkit-full-screen .speler-binnen { height: 100%; border-radius: 0; }
.speler:fullscreen .speler-beeld, .speler:-webkit-full-screen .speler-beeld { height: 100%; max-height: none; aspect-ratio: auto; }
.speler:fullscreen .bediening, .speler:-webkit-full-screen .bediening {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  transition: opacity .3s, transform .3s;
}
.speler.rust:fullscreen .bediening, .speler.rust:-webkit-full-screen .bediening { opacity: 0; transform: translateY(12px); }
.speler.rust:fullscreen, .speler.rust:-webkit-full-screen { cursor: none; }

/* ================= kleinere schermen ================= */

@media (max-width: 820px) {
  .pagina { padding: 18px 8px 24px; }
  .kolommen, .kijk-onder { grid-template-columns: minmax(0, 1fr); }
  .bewoners { width: 470px; right: 6px; }
}

@media (max-width: 640px) {
  body { font-size: 14px; background-attachment: scroll; }
  .pagina { padding: 0; }
  .lijst { border-width: 7px; }
  .kop { height: 140px; }
  .logo { left: 6px; top: 10px; width: 165px; }
  .bewoners { width: 235px; right: -40px; }
  .balk { margin: 0 8px; }
  .balk ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 4px 6px;
    overflow: visible;
  }
  .balk li { justify-content: center; }
  .balk li + li::before { display: none; }
  .balk a { font-size: 20px; padding: 8px 2px 6px; text-align: center; }
  .kolommen, .breed { padding: 16px 8px 4px; gap: 16px; }
  .kolommen > * { gap: 16px; }
  .kader-inhoud { padding: 12px; }
  .verder { grid-template-columns: minmax(0, 1fr); }
  .verder-titel { font-size: 19px; }
  .seizoenen { gap: 14px 12px; }
  .seizoen h3 { font-size: 15px; }
  .afleveringen { grid-template-columns: minmax(0, 1fr); }
  .bewoners-lijst { grid-template-columns: minmax(0, 1fr); }
  .seizoen-delen li { font-size: 12px; }
  .afl .balkje { width: 90px; }
  .volgende-rij { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kader-kop { font-size: 16px; flex-wrap: wrap; }
  .bediening { gap: 6px; padding: 8px; flex-wrap: wrap; }
  .tijdlijn { order: -1; flex-basis: 100%; }
  .tijd { min-width: 0; margin-right: auto; }
  .volume, .bediening [data-actie="stil"] { display: none; }
  .agenda b { min-width: 60px; }
  .afl .meta, .agenda, .kader-kop small, .volgende-rij a, .verder-alt, .bladeren, .toetsen { font-size: 12px; }
}

@media (hover: none) {
  .volume { display: none; }
}

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

@media (hover: none) and (pointer: coarse) {
  .toetsen { display: none; }
}
