:root {
  --bg: #0e0f13;
  --surface: #171922;
  --surface-2: #1f2230;
  --line: #2b2f40;
  --text: #eceff4;
  --muted: #9aa1b5;
  --accent: #f2b134;
  --zeker: #3ecf8e;
  --wacht: #f2b134;
  --skip: #ef6b6b;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skiplink { position: absolute; left: -999px; top: 0; background: var(--accent); color: #111; padding: .5rem 1rem; z-index: 10; }
.skiplink:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Kop */
.top { background: rgba(14, 15, 19, .92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(8px); }
.top-in { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; padding: .75rem 0; }
.logo { font-weight: 800; font-size: 1.45rem; text-decoration: none; letter-spacing: -.02em; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 1rem; }
.nav a { text-decoration: none; color: var(--muted); padding: .25rem 0; }
.nav a:hover { color: var(--text); }
.search { display: flex; flex: 1 1 220px; max-width: 360px; margin-left: auto; }
.search input { flex: 1; min-width: 0; }
.account { display: flex; align-items: center; gap: .5rem; }

/* Formulieren en knoppen */
input, textarea, select {
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: .6rem .8rem; font: inherit; width: 100%;
}
.search input { border-radius: 10px 0 0 10px; }
.search button { border-radius: 0 10px 10px 0; }
textarea { min-height: 120px; resize: vertical; }
label.field { display: block; margin-bottom: 1rem; }
label.field > span { display: block; margin-bottom: .3rem; color: var(--muted); font-size: .9rem; }
button, .btn {
  background: var(--accent); color: #17130a; border: 0; border-radius: 10px;
  padding: .6rem 1rem; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; display: inline-block;
}
button:hover, .btn:hover { filter: brightness(1.08); }
button.ghost, .btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
button.danger { background: var(--skip); color: #1b0b0b; }
button:disabled { opacity: .55; cursor: default; }
.link { background: none; border: 0; color: var(--muted); padding: 0; font-weight: 400; text-decoration: underline; }

/* Rooster met films */
.page-head { margin: 2rem 0 1.25rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.25rem; list-style: none; padding: 0; margin: 0 0 3rem; }
.card { display: block; text-decoration: none; }
.poster { aspect-ratio: 2 / 3; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.card:hover .poster img { transform: scale(1.04); }
.poster.empty { display: grid; place-items: center; color: var(--muted); padding: .75rem; text-align: center; font-size: .9rem; }
.card h3 { font-size: 1rem; margin: .6rem 0 .1rem; }
.card .sub { color: var(--muted); font-size: .85rem; margin-bottom: .4rem; }

/* Oordeelbalk */
.vbar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--surface-2); }
.vbar i { display: block; height: 100%; }
.vbar .zeker, .dot.zeker { background: var(--zeker); }
.vbar .wacht, .dot.wacht { background: var(--wacht); }
.vbar .skip, .dot.skip { background: var(--skip); }
.vlegend { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: .4rem; font-size: .85rem; color: var(--muted); }
.dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .35rem; }
.vbar.big { height: 12px; }
.none { font-size: .85rem; color: var(--muted); }

/* Filmpagina */
.hero { position: relative; border-radius: var(--radius); overflow: hidden; margin: 1.5rem 0; background: var(--surface) center / cover no-repeat; border: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,15,19,.96) 30%, rgba(14,15,19,.7)); }
.hero-in { position: relative; display: grid; grid-template-columns: 200px 1fr; gap: 1.75rem; padding: 1.75rem; }
.hero .poster { width: 200px; }
.meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--muted); margin-bottom: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.chip { background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; padding: .1rem .7rem; font-size: .85rem; }
.tagline { color: var(--accent); font-style: italic; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.5rem; }
.trailer { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: 10px; background: #000; }

/* Oordeel kiezen */
fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
legend { color: var(--muted); font-size: .9rem; margin-bottom: .4rem; padding: 0; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: block; text-align: center; border: 2px solid var(--line); border-radius: 12px; padding: .8rem .4rem; cursor: pointer; background: var(--surface-2); font-weight: 600; }
.choice small { display: block; font-weight: 400; color: var(--muted); }
.choice input:checked + span.zeker { border-color: var(--zeker); background: rgba(62,207,142,.14); }
.choice input:checked + span.wacht { border-color: var(--wacht); background: rgba(242,177,52,.14); }
.choice input:checked + span.skip { border-color: var(--skip); background: rgba(239,107,107,.14); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.check { display: flex; gap: .5rem; align-items: center; margin: .5rem 0 1rem; }
.check input { width: auto; }

/* Reviews */
.reviews { list-style: none; padding: 0; margin: 0; }
.review { border-top: 1px solid var(--line); padding: 1rem 0; }
.review:first-child { border-top: 0; }
.review-head { display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: center; margin-bottom: .4rem; }
.pill { border-radius: 99px; padding: .1rem .7rem; font-size: .85rem; font-weight: 650; color: #101010; }
.pill.zeker { background: var(--zeker); }
.pill.wacht { background: var(--wacht); }
.pill.skip { background: var(--skip); }
.review p { white-space: pre-wrap; margin-bottom: .4rem; overflow-wrap: anywhere; }
.review .small { font-size: .85rem; color: var(--muted); }
.spoiler { background: var(--surface-2); border: 1px dashed var(--line); border-radius: 10px; padding: .6rem .8rem; }
.notice { background: rgba(242,177,52,.12); border: 1px solid rgba(242,177,52,.4); border-radius: 10px; padding: .6rem .9rem; margin-bottom: 1rem; }
.error { background: rgba(239,107,107,.12); border: 1px solid rgba(239,107,107,.5); border-radius: 10px; padding: .6rem .9rem; margin-bottom: 1rem; }

.narrow { max-width: 460px; margin: 2.5rem auto; }
.foot { color: var(--muted); font-size: .85rem; padding: 2rem 0 3rem; border-top: 1px solid var(--line); margin-top: 3rem; }

@media (max-width: 720px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero .poster { width: 150px; }
  .search { max-width: none; flex-basis: 100%; order: 5; }
  .choices { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .poster img { transition: none; }
}
