/* -------- Contenedor -------- */
.container {
  text-align: center;
}

.thumbnail {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.thumbnail:hover {
  transform: scale(1.02);
}

/* botón play */
.playButton {
  background: rgba(0, 0, 0, 0.6);
  zoom: 2.5;
  transition: background 0.3s ease;
}

.thumbnail .playButton {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.thumbnail:hover .playButton {
  background: rgba(0, 0, 0, 0.8);
}

/* -------- Modal -------- */
.video-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.video-modal {
  position: relative;
  max-width: 1000px;
  width: 100%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-close {
  position: absolute;
  top: -50px;
  right: 0;
  color: white;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease;
  z-index: 10;
}

.video-close:hover {
  color: #ccc;
}

.video-wrapper {
  position: relative;
  padding-top: 56.25%;
  width: 100%;
}

.video-iframe,
.video-element {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

.video-element {
  object-fit: contain;
  background: #000;
}

/* responsive */
@media (max-width: 768px) {
  .video-overlay {
    padding: 10px;
  }

  .video-modal {
    border-radius: 8px;
  }

  .video-close {
    top: -40px;
    font-size: 20px;
  }
}
