/* Keep the original 16:9 picture, followed by a reserved control footer. */
.has-native-player, .video-navigation-shell.has-native-footer { --native-controls-height: 64px; }
.has-native-player { aspect-ratio: auto; padding-bottom: 0; height: auto; overflow: visible; background: transparent; }
.has-native-player > .gadi-native-player { position: relative; inset: auto; width: 100%; height: auto; }
.gadi-native-player { display: flex; flex-direction: column; border-radius: .5rem; background: transparent; direction: ltr; container-type: inline-size; }
.seo-watch-player > .gadi-native-player { border-radius: inherit; }
.seo-watch-player > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.gadi-native-player [hidden] { display: none !important; }
.gadi-native-player .gadi-native-stage { position: relative; flex: none; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: inherit; background: #000; }
.gadi-native-player .gadi-native-video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; cursor: pointer; }
.gadi-native-player .gadi-native-video:focus-visible { outline: 2px solid #8cd2e4; outline-offset: -4px; }
.gadi-native-player .gadi-native-controls { box-sizing: border-box; position: relative; z-index: 30; flex: 0 0 var(--native-controls-height); display: flex; align-items: center; gap: 8px; width: 100%; height: var(--native-controls-height); padding: 7px 10px 13px; direction: ltr; border-radius: 0 0 .5rem .5rem; background: transparent; opacity: 0; transition: opacity 150ms linear; }
.gadi-native-player.is-controls-visible .gadi-native-controls { opacity: 1; }
/* Keep the bar discoverable by hover; concealed actions must not consume taps. */
.gadi-native-player:not(.is-controls-visible) .gadi-native-controls > * { pointer-events: none; }
.gadi-native-player .gadi-native-control { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; padding: 10px; margin: 0; border: 0; border-radius: 8px; background: transparent; color: #e6edf5; font-size: 12px; line-height: 1; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.gadi-native-player .gadi-native-control:hover { background: #ffffff10; color: #fff; }
.gadi-native-player :is(.gadi-native-control, .gadi-native-timeline, .gadi-native-volume):focus-visible { outline: 2px solid #8cd2e4; outline-offset: -2px; }
.gadi-native-player .gadi-native-control svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gadi-native-player .gadi-native-control .gadi-native-filled { fill: currentColor; stroke: none; }
.gadi-native-player .gadi-native-timeline { --progress: 0%; display: block; flex: 1; min-width: 24px; width: 100%; height: 44px; margin: 0; padding: 0; appearance: none; -webkit-appearance: none; border: 0; border-radius: 4px; background: transparent; cursor: pointer; direction: ltr; }
.gadi-native-player .gadi-native-timeline::-webkit-slider-runnable-track { height: 3px; border-radius: 9px; background: linear-gradient(to right, #a6d4df 0 var(--progress), #6b7684 var(--progress) 100%); }
.gadi-native-player .gadi-native-timeline::-moz-range-track { height: 3px; border-radius: 9px; background: #6b7684; }
.gadi-native-player .gadi-native-timeline::-moz-range-progress { height: 3px; border-radius: 9px; background: #a6d4df; }
.gadi-native-player .gadi-native-timeline::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 10px; height: 10px; margin-top: -3.5px; border: 0; border-radius: 50%; background: #e6f3f7; }
.gadi-native-player .gadi-native-timeline::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: #e6f3f7; }
.gadi-native-player .gadi-native-timeline:disabled { cursor: default; opacity: .5; }
.gadi-native-player .gadi-native-volume { --progress: 100%; flex: 0 0 clamp(44px, 13%, 80px); width: clamp(44px, 13%, 80px); min-width: 0; height: 44px; margin: 0; padding: 0; appearance: none; -webkit-appearance: none; border: 0; border-radius: 4px; background: transparent; cursor: pointer; direction: ltr; }
.gadi-native-player .gadi-native-volume::-webkit-slider-runnable-track { height: 4px; border-radius: 9px; background: linear-gradient(to right, #a6d4df 0 var(--progress), #6b7684 var(--progress) 100%); }
.gadi-native-player .gadi-native-volume::-moz-range-track { height: 4px; border-radius: 9px; background: #6b7684; }
.gadi-native-player .gadi-native-volume::-moz-range-progress { height: 4px; border-radius: 9px; background: #a6d4df; }
.gadi-native-player .gadi-native-volume::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border: 0; border-radius: 50%; background: #e6f3f7; }
.gadi-native-player .gadi-native-volume::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #e6f3f7; }
.gadi-native-player .gadi-native-volume-fallback { flex: 0 0 44px; color: #d6e0ec; font-size: 10px; text-align: center; line-height: 1.15; }
.gadi-native-player .gadi-native-time { flex-shrink: 0; color: #d6e0ec; font-size: 11px; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gadi-native-player .gadi-native-separator { padding: 0 4px; color: #8996a7; }
.gadi-native-player .gadi-native-control.cc-button { font-weight: 700; letter-spacing: -.03em; }
.gadi-native-player .gadi-native-control.cc-button[aria-pressed="true"] { color: #b4ecf3; text-decoration: underline; text-underline-offset: 4px; }
.gadi-native-player .gadi-native-error { position: absolute; top: 30%; left: 10%; right: 10%; margin: 0; padding: 12px; border-radius: 8px; background: #101722ed; color: #eee; text-align: center; font-size: 14px; }
.gadi-native-player .gadi-native-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.has-native-player > .gadi-native-player:fullscreen,
.gadi-native-player.is-viewport-fullscreen { --native-controls-height: 64px; position: fixed; inset: 0; width: 100vw; height: 100dvh; border-radius: 0; background: #000; z-index: 2147483000; }
.gadi-native-player:fullscreen .gadi-native-stage,
.gadi-native-player.is-viewport-fullscreen .gadi-native-stage { flex: 1 1 0; min-height: 0; aspect-ratio: auto; border-radius: 0; }
.video-navigation-shell.has-native-footer > .video-navigation-stage { background: transparent; }
/* The arrows belong to the picture's midpoint, not the picture plus footer. */
@media (min-width: 769px) and (pointer: fine) {
  .video-navigation-shell.has-native-footer > .video-navigation { bottom: calc(var(--nav-preview-space) + var(--native-controls-height)); }
}
@media (max-width: 640px) {
  .has-native-player, .video-navigation-shell.has-native-footer { --native-controls-height: 58px; }
  .gadi-native-player.is-viewport-fullscreen { --native-controls-height: 58px; }
  .gadi-native-player .gadi-native-controls { gap: 2px; padding: 4px 2px 10px; }
  .gadi-native-player .gadi-native-time { font-size: 10px; }
  .gadi-native-player .gadi-native-separator { padding: 0 2px; }
  .gadi-native-player .gadi-native-control svg { width: 19px; height: 19px; }
}
@media (prefers-reduced-motion: reduce) { .gadi-native-player .gadi-native-controls { transition: none; } }
@container (max-width: 360px) {
  .gadi-native-player .gadi-native-controls { gap: 2px; padding-left: 2px; padding-right: 2px; }
}
@container (max-width: 320px) {
  .gadi-native-player .gadi-native-time { display: none; }
}
/* Small configured modal widths still get full touch targets and a usable seek
   bar. The footer grows, rather than compressing or clipping the picture. */
@container (max-width: 258px) {
  .gadi-native-player .gadi-native-controls {
    --native-controls-height: 100px;
    display: grid;
    grid-template-columns: 44px minmax(24px, 1fr) 44px 44px;
    grid-template-rows: 44px 44px;
    gap: 4px;
    padding: 1px 4px 7px;
  }
  .gadi-native-player .gadi-native-controls [data-role="play"] { grid-column: 1; grid-row: 1; }
  .gadi-native-player .gadi-native-controls [data-role="timeline"] { grid-column: 2 / 5; grid-row: 1; }
  .gadi-native-player .gadi-native-controls [data-role="mute"] { grid-column: 1; grid-row: 2; }
  .gadi-native-player .gadi-native-controls :is([data-role="volume"], [data-role="volume-fallback"]) { grid-column: 2; grid-row: 2; width: 100%; }
  .gadi-native-player .gadi-native-controls [data-role="volume-fallback"] { align-self: center; }
  .gadi-native-player .gadi-native-controls .cc-button { grid-column: 3; grid-row: 2; }
  .gadi-native-player .gadi-native-controls [data-role="fullscreen"] { grid-column: 4; grid-row: 2; }
  .gadi-native-player .gadi-native-control { justify-self: center; }
}
