/* Video Library – clean, donker, rijen zoals bij streamingdiensten */
:root {
  --bg: #0f0f12;
  --bg-2: #18181d;
  --bg-3: #24242b;
  --line: #2e2e36;
  --text: #ececf1;
  --muted: #9a9aa6;
  --accent: #f5b82e;      /* warm videotheek-amber */
  --accent-ink: #1a1405;
  --ok: #3ccf7a;
  --radius: 8px;
  --gutter: clamp(16px, 4vw, 56px);
  --wood: #4a3426;
  --wood-hi: #6b4b36;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
main { flex: 1; padding-bottom: 48px; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--gutter);
  background: linear-gradient(to bottom, rgba(15,15,18,.97), rgba(15,15,18,.88));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.logo { font-weight: 900; font-size: 20px; letter-spacing: .08em; white-space: nowrap; }
.logo span { color: var(--accent); margin-left: 2px; }
.nav { display: flex; gap: 22px; font-size: 14px; }
.nav a { color: var(--muted); transition: color .15s; }
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.active { font-weight: 600; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.viewswitch { display: flex; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.viewswitch button { border: 0; background: none; padding: 5px 12px; border-radius: 999px; font-size: 13px; color: var(--muted); }
.viewswitch button.active { background: var(--text); color: var(--bg); font-weight: 600; }
.iconbtn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--muted); }
.iconbtn:hover, .iconbtn.active { color: var(--text); background: var(--bg-2); }

@media (max-width: 860px) {
  .topbar { flex-wrap: wrap; gap: 10px 18px; }
  .nav { order: 3; width: 100%; overflow-x: auto; gap: 18px; }
  .viewswitch button { padding: 5px 9px; font-size: 12px; }
}

/* ---------- Knoppen & chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-radius: 6px; padding: 10px 18px; font-weight: 600; font-size: 15px;
  background: rgba(255,255,255,.14); color: var(--text); transition: background .15s, transform .1s;
}
.btn:hover { background: rgba(255,255,255,.22); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #fff; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #ffc94d; }
.btn-small { padding: 6px 12px; font-size: 13px; }
.btn-ghost { background: none; border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg-2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--bg-2); color: var(--muted);
  padding: 6px 13px; border-radius: 999px; font-size: 13px; white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: #444; }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 600; }

select, input[type=text], input[type=search] {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font-size: 14px;
}
select:focus, input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(62vh, 560px);
  display: flex; align-items: flex-end;
  padding: 48px var(--gutter) 56px; margin-bottom: 8px; overflow: hidden;
}
.hero-art { position: absolute; inset: 0; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(15,15,18,.6) 35%, rgba(15,15,18,0) 70%),
              linear-gradient(to right, rgba(15,15,18,.85) 0%, rgba(15,15,18,0) 65%);
}
.hero-body { position: relative; z-index: 1; max-width: 620px; }
.hero-kicker { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { font-size: clamp(34px, 6vw, 64px); line-height: 1; margin: 10px 0 14px; }
.hero p { font-size: 17px; line-height: 1.45; color: #d6d6de; margin: 0 0 22px; }
.hero .meta { margin-bottom: 12px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 14px; color: var(--muted); }
.meta .score { color: var(--accent); font-weight: 700; }

/* ---------- Rijen ---------- */
.section { padding: 0 var(--gutter); margin-top: 34px; }
.row-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.row-head h2 { font-size: 20px; }
.row-head .more { font-size: 13px; color: var(--muted); }
.row-head .more:hover { color: var(--text); }
.row-head .count { font-size: 13px; color: var(--muted); }

.row-wrap { position: relative; }
.row {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 4px 0 14px; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter);
  scroll-padding: 0 var(--gutter);
}
.row::-webkit-scrollbar { display: none; }
.row > * { scroll-snap-align: start; flex: 0 0 auto; }
.row-arrow {
  position: absolute; top: 4px; bottom: 14px; width: 44px; z-index: 3; border: 0;
  background: rgba(15,15,18,.7); color: #fff; font-size: 28px; opacity: 0; transition: opacity .2s;
}
.row-wrap:hover .row-arrow { opacity: 1; }
.row-arrow.left { left: calc(var(--gutter) * -1); }
.row-arrow.right { right: calc(var(--gutter) * -1); }
@media (hover: none) { .row-arrow { display: none; } }

.empty {
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px; color: var(--muted); font-size: 14px;
}
.empty a { color: var(--accent); }

/* ---------- Gegenereerde artwork ---------- */
.art {
  background:
    radial-gradient(120% 80% at 85% 10%, hsla(var(--h2), 85%, 60%, .55), transparent 60%),
    radial-gradient(90% 90% at 10% 100%, hsla(var(--h1), 70%, 18%, 1), transparent 70%),
    linear-gradient(135deg, hsl(var(--h1), 55%, 22%), hsl(var(--h2), 60%, 34%));
}

/* ---------- Weergave: tegels ---------- */
.tile {
  position: relative; width: 260px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden;
  display: block; text-align: left; border: 0; padding: 0; transition: transform .2s, box-shadow .2s;
}
.tile:hover, .tile:focus-visible { transform: scale(1.04); box-shadow: 0 10px 30px rgba(0,0,0,.6); z-index: 2; outline: none; }
.tile .t-title {
  position: absolute; left: 12px; right: 12px; bottom: 10px;
  font-weight: 800; font-size: 18px; line-height: 1.1; text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.tile .t-meta {
  position: absolute; top: 9px; left: 12px; right: 12px; display: flex; gap: 8px; font-size: 12px;
  color: rgba(255,255,255,.85); opacity: 0; transition: opacity .2s;
}
.tile:hover .t-meta, .tile:focus-visible .t-meta { opacity: 1; }
.badge {
  position: absolute; top: 8px; right: 8px; z-index: 1; padding: 3px 7px; border-radius: 4px;
  font-size: 11px; font-weight: 700; background: rgba(0,0,0,.55); color: var(--ok);
}

/* ---------- Weergave: covers ---------- */
.cover {
  position: relative; width: 164px; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; padding: 14px 12px;
  text-align: left; border: 0; transition: transform .2s, box-shadow .2s;
}
.cover:hover, .cover:focus-visible { transform: scale(1.04); box-shadow: 0 10px 30px rgba(0,0,0,.6); z-index: 2; outline: none; }
.cover .c-title { font-weight: 800; font-size: 19px; line-height: 1.08; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.cover .c-foot { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.8); }
.cover .badge { top: auto; bottom: 34px; right: 8px; }

/* ---------- Weergave: ruggen (VHS / DVD) ---------- */
.shelf {
  display: flex; align-items: flex-end; gap: 0 3px; flex-wrap: wrap;
  --slot: 236px; --plank: 14px;
  background: repeating-linear-gradient(to bottom,
    transparent 0, transparent var(--slot),
    var(--wood-hi) var(--slot), var(--wood) calc(var(--slot) + 4px), #2e2018 calc(var(--slot) + var(--plank)));
  padding: 0 6px;
  border-radius: 4px;
}
.row.shelf { flex-wrap: nowrap; gap: 3px; padding-top: 0; padding-bottom: var(--plank); border-radius: 0; }
.slot { height: var(--slot); display: flex; align-items: flex-end; margin-bottom: var(--plank); }
.row.shelf .slot { margin-bottom: 0; }

.spine {
  position: relative; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center;
  transition: transform .18s; transform-origin: bottom center;
}
.spine:hover, .spine:focus-visible { transform: translateY(-10px); outline: none; }
.spine .s-title {
  writing-mode: vertical-rl; font-weight: 800; letter-spacing: .02em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-height: 0;
}
.spine .s-year { font-size: 10px; font-weight: 700; }

/* VHS: zwarte cassettedoos met papieren label */
.spine.vhs {
  width: 42px; height: 228px; background: #111; border-radius: 3px 3px 1px 1px;
  box-shadow: inset 2px 0 0 #2a2a2a, inset -2px 0 0 #050505, 0 2px 4px rgba(0,0,0,.6);
  padding: 8px 5px;
}
.spine.vhs .s-band { width: 100%; height: 14px; border-radius: 2px; margin-bottom: 6px; }
.spine.vhs .s-label {
  flex: 1; width: 100%; min-height: 0; background: #efe8d8; color: #1b1b1b; border-radius: 2px;
  display: flex; flex-direction: column; align-items: center; padding: 6px 0 5px;
}
.spine.vhs .s-title { font-size: 13px; }
.spine.vhs .s-year { color: #555; margin-top: 4px; }
.spine.vhs .s-logo { font-size: 8px; font-weight: 900; color: #777; margin-top: 6px; letter-spacing: .1em; }

/* DVD: smalle, volledig bedrukte rug */
.spine.dvd {
  width: 32px; height: 196px; border-radius: 2px; padding: 7px 0 6px; color: #fff;
  box-shadow: inset 1px 0 0 rgba(255,255,255,.25), inset -1px 0 0 rgba(0,0,0,.35), 0 2px 4px rgba(0,0,0,.6);
}
.spine.dvd .s-logo { font-size: 7px; font-weight: 900; letter-spacing: .05em; background: rgba(0,0,0,.35); padding: 1px 3px; border-radius: 2px; margin-bottom: 6px; }
.spine.dvd .s-title { font-size: 12px; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.spine.dvd .s-year { margin-top: 5px; color: rgba(255,255,255,.85); }
.spine .s-dot { position: absolute; top: -6px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); }

/* ---------- Weergave: lijst ---------- */
.list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.list-item {
  display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center;
  padding: 10px 6px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left;
}
.list-item:hover { background: var(--bg-2); }
.list-item .l-art { width: 54px; aspect-ratio: 2/3; border-radius: 4px; }
.list-item .l-title, .list-item .l-sub, .list-item .l-right > span { display: block; }
.list-item .l-title { font-weight: 650; font-size: 15px; }
.list-item .l-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.list-item .l-right { text-align: right; font-size: 13px; }
.list-item .l-right .score { color: var(--accent); font-weight: 700; }
.list-item .l-right .avail { color: var(--ok); font-size: 12px; margin-top: 3px; }
.row-list { max-width: 900px; }

/* ---------- Grids ---------- */
.grid { display: flex; flex-wrap: wrap; gap: 14px 10px; }

/* ---------- Paginakoppen ---------- */
.page-head { padding: 34px var(--gutter) 0; }
.page-head h1 { font-size: clamp(28px, 4vw, 42px); }
.page-head p { color: var(--muted); margin: 8px 0 0; font-size: 15px; max-width: 640px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 20px; }
.toolbar label { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }

/* ---------- Rayons-overzicht ---------- */
.rayon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.rayon-card {
  position: relative; aspect-ratio: 16/8; border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 14px 16px;
  transition: transform .15s;
}
.rayon-card:hover { transform: translateY(-3px); }
.rayon-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), transparent 70%); }
.rayon-card > * { position: relative; }
.rayon-card h3 { font-size: 19px; }
.rayon-card span { font-size: 12px; color: rgba(255,255,255,.8); margin-top: 2px; }

/* Tijdlijn per decennium */
.timeline { display: flex; gap: 0; margin-top: 18px; border: 1px solid var(--line); border-radius: 999px; overflow-x: auto; width: max-content; max-width: 100%; }
.timeline button { border: 0; background: none; padding: 7px 14px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.timeline button + button { border-left: 1px solid var(--line); }
.timeline button.on { background: var(--text); color: var(--bg); font-weight: 600; }
.timeline button:disabled { opacity: .3; cursor: default; }

/* ---------- Zoeken ---------- */
.searchbox { position: relative; margin-top: 18px; max-width: 760px; }
.searchbox input {
  width: 100%; font-size: 22px; padding: 16px 18px 16px 52px; border-radius: 10px; background: var(--bg-2);
}
.searchbox svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.filters { display: grid; gap: 12px; margin-top: 18px; }
.filters .f-row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.filters .f-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); width: 84px; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
.switch input { accent-color: var(--accent); width: 16px; height: 16px; }

/* ---------- Dialogs ---------- */
.dialog {
  width: min(920px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 0; border: 0;
  border-radius: 12px; background: var(--bg-2); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.7);
}
.dialog::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(3px); }
.dialog-small { width: min(560px, calc(100vw - 24px)); }
.dialog .close {
  position: absolute; top: 14px; right: 14px; z-index: 5; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 20px; line-height: 1;
}
.d-hero { position: relative; aspect-ratio: 16 / 7; min-height: 220px; display: flex; align-items: flex-end; padding: 28px 32px; }
.d-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg-2) 2%, rgba(24,24,29,0) 70%); }
.d-hero > * { position: relative; z-index: 1; }
.d-hero h2 { font-size: clamp(28px, 4.5vw, 44px); line-height: 1.02; }
.d-body { padding: 4px 32px 32px; }
.d-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 20px; }
.d-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.d-blurb { font-size: 16px; line-height: 1.5; margin: 0 0 16px; }
.d-section { margin-top: 26px; }
.d-section h3 { font-size: 17px; margin-bottom: 12px; }
.d-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 14px 0 8px; }
@media (max-width: 720px) {
  .d-cols { grid-template-columns: 1fr; gap: 0; }
  .d-hero { padding: 22px 18px; }
  .d-body { padding: 4px 18px 24px; }
}

.watch { display: flex; flex-direction: column; gap: 8px; }
.watch-btn {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 8px;
  background: var(--bg-3); border: 1px solid transparent; font-weight: 600; font-size: 14px;
}
.watch-btn:hover { border-color: #555; }
.watch-btn .dot { width: 26px; height: 26px; border-radius: 6px; flex: 0 0 auto; display: grid; place-items: center; font-size: 12px; font-weight: 900; color: #fff; }
.watch-btn .go { margin-left: auto; color: var(--muted); font-weight: 500; font-size: 13px; }
.watch-btn.mine { background: rgba(60,207,122,.1); border-color: rgba(60,207,122,.35); }
.watch-btn.mine .go { color: var(--ok); }
.note { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 10px; }

.popover {
  position: absolute; z-index: 10; margin-top: 6px; min-width: 240px; padding: 8px; border-radius: 8px;
  background: var(--bg-3); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.5);
}
.popover label { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 6px; font-size: 14px; cursor: pointer; }
.popover label:hover { background: rgba(255,255,255,.06); }
.popover input { accent-color: var(--accent); }
.popover .new-shelf { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line); margin-top: 4px; }
.popover .new-shelf input { flex: 1; min-width: 0; }
.rel { position: relative; display: inline-block; }

/* Startpagina-editor */
.editor { padding: 26px 26px 22px; }
.editor h2 { font-size: 22px; }
.editor p { color: var(--muted); font-size: 14px; margin: 6px 0 18px; }
.editor-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.editor-list li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--bg-3); border-radius: 6px; font-size: 14px; }
.editor-list li span { flex: 1; }
.editor-list button { border: 0; background: none; width: 30px; height: 30px; border-radius: 6px; color: var(--muted); font-size: 15px; }
.editor-list button:hover:not(:disabled) { background: rgba(255,255,255,.08); color: var(--text); }
.editor-list button:disabled { opacity: .25; cursor: default; }
.editor-add { display: flex; gap: 8px; margin-top: 16px; }
.editor-add select { flex: 1; min-width: 0; }
.editor-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 22px; }

/* ---------- Lidkaart ---------- */
.card-wrap { padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; max-width: 900px; margin-top: 26px; }
.member-card {
  position: relative; max-width: 420px; aspect-ratio: 1.586; border-radius: 16px; padding: 22px 24px;
  background: linear-gradient(135deg, #2a2016, #6b4b36 55%, #f5b82e);
  box-shadow: 0 18px 40px rgba(0,0,0,.5); display: flex; flex-direction: column; justify-content: space-between;
}
.member-card .mc-top { display: flex; justify-content: space-between; font-weight: 900; letter-spacing: .08em; font-size: 15px; }
.member-card .mc-num { font-family: ui-monospace, Menlo, monospace; letter-spacing: .14em; font-size: 15px; opacity: .9; }
.member-card .mc-bar { height: 34px; background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 5px, transparent 5px 8px); opacity: .55; border-radius: 3px; }
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.panel h2 { font-size: 18px; margin-bottom: 4px; }
.panel > p { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.svc {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg-3); font-size: 14px; font-weight: 600; text-align: left;
}
.svc .dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }
.svc.on { border-color: var(--ok); background: rgba(60,207,122,.1); }
.svc .check { margin-left: auto; color: var(--ok); opacity: 0; }
.svc.on .check { opacity: 1; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Rekken ---------- */
.shelf-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.shelf-head h2 { font-size: 20px; }
.shelf-head .actions { margin-left: auto; display: flex; gap: 6px; }

/* ---------- Footer ---------- */
.footer { padding: 26px var(--gutter) 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.6; }
.footer p { margin: 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: opacity .2s, transform .2s; z-index: 100; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Fase 2: echte beelden van TMDB ---------- */
.art { overflow: hidden; }
.art > .pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.tile > *:not(.pic), .cover > *:not(.pic) { position: relative; z-index: 1; }
.tile .t-title, .tile .t-meta, .tile .badge, .cover .badge { position: absolute; }
.tile:has(.pic)::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,0) 55%), linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,0) 35%);
}
.cover.has-pic .c-title, .cover.has-pic .c-foot { visibility: hidden; }
.cover.has-pic:hover .c-foot { visibility: visible; background: rgba(0,0,0,.65); margin: 0 -12px -14px; padding: 6px 12px; }
.list-item .l-art { position: relative; overflow: hidden; }
.hero-art > .pic { object-position: center 25%; }
.d-hero > .pic { z-index: 0; }
.d-hero > div { z-index: 1; }
.d-tag { margin: 8px 0 0; color: #d6d6de; font-style: italic; }

/* Laden */
@keyframes skel { 0% { opacity: .55 } 50% { opacity: 1 } 100% { opacity: .55 } }
.skel { display: block; flex: 0 0 auto; width: 260px; aspect-ratio: 16 / 9; border-radius: 6px; background: #1c1c22; animation: skel 1.4s ease-in-out infinite; }
.skel-row { display: flex; gap: 8px; overflow: hidden; }
.skel-grid { width: 164px; aspect-ratio: 2 / 3; }
.skel-hero { min-height: 340px; background: #16161b; animation: skel 1.4s ease-in-out infinite; }
.more-wrap { display: flex; justify-content: center; margin-top: 22px; }

/* Waar kijken: logo's */
.watch-btn .logo { width: 26px; height: 26px; border-radius: 6px; flex: 0 0 auto; }
.watch-btn .dot:not([style]) { background: #3a3a44; }

/* Extra's: making-of en trailers */
.vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 10px; }
.vid { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.vid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: #1c1c22; }
.vid:hover img { outline: 2px solid var(--accent); }
.vid-type { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 10px; }
.vid-name { color: var(--text); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Lidkaart: status van de koppeling */
.status { font-weight: 700; margin-right: 6px; color: var(--muted); }
.status.ok { color: var(--ok); }
.footer a { color: var(--accent); }

/* ---------- Inspiratienetwerk: tijdlijn ---------- */
.tl { position: relative; display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: thin; }
.tl::before { content: ""; position: absolute; left: 0; right: 0; top: 112px; height: 2px; background: #2c2c34; }
.tl-node { position: relative; flex: 0 0 auto; width: 112px; display: flex; flex-direction: column; gap: 4px; text-align: left; background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.tl-node.self { cursor: default; }
.tl-rel { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); min-height: 26px; line-height: 1.25; display: flex; align-items: flex-end; }
.tl-rel.before { color: #7fb6ff; }
.tl-rel.after { color: var(--ok); }
.tl-node.self .tl-rel { color: var(--accent); }
.tl-card { position: relative; width: 112px; aspect-ratio: 2 / 3; border-radius: 6px; display: flex; align-items: flex-end; padding: 8px; transition: transform .2s; }
.tl-node:not(.self):hover .tl-card { transform: translateY(-3px); }
.tl-node.self .tl-card { outline: 2px solid var(--accent); outline-offset: 2px; }
.tl-node.other .tl-card { opacity: .8; }
.tl-kind { position: relative; z-index: 1; font-size: 11px; font-weight: 700; color: rgba(255,255,255,.9); text-transform: capitalize; }
.tl-title { font-size: 13px; font-weight: 700; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tl-sub { font-size: 12px; color: var(--muted); }

/* ---------- Titelvenster: trailer bovenaan ---------- */
.d-hero { overflow: hidden; }
.d-trailer {
  position: absolute; top: 50%; left: 50%; width: 100%; aspect-ratio: 16 / 9; transform: translate(-50%, -50%) scale(1.15);
  border: 0; pointer-events: none; z-index: 0; opacity: 0; transition: opacity 1.2s ease 1.5s;
}
.d-trailer.on { opacity: 1; }
.d-hero .sound {
  position: absolute; right: 18px; bottom: 18px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.35); cursor: pointer;
}
.d-hero .sound:hover { background: rgba(0,0,0,.7); border-color: #fff; }
.d-hero > h2, .d-hero > div { position: relative; z-index: 1; }
.d-body > .chips { margin-top: 4px; }
.d-watch .watch { max-width: 520px; }
@media (prefers-reduced-motion: reduce) { .d-trailer { display: none; } }

/* ---------- Titelvenster v3 ---------- */
/* Geluidsknop enkel zichtbaar als je over de trailer zweeft (op touchscreens altijd) */
.d-hero .sound { opacity: 0; transition: opacity .25s; }
.d-hero:hover .sound, .d-hero .sound:focus-visible { opacity: 1; }
@media (hover: none) { .d-hero .sound { opacity: 1; } }
.d-genres { margin: 2px 0 12px; }
.score .src { font-size: 10px; font-weight: 700; letter-spacing: .06em; margin-left: 5px; padding: 1px 4px; border-radius: 3px; background: rgba(255,255,255,.12); color: var(--muted); vertical-align: 1px; }

/* Afspelen + keuze van dienst */
.play-group { display: inline-flex; }
.play-group .btn-primary:first-child:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.play-group .btn-more { border-top-left-radius: 0; border-bottom-left-radius: 0; padding-left: 10px; padding-right: 12px; border-left: 1px solid rgba(0,0,0,.15); }
.play-panel { display: none; max-width: 520px; margin: -6px 0 18px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.play-panel.open { display: block; animation: drop .18s ease-out; }
.play-panel .d-label:first-child { margin-top: 0; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Kop met knop rechts (tijdlijn, netwerk) */
.d-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.d-head h3 { margin: 0; }
.d-head > :last-child:not(h3) { margin-left: auto; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.seg button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.seg button.on { background: var(--text); color: var(--bg); }

/* Tijdlijn van het verhaal: zonder labels erboven */
.tl.story::before { top: 86px; }
.tl.story .tl-node { width: 100px; }
.tl.story .tl-card { width: 100px; }
.seen-mark { position: absolute; top: 6px; right: 6px; z-index: 2; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #06210f; font-size: 13px; font-weight: 900; }

/* Dobbelsteen: willekeurige film uit een rayon */
.dice { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; align-self: center; }
.dice:hover { color: var(--text); border-color: #555; }
.dice.spin svg, .btn .spin svg { animation: roll .6s linear infinite; }
@keyframes roll { to { transform: rotate(360deg); } }
.toolbar .btn svg { vertical-align: -4px; margin-right: 4px; }

/* ---------- Spinnenweb ---------- */
.web-dialog { width: calc(100vw - 24px); height: calc(100vh - 24px); max-width: none; max-height: none; display: none; flex-direction: column; overflow: hidden; }
.web-dialog[open] { display: flex; }
.web-top { display: flex; align-items: center; gap: 16px; padding: 16px 64px 12px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.web-top h2 { font-size: 20px; }
.web-count { color: var(--ok); font-size: 13px; font-weight: 600; }
.web-legend { margin-left: auto; display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.lg::before { content: ""; display: inline-block; width: 16px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: 3px; }
.lg.before::before { background: #7fb6ff; }
.lg.after::before { background: var(--ok); }
.lg.seen::before { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); vertical-align: 0; }
.web-stage { position: relative; flex: 1; overflow: hidden; touch-action: none; cursor: grab; background: radial-gradient(circle at center, #1b1b22, var(--bg-2) 70%); }
.web-stage:active { cursor: grabbing; }
.web-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.web-svg { width: 100%; height: 100%; display: block; }
.web-svg line { stroke-width: 2; opacity: .55; }
.web-svg line.before { stroke: #7fb6ff; }
.web-svg line.after { stroke: var(--ok); }
.web-svg line.cross { stroke-dasharray: 4 5; opacity: .35; }
.wn { cursor: pointer; }
.wn .bg { fill: #2a2a33; }
.wn .ring { fill: none; stroke: #444; stroke-width: 2; }
.wn:hover .ring { stroke: var(--text); }
.wn.l0 .ring { stroke: var(--accent); stroke-width: 3; }
.wn.seen .ring { stroke: var(--ok); stroke-width: 3; }
.wn.other .bg { fill: #24242b; }
.wn.other image { opacity: .6; }
.wn .check circle { fill: var(--ok); }
.wn .check path { fill: none; stroke: #06210f; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wn .wl { fill: var(--text); font-size: 12px; font-weight: 700; text-anchor: middle; paint-order: stroke; stroke: var(--bg-2); stroke-width: 4px; }
.wn .wy { fill: var(--muted); font-size: 11px; text-anchor: middle; paint-order: stroke; stroke: var(--bg-2); stroke-width: 4px; }
.wn .wi { fill: var(--muted); font-size: 20px; font-weight: 800; text-anchor: middle; }
.wn.l0 .wl { font-size: 14px; }
@media (max-width: 720px) { .web-legend { margin-left: 0; width: 100%; } }

/* ---------- v4 ---------- */
/* Sluitknop van het titelvenster: enkel zichtbaar boven de trailer */
#title-dialog > .close { opacity: 0; transition: opacity .25s; }
#title-dialog:has(.d-hero:hover) > .close, #title-dialog > .close:hover, #title-dialog > .close:focus-visible { opacity: 1; }
@media (hover: none) { #title-dialog > .close { opacity: 1; } }
/* Al gezien: grijs */
.is-seen .pic, .is-seen.art:not(:has(.pic)), .spine.is-seen, .list-item.is-seen .l-art { filter: grayscale(1) brightness(.6); transition: filter .2s; }
.is-seen:hover .pic, .is-seen.art:hover, .spine.is-seen:hover { filter: grayscale(.4) brightness(.85); }
.list-item.is-seen .l-title { color: var(--muted); }

/* ---------- v5: wisselend beeld bovenaan ---------- */
.hero-rot { min-height: min(72vh, 640px); }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.on { opacity: 1; }
.hero-slide .hero-art { position: absolute; inset: 0; overflow: hidden; }
.hero-slide .d-trailer { transform: translate(-50%, -50%) scale(1.35); }
.hero-rot::after { z-index: 1; pointer-events: none; }
.hero-rot .hero-body { z-index: 2; }
.hero-rot h1 { margin: 0 0 18px; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.hero-rot .sound {
  position: absolute; right: var(--gutter); bottom: 64px; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.35); cursor: pointer;
  opacity: 0; transition: opacity .25s;
}
.hero-rot:hover .sound, .hero-rot .sound:focus-visible { opacity: 1; }
@media (hover: none) { .hero-rot .sound { opacity: 1; } }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.hero-dots button { width: 22px; height: 4px; border-radius: 2px; border: 0; padding: 0; background: rgba(255,255,255,.3); cursor: pointer; transition: background .3s, width .3s; }
.hero-dots button.on { background: #fff; width: 34px; }
.edit-home { margin-top: 0; display: flex; justify-content: flex-end; }
.edit-home .btn { font-size: 16px; padding: 4px 10px; }

/* Rayonpagina: kop met publiek en dobbelsteen; filters naast elkaar */
.rayon-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 6px; }
.rayon-head h1 { margin: 0; }
.seg a { display: inline-block; color: var(--muted); font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.seg a.on { background: var(--text); color: var(--bg); }
.row-head select { background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; font: inherit; font-size: 13px; }

/* ---------- v6: rustiger beeld bovenaan ---------- */
/* Half zo hoog; gaat pas volledig open als je erover zweeft. Tekst en knoppen ook pas dan. */
.hero-rot { min-height: 0; height: clamp(220px, 36vh, 340px); padding-bottom: 44px; transition: height .6s cubic-bezier(.2,.7,.2,1); }
.hero-rot:hover { height: min(72vh, 640px); }
.hero-rot .hero-body { opacity: 0; transform: translateY(12px); transition: opacity .35s .1s, transform .35s .1s; }
.hero-rot:hover .hero-body, .hero-rot:focus-within .hero-body { opacity: 1; transform: none; }
.hero-rot #hero-blurb { max-width: 560px; font-size: 16px; margin: 0 0 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-rot h1 { margin-bottom: 10px; }
.hero-rot .sound { bottom: 44px; }
.hero-dots { bottom: 16px; }
/* Zonder muis (gsm/tablet): compact, titel en knop altijd zichtbaar, geen samenvatting */
@media (hover: none) {
  .hero-rot, .hero-rot:hover { height: clamp(240px, 42vh, 380px); }
  .hero-rot .hero-body { opacity: 1; transform: none; }
  .hero-rot #hero-blurb { display: none; }
}

/* ---------- v7: rustig beeld bovenaan, klik = openen ---------- */
.hero-rot, .hero-rot:hover { height: clamp(220px, 36vh, 340px); cursor: pointer; }
.hero-rot.open, .hero-rot.open:hover { height: min(72vh, 640px); cursor: default; }
.hero-rot .hero-body, .hero-rot:hover .hero-body { opacity: 0; transform: translateY(12px); pointer-events: none; }
.hero-rot.open .hero-body { opacity: 1; transform: none; pointer-events: auto; }
.hero-rot .sound, .hero-rot:hover .sound { opacity: 0; pointer-events: none; }
.hero-rot.open:hover .sound { opacity: 1; pointer-events: auto; }
.hero-arrow {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 44px; height: 64px; border: 0; border-radius: 8px;
  background: rgba(0,0,0,.4); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .25s, background .2s;
}
.hero-arrow.left { left: 12px; }
.hero-arrow.right { right: 12px; }
.hero-arrow:hover { background: rgba(0,0,0,.7); }
.hero-rot:hover .hero-arrow, .hero-arrow:focus-visible { opacity: 1; }
.hero-close {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0;
  display: none; place-items: center; background: rgba(0,0,0,.5); color: #fff; cursor: pointer;
}
.hero-rot.open .hero-close { display: grid; opacity: 0; transition: opacity .25s; }
.hero-rot.open:hover .hero-close { opacity: 1; }
.hero-dots { display: none; }
@media (hover: none) {
  .hero-arrow, .hero-rot.open .hero-close, .hero-rot.open .sound { opacity: 1; pointer-events: auto; }
  .hero-rot .hero-body { opacity: 0; }
  .hero-rot.open .hero-body { opacity: 1; }
}

/* Cast & studio (verborgen achter een knop) */
.people-btn { margin: 0 0 4px; }
.people-btn.on { background: var(--text); color: var(--bg); }
.d-people { margin: 14px 0 6px; }
.faces, .who { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.who { margin: 0 0 18px; align-items: center; }
.face { flex: 0 0 auto; width: 84px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; color: inherit; }
.face-img { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: #2a2a33; display: grid; place-items: center; font-weight: 800; color: var(--muted); border: 2px solid transparent; transition: border-color .2s; }
.face:hover .face-img { border-color: var(--text); }
.face-img img { width: 100%; height: 100%; object-fit: cover; }
.face-name { font-size: 12px; font-weight: 700; line-height: 1.2; }
.face-role { font-size: 11px; color: var(--muted); line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.logos { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.logo-chip { background: #e9e9ee; border-radius: 8px; padding: 8px 12px; height: 44px; display: grid; place-items: center; }
.logo-chip img { max-height: 28px; max-width: 110px; object-fit: contain; }

/* Studio's: logo-tegels */
.logo-row { gap: 10px; }
.studio-tile { flex: 0 0 auto; width: 170px; height: 96px; border-radius: 8px; background: #e9e9ee; display: grid; place-items: center; padding: 16px; transition: transform .2s; }
.studio-tile:hover { transform: scale(1.04); }
.studio-tile img { max-width: 100%; max-height: 60px; object-fit: contain; }

/* Pagina persoon / studio */
.person-head, .studio-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.person-head h1, .studio-head h1 { margin: 0; }
.person-photo { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: #2a2a33; display: grid; place-items: center; font-size: 34px; font-weight: 800; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.studio-logo { background: #e9e9ee; border-radius: 10px; padding: 12px 18px; height: 72px; display: grid; place-items: center; }
.studio-logo img { max-height: 48px; max-width: 200px; object-fit: contain; }
.progress { width: 180px; height: 4px; border-radius: 2px; background: #2c2c34; margin: 10px 0 4px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--ok); }
.progress-txt { font-size: 12px; }

/* ---------- v8: ronde knoppen, cleaner ---------- */
.btn, .btn-small, .chip, .watch-btn, .people-btn, .play-panel .watch-btn, .viewswitch, .viewswitch button,
.row-head select, select, .searchbox, .toolbar input, .svc, .new-shelf input, .new-shelf .btn { border-radius: 999px; }
.play-group .btn-primary:first-child:not(:last-child) { border-radius: 999px 0 0 999px; }
.play-group .btn-more { border-radius: 0 999px 999px 0; }
.dice, .iconbtn, .edit-home .btn, .row-arrow { border-radius: 50%; }
.dice { width: 34px; height: 34px; }
.hero-arrow { width: 48px; height: 48px; border-radius: 50%; font-size: 30px; padding-bottom: 4px; }
.watch-btn .logo, .watch-btn .dot { border-radius: 50%; }
.row-head select, select { padding-left: 12px; padding-right: 12px; }

/* ---------- v9: kleinere cirkels, verzamelknoppen ---------- */
.dice { width: 28px; height: 28px; }
.dice svg { width: 15px; height: 15px; }
.hero-arrow { width: 38px; height: 38px; font-size: 24px; }
.hero-rot .sound, .d-hero .sound { width: 34px; height: 34px; }
.hero-close, .dialog .close { width: 30px; height: 30px; font-size: 17px; }
.iconbtn { width: 34px; height: 34px; }
.edit-home .btn { width: 30px; height: 30px; padding: 0; font-size: 14px; }

/* Reeksen en stijlen: grote tegels met de naam */
.fr-row { gap: 10px; }
.fr-tile { position: relative; flex: 0 0 auto; width: 220px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; display: flex; align-items: flex-end; padding: 12px; transition: transform .2s; }
.fr-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,.05) 65%); }
.fr-tile span { position: relative; z-index: 1; font-weight: 800; font-size: 18px; line-height: 1.1; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.fr-tile:hover { transform: scale(1.04); }
.artist-row { gap: 16px; }
.artist-row .face { width: 96px; }
.artist-row .face-img { width: 84px; height: 84px; }

/* ---------- v10: TV en sport ---------- */
.tv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; padding: 0 var(--gutter) 30px; }
.tv-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.tv-now { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; color: inherit; position: relative; }
.tv-now:hover { background: #1d1d24; }
.tv-ch { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tv-title { font-size: 17px; font-weight: 800; line-height: 1.2; }
.tv-time { font-size: 12px; color: var(--muted); }
.tv-bar { height: 3px; border-radius: 2px; background: #2c2c34; overflow: hidden; }
.tv-bar span { display: block; height: 100%; background: var(--accent); }
.tv-live { position: absolute; top: 14px; right: 16px; font-size: 11px; font-weight: 800; color: #ff4d4d; }
.tv-next { border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.tv-next a { display: flex; gap: 10px; padding: 7px 16px; font-size: 13px; color: var(--text); }
.tv-next a:hover { background: #1d1d24; }
.tv-next a span { color: var(--muted); min-width: 64px; font-variant-numeric: tabular-nums; }
.sport-row { gap: 10px; }
.sport-tile { flex: 0 0 auto; width: 240px; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); color: inherit; }
.sport-tile.live { border-color: rgba(255,77,77,.5); }
.sport-tile.live .tv-time { color: #ff4d4d; font-weight: 800; }
.sport-tile:hover { background: #1d1d24; }

/* ---------- v11: videotheek-opbouw, rustige tegels, vloeiender scrollen ---------- */
html { scroll-behavior: smooth; }
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(15,15,18,.82); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid rgba(255,255,255,.05); }
.nav { gap: 18px; }

/* Rijen komen zacht binnen als ze laden */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.row-slot > .section { animation: rise .45s ease both; }
.section { margin-top: 30px; }

/* Genre-blok: covers met daaronder de onderverdelingen */
.genre-block { padding-top: 18px; border-top: 1px solid rgba(255,255,255,.06); }
.genre-block .row-head h2 { font-size: 24px; letter-spacing: -.01em; }
.genre-block .row-head h2 a { color: inherit; }
.genre-block .row-head h2 a:hover { color: var(--accent); }
.sub-row { margin-top: 12px; }

/* Rustige tegels: tekst of logo, geen drukke foto's */
.tile-row { gap: 10px; padding-top: 2px; padding-bottom: 6px; }
.sub-tile {
  flex: 0 0 auto; display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px;
  background: #1a1a20; border: 1px solid rgba(255,255,255,.08); color: var(--text); font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: background .2s, border-color .2s;
}
.sub-tile:hover { background: #24242c; border-color: rgba(255,255,255,.2); }
.logo-tile {
  flex: 0 0 auto; width: 150px; height: 76px; border-radius: 14px; display: grid; place-items: center; padding: 14px 18px;
  background: #18181d; border: 1px solid rgba(255,255,255,.07); transition: background .2s, border-color .2s, transform .2s;
}
.logo-tile:hover { background: #222229; border-color: rgba(255,255,255,.18); transform: translateY(-2px); }
/* Logo's in één zachte tint zodat ze opgaan in de donkere achtergrond */
.logo-tile img { max-width: 100%; max-height: 44px; object-fit: contain; filter: brightness(0) invert(1); opacity: .72; transition: opacity .2s; }
.logo-tile:hover img { opacity: .95; }
.logo-tile span { font-weight: 700; font-size: 14px; color: #c9c9d1; text-align: center; }
.logo-tile.fr { width: 180px; height: 90px; }
.logo-tile.fr img { filter: grayscale(1) brightness(1.6); opacity: .75; max-height: 56px; }
.logo-tile.fr:hover img { filter: none; opacity: 1; }
.studio-logo { background: #18181d; border: 1px solid rgba(255,255,255,.07); }
.studio-logo img { filter: brightness(0) invert(1); opacity: .8; }
.logo-chip { background: #18181d; border: 1px solid rgba(255,255,255,.07); }
.logo-chip img { filter: brightness(0) invert(1); opacity: .75; }

/* Agenda */
.agenda { gap: 10px; }
.ag-item { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; width: 260px; padding: 8px 14px 8px 8px; border-radius: 14px; background: #18181d; border: 1px solid rgba(255,255,255,.07); text-align: left; color: inherit; cursor: pointer; }
.ag-item:hover { background: #222229; }
.ag-pic { position: relative; flex: 0 0 auto; width: 44px; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; }
.ag-txt { display: flex; flex-direction: column; min-width: 0; }
.ag-day { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.ag-title { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-sub { font-size: 12px; color: var(--muted); }

/* ---------- v12: compacter, symbolen voor genres, emblemen voor reeksen ---------- */
.section { margin-top: 16px; }
.row-head { margin-bottom: 8px; }
.genre-block { border-top: 0; padding-top: 6px; margin-top: 22px; }
.genre-block .row-head h2 { font-size: 21px; display: flex; align-items: center; }
.genre-block .row-head h2 a { display: inline-flex; align-items: center; gap: 10px; }
.g-ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: hsl(var(--hue) 75% 72%); background: hsl(var(--hue) 40% 18%); }
.sub-row { margin-top: 8px; }
.row-slot > .section { animation-duration: .35s; }

/* Genre-tegels: symbool + naam */
.genre-tile {
  flex: 0 0 auto; width: 128px; height: 96px; border-radius: 16px; display: flex; flex-direction: column; justify-content: space-between; padding: 14px;
  color: hsl(var(--hue) 80% 80%); background: linear-gradient(145deg, hsl(var(--hue) 45% 20%), hsl(var(--hue) 35% 11%));
  border: 1px solid hsl(var(--hue) 40% 26% / .6); transition: transform .2s, border-color .2s;
}
.genre-tile span { color: var(--text); font-weight: 700; font-size: 14px; }
.genre-tile:hover { transform: translateY(-2px); border-color: hsl(var(--hue) 60% 55% / .7); }

/* Subgenres: kleiner, met het symbool van hun genre */
.sub-tile { height: 38px; padding: 0 14px 0 10px; gap: 8px; font-size: 13px; color: var(--text); background: hsl(var(--hue, 220) 25% 13%); border-color: hsl(var(--hue, 220) 30% 24% / .7); }
.sub-tile svg { color: hsl(var(--hue, 220) 70% 70%); }
.sub-tile:hover { background: hsl(var(--hue, 220) 30% 17%); }

/* Reeksen: rustig embleem met enkel de naam */
.fr-emblem {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 8px; border-radius: 999px;
  background: linear-gradient(135deg, hsl(var(--hue) 35% 16%), hsl(var(--hue) 25% 10%)); border: 1px solid hsl(var(--hue) 35% 25% / .7); transition: border-color .2s, transform .2s;
}
.fr-emblem:hover { border-color: hsl(var(--hue) 60% 55% / .8); transform: translateY(-1px); }
.fr-ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: hsl(var(--hue) 75% 75%); background: hsl(var(--hue) 40% 22%); }
.fr-name { font-weight: 800; font-size: 15px; letter-spacing: .01em; white-space: nowrap; }

/* Klassieke matchen */
.vid-row { gap: 12px; }
.vid-row .vid { flex: 0 0 auto; width: 260px; }

/* ---------- v13: reeksen als posters, afleveringen, duimpjes ---------- */
.fr-posters { gap: 10px; }
.fr-poster { position: relative; flex: 0 0 auto; width: 150px; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; display: flex; align-items: flex-end; padding: 12px; transition: transform .2s; }
.fr-poster .pic { object-position: center; }
.fr-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.9) 5%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.25)); }
.fr-poster span { position: relative; z-index: 1; font-weight: 900; font-size: 19px; line-height: 1.05; letter-spacing: -.01em; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.fr-poster:hover { transform: scale(1.04); }

.ep-badge { position: absolute; left: 8px; bottom: 8px; z-index: 2; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.7); color: var(--accent); }
.cover .ep-badge { bottom: 34px; }

.thumbs { display: inline-flex; gap: 4px; }
.btn-icon { width: 40px; height: 40px; padding: 0; display: inline-grid; place-items: center; border-radius: 50%; }
.btn-icon.on { background: var(--accent); color: var(--accent-ink); }
.d-toggles { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin: 4px 0 4px; }
.d-eps { margin: 10px 0 6px; }
.ep-tabs { margin-bottom: 10px; flex-wrap: wrap; }
.ep-list { display: flex; flex-direction: column; gap: 2px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.ep { display: flex; gap: 12px; align-items: flex-start; padding: 8px 6px; border-radius: 10px; }
.ep:hover { background: #1d1d24; }
.ep.future { opacity: .55; }
.ep-check { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #4a4a55; background: none; color: #06210f; font-weight: 900; cursor: pointer; display: grid; place-items: center; margin-top: 1px; }
.ep.done .ep-check { background: var(--ok); border-color: var(--ok); }
.ep-check:disabled { cursor: default; }
.ep-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ep-title { font-weight: 700; font-size: 14px; }
.ep.done .ep-title { color: var(--muted); }
.ep-sub { font-size: 12px; color: var(--muted); }
.ep-ov { font-size: 13px; color: #c9c9d1; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep-foot { margin-top: 8px; }
.who-plus { align-self: center; font-size: 22px; color: var(--muted); font-weight: 300; }
.sport-tile.news .tv-time { color: var(--muted); }

/* ---------- v14: één knop voor je lijst, dubbele duim ---------- */
.list-group { display: inline-flex; }
.list-group > .btn:first-child { border-radius: 999px 0 0 999px; }
.btn-more-small { border-radius: 0 999px 999px 0; padding-left: 8px; padding-right: 10px; border-left: 1px solid rgba(0,0,0,.25); }
.btn-icon.double { width: 52px; border-radius: 999px; }
.btn-icon.double svg + svg { margin-left: -6px; }
.btn-icon.double { display: inline-flex; align-items: center; justify-content: center; }

/* ---------- v15: logo's, jaarknop, in de kijker ---------- */
/* Logo's: verborgen tot we weten of ze licht of donker zijn, dan in één zachte tint met hun binnenkant zichtbaar */
.logo-tile img { opacity: 0; filter: none; transition: opacity .25s; }
.logo-tile img.is-light { filter: grayscale(1) brightness(1.15); opacity: .8; }
.logo-tile img.is-dark { filter: grayscale(1) invert(1) brightness(1.1); opacity: .8; }
.logo-tile:hover img.is-light, .logo-tile:hover img.is-dark { opacity: 1; }
/* Reeksen: logo's in kleur */
.logo-tile.colour { width: 170px; height: 86px; }
.logo-tile.colour img.is-light { filter: none; opacity: .95; }
.logo-tile.colour img.is-dark { filter: invert(1) hue-rotate(180deg); opacity: .95; }

/* Jaarknop */
.year-ctl select { appearance: none; -webkit-appearance: none; background: #1a1a20; color: var(--text); border: 1px solid rgba(255,255,255,.1); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.year-ctl.on select { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
#year-bar { position: sticky; top: 61px; z-index: 40; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px var(--gutter); background: rgba(245,184,46,.12); border-bottom: 1px solid rgba(245,184,46,.25); font-size: 13px; backdrop-filter: blur(10px); }
#year-bar strong { color: var(--accent); }
#year-bar button { background: none; border: 1px solid rgba(255,255,255,.15); color: var(--text); border-radius: 999px; padding: 3px 12px; font: inherit; font-size: 12px; cursor: pointer; }
#year-bar button:hover { border-color: var(--accent); }

/* In de kijker */
.spot-row { gap: 12px; }
.spot { position: relative; flex: 0 0 auto; width: min(420px, 82vw); aspect-ratio: 16 / 8; border-radius: 12px; overflow: hidden; border: 0; padding: 0; text-align: left; color: inherit; cursor: pointer; transition: transform .2s; }
.spot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,.05) 60%); }
.spot:hover { transform: scale(1.02); }
.spot-txt { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; display: flex; flex-direction: column; gap: 3px; }
.spot-kick { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.spot-title { font-size: 22px; font-weight: 900; line-height: 1.05; }
.spot-meta { font-size: 12px; color: rgba(255,255,255,.8); }
.logo-tile.colour span { font-weight: 900; font-size: 17px; color: var(--text); letter-spacing: .01em; }

/* ---------- v16: compacter, subgenres pas bij zweven ---------- */
.section, .section:first-child { margin-top: 8px; }
.row { padding-top: 2px; padding-bottom: 8px; }
.row-head { margin-bottom: 6px; }
.row-head h2 { font-size: 18px; }
.genre-block { margin-top: 12px; padding-top: 0; }
.genre-block .row-head h2 { font-size: 19px; }
.page-head { padding-top: 18px; }
.edit-home { margin-top: 0; }
.tile-row { padding-bottom: 4px; }
/* Subgenres verschijnen pas als je over het genre zweeft (op touchscreens altijd) */
.genre-block .sub-row { max-height: 0; opacity: 0; overflow: hidden; margin-top: 0; padding-top: 0; padding-bottom: 0; transition: max-height .3s ease, opacity .25s ease, margin .3s; }
.genre-block:hover .sub-row, .genre-block:focus-within .sub-row { max-height: 60px; opacity: 1; margin-top: 2px; padding-bottom: 6px; overflow-x: auto; }
@media (hover: none) { .genre-block .sub-row { max-height: none; opacity: 1; overflow-x: auto; padding-bottom: 6px; } }
/* Gekleurde logo's: bij studio's een zachte grijstint, bij reeksen in hun echte kleuren */
.logo-tile img.is-colour { filter: grayscale(1) brightness(1.3); opacity: .8; }
.logo-tile.colour img.is-colour { filter: none; opacity: 1; }
.logo-tile.colour img.is-dark { filter: invert(1); }

/* ---------- v17: logotegels netjes uitgelijnd met de covers eronder ---------- */
.tile-row { gap: 10px; }
body[data-view="covers"] .logo-tile, body[data-view="covers"] .logo-tile.colour { width: 164px; height: 82px; }
body[data-view="tiles"] .logo-tile, body[data-view="tiles"] .logo-tile.colour { width: 260px; height: 96px; }
.logo-tile, .logo-tile.colour { padding: 14px 20px; border-radius: 10px; }
.logo-tile.colour img { max-height: 52px; }
/* Logo volledig wit (bv. 007, Fast & Furious) */
.logo-tile.force-white img, .logo-tile.force-white img.is-dark, .logo-tile.force-white img.is-light, .logo-tile.force-white img.is-colour { filter: brightness(0) invert(1) !important; opacity: .95; }
/* Bewerkte logo's: geen extra filter meer nodig */
.logo-tile img.is-white { filter: none !important; opacity: .9; }
.logo-tile:hover img.is-white { opacity: 1; }
.logo-tile.colour img.is-colour { filter: none !important; opacity: 1; }
