/* La Inmaculada Radio Player - Sticky Bar */
#radio-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #142750;
    border-top: 2px solid #D4A820;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 24px;
    box-shadow: none;
    font-family: 'Lato', sans-serif;
    transition: transform 0.3s ease;
}

#radio-player-bar.rp-hidden {
    transform: translateY(100%);
}

/* Logo / Station */
.rp-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.rp-station-name {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* Song Info */
.rp-song-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.rp-now-playing-label {
    color: #C41230;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.rp-song-title {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rp-artist {
    color: #999999;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Controls */
.rp-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

/* Override Elementor global button styles for ALL player buttons */
#radio-player-bar button,
#radio-player-bar button:hover,
#radio-player-bar button:focus {
    padding: 0 !important;
    border-radius: 0 !important;
    font-size: inherit !important;
    line-height: 1 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

#radio-player-bar #rp-play-btn,
#radio-player-bar #rp-play-btn:hover,
#radio-player-bar #rp-play-btn:focus {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 50% !important;
    background: #C41230 !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.2s, transform 0.1s !important;
    flex-shrink: 0 !important;
    color: #fff !important;
}

#radio-player-bar #rp-play-btn:hover {
    background: #9b0e24 !important;
    transform: scale(1.08) !important;
}

#radio-player-bar #rp-play-btn:active {
    transform: scale(0.96) !important;
}

#radio-player-bar #rp-play-btn svg {
    display: block;
    pointer-events: none;
}

/* Offset óptico del triángulo de play para centrarlo visualmente */
#radio-player-bar #rp-icon-play {
    margin-left: 3px;
}

/* Scroll-to-top button: empujar arriba del reproductor */
.trx_addons_scroll_to_top,
a.go-top,
#go-top,
.back-to-top,
[class*="back-to-top"],
[class*="scroll-top"],
[id*="scroll-top"],
[class*="scrollTop"] {
    bottom: 85px !important;
}

/* Volume */
.rp-volume-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}




/* Live indicator */
.rp-live-dot {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #e53e3e;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    flex-shrink: 0;
}

.rp-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #C41230;
    display: block;
    animation: rp-pulse 1.5s infinite;
}

@keyframes rp-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(229,62,62,0.7); }
    70%  { box-shadow: 0 0 0 8px rgba(229,62,62,0); }
    100% { box-shadow: 0 0 0 0 rgba(229,62,62,0); }
}

/* Toggle arrow button */
#radio-player-bar #rp-toggle-btn,
#radio-player-bar #rp-toggle-btn:hover,
#radio-player-bar #rp-toggle-btn:focus {
    background: rgba(255,255,255,0.15) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    transition: background 0.2s !important;
    color: #fff !important;
}

#radio-player-bar #rp-toggle-btn:hover {
    background: #555 !important;
    border-color: #888 !important;
}

#rp-arrow {
    transition: transform 0.3s ease;
}

/* Collapsed state — bar slides down, only the tab sticks up */
#radio-player-bar.rp-collapsed {
    transform: translateY(calc(100% - 28px));
}

#radio-player-bar.rp-collapsed #rp-arrow {
    transform: rotate(180deg);
}

/* Small tab that stays visible when collapsed */
#radio-player-bar.rp-collapsed #rp-toggle-btn,
#radio-player-bar.rp-collapsed #rp-toggle-btn:hover,
#radio-player-bar.rp-collapsed #rp-toggle-btn:focus {
    position: absolute !important;
    top: -22px !important;
    right: 20px !important;
    background: #e53e3e !important;
    border-color: #e53e3e !important;
    border-radius: 8px 8px 0 0 !important;
    width: 44px !important;
    height: 22px !important;
    min-width: 44px !important;
}

/* Add bottom padding to body so content isn't hidden behind player */
body {
    padding-bottom: 70px !important;
}

#radio-player-bar.rp-collapsed ~ * ,
body:has(#radio-player-bar.rp-collapsed) {
    padding-bottom: 28px !important;
}

/* Mobile */
@media (max-width: 600px) {
    #radio-player-bar {
        padding: 8px 12px;
        gap: 10px;
    }
    .rp-station-name { display: none; }
    .rp-volume-wrap { display: none; }
    .rp-live-dot span:last-child { display: none; }
    .rp-song-title { font-size: 0.8rem; }
}

/* Hide browser/theme range input value tooltip */
#rp-volume::-webkit-slider-thumb::after,
#radio-player-bar input[type=range] + output,
#radio-player-bar input[type=range] ~ output,
#radio-player-bar .trx_addons_range_output,
#radio-player-bar [class*="range"][class*="value"],
#radio-player-bar [class*="range"][class*="output"],
#radio-player-bar [class*="slider"][class*="value"],
#radio-player-bar output {
    display: none !important;
    visibility: hidden !important;
}

/* Custom volume slider (no native range — avoids theme injection) */
.rp-vol-track {
    position: relative;
    width: 80px;
    height: 4px;
    background: rgba(255,255,255,0.25);
    border-radius: 2px;
    cursor: pointer;
    flex-shrink: 0;
}
.rp-vol-fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 80%;
    background: #C41230;
    border-radius: 2px;
    pointer-events: none;
}
.rp-vol-thumb {
    position: absolute;
    top: 50%;
    left: 80%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(0,0,0,.4);
}
