/* Watch page: theater mode and the on-screen indicator for keyboard shortcuts. Loaded after the main parts. */
.player-hud {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  padding: 10px 22px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.95);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.player-hud.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.video-wrap {
  position: relative;
}
html.theater-mode .watch-layout.is-playing {
  grid-template-columns: minmax(0, 1fr);
}
html.theater-mode body:has(#player-section:not([hidden]))::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(8, 6, 10, 0.92);
}
html.theater-mode #player-section:not([hidden]) {
  position: relative;
  z-index: 31;
}
html.theater-mode .watch-main #player-section {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 30px 80px rgba(0, 0, 0, 0.6);
}
button[aria-pressed="true"][data-act="theater"] {
  background: var(--accent);
  color: #2a1620;
}
@media (prefers-reduced-motion: reduce) {
  .player-hud {
    transition: none;
  }
}
