I try to sing once again... and probably fail haha I liked the layering idea so I think I might try it with some other ideas! Please don't be too harsh in the comments! I'm a fragile soul :P
To listen while using other apps, switch the player to Picture-in-Picture (PiP) during playback — it keeps playing in a small floating window (the screen stays on).
To listen with the screen fully off, in-browser playback stops by YouTube's design. Open the video in the YouTube app to keep listening where background playback is supported (e.g. with YouTube Premium).
Open in YouTube app