/* Only this small control is added to the normal interface. */
#salaToggle{position:fixed;top:max(12px,env(safe-area-inset-top));right:max(16px,env(safe-area-inset-right));z-index:10000;width:44px;height:44px;display:grid;place-items:center;padding:10px;border:1px solid #68424a;border-radius:50%;background:#21171b;color:#d7bdad;cursor:pointer}
#salaToggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#salaToggle[aria-pressed=true]{background:#080709;border-color:#51434a;color:#b2a294}
#salaToggle[aria-pressed=true] svg{fill:currentColor;stroke-width:1}
#salaToggle:focus-visible{outline:2px solid #c9b7a6;outline-offset:3px}
/* No layout or device-brightness changes. Dimming also covers bright imagery,
   popovers and fixed navigation. The overlay never intercepts input. */
html.sala-mode{background:#000;color-scheme:dark}
html.sala-mode body{background:#000!important}
html.sala-mode aside,html.sala-mode .site-footer{background:#030203!important}
html.sala-mode::after{content:'';position:fixed;inset:0;z-index:2147483647;background:rgba(0,0,0,.24);pointer-events:none}
html.sala-mode img,html.sala-mode video{filter:brightness(.65) saturate(.8)}
html.sala-mode :is(.searchpanel,.editorial-tile,.partner-row,.trend-section,.profile-photo){background-color:#0d090c}
html.sala-mode :is(.hero.cinema-hero,.hero-scroll,.ciak-intro,.real-poster){box-shadow:none!important}
/* Native dialogs occupy the top layer, above the page dimmer. */
html.sala-mode dialog[open]{filter:brightness(.76);background-color:#0d090c}
html.sala-mode dialog::backdrop{background:rgba(0,0,0,.9)}
html.sala-mode :is(input,select,textarea){color-scheme:dark}
@media(max-width:700px){#salaToggle{top:max(8px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));width:42px;height:42px}}
