/*==================================================
    LA TOXICA RADIO
    PLAYER WEB
    ESTACION DE RADIO
==================================================*/


/*==================================================
    CONTENEDOR PRINCIPAL
==================================================*/

.player-web {

    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    margin: 18px auto;
    padding: 0 20px;

    box-sizing: border-box;
}


/*==================================================
    TARJETA PRINCIPAL
==================================================*/

.player-web-container {

    width: 100%;
    max-width: 850px;

    min-height: 92px;

    margin: 0 auto;

    display: flex;
    align-items: center;

    gap: 24px;

    padding: 16px 24px;

    box-sizing: border-box;

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #050505 0%,
            #0A0A0A 55%,
            #111111 100%
        );

    border: 1px solid rgba(255, 255, 255, 0.10);

    border-radius: 16px;

    box-shadow:
        0 14px 35px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}


/*==================================================
    LENS FLARE
==================================================*/

.player-web-container::before {

    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    top: -125px;
    right: 80px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 212, 0, 0.18) 0%,
            rgba(255, 212, 0, 0.07) 28%,
            rgba(255, 212, 0, 0.02) 48%,
            transparent 72%
        );

    filter: blur(8px);

    pointer-events: none;

    z-index: 0;
}


/*==================================================
    LINEA DE LUZ
==================================================*/

.player-web-container::after {

    content: "";

    position: absolute;

    width: 330px;
    height: 1px;

    top: 28px;
    right: -70px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 212, 0, 0.18),
            rgba(255, 255, 255, 0.10),
            transparent
        );

    transform: rotate(-18deg);

    pointer-events: none;

    z-index: 0;
}


/*==================================================
    INFORMACION
==================================================*/

.player-web-info {

    flex: 1;

    min-width: 0;

    display: flex;
    flex-direction: column;

    justify-content: center;

    gap: 6px;

    position: relative;

    z-index: 2;
}


/*==================================================
    INDICADOR EN VIVO
==================================================*/

.player-web-live {

    width: fit-content;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 4px 9px;

    background: rgba(255, 255, 255, 0.04);

    border: 1px solid rgba(255, 255, 255, 0.09);

    border-radius: 4px;

    color: #FFFFFF;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.4px;

    text-transform: uppercase;
}


/*==================================================
    PUNTO EN VIVO
==================================================*/

.player-web-live-dot {

    width: 6px;
    height: 6px;

    flex: 0 0 6px;

    background: #FF3131;

    border-radius: 50%;

    box-shadow:
        0 0 0 3px rgba(255, 49, 49, 0.08),
        0 0 8px rgba(255, 49, 49, 0.65);

    animation:
        playerWebLivePulse 1.4s infinite;
}


/*==================================================
    ANIMACION LIVE
==================================================*/

@keyframes playerWebLivePulse {

    0%,
    100% {

        opacity: 1;

        transform: scale(1);
    }

    50% {

        opacity: 0.45;

        transform: scale(0.78);
    }
}


/*==================================================
    CANCION
==================================================*/

.player-web-song {

    width: 100%;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    color: #FFFFFF;

    font-size: 18px;

    font-weight: 700;

    line-height: 1.2;

    letter-spacing: 0.2px;
}


/*==================================================
    CONTROLES
==================================================*/

.player-web-controls {

    flex: 0 0 auto;

    display: flex;

    justify-content: center;
    align-items: center;

    position: relative;

    z-index: 2;
}


/*==================================================
    BOTON PLAY
==================================================*/

.player-web-play {

    width: 52px;
    height: 52px;

    display: flex;

    justify-content: center;
    align-items: center;

    border: 1px solid #FFD400;

    border-radius: 50%;

    background: #FFD400;

    color: #050505;

    font-size: 17px;

    cursor: pointer;

    box-shadow:
        0 7px 20px rgba(0, 0, 0, 0.45),
        0 0 0 4px rgba(255, 212, 0, 0.05);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}


/*==================================================
    HOVER
==================================================*/

.player-web-play:hover {

    transform: scale(1.05);

    background: #FFE75A;

    box-shadow:
        0 9px 25px rgba(0, 0, 0, 0.50),
        0 0 0 7px rgba(255, 212, 0, 0.08),
        0 0 20px rgba(255, 212, 0, 0.16);
}


/*==================================================
    ACTIVE
==================================================*/

.player-web-play:active {

    transform: scale(0.95);
}


/*==================================================
    ESTADO REPRODUCIENDO
==================================================*/

.player-web-play.playing {

    background: #FFFFFF;

    border-color: #FFFFFF;

    color: #050505;

    animation:
        playerWebPlaying 1.8s infinite;
}


/*==================================================
    ICONO
==================================================*/

.player-web-play i {

    pointer-events: none;
}


/*==================================================
    EFECTO REPRODUCIENDO
==================================================*/

@keyframes playerWebPlaying {

    0%,
    100% {

        box-shadow:
            0 7px 20px rgba(0, 0, 0, 0.45),
            0 0 0 4px rgba(255, 255, 255, 0.05);
    }

    50% {

        box-shadow:
            0 7px 25px rgba(0, 0, 0, 0.50),
            0 0 0 8px rgba(255, 255, 255, 0.03);
    }
}


/*==================================================
    AUDIO
==================================================*/

#player-web-audio {

    display: none;
}


/*==================================================
    TABLET
==================================================*/

@media (max-width: 900px) {

    .player-web {

        padding: 0 16px;
    }

    .player-web-container {

        max-width: 760px;

        min-height: 88px;

        gap: 20px;

        padding: 14px 20px;
    }

    .player-web-song {

        font-size: 17px;
    }

    .player-web-play {

        width: 50px;
        height: 50px;

        font-size: 16px;
    }
}


/*==================================================
    MOVIL
==================================================*/

@media (max-width: 600px) {

    .player-web {

        margin: 14px auto;

        padding: 0 12px;
    }

    .player-web-container {

        min-height: 86px;

        flex-direction: row;

        gap: 14px;

        padding: 12px 14px;

        border-radius: 14px;

        text-align: left;
    }

    .player-web-info {

        width: auto;

        align-items: flex-start;

        gap: 5px;
    }

    .player-web-live {

        justify-content: flex-start;
    }

    .player-web-song {

        font-size: 15px;

        text-align: left;
    }

    .player-web-controls {

        width: auto;
    }

    .player-web-play {

        width: 48px;
        height: 48px;

        font-size: 15px;
    }
}


/*==================================================
    PANTALLAS MUY PEQUENAS
==================================================*/

@media (max-width: 360px) {

    .player-web-container {

        min-height: 80px;

        padding: 10px 12px;
    }

    .player-web-song {

        font-size: 14px;
    }

    .player-web-play {

        width: 44px;
        height: 44px;

        font-size: 14px;
    }
}


/*==================================================
    ACCESIBILIDAD
==================================================*/

.player-web-play:focus-visible {

    outline: 2px solid #FFFFFF;

    outline-offset: 4px;
}


/*==================================================
    REDUCIR ANIMACIONES
==================================================*/

@media (prefers-reduced-motion: reduce) {

    .player-web-live-dot,
    .player-web-play.playing {

        animation: none;
    }

    .player-web-play {

        transition: none;
    }
}


/*==================================================
    FIN PLAYER WEB
==================================================*/