/* Player stability, 2026-11-17.
   1. The stage entrance only fades. It used to slide up 32px and scale from .94 for 1.45s while the
      controls, centre button and resume toast were already visible, so they drifted with it.
   2. The resume toast ("Started from … · From start") respects safe areas. In full screen and the
      iPhone touch full screen it sat 4px from the top edge, under the status bar and the notch. */
@media (prefers-reduced-motion: no-preference) {
  html.ss-watch-wait .watch-page:not(.is-enter):not(.is-copy-set) .stage { transform: none; }
  .watch-page.is-enter:not(.is-copy-set) .stage { animation-name: player-stage-fade; }
}
@keyframes player-stage-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 719px) {
  .watch-page .stage:not(:fullscreen):not(:-webkit-full-screen):not(.is-touch-fullscreen) .stage-toast { top: 8px; left: 8px; }
}

/* Full screen: sit just above the control bar, clear of the notch, home indicator and rounded corners. */
.watch-page .stage:fullscreen .stage-toast {
  top: auto;
  left: max(16px, calc(env(safe-area-inset-left, 0px) + 12px));
  bottom: calc(124px + env(safe-area-inset-bottom, 0px));
  max-width: calc(100% - 32px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
}
.watch-page .stage:-webkit-full-screen .stage-toast {
  top: auto;
  left: max(16px, calc(env(safe-area-inset-left, 0px) + 12px));
  bottom: calc(124px + env(safe-area-inset-bottom, 0px));
  max-width: calc(100% - 32px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
}
.watch-page .stage.is-touch-fullscreen .stage-toast {
  top: auto;
  left: max(16px, calc(var(--player-safe-left, env(safe-area-inset-left, 0px)) + 12px));
  bottom: calc(124px + var(--player-safe-bottom, env(safe-area-inset-bottom, 0px)));
  max-width: calc(100% - 32px - var(--player-safe-left, 0px) - var(--player-safe-right, 0px));
}
