/* Shared "▶ VIDEO" overlay — pairs with /js/video-toggle.js.
   The overlay covers its parent screen (which must be position: relative or
   fixed), so it also fills the display when that screen is fullscreen. */
.video-mode > :not(.xs-video) { visibility: hidden; }

.xs-video {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  container-type: size;
  z-index: 50;
}
.xs-video[hidden] { display: none; }

.xs-video iframe {
  width: min(100cqw, calc(100cqh * 16 / 9));
  aspect-ratio: 16 / 9;
  border: 0;
}

/* Small way back to the simulation; faint so it doesn't sit on the video */
.xs-video-close {
  position: absolute;
  bottom: 70px;
  right: 15px;
  z-index: 1;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0.3;
}
.xs-video-close:hover,
.xs-video-close:focus-visible { opacity: 1; background: rgba(0, 0, 0, 0.8); }
