/* =========================================================
   LOUDER Â· PERSISTENT RADIO 2.3
   ========================================================= */

/*
 * El player original de SoftLab sigue existiendo Ãºnicamente como fuente
 * de metadata/portada, pero queda totalmente fuera del Ã¡rea visible.
 */
.radio_player,
.radio-player-1.fullwidth.position-bottom,
.radio-player.radio-player-1.full-width.position-bottom,
.radio-player-1.full-width.position-bottom {
    position: fixed !important;
    left: -99999px !important;
    bottom: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 1px !important;
    min-height: 1px !important;
    max-width: 1px !important;
    max-height: 1px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    overflow: hidden !important;
    z-index: -1 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Espacio reservado para que el player flotante no tape contenido. */
html {
    scroll-padding-bottom: 112px;
}

body {
    padding-bottom: 106px !important;
}

#ajaxpress-persist {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: none !important;
}

#ajaxpress-persist [data-ajaxpress-lifted],
#ajaxpress-persist [data-persist-key="louder-live-radio"] {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: none !important;
}

#ajaxpress-persist #persistent-louder-radio {
    pointer-events: auto !important;
}

/* ---------- contenedor ---------- */

.lpr-player {
    --lpr-lime: #d7ff16;
    --lpr-lime-soft: rgba(215,255,22,.14);
    --lpr-red: #ff3044;
    --lpr-bg: rgba(10,10,11,.95);
    --lpr-border: rgba(255,255,255,.07);
    --lpr-muted: rgba(255,255,255,.58);

    box-sizing: border-box;
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: 14px !important;
    transform: translateX(-50%);
    width: min(calc(100vw - 28px), 1180px) !important;
    min-height: 84px;
    z-index: 2147483000 !important;

    display: flex;
    align-items: center;
    gap: 15px;

    padding:
        13px 17px
        calc(13px + env(safe-area-inset-bottom))
        17px;

    border: 1px solid var(--lpr-border);
    border-radius: 24px;

    background:
        radial-gradient(circle at 12% 0%,
            rgba(215,255,22,.055),
            transparent 28%),
        linear-gradient(135deg,
            rgba(9,9,10,.97),
            rgba(18,18,19,.95));

    color: #fff;

    font-family:
        "SF Pro Display",
        "SF Pro Text",
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    box-shadow:
        0 22px 60px rgba(0,0,0,.34),
        0 4px 18px rgba(0,0,0,.18),
        0 0 0 1px rgba(255,255,255,.025) inset;

    backdrop-filter: blur(24px) saturate(130%);
    -webkit-backdrop-filter: blur(24px) saturate(130%);
    pointer-events: auto !important;
    overflow: hidden;
    isolation: isolate;
}

.lpr-player::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
        linear-gradient(90deg,
            rgba(255,255,255,.04),
            transparent 24%,
            transparent 76%,
            rgba(255,255,255,.025));
    z-index: -1;
}

.lpr-player *,
.lpr-player *::before,
.lpr-player *::after {
    box-sizing: border-box;
}

/* ---------- portada ---------- */

.lpr-art-wrap {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    overflow: hidden;
    position: relative;
    border-radius: 17px;
    background: #111;
    box-shadow:
        0 8px 24px rgba(0,0,0,.24),
        0 0 0 1px rgba(255,255,255,.08) inset;
}

.lpr-art,
.lpr-art-fallback {
    width: 100%;
    height: 100%;
}

.lpr-art {
    display: block;
    object-fit: cover;
    transform: scale(1.001);
}

.lpr-art[hidden] {
    display: none;
}

.lpr-art-fallback {
    display: grid;
    place-items: center;
    background:
        linear-gradient(145deg, #111 0%, #1b1b1b 100%);
    color: var(--lpr-lime);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: -.04em;
}

.lpr-art-fallback[hidden] {
    display: none;
}

/* ---------- informaciÃ³n ---------- */

.lpr-main {
    min-width: 0;
    flex: 1 1 auto;
    line-height: 1.12;
}

.lpr-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
}

.lpr-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 14px;
}

.lpr-brand strong {
    color: var(--lpr-lime);
    font-weight: 760;
    letter-spacing: -.018em;
}

.lpr-live {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px 3px;
    border-radius: 999px;
    background: var(--lpr-red);
    color: #fff;
    font-size: 9px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: .07em;
}

/* mini ecualizador */
.lpr-eq {
    width: 17px;
    height: 14px;
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    opacity: .54;
}

.lpr-eq i {
    display: block;
    width: 2px;
    min-height: 3px;
    border-radius: 999px;
    background: var(--lpr-lime);
    transform-origin: bottom;
}

.lpr-eq i:nth-child(1) { height: 5px; }
.lpr-eq i:nth-child(2) { height: 10px; }
.lpr-eq i:nth-child(3) { height: 7px; }

.lpr-player.is-playing .lpr-eq {
    opacity: .9;
}

.lpr-player.is-playing .lpr-eq i:nth-child(1) {
    animation: lprEq1 .72s ease-in-out infinite alternate;
}
.lpr-player.is-playing .lpr-eq i:nth-child(2) {
    animation: lprEq2 .54s ease-in-out infinite alternate;
}
.lpr-player.is-playing .lpr-eq i:nth-child(3) {
    animation: lprEq3 .64s ease-in-out infinite alternate;
}

@keyframes lprEq1 {
    from { height: 4px; }
    to   { height: 12px; }
}

@keyframes lprEq2 {
    from { height: 11px; }
    to   { height: 5px; }
}

@keyframes lprEq3 {
    from { height: 6px; }
    to   { height: 13px; }
}

.lpr-state {
    flex: 0 0 auto;
    color: var(--lpr-muted);
    font-size: 11px;
    font-weight: 560;
    white-space: nowrap;
    letter-spacing: .01em;
}

.lpr-track {
    color: #f6f8ec;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.22;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    letter-spacing: -.016em;
    text-wrap: nowrap;
}

.lpr-track.is-loading {
    color: rgba(255,255,255,.58);
    font-weight: 520;
}

/*
 * SeÃ±al de transmisiÃ³n: visual, no representa progreso temporal.
 */
.lpr-signal {
    position: relative;
    height: 2px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.055);
}

.lpr-signal span {
    display: block;
    position: absolute;
    inset: 0;
    width: 42%;
    border-radius: inherit;
    background:
        linear-gradient(90deg,
            transparent,
            rgba(215,255,22,.28),
            var(--lpr-lime),
            rgba(215,255,22,.28),
            transparent);
    transform: translateX(-120%);
    opacity: .32;
}

.lpr-player.is-playing .lpr-signal span {
    animation: lprSignal 3.2s linear infinite;
    opacity: .66;
}

@keyframes lprSignal {
    from { transform: translateX(-120%); }
    to   { transform: translateX(340%); }
}

/* ---------- controles ---------- */

.lpr-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.lpr-play,
.lpr-mute {
    appearance: none;
    -webkit-appearance: none;
    border: 0 !important;
    outline: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
}

.lpr-play {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    background: var(--lpr-lime) !important;
    color: #050505 !important;
    transition:
        transform .16s ease,
        box-shadow .18s ease,
        opacity .16s ease;
    box-shadow:
        0 0 0 1px rgba(215,255,22,.24),
        0 8px 22px rgba(215,255,22,.10) !important;
}

.lpr-player.is-playing .lpr-play {
    box-shadow:
        0 0 0 1px rgba(215,255,22,.30),
        0 0 26px rgba(215,255,22,.14),
        0 8px 22px rgba(0,0,0,.18) !important;
}

.lpr-play:hover {
    transform: translateY(-1px) scale(1.025);
}

.lpr-play:active {
    transform: translateY(0) scale(.97);
}

.lpr-play:focus-visible,
.lpr-mute:focus-visible {
    outline: 2px solid var(--lpr-lime) !important;
    outline-offset: 3px;
}

.lpr-play svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.lpr-icon-pause {
    display: none;
}

.lpr-player.is-playing .lpr-icon-play {
    display: none;
}

.lpr-player.is-playing .lpr-icon-pause {
    display: block;
}

.lpr-volume-wrap {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.042);
    border: 1px solid rgba(255,255,255,.05);
}

.lpr-mute {
    width: 27px;
    height: 27px;
    background: transparent !important;
    color: var(--lpr-lime) !important;
    transition: transform .16s ease, opacity .16s ease;
}

.lpr-mute:hover {
    transform: scale(1.06);
}

.lpr-mute svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.lpr-muted-icon {
    display: none;
}

.lpr-player.is-muted .lpr-volume-icon {
    display: none;
}

.lpr-player.is-muted .lpr-muted-icon {
    display: block;
}

#lpr-volume {
    width: 86px;
    height: 4px;
    accent-color: var(--lpr-lime);
    cursor: pointer;
}

/* ---------- tablet ---------- */

@media (max-width: 900px) {
    .lpr-player {
        width: calc(100vw - 22px) !important;
        min-height: 80px;
        bottom: 11px !important;
        padding-left: 14px;
        padding-right: 14px;
        border-radius: 22px;
    }

    .lpr-volume-wrap {
        padding: 7px 9px;
    }

    #lpr-volume {
        width: 70px;
    }
}

/* ---------- mÃ³vil ---------- */

@media (max-width: 700px) {
    html {
        scroll-padding-bottom: 104px;
    }

    body {
        padding-bottom: 100px !important;
    }

    .lpr-player {
        width: calc(100vw - 16px) !important;
        bottom: 8px !important;
        min-height: 78px;
        gap: 10px;

        padding:
            10px 11px
            calc(10px + env(safe-area-inset-bottom))
            11px;

        border-radius: 21px;
    }

    .lpr-art-wrap {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 14px;
    }

    .lpr-topline {
        margin-bottom: 5px;
    }

    .lpr-brand {
        font-size: 12.5px;
        gap: 6px;
    }

    .lpr-live {
        padding: 3px 6px;
        font-size: 8px;
    }

    .lpr-eq {
        width: 14px;
    }

    .lpr-state {
        display: none;
    }

    .lpr-track {
        font-size: 13.5px;
        line-height: 1.2;
    }

    .lpr-signal {
        margin-top: 8px;
    }

    .lpr-controls {
        gap: 6px;
    }

    .lpr-play {
        width: 39px;
        height: 39px;
        flex-basis: 39px;
    }

    .lpr-play svg {
        width: 19px;
        height: 19px;
    }

    .lpr-volume-wrap {
        padding: 0;
        border: 0;
        background: transparent;
    }

    #lpr-volume {
        display: none;
    }

    .lpr-mute {
        width: 25px;
        height: 25px;
    }

    .lpr-mute svg {
        width: 20px;
        height: 20px;
    }
}

/* ---------- mÃ³vil angosto ---------- */

@media (max-width: 430px) {
    .lpr-player {
        gap: 8px;
        padding-left: 9px;
        padding-right: 9px;
    }

    .lpr-art-wrap {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 13px;
    }

    .lpr-brand strong {
        max-width: 96px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .lpr-live {
        display: none;
    }

    .lpr-track {
        font-size: 13px;
    }

    .lpr-play {
        width: 37px;
        height: 37px;
        flex-basis: 37px;
    }
}

/* Accesibilidad: respetar reducciÃ³n de movimiento. */
@media (prefers-reduced-motion: reduce) {
    .lpr-player *,
    .lpr-player *::before,
    .lpr-player *::after {
        animation: none !important;
        transition: none !important;
    }
}


/* =========================================================
   2.3.2 Â· ARTISTA CLICABLE
   ========================================================= */

.lpr-artist-link,
.lpr-artist-name {
    color: var(--lpr-lime);
    font-weight: 720;
}

.lpr-artist-link {
    text-decoration: none !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 3px;
    transition:
        color .16s ease,
        opacity .16s ease;
}

.lpr-artist-link:hover {
    color: #ffffff;
    text-decoration: underline !important;
}

.lpr-artist-link:focus-visible {
    outline: 2px solid var(--lpr-lime);
    outline-offset: 3px;
    border-radius: 4px;
}

.lpr-track-separator {
    color: rgba(255,255,255,.45);
}

.lpr-song-name {
    color: #f6f8ec;
    font-weight: 620;
}

@media (max-width: 700px) {
    .lpr-artist-link,
    .lpr-artist-name,
    .lpr-song-name {
        font-size: inherit;
    }
}
