Creating a minified bookmarklet that meets your requirements is quite complex, but I'll provide a simplified version that you can expand upon. This bookmarklet will toggle an ambient glow effect on YouTube videos, ensuring it works across different viewing modes.
Here's a minified version of the bookmarklet:
javascript:(function(){var e=document.querySelector(".video-stream");if(!e){alert("Video not found");return;}var t=document.querySelector(".html5-video-player"),n=document.querySelector(".ytp-chrome-bottom"),o=document.querySelector(".ytp-chrome-top"),i=document.querySelector("ytd-watch-flexy"),a=document.querySelector("ytd-player"),s=document.querySelector("ytd-movie-watch-flexy"),r=document.querySelector("ytd-watch-flexy .ytp-player"),l=document.querySelector("ytd-player .ytp-player"),c=document.querySelector("ytd-movie-watch-flexy .ytp-player"),d=document.querySelector("ytp-player"),u=document.querySelector("ytp-page-background"),p=document.querySelector("ytp-page-background-overlay"),f=document.querySelector("ytp-page-background-image"),m=document.querySelector("ytp-page-background-color"),g=document.querySelector("ytp-page-background-gradient"),v=document.querySelector("ytp-page-background-video"),b=!1;function h(){if(b){if(t){t.style.backgroundColor="";t.style.backgroundImage="";t.style.backgroundSize="";t.style.backgroundPosition="";t.style.backgroundRepeat="";t.style.filter=""}if(n){n.style.backgroundColor="";n.style.backgroundImage="";n.style.backgroundSize="";n.style.backgroundPosition="";n.style.backgroundRepeat="";n.style.filter=""}if(o){o.style.backgroundColor="";o.style.backgroundImage="";o.style.backgroundSize="";o.style.backgroundPosition="";o.style.backgroundRepeat="";o.style.filter=""}}else{if(t){t.style.backgroundColor="rgba(0,0,0,0.5)";t.style.backgroundImage="radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1), rgba(0,0,0,0.5))";t.style.backgroundSize="cover";t.style.backgroundPosition="center";t.style.backgroundRepeat="no-repeat";t.style.filter="blur(10px)"}if(n){n.style.backgroundColor="rgba(0,0,0,0.5)";n.style.backgroundImage="radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1), rgba(0,0,0,0.5))";n.style.backgroundSize="cover";n.style.backgroundPosition="center";n.style.backgroundRepeat="no-repeat";n.style.filter="blur(10px)"}if(o){o.style.backgroundColor="rgba(0,0,0,0.5)";o.style.backgroundImage="radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1), rgba(0,0,0,0.5))";o.style.backgroundSize="cover";o.style.backgroundPosition="center";o.style.backgroundRepeat="no-repeat";o.style.filter="blur(10px)"}}}b=!b;h();if(i){i.style.backgroundColor=b?"rgba(0,0,0,0.5)":"";i.style.backgroundImage=b?"radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1), rgba(0,0,0,0.5))":"";i.style.backgroundSize=b?"cover":"";i.style.backgroundPosition=b?"center":"";i.style.backgroundRepeat=b?"no-repeat":"";i.style.filter=b?"blur(10px)":""}if(a){a.style.backgroundColor=b?"rgba(0,0,0,0.5)":"";a.style.backgroundImage=b?"radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1), rgba(0,0,0,0.5))":"";a.style.backgroundSize=b?"cover":"";a.style.backgroundPosition=b?"center":"";a.style.backgroundRepeat=b?"no-repeat":"";a.style.filter=b?"blur(10px)":""}if(s){s.style.backgroundColor=b?"rgba(0,0,0,0.5)":"";s.style.backgroundImage=b?"radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1), rgba(0,0,0,0.5))":"";s.style.backgroundSize=b?"cover":"";s.style.backgroundPosition=b?"center":"";s.style.backgroundRepeat=b?"no-repeat":"";s.style.filter=b?"blur(10px)":""}if(r){r.style.backgroundColor=b?"rgba(0,0,0,0.5)":"";r.style.backgroundImage=b?"radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1), rgba(0,0,0,0.5))":"";r.style.backgroundSize=b?"cover":"";r.style.backgroundPosition=b?"center":"";r.style.backgroundRepeat=b?"no-repeat":"";r.style.filter=b?"blur(10px)":""}if(l){l.style.backgroundColor=b?"rgba(0,0,0,0.5)":"";l.style.backgroundImage=b?"radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1), rgba(0,0,0,0.5))":"";l.style.backgroundSize=b?"cover":"";l.style.backgroundPosition=b?"center":"";l.style.backgroundRepeat=b?"no-repeat":"";l.style.filter=b?"blur(10px)":""}if(c){c.style.backgroundColor=b?"rgba(0,0,0,0.5)":"";c.style.backgroundImage=b?"radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1), rgba(0,0,0,0.5))":"";c.style.backgroundSize=b?"cover":"";c.style.backgroundPosition=b?"center":"";c.style.backgroundRepeat=b?"no-repeat":"";c.style.filter=b?"blur(10px)":""}if(d){d.style.backgroundColor=b?"rgba(0,0,0,0.5)":"";d.style.backgroundImage=b?"radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1), rgba(0,0,0,0.5))":"";d.style.backgroundSize=b?"cover":"";d.style.backgroundPosition=b?"center":"";d.style.backgroundRepeat=b?"no-repeat":"";d.style.filter=b?"blur(10px)":""}if(u){u.style.backgroundColor=b?"rgba(0,0,0,0.5)":"";u.style.backgroundImage=b?"radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1), rgba(0,0,0,0.5))":"";u.style.backgroundSize=b?"cover":"";u.style.backgroundPosition=b?"center":"";u.style.backgroundRepeat=b?"no-repeat":"";u.style.filter=b?"blur(10px)":""}if(p){p.style.backgroundColor=b?"rgba(0,0,0,0.5)":"";p.style.backgroundImage=b?"radial-gradient(circle at 50% 50%, rgba(255,