Congrats! Now you get to experience the glory of the deque. Your days of being restricted to stack pushing are in the past.
Ugh… things like this make me wish we had just one FOSS music player with a paid backend. I’d comment out all the modals and get on with life.
Here's just one. It's BYO frontend. Last I knew, there were a bunch of them. https://mopidy.com/
Also look into mpd, the music playing daemon.