.theatre {
  position: relative;
}
.media-controls {
  position: absolute;
  right: 22px;
  bottom: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 9px;
}
.media-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid #ffffff45;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-line) 85.1%, transparent);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 6px color-mix(in srgb, var(--shadow-ink) 3.92%, transparent);
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}
.media-button:hover {
  background: var(--ink);
  transform: translateY(-1px);
}
.media-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--shadow-ink);
}
.media-button svg {
  display: block;
  width: 20px;
  height: 20px;
  overflow: visible;
}
.media-button[data-state="playing"] .play-symbol,
.media-button[data-state="paused"] .pause-symbol,
.media-button[data-muted="true"] .sound-waves,
.media-button[data-muted="false"] .sound-muted {
  display: none;
}
/* Preserve each composition's space while reserving a quiet corner for controls. */
.theatre > .film.story-stage {
  height: 760px;
}
.theatre > .film.story-stage > .story-canvas,
.theatre .story-outgoing > .story-canvas {
  bottom: 68px;
}
@media (max-width: 720px) {
  .media-controls {
    right: 16px;
    bottom: 12px;
    gap: 8px;
  }
  .theatre > .film.story-stage {
    height: 780px;
  }
  .theatre > .film.story-stage > .story-canvas,
  .theatre .story-outgoing > .story-canvas {
    bottom: 64px;
  }
}
@media (max-width: 370px) {
  .theatre > .film.story-stage {
    height: 810px;
  }
  .media-controls {
    right: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .media-button {
    transition: none;
  }
}
