/* ===========================
   GRID DE VODS (3 columnas)
   =========================== */
.vod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.vod-item {
  cursor: pointer;
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(212,175,55,0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.vod-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(212,175,55,0.8);
}

/* Miniatura + overlay play */
.vod-thumb-wrap {
  position: relative;
  background: #000;
}
.vod-thumb-wrap img {
  width: 100%;
  display: block;
}
.vod-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 42px;
  color: #D4AF37;
  text-shadow: 0 0 8px rgba(0,0,0,0.8);
  pointer-events: none;
}

/* Título y fecha */
.vod-title {
  padding: 10px 12px 4px;
  font-size: 12px;
  color: #fff;
  text-align: center;
  font-family: 'Press Start 2P', system-ui, sans-serif;
  line-height: 1.4;
}
.vod-date {
  padding: 0 12px 12px;
  font-size: 11px;
  color: #D4AF37;
  text-align: center;
  font-family: 'Press Start 2P', system-ui, sans-serif;
}

/* Error */
.vod-error {
  grid-column: 1 / -2;
  background: #c0392b;
  color: #fff;
  border-radius: 10px;
  padding: 16px;
  font-family: system-ui, sans-serif;
}

/* ===========================
   MODAL (bloquea navegación)
   =========================== */
.vod-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Contenido: 70% en escritorio con aspect-ratio 16:9 */
.vod-modal-content {
  background: #000;
  border-radius: 12px;
  position: relative;
  width: 70%;
  aspect-ratio: 16 / 9;
  box-shadow: 0 0 12px rgba(212,175,55,0.7);
  overflow: hidden;
  animation: modalFadeIn 0.4s ease forwards;
  display: flex;
  flex-direction: column;
}

/* Contenedor del reproductor */
#vod-player {
  flex: 1;
  width: 100%;
  height: 100%;
  display: flex;
}

#vod-player iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
}

/* Botón cerrar */
.vod-close {
  position: absolute;
  top: 10px; right: 10px;
  background: #D4AF37;
  color: #000;
  border: none;
  font-size: 18px;
  cursor: pointer;
  border-radius: 50%;
  width: 36px; height: 36px;
  line-height: 36px;
  text-align: center;
  box-shadow: 0 0 8px rgba(212,175,55,0.8);
}

/* ===========================
   ANIMACIONES
   =========================== */
@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes modalFadeOut {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.8); }
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .vod-modal-content {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
  }
}

@media (max-width: 768px) {
  .vod-grid { grid-template-columns: 1fr; }
}
