/* Keeps height stable relative to width, prevents layout jump */

#videoStage.video-stage {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  position: relative;
  overflow: hidden;
}

/* Make the video fill the stage without affecting layout */

#videoStage .video-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Your overlay should also fill the stage */

#limitOverlay {
  position: absolute;
  inset: 0;
}

/* If you pan/zoom with transforms, keep it smooth */

#mainPlayer {
  transform-origin: center center;
  will-change: transform;
}

