/* EXP Tube top video slider controls */
.exp-video-top-controls {
  position: absolute;
  left: max(14px, env(safe-area-inset-left));
  right: max(14px, env(safe-area-inset-right));
  top: calc(58px + env(safe-area-inset-top));
  z-index: 10060;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(2, 6, 23, 0.72);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  backdrop-filter: blur(14px);
  color: #fff;
  pointer-events: auto;
}

.exp-video-top-controls.is-visible {
  display: flex;
}

.exp-video-top-controls,
.exp-video-top-controls * {
  pointer-events: auto;
}

.exp-video-top-controls button {
  border: 0;
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.92);
  color: #07111f;
  font-weight: 1000;
  cursor: pointer;
  white-space: nowrap;
}

.exp-video-top-controls__time {
  min-width: 90px;
  font-size: 12px;
  font-weight: 900;
  color: rgba(255,255,255,0.86);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.exp-video-top-controls__seek {
  flex: 1;
  min-width: 120px;
  accent-color: #22c55e;
  cursor: pointer;
}

.exp-video-top-controls__volume {
  width: 95px;
  accent-color: #38bdf8;
  cursor: pointer;
}

.exp-video-quality { position: relative; }
.exp-video-quality__menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(2, 6, 23, 0.94);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  z-index: 5;
  min-width: 170px;
}
.exp-video-quality__menu button { text-align: left; }

/* Docked variant: the bar is glued to the video WINDOW (theater/corner modes) —
   position/size are driven per-frame by the game so it rides drags & resizes. */
.exp-video-top-controls--docked {
  border-radius: 12px;
  padding: 6px 8px;
  gap: 8px;
  z-index: 97;   /* above the window frame, below menus/panels */
  box-sizing: border-box;
  transition: opacity 0.25s ease;
}
/* auto-hidden while playing (YouTube-style); taps pass through to the video */
.exp-video-top-controls--docked.is-idle {
  opacity: 0;
  pointer-events: none;
}
.exp-video-top-controls--docked button {
  padding: 6px 9px;
  font-size: 12px;
}
.exp-video-top-controls--docked .exp-video-top-controls__time {
  min-width: 72px;
  font-size: 11px;
}
.exp-video-top-controls--narrow .exp-video-top-controls__volume { display: none; }

@media (max-width: 760px) {
  .exp-video-top-controls {
    top: calc(48px + env(safe-area-inset-top));
    gap: 6px;
    padding: 7px;
  }
  .exp-video-top-controls button {
    padding: 7px 8px;
    font-size: 12px;
  }
  .exp-video-top-controls__time {
    min-width: 72px;
    font-size: 11px;
  }
  .exp-video-top-controls__volume {
    width: 64px;
  }
}
