/* Optional presentation helpers for the immersive.js media canvas. */
.immersive-stage {
  position: relative;
  width: 100%;
  min-height: 260px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0c1919;
  isolation: isolate;
}
.immersive-canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  background: #0c1919;
  cursor: grab;
  touch-action: none;
}
.immersive-canvas.is-dragging { cursor: grabbing; }
.immersive-canvas:focus-visible {
  outline: 3px solid #e8b778;
  outline-offset: -4px;
}
.immersive-stage:fullscreen {
  width: 100vw;
  height: 100dvh;
  max-height: none;
  aspect-ratio: auto;
}
.immersive-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.immersive-toolbar button {
  min-height: 44px;
  min-width: 44px;
  padding: 0.65rem 0.85rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.immersive-toolbar button:focus-visible {
  outline: 3px solid #e8b778;
  outline-offset: 3px;
}
.immersive-toolbar button:disabled { cursor: not-allowed; opacity: 0.45; }
.immersive-status { min-height: 1.5em; line-height: 1.5; }
.immersive-video-controls { display: block; width: 100%; max-height: 180px; background: #0c1919; }
@media (max-width: 600px) {
  .immersive-stage { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  .immersive-canvas, .immersive-toolbar button { scroll-behavior: auto; transition: none; }
}
