/* streamix-sdk.css — SDK styles (spinner, overlay wraps, fullscreen button). */

/* Spinner (preroll + loading) */
@keyframes streamixSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.streamixPrerollSpinner {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  margin-top: -22px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.25);
  border-top-color: rgba(255, 255, 255, 0.95);
  animation: streamixSpin 0.9s linear infinite;
  z-index: 999;
  pointer-events: none;
}

.streamixPrerollScrim {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 998;
  pointer-events: none;
}

/* Overlay wrapper — shared wrapper for preroll and loading spinners */
.streamixOverlayWrap {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: none;
  pointer-events: none;
}

/* Preroll wrapper — sits above everything */
.streamixPrerollWrap {
  z-index: 999;
}

/* Loading wrapper — sits below the fullscreen button */
.streamixLoadingWrap {
  z-index: 900;
}

/* Fullscreen button */
.streamixFsBtn {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0.85;
  transition: opacity 0.15s;
  pointer-events: auto;
}

.streamixFsBtn:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.75);
}

.streamixFsBtn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Plyr: override fixed-ratio wrapper to fill the SDK container.
   #playerRoot controls the outer aspect ratio (16:9 by default).
   <video> object-fit:contain handles letterboxing/centering. */
.plyr {
  width: 100% !important;
  height: 100% !important;
}

.plyr__video-wrapper,
.plyr__video-wrapper--fixed-ratio {
  width: 100% !important;
  height: 100% !important;
  padding-bottom: 0 !important;
  aspect-ratio: auto !important;
}

/* Hide native/Clappr/Video.js FS buttons (scoped to .streamixFsBtnActive on playerRoot) */
.streamixFsBtnActive video::-webkit-media-controls-fullscreen-button {
  display: none !important;
}

.streamixFsBtnActive .media-control-right-panel .media-control-icon[data-fullscreen] {
  display: none !important;
}

.streamixFsBtnActive .vjs-fullscreen-control {
  display: none !important;
}
