    .video-container {
      position: relative;
      width: 90%;
      aspect-ratio: 16 / 9;
      background: url("https://canalcadiz.es/portadas/fondo-dos.webp") center center / cover no-repeat;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0,0,0,0.8);
      cursor: pointer;
      margin: 40px auto; /* Centra horizontalmente */    
    }

    video {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: contain;
      background: black;
      cursor: pointer;
      user-select: none;
    }

    /* Poster overlay */
    .poster-overlay {
      position: absolute;
      inset: 0;
      background: url('https://canalcadiz.es/portadas/poster-logo.webp') center center no-repeat;
      background-size: cover;
      z-index: 8;
      transition: opacity 0.4s ease;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .poster-overlay.hide {
      opacity: 0;
      pointer-events: none;
    }

    /* Boton play/pause centrado */
    .play-pause-btn {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: rgba(0, 0, 0, 0.7);
      backdrop-filter: blur(10px);
      border-radius: 50%;
      width: 80px;
      height: 80px;
      border: 2px solid rgba(255, 255, 255, 0.3);
      cursor: pointer;
      box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10;
      user-select: none;
      opacity: 1;
    }

    .play-pause-btn:hover {
      background: rgba(0, 0, 0, 0.9);
      border-color: rgba(255, 255, 255, 0.6);
      transform: translate(-50%, -50%) scale(1.1);
    }

    /* Estados del botÃ³n segÃºn el estado del video */
    .video-container.playing .play-pause-btn {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.8);
    }

/* REGLA CORREGIDA - Aplica el hover solo en dispositivos con puntero */
@media (hover: hover) and (pointer: fine) {
  .video-container.playing:hover .play-pause-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

    .video-container.paused .play-pause-btn,
    .video-container.loading .play-pause-btn {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }

    /* Iconos SVG */
    .play-icon, .pause-icon {
      fill: #fff;
      width: 35px;
      height: 35px;
      filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    }

    /* Estado oculto */
    .hidden {
      display: none;
    }

    /* Indicador de carga */
    .loading-spinner {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 40px;
      height: 40px;
      border: 3px solid rgba(255, 255, 255, 0.3);
      border-top: 3px solid #fff;
      border-radius: 50%;
      animation: spin 1s linear infinite;
      z-index: 9;
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .video-container.buffering .loading-spinner {
      opacity: 1;
    }

    @keyframes spin {
      0% { transform: translate(-50%, -50%) rotate(0deg); }
      100% { transform: translate(-50%, -50%) rotate(360deg); }
    }

    /* Overlay de informaciÃ³n en el poster */
    .poster-info {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: linear-gradient(transparent, rgba(0,0,0,0.8));
      padding: 2rem 1.5rem 1.5rem;
      color: white;
      z-index: 9;
    }

    .poster-title {
      font-size: 1.5rem;
      font-weight: 600;
      margin-bottom: 0.5rem;
    }

    .poster-description {
      font-size: 0.9rem;
      opacity: 0.9;
      line-height: 1.4;
 
    }

/* Status text debajo */
#status {
  /* La siguiente línea es la clave */
  margin: 15px auto;
  font-weight: 500;
  font-size: 1rem;
  color: #bbb;
  max-width: 900px;
  text-align: center;
  user-select: none;
  transition: color 0.3s ease;
}
    /* Video controls */
    .video-controls {
      position: absolute;
      top: 15px;
      right: 15px;
      display: flex;
      gap: 10px;
      z-index: 10;
      opacity: 0;
      transform: translateY(-10px);
      transition: all 0.3s ease;
    }

    .video-container:hover .video-controls {
      opacity: 1;
      transform: translateY(0);
    }

    .control-btn {
      background: rgba(0, 0, 0, 0.7);
      backdrop-filter: blur(10px);
      border: 2px solid rgba(255, 255, 255, 0.3);
      border-radius: 8px;
      padding: 8px;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .control-btn:hover {
      background: rgba(0, 0, 0, 0.9);
      border-color: rgba(255, 255, 255, 0.6);
    }

    .control-btn.active {
      background: rgba(74, 144, 226, 0.8);
      border-color: rgba(74, 144, 226, 1);
    }

    .control-btn.active:hover {
      background: rgba(74, 144, 226, 1);
    }

    .control-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      background: rgba(0, 0, 0, 0.5);
    }

    .control-icon {
      width: 20px;
      height: 20px;
      fill: #fff;
    }

    /* Live indicator */
    .live-indicator {
      position: absolute;
      top: 15px;
      left: 15px;
      background: rgba(220, 53, 69, 0.9);
      color: white;
      padding: 6px 12px;
      border-radius: 15px;
      font-size: 0.8rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      opacity: 0;
      transform: translateY(-10px);
      transition: all 0.3s ease;
      z-index: 10;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .live-indicator.show {
      opacity: 1;
      transform: translateY(0);
    }

    .live-dot {
      width: 8px;
      height: 8px;
      background: #fff;
      border-radius: 50%;
      animation: pulse 1.5s infinite;
    }

    @keyframes pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.3; }
    }

    /* Mode indicator */
    .mode-indicator {
      position: absolute;
      top: 15px;
      left: 15px;
      background: rgba(74, 144, 226, 0.9);
      color: white;
      padding: 6px 12px;
      border-radius: 15px;
      font-size: 0.8rem;
      font-weight: 500;
      opacity: 0;
      transform: translateY(-10px);
      transition: all 0.3s ease;
      z-index: 10;
    }

    .mode-indicator.show {
      opacity: 1;
      transform: translateY(0);
    }

    /* Source selector */
    .source-selector {
      margin-top: 1rem;
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: center;
      max-width: 900px;
      margin: 40px auto; /* Centra horizontalmente */
    }

    .source-btn {
      background: rgba(74, 144, 226, 0.1);
      border: 2px solid rgba(74, 144, 226, 0.3);
      color: #4a90e2;
      padding: 8px 16px;
      border-radius: 20px;
      cursor: pointer;
      transition: all 0.3s ease;
      font-size: 0.9rem;
      font-weight: 500;
      white-space: nowrap;
    }

    .source-btn:hover {
      background: rgba(74, 144, 226, 0.2);
      border-color: rgba(74, 144, 226, 0.6);
    }

    .source-btn.active {
      background: rgba(74, 144, 226, 0.8);
      border-color: rgba(74, 144, 226, 1);
      color: white;
    }

    /* Responsive tweaks */
    @media (max-width: 600px) {
      .play-pause-btn {
        width: 60px;
        height: 60px;
      }
      .play-icon, .pause-icon {
        width: 25px;
        height: 25px;
      }
      .poster-title {
        font-size: 1.2rem;
      }
      .poster-description {
        font-size: 0.8rem;
      }
      .poster-info {
        padding: 1.5rem 1rem 1rem;
      }
      .source-selector {
        flex-direction: column;
        align-items: center;
      }
      .source-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
      }
    }

    /* Efectos adicionales */
    .video-container::after {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 10px;
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
      pointer-events: none;
      z-index: 11;
    }
