/* Opnames — same tokens as terugkijken.css / style.css so the pages read as one product. */
:root {
  --bg: #0b0c0f;
  --surface: #13151a;
  --surface-2: rgba(255, 255, 255, .045);
  --surface-3: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --ink: #f3f4f6; --ink-2: #c9ccd3; --dim: #8a8f9a; --faint: #5b606b;
  --d: #3b82f6; --d-ink: #7fb0ff;
  --r: #ef4458; --r-ink: #ff8794;
  --amber: #f6b93b; --ok: #34d399; --red: #ff3b4e; --violet: #a66cff;
  --accent: #c6f25e; --accent-ink: #0b0c0f;
  --c-recap: #7fb0ff; --c-menu: #c6f25e; --c-brk: #ff3b4e; --c-call: #f6b93b; --c-corr: #a66cff;
  --r-lg: 16px; --r-md: 12px; --r-sm: 8px; --r-pill: 999px;
  --font: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: 24px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); overflow-x: hidden; }
body { font: 15px/1.45 var(--font); font-feature-settings: "tnum" 1, "cv11" 1; -webkit-font-smoothing: antialiased; }
button, select { font: inherit; color: inherit; }
a { color: var(--d-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- top */
.op-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
  gap: 12px 16px; flex-wrap: wrap; padding: 14px var(--gut); background: rgba(11, 12, 15, .94);
  border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.op-brand { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; min-width: 0; }
.op-pill { background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 11px; letter-spacing: .08em;
  padding: 4px 10px; border-radius: var(--r-pill); align-self: center; }
.op-title { font-size: 20px; font-weight: 500; }
.op-title b { font-weight: 800; }
.op-sub { color: var(--dim); font-size: 13px; }
.op-back { align-self: center; color: var(--accent); border: 1px solid var(--accent); border-radius: var(--r-pill); padding: 4px 12px;
  font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.op-back:hover { background: var(--accent); color: var(--accent-ink); }
.op-nav { display: flex; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 3px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.op-nav a { color: var(--ink-2); text-decoration: none; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: var(--r-pill); white-space: nowrap; }
.op-nav a:hover { background: var(--surface-3); color: var(--ink); }
.op-nav a.on { background: var(--ink); color: var(--bg); }

.op-main { max-width: 1440px; margin: 0 auto; padding: 18px var(--gut) 40px; display: grid; gap: 22px;
  grid-template-columns: minmax(0, 1fr) 380px;
  grid-template-areas: "stage chap" "segs segs" "hours hours" "keys keys"; }
.op-h { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin: 0 0 10px; }
.op-h span { color: var(--faint); font-weight: 600; letter-spacing: .02em; }
.op-note { color: var(--dim); font-size: 13px; margin: -4px 0 12px; max-width: 70ch; }

/* ---------- player */
.op-stage { grid-area: stage; min-width: 0; }
.op-player { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.op-screen { position: relative; aspect-ratio: 16 / 9; background: #000; }
.op-screen video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; opacity: 0; pointer-events: none; }
.op-screen video.on { opacity: 1; pointer-events: auto; }
.op-screen:fullscreen { aspect-ratio: auto; width: 100vw; height: 100vh; }
.op-player:fullscreen { display: flex; flex-direction: column; width: 100vw; height: 100vh; border: 0; border-radius: 0; background: #000; }
.op-player:fullscreen .op-screen { flex: 1 1 auto; aspect-ratio: auto; min-height: 0; }
.op-player:fullscreen .op-scrub, .op-player:fullscreen .op-ctrl { flex: 0 0 auto; }
.op-player:fullscreen .op-segline { display: none; }
.op-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px;
  text-align: center; background: rgba(11, 12, 15, .7); color: var(--ink-2); font-weight: 600; pointer-events: none; }
.op-bigplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%;
  border: 0; background: var(--accent); color: var(--accent-ink); font-size: 28px; cursor: pointer; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }

.op-scrub { position: relative; height: 54px; margin: 0 14px; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.op-ticks { position: absolute; inset: 0 0 auto 0; height: 18px; }
.op-ticks span { position: absolute; top: 2px; transform: translateX(-50%); font-size: 10px; color: var(--faint); white-space: nowrap; }
.op-ticks span::after { content: ""; position: absolute; left: 50%; top: 14px; width: 1px; height: 6px; background: var(--line-strong); }
.op-track { position: absolute; left: 0; right: 0; top: 24px; height: 16px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.op-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(198, 242, 94, .22); }
.op-marks i { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--c-recap); opacity: .9; }
.op-marks i.t-menu { background: var(--c-menu); }
.op-marks i.t-brk { background: var(--c-brk); }
.op-marks i.t-call { background: var(--c-call); }
.op-marks i.t-corr { background: var(--c-corr); }
.op-head { position: absolute; top: 20px; height: 24px; width: 3px; margin-left: -1.5px; background: var(--ink); border-radius: 2px;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .5); pointer-events: none; }
.op-tip { position: absolute; bottom: 58px; transform: translateX(-50%); z-index: 5; width: 212px; padding: 10px; border-radius: var(--r-md);
  background: #1b1e25; border: 1px solid var(--line-strong); box-shadow: 0 10px 30px rgba(0, 0, 0, .55); pointer-events: none;
  display: grid; gap: 4px; font-size: 12px; }
.op-tip-img { width: 192px; height: 108px; border-radius: 6px; background: #000 no-repeat; }
.op-tip b { font-size: 13px; }
.op-tip span { color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.op-ctrl { display: flex; align-items: center; gap: 6px; padding: 4px 12px 8px; flex-wrap: wrap; }
.op-ctrl button, .op-ctrl select { min-width: 40px; height: 36px; padding: 0 8px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); cursor: pointer; font-weight: 700; font-size: 13px; }
.op-ctrl select { background: #1b1e25; }
.op-ctrl button:hover { background: var(--surface-3); }
.op-ctrl .op-play { min-width: 52px; background: var(--ink); color: var(--bg); }
.op-ctrl .op-play:hover { background: #fff; }
.op-now { font-weight: 700; font-size: 14px; margin-left: 6px; white-space: nowrap; }
.op-grow { flex: 1 1 0; }
.op-live { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: var(--r-sm); white-space: nowrap;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 13px; text-decoration: none; }
.op-live:hover { background: #d6ff7a; }
.op-segline { margin: 0; padding: 0 14px 12px; color: var(--dim); font-size: 12px; }
.op-segline a { color: var(--ink-2); }

/* ---------- chapters */
.op-chap { grid-area: chap; min-width: 0; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 14px; max-height: calc(100vh - 110px); position: sticky; top: 86px; align-self: start; }
.op-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.op-filters button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); background: transparent;
  border-radius: var(--r-pill); padding: 4px 10px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.op-filters button i { width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.op-filters button[aria-pressed=false] { opacity: .45; }
.op-filters button[aria-pressed=false] i { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
.op-filters button small { color: var(--dim); font-weight: 600; }
.op-state { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); margin-bottom: 10px; }
.op-state select { flex: 1; min-width: 0; height: 32px; background: #1b1e25; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 0 8px; color: var(--ink); }
.op-chap-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1 1 auto; min-height: 120px; display: grid; gap: 4px; align-content: start; }
.ch { width: 100%; display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 2px 10px; text-align: left; padding: 8px 10px;
  border: 1px solid transparent; border-radius: var(--r-sm); background: transparent; cursor: pointer; }
.ch:hover { background: var(--surface-2); }
.ch.cur { background: var(--surface-3); border-color: var(--line-strong); }
.ch:disabled { cursor: default; opacity: .45; }
.ch time { grid-row: span 2; font-weight: 700; font-size: 13px; color: var(--ink-2); padding-top: 1px; }
.ch .tag { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--c-recap); }
.ch.t-menu .tag { color: var(--c-menu); } .ch.t-brk .tag { color: var(--c-brk); } .ch.t-call .tag { color: var(--c-call); } .ch.t-corr .tag { color: var(--c-corr); }
.ch strong { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.ch .sub { grid-column: 2; font-size: 12px; color: var(--dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.op-empty { color: var(--dim); font-size: 13px; padding: 8px 10px; }

/* ---------- hours */
.op-hours { grid-area: hours; min-width: 0; }
.op-hour-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.op-hour { display: grid; gap: 6px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.op-hour b { font-size: 15px; }
.op-hour small { color: var(--dim); font-size: 12px; }
.op-hour .row { display: flex; gap: 6px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line-strong);
  background: var(--surface-2); font-size: 12.5px; font-weight: 700; color: var(--ink); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--surface-3); }
.btn.pri { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.op-hourplayer { margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; max-width: 960px; }
.op-hp-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; }
.op-hp-head button { background: transparent; border: 0; cursor: pointer; font-size: 16px; color: var(--dim); }
.op-hourplayer video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }

/* ---------- segment grid */
.op-segs { grid-area: segs; min-width: 0; }
.op-segs-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.op-sort { border: 1px solid var(--line-strong); background: transparent; border-radius: var(--r-pill); padding: 4px 12px; font-size: 12px; font-weight: 700; cursor: pointer; }
.op-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.sg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.sg.cur { border-color: var(--accent); }
.sg-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #000 center / cover no-repeat; cursor: pointer; overflow: hidden; }
.sg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-thumb .nothumb { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 12px; }
.sg-thumb .scrubimg { position: absolute; inset: 0; background-repeat: no-repeat; opacity: 0; }
.sg-thumb:hover .scrubimg.ready { opacity: 1; }
.sg-thumb .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); }
.sg-thumb .dur { position: absolute; right: 8px; bottom: 8px; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, .75); }
.sg-thumb .at { position: absolute; left: 8px; bottom: 8px; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, .75); opacity: 0; }
.sg-thumb:hover .at { opacity: 1; }
.sg-body { padding: 10px 12px 12px; display: grid; gap: 6px; flex: 1; align-content: start; }
.sg-body b { font-size: 14px; }
.sg-meta { color: var(--dim); font-size: 12px; }
.sg-states { display: flex; flex-wrap: wrap; gap: 4px; }
.sg-states span { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--ink-2); }
.sg-topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 12.5px; color: var(--ink-2); }
.sg-topics li { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.sg-topics li i { font-style: normal; font-weight: 800; font-size: 10px; letter-spacing: .05em; margin-right: 5px; color: var(--c-recap); }
.sg-topics li.t-menu i { color: var(--c-menu); } .sg-topics li.t-brk i { color: var(--c-brk); } .sg-topics li.t-call i { color: var(--c-call); } .sg-topics li.t-corr i { color: var(--c-corr); }
.sg-foot { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 12px 12px; }
.op-alts { margin-top: 18px; }
.op-alts summary { cursor: pointer; color: var(--dim); font-size: 13px; margin-bottom: 12px; }
.op-keys { grid-area: keys; color: var(--faint); font-size: 12px; margin: 0; }
kbd { font: 600 11px var(--font); border: 1px solid var(--line-strong); border-radius: 4px; padding: 1px 5px; color: var(--ink-2); }

/* ---------- narrow */
@media (max-width: 1100px) {
  .op-main { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "chap" "segs" "hours" "keys"; }
  .op-chap { position: static; max-height: 70vh; }
}
@media (max-width: 640px) {
  :root { --gut: 16px; }
  .op-top { padding: 10px var(--gut); }
  .op-title { font-size: 17px; }
  .op-main { padding-top: 14px; gap: 18px; }
  .op-player { border-radius: var(--r-md); }
  .op-scrub { margin: 0 10px; }
  .op-ctrl { padding: 4px 8px 8px; gap: 4px; }
  .op-ctrl button, .op-ctrl select { min-width: 34px; padding: 0 5px; }
  .op-ctrl .op-play { min-width: 44px; }
  .op-ctrl select { width: 54px; min-width: 0; }
  .op-hour-list { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .op-hour { padding: 8px 10px; gap: 0 8px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .op-hour b { font-size: 13.5px; }
  .op-hour .row { grid-column: 2; grid-row: 1 / span 2; flex-wrap: nowrap; }
  .op-hour .btn { height: 34px; padding: 0 10px; font-size: 12px; }
  .op-now { order: 10; flex-basis: 100%; margin: 4px 0 0 2px; font-size: 13px; }
  .op-grow { display: none; }
  .op-live { order: 11; flex-basis: 100%; justify-content: center; margin-top: 4px; }
  .op-tip { width: 172px; }
  .op-tip-img { width: 152px; height: 86px; }
  .op-grid { grid-template-columns: minmax(0, 1fr); }
  .op-keys { display: none; }
}

/* corrected later (replay_mask / unconfirmed control claim): kept, marked, no longer standing */
.ch .fx { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--bg);
  background: var(--c-call); border-radius: 3px; padding: 0 4px; margin-left: 4px; }
.ch strong.masked { text-decoration: line-through; text-decoration-color: var(--c-call); color: var(--ink-2); }

.op-unmute { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 5; background: var(--accent);
  color: var(--accent-ink); border: 0; border-radius: var(--r-pill); padding: 12px 22px; font: inherit; font-size: 16px;
  font-weight: 800; cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,.5); }
.op-unmute:hover { filter: brightness(1.08); }
.op-ctrl .op-share { padding: 0 12px; font-weight: 700; }
@media (max-width: 640px) { .op-ctrl .op-share { order: 11; flex: 1 1 40%; } }
