/* ── Hero Content: fade when entering cinema mode ── */
.hero-content-overlay,
.hero-scroll-hint {
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

section#overview.cinema-mode .hero-content-overlay,
section#overview.cinema-mode .hero-scroll-hint {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ── Exit button: fixed top-right, hidden by default ── */
.hero-exit-cinema {
  position: fixed !important;
  top: 4.25rem !important;
  right: 1.5rem !important;
  z-index: 9000 !important;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s ease;
}

.hero-exit-cinema:hover {
  background: rgba(255, 255, 255, 0.15);
}

section#overview.cinema-mode ~ .hero-exit-cinema,
section#overview.cinema-mode .hero-exit-cinema {
  display: flex;
}

/* ── Video control bar: fixed bottom-center, hidden by default ── */
.hero-video-controls {
  position: fixed !important;
  bottom: 1.75rem !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 9000 !important;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

/* Only show controls when hero section is in cinema-mode */
section#overview.cinema-mode .hero-video-controls {
  display: flex;
}

/* ── Play/Pause button ── */
.hero-video-playpause {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.hero-video-playpause:hover {
  opacity: 1;
}

/* ── Progress track ── */
.hero-video-progress-track {
  width: 220px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transition: height 0.15s ease;
}

.hero-video-progress-track:hover {
  height: 6px;
}

.hero-video-progress-fill {
  height: 100%;
  width: 0%;
  background: white;
  border-radius: 2px;
  pointer-events: none;
  transition: width 0.1s linear;
}

/* ── Time label ── */
.hero-video-time {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  min-width: 32px;
}
