Pulse audio let's you have one browser process playing, and then mute other processes. I make a special profile to just play Spotify and other media. Open a new profile for work (well, per project)
Man, that's kind of a hassle - I would have to create one profile just for music and videos, one profile for random personal browsing, and a third one for work. (And possibly a fourth one for work, if I explicitly wanted to watch work-related sound content without switching to a personal profile.) I don't think I need that at this time, but it's good to know.