
/* =========================================================
   CATALOGO RADIO PLAYER v1.2
   ========================================================= */

.crp-player {
    width: 100%;
    max-width: 580px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;

    background:
        linear-gradient(
            135deg,
            #18252c 0%,
            #263940 100%
        );

    border:
        1px solid
        rgba(255,255,255,.06);

    border-radius: 22px;

    box-shadow:
        0 16px 45px
        rgba(0,0,0,.20);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: #ffffff;

    position: relative;
    isolation: isolate;
}


/* =========================================================
   ICONO / ECUALIZADOR
   ========================================================= */

.crp-cover {
    width: 64px;
    height: 64px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #13a6b8,
            #63e4df
        );

    box-shadow:
        0 8px 25px
        rgba(19,166,184,.30);
}


.crp-eq {
    height: 28px;

    display: flex;
    align-items: center;

    gap: 4px;
}


.crp-eq span {
    width: 4px;
    height: 10px;

    display: block;

    border-radius: 5px;

    background: #ffffff;
}


.crp-player.is-playing
.crp-eq span {
    animation:
        crpBars
        .8s
        infinite
        ease-in-out;
}


.crp-player.is-playing
.crp-eq span:nth-child(2) {
    animation-delay: .12s;
}


.crp-player.is-playing
.crp-eq span:nth-child(3) {
    animation-delay: .24s;
}


.crp-player.is-playing
.crp-eq span:nth-child(4) {
    animation-delay: .36s;
}


@keyframes crpBars {

    0%,
    100% {
        height: 8px;
    }

    50% {
        height: 27px;
    }
}


/* =========================================================
   INFORMACIÓN
   ========================================================= */

.crp-info {
    flex: 1;
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 3px;
}


.crp-live {
    width: fit-content;

    display: flex;
    align-items: center;

    gap: 6px;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.4px;

    color: #71edf0;
}


.crp-live-dot {
    width: 7px;
    height: 7px;

    display: block;

    border-radius: 50%;

    background: #71edf0;

    animation:
        crpPulse
        1.7s
        infinite;
}


@keyframes crpPulse {

    0% {
        box-shadow:
            0 0 0 0
            rgba(113,237,240,.55);
    }

    70% {
        box-shadow:
            0 0 0 8px
            rgba(113,237,240,0);
    }

    100% {
        box-shadow:
            0 0 0 0
            rgba(113,237,240,0);
    }
}


.crp-title {
    font-size: 17px;
    font-weight: 700;

    line-height: 1.2;
}


.crp-subtitle {
    font-size: 12px;

    color:
        rgba(255,255,255,.56);
}


/* =========================================================
   AHORA SUENA
   ========================================================= */

.crp-now-wrap {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 1px;

    margin-top: 2px;
}


.crp-now-label {
    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.1px;

    color:
        rgba(113,237,240,.78);
}


.crp-now-playing {
    max-width: 100%;
    min-height: 15px;

    font-size: 12px;
    font-weight: 500;

    line-height: 1.25;

    color:
        rgba(255,255,255,.75);

    overflow: hidden;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    word-break: break-word;
}


/* Evita que posibles estilos del widget externo rompan el player */
.crp-now-playing * {
    color: inherit !important;
    font: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
    text-decoration: none !important;
}


/* =========================================================
   BOTÓN PLAY
   ========================================================= */

.crp-play {
    width: 54px;
    height: 54px;

    flex-shrink: 0;

    display: flex !important;
    align-items: center;
    justify-content: center;

    padding: 0 !important;
    margin: 0 !important;

    border: 0 !important;
    border-radius: 50%;

    background: #ffffff !important;
    color: #18252c !important;

    cursor: pointer !important;

    box-shadow:
        0 6px 18px
        rgba(0,0,0,.20);

    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;

    position: relative;
    z-index: 9999;

    pointer-events: auto !important;

    touch-action: manipulation;

    -webkit-tap-highlight-color:
        transparent;
}


.crp-play * {
    pointer-events: none !important;
}


.crp-play:hover {
    transform:
        scale(1.07);

    background:
        #71edf0 !important;

    box-shadow:
        0 8px 24px
        rgba(113,237,240,.25);
}


.crp-play:focus-visible {
    outline:
        3px solid
        rgba(113,237,240,.45);

    outline-offset: 3px;
}


.crp-play-icon {
    font-size: 18px;

    line-height: 1;
}


.crp-player.is-loading
.crp-play-icon {
    animation:
        crpBlink
        .8s
        infinite;
}


@keyframes crpBlink {

    50% {
        opacity: .35;
    }
}


/* =========================================================
   VOLUMEN
   ========================================================= */

.crp-volume {
    display: flex;
    align-items: center;

    gap: 7px;

    position: relative;
    z-index: 20;
}


.crp-volume-icon {
    font-size: 14px;
}


.crp-volume-slider {
    width: 72px;

    cursor: pointer;

    accent-color:
        #63e4df;

    pointer-events:
        auto !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media(max-width:600px) {

    .crp-player {
        gap: 12px;

        padding: 14px;

        border-radius: 18px;
    }


    .crp-cover {
        width: 52px;
        height: 52px;

        border-radius: 14px;
    }


    .crp-title {
        font-size: 15px;
    }


    .crp-now-playing {
        font-size: 11px;
    }


    .crp-play {
        width: 48px;
        height: 48px;
    }


    .crp-volume {
        display: none;
    }

}
