/* ==========================================================================
   PURO LLANO RADIO - PLAYER COMPONENT
   Radio player, controls, visualizer, animations
   ========================================================================== */

/* Player Card */
.player-card {
    background: var(--glass);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(254, 210, 2, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(254, 210, 2, 0.1);
    text-align: center;
    width: 100%;
    max-width: 450px;
    position: relative;
    overflow: hidden;
}

/* Particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatParticle 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatParticle {

    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    50% {
        transform: translateY(-100vh) translateX(20px);
    }
}

/* Main Title */
.radio-main-title {
    font-family: 'Breakers Slab Black', 'Poppins', sans-serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(254, 210, 2, 0.4);
}

/* Separator */
.separator {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 15px 0;
    width: 80%;
    margin: 15px auto;
}

/* Album Art */
.album-art-container {
    margin: 25px 0;
}

#album-art {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(254, 210, 2, 0.2);
    animation: rotate 20s linear infinite;
}

#album-art.paused-anim {
    animation-play-state: paused;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Song Info */
.song-wrapper {
    margin: 20px 0;
    overflow: hidden;
}

#song-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#artist-name {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

/* Audio Visualizer */
#visualizer {
    width: 100%;
    height: 80px;
    margin: 20px 0;
    display: block;
}

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
}

.dot-online {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 10px #2ecc71;
    animation: pulse 2s ease-in-out infinite;
}

.dot-offline {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e74c3c;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

#status-text {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Play Button with Ripple Effect */
.play-btn {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fed202 0%, #ffb700 100%);
    border: none;
    color: #1a1108;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(254, 210, 2, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    margin: 20px auto;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(254, 210, 2, 0.6);
}

.play-btn:active {
    transform: scale(0.95);
}

.play-btn .ripple-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(254, 210, 2, 0.3);
    animation: rippleWave 1.5s ease-out infinite;
    pointer-events: none;
}

.play-btn .ripple-wave:nth-child(2) {
    animation-delay: 0.5s;
}

.play-btn .ripple-wave:nth-child(3) {
    animation-delay: 1s;
}

@keyframes rippleWave {
    0% {
        width: 80px;
        height: 80px;
        opacity: 0.8;
        border-width: 2px;
    }

    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
        border-width: 1px;
    }
}

.play-btn.playing .ripple-wave {
    animation-play-state: running;
}

.play-btn:not(.playing) .ripple-wave {
    animation-play-state: paused;
}

.play-btn.play-pulse {
    animation: playPulse 2s ease-in-out infinite;
}

@keyframes playPulse {

    0%,
    100% {
        box-shadow: 0 10px 30px rgba(254, 210, 2, 0.4);
    }

    50% {
        box-shadow: 0 10px 50px rgba(254, 210, 2, 0.8);
    }
}

/* Volume Controls */
.volume-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.volume-wrapper i {
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.volume-wrapper i:hover {
    transform: scale(1.2);
}

#volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 150px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
    position: relative;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(254, 210, 2, 0.4);
    transition: all 0.3s ease;
}

#volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 12px rgba(254, 210, 2, 0.6);
}

#volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(254, 210, 2, 0.4);
    transition: all 0.3s ease;
}

#volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 12px rgba(254, 210, 2, 0.6);
}

/* Loading Spinner */
.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(254, 210, 2, 0.3);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Marquee Animation for Long Song Titles */
.marquee-active {
    display: inline-block;
    animation: marquee 10s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.updating-text {
    animation: textFade 0.5s ease-in-out;
}

@keyframes textFade {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .player-card {
        padding: 30px 20px;
    }

    .radio-main-title {
        font-size: 1.5rem;
    }

    #album-art {
        width: 180px;
        height: 180px;
    }

    .play-btn {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .player-card {
        padding: 25px 15px;
    }

    .radio-main-title {
        font-size: 1.3rem;
    }

    #album-art {
        width: 150px;
        height: 150px;
    }

    #volume-slider {
        width: 120px;
    }
}