/* 360 Hextile native video player (markup: components/native-video-player.html,
   behaviour: js/native-video-player.js). Loaded with the page so the frame and
   control bar hold their final size from the first paint. */
.nv-player { display: block; }
.nv-player:focus { outline: none; }
.nv-player:focus-visible { outline: 2px solid #e13e13; outline-offset: 2px; }
.nv-frame { position: relative; width: 100%; background: #000; overflow: hidden; aspect-ratio: 16/9; max-height: 80vh; border-radius: 0.5rem 0.5rem 0 0; }
.nv-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; cursor: pointer; }
.nv-bigplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; border: 0; background: #e13e13; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; z-index: 2; transition: background 0.15s; }
.nv-bigplay:hover { background: #c2340f; }
.nv-player.nv-started .nv-bigplay { display: none; }
.nv-controls { display: flex; align-items: center; gap: 0.75rem; padding: 0 0.75rem; background: #18181b; height: 48px; border-bottom-left-radius: 0.5rem; border-bottom-right-radius: 0.5rem; user-select: none; }
.nv-controls button { background: transparent; border: 0; padding: 0; color: #fff; cursor: pointer; flex-shrink: 0; transition: color 0.15s; display: inline-flex; align-items: center; }
.nv-controls button:hover { color: #e13e13; }
.nv-time { color: #fff; font-size: 0.75rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; min-width: 52px; flex-shrink: 0; }
.nv-seek { -webkit-appearance: none; appearance: none; background: transparent; height: 16px; cursor: pointer; flex: 1; min-width: 0; }
.nv-seek::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, #e13e13 var(--nv-progress, 0%), rgba(255,255,255,0.25) var(--nv-progress, 0%)); }
.nv-seek::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.25); }
.nv-seek::-moz-range-progress { height: 4px; border-radius: 2px; background: #e13e13; }
.nv-seek::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #e13e13; margin-top: -5px; border: 0; }
.nv-seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #e13e13; border: 0; }
.nv-seek:focus { outline: none; }
.nv-seek:focus-visible::-webkit-slider-thumb { outline: 2px solid #fff; outline-offset: 2px; }
.nv-seek:focus-visible::-moz-range-thumb { outline: 2px solid #fff; outline-offset: 2px; }
.nv-player:fullscreen { background: #000; display: flex; align-items: center; justify-content: center; flex-direction: column; max-width: none !important; }
.nv-player:fullscreen .nv-frame { max-height: calc(100vh - 48px); width: auto; height: 100%; aspect-ratio: 16/9; border-radius: 0; }
.nv-player:fullscreen .nv-controls { width: 100%; border-radius: 0; }
/* Until the script wires them up, the bar and big play button keep their space but stay invisible. */
.nv-player:not(.nv-ready) .nv-controls,
.nv-player:not(.nv-ready) .nv-bigplay { visibility: hidden; }
