/*==================================================*
 * LA TOXICA RADIO
 * PLAYER MOVIL
 * GLASS RADIO APP
 * DISENO PREMIUM
 * ESPECTRO INFERIOR
 *==================================================*/


/*==================================================*
 * BASE
 *==================================================*/

html,
body {
    overflow-x: hidden;
}


/*==================================================*
 * CONTENEDOR
 *==================================================*/

#player-container {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 18px 10px 25px !important;
    box-sizing: border-box !important;
    background: transparent !important;
    overflow: visible !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 20 !important;
}


/*==================================================*
 * PLAYER
 *==================================================*/

#mobile-player {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 20px 18px 24px;
    box-sizing: border-box;
    border-radius: 26px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.10),
            rgba(255, 255, 255, 0.045)
        );

    border:
        1px solid
        rgba(255, 255, 255, 0.18);

    box-shadow:
        0 18px 45px
        rgba(0, 0, 0, 0.28),
        inset 0 1px 0
        rgba(255, 255, 255, 0.12);

    backdrop-filter:
        blur(22px)
        saturate(125%);

    -webkit-backdrop-filter:
        blur(22px)
        saturate(125%);

    overflow: hidden;
    isolation: isolate;
}


/*==================================================*
 * BRILLO SUPERIOR
 *==================================================*/

#mobile-player::before {
    content: "";
    position: absolute;
    top: -70px;
    left: 10%;
    width: 80%;
    height: 130px;

    background:
        radial-gradient(
            ellipse,
            rgba(255, 255, 255, 0.10),
            transparent 70%
        );

    pointer-events: none;
    z-index: 0;
}


/*==================================================*
 * BRILLO INFERIOR
 *==================================================*/

#mobile-player::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -100px;
    width: 320px;
    height: 150px;

    transform:
        translateX(-50%);

    background:
        radial-gradient(
            ellipse,
            rgba(255, 255, 255, 0.035),
            transparent 72%
        );

    pointer-events: none;
    z-index: 0;
}


/*==================================================*
 * PLAYER ENCENDIDO
 *==================================================*/

#mobile-player.playing {
    border-color:
        rgba(255, 255, 255, 0.22);

    box-shadow:
        0 18px 45px
        rgba(0, 0, 0, 0.32),
        inset 0 1px 0
        rgba(255, 255, 255, 0.15);
}


/*==================================================*
 * TARJETA
 *==================================================*/

.player-card {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    z-index: 2;
}


/*==================================================*
 * HEADER LIVE
 *==================================================*/

.player-header {
    position: relative;
    width: 100%;
    height: 30px;
    margin: 0 0 16px;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    z-index: 10;
}


/*==================================================*
 * ETIQUETA EN VIVO
 *==================================================*/

.player-station {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    height: 25px;
    padding: 0 13px;

    box-sizing: border-box;

    background:
        #FFFFFF;

    border-radius: 6px;

    color:
        #081526;

    font-size: 9px;
    font-weight: 900;
    line-height: 25px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}


/*==================================================*
 * PUNTO LIVE
 *==================================================*/

.player-station .player-live-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;

    border-radius: 50%;

    background:
        #FF3131;

    box-shadow:
        0 0 0 3px
        rgba(255, 49, 49, 0.08),
        0 0 9px
        rgba(255, 49, 49, 0.65);

    animation:
        livePulse
        1.15s
        ease-in-out
        infinite;
}


/*==================================================*
 * ANIMACION LIVE
 *==================================================*/

@keyframes livePulse {
    0% {
        opacity: 1;
        transform:
            scale(1);
    }

    50% {
        opacity: 0.35;
        transform:
            scale(0.72);
    }

    100% {
        opacity: 1;
        transform:
            scale(1);
    }
}


/*==================================================*
 * CONTENIDO
 *==================================================*/

.player-content {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    align-items: center;

    box-sizing: border-box;
    z-index: 5;
}


/*==================================================*
 * CARATULA
 *==================================================*/

.player-cover {
    position: relative;

    width:
        min(76vw, 300px);

    height:
        min(76vw, 300px);

    margin:
        0 auto 17px;

    padding: 0;

    flex:
        0 0 auto;

    overflow: hidden;

    border-radius: 20px;

    background:
        rgba(0, 0, 0, 0.15);

    border:
        1px solid
        rgba(255, 255, 255, 0.17);

    box-shadow:
        0 14px 34px
        rgba(0, 0, 0, 0.30);

    z-index: 5;
}


/*==================================================*
 * IMAGEN
 *==================================================*/

.player-cover img {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    object-fit: cover;
    object-position: center;
}


/*==================================================*
 * BRILLO CARATULA
 *==================================================*/

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.10),
            transparent 38%,
            rgba(0, 0, 0, 0.14)
        );

    pointer-events: none;
}


/*==================================================*
 * INFORMACION
 *==================================================*/

.player-info {
    width: 100%;
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
    box-sizing: border-box;

    position: relative;
    z-index: 5;
}


/*==================================================*
 * ETIQUETA PROGRAMA
 *==================================================*/

.player-program-label {
    width: 100%;
    margin: 0 0 6px;
    padding: 0;

    color:
        rgba(255, 255, 255, 0.48);

    font-size: 8px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 1.7px;

    text-transform: uppercase;
    text-align: center;
}


/*==================================================*
 * CANCION
 *==================================================*/

.player-song {
    width: 100%;
    margin: 0 0 8px;
    padding: 0 6px;

    box-sizing: border-box;
    overflow: hidden;
    text-align: center;
}


/*==================================================*
 * TITULO
 *==================================================*/

#song-title {
    display: block;

    width: 100%;
    margin: 0;
    padding: 0;

    color:
        rgba(255, 255, 255, 0.96);

    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.25px;

    text-align: center;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    text-shadow:
        0 2px 8px
        rgba(0, 0, 0, 0.35);
}


/*==================================================*
 * ANIMACION CAMBIO CANCION
 *==================================================*/

.player-song.updated #song-title {
    animation:
        songChange
        0.4s
        ease;
}


@keyframes songChange {
    from {
        opacity: 0;
        transform:
            translateY(4px);
    }

    to {
        opacity: 1;
        transform:
            translateY(0);
    }
}


/*==================================================*
 * ESTADO
 *==================================================*/

.player-status {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    width: 100%;
    margin: 0 0 18px;
    padding: 0;

    color:
        rgba(255, 255, 255, 0.48);

    font-size: 7px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 1.4px;

    text-transform: uppercase;
}


/*==================================================*
 * PUNTO ESTADO
 *==================================================*/

.player-status-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;

    border-radius: 50%;

    background:
        #FF3131;

    box-shadow:
        0 0 7px
        rgba(255, 49, 49, 0.55);
}


/*==================================================*
 * CONTROLES
 *==================================================*/

.player-controls {
    position: relative;

    width: 100%;
    height: 78px;

    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    z-index: 8;
}


/*==================================================*
 * RETROCESO ELIMINADO
 *==================================================*/

.player-rewind {
    display: none !important;
}


/*==================================================*
 * ESPECTRO INFERIOR
 *==================================================*/

.player-equalizer {
    position: absolute;

    left: 0;
    right: 0;
    bottom: -18px;

    width: 100%;
    height: 105px;

    margin: 0;
    padding: 0 8px;

    box-sizing: border-box;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    gap: 2px;

    opacity: 0;

    transform:
        translateY(38px);

    filter:
        blur(4px);

    pointer-events: none;

    z-index: 1;

    transition:
        opacity 0.9s ease,
        transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}


/*==================================================*
 * ESPECTRO ENCENDIDO
 *==================================================*/

#mobile-player.playing .player-equalizer {
    opacity: 0.48;

    transform:
        translateY(0);
}


/*==================================================*
 * BARRAS
 *==================================================*/

.player-equalizer span {
    display: block;

    width: 5px;
    min-width: 2px;
    max-width: 7px;

    height: 30px;

    flex:
        1 1 auto;

    border-radius:
        10px 10px 2px 2px;

    background:
        linear-gradient(
            to top,
            #6A00FF 0%,
            #7C4DFF 18%,
            #00C853 38%,
            #00E676 52%,
            #00B0FF 70%,
            #2979FF 86%,
            #4B0082 100%
        );

    opacity: 0.58;

    transform:
        scaleY(0.18);

    transform-origin:
        bottom center;

    filter:
        blur(3px);

    box-shadow:
        0 0 12px
        rgba(0, 176, 255, 0.32);

    transition:
        transform 0.7s ease,
        opacity 0.7s ease;
}


/*==================================================*
 * MOVIMIENTO DEL ESPECTRO
 *==================================================*/

#mobile-player.playing
.player-equalizer
span {
    animation:
        spectrumMove
        0.34s
        ease-in-out
        infinite
        alternate;
}


/*==================================================*
 * VARIACIONES DE VELOCIDAD
 *==================================================*/

#mobile-player.playing
.player-equalizer
span:nth-child(2n) {
    animation-duration:
        0.28s;
}


#mobile-player.playing
.player-equalizer
span:nth-child(3n) {
    animation-duration:
        0.39s;
}


#mobile-player.playing
.player-equalizer
span:nth-child(4n) {
    animation-duration:
        0.31s;
}


/*==================================================*
 * VARIACIONES DE FASE
 *==================================================*/

#mobile-player.playing
.player-equalizer
span:nth-child(1) {
    animation-delay:
        -0.12s;
}


#mobile-player.playing
.player-equalizer
span:nth-child(2) {
    animation-delay:
        -0.31s;
}


#mobile-player.playing
.player-equalizer
span:nth-child(3) {
    animation-delay:
        -0.06s;
}


#mobile-player.playing
.player-equalizer
span:nth-child(4) {
    animation-delay:
        -0.25s;
}


#mobile-player.playing
.player-equalizer
span:nth-child(5) {
    animation-delay:
        -0.18s;
}


#mobile-player.playing
.player-equalizer
span:nth-child(6) {
    animation-delay:
        -0.36s;
}


#mobile-player.playing
.player-equalizer
span:nth-child(7) {
    animation-delay:
        -0.09s;
}


#mobile-player.playing
.player-equalizer
span:nth-child(8) {
    animation-delay:
        -0.29s;
}


#mobile-player.playing
.player-equalizer
span:nth-child(9) {
    animation-delay:
        -0.15s;
}


#mobile-player.playing
.player-equalizer
span:nth-child(10) {
    animation-delay:
        -0.34s;
}


#mobile-player.playing
.player-equalizer
span:nth-child(11) {
    animation-delay:
        -0.08s;
}


#mobile-player.playing
.player-equalizer
span:nth-child(12) {
    animation-delay:
        -0.27s;
}


/*==================================================*
 * PICOS IRREGULARES - MAS ALTOS
 *==================================================*/

.player-equalizer span:nth-child(1) {
    height: 46px;
}


.player-equalizer span:nth-child(2) {
    height: 78px;
}


.player-equalizer span:nth-child(3) {
    height: 54px;
}


.player-equalizer span:nth-child(4) {
    height: 96px;
}


.player-equalizer span:nth-child(5) {
    height: 64px;
}


.player-equalizer span:nth-child(6) {
    height: 116px;
}


.player-equalizer span:nth-child(7) {
    height: 72px;
}


.player-equalizer span:nth-child(8) {
    height: 90px;
}


.player-equalizer span:nth-child(9) {
    height: 56px;
}


.player-equalizer span:nth-child(10) {
    height: 108px;
}


.player-equalizer span:nth-child(11) {
    height: 68px;
}


.player-equalizer span:nth-child(12) {
    height: 84px;
}


/*==================================================*
 * MOVIMIENTO ESPECTRO
 *==================================================*/

@keyframes spectrumMove {
    0% {
        transform:
            scaleY(0.18);

        opacity:
            0.30;
    }

    20% {
        transform:
            scaleY(0.55);

        opacity:
            0.40;
    }

    40% {
        transform:
            scaleY(1.08);

        opacity:
            0.54;
    }

    60% {
        transform:
            scaleY(0.42);

        opacity:
            0.38;
    }

    80% {
        transform:
            scaleY(1.35);

        opacity:
            0.58;
    }

    100% {
        transform:
            scaleY(0.70);

        opacity:
            0.46;
    }
}


/*==================================================*
 * BOTON POWER ON
 *==================================================*/

.player-play {
    position: absolute !important;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    width: 56px !important;
    height: 56px !important;

    min-width: 56px !important;
    min-height: 56px !important;

    max-width: 56px !important;
    max-height: 56px !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;

    border-radius:
        50% !important;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        rgba(255, 255, 255, 0.13);

    border:
        2px solid
        rgba(255, 255, 255, 0.72);

    color:
        rgba(255, 255, 255, 0.88);

    font-size: 0;
    line-height: 1;

    box-shadow:
        0 8px 22px
        rgba(0, 0, 0, 0.28),
        inset 0 2px 2px
        rgba(255, 255, 255, 0.10),
        inset 0 -3px 5px
        rgba(0, 0, 0, 0.12);

    appearance: none;
    -webkit-appearance: none;

    cursor: pointer;

    z-index: 10;

    transition:
        background 0.22s ease,
        color 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.10s ease;
}


/*==================================================*
 * ICONO POWER
 *==================================================*/

.play-icon {
    position: relative;

    display: block;

    width: 22px;
    height: 22px;

    margin: 0;
    padding: 0;

    border:
        3px solid
        currentColor;

    border-top-color:
        transparent;

    border-radius:
        50%;

    box-sizing: border-box;

    transform: none;

    transition:
        color 0.22s ease,
        filter 0.22s ease,
        transform 0.10s ease;
}


/*==================================================*
 * LINEA CENTRAL POWER
 *==================================================*/

.play-icon::before {
    content: "";

    position: absolute;

    top: -4px;
    left: 50%;

    width: 3px;
    height: 11px;

    transform:
        translateX(-50%);

    border-radius:
        3px;

    background:
        currentColor;
}


/*==================================================*
 * POWER ENCENDIDO
 *==================================================*/

.player-play.playing {
    background:
        #0B3D91;

    color:
        #FFFFFF;

    border:
        1px solid
        rgba(255, 255, 255, 0.98);

    box-shadow:
        0 8px 22px
        rgba(0, 0, 0, 0.34),
        inset 0 2px 2px
        rgba(255, 255, 255, 0.16),
        inset 0 -3px 5px
        rgba(0, 0, 0, 0.18);

    animation:
        none;
}


/*==================================================*
 * TRAZO NEON BLANCO
 *==================================================*/

.player-play.playing .play-icon {
    color:
        #FFFFFF;

    filter:
        drop-shadow(
            0 0 3px
            rgba(255, 255, 255, 0.90)
        );
}


/*==================================================*
 * PRESION FISICA
 *==================================================*/

.player-play:active {
    transform:
        translate(-50%, -50%)
        scale(0.86);

    box-shadow:
        0 3px 8px
        rgba(0, 0, 0, 0.38),
        inset 0 4px 8px
        rgba(0, 0, 0, 0.24),
        inset 0 -1px 2px
        rgba(255, 255, 255, 0.08);
}


/*==================================================*
 * PRESION POWER ENCENDIDO
 *==================================================*/

.player-play.playing:active {
    transform:
        translate(-50%, -50%)
        scale(0.86);

    box-shadow:
        0 3px 8px
        rgba(0, 0, 0, 0.40),
        inset 0 4px 8px
        rgba(0, 0, 0, 0.22);
}


/*==================================================*
 * VOLUMEN OCULTO
 *==================================================*/

.player-volume,
.player-volume-control {
    display:
        none !important;
}


/*==================================================*
 * ESTADO DESACTIVADO
 *==================================================*/

#mobile-player:not(.playing)
.player-status {
    color:
        rgba(255, 255, 255, 0.35);
}


/*==================================================*
 * PLAYER HIDE
 *==================================================*/

#mobile-player.player-hide {
    transform:
        none;

    opacity:
        1;

    pointer-events:
        auto;
}


/*==================================================*
 * PANTALLAS PEQUENAS
 *==================================================*/

@media (max-width: 380px) {

    #player-container {
        padding:
            16px 8px 22px !important;
    }

    #mobile-player {
        padding:
            18px 15px 21px;

        border-radius:
            24px;
    }

    .player-cover {
        width:
            70vw;

        height:
            70vw;

        max-width:
            245px;

        max-height:
            245px;

        margin-bottom:
            15px;
    }

    .player-header {
        margin-bottom:
            14px;
    }

    .player-controls {
        height:
            68px;
    }

    .player-play {
        width:
            54px !important;

        height:
            54px !important;

        min-width:
            54px !important;

        min-height:
            54px !important;

        max-width:
            54px !important;

        max-height:
            54px !important;
    }

    .play-icon {
        width:
            21px;

        height:
            21px;
    }

    .player-equalizer {
        height:
            92px;

        padding:
            0 6px;

        gap:
            2px;
    }
}


/*==================================================*
 * MUY PEQUENAS
 *==================================================*/

@media (max-width: 340px) {

    #mobile-player {
        padding:
            16px 12px 19px;

        border-radius:
            22px;
    }

    .player-cover {
        width:
            64vw;

        height:
            64vw;

        max-width:
            220px;

        max-height:
            220px;
    }

    #song-title {
        font-size:
            11px;
    }

    .player-controls {
        height:
            63px;
    }

    .player-play {
        width:
            51px !important;

        height:
            51px !important;

        min-width:
            51px !important;

        min-height:
            51px !important;

        max-width:
            51px !important;

        max-height:
            51px !important;
    }

    .play-icon {
        width:
            20px;

        height:
            20px;

        border-width:
            3px;
    }

    .play-icon::before {
        width:
            3px;

        height:
            10px;
    }

    .player-equalizer {
        height:
            80px;

        padding:
            0 5px;

        gap:
            2px;
    }
}


/*==================================================*
 * REDUCIR ANIMACIONES
 *==================================================*/

@media (prefers-reduced-motion: reduce) {

    .player-station
    .player-live-dot {
        animation:
            none;
    }

    .player-play.playing {
        animation:
            none;
    }

    #mobile-player.playing
    .player-equalizer
    span {
        animation:
            none;

        transform:
            scaleY(0.70);
    }

    .player-song.updated
    #song-title {
        animation:
            none;
    }
}


/*==================================================*
 * SCROLLBAR
 *==================================================*/

html {
    scrollbar-width:
        none;

    -ms-overflow-style:
        none;
}

html::-webkit-scrollbar {
    width:
        0;

    height:
        0;

    display:
        none;
}

body {
    scrollbar-width:
        none;

    -ms-overflow-style:
        none;
}

body::-webkit-scrollbar {
    width:
        0;

    height:
        0;

    display:
        none;
}