/* Floating Radio Player Styles & Animations */
.radio-player-bar {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 1100px;
    height: 68px;
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    z-index: 99999;
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    user-select: none;
    box-sizing: border-box;
    animation: radioEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes radioEntrance {
    0% {
        opacity: 0;
        transform: translate(-50%, 80px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}

/* Ambient glow when playing */
.radio-player-bar.is-playing {
    border-color: rgba(29, 185, 84, 0.5);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(29, 185, 84, 0.3);
}

/* Play Button Wrapper & Animations */
.radio-play-section {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
}

.radio-play-btn {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #1db954;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    padding: 0;
}

.radio-play-btn:hover {
    transform: scale(1.08);
    background-color: rgba(29, 185, 84, 0.2);
    border-color: #22c55e;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

.radio-play-btn.playing {
    background: rgba(29, 185, 84, 0.15);
    animation: playBtnPulse 2s infinite ease-in-out;
}

@keyframes playBtnPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(29, 185, 84, 0.7);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(29, 185, 84, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(29, 185, 84, 0);
    }
}

.radio-play-btn svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
    margin-left: 2px;
    transition: transform 0.2s ease;
}

.radio-play-btn.playing svg {
    margin-left: 0;
}

/* Station Details */
.radio-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 200px;
}

.radio-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.radio-subtitle {
    font-size: 12px;
    color: #a7a7a7;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Cover Art */
.radio-cover-container {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.radio-cover {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background-color: #222;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.radio-player-bar.is-playing .radio-cover {
    animation: coverRotatePulse 4s infinite alternate ease-in-out;
}

@keyframes coverRotatePulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* Center Section: Equalizer & Timer */
.radio-center-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0 20px;
}

.radio-live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 59, 48, 0.15);
    border: 1px solid rgba(255, 59, 48, 0.35);
    color: #ff453a;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.radio-live-dot {
    width: 7px;
    height: 7px;
    background-color: #ff453a;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px #ff453a;
}

.radio-player-bar.is-playing .radio-live-dot {
    animation: radioPulse 1.2s infinite;
}

@keyframes radioPulse {
    0% { opacity: 1; transform: scale(1); box-shadow: 0 0 6px #ff453a; }
    50% { opacity: 0.3; transform: scale(0.85); box-shadow: 0 0 2px #ff453a; }
    100% { opacity: 1; transform: scale(1); box-shadow: 0 0 6px #ff453a; }
}

.radio-timer {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    font-weight: 600;
    color: #e0e0e0;
    min-width: 45px;
    text-align: center;
    letter-spacing: 1px;
}

/* Dynamic Equalizer */
.radio-equalizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
}

.radio-equalizer-bar {
    width: 3px;
    height: 4px;
    background: linear-gradient(to top, #1db954, #22c55e);
    border-radius: 2px;
    transition: height 0.2s ease;
}

.radio-player-bar.is-playing .radio-equalizer-bar {
    animation: radioEq 1s infinite ease-in-out alternate;
}

.radio-player-bar.is-playing .radio-equalizer-bar:nth-child(1) { animation-duration: 0.8s; animation-delay: 0.1s; }
.radio-player-bar.is-playing .radio-equalizer-bar:nth-child(2) { animation-duration: 1.1s; animation-delay: 0.3s; }
.radio-player-bar.is-playing .radio-equalizer-bar:nth-child(3) { animation-duration: 0.9s; animation-delay: 0.2s; }
.radio-player-bar.is-playing .radio-equalizer-bar:nth-child(4) { animation-duration: 1.2s; animation-delay: 0.4s; }
.radio-player-bar.is-playing .radio-equalizer-bar:nth-child(5) { animation-duration: 0.7s; animation-delay: 0.15s; }

@keyframes radioEq {
    0% { height: 4px; }
    50% { height: 12px; }
    100% { height: 20px; }
}

/* Controls */
.radio-controls-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.radio-volume-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-volume-btn {
    background: transparent;
    border: none;
    color: #b3b3b3;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.radio-volume-btn:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.radio-volume-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.radio-volume-slider-wrapper {
    width: 80px;
    display: flex;
    align-items: center;
}

.radio-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #404040;
    outline: none;
    cursor: pointer;
}

.radio-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.radio-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #1db954;
}

/* ========================================================= */
/* TV EN VIVO Styles & Animated Card Badge                   */
/* ========================================================= */
.tv-live-header-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
    color: #ffffff !important;
    padding: 8px 22px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(229, 9, 20, 0.5);
    margin-bottom: 25px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    animation: tvBadgeGlow 2.5s infinite alternate;
}

.tv-live-header-banner:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 28px rgba(229, 9, 20, 0.7);
    color: #ffffff !important;
}

@keyframes tvBadgeGlow {
    0% { box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4); }
    100% { box-shadow: 0 6px 28px rgba(229, 9, 20, 0.85); }
}

.tv-live-red-dot {
    width: 10px;
    height: 10px;
    background-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    animation: redDotPulse 1.2s infinite ease-in-out;
}

@keyframes redDotPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.4; }
    100% { transform: scale(1); opacity: 1; }
}

/* Interactive TV Play Card */
.tv-card-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tv-card-wrapper:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(229, 9, 20, 0.4);
}

.tv-card-wrapper img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    transition: transform 0.4s ease;
}

.tv-card-wrapper:hover img {
    transform: scale(1.05);
}

.tv-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
}

.tv-card-wrapper:hover .tv-play-overlay {
    opacity: 1;
}

.tv-play-icon-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e50914;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.8);
    transition: transform 0.2s ease;
}

.tv-card-wrapper:hover .tv-play-icon-btn {
    transform: scale(1.1);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .radio-player-bar {
        bottom: 10px;
        width: calc(100% - 20px);
        height: 62px;
        padding: 0 12px;
    }

    .radio-center-section {
        padding: 0 8px;
    }

    .radio-volume-slider-wrapper {
        display: none;
    }

    .radio-subtitle {
        display: none;
    }

    .radio-info {
        max-width: 120px;
    }

    .radio-cover-container {
        padding: 0 6px;
    }

    .radio-cover {
        width: 40px;
        height: 40px;
    }

    .tv-live-header-banner {
        font-size: 13px;
        padding: 6px 16px;
    }
}

@media (max-width: 480px) {
    .radio-live-badge {
        display: none;
    }
}
