/* ═══════════════════════════════════════════════════════════════
 *  video-overlay.css — Modal de video compartido
 *  Compatible con index.ejs y explorar.ejs
 *  Las animaciones fadeIn / fadeInUp deben definirse en el :root
 * ═══════════════════════════════════════════════════════════════ */

/* ═══ VIDEO OVERLAY ═══ */
.video-overlay {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease;
  align-items: center; justify-content: center;
  /* Edge-to-edge: 20px de aire + insets seguros del teléfono. */
  padding: calc(20px + var(--sat, env(safe-area-inset-top, 0px)))
           calc(20px + env(safe-area-inset-right, 0px))
           calc(20px + env(safe-area-inset-bottom, 0px))
           calc(20px + env(safe-area-inset-left, 0px));
}
.video-overlay.open { display: flex; }
.video-overlay-content {
  position: relative;
  width: 100%; max-width: 720px;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  animation: fadeInUp 0.25s ease;
}
.video-overlay video {
  width: 100%; display: block;
  max-height: 80vh;
}
.video-close-btn {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
  z-index: 2;
}
.video-close-btn:hover {
  background: rgba(239,68,68,0.8);
  transform: scale(1.1);
}
