/* Shared player. All rules are contained by .vv-player. */
.vv-player {
  --vv-player-ready: 1;
  container-type: inline-size;
  width: 100%; max-width: 100%; min-width: 0;
  overflow: hidden; border: 1px solid #303745; border-radius: 20px;
  background: #101319; color: #f9fafb;
  font-family: inherit; box-sizing: border-box;
}
.vv-player[hidden], .vv-player [hidden] { display: none !important; }
.vv-player *, .vv-player *::before, .vv-player *::after { box-sizing: border-box; }
.vv-player .vv-player-stage { position: relative; display: grid; place-items: center; background: #0c0e12; }
.vv-player .vv-player-stage video {
  position: static; inset: auto; display: block;
  width: 100%; height: auto; max-height: min(65svh, 640px);
  aspect-ratio: 9 / 16; object-fit: contain; background: #0c0e12;
  border-radius: 0;
}
.stage.landscape .vv-player .vv-player-stage video { aspect-ratio: 16 / 9; max-height: none; }
.vv-player svg { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vv-player .vv-player-start {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 64px; height: 64px; padding: 0;
  border: 1px solid #ffffff66; border-radius: 50%; background: #f9fafbf2;
  color: #15244c; cursor: pointer; box-shadow: 0 6px 30px #0005;
}
.vv-player .vv-player-start svg { fill: currentColor; width: 26px; height: 26px; }
.vv-player .vv-player-controls { padding: 4px 12px 8px; background: #191e28; }
.vv-player .vv-player-progress { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vv-player input[type=range] {
  appearance: none; -webkit-appearance: none; flex-shrink: 1;
  width: 100%; min-width: 0; height: 44px; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: transparent; cursor: pointer;
  accent-color: white; touch-action: pan-y;
}
.vv-player input[type=range]::-webkit-slider-runnable-track { height: 4px; background: #707888; border-radius: 999px; }
.vv-player input[type=range]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border: 0; border-radius: 50%; background: white; }
.vv-player input[type=range]::-moz-range-track { height: 4px; background: #707888; border-radius: 999px; }
.vv-player input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: white; }
.vv-player input:disabled { opacity: .5; cursor: default; }
.vv-player .vv-player-time { flex: none; font: inherit; font-size: 13px; font-variant-numeric: tabular-nums; color: #e1e5ee; white-space: nowrap; }
.vv-player .vv-player-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; min-width: 0; }
.vv-player .vv-player-control {
  display: grid; place-items: center; flex: none;
  min-width: 44px; width: 44px; min-height: 44px; height: 44px; padding: 10px;
  border: 0; border-radius: 10px; background: transparent; color: #f9fafb; cursor: pointer;
}
.vv-player .vv-player-control:hover { background: #ffffff16; }
.vv-player .vv-player-volume { max-width: 76px; }
.vv-player .vv-player-spacer { flex: 1; }
.vv-player .vv-player-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.vv-player .vv-player-error { margin: 8px 0 0; padding: 12px; border-radius: 8px; background: #55211c; color: white; font-size: 14px; line-height: 1.5; }
.vv-player:focus-visible, .vv-player button:focus-visible, .vv-player input:focus-visible { outline: 3px solid #b7c8ff; outline-offset: -3px; }
.vv-player:fullscreen { display: flex; flex-direction: column; height: 100dvh; width: 100%; border: 0; border-radius: 0; }
.vv-player:fullscreen .vv-player-stage { flex: 1; min-height: 0; }
.vv-player:fullscreen .vv-player-stage video { width: 100%; height: 100%; max-height: calc(100dvh - 108px - env(safe-area-inset-bottom)); aspect-ratio: auto; }
.vv-player:fullscreen .vv-player-controls { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
@container (max-width: 320px) { .vv-player .vv-player-volume { display: none; } }
@container (max-width: 220px) {
  .vv-player .vv-player-progress { flex-wrap: wrap; gap: 0; }
  .vv-player .vv-player-time { width: 100%; text-align: center; }
  .vv-player .vv-player-spacer { display: none; }
  .vv-player .vv-player-buttons { justify-content: center; }
}
