/* =============================
Video Welcome Popup
============================= */

.video-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  backdrop-filter: blur(4px);
  padding: 1rem;
}

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

.video-popup-modal {
  position: relative;
  background: var(--bg-elev, #12141a);
  border-radius: var(--radius-lg, 22px);
  max-width: 800px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.4s ease;
}

.video-popup-overlay.active .video-popup-modal {
  transform: scale(1) translateY(0);
}

.video-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}

.video-popup-close:hover {
  background: var(--brand, #ff4d3d);
}

.video-popup-modal video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  background: #000;
}

/* On mobile, ensure it doesn't take over the whole screen awkwardly */
@media (max-width: 600px) {
  .video-popup-modal {
    border-radius: 12px;
  }
  .video-popup-modal video {
    max-height: 55vh;
  }
}
