/* ==================== COSMIC NOW PLAYING STYLES ==================== */

.now-playing-container {
    position: absolute;
    left: 64%;
    transform: translateX(-50%);
    width: 620px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    top: 13px;
}

.now-playing {
    background: linear-gradient(135deg, rgba(46, 46, 124, 0.95), rgba(20, 20, 40, 0.98));
    padding: 12px 25px 12px 45px;
    border-radius: 15px;
    position: relative;
    display: flex;
    align-items: center;
    min-width: 300px;
    max-width: 350px;
    
    /* Glass effect */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    
    /* Shadow */
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(100, 149, 237, 0.3);
    
    /* Animation */
    animation: cosmicFadeIn 0.5s ease-out;
}

@keyframes cosmicFadeIn {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.now-playing.playing {
    border-color: rgba(0, 200, 255, 0.4);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(0, 200, 255, 0.2),
        inset 0 0 15px rgba(0, 200, 255, 0.1);
}

.now-playing-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff6b6b;
    font-size: 16px;
    z-index: 2;
}

.now-playing.playing .now-playing-icon {
    color: #4ecdc4;
    animation: cosmicPulse 2s infinite;
}

@keyframes cosmicPulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
        text-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
    }
    50% {
        transform: translateY(-50%) scale(1.1);
        text-shadow: 0 0 20px rgba(78, 205, 196, 0.8);
    }
}

.now-playing-text-container {
    width: 240px;
    overflow: hidden;
    position: relative;
    height: 22px;
    display: flex;
    align-items: center;
}

.now-playing-text {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    
    /* Gradient text */
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #ffd166 25%,
        #4ecdc4 50%,
        #ff6b6b 75%,
        #ffffff 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: cosmicShine 3s linear infinite;
}

@keyframes cosmicShine {
    to {
        background-position: 200% center;
    }
}

.now-playing-text.static {
    animation: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
}

.now-playing-text.marquee {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: cosmicMarquee 15s linear infinite;
    animation-delay: 1s;
}

@keyframes cosmicMarquee {
    0% {
        transform: translateX(0);
    }
    5% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.now-playing:hover .now-playing-text.marquee {
    animation-play-state: paused;
}

.now-playing::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #ff6b6b;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.now-playing.playing::after {
    opacity: 1;
    background: #4ecdc4;
    animation: cosmicWave 1.5s ease-in-out infinite;
}

@keyframes cosmicWave {
    0%, 100% {
        box-shadow: 
            0 0 0 0 rgba(78, 205, 196, 0.4),
            0 0 0 0 rgba(78, 205, 196, 0.3);
    }
    50% {
        box-shadow: 
            0 0 0 8px rgba(78, 205, 196, 0),
            0 0 0 16px rgba(78, 205, 196, 0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .now-playing-container {
        position: relative;
        left: auto;
        transform: none;
        width: 100%;
        margin: 10px 0;
        height: auto;
        top: 0;
    }
    
    .now-playing {
        min-width: auto;
        width: 90%;
        max-width: 90%;
        margin: 0 auto;
        padding: 10px 16px 10px 40px;
    }
    
    .now-playing-text-container {
        width: calc(100% - 20px);
        max-width: 220px;
    }
    
    .now-playing-text {
        font-size: 13px;
    }
    
    .now-playing-icon {
        left: 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .now-playing {
        width: 95%;
        padding: 8px 12px 8px 35px;
    }
    
    .now-playing-text-container {
        width: calc(100% - 15px);
        max-width: 180px;
    }
    
    .now-playing-text {
        font-size: 12px;
    }
    
    .now-playing-icon {
        left: 10px;
        font-size: 12px;
    }
}

