/* Botón preview, reproductor de vídeo y lightbox de imagen
   (archivo: css/components/modals-media.css) */
/* ============================================================
   BTN PREVIEW (play button sobre el banner del detail)
   ============================================================ */
#btn-banner-play {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  background: rgba(0,0,0,0.68);
  border: 3px solid var(--yellow-bright);
  border-radius: 10px;
  color: var(--yellow-bright);
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  transition: background .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.7);
  backdrop-filter: blur(3px);
  font-family: 'Fredoka One', cursive;
}
#btn-banner-play:hover {
  background: var(--yellow-bright);
  color: #111;
  transform: scale(1.1);
  box-shadow: 0 0 14px rgba(255,215,0,0.6);
}
#btn-banner-play:active { transform: scale(0.92); }

/* ============================================================
   VIDEO PLAYER MODAL
   ============================================================ */
#video-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  animation: fadeInDetail .2s ease;
}
#video-modal-overlay.open { display: flex; }

#video-modal {
  position: relative;
  background: var(--bg-panel);
  border: 4px solid var(--yellow-bright);
  border-radius: 16px;
  box-shadow: var(--shadow-glow), 0 16px 50px rgba(0,0,0,0.85);
  width: min(860px, 94vw);
  overflow: hidden;
  animation: cardIn .28s ease both;
  display: flex;
  flex-direction: column;
}

#video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: linear-gradient(90deg, #0a0a0a 0%, #1c1c1c 100%);
  border-bottom: 3px solid var(--yellow-bright);
  flex-shrink: 0;
}
#video-modal-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.15rem;
  color: var(--yellow-bright);
  text-shadow: 0 0 12px rgba(255,215,0,0.5), 1px 1px 0 #000;
  letter-spacing: 1px;
}
#btn-close-video {
  background: var(--red-close);
  color: #fff;
  border: 3px solid #000;
  border-radius: 10px;
  width: 40px; height: 40px;
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 3px 0 #000;
  transition: filter .15s, transform .1s;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
#btn-close-video:hover  { filter: brightness(1.2); }
#btn-close-video:active { transform: scale(0.91); }

#video-modal-body {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#video-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  border: none;
}

#video-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: repeating-linear-gradient(-45deg,#1e1600 0,#1e1600 18px,#130f00 18px,#130f00 36px);
  font-family: 'Fredoka One', cursive;
  color: #555;
}
#video-placeholder img {
  max-width: 55%;
  max-height: 55%;
  object-fit: contain;
  border-radius: 10px;
  border: 2px solid #333;
  opacity: 0.7;
}
#video-placeholder .vph-emoji  { font-size: 3.2rem; display: none; }
#video-placeholder .vph-text   { font-size: 1rem; color: #555; letter-spacing: .5px; }

/* ============================================================
   IMAGE LIGHTBOX
   ============================================================ */
#image-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 850;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  animation: fadeInDetail .2s ease;
}
#image-modal-overlay.open { display: flex; }

#image-modal-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 96vw;
  max-height: 92vh;
  padding: 10px;
  border: 4px solid var(--yellow-bright);
  background: #111;
  box-shadow: var(--shadow-glow), 0 16px 50px rgba(0,0,0,0.85);
  border-radius: 16px;
}

#image-modal-img {
  display: block;
  max-width: calc(96vw - 20px);
  max-height: calc(92vh - 20px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

#image-modal-title {
  position: absolute;
  top: 12px;
  left: 16px;
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  color: var(--yellow-bright);
  text-shadow: 0 0 12px rgba(255,215,0,0.5), 1px 1px 0 #000;
  pointer-events: none;
}

