/* =====================================================================
   MSM Markets — Video rewatch lightbox (0.26.0).
   Reuses the design tokens defined in event-preview.css (loaded first),
   same modal-shell conventions as new-player-kit.css -- this file only
   differs in dialog sizing (wide enough for a 16:9 video, no padding
   around it) and the empty stage container video-lightbox.js injects/
   removes the iframe from.
   ===================================================================== */

.msm-vlb-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.msm-vlb-modal[hidden] { display: none; }

.msm-vlb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 16, 0.78);
  backdrop-filter: blur(2px);
}

.msm-vlb-dialog {
  position: relative;
  width: min(100%, 900px);
  background: #000;
  border: 1px solid var(--msm-line-strong);
  border-radius: var(--msm-radius-lg);
  box-shadow: var(--msm-shadow);
  overflow: hidden;
}

.msm-vlb-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 1;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(4, 7, 16, 0.7);
  color: var(--msm-ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.msm-vlb-close:hover { background: var(--msm-red-500); border-color: var(--msm-red-500); }
.msm-vlb-close:focus-visible { outline: 2px solid var(--msm-gold-400); outline-offset: 2px; }

.msm-vlb-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.msm-vlb-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Scroll lock ---------- */
body.msm-vlb-locked { overflow: hidden; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .msm-vlb-modal { padding: 0.75rem; }
}
