/* Figtree, lokaal geserveerd (geen verzoeken naar Google Fonts) */
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/figtree-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/figtree-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #000;
  --surface: #141414;
  --surface-2: #232323;
  --line: #333;
  --text: #fff;
  --muted: #a6a6a6;
  --red: #e50914;
  --red-hover: #f6121d;
  --yt: #ff0033;
  --tw: #9146ff;
  --regio: #2d8cff;
  --warn: #ffb020;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad-x: max(20px, env(safe-area-inset-left));
  color-scheme: dark;
}

[hidden] { display: none !important; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); }
body { font-size: 16px; line-height: 1.4; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--red); outline-offset: 2px;
}

/* ---------- Inloggen ---------- */
body.booting > *:not(script) { visibility: hidden; }
body.logged-out .topbar, body.logged-out main, body.logged-out #view-watch { display: none !important; }
body.watching .site-footer { display: none; }
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.login-box { width: min(420px, 100%); }
.login h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; margin: 28px 0 18px; }
.brand.big .mark { width: 44px; height: 44px; }
.brand.big .mark svg { width: 22px; height: 22px; }
.brand.big .wordmark { font-size: 1.8rem; }
.login .stack .btn { justify-self: stretch; padding: 14px; font-size: 1.05rem; }
.login-switch { color: var(--muted); margin-top: 22px; }
.login-switch .link-btn { color: #fff; font-weight: 700; font-size: 1rem; }
.login-safety {
  display: flex; align-items: center; gap: 10px; margin-top: 28px; padding-top: 18px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; font-weight: 600;
}
.login-safety svg { width: 20px; height: 20px; fill: var(--warn); flex: none; }
.stack label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: .92rem; color: #ddd; }
.stack label.check input { width: 20px; height: 20px; margin: 1px 0 0; padding: 0; flex: none; accent-color: var(--red); }
.check a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Bovenbalk ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 20px;
  padding: calc(10px + env(safe-area-inset-top)) var(--pad-x) 12px;
  background: rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.brand { display: flex; align-items: center; gap: 10px; }
.wordmark { font-weight: 800; font-size: 1.35rem; letter-spacing: .06em; }
.brand .mark { width: 32px; height: 32px; border-radius: 50%; background: var(--red); display: grid; place-items: center; }
.brand .mark svg { width: 16px; height: 16px; fill: #fff; margin-left: 2px; }

.tabs { display: flex; gap: 4px; }
.tabs a {
  display: flex; align-items: center; gap: 8px; padding: 9px 14px;
  color: var(--muted); font-weight: 800; font-size: 1.05rem; border-radius: 999px;
  transition: background-color .15s ease, color .15s ease;
}
.tabs a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.tabs a.active { color: #fff; background: var(--surface-2); }
.tab-icon { width: 22px; height: 22px; fill: currentColor; fill-rule: evenodd; flex: none; transition: fill .15s ease; }
.tabs a[data-section="yt"].active .tab-icon { fill: var(--yt); }
.tabs a[data-section="tw"].active .tab-icon { fill: var(--tw); }
.tabs a[data-section="regio"].active .tab-icon { fill: var(--regio); }
.tabs a[data-section="tv"].active .tab-icon { fill: var(--red); }

.search {
  flex: 1; max-width: 560px; margin-left: auto;
  display: flex; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; overflow: hidden;
}
.search:focus-within { border-color: #666; }
.search input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
  color: #fff; font: inherit; padding: 11px 20px;
}
.search input::placeholder { color: #8a8a8a; }
.search button { width: 58px; border: 0; background: var(--surface-2); display: grid; place-items: center; cursor: pointer; }
.search svg { width: 21px; height: 21px; fill: #fff; }

.account {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  background: var(--red); color: #fff; font-weight: 700; padding: 10px 16px; border-radius: 999px;
}
.account:hover { background: var(--red-hover); }
.account.logged-in { background: var(--surface-2); }
.account.logged-in:hover { background: #303030; }
.account.tw:not(.logged-in) { background: var(--tw); }
.account.tw:not(.logged-in):hover { background: #a970ff; }
.account .label { max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account svg { width: 20px; height: 20px; fill: currentColor; }
.account .avatar { width: 26px; height: 26px; border-radius: 50%; margin: -4px 0 -4px -8px; }

/* ---------- Tweede menuniveau (YouTube) ---------- */
.subnav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 10px 0 4px; }
.subtabs { display: flex; gap: 8px; flex-wrap: wrap; }
.subtabs a {
  padding: 9px 16px; border-radius: 999px; background: var(--surface-2);
  color: #e6e6e6; font-weight: 700; font-size: .95rem;
}
.subtabs a:hover { background: #303030; }
.subtabs a.active { background: #fff; color: #000; }

/* ---------- Overzicht ---------- */
.page { padding: 4px var(--pad-x) calc(40px + env(safe-area-inset-bottom)); max-width: 1680px; margin: 0 auto; }

.browse-head { display: flex; align-items: center; gap: 12px; margin: 18px 0 20px; }
.browse-head h1 { margin: 0; font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--surface-2); display: grid; place-items: center;
}
.icon-btn svg { width: 20px; height: 20px; fill: #fff; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 30px 16px; }

.card { display: block; border-radius: 12px; }
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.card:hover .thumb img { transform: scale(1.05); }
.card:focus-visible { outline: none; }
.card:focus-visible .thumb { outline: 3px solid var(--red); outline-offset: 3px; }
.badge {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(0, 0, 0, .85); font-size: .8rem; font-weight: 700;
  padding: 2px 6px; border-radius: 5px; font-variant-numeric: tabular-nums;
}
.badge.live { background: var(--red); }
.card h3 {
  font-size: 1rem; font-weight: 700; line-height: 1.3; margin: 11px 0 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card p { margin: 0; color: var(--muted); font-size: .9rem; }

.skeleton .thumb { animation: pulse 1.4s ease-in-out infinite; }
.skeleton .line { height: 14px; border-radius: 4px; background: var(--surface-2); margin-top: 12px; width: 85%; }
.skeleton .line.short { width: 50%; margin-top: 8px; }
@keyframes pulse { 50% { opacity: .45; } }

.notice { text-align: center; padding: 70px 20px; }
.notice p { font-size: 1.15rem; max-width: 44ch; margin: 0 auto 20px; color: #ddd; }
.actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.btn {
  border: 0; cursor: pointer; background: var(--red); color: #fff;
  font-weight: 700; padding: 11px 20px; border-radius: 8px;
}
.btn:hover { background: var(--red-hover); }
.btn.ghost { background: var(--surface-2); }
.btn.ghost:hover { background: #303030; }
.btn.danger { background: #b3261e; }
.btn.danger:hover { background: #c9332a; }
.btn:disabled { opacity: .5; cursor: wait; }

/* ---------- Speler ---------- */
.player, .watch-info {
  width: min(100%, calc((100vh - 150px) * 16 / 9));
  width: min(100%, calc((100dvh - 150px) * 16 / 9));
  margin-left: auto; margin-right: auto;
}
.player {
  position: relative; aspect-ratio: 16 / 9; margin-top: 6px;
  background: #000; border-radius: 14px; overflow: hidden;
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.stage, .stage > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage img, .stage canvas { object-fit: contain; }
.stage canvas.video.waiting { visibility: hidden; }

.overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
  background: linear-gradient(rgba(0,0,0,.65), transparent 22%, transparent 62%, rgba(0,0,0,.8));
}
.player.show-controls .overlay { opacity: 1; pointer-events: auto; }
.player:not(.show-controls) { cursor: none; }

.ov-top { display: flex; align-items: center; gap: 6px; padding: 10px 14px; }
.ov-title { font-weight: 700; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ov-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: clamp(28px, 8vw, 80px);
}
.play-main {
  width: 88px; height: 88px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0, 0, 0, .5); display: grid; place-items: center;
}
.player.paused .play-main { background: var(--red); }
.play-main svg { width: 44px; height: 44px; fill: #fff; }
.play-main .i-play { margin-left: 5px; }
.play-main .i-pause, .player.playing .play-main .i-play { display: none; }
.player.playing .play-main .i-pause { display: block; }
.player.loading .play-main { visibility: hidden; }
.round {
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0, 0, 0, .4); display: grid; place-items: center; color: #fff;
}
.round svg { width: 34px; height: 34px; fill: #fff; }

.ov-bottom { padding: 0 16px 10px; }
.ctl-row { display: flex; align-items: center; gap: 4px; }
.time { font-weight: 700; font-variant-numeric: tabular-nums; font-size: .95rem; padding-left: 2px; }
.time .sep, .time .dur { color: #c8c8c8; }
.spacer { flex: 1; }
.icon {
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: transparent; display: grid; place-items: center;
}
.icon:active { background: rgba(255, 255, 255, .15); }
.icon svg { width: 26px; height: 26px; fill: #fff; }
.mute .i-mute, .mute.muted .i-vol { display: none; }
.mute.muted .i-mute { display: block; }

/* Schuifbalken in het rood */
.range {
  -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer;
  height: 26px; margin: 0; --p: 0%;
}
.seek { width: 100%; display: block; }
.volume { width: 96px; }
.range::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(to right, var(--red) var(--p), rgba(255,255,255,.3) var(--p));
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px;
  border-radius: 50%; background: var(--red); border: 0;
}
.range::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255,255,255,.3); }
.range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--red); }
.range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--red); border: 0; }
.range:disabled { opacity: .35; cursor: default; }

.spinner {
  position: absolute; left: 50%; top: 50%; z-index: 3; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; border: 5px solid rgba(255,255,255,.2); border-top-color: var(--red);
  animation: spin .8s linear infinite; pointer-events: none;
}
.player:not(.loading) .spinner { display: none; }
/* Verkeerswaarschuwing tijdens het eerste laden van een video of stream */
.drive-note {
  position: absolute; left: 50%; top: calc(50% + 50px); transform: translateX(-50%); z-index: 3;
  display: flex; align-items: center; gap: 12px; width: max-content; max-width: min(92%, 540px);
  background: rgba(0, 0, 0, .82); border: 1px solid rgba(255, 176, 32, .5); border-radius: 12px;
  padding: 12px 16px; pointer-events: none;
}
.drive-note svg { width: 26px; height: 26px; fill: var(--warn); flex: none; }
.drive-note p { margin: 0; font-size: .98rem; line-height: 1.4; color: #eee; }
.drive-note strong { color: var(--warn); }
.player:not(.loading) .drive-note, .player.started .drive-note { display: none; }
@media (max-width: 560px) {
  .drive-note { top: calc(50% + 40px); padding: 9px 12px; }
  .drive-note p { font-size: .85rem; }
}
@keyframes spin { to { transform: rotate(360deg); } }

.sound-hint {
  position: absolute; left: 16px; top: 64px; z-index: 4;
  border: 0; cursor: pointer; background: #fff; color: #000;
  font-weight: 800; padding: 9px 16px; border-radius: 999px;
}

.toast {
  position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 4;
  max-width: min(90%, 520px); background: rgba(20, 20, 20, .95); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 16px; font-weight: 600; text-align: center;
}

.player-msg {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: rgba(0, 0, 0, .78); text-align: center; padding: 24px;
}
.player-msg p { margin: 0; font-size: 1.2rem; font-weight: 700; max-width: 40ch; }
.player-msg .btn { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.player:fullscreen, .player:-webkit-full-screen, .player.fake-fs {
  width: 100%; height: 100%; max-width: none; aspect-ratio: auto; border-radius: 0; margin: 0;
}
.player.fake-fs { position: fixed; inset: 0; z-index: 100; }
.player:fullscreen .ov-bottom, .player.fake-fs .ov-bottom { padding-bottom: max(10px, env(safe-area-inset-bottom)); }

.watch-info h1 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.25; margin: 18px 0 4px; }
.watch-info p { margin: 0; color: var(--muted); font-weight: 600; }
.upnext h2 { font-size: 1.3rem; font-weight: 800; margin: 40px 0 16px; }

/* ---------- Rijen op de startpagina ---------- */
.row-section { margin-bottom: 38px; }
.row-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 12px; }
.row-head h2 { margin: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.more { color: var(--muted); font-weight: 700; font-size: .95rem; }
.more:hover { color: #fff; }
.row-scroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, calc((100% - 3 * 14px) / 4.3));
  gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(-1 * var(--pad-x)); padding: 0 var(--pad-x) 6px; scroll-padding-inline: var(--pad-x);
}
.row-scroll::-webkit-scrollbar { display: none; }
.row-scroll .card { scroll-snap-align: start; }

/* ---------- TV / IPTV ---------- */
.tv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -4px 0 24px; }
.tv-bar select, .tv-bar input {
  font: inherit; color: #fff; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 16px; min-height: 44px;
}
.tv-bar select { max-width: 260px; }
.tv-bar input { flex: 1; min-width: 180px; outline: none; }
.tv-bar input:focus { border-color: #666; }
.seg { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button {
  border: 0; background: transparent; color: var(--muted); font-weight: 700;
  padding: 8px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.seg button[aria-pressed="true"] { background: var(--red); color: #fff; }

.grid.channels { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px 14px; }
.grid.posters { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px 14px; }
.tv-card .thumb { display: grid; place-items: center; background: var(--surface); }
.tv-card.channel .thumb img { object-fit: contain; padding: 14% 18%; }
.tv-card.channel:hover .thumb img { transform: none; }
.tv-card.channel:hover .thumb { background: var(--surface-2); }
/* Twitch-kanalen: ronde profielfoto */
.tv-card.channel.tw .thumb img { width: 52%; height: auto; aspect-ratio: 1; padding: 0; object-fit: cover; border-radius: 50%; }
.tv-card.channel.tw.live .thumb { box-shadow: inset 0 0 0 2px #e91916; }
.tv-card.poster .thumb { aspect-ratio: 2 / 3; }
.tv-card h3 { -webkit-line-clamp: 2; font-size: .95rem; }
.initials { font-size: 1.6rem; font-weight: 800; color: #6d6d6d; letter-spacing: .02em; }
.more-wrap { display: flex; justify-content: center; margin: 32px 0 8px; }

.pl-list { display: grid; gap: 10px; margin: 12px 0 8px; }
.pl-item { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
.pl-item .info { flex: 1; min-width: 180px; }
.pl-item strong { display: block; }
.pl-item span { color: var(--muted); font-size: .9rem; }
.pl-empty { color: var(--muted); }

.series-view { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 26px; }
.series-view img { width: 160px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; background: var(--surface); flex: none; }
.series-group { color: var(--muted); font-weight: 700; margin: 0 0 8px; }
.series-plot { margin: 0 0 16px; max-width: 65ch; line-height: 1.5; color: #ddd; }
.series-view select {
  font: inherit; color: #fff; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 16px; min-height: 44px;
}
.grid.episodes { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.ep-card .thumb { display: grid; place-items: center; }
@media (max-width: 560px) {
  .series-view img { width: 110px; }
  .grid.episodes { grid-template-columns: 1fr; }
}

/* ---------- Kwaliteit + live in de speler ---------- */
.quality-wrap { position: relative; }
.quality-menu {
  position: absolute; right: 0; bottom: 54px; z-index: 6; display: grid; min-width: 200px;
  background: rgba(18, 18, 18, .97); border: 1px solid var(--line); border-radius: 12px; padding: 6px;
}
.quality-menu button {
  text-align: left; border: 0; background: none; color: #fff; font-weight: 600;
  padding: 11px 12px; border-radius: 8px; cursor: pointer;
}
.quality-menu button:hover { background: var(--surface-2); }
.quality-menu button[aria-pressed="true"] { color: var(--red); font-weight: 800; }
.quality-menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; width: auto; }
.menu-head { margin: 4px 12px 2px; color: var(--muted); font-size: .85rem; font-weight: 700; }
.stats {
  position: absolute; right: 12px; top: 60px; z-index: 4; min-width: 250px;
  background: rgba(0, 0, 0, .82); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: .85rem; pointer-events: none;
}
.stats div { display: flex; justify-content: space-between; gap: 16px; padding: 2px 0; }
.stats span { color: var(--muted); }
.player.no-seek .seek, .player.no-seek .rew, .player.no-seek .fwd { visibility: hidden; }
.player.no-seek .sep { display: none; }
.player.live .cur::before {
  content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--red); margin-right: 7px; vertical-align: 1px;
}

/* ---------- Favorieten ---------- */
.card-wrap { position: relative; }
.fav-star {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, .65); display: grid; place-items: center; cursor: pointer;
}
.fav-star svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; }
.fav-star[aria-pressed="true"] svg { fill: var(--red); stroke: var(--red); }
.fav-toggle[aria-pressed="true"] { background: var(--red); }
.fav-section { margin-bottom: 40px; }
.fav-section h2 { font-size: 1.35rem; font-weight: 800; margin: 0 0 14px; }
.card.missing { opacity: .45; }
.watch-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.watch-head .fav-toggle { margin-top: 18px; flex: none; }
.series-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- Categorieën ---------- */
.cat-filter {
  width: 100%; font: inherit; color: #fff; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px; margin-bottom: 10px;
}
.cat-bulk { align-items: center; margin-bottom: 10px; }
.cat-count { color: var(--muted); font-size: .9rem; margin-left: auto; }
.cat-list { max-height: min(50vh, 420px); overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.cat-list label {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; cursor: pointer;
  border-bottom: 1px solid var(--line); font-weight: 600;
}
.cat-list label:last-child { border-bottom: 0; }
.cat-list label span { margin-left: auto; color: var(--muted); font-weight: 400; font-size: .9rem; }
.cat-list input { width: 20px; height: 20px; accent-color: var(--red); flex: none; }
.cat-save { margin-top: 16px; }
.acc-section { padding-bottom: 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.acc-me { margin: 0 0 12px; }
.acc-sub { margin-top: 20px; }
.pw-form { margin-top: 14px; }
.del-row { margin: 12px 0 8px; }

/* ---------- Accountvenster ---------- */
dialog {
  background: var(--surface); color: var(--text); border: 1px solid var(--line);
  border-radius: 16px; padding: 28px; width: min(560px, calc(100% - 32px));
}
dialog::backdrop { background: rgba(0, 0, 0, .75); }
dialog h2 { margin: 0 0 6px; font-size: 1.5rem; font-weight: 800; }
dialog h3 { margin: 24px 0 4px; font-size: 1.05rem; }
.dlg-close { position: absolute; right: 14px; top: 14px; margin: 0; }
.dlg-close button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2); cursor: pointer; display: grid; place-items: center; }
.dlg-close svg { width: 18px; height: 18px; fill: #fff; }
.acc-status { color: var(--muted); margin: 0 0 8px; }
.acc-status.on { color: #fff; font-weight: 700; }
.hint { color: var(--muted); font-size: .92rem; margin: 0 0 12px; }
.stack { display: grid; gap: 14px; }
.stack label { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; }
.stack input {
  font: inherit; font-weight: 400; color: #fff; width: 100%;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px;
}
.stack .btn { justify-self: start; }
.btn.google { background: #fff; color: #1f1f1f; padding: 13px 22px; }
.btn.google:hover { background: #e9e9e9; }
.btn.twitch { background: #9146ff; color: #fff; padding: 13px 22px; }
.btn.twitch:hover { background: #a970ff; }
.btn.small { padding: 8px 14px; font-size: .9rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .92rem; }
.steps { padding-left: 1.3em; margin: 8px 0 16px; }
.steps li { margin-bottom: 12px; font-weight: 600; }
.steps a { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.code-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.code {
  font-size: 2rem; font-weight: 800; letter-spacing: .14em; font-variant-numeric: tabular-nums;
  background: #000; border: 1px solid var(--line); border-radius: 10px; padding: 8px 16px;
  user-select: all; -webkit-user-select: all;
}
.user { display: flex; align-items: center; gap: 14px; margin: 8px 0 20px; }
.user img { width: 56px; height: 56px; border-radius: 50%; }
.user strong { display: block; font-size: 1.15rem; }
.user span { color: var(--muted); font-size: .92rem; }
.acc-msg { min-height: 1.4em; margin: 18px 0 0; font-weight: 600; }
.acc-msg.error { color: #ff6b6b; }

/* ---------- Startpagina ---------- */
.landing { padding-top: 22px; max-width: 1240px; }
.drive-warning {
  display: flex; gap: 16px; align-items: flex-start;
  background: rgba(255, 176, 32, .1); border: 1px solid rgba(255, 176, 32, .45);
  border-radius: 16px; padding: 18px 20px;
}
.drive-warning svg { width: 30px; height: 30px; fill: var(--warn); flex: none; margin-top: 1px; }
.drive-warning strong { display: block; font-size: 1.15rem; font-weight: 800; color: var(--warn); }
.drive-warning p { margin: 4px 0 0; color: #e8e2d6; line-height: 1.5; max-width: 80ch; }
.landing-title {
  margin: clamp(28px, 5vh, 52px) 0 22px; font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.1;
}
.launch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.launch-card {
  --c: var(--red);
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  min-height: clamp(220px, 34vh, 320px); padding: 28px;
  background: var(--surface); border: 1px solid rgba(255, 255, 255, .08); border-radius: 22px;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}
.launch-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--c) 32%, transparent), transparent 62%);
  opacity: .8; transition: opacity .2s ease;
}
.launch-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.launch-card:hover::before { opacity: 1; }
.launch-card:active { transform: scale(.985); }
.launch-card:focus-visible { outline: 3px solid var(--c); outline-offset: 3px; }
.launch-card.yt { --c: var(--yt); }
.launch-card.tw { --c: var(--tw); }
.launch-card.regio { --c: var(--regio); }
.launch-logo {
  width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .06); margin-bottom: auto;
}
.launch-logo svg { width: 52px; height: 52px; fill: var(--c); fill-rule: evenodd; }
.launch-name { margin-top: 26px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; }
.launch-desc { color: var(--muted); font-size: 1rem; line-height: 1.45; max-width: 32ch; }
.landing-fine { color: var(--muted); font-size: .9rem; line-height: 1.55; max-width: 90ch; margin: 30px 0 0; }
.landing-fine a, .dlg-legal a { color: #ddd; text-decoration: underline; text-underline-offset: 2px; }
.dlg-legal { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }

/* ---------- Voettekst ---------- */
.site-footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px;
  max-width: 1680px; margin: 24px auto 0;
  padding: 20px var(--pad-x) calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, .08); color: #7d7d7d; font-size: .88rem;
}
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: #fff; }
.footer-safety { margin-left: auto; }

/* ---------- Kleinere schermen ---------- */
@media (max-width: 960px) {
  .launch { grid-template-columns: 1fr; }
  .launch-card { min-height: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: center; padding: 20px; }
  .launch-logo { grid-row: span 2; width: 72px; height: 72px; margin: 0; }
  .launch-logo svg { width: 44px; height: 44px; }
  .launch-name { margin: 0; }
}
@media (max-width: 860px) {
  .topbar { flex-wrap: wrap; gap: 10px 14px; }
  .search { flex-basis: 100%; max-width: none; margin-left: 0; }
  .footer-safety { margin-left: 0; }
}
@media (max-width: 560px) {
  .account .label, .volume { display: none; }
  .tabs a { padding: 9px 10px; }
  .tabs a span { display: none; }
  .tabs a.active span { display: inline; }
  .wordmark { font-size: 1.1rem; }
  .grid { grid-template-columns: 1fr; }
  .row-scroll { grid-auto-columns: 78%; }
  .grid.channels { grid-template-columns: repeat(2, 1fr); }
  .grid.posters { grid-template-columns: repeat(3, 1fr); }
  .tv-bar select { max-width: none; flex: 1; }
  .play-main { width: 72px; height: 72px; }
  .round { width: 50px; height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .thumb img, .overlay, .launch-card, .tabs a { transition: none; }
  .spinner { animation-duration: 2.5s; }
  .skeleton .thumb { animation: none; }
}

/* ---------- Juridische pagina's (privacy.html, voorwaarden.html) ---------- */
.legal-top { position: sticky; }
.legal-top .back { margin-left: auto; color: var(--muted); font-weight: 700; }
.legal-top .back:hover { color: #fff; }
.legal { max-width: 760px; margin: 0 auto; padding: 28px var(--pad-x) 40px; line-height: 1.65; color: #e6e6e6; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 10px 0 6px; color: #fff; }
.legal .updated { color: var(--muted); margin: 0 0 28px; }
.legal h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; margin: 36px 0 8px; color: #fff; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 4px; color: #fff; }
.legal p, .legal li { max-width: 72ch; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.legal a { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.legal .drive-warning { margin: 0 0 8px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { color: #fff; font-weight: 700; }
.legal .table-wrap { overflow-x: auto; }
