@import url('./pov-dock.css');
.pov-controls {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.pov-controls input[type=range] { flex: 1 1 180px; min-width: 90px; padding: 0; accent-color: var(--accent); }
.pov-controls output { font-variant-numeric: tabular-nums; }
.pov-controls button,.pov-controls select { min-height: 30px; font-size: 12px; }
.pov-grid { grid-column: 1 / -1; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%,290px),1fr)); }
.pov-picker { grid-column: 1 / -1; }
.pov-picker summary { cursor: pointer; width: fit-content; padding: 6px 0; font-size: 13px; }
.pov-picker-tools,.pov-choices > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pov-picker-tools { margin: 4px 0 7px; font-size: 12px; color: var(--muted); }
.pov-picker-tools input { width: min(240px,100%); }
.pov-choices { max-height: 190px; overflow: auto; }
.pov-choices > div { justify-content: space-between; padding: 3px 4px; border-bottom: 1px solid var(--line); }
.pov-choices label { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; }
.pov-choices input { width: 16px; height: 16px; }
.pov-choices button { min-height: 26px; font-size: 11px; }
.pov-picker [hidden] { display: none !important; }
.pov-track { position:relative; min-width:0; margin:0; }
.pov-track figcaption,.pov-caption {
  position:absolute; inset:4px 4px auto; z-index:1; padding:0; pointer-events:none;
  display:flex; align-items:flex-start; justify-content:space-between; gap:4px; min-width:0;
}
.pov-identity {
  display:flex; align-items:center; gap:4px; min-width:0; padding:3px 5px;
  border-radius:4px; background:#101b24df; color:var(--ink); font-size:11px; line-height:1.2;
}
.pov-identity strong { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
button.pov-identity { pointer-events:auto; min-height:22px; border:1px solid transparent; }
.pov-headshot,.map-headshot { flex:none; width:18px; height:18px; border-radius:50%; object-fit:cover; }
.pov-identity:has(.pov-headshot) .pov-player-icon:not(.is-active) { display:none; }
.pov-player-icon.is-active { display:grid; place-items:center; width:22px; height:22px; flex:none; border-radius:50%; background:#121e29ed; }
.pov-track:not(:is(:hover,:focus-within,.is-manipulated,.pov-name-always)) > figcaption:not(:has(.pov-player-icon.is-active)),
.pov-popout:not(:is(:hover,:focus-within,.pov-name-always)) .pov-caption:not(:has(.pov-player-icon.is-active)),
.pov-track:not(:is(:hover,:focus-within,.is-manipulated)) > :is(.pov-move,.pov-resize),
.pov-track:not(:is(:hover,:focus-within,.is-manipulated)) .pov-status,
.pov-popout:not(:is(:hover,:focus-within)) .pov-status { opacity:0; }
.pov-track:not(:is(:hover,:focus-within,.is-manipulated)) > :is(figcaption,.pov-move,.pov-resize),
.pov-track:not(:is(:hover,:focus-within,.is-manipulated)) figcaption button,
.pov-popout:not(:is(:hover,:focus-within)) .pov-caption button { pointer-events:none; }
.pov-track:not(:is(:hover,:focus-within,.is-manipulated)) .pov-identity,
.pov-popout:not(:is(:hover,:focus-within)) .pov-identity { background:transparent; }
.pov-track:not(:is(:hover,:focus-within,.is-manipulated,.pov-name-always)) figcaption :is(.pov-identity strong,.pov-headshot),
.pov-popout:not(:is(:hover,:focus-within,.pov-name-always)) .pov-caption :is(.pov-identity strong,.pov-headshot),
.pov-track:not(:is(:hover,:focus-within,.is-manipulated)) figcaption :is(.incident-pov-tools,.pov-tools),
.pov-popout:not(:is(:hover,:focus-within)) .pov-caption .incident-pov-tools { opacity:0; }
.pov-track.pov-name-always figcaption button.pov-identity,.pov-popout.pov-name-always .pov-caption button.pov-identity {
  pointer-events:auto; background:#101b24df;
}
.pov-identity .icon { display:block; width:13px; height:13px; flex:none; }
.pov-tools { display: flex; flex-wrap: wrap; gap: 5px; }
.pov-tools button { padding:4px 8px; pointer-events:auto; }
.pov-screen {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: stretch;
  background: #08090b;
  aspect-ratio: 16 / 9;
  container-type:size;
  overflow:hidden;
}
.pov-track [hidden] { display: none !important; }
.pov-screen video { grid-area:1 / 1; width:100%; height:100%; min-width:0; min-height:0; max-height:none; place-self:center; object-fit:contain; }
.pov-screen.crop-widescreen video {
  width:min(100cqw,100cqh * 16 / 9); height:min(100cqh,100cqw * 9 / 16);
  object-fit:cover; object-position:center;
}
.pov-status,.pov-message { grid-area: 1 / 1; padding: 12px; font-size: 12px; color: #cbd0d9; }
.pov-status { position: absolute; bottom: 0; left: 0; }
.pov-message { display: grid; justify-items: start; gap: 9px; margin: 0; }
.pov-track:fullscreen { display: flex; flex-direction: column; width: 100vw; height: 100vh; background: #08090b; }
.pov-track:fullscreen .pov-screen { flex: 1; min-height: 0; aspect-ratio: auto; }

