/* Public live-camera player controls + stacked player zones.
   Video stage stays full width. DVR chrome wraps around it — never shrinks it. */
.player-shell,
.player,
.player-stage {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.player {
  --hvl-controls-h: 0px;
  --hvl-status-h: 0px;
  --hvl-player-inset: 8px;
  display: flex;
  flex-direction: column;
}
.player-stage {
  position: relative;
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  container-type: size;
  container-name: hvl-player;
}
.player.has-dvr,
.player.has-player-controls,
.player.has-player-controls.has-dvr,
.player.has-dvr .player-stage,
.player.has-player-controls.has-dvr .player-stage {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
}
#hvlPlayerControls,
.player-controls,
.hvl-player-controls {
  width: 100%;
  max-width: 100%;
}
.player.has-player-controls {
  --hvl-controls-h: 48px;
}
.player.has-player-controls.has-dvr {
  --hvl-controls-h: 92px;
}
.player video,
.player-stage video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  min-width: 0;
  object-fit: contain;
  background: #000;
}
.dvr-play-overlay {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  pointer-events: none;
}
.dvr-play-overlay[hidden] { display: none !important; }
.dvr-play-overlay.is-visible { pointer-events: auto; }
.dvr-play-overlay-btn {
  appearance: none;
  border: 0;
  width: 88px;
  height: 88px;
  min-width: 88px;
  min-height: 88px;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: rgba(8, 10, 16, 0.72);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}
.dvr-play-overlay-icon {
  width: 32px;
  height: 32px;
  fill: currentColor;
}
.dvr-play-overlay-label {
  font: 700 11px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.12em;
}
.dvr-play-overlay-behind {
  font: 650 10px/1 Inter, system-ui, sans-serif;
  opacity: 0.8;
}
.player.has-sponsor-slate .player-controls,
.player.has-sponsor-slate .hvl-player-bar {
  display: none !important;
}
.player.has-sponsor-slate .player-status {
  padding: 0;
  min-height: 0;
}

.player-shell:fullscreen,
.player-shell:-webkit-full-screen,
.player:fullscreen,
.player:-webkit-full-screen,
.player.is-fullscreen {
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  border-radius: 0;
  background: #000;
}

.player-shell:fullscreen,
.player-shell:-webkit-full-screen,
.player:fullscreen,
.player:-webkit-full-screen,
.player.is-fullscreen {
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  border-radius: 0;
  background: #000;
}

.player-stack {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
}
.player-content {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.player-status {
  position: relative;
  flex: 0 0 auto;
  z-index: 6;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 8px 6px;
  pointer-events: none;
}
.player-controls {
  position: relative;
  flex: 0 0 auto;
  z-index: 7;
  pointer-events: auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
/* Page-embedded: the 16:9 stage is the full camera viewport.
   Primary controls sit in the next flex row — never over the picture. */
.player.has-player-controls .player-stack {
  padding-bottom: 0;
}
.player.has-player-controls .player-controls {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  margin-top: 0;
  z-index: 7;
  background: #07070a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.player .hvl-sponsor-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.player.has-player-controls .hvl-sponsor-overlay {
  bottom: auto;
  top: auto;
  left: max(8px, env(safe-area-inset-left, 0px));
  right: max(8px, env(safe-area-inset-right, 0px));
  max-width: min(92%, 360px);
  margin-bottom: 0;
  align-self: flex-end;
}
.player.has-player-controls .player-content .hvl-sponsor-overlay {
  bottom: 8px;
}
.player.has-player-controls .hvl-sponsor-bug,
.player.has-player-controls .hvl-sponsor-bug[data-corner="bottom-right"],
.player.has-player-controls .hvl-sponsor-bug[data-corner="bottom-left"] {
  bottom: auto;
  top: max(8px, env(safe-area-inset-top, 0px));
  right: max(8px, env(safe-area-inset-right, 0px));
  left: auto;
}
.player.has-player-controls.is-controls-visible .hvl-sponsor-overlay {
  max-width: min(70%, 280px);
}

.hvl-replay-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(8, 10, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.hvl-replay-chip[data-mode="live"] { color: #ffd7dc; border-color: rgba(255, 42, 42, 0.45); }
.hvl-replay-chip[data-mode="dvr"] { color: #ffe3b0; border-color: rgba(255, 184, 77, 0.45); }
.hvl-replay-chip[hidden] { display: none !important; }
.hvl-player-notice {
  margin: 0;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(8, 10, 16, 0.72);
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 650;
  pointer-events: none;
}
.hvl-player-notice[hidden] { display: none !important; }

.hvl-scrub-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 2px 10px 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.hvl-scrub-wrap[hidden],
.hvl-replay-unavail[hidden] { display: none !important; }
.player.is-controls-visible .hvl-scrub-wrap,
.player.is-paused .hvl-scrub-wrap,
.player.is-connecting .hvl-scrub-wrap {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.hvl-scrub {
  flex: 1 1 auto;
  position: relative;
  width: 100%;
  min-width: 0;
  height: 44px;
  display: flex;
  align-items: center;
  touch-action: none;
  cursor: pointer;
}
.hvl-scrub-track {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}
.hvl-scrub-ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hvl-scrub-tick {
  position: absolute;
  top: -4px;
  width: 2px;
  height: 12px;
  margin-left: -1px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.38);
}
.hvl-scrub-ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hvl-scrub-tick {
  position: absolute;
  top: -4px;
  width: 2px;
  height: 12px;
  margin-left: -1px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.38);
}
.hvl-scrub-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  border-radius: inherit;
  background: #ffb84d;
}
.hvl-scrub.is-live .hvl-scrub-fill { background: #ff4d57; }
.hvl-scrub-thumb {
  position: absolute;
  top: 50%;
  left: 100%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.hvl-scrub-time {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 40%;
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hvl-replay-unavail {
  margin: 0;
  padding: 0 10px 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 650;
}
.hvl-player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  background: #07070a;
  opacity: 1;
  transform: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: auto;
}
.player-controls-left,
.player-controls-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}
.player-controls-right {
  margin-left: auto;
}
.player.is-fullscreen .hvl-player-bar,
.player-shell:fullscreen .hvl-player-bar,
.player-shell:-webkit-full-screen .hvl-player-bar,
.player-shell.is-fake-fullscreen .hvl-player-bar {
  padding-left: max(8px, env(safe-area-inset-left, 0px));
  padding-right: max(8px, env(safe-area-inset-right, 0px));
  padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
}
.player.is-controls-visible .hvl-player-bar,
.player.is-paused .hvl-player-bar,
.player.is-connecting .hvl-player-bar,
.hvl-player-bar:focus-within {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.hvl-player-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 7px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  gap: 4px;
}
.hvl-player-btn:hover { background: rgba(255, 255, 255, 0.16); }
.hvl-player-btn:disabled {
  opacity: 0.38;
  cursor: default;
}
.hvl-player-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hvl-player-btn.is-live {
  background: rgba(255, 42, 42, 0.22);
  border: 1px solid rgba(255, 42, 42, 0.5);
  min-width: 52px;
}
.hvl-player-btn.is-behind {
  background: rgba(255, 184, 77, 0.22);
  border: 1px solid rgba(255, 184, 77, 0.55);
  color: #ffe3b0;
  animation: hvl-live-nudge 1.6s ease-in-out infinite;
}
.hvl-player-btn[hidden],
.hvl-player-group[hidden] { display: none !important; }

.hvl-quality-wrap { position: relative; z-index: 45; }
.hvl-quality-btn-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  max-width: 78px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hvl-quality-menu { min-width: 168px; }
.hvl-quality-item {
  width: 100%;
  justify-content: flex-start;
  min-height: 44px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
}
.hvl-quality-item[aria-checked="true"] {
  background: rgba(255, 255, 255, 0.16);
}
.hvl-quality-notice {
  position: absolute;
  left: 10px;
  bottom: 58px;
  z-index: 46;
  margin: 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(8, 10, 16, 0.86);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
}
.hvl-quality-wrap.is-open .hvl-quality-menu { display: flex; }
@media (max-width: 720px) {
  .hvl-quality-btn-label { display: none; }
}

.hvl-player-go-live { font-size: 10px; letter-spacing: 0.08em; }
.hvl-player-skip { min-width: 42px; }

.hvl-player-group {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.hvl-player-group-grow { margin-left: auto; }
.hvl-player-volume {
  width: 72px;
  height: 4px;
  accent-color: #fff;
}
.player-controls,
.hvl-player-bar,
.hvl-player-more {
  overflow: visible;
}
.hvl-player-more {
  position: relative;
  z-index: 40;
}
.hvl-player-more[hidden] { display: none !important; }
.hvl-more-layer {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  overflow: visible;
  z-index: 2147483640;
  pointer-events: none;
}
.hvl-more-layer .hvl-player-menu {
  pointer-events: auto;
}
.hvl-player-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 50;
  min-width: 196px;
  max-width: min(280px, calc(100vw - 24px));
  max-height: min(70vh, 360px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 6px;
  border-radius: 12px;
  background: rgba(8, 10, 16, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  display: none;
  flex-direction: column;
  gap: 4px;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}
.hvl-player-more.is-open .hvl-player-menu,
.hvl-player-menu.is-fixed,
.hvl-player-menu.is-open {
  display: flex;
}
.hvl-player-menu[hidden] {
  display: none !important;
}
.hvl-player-menu.is-fixed,
.hvl-more-layer .hvl-player-menu {
  position: fixed;
  right: auto;
  bottom: auto;
  z-index: 2147483641;
}
.hvl-player-menu button,
.hvl-more-item {
  width: 100%;
  justify-content: flex-start;
  min-height: 44px;
  min-width: 0;
  padding: 0 12px;
  font-size: 15px;
}

.dvr-scrub-preview {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 12px 18px;
  pointer-events: none;
  background: rgba(6, 8, 12, 0.28);
}
.dvr-scrub-preview[hidden] { display: none !important; }
.dvr-scrub-preview-frame {
  position: relative;
  width: min(72%, 426px);
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.dvr-scrub-preview-frame img,
.dvr-scrub-preview-frame canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
}
.dvr-scrub-preview-frame img[hidden],
.dvr-scrub-preview-frame canvas[hidden] { display: none !important; }
.dvr-scrub-preview-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(8, 10, 16, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  color: #fff;
  text-align: center;
  max-width: min(92%, 360px);
}
.dvr-scrub-preview-clock {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.dvr-scrub-preview-behind {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffe3b0;
}
.player.is-scrubbing .dvr-scrub-preview-frame,
.player.is-seeking .dvr-scrub-preview-frame {
  width: min(78%, 480px);
}

.dvr-scrub-preview {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 12px 18px;
  pointer-events: none;
  background: rgba(6, 8, 12, 0.28);
}
.dvr-scrub-preview[hidden] { display: none !important; }
.dvr-scrub-preview-frame {
  position: relative;
  width: min(72%, 426px);
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.dvr-scrub-preview-frame img,
.dvr-scrub-preview-frame canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
}
.dvr-scrub-preview-frame img[hidden],
.dvr-scrub-preview-frame canvas[hidden] { display: none !important; }
.dvr-scrub-preview-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(8, 10, 16, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  color: #fff;
  text-align: center;
  max-width: min(92%, 360px);
}
.dvr-scrub-preview-clock {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.dvr-scrub-preview-behind {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffe3b0;
}
.player.is-scrubbing .dvr-scrub-preview-frame,
.player.is-seeking .dvr-scrub-preview-frame {
  width: min(78%, 480px);
}

.hvl-shutter {
  position: absolute;
  inset: 0;
  z-index: 8;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}
.hvl-shutter.is-on { animation: hvl-shutter 0.28s ease-out; }

.hvl-snapshot-sheet {
  position: absolute;
  inset: auto 10px 58px auto;
  z-index: 9;
  display: none;
  gap: 6px;
  pointer-events: auto;
}
.hvl-snapshot-sheet.is-open { display: flex; }
.hvl-snapshot-sheet .hvl-player-btn { min-width: 96px; }

@keyframes hvl-shutter {
  0% { opacity: 0.72; }
  100% { opacity: 0; }
}
@keyframes hvl-live-nudge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 184, 77, 0.25); }
  50% { box-shadow: 0 0 0 4px rgba(255, 184, 77, 0); }
}

@media (max-width: 640px) {
  .player.has-player-controls { --hvl-controls-h: 52px; }
  .player.has-player-controls.has-dvr { --hvl-controls-h: 96px; }
  .player.has-player-controls .player-stack { padding-bottom: 0; }
  html:not(.hvltv-ios-fullview):not(.hvltv-ios-pip) .player.has-player-controls .player-controls {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 0;
    z-index: 7;
    background: #000;
  }
  html:not(.hvltv-ios-fullview):not(.hvltv-ios-pip) .player .hvl-player-bar,
  html:not(.hvltv-ios-fullview):not(.hvltv-ios-pip) .player.is-controls-visible .hvl-player-bar,
  html:not(.hvltv-ios-fullview):not(.hvltv-ios-pip) .player.is-paused .hvl-player-bar,
  html:not(.hvltv-ios-fullview):not(.hvltv-ios-pip) .player.is-connecting .hvl-player-bar {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    background: #000;
  }
  html:not(.hvltv-ios-fullview):not(.hvltv-ios-pip) .player-status .hvl-replay-chip {
    display: none !important;
  }
  .player-shell,
  .player,
  .player-stage,
  .player-stage video,
  .player video {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .player-stage {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
  }
  .player-stage video,
  .player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .hvl-player-bar {
    gap: 4px;
    padding: 6px 8px;
    overflow: visible;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .player .hvl-sponsor-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  .player .hvl-sponsor-layer > *:not(.is-visible) { pointer-events: none; }
  .player .hvl-sponsor-layer > .is-visible { pointer-events: auto; }
  .player.has-dvr .player-stage,
  .player.has-player-controls.has-dvr .player-stage,
  .player.has-dvr video,
  .player.has-player-controls.has-dvr video {
    width: 100% !important;
    max-width: 100% !important;
  }
  .hvl-player-btn { min-width: 44px; min-height: 44px; }
  .hvl-player-volume { display: none; }
  .hvl-desktop-only { display: none !important; }
  .hvl-collapse-narrow { display: none !important; }
  .hvl-scrub-wrap {
    width: 100%;
    max-width: 100%;
    flex: 1 0 100%;
  }
  .hvl-player-menu {
    min-width: min(220px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
  }
  .hvl-scrub { height: 44px; }
  .hvl-scrub-thumb { width: 28px; height: 28px; margin-left: -14px; margin-top: -14px; }
  .hvl-scrub-time { min-width: 0; font-size: 10px; }
  .dvr-scrub-preview-window {
    bottom: 8px;
    width: 320px;
    max-width: min(320px, 92%);
  }
  .dvr-scrub-preview-frame {
    width: 320px;
    height: 180px;
    max-width: 100%;
  }
  .dvr-scrub-preview-clock { font-size: 14px; }
  .dvr-scrub-preview-behind { font-size: 11px; }
  .hvl-scrub-tick { height: 10px; }
  .dvr-preview-play-button {
    --preview-play-size: 64px;
    min-width: 56px;
    min-height: 56px;
  }
  .dvr-play-overlay-btn {
    width: 72px;
    height: 72px;
    min-width: 72px;
    min-height: 72px;
    padding: 6px 8px 8px;
    gap: 2px;
  }
  .dvr-play-overlay-icon {
    width: 28px;
    height: 28px;
  }
  .dvr-play-overlay-label { font-size: 11px; letter-spacing: 0.1em; }
  .dvr-play-overlay-behind { font-size: 9px; }
}
@media (max-width: 430px) {
  .dvr-scrub-preview-window { width: min(320px, 92%); }
}
@media (max-width: 390px) {
  .dvr-scrub-preview-window { width: min(320px, 92%); }
  .dvr-scrub-preview-meta { padding: 5px 10px; }
}
@media (max-width: 375px) {
  .dvr-scrub-preview-window { width: min(320px, 92%); }
}
@media (max-width: 320px) {
  .dvr-scrub-preview-window { width: min(320px, 94%); }
  .dvr-scrub-preview-clock { font-size: 13px; }
}
@media (min-width: 641px) {
  .hvl-mobile-only { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .hvl-player-bar,
  .hvl-shutter,
  .hvl-player-btn.is-behind,
  .dvr-play-overlay-btn { animation: none; transition: none; }
}

body.theme-goshen .hvl-player-btn.is-live {
  background: rgba(196, 90, 42, 0.28);
  border-color: rgba(196, 165, 116, 0.5);
}
body.theme-goshen .hvl-replay-chip[data-mode="live"] {
  color: #ffd7c4;
  border-color: rgba(196, 90, 42, 0.5);
}

html.hvltv-ios-fullview,
html.hvl-full-view,
html.hvltv-ios-fullview body,
html.hvl-full-view body {
  overflow: hidden !important;
  overscroll-behavior: none;
  height: 100%;
  width: 100%;
}
.player.hvltv-ios-fullview,
.player.hvl-full-view,
.player-shell.hvltv-ios-fullview,
.player-shell.hvl-full-view {
  position: fixed;
  inset: 0;
  width: 100%;
  width: 100vw;
  height: 100%;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  z-index: 2147483000;
  background: #000;
  border-radius: 0;
  padding-top: env(safe-area-inset-top, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  box-sizing: border-box;
}
html.hvltv-ios-fullview .player-shell,
html.hvl-full-view .player-shell,
html.hvltv-ios-fullview .player,
html.hvl-full-view .player {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border-radius: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  z-index: 2147483000;
}
html.hvltv-ios-fullview .player-shell,
html.hvl-full-view .player-shell {
  padding: 0;
}
html.hvltv-ios-fullview .player,
html.hvl-full-view .player {
  position: absolute;
  inset: 0;
  height: 100%;
}
.player.hvltv-ios-fullview .player-stage,
.player.hvl-full-view .player-stage,
.player-shell.hvltv-ios-fullview .player-stage,
.player-shell.hvl-full-view .player-stage,
html.hvltv-ios-fullview .player-stage,
html.hvl-full-view .player-stage {
  flex: 1 1 auto !important;
  aspect-ratio: auto !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0;
  max-height: none;
  overflow: hidden;
}
.player.is-fullscreen.has-player-controls .player-stack,
.player-shell:fullscreen .player.has-player-controls .player-stack,
.player-shell:-webkit-full-screen .player.has-player-controls .player-stack,
.player-shell.is-fake-fullscreen .player.has-player-controls .player-stack {
  padding-bottom: var(--hvl-controls-h);
}
.player.is-fullscreen.has-player-controls .player-controls,
.player-shell:fullscreen .player-controls,
.player-shell:-webkit-full-screen .player-controls,
.player-shell.is-fake-fullscreen .player-controls,
html.hvltv-ios-fullview .player-controls,
html.hvl-full-view .player-controls,
.player.hvltv-ios-fullview .player-controls,
.player.hvl-full-view .player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin-top: 0;
  z-index: 8;
  background: linear-gradient(180deg, rgba(6, 8, 12, 0), rgba(6, 8, 12, 0.88) 36%, rgba(6, 8, 12, 0.94));
  border-top: 0;
}
.player.is-fullscreen .hvl-player-bar,
.player-shell:fullscreen .hvl-player-bar,
.player-shell:-webkit-full-screen .hvl-player-bar,
.player-shell.is-fake-fullscreen .hvl-player-bar {
  background: transparent;
}
.player.is-fullscreen:not(.is-controls-visible):not(.is-paused):not(.is-connecting) .hvl-player-bar,
.player-shell:fullscreen .player:not(.is-controls-visible):not(.is-paused):not(.is-connecting) .hvl-player-bar,
.player-shell:-webkit-full-screen .player:not(.is-controls-visible):not(.is-paused):not(.is-connecting) .hvl-player-bar,
.player-shell.is-fake-fullscreen .player:not(.is-controls-visible):not(.is-paused):not(.is-connecting) .hvl-player-bar {
  opacity: 0;
  pointer-events: none;
}
.player.hvltv-ios-fullview video,
.player.hvl-full-view video,
.hvltv-ios-fullview .player-stage video,
.hvl-full-view .player-stage video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  transform: none !important;
  filter: none !important;
  -webkit-transform: none !important;
  -webkit-mask: none;
  mask: none;
  clip-path: none;
  opacity: 1;
}
.player.hvltv-ios-fullview .hvl-player-bar,
.player.hvl-full-view .hvl-player-bar {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  padding-left: max(8px, env(safe-area-inset-left, 0px));
  padding-right: max(8px, env(safe-area-inset-right, 0px));
  padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
}
.player.hvltv-ios-fullview:not(.is-controls-visible) .hvl-player-bar,
.player.hvltv-ios-fullview:not(.is-controls-visible) .hvl-scrub-wrap,
.player.hvl-full-view:not(.is-controls-visible) .hvl-player-bar,
.player.hvl-full-view:not(.is-controls-visible) .hvl-scrub-wrap {
  opacity: 0;
  pointer-events: none;
}
.player.hvltv-ios-fullview .hvl-desktop-only,
.player.hvl-full-view .hvl-desktop-only,
.player.hvltv-ios-fullview .hvl-collapse-narrow,
.player.hvl-full-view .hvl-collapse-narrow {
  display: none !important;
}
.player.hvltv-ios-fullview .hvl-sponsor-overlay,
.player.hvl-full-view .hvl-sponsor-overlay,
.player.hvltv-ios-fullview .hvl-sponsor-bug,
.player.hvl-full-view .hvl-sponsor-bug {
  bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  max-width: min(52%, 220px);
  z-index: 8;
}
.hvl-ios-fullview-close,
.hvl-full-view-exit {
  position: absolute;
  top: max(10px, env(safe-area-inset-top, 0px));
  left: max(10px, env(safe-area-inset-left, 0px));
  right: auto;
  z-index: 2147483646;
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  background: rgba(6, 8, 12, 0.72);
  color: #fff;
  font: 600 14px/1 Inter, system-ui, sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto !important;
  opacity: 1 !important;
}

/* Isolated viewport miniplayer. Same <video> is portaled to #hvlPipLayer. */
.hvl-pip-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 2147483000;
  pointer-events: none;
  isolation: isolate;
}
.hvl-pip-layer .player,
.hvl-pip-layer .player.hvltv-ios-pip,
.hvl-pip-layer .player.has-player-controls {
  pointer-events: auto;
  position: fixed !important;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  touch-action: none;
  cursor: grab;
  box-sizing: border-box;
}
.hvl-pip-layer .player:active {
  cursor: grabbing;
}
html.hvltv-ios-pip .hvl-pip-spacer,
.hvl-pip-spacer {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 160px;
  border-radius: 14px;
  background: #07070a;
  position: relative;
}
html.hvltv-ios-pip .hvl-pip-spacer::after {
  content: 'Picture-in-picture';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: rgba(255, 255, 255, 0.72);
  font: 600 14px/1.35 Inter, system-ui, sans-serif;
  text-align: center;
  pointer-events: none;
}
html.hvltv-ios-pip .player-shell > .player {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  max-width: 100% !important;
}
html.hvltv-ios-pip .player-shell > .player .player-stage,
html.hvltv-ios-pip .player-shell > .player video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}
.hvl-pip-layer .player,
.hvl-pip-layer .player.hvltv-ios-pip,
.player.hvltv-ios-pip {
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
}
.hvl-pip-layer .player-stage,
.player.hvltv-ios-pip .player-stage {
  flex: 0 0 auto !important;
  aspect-ratio: 16 / 9 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0;
  container-type: normal;
}
.hvl-pip-layer .player video,
.player.hvltv-ios-pip video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  transform: none !important;
  -webkit-transform: none !important;
  opacity: 1;
  pointer-events: none;
}
.hvl-pip-layer .player-controls,
.player.hvltv-ios-pip .player-controls,
html.hvltv-ios-pip .player-shell > .player .player-controls {
  position: relative !important;
  left: auto;
  right: auto;
  bottom: auto;
  margin-top: 0 !important;
  flex: 0 0 auto;
  z-index: 7;
  background: #000 !important;
}
.hvl-pip-layer .hvl-player-bar,
.player.hvltv-ios-pip .hvl-player-bar,
html.hvltv-ios-pip .player-shell > .player .hvl-player-bar,
.hvl-pip-layer .player.is-controls-visible .hvl-player-bar,
.player.hvltv-ios-pip.is-controls-visible .hvl-player-bar,
.hvl-pip-layer .player.is-paused .hvl-player-bar,
.hvl-pip-layer .player.is-connecting .hvl-player-bar {
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
  background: #000 !important;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  overflow: hidden;
}
.hvl-pip-layer .hvl-player-group-grow,
.player.hvltv-ios-pip .hvl-player-group-grow {
  margin-left: 0;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
}
.hvl-pip-layer .hvl-narration-intro,
.player.hvltv-ios-pip .hvl-narration-intro {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  justify-content: center;
  padding: 0 8px;
  font-size: 12px;
}
.hvl-pip-layer .hvl-narration-intro-label-full,
.player.hvltv-ios-pip .hvl-narration-intro-label-full { display: none !important; }
.hvl-pip-layer .hvl-narration-intro-label-short,
.player.hvltv-ios-pip .hvl-narration-intro-label-short { display: inline !important; }
.hvl-pip-layer [data-act="pause"],
.player.hvltv-ios-pip [data-act="pause"] {
  flex: 0 0 auto;
}
.hvl-pip-layer .hvl-desktop-only,
.hvl-pip-layer .hvl-collapse-narrow,
.hvl-pip-layer .hvl-scrub-wrap,
.hvl-pip-layer .hvl-player-more,
.hvl-pip-layer [data-act="more"],
.hvl-pip-layer [data-act="fs"],
.hvl-pip-layer [data-act="pip"],
.hvl-pip-layer [data-act="snap"],
.hvl-pip-layer [data-act="live"],
.hvl-pip-layer .hvl-player-go-live,
.hvl-pip-layer .hvl-replay-chip,
.hvl-pip-layer .hvl-sponsor-overlay,
.hvl-pip-layer .hvl-sponsor-bug,
.hvl-pip-layer .hvl-sponsor-layer,
.hvl-pip-layer .hvl-caption-close,
.hvl-pip-layer .hvl-ios-fullview-close,
.hvl-pip-layer .hvl-full-view-exit,
html.hvltv-ios-pip .player [data-act="live"],
html.hvltv-ios-pip .player .hvl-player-go-live,
html.hvltv-ios-pip .player .hvl-replay-chip {
  display: none !important;
}
.hvl-pip-layer .hvl-narration-intro span,
.player.hvltv-ios-pip .hvl-narration-intro span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hvl-ios-pip-close {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2147483646;
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  background: rgba(6, 8, 12, 0.72);
  color: #fff;
  font: 600 16px/1 Inter, system-ui, sans-serif;
  pointer-events: auto !important;
}
