/* =========================================================
   DIVIÉRTETE+ — REPRODUCTOR UNIVERSAL
========================================================= */

:root {
    --azul: #3C78D8;
    --azul-oscuro: #2459A8;
    --azul-claro: #6EA8FE;

    --blanco: #FFFFFF;
    --negro: #111111;
    --gris: #D9D9D9;

    --borde: rgba(255,255,255,.55);

    --sombra:
        0 25px 70px rgba(0,0,0,.20);
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--negro);

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(255,255,255,.90),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 20%,
            rgba(110,168,254,.35),
            transparent 30%
        ),
        radial-gradient(
            circle at 50% 100%,
            rgba(60,120,216,.28),
            transparent 35%
        ),
        var(--gris);
}


/* =========================================================
   FONDO
========================================================= */

.fondo-liquido {
    position: fixed;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.35),
            transparent 35%,
            rgba(60,120,216,.12)
        );

    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);

    z-index: -3;
}

.burbuja {
    position: fixed;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(2px);

    background: rgba(255,255,255,.20);

    border: 1px solid rgba(255,255,255,.35);

    box-shadow:
        inset 0 0 35px rgba(255,255,255,.20),
        0 20px 60px rgba(60,120,216,.12);

    z-index: -2;

    animation:
        flotar
        12s
        ease-in-out
        infinite;
}

.burbuja-uno {
    width: 280px;
    height: 280px;

    top: 12%;
    left: -100px;
}

.burbuja-dos {
    width: 180px;
    height: 180px;

    right: 8%;
    top: 25%;

    animation-delay: -4s;
}

.burbuja-tres {
    width: 320px;
    height: 320px;

    left: 45%;
    bottom: -150px;

    animation-delay: -7s;
}

@keyframes flotar {
    0%,100% {
        transform:
            translateY(0)
            scale(1);
    }

    50% {
        transform:
            translateY(-25px)
            scale(1.04);
    }
}


/* =========================================================
   ENCABEZADO
========================================================= */

.encabezado {
    position: relative;

    width:
        min(
            1400px,
            calc(100% - 40px)
        );

    margin: 20px auto 0;

    padding: 14px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border: 1px solid var(--borde);
    border-radius: 28px;

    background: rgba(255,255,255,.35);

    backdrop-filter:
        blur(30px)
        saturate(150%);

    -webkit-backdrop-filter:
        blur(30px)
        saturate(150%);

    box-shadow: var(--sombra);
}

.logo {
    color: var(--negro);
    text-decoration: none;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 20px;
    font-weight: bold;
}

.marca-diviertete {
    position: absolute;
    left: 50%;

    transform: translateX(-50%);

    color: var(--azul-oscuro);

    font-size: 18px;
    font-weight: 800;

    white-space: nowrap;
}

.boton-regresar {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 17px;

    color: var(--blanco);
    background: var(--azul);

    border:
        1px solid
        rgba(255,255,255,.35);

    border-radius: 18px;

    text-decoration: none;

    font-weight: 700;

    transition: .25s ease;
}

.boton-regresar:hover {
    transform: translateY(-2px);

    background: var(--azul-oscuro);

    box-shadow:
        0 10px 25px
        rgba(36,89,168,.25);
}


/* =========================================================
   CONTENEDOR
========================================================= */

.contenedor-principal {
    width:
        min(
            1400px,
            calc(100% - 40px)
        );

    margin: 30px auto 70px;

    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        370px;

    gap: 25px;
}


/* =========================================================
   REPRODUCTOR
========================================================= */

.cristal-reproductor {
    padding: 10px;

    border:
        1px solid
        var(--borde);

    border-radius: 38px;

    background:
        rgba(255,255,255,.30);

    backdrop-filter:
        blur(30px)
        saturate(150%);

    -webkit-backdrop-filter:
        blur(30px)
        saturate(150%);

    box-shadow: var(--sombra);
}

.video-contenedor {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    border-radius: 30px;

    background: #050505;

    user-select: none;
}


/* =========================================================
   ÚNICO FONDO DEL VIDEO
========================================================= */

.fondo-video {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #050505;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    z-index: 0;

    transition:
        opacity .25s ease,
        visibility .25s ease;
}

.fondo-video.visible {
    opacity: 1;

    visibility: visible;
}

.fondo-video img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;

    user-select: none;

    -webkit-user-drag: none;
}

.fondo-video::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        rgba(0,0,0,.12);

    pointer-events: none;
}


/* =========================================================
   VIDEO
========================================================= */

.video-contenedor video {
    position: relative;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;

    background: transparent;

    z-index: 1;
}


/* =========================================================
   PANTALLA INICIAL
========================================================= */

.pantalla-inicial {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 18px;

    padding: 20px;

    color: white;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            rgba(10,35,75,.58),
            rgba(20,60,120,.30)
        );

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);

    z-index: 4;

    transition:
        opacity .3s ease;
}

.pantalla-inicial.oculto {
    opacity: 0;

    pointer-events: none;
}

.icono-play-grande {
    width: 80px;
    height: 80px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: white;

    background:
        rgba(255,255,255,.18);

    border:
        1px solid
        rgba(255,255,255,.45);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    font-size: 28px;
}


/* =========================================================
   PLAY CENTRAL
========================================================= */

.play-central {
    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%,-50%)
        scale(.9);

    width: 75px;
    height: 75px;

    padding: 0;

    border:
        1px solid
        rgba(255,255,255,.5);

    border-radius: 50%;

    color: white;

    background:
        rgba(60,120,216,.85);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    font-size: 27px;

    cursor: pointer;

    opacity: 0;

    pointer-events: none;

    transition: .25s ease;

    z-index: 8;
}

.video-contenedor:not(.reproduciendo)
.play-central {
    opacity: 1;

    pointer-events: auto;

    transform:
        translate(-50%,-50%)
        scale(1);
}

.play-central:hover {
    transform:
        translate(-50%,-50%)
        scale(1.08);
}


/* =========================================================
   INFORMACIÓN SUPERIOR
========================================================= */

.video-superior {
    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    padding: 25px;

    color: white;

    background:
        linear-gradient(
            rgba(0,0,0,.65),
            transparent
        );

    z-index: 9;

    opacity: 1;

    transform: translateY(0);

    transition:
        opacity .35s ease,
        transform .35s ease;
}

.video-superior.ocultos {
    opacity: 0;

    transform: translateY(-20px);

    pointer-events: none;
}

.video-serie {
    font-weight: 800;
}

.separador {
    margin: 0 8px;

    opacity: .6;
}


/* =========================================================
   LOGO PAUSA FULLSCREEN
========================================================= */

.logo-pausa-fullscreen {
    position: absolute;

    left: 50%;
    top: 50%;

    width:
        min(
            380px,
            50vw
        );

    max-height: 240px;

    display: flex;

    align-items: center;
    justify-content: center;

    transform:
        translate(-50%,-50%)
        scale(.90);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .55s ease,
        transform .55s ease;

    z-index: 14;
}

.logo-pausa-fullscreen.visible {
    opacity: 1;

    visibility: visible;

    transform:
        translate(-50%,-50%)
        scale(1);
}

.logo-pausa-fullscreen img {
    display: block;

    max-width: 100%;
    max-height: 240px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 20px 40px
            rgba(0,0,0,.55)
        );
}


/* =========================================================
   FEEDBACK
========================================================= */

.feedback-reproduccion {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    opacity: 0;

    pointer-events: none;

    z-index: 25;
}

.feedback-icono {
    width: 84px;
    height: 84px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: white;

    background:
        rgba(60,120,216,.82);

    border:
        1px solid
        rgba(255,255,255,.5);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    box-shadow:
        0 15px 45px
        rgba(0,0,0,.35);

    font-size: 28px;
}

.feedback-reproduccion.visible {
    animation:
        feedbackOpacidad
        .75s
        ease forwards;
}

.feedback-reproduccion.visible
.feedback-icono {
    animation:
        feedbackEscala
        .75s
        ease forwards;
}

@keyframes feedbackOpacidad {
    0% {
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    75% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes feedbackEscala {
    0% {
        transform: scale(.72);
    }

    20% {
        transform: scale(1);
    }

    75% {
        transform: scale(1);
    }

    100% {
        transform: scale(.92);
    }
}


/* =========================================================
   CONTROLES
========================================================= */

.controles-video {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 12px 18px 16px;

    color: white;

    background:
        linear-gradient(
            transparent,
            rgba(0,0,0,.88)
        );

    opacity: 0;

    transition:
        opacity .35s ease;

    z-index: 20;
}

.video-contenedor.mostrando-controles
.controles-video {
    opacity: 1;
}

.controles-video.ocultos {
    opacity: 0 !important;

    visibility: hidden;

    pointer-events: none;
}


/* =========================================================
   BARRA DE VIDEO
========================================================= */

.zona-barra {
    width: 100%;

    display: flex;

    align-items: center;

    gap: 12px;

    min-width: 0;
}

.tiempo {
    flex: 0 0 auto;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 48px;

    color:
        rgba(255,255,255,.95);

    font-size: 13px;

    line-height: 1;

    font-variant-numeric:
        tabular-nums;

    white-space: nowrap;
}

.barra-progreso {
    position: relative;

    flex: 1 1 auto;

    width: auto;

    min-width: 40px;

    height: 7px;

    border-radius: 20px;

    background:
        rgba(255,255,255,.27);

    cursor: pointer;

    touch-action: none;

    overflow: visible;
}

.progreso {
    position: absolute;

    left: 0;
    top: 0;

    width: 0%;
    height: 100%;

    border-radius: inherit;

    background:
        var(--azul-claro);

    box-shadow:
        0 0 10px
        rgba(110,168,254,.6);

    pointer-events: none;
}

.controlador-progreso {
    position: absolute;

    left: 0;
    top: 50%;

    width: 16px;
    height: 16px;

    transform:
        translate(-50%,-50%);

    border:
        2px solid
        white;

    border-radius: 50%;

    background:
        var(--azul);

    box-shadow:
        0 2px 12px
        rgba(0,0,0,.45);

    opacity: 1;

    visibility: visible;

    pointer-events: none;

    z-index: 5;

    transition:
        transform .12s ease;
}

.barra-progreso:hover
.controlador-progreso,
.barra-progreso.arrastrando
.controlador-progreso {
    transform:
        translate(-50%,-50%)
        scale(1.15);
}


/* =========================================================
   FULLSCREEN
========================================================= */

.pantalla-separada {
    flex:
        0 0 44px;

    width: 44px;
    height: 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    border:
        1px solid
        rgba(255,255,255,.30);

    border-radius: 50%;

    color: white;

    background:
        rgba(255,255,255,.18);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    cursor: pointer;

    transition: .2s ease;
}

.pantalla-separada:hover {
    transform: scale(1.08);

    background:
        rgba(255,255,255,.30);
}


/* =========================================================
   FILA NORMAL
========================================================= */

.fila-controles {
    margin-top: 9px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;
}

.controles-izquierda,
.controles-derecha {
    display: flex;

    align-items: center;

    gap: 7px;
}

.control {
    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    color: white;

    background:
        rgba(255,255,255,.12);

    border:
        1px solid
        rgba(255,255,255,.20);

    border-radius: 12px;

    cursor: pointer;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition: .2s ease;
}

.control:hover {
    background:
        rgba(255,255,255,.25);

    transform:
        translateY(-1px);
}

.volumen {
    display: flex;

    align-items: center;

    gap: 5px;
}

#volumen {
    width: 75px;

    accent-color:
        var(--azul-claro);
}


/* =========================================================
   MENÚ VELOCIDAD
========================================================= */

.menu-control {
    position: relative;
}

.menu-flotante {
    position: absolute;

    right: 0;
    bottom: 48px;

    width: 120px;

    padding: 8px;

    display: none;

    flex-direction: column;

    gap: 4px;

    background:
        rgba(20,45,85,.90);

    border:
        1px solid
        rgba(255,255,255,.4);

    border-radius: 18px;

    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);

    box-shadow:
        0 15px 35px
        rgba(0,0,0,.3);

    z-index: 50;
}

.menu-flotante.abierto {
    display: flex;
}

.menu-flotante button {
    padding: 9px;

    border: 0;

    border-radius: 11px;

    color: white;

    background: transparent;

    cursor: pointer;
}

.menu-flotante button:hover {
    background:
        rgba(255,255,255,.15);
}


/* =========================================================
   INFORMACIÓN
========================================================= */

.informacion-episodio {
    margin-top: 18px;

    padding: 25px;

    display: flex;

    justify-content: space-between;

    gap: 25px;

    border:
        1px solid
        var(--borde);

    border-radius: 30px;

    background:
        rgba(255,255,255,.35);

    backdrop-filter:
        blur(30px)
        saturate(140%);

    -webkit-backdrop-filter:
        blur(30px)
        saturate(140%);

    box-shadow:
        0 15px 45px
        rgba(0,0,0,.12);
}

.etiquetas {
    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 10px;
}

.etiqueta {
    padding: 5px 10px;

    border-radius: 10px;

    color: white;

    background:
        var(--azul);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;
}

.temporada {
    font-size: 13px;

    opacity: .65;
}

.informacion-episodio h1 {
    margin-bottom: 10px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            25px,
            3vw,
            38px
        );
}

.informacion-episodio p {
    max-width: 750px;

    line-height: 1.6;

    color:
        rgba(17,17,17,.7);
}

.acciones-episodio {
    display: flex;

    align-items: center;

    gap: 10px;
}

.accion {
    padding: 11px 15px;

    display: flex;

    align-items: center;

    gap: 7px;

    border:
        1px solid
        rgba(255,255,255,.6);

    border-radius: 17px;

    background:
        rgba(255,255,255,.35);

    backdrop-filter:
        blur(15px);

    -webkit-backdrop-filter:
        blur(15px);

    cursor: pointer;

    transition: .2s ease;
}

.accion:hover {
    background:
        rgba(255,255,255,.65);

    transform:
        translateY(-2px);
}


/* =========================================================
   EPISODIOS
========================================================= */

.panel-episodios {
    min-height: 0;

    width: 100%;

    padding: 22px;

    border:
        1px solid
        var(--borde);

    border-radius: 32px;

    background:
        rgba(255,255,255,.32);

    backdrop-filter:
        blur(30px)
        saturate(150%);

    -webkit-backdrop-filter:
        blur(30px)
        saturate(150%);

    box-shadow: var(--sombra);

    overflow: hidden;
}

.cabecera-episodios {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 10px;

    padding-bottom: 18px;

    border-bottom:
        1px solid
        rgba(0,0,0,.08);
}

.mini-titulo {
    color: var(--azul);

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 1.5px;
}

.cabecera-episodios h2 {
    margin-top: 5px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 25px;
}

.contador {
    padding: 7px 10px;

    border-radius: 12px;

    background:
        rgba(255,255,255,.4);

    font-size: 11px;

    white-space: nowrap;
}

.lista-episodios {
    margin-top: 15px;

    max-height: 650px;
    min-height: 20px;

    overflow-y: auto;

    padding-right: 5px;
}

.lista-episodios::-webkit-scrollbar {
    width: 5px;
}

.lista-episodios::-webkit-scrollbar-track {
    background: transparent;
}

.lista-episodios::-webkit-scrollbar-thumb {
    border-radius: 10px;

    background:
        rgba(60,120,216,.5);
}


/* =========================================================
   TARJETAS
========================================================= */

.episodio {
    width: 100%;

    margin-bottom: 10px;

    padding: 10px;

    display: flex;

    align-items: center;

    gap: 12px;

    border:
        1px solid
        transparent;

    border-radius: 20px;

    background:
        rgba(255,255,255,.22);

    color: var(--negro);

    cursor: pointer;

    text-align: left;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    appearance: none;
    -webkit-appearance: none;

    transition: .25s ease;
}

.episodio:hover {
    background:
        rgba(255,255,255,.52);

    transform:
        translateX(3px);
}

.episodio.activo {
    background:
        var(--azul);

    color: white;

    border-color:
        rgba(255,255,255,.45);

    box-shadow:
        0 10px 25px
        rgba(60,120,216,.25);
}

.miniatura {
    position: relative;

    flex: 0 0 105px;

    width: 105px;
    height: 65px;

    overflow: hidden;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #2459A8,
            #6EA8FE
        );
}

.miniatura img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.numero-episodio {
    position: absolute;

    left: 7px;
    bottom: 6px;

    padding: 3px 6px;

    border-radius: 7px;

    color: white;

    background:
        rgba(0,0,0,.65);

    font-size: 10px;

    font-weight: 800;
}

.informacion-mini {
    min-width: 0;

    flex: 1;
}

.informacion-mini h3 {
    margin-bottom: 5px;

    font-size: 14px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.informacion-mini p {
    display: -webkit-box;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;

    font-size: 11px;

    line-height: 1.35;

    opacity: .65;
}

.episodio.activo
.informacion-mini p {
    opacity: .85;
}


/* =========================================================
   MODAL
========================================================= */

.modal-siguiente {
    position: fixed;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        rgba(10,25,50,.38);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition: .3s ease;

    z-index: 100;
}

.modal-siguiente.visible {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}

.cristal-siguiente {
    width:
        min(
            480px,
            100%
        );

    padding: 35px;

    border:
        1px solid
        rgba(255,255,255,.65);

    border-radius: 32px;

    color: white;

    background:
        rgba(30,65,120,.72);

    backdrop-filter:
        blur(35px)
        saturate(160%);

    -webkit-backdrop-filter:
        blur(35px)
        saturate(160%);

    box-shadow:
        0 30px 80px
        rgba(0,0,0,.3);
}

.siguiente-label {
    color: #BBD7FF;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 1.5px;
}

.cristal-siguiente h2 {
    margin: 10px 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 30px;
}

.cristal-siguiente p {
    color:
        rgba(255,255,255,.78);

    line-height: 1.5;
}

.acciones-siguiente {
    margin-top: 25px;

    display: flex;

    gap: 10px;
}

.boton-siguiente-principal,
.boton-cerrar-siguiente {
    padding: 12px 18px;

    border-radius: 15px;

    cursor: pointer;

    font-weight: 700;
}

.boton-siguiente-principal {
    border: 0;

    color: white;

    background:
        var(--azul);
}

.boton-cerrar-siguiente {
    border:
        1px solid
        rgba(255,255,255,.35);

    color: white;

    background:
        rgba(255,255,255,.12);
}


/* =========================================================
   LOADER
   ÁTOMO + MINIATURA DE EPISODIO
========================================================= */

.cargando {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 25px;

    color: white;

    background:
        rgba(0,0,0,.42);

    backdrop-filter:
        blur(5px);

    -webkit-backdrop-filter:
        blur(5px);

    z-index: 40;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .25s ease,
        visibility .25s ease;
}

.cargando.visible {
    opacity: 1;

    visibility: visible;
}


/* =========================================================
   CONTENIDO DEL LOADER
========================================================= */

.cargando-contenido {
    position: relative;

    z-index: 2;

    width:
        min(
            100%,
            420px
        );

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 16px;

    text-align: center;
}


/* =========================================================
   TEXTO DEL LOADER
========================================================= */

.texto-cargando {
    display: block;

    width: 100%;

    text-align: center;

    font-size: 14px;

    font-weight: 600;

    line-height: 1.4;

    color:
        rgba(255,255,255,.92);

    text-shadow:
        0 2px 8px
        rgba(0,0,0,.65);
}


/* =========================================================
   BARRA DE CARGA DEL EPISODIO
========================================================= */

.progreso-carga-contenedor {
    position: relative;

    display: block;

    width:
        min(
            260px,
            70%
        );

    height: 3px;

    margin: 0 auto;

    overflow: hidden;

    border-radius: 999px;

    background:
        rgba(255,255,255,.22);

    box-shadow:
        0 0 10px
        rgba(0,0,0,.35);
}

.progreso-carga {
    position: absolute;

    left: 0;
    top: 0;

    width: 0%;

    height: 100%;

    border-radius: inherit;

    background:
        var(--azul-claro);

    box-shadow:
        0 0 9px
        rgba(110,168,254,.95);

    transition:
        width .15s linear;
}


/* =========================================================
   SPINNER / ÁTOMO
========================================================= */

.spinner {
    position: relative;

    width: 90px;
    height: 90px;

    margin: 0 auto;

    flex:
        0 0 90px;

    z-index: 3;
}

.nucleo {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 13px;
    height: 13px;

    transform:
        translate(-50%,-50%);

    border-radius: 50%;

    background: white;

    box-shadow:
        0 0 8px white,
        0 0 18px rgba(110,168,254,.95),
        0 0 34px rgba(60,120,216,.85);

    z-index: 5;

    animation:
        pulsarNucleo
        1.25s
        ease-in-out
        infinite;
}

.orbita {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 84px;
    height: 32px;

    border:
        2px solid
        rgba(110,168,254,.95);

    border-radius: 50%;

    box-shadow:
        0 0 8px
        rgba(110,168,254,.8);

    transform-origin: center;
}

.orbita-a {
    transform:
        translate(-50%,-50%)
        rotate(25deg);

    animation:
        orbitaA
        2.2s
        linear
        infinite;
}

.orbita-b {
    width: 84px;
    height: 32px;

    transform:
        translate(-50%,-50%)
        rotate(-25deg);

    border-color:
        rgba(255,255,255,.82);

    animation:
        orbitaB
        2.8s
        linear
        infinite;
}

.particula {
    position: absolute;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: white;

    box-shadow:
        0 0 8px
        rgba(255,255,255,.9);

    z-index: 4;
}

.particula-a {
    left: 8px;
    top: 19px;

    animation:
        brilloA
        1.4s
        ease-in-out
        infinite;
}

.particula-b {
    right: 7px;
    top: 58px;

    animation:
        brilloB
        1.8s
        ease-in-out
        infinite;
}

.particula-c {
    left: 58px;
    top: 3px;

    animation:
        brilloC
        1.6s
        ease-in-out
        infinite;
}

.particula-d {
    left: 17px;
    bottom: 8px;

    animation:
        brilloD
        2s
        ease-in-out
        infinite;
}

@keyframes orbitaA {
    0% {
        transform:
            translate(-50%,-50%)
            rotate(0deg)
            scaleY(1);
    }

    50% {
        transform:
            translate(-50%,-50%)
            rotate(180deg)
            scaleY(1.35);
    }

    100% {
        transform:
            translate(-50%,-50%)
            rotate(360deg)
            scaleY(1);
    }
}

@keyframes orbitaB {
    0% {
        transform:
            translate(-50%,-50%)
            rotate(360deg)
            scaleY(1);
    }

    50% {
        transform:
            translate(-50%,-50%)
            rotate(180deg)
            scaleY(1.35);
    }

    100% {
        transform:
            translate(-50%,-50%)
            rotate(0deg)
            scaleY(1);
    }
}

@keyframes pulsarNucleo {
    0%,100% {
        transform:
            translate(-50%,-50%)
            scale(.82);
    }

    50% {
        transform:
            translate(-50%,-50%)
            scale(1.2);
    }
}

@keyframes brilloA {
    0%,100% {
        opacity: .2;

        transform:
            scale(.6);
    }

    50% {
        opacity: 1;

        transform:
            scale(1.5);
    }
}

@keyframes brilloB {
    0%,100% {
        opacity: .3;

        transform:
            scale(.6);
    }

    50% {
        opacity: 1;

        transform:
            scale(1.5);
    }
}

@keyframes brilloC {
    0%,100% {
        opacity: .2;

        transform:
            scale(.7);
    }

    50% {
        opacity: 1;

        transform:
            scale(1.4);
    }
}

@keyframes brilloD {
    0%,100% {
        opacity: .25;

        transform:
            scale(.6);
    }

    50% {
        opacity: 1;

        transform:
            scale(1.5);
    }
}


/* =========================================================
   TOAST
========================================================= */

.toast {
    position: fixed;

    left: 50%;
    bottom: 25px;

    transform:
        translate(-50%,20px);

    padding: 12px 18px;

    color: white;

    background:
        rgba(20,45,85,.88);

    border:
        1px solid
        rgba(255,255,255,.25);

    border-radius: 15px;

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    box-shadow:
        0 15px 35px
        rgba(0,0,0,.25);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition: .3s ease;

    z-index: 1000;
}

.toast.visible {
    opacity: 1;

    visibility: visible;

    transform:
        translate(-50%,0);
}


/* =========================================================
   FULLSCREEN ESCRITORIO
========================================================= */

@media (min-width: 769px) {

    .video-contenedor:fullscreen,
    .video-contenedor.modo-pantalla-completa {

        position: fixed;

        inset: 0;

        width: 100vw;
        height: 100vh;

        aspect-ratio: auto;

        border-radius: 0;

        overflow: hidden;

        background: #050505;

        z-index: 99999;
    }

    .video-contenedor:fullscreen
    .fondo-video,
    .video-contenedor.modo-pantalla-completa
    .fondo-video {

        width: 100%;
        height: 100%;
    }

    .video-contenedor:fullscreen video,
    .video-contenedor.modo-pantalla-completa video {

        width: 100%;
        height: 100%;

        object-fit: contain;

        background: transparent;
    }

    .video-contenedor:fullscreen
    .play-central,
    .video-contenedor.modo-pantalla-completa
    .play-central {

        display: none;
    }

    .video-contenedor:fullscreen
    .video-superior,
    .video-contenedor.modo-pantalla-completa
    .video-superior {

        top: 35px;

        left: auto;
        right: 45px;

        padding: 0;

        text-align: right;

        background: none;
    }

    .video-contenedor:fullscreen
    .video-serie,
    .video-contenedor.modo-pantalla-completa
    .video-serie {

        display: block;

        font-size: 31px;
    }

    .video-contenedor:fullscreen
    #videoEpisodio,
    .video-contenedor.modo-pantalla-completa
    #videoEpisodio {

        display: block;

        margin-top: 4px;

        font-size: 18px;

        opacity: .75;
    }

    .video-contenedor:fullscreen
    .separador,
    .video-contenedor.modo-pantalla-completa
    .separador {

        display: none;
    }

    .video-contenedor:fullscreen
    .controles-video,
    .video-contenedor.modo-pantalla-completa
    .controles-video {

        position: absolute;

        left: 50%;
        right: auto;
        bottom: 30px;

        width:
            calc(100% - 70px);

        max-width: 1500px;

        padding: 15px 20px;

        transform:
            translateX(-50%);

        background:
            rgba(255,255,255,.12);

        border:
            1px solid
            rgba(255,255,255,.28);

        border-radius: 28px;

        backdrop-filter:
            blur(24px)
            saturate(145%);

        -webkit-backdrop-filter:
            blur(24px)
            saturate(145%);

        box-shadow:
            0 20px 60px
            rgba(0,0,0,.4);

        opacity: 1;
    }

    .video-contenedor:fullscreen
    .fila-controles,
    .video-contenedor.modo-pantalla-completa
    .fila-controles {

        display: none !important;
    }

    .video-contenedor:fullscreen
    .zona-barra,
    .video-contenedor.modo-pantalla-completa
    .zona-barra {

        display: flex !important;

        width: 100%;

        align-items: center;

        gap: 14px;
    }

    .video-contenedor:fullscreen
    #tiempoActual,
    .video-contenedor.modo-pantalla-completa
    #tiempoActual {

        display: inline-flex !important;

        min-width: 52px;

        color: white;

        font-size: 14px;

        opacity: 1;
        visibility: visible;
    }

    .video-contenedor:fullscreen
    #tiempoRestante,
    .video-contenedor.modo-pantalla-completa
    #tiempoRestante {

        display: inline-flex !important;

        min-width: 60px;

        color: white;

        font-size: 14px;

        opacity: 1;
        visibility: visible;
    }

    .video-contenedor:fullscreen
    .barra-progreso,
    .video-contenedor.modo-pantalla-completa
    .barra-progreso {

        display: block !important;

        flex: 1 1 auto;

        width: auto;

        min-width: 100px;

        height: 8px;

        opacity: 1;
        visibility: visible;
    }

    .video-contenedor:fullscreen
    .progreso,
    .video-contenedor.modo-pantalla-completa
    .progreso {

        display: block;

        background: white;

        box-shadow: none;
    }

    .video-contenedor:fullscreen
    .controlador-progreso,
    .video-contenedor.modo-pantalla-completa
    .controlador-progreso {

        display: block !important;

        width: 17px;
        height: 17px;

        opacity: 1 !important;
        visibility: visible !important;

        background:
            var(--azul);

        border:
            2px solid
            white;

        box-shadow:
            0 2px 14px
            rgba(0,0,0,.5);
    }

    .video-contenedor:fullscreen
    .pantalla-separada,
    .video-contenedor.modo-pantalla-completa
    .pantalla-separada {

        display: flex !important;

        width: 46px;
        height: 46px;

        flex: 0 0 46px;

        opacity: 1 !important;
        visibility: visible !important;
    }

    .video-contenedor:fullscreen
    .controles-video.ocultos,
    .video-contenedor.modo-pantalla-completa
    .controles-video.ocultos {

        opacity: 0 !important;

        visibility: hidden;

        pointer-events: none;
    }

    .video-contenedor:fullscreen
    .video-superior.ocultos,
    .video-contenedor.modo-pantalla-completa
    .video-superior.ocultos {

        opacity: 0 !important;

        visibility: hidden;

        pointer-events: none;
    }

    .video-contenedor:fullscreen
    .logo-pausa-fullscreen,
    .video-contenedor.modo-pantalla-completa
    .logo-pausa-fullscreen {

        display: flex;
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .contenedor-principal {
        grid-template-columns: 1fr;
    }

    .lista-episodios {
        display: grid;

        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            );

        gap: 10px;
    }

    .episodio {
        margin-bottom: 0;
    }
}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 700px) {

    .encabezado {
        width:
            calc(100% - 20px);

        margin-top: 10px;
    }

    .logo {
        font-size: 15px;
    }

    .marca-diviertete {
        font-size: 15px;
    }

    .boton-regresar {
        padding: 9px 12px;
    }

    .boton-regresar span:last-child {
        display: none;
    }

    .contenedor-principal {
        width:
            calc(100% - 20px);

        margin-top: 20px;
    }

    .cristal-reproductor {
        padding: 6px;

        border-radius: 25px;
    }

    .video-contenedor {
        border-radius: 21px;
    }

    .informacion-episodio {
        padding: 18px;

        flex-direction: column;
    }

    .acciones-episodio {
        width: 100%;
    }

    .accion {
        flex: 1;

        justify-content: center;
    }

    .lista-episodios {
        display: grid;

        grid-template-columns: 1fr;
    }

    .volumen input {
        display: none;
    }

    .control {
        width: 32px;
        height: 32px;
    }

    .tiempo {
        font-size: 10px;

        min-width: 36px;
    }

    .pantalla-separada {
        width: 36px;
        height: 36px;

        flex: 0 0 36px;
    }

    .progreso-carga-contenedor {
        width: 70%;
    }
}


/* =========================================================
   FULLSCREEN MÓVIL
========================================================= */

@media (max-width: 768px) {

    .video-contenedor:fullscreen {

        width: 100vw;
        height: 100dvh;

        border-radius: 0;

        background: #050505;

        display: flex;

        align-items: center;
        justify-content: center;
    }

    .video-contenedor:fullscreen video {

        width: 100%;
        height: 100%;

        object-fit: contain;

        background: transparent;
    }

    .video-contenedor:fullscreen
    .play-central {

        display: none;
    }

    .video-contenedor:fullscreen
    .controles-video {

        bottom: 0;

        padding:
            10px
            max(10px, env(safe-area-inset-right))
            max(14px, env(safe-area-inset-bottom))
            max(10px, env(safe-area-inset-left));

        background:
            linear-gradient(
                transparent,
                rgba(0,0,0,.90)
            );
    }

    .video-contenedor:fullscreen
    .fila-controles {

        display: flex;

        margin-top: 8px;
    }

    .video-contenedor:fullscreen
    .zona-barra {

        gap: 7px;
    }

    .video-contenedor:fullscreen
    .video-superior {

        top:
            max(
                15px,
                env(safe-area-inset-top)
            );

        right: 18px;

        padding: 12px;

        font-size: 13px;
    }

    .video-contenedor:fullscreen
    .video-serie {

        font-size: 18px;
    }

    .video-contenedor:fullscreen
    .pantalla-separada {

        width: 38px;
        height: 38px;

        flex: 0 0 38px;
    }

    .video-contenedor:fullscreen
    .tiempo {

        font-size: 10px;

        min-width: 35px;
    }

    .video-contenedor:fullscreen
    .logo-pausa-fullscreen {

        width:
            min(
                65vw,
                300px
            );
    }
}


/* =========================================================
   MÓVIL PEQUEÑO
========================================================= */

@media (max-width: 480px) {

    .encabezado {
        padding: 10px 12px;
    }

    .logo {
        display: none;
    }

    .marca-diviertete {
        position: static;

        transform: none;

        margin: auto;

        font-size: 14px;
    }

    .video-superior {
        padding: 15px;

        font-size: 12px;
    }

    .controles-video {
        padding: 10px;
    }

    .controlador-progreso {
        width: 13px;
        height: 13px;
    }

    .control {
        width: 29px;
        height: 29px;

        border-radius: 9px;

        font-size: 12px;
    }

    .tiempo {
        font-size: 9px;

        min-width: 32px;
    }

    .informacion-episodio h1 {
        font-size: 25px;
    }

    .cristal-siguiente {
        padding: 25px;
    }

    .spinner {
        width: 70px;
        height: 70px;

        flex-basis: 70px;
    }

    .progreso-carga-contenedor {
        width: 75%;

        height: 3px;
    }
}


/* =========================================================
   REDUCIR MOVIMIENTO
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .burbuja,
    .nucleo,
    .orbita,
    .particula,
    .feedback-reproduccion.visible,
    .feedback-reproduccion.visible
    .feedback-icono {

        animation: none;
    }

    * {
        scroll-behavior: auto !important;

        transition-duration:
            .01ms !important;
    }
}