html.player-open, html.player-open body { overflow: hidden; }
.player { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: rgba(5, 7, 10, 0.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.player[hidden] { display: none; }
.player-frame { position: relative; max-width: 100%; background: #000; border-radius: 6px; overflow: hidden; }
.player video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; cursor: pointer; }
.player-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #e5e9f0; cursor: pointer; transition: background 0.15s ease; }
.player-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.player-play svg { fill: currentColor; stroke: none; }
.player-btn:hover { background: rgba(229, 233, 240, 0.12); }
.player-btn:focus-visible, .player-seek:focus-visible { outline: 2px solid #88c0d0; outline-offset: 2px; }
.player-close { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: calc(12px + env(safe-area-inset-right)); background: rgba(229, 233, 240, 0.08); border: 1px solid rgba(229, 233, 240, 0.2); }
.player-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: rgba(5, 7, 10, 0.86); border-top: 1px solid rgba(229, 233, 240, 0.12); transition: opacity 0.3s ease; }
.player.idle .player-bar { opacity: 0; }
.player.idle { cursor: none; }
.player-seek { flex: 1; min-width: 60px; height: 44px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.player-seek::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, #e5e9f0 var(--done, 0%), rgba(229, 233, 240, 0.25) var(--done, 0%)); }
.player-seek::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(229, 233, 240, 0.25); }
.player-seek::-moz-range-progress { height: 4px; border-radius: 2px; background: #e5e9f0; }
.player-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #ffffff; border: 0; }
.player-seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #ffffff; border: 0; }
.player-time { min-width: 88px; font: 12px/1 var(--mono); color: #c9d2db; text-align: center; font-variant-numeric: tabular-nums; }
.player-end { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; background: rgba(8, 10, 14, 0.82); }
.player-end[hidden] { display: none; }
.player-end p { margin: 0; font: 300 15px/1 var(--sans); letter-spacing: 0.5em; text-indent: 0.5em; text-transform: uppercase; color: #dfe9ef; }
.player-end-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.player.full .player-frame { width: 100% !important; height: 100%; border-radius: 0; }
.player-frame:fullscreen { width: 100vw !important; height: 100vh; border-radius: 0; }
@media (max-width: 600px) { .player-time { display: none; } }
@media (prefers-reduced-motion: reduce) { .reel-poster img, .player-bar { transition: none; } }
.player .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 5px; border: 1px solid rgba(229, 233, 240, 0.25); background: transparent; color: #e5e9f0; font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer; }
.player .button.primary { background: #e5e9f0; border-color: #e5e9f0; color: #0b0e13; }
