.music-player-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Montserrat', sans-serif;
}

.music-player-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1;
}

.music-player-btn i {
    font-size: 1.2rem;
    color: #333;
}

.music-player-btn:hover {
    transform: scale(1.1);
    background-color: #fff;
}

.music-player-btn.playing {
    animation: pulse 2s infinite;
}

.music-player-btn.playing i {
    color: #d4af37;
}

.music-player-dropdown {
    position: absolute;
    bottom: 50px;
    right: 0;
    width: 250px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: none;
    overflow: hidden;
    z-index: 1001;
}

.music-player-dropdown.show {
    display: block;
}

.dropdown-header {
    padding: 12px 15px;
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.play-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.controls-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
}

.play-pause-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #d4af37;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 8px;
}

.play-pause-btn:hover {
    background-color: #b8960b;
}

.current-song {
    font-size: 0.9rem;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    width: 100%;
    margin-bottom: 10px;
}

/* Control buttons for shuffle and loop */
.buttons-container {
    display: flex;
    gap: 14px;
    justify-content: center;
    width: 100%;
}

.control-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: white;
    color: #666;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.control-btn:hover {
    background-color: #f0f0f0;
    color: #333;
}

.control-btn.active {
    background-color: #d4af37;
    color: white;
    border-color: #d4af37;
}

.control-btn i {
    font-size: 0.9rem;
}

.song-list {
    max-height: none;
    overflow-y: auto;
    padding: 5px 0;
}

.song-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
    color: #555;
    display: flex;
    align-items: center;
}

.song-item:hover {
    background-color: #f5f5f5;
}

.song-item.active {
    background-color: #fff8e5;
    color: #d4af37;
    font-weight: 500;
}

.volume-control {
    padding: 12px 15px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #f8f9fa;
}

.volume-control i {
    color: #666;
    font-size: 1rem;
    width: 18px;
}

.volume-control input[type="range"] {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #ddd;
    border-radius: 2px;
    outline: none;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #d4af37;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.volume-control input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #d4af37;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.volume-control input[type="range"]::-ms-thumb {
    width: 14px;
    height: 14px;
    background: #d4af37;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.volume-control input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
}

.volume-control input[type="range"]::-moz-range-track {
    width: 100%;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
}

.volume-control input[type="range"]::-ms-track {
    width: 100%;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    border: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Scrollbar styling for song list */
.song-list::-webkit-scrollbar {
    width: 6px;
}

.song-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.song-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.song-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .music-player-container {
        bottom: 15px;
        right: 15px;
        display: block !important;  /* Force display on mobile */
        z-index: 9999;  /* Ensure it's above other elements */
    }
    
    .music-player-btn {
        width: 35px;
        height: 35px;
        visibility: visible !important;  /* Force visibility */
        opacity: 1 !important;  /* Force opacity */
    }
    
    .music-player-btn i {
        font-size: 1rem;
    }
    
    .music-player-dropdown {
        width: 220px;
        bottom: 45px;
    }
    
    .play-pause-btn {
        width: 32px;
        height: 32px;
    }
    
    .control-btn {
        width: 32px;
        height: 32px;
    }
    
    .control-btn i {
        font-size: 0.8rem;
    }
    
    .buttons-container {
        gap: 10px;
    }
    
    .current-song {
        font-size: 0.8rem;
    }
} 