Working fine for me after editing those. This is what I get:
BTW the button is a little out of the panels.
Ok, I found the problem: If the
overlays have "allowpinning=true", then the
floating panels don't show the close button. If it's set to false, they appear.
But, if the overlays don't have the "allowpinning=true" the plugin doesn't remember the last overlay used upon opening/closing Theater Mode.
[BTW, I fixed the closing buttons positioning, even if now they aren't showing up]