/* VideoPopUp.css — estilos para el overlay de vídeo */

.VideoPopUp-Wrap {
  position: fixed;
  inset: 0;                        /* top/right/bottom/left: 0 */
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* Entrada: empieza invisible, JS quita la clase tras 600 ms */
.VideoPopUp-Wrap.VideoPopUp-animation {
  opacity: 0;
}

/* Salida: JS añade esta clase antes de eliminar el nodo */
.VideoPopUp-Wrap.VideoPopUp-Hide {
  opacity: 0;
}

/* ── contenedor del iframe ──────────────────────────────────────────────── */

.VideoPopUp-Content {
  position: relative;
  width: 90vw;
  max-width: 960px;
  aspect-ratio: 16 / 9;
}

.VideoPopUp-Content iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── botón de cierre ────────────────────────────────────────────────────── */

.VideoPopUp-Close {
  position: absolute;
  top: -2.25rem;
  right: 0;
  width: 2rem;
  height: 2rem;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.VideoPopUp-Close::before,
.VideoPopUp-Close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.5rem;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transform-origin: center;
  transition: background 0.2s;
}

.VideoPopUp-Close::before { transform: translate(-50%, -50%) rotate(45deg); }
.VideoPopUp-Close::after  { transform: translate(-50%, -50%) rotate(-45deg); }

.VideoPopUp-Close:hover::before,
.VideoPopUp-Close:hover::after {
  background: #f0a500;
}

/* ── responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .VideoPopUp-Content {
    width: 96vw;
  }

  .VideoPopUp-Close {
    top: -2rem;
    right: 0;
  }
}
