/* Video player bar, after rolex.com (study of 7 November 2026): a solid green bar with play/pause, volume, the time and
   fullscreen, and a thin green progress line on its top edge. The bar sits BELOW the picture and takes its own space, so it
   never covers the picture or the subtitles burned into it. Colours are Storybook tokens (#10633D, #1A915A). */
video::-webkit-media-controls{display:none!important}
/* once the bar shows, the host is picture + bar stacked (the host's own fixed ratio and absolute video are undone) */
.hto-barred{aspect-ratio:auto!important;height:auto!important;display:block!important;padding:0!important;place-items:normal!important;justify-items:normal!important}
.hto-barred>video{position:relative!important;inset:auto!important;display:block!important;width:100%!important;height:auto!important;aspect-ratio:16/9;object-fit:contain!important;background:var(--surface-black)}
.hto-player-bar{position:relative;z-index:3;width:100%;justify-self:stretch;display:flex;align-items:center;gap:4px;height:48px;padding:0 12px 0 8px;box-sizing:border-box;
  background:var(--action-gradient-start);color:var(--text-inverse);font:400 15px/1 var(--font-body)}
.hto-player-bar[hidden],.hto-player-fade[hidden]{display:none}
/* a soft green fade over the lowest part of the picture, melting into the bar (as on rolex.com); see-through, so subtitles stay readable */
.hto-player-fade{position:absolute;left:0;right:0;bottom:48px;height:30%;max-height:150px;z-index:2;pointer-events:none;
  background:linear-gradient(to top,rgba(16,99,61,.42),rgba(16,99,61,.16) 45%,rgba(16,99,61,0))}
.hto-player-bar button{display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:var(--radius-circle);background:transparent;color:var(--text-inverse);cursor:pointer;transition:background-color .3s ease}
.hto-player-bar button:hover{background:rgba(255,255,255,.14)}
.hto-player-bar button:focus-visible{outline:2px solid var(--surface-page);outline-offset:-2px}
.hto-player-bar svg{width:22px;height:22px;fill:currentColor;overflow:visible}
.hto-player-time{margin-left:6px;color:var(--line-subtle);letter-spacing:0;white-space:nowrap}
.hto-player-space{flex:1}
.hto-player-seek{position:absolute;left:0;right:0;top:-3px;width:100%;height:8px;margin:0;padding:0;background:transparent;cursor:pointer;-webkit-appearance:none;appearance:none}
.hto-player-seek::-webkit-slider-runnable-track{height:3px;background:linear-gradient(to right,var(--action-gradient-end) var(--p,0%),rgba(140,156,156,.85) var(--p,0%))}
.hto-player-seek::-moz-range-track{height:3px;background:rgba(140,156,156,.85)}
.hto-player-seek::-moz-range-progress{height:3px;background:var(--action-gradient-end)}
.hto-player-seek::-webkit-slider-thumb{-webkit-appearance:none;width:0;height:0;margin-top:0}
.hto-player-seek:hover::-webkit-slider-thumb,.hto-player-seek:focus-visible::-webkit-slider-thumb{width:11px;height:11px;margin-top:-4px;border-radius:var(--radius-circle);background:var(--surface-page);box-shadow:0 0 0 1px var(--action-gradient-end)}
.hto-player-seek:focus-visible{outline:2px solid var(--surface-page);outline-offset:2px}
/* fullscreen: the picture fills the screen above the bar */
[data-hto-host]:fullscreen{background:var(--surface-black);display:flex!important;flex-direction:column}
[data-hto-host]:fullscreen>video{flex:1;min-height:0;height:auto!important;aspect-ratio:auto!important}
[data-hto-host]:fullscreen>.hto-player-bar{flex:none}
[data-hto-host]:fullscreen>.hto-player-fade{bottom:48px}
@media(max-width:600px){.hto-player-bar{height:44px;padding-right:6px}.hto-player-fade{bottom:44px}.hto-player-bar svg{width:20px;height:20px}.hto-player-bar button{width:36px;height:36px}.hto-player-time{font-size:13px;margin-left:2px}}
@media(prefers-reduced-motion:reduce){.hto-player-bar button{transition:none}}
