/* Videoreview — donkere montagekamer, notities als plakbandjes op de tijdlijn */

:root {
  --ink: #14120f;
  --panel: #1c1916;
  --raise: #24201b;
  --line: #35302a;
  --paper: #ede7db;
  --muted: #948b7f;
  --tape: #e8a33d;
  --tape-dim: #8a6423;
  --done: #7fa88f;
  --alert: #d9614c;

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Inter, Roboto, sans-serif;
  --r: 6px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--tape); }

/* --- kleine bouwstenen -------------------------------------------------- */

.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.tc {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

button, .btn {
  font: inherit;
  font-size: 14px;
  color: var(--paper);
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 8px 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.12s ease, border-color 0.12s ease;
}
button:hover, .btn:hover { background: #2c2721; border-color: #4a423a; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
button:focus-visible, .btn:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--tape);
  outline-offset: 2px;
}

button.primary {
  background: var(--tape);
  border-color: var(--tape);
  color: #1a1408;
  font-weight: 600;
}
button.primary:hover { background: #f0b055; }
button.ghost { background: transparent; }
button.danger { color: var(--alert); border-color: #4a2a26; }
button.danger:hover { background: #2a1a17; }
button.icon { padding: 6px 9px; font-size: 13px; }

input, textarea, select {
  font: inherit;
  width: 100%;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 9px 11px;
}
textarea { resize: vertical; min-height: 84px; }
::placeholder { color: #6b6359; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
}

.row { display: flex; align-items: center; gap: 10px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

.pill {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.pill.open { color: var(--tape); border-color: var(--tape-dim); }
.pill.done { color: var(--done); border-color: #3c5348; }
.pill.closed { color: var(--muted); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--raise);
  border: 1px solid var(--line);
  border-left: 3px solid var(--tape);
  padding: 10px 16px;
  border-radius: var(--r);
  z-index: 50;
  max-width: 90vw;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.brand {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.brand b { color: var(--tape); font-weight: 600; }
.topbar h1 { font-size: 16px; margin: 0; font-weight: 600; }

/* --- reviewscherm ------------------------------------------------------- */

.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  height: calc(100vh - 53px);
}
.stage {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #0d0c0a;
}
.video-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 16px;
}
video {
  max-width: 100%;
  max-height: 100%;
  background: #000;
  border: 1px solid var(--line);
}

/* transport: de tijdlijn met plakbandjes */
.transport { border-top: 1px solid var(--line); background: var(--panel); padding: 10px 16px 14px; }

.readout {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.readout .now {
  font-family: var(--mono);
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  color: var(--tape);
  letter-spacing: 0.02em;
}

.scrub {
  position: relative;
  height: 34px;
  cursor: pointer;
  touch-action: none;
}
.scrub .track {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--raise);
  border-radius: 3px;
  overflow: hidden;
}
.scrub .played { height: 100%; width: 0; background: #5c5248; }
.scrub .head {
  position: absolute;
  top: 8px;
  width: 2px;
  height: 18px;
  background: var(--paper);
  margin-left: -1px;
  pointer-events: none;
}
.marker {
  position: absolute;
  top: 0;
  width: 12px;
  height: 14px;
  margin-left: -6px;
  background: var(--tape);
  border-radius: 2px 2px 0 0;
  font-family: var(--mono);
  font-size: 9px;
  color: #1a1408;
  text-align: center;
  line-height: 14px;
  cursor: pointer;
}
.marker.done { background: var(--done); }
.marker.active { outline: 2px solid var(--paper); }

.controls { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.controls .spacer { flex: 1; }
.hint { font-family: var(--mono); font-size: 11px; color: #6b6359; }

/* --- notitiekolom ------------------------------------------------------- */

.notes {
  border-left: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.notes-head { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.notes-list { flex: 1; overflow-y: auto; padding: 8px; }
.notes-foot { border-top: 1px solid var(--line); padding: 12px; }

.note {
  border-left: 2px solid var(--tape);
  background: var(--raise);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
}
.note:hover { background: #2c2721; }
.note.active { background: #322c24; box-shadow: inset 0 0 0 1px var(--tape-dim); }
.note.done { border-left-color: var(--done); opacity: 0.7; }
.note .meta { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.note .meta .tc { color: var(--tape); font-size: 13px; }
.note.done .meta .tc { color: var(--done); }
.note .who { font-size: 12px; color: var(--muted); margin-left: auto; }
.note .body { white-space: pre-wrap; word-break: break-word; }
.note .tools { display: flex; gap: 6px; margin-top: 8px; }
.note .tools button { padding: 4px 8px; font-size: 12px; }

.empty { text-align: center; color: var(--muted); padding: 32px 16px; }

/* --- adminscherm -------------------------------------------------------- */

.page { max-width: 1080px; margin: 0 auto; padding: 24px 20px 64px; }
.section-title { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-family: var(--mono); margin: 28px 0 12px; }

.list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  margin-bottom: 8px;
}
.list-item .grow { flex: 1; min-width: 0; }
.list-item .name { font-weight: 600; }
.list-item .sub { font-size: 13px; color: var(--muted); }

.keyval { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; align-items: center; }
.copy-field {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 6px 6px 6px 12px;
}
.copy-field span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.bar { height: 6px; background: var(--raise); border-radius: 3px; overflow: hidden; }
.bar > div { height: 100%; width: 0; background: var(--tape); transition: width 0.2s ease; }

.login { max-width: 380px; margin: 12vh auto; }

@media (max-width: 900px) {
  .review-layout { grid-template-columns: 1fr; height: auto; }
  .notes { border-left: 0; border-top: 1px solid var(--line); max-height: 70vh; }
  .keyval { grid-template-columns: 1fr; }
}

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