/* Now Playing Widget Styles */
.now-playing-widget {
    display: flex;
    flex-direction: column;
    background: #1a1a2e;
    border-radius: 10px;
    padding: 15px;
    color: white;
    max-width: 400px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.now-playing-light {
    background: #f0f2f5;
    color: #333;
}

.now-playing-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.now-playing-icon {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    position: relative;
}

.now-playing-icon-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a00e0, #8e2de2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.now-playing-light .now-playing-icon-inner {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
}

.now-playing-equalizer {
    display: flex;
    align-items: flex-end;
    height: 20px;
}

.now-playing-equalizer span {
    width: 3px;
    background-color: white;
    margin: 0 1px;
    height: 5px;
    animation: equalize 1.5s infinite;
}

.now-playing-active .now-playing-equalizer span {
    animation-play-state: running;
}

.now-playing-equalizer span:nth-child(1) { animation-delay: 0.0s; }
.now-playing-equalizer span:nth-child(2) { animation-delay: 0.2s; }
.now-playing-equalizer span:nth-child(3) { animation-delay: 0.4s; }
.now-playing-equalizer span:nth-child(4) { animation-delay: 0.6s; }

@keyframes equalize {
    0%, 100% { height: 5px; }
    50% { height: 15px; }
}

.now-playing-text {
    flex: 1;
    transition: opacity 0.3s ease;
}

.now-playing-text.updated {
    opacity: 0.7;
}

.now-playing-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 5px;
    opacity: 0.7;
}

.now-playing-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.now-playing-artist {
    font-size: 14px;
    margin: 0;
    opacity: 0.8;
}

.now-playing-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.now-playing-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.now-playing-light .now-playing-button {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.now-playing-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.now-playing-light .now-playing-button:hover {
    background: rgba(0, 0, 0, 0.2);
}

.now-playing-button.active {
    background: #4a00e0;
    color: white;
}

.now-playing-light .now-playing-button.active {
    background: #2575fc;
}

.now-playing-error {
    padding: 10px;
    background: #fee2e2;
    color: #b91c1c;
    border-radius: 5px;
    font-size: 14px;
}

.now-playing-debug {
    margin-top: 10px;
    font-size: 10px;
    opacity: 0.6;
    text-align: center;
}