When playing videos with Firefox Flatpak laptop goes to sleep

I’m on Bazzite Nvidia edition with KDE Plasma recently switched from kubuntu, when playing youtube videos or twitch streams laptop goes to sleep even though when i check on battery (see Screenshot) Firefox should block sleep when video is playing, are there any solution? I tested this with Brave browser (Flatpak) and there are no issue with brave compared to firefox
Screenshot_20240513_210031