/* Flag video modal — Plyr + WTV chrome; no close button (click away / Esc) */

.flag-video-trigger {
  float: left;
  width: 52%;
  max-width: 36rem;
  margin: 0 1.75rem 1rem 0;
  display: block;
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 0;
}

.flag-video-trigger img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Backdrop */
.flag-video-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}

.flag-video-modal.is-open {
  display: flex !important;
}

/* Shell matches WTV .plyr-feature */
.flag-video-stage {
  position: relative;
  cursor: default;
  width: min(1280px, calc(100vw - 32px));
  max-width: min(1280px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 64px));
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 0.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  line-height: 0;
  z-index: 1;
}

.flag-video-stage .plyr,
.flag-video-stage .plyr--video,
.flag-video-stage .plyr__video-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 0 !important;
  background: #000 !important;
}

.flag-video-stage video {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(720px, calc(100vh - 64px));
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
}

/* Close button removed — never show legacy × / CLOSE */
.flag-video-modal .flag-video-x,
#flag-video-x,
button#flag-video-x,
.flag-video-modal .plyr__control--overlaid[data-plyr="close"],
.lightcase-icon-close {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

body.flag-video-open {
  overflow: hidden !important;
}
