.video-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.video-modal-container {
  position: relative;
  width: 90vw;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.video-modal-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.video-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 8px 12px;
  opacity: 0.7;
  transition: opacity 0.2s;
  font-family: Arial, sans-serif;
  z-index: 2;
  border-radius: 4px;
}

.video-modal-close:hover {
  opacity: 1;
}

.video-modal-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  z-index: 3;
}

.video-modal-loader::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: video-modal-spin 0.8s linear infinite;
}

@keyframes video-modal-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .video-modal-container {
    width: 95vw;
  }
}
