.video-container {
  position: relative;
  overflow: hidden;
  max-width: 300px; /* tamaño máximo */
  width: 40%; /* para que sea responsive en pantallas pequeñas */
  height: 10%;
  padding-top: 10.25%; /* relación 16:9 para el video */
  margin: 20px auto;
  border: 2px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

  .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
  }

  .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
    background: transparent;
  }

  /* Estado expandido */
  .video-container.expand {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90vw !important;
    height: 50vw !important;
    max-width: 900px !important;
    max-height: 500px !important;
    z-index: 9999 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
    background: #000;
  }

  .video-container.expand .video-overlay {
    display: none;
  }

  /* Fondo oscuro detrás del video expandido */
  .video-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
    display: none;
  }
  .video-backdrop.active {
    display: block;
  }