/* Videotekentool (ADR-0071) — gedeelde stijl voor Analyse, spelersportaal en Presentatie.
   De host positioneert `.vt-knop` (bij zijn videobediening); al het andere staat in `.vt-ui`
   onderin het videovlak en blijft bereikbaar als de overige bediening verborgen is. */

.vt-laag { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; visibility: hidden; }
.vt-laag.vt-zichtbaar, .vt-laag.vt-tekenen { visibility: visible; }
.vt-laag.vt-tekenen { pointer-events: auto; touch-action: none; cursor: crosshair; }

.vt-knop {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; min-width: 40px; padding: 0; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28); background: rgba(16, 22, 32, .78); color: #fff;
  font: 600 19px/1 system-ui, sans-serif; cursor: pointer; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35); z-index: 20;
}
.vt-knop:hover { background: rgba(30, 40, 56, .9); }
.vt-knop:focus-visible { outline: 2px solid #ffd400; outline-offset: 2px; }
.vt-knop.vt-aan { background: #ffd400; color: #111; border-color: #ffd400; }
.vt-knop-stip { position: absolute; top: 3px; right: 3px; width: 9px; height: 9px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 0 2px rgba(16, 22, 32, .9); }

.vt-ui {
  position: absolute; left: 8px; right: 8px; bottom: 10px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  z-index: 25; pointer-events: none;
  font: 500 14px/1.2 system-ui, sans-serif; color: #fff;
}
.vt-ui > * { pointer-events: auto; }
.vt-ui [hidden] { display: none !important; }

.vt-balk {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px;
  padding: 5px; border-radius: 14px; background: rgba(16, 22, 32, .86);
  border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}
.vt-tool {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid transparent; padding: 0;
  background: transparent; color: #fff; font: 600 18px/1 system-ui, sans-serif; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.vt-tool:hover:not(:disabled) { background: rgba(255, 255, 255, .12); }
.vt-tool[aria-pressed="true"] { background: rgba(255, 212, 0, .2); border-color: #ffd400; color: #ffd400; }
.vt-tool:disabled { opacity: .35; cursor: default; }
.vt-tool:focus-visible, .vt-bewaar:focus-visible, .vt-pk:focus-visible, .vt-link:focus-visible { outline: 2px solid #ffd400; outline-offset: 1px; }
.vt-kleur::after { content: ""; display: block; width: 20px; height: 20px; margin: auto; border-radius: 50%; background: var(--vt-kleur, #ffd400); box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
.vt-verwijder { color: #ff8a8a; }
.vt-sep { width: 1px; height: 24px; background: rgba(255, 255, 255, .18); margin: 0 2px; }
.vt-bewaar {
  height: 38px; padding: 0 14px; border-radius: 10px; border: 0; background: #ffd400; color: #111;
  font: 700 14px/1 system-ui, sans-serif; cursor: pointer;
}
.vt-bewaar:disabled { background: rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .55); cursor: default; }

.vt-pauze {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 22px; max-width: 100%;
  background: rgba(16, 22, 32, .9); border: 1px solid rgba(255, 212, 0, .55); box-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}
.vt-pauze-tekst { font-weight: 600; white-space: nowrap; }
.vt-aftel { width: 18px; height: 18px; border-radius: 50%; flex: none; background: conic-gradient(#ffd400 var(--vt-rest, 360deg), rgba(255, 255, 255, .18) 0); }
.vt-aftel.vt-loopt { animation-name: vt-aftellen; animation-timing-function: linear; animation-fill-mode: forwards; }
@property --vt-rest { syntax: "<angle>"; inherits: false; initial-value: 360deg; }
@keyframes vt-aftellen { from { --vt-rest: 360deg; } to { --vt-rest: 0deg; } }
.vt-pk {
  min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .1); color: #fff; font: 700 14px/1 system-ui, sans-serif; cursor: pointer; white-space: nowrap;
}
.vt-verder { background: #ffd400; color: #111; border-color: #ffd400; }

.vt-elders { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(16, 22, 32, .88); font-size: 13px; }
.vt-link { border: 0; background: none; color: #ffd400; font: 600 13px/1 system-ui, sans-serif; cursor: pointer; padding: 6px 4px; text-decoration: underline; }
.vt-melding { padding: 6px 12px; border-radius: 999px; background: rgba(16, 22, 32, .86); font-size: 13px; }
.vt-melding[data-soort="ok"] { color: #b8f5c4; }
.vt-melding[data-soort="fout"] { color: #ffb4b4; border: 1px solid rgba(255, 120, 120, .5); border-radius: 10px; }

@media (max-width: 520px) {
  .vt-tool { width: 36px; height: 36px; font-size: 17px; }
  .vt-sep { display: none; }
  .vt-pk { padding: 0 12px; font-size: 13px; }
  .vt-pauze-tekst { display: none; }
}
@media (prefers-reduced-motion: reduce) { .vt-aftel.vt-loopt { animation: none; } }

/* Uitleg als bewaren op dit beeld niet kan (vóór de aftrap, rust, geen anker): tekenen kan wel, tijdelijk. */
.vt-hint { max-width: min(560px, 100%); padding: 6px 12px; border-radius: 10px; background: rgba(16, 22, 32, .88); border: 1px solid rgba(255, 212, 0, .4); font-size: 13px; line-height: 1.35; text-align: center; }
.vt-elders { flex-wrap: wrap; justify-content: center; max-width: 100%; }
