/*CSS DEL REPRODUCTOR DE TUTOR LMS */

/* MOBILE-FIRST: que el video use TODO el ancho disponible */
.tutor-video-player-wrapper,
.tutor-video-player,
.tutor-ratio,
.tutor-ratio-16x9 {
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto; /* centrado horizontal */
  position: relative;
}

/* Si el theme trae límites globales en iframes, anulalos */
.tutor-video-player iframe,
.tutor-lesson-video iframe {
  display: block;
  width: 100% !important;
  height: auto !important; /* deja que la relación haga su trabajo */
  aspect-ratio: 16 / 9;
  max-width: 100% !important; /* por si hay un max-width heredado */
}

/* Fallback por si el theme usa el “truco” de padding en .tutor-ratio */
.tutor-ratio::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9 */
}
.tutor-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

/* DESKTOP*/
@media (min-width: 992px) {
  /* anula el pseudo-elemento que fija la altura por padding */
  .tutor-ratio::before,
  .tutor-ratio-16x9::before {
    content: none !important;
    padding-top: 0 !important;
  }

  /* ahora el alto lo define el propio contenedor */
  .tutor-ratio,
  .tutor-ratio-16x9 {
    aspect-ratio: 16 / 9; /* mantiene proporción */
    min-height: 300px !important; /* tu requisito */
  }
}

/*FIN DEL CSS DEL REPRODUCTOR DE TUTOR LMS */
