.video-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(7, 18, 41, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.video-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-box {
  position: relative;
  width: 100%;
  max-width: 720px;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6);
  transform: scale(0.96);
  transition: transform 0.2s ease;
}

.video-modal-overlay.is-open .video-modal-box {
  transform: scale(1);
}

.video-modal-box video {
  display: block;
  width: 100%;
  max-height: 82vh;
  background: #000;
}

.video-modal-box.is-youtube {
  aspect-ratio: 16 / 9;
}

.video-modal-iframe {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: none;
}

.video-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(11, 31, 63, 0.72);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px -2px rgba(0, 0, 0, 0.45);
}

.video-modal-close:hover {
  background: rgba(91, 171, 224, 0.9);
}

body.video-modal-locked {
  overflow: hidden;
}

@media (max-width: 640px) {
  .video-modal-close {
    top: 8px;
    right: 8px;
  }
}
