/* VARS */
:root {
  --success: #57AF2C;
  --warning: #FFAA00;
  --danger: #FD6500;
  --bg-opacity: 1;
  --text-opacity: 1;
}

.video-section {
  min-height: 100vh;
  margin-top: 0;
  padding-top: 0;
}

.player {
    width: 100%;
    /* max-width: 750px; */
    margin: auto;
    border: 5px solid rgba(0,0,0,0.2);
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    position: relative;
    font-size: 0;
    overflow: hidden;
  }
  
  /* This css is only applied when fullscreen is active. */
  .player:fullscreen {
    max-width: none;
    width: 100%;
  }
  
  .player:-webkit-full-screen {
    max-width: none;
    width: 100%;
  }
  
  .player__video {
    width: 100%;
    display: block;
  }
  
  .player__button {
    background: none;
    border: 0;
    line-height: 1;
    color: white;
    text-align: center;
    outline: 0;
    padding: 0;
    cursor: pointer;
    max-width: 50px;
  }
  
  .player__button:focus {
    border-color: #ffc600;
  }
  
  .player__slider {
    width: 10px;
    height: 30px;
  }
  
  /* .player__controls {
    display: flex;
    position: absolute;
    bottom: 0;
    width: 100%;
    transform: translateY(100%) translateY(-5px);
    transition: all .3s;
    flex-wrap: wrap;
    background: rgba(0,0,0,0.1);
  } */
  
  .player__controls {
    display: flex;
    position: absolute;
    bottom: 0;
    width: 100%;
    transform: translateY(0); /* Asegura que no esté oculto */
    transition: all .3s;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.7); /* Asegura visibilidad */
    padding: 10px; /* Espaciado interno */
    opacity: 1;
  }

  .player:hover .player__controls {
    transform: translateY(0);
    opacity: 1;
  }
  
  .player:hover .progress {
    height: 15px;
  }
  
  .player__controls > * {
    flex: 1;
  }
  
  .progress {
    flex: 10;
    position: relative;
    display: flex;
    flex-basis: 100%;
    height: 5px;
    transition: height 0.3s;
    background: #FFF;
    cursor: ew-resize;
  }
  
  .progress__filled-danger {
    width: 50%;
    background: var(--danger);
    flex: 0;
    flex-basis: 50%;
  }

  .progress__filled-warning {
    width: 50%;
    background: var(--warning);
    flex: 0;
    flex-basis: 50%;
  }

  .progress__filled-success {
    width: 50%;
    background: var(--success);
    flex: 0;
    flex-basis: 50%;
  }
  
  /* unholy css to style input type="range" */
  
  input[type=range] {
    background: transparent;
    width: 100%;
    margin: 0 5px;
  }
  
  input[type=range]:focus {
    outline: none;
  }
  
  input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8.4px;
    cursor: pointer;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0), 0 0 1px rgba(13, 13, 13, 0);
    background: rgba(255,255,255,0.8);
    border-radius: 1.3px;
    border: 0.2px solid rgba(1, 1, 1, 0);
  }
  
  input[type=range]::-webkit-slider-thumb {
    height: 15px;
    width: 15px;
    border-radius: 50px;
    background: #ffc600;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -3.5px;
    box-shadow:0 0 2px rgba(0,0,0,0.2);
  }
  
  input[type=range]:focus::-webkit-slider-runnable-track {
    background: #bada55;
  }
  
  input[type=range]::-moz-range-track {
    width: 100%;
    height: 8.4px;
    cursor: pointer;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0), 0 0 1px rgba(13, 13, 13, 0);
    background: #ffffff;
    border-radius: 1.3px;
    border: 0.2px solid rgba(1, 1, 1, 0);
  }
  
  input[type=range]::-moz-range-thumb {
    box-shadow: 0 0 0 rgba(0, 0, 0, 0), 0 0 0 rgba(13, 13, 13, 0);
    height: 15px;
    width: 15px;
    border-radius: 50px;
    background: #ffc600;
    cursor: pointer;
  }

  /* Botón de reproducción */
  .player__button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
  }

  @media (max-width: 768px) {
    /* Elimina la altura mínima para que se ajuste al contenido */
    .video-section {
      min-height: auto;
      padding: 10px 0; /* Puedes ajustar el padding según lo necesites */
    }
    /* Ajusta el contenedor del video para que use todo el ancho disponible y quite bordes/sombras si se desea */
    .player {
      max-width: 100%;
      margin: auto;
      border: none;
      box-shadow: none;
    }
    /* Asegúrate de que el video ocupe el ancho completo y se adapte a su contenido */
    .player__video {
      width: 100%;
      height: auto;
    }
    /* Opcional: Ajusta los controles para que se posicionen de manera más natural en dispositivos móviles */
    .player__controls {
      position: relative;
      bottom: auto;
      padding: 5px;
      background: rgba(0, 0, 0, 0.7);
    }
  }
  