audio.src = nextTrack;
            audio.load();
            audio.play().catch(function(error) {
                console.log('Error playing next track:', error);
            });
        }
        
        function toggleMusic() {
            if (!ENABLE_BACKGROUND_MUSIC) return;
            
            const audio = document.getElementById('background-music');
            if (!audio) return;
            
            if (audio.paused) {
                audio.play();
            } else {
                aud