/* =========================================================
   REPRODUCTOR MULTIMEDIA UNACAR
========================================================= */

.reproductor {
    --player-blue: #003b71;
    --player-blue-dark: #00284d;
    --player-gold: #d4af37;
    --player-dark: #081421;
    --player-panel: #102235;

    width: 100%;
    max-width: 1280px;
    margin: 50px auto;
    padding: 20px;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 0;
    border-radius: 22px;
    overflow: hidden;
    background: var(--player-dark);
    box-shadow: 0 25px 60px rgba(0, 0, 0, .25);
}

.reproductor__checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* =========================================================
   REPRODUCTOR YOUTUBE - TAMAÑO CORRECTO
========================================================= */

.reproductor__frame {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: auto;
    background: #000;
    overflow: hidden;
}

/* Contenedor responsivo 16:9 */
.reproductor__youtube {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
    height: auto;
    background: #000;
}

/* Iframe ocupa toda la pantalla */
.reproductor__youtube iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
}

/* Evitar reglas anteriores */
.reproductor__video {
    display: none;
}

/* =========================================================
   INFORMACIÓN DEL VIDEO
========================================================= */

.reproductor__info {
    position: absolute;
    z-index: 10;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 60px 30px 25px;
    color: #fff;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, .85),
        transparent
    );
}

/* =========================================================
   ESCRITORIO
========================================================= */

@media (min-width: 992px) {

    .reproductor {
        grid-template-columns: minmax(0, 1fr) 330px;
        align-items: stretch;
    }

    .reproductor__frame {
        height: auto;
    }

    .reproductor__youtube {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {

    .reproductor {
        grid-template-columns: 1fr;
    }

    .reproductor__youtube {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

}

/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 767.98px) {

    .reproductor {
        width: 100%;
        padding: 0;
    }

    .reproductor__frame {
        width: 100%;
    }

    .reproductor__youtube {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .reproductor__youtube iframe {
        width: 100%;
        height: 100%;
    }

    .reproductor__info {
        padding: 40px 20px 18px;
    }

}

/* =========================================================
   BOTÓN PLAY
========================================================= */

.reproductor__frame--play {
    position: absolute;
    z-index: 4;
    top: 50%;
    left: 50%;
    width: 76px;
    height: 76px;
    transform: translate(-50%, -50%);
    border: 0;
    border-radius: 50%;
    background: var(--player-gold);
    color: var(--player-dark);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    transition: .3s ease;
}

.reproductor__frame--play:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #fff;
}

.reproductor__frame--play i {
    margin-left: 4px;
}

/* =========================================================
   INFORMACIÓN DEL VIDEO
========================================================= */

.reproductor__info {
    position: absolute;
    z-index: 3;
    left: 35px;
    right: 35px;
    bottom: 30px;
    color: #fff;
}

.reproductor__categoria {
    display: inline-block;
    padding: 6px 13px;
    margin-bottom: 10px;
    border-radius: 50px;
    background: var(--player-gold);
    color: #111;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.reproductor__info h2 {
    margin: 0;
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 800;
}

/* =========================================================
   BOTÓN PARA ABRIR MINIATURAS EN MÓVIL
========================================================= */

.reproductor__frame--label {
    display: none;
    position: absolute;
    z-index: 10;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--player-blue);
    cursor: pointer;
}

.reproductor__frame--label::before {
    content: "☰";
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

/* =========================================================
   LISTA DE MINIATURAS
========================================================= */

.reproductor__thumbs {
    background: var(--player-panel);
    color: #fff;
    overflow-y: auto;
    max-height: 560px;
}

.reproductor__thumbs-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.reproductor__thumbs-header h3 {
    margin: 0 0 5px;
    font-size: 1rem;
    font-weight: 700;
}

.reproductor__thumbs-header h3 i {
    color: var(--player-gold);
}

.reproductor__thumbs-header span {
    color: rgba(255, 255, 255, .55);
    font-size: .8rem;
}

.lista {
    list-style: none;
    margin: 0;
    padding: 10px;
}

/* =========================================================
   ELEMENTO DE VIDEO
========================================================= */

.lista__item {
    width: 100%;
    display: flex;
    gap: 12px;
    padding: 10px;
    margin-bottom: 4px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: .25s ease;
}

.lista__item:hover,
.lista__item.activo {
    background: rgba(255, 255, 255, .09);
}

.lista__item.activo {
    border-left: 3px solid var(--player-gold);
}

.lista__miniatura {
    position: relative;
    flex: 0 0 105px;
    height: 65px;
    overflow: hidden;
    border-radius: 7px;
    background: #000;
}

.lista__miniatura img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lista__duracion {
    position: absolute;
    right: 4px;
    bottom: 4px;
    padding: 2px 5px;
    border-radius: 4px;
    background: rgba(0, 0, 0, .8);
    color: #fff;
    font-size: .65rem;
}

.lista__contenido {
    min-width: 0;
    flex: 1;
}

.lista__titulo {
    display: block;
    margin-bottom: 5px;
    overflow: hidden;
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.35;
}

.lista__categoria {
    color: var(--player-gold);
    font-size: .7rem;
}

/* =========================================================
   SCROLLBAR
========================================================= */

.reproductor__thumbs::-webkit-scrollbar {
    width: 7px;
}

.reproductor__thumbs::-webkit-scrollbar-thumb {
    background: var(--player-blue);
    border-radius: 10px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991.98px) {

    .reproductor {
        grid-template-columns: 1fr;
    }

    .reproductor__frame,
    .reproductor__video {
        min-height: 480px;
    }

    .reproductor__thumbs {
        max-height: 320px;
    }

}

@media (max-width: 767.98px) {

    .reproductor {
        padding: 0;
        margin: 25px 0;
        border-radius: 0;
    }

    .reproductor__frame,
    .reproductor__video {
        min-height: auto;
        aspect-ratio: 16 / 9;
    }

    .reproductor__frame--label {
        display: block;
    }

    .reproductor__thumbs {
        display: none;
        max-height: 400px;
    }

    .reproductor__checkbox:checked
    ~ .reproductor__thumbs {
        display: block;
    }

    .reproductor__frame--play {
        width: 58px;
        height: 58px;
        font-size: 1.5rem;
    }

    .reproductor__info {
        left: 20px;
        right: 20px;
        bottom: 18px;
    }

}

@media (max-width: 480px) {

    .lista__miniatura {
        flex-basis: 95px;
        height: 60px;
    }

    .reproductor__info h2 {
        font-size: 1.1rem;
    }
	
	/* =========================================================
   REPRODUCTOR YOUTUBE
========================================================= */

.reproductor__youtube {
    width: 100%;
    height: 100%;
    min-height: 560px;
    background: #000;
}

.reproductor__youtube iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 560px;
    border: 0;
}

/* Elimina el gradiente que puede quedar encima del iframe */
.reproductor__frame::after {
    display: none;
}

/* Información debajo/sobre el video */
.reproductor__info {
    position: absolute;
    z-index: 5;
    left: 30px;
    right: 30px;
    bottom: 25px;
    padding: 20px;
    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, .85)
    );
    pointer-events: none;
}

@media (max-width: 991.98px) {

    .reproductor__youtube,
    .reproductor__youtube iframe {
        min-height: 480px;
    }

}

@media (max-width: 767.98px) {

    .reproductor__youtube,
    .reproductor__youtube iframe {
        min-height: auto;
        height: 100%;
    }

}

}