.boss-managed-popup-open{overflow:hidden}
.boss-site-content-managed .site-notification-popup{display:none!important}
.boss-managed-popup-overlay{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(9,23,46,.68);overscroll-behavior:contain}
.boss-managed-popup{position:relative;box-sizing:border-box;width:min(560px,100%);max-height:calc(100dvh - 40px);overflow:auto;padding:24px;background:#fff;border:1px solid #d5e2f3;border-radius:12px;box-shadow:0 18px 70px rgba(0,0,0,.28);color:#162b46;font:16px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-align:center}
.boss-managed-popup-title{margin:0 34px 16px;font:700 22px/1.3 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow-wrap:anywhere}
.boss-managed-popup-close{position:absolute;top:8px;right:8px;width:40px;height:40px;border:0;border-radius:6px;background:#f0f4fa;color:#243a56;font:28px/1 system-ui;cursor:pointer}
.boss-managed-popup-image{display:block;max-width:100%;max-height:60dvh;width:auto;height:auto;margin:0 auto 16px;border-radius:6px;object-fit:contain}
.boss-managed-popup-message{margin:0 0 18px;white-space:pre-wrap;overflow-wrap:anywhere}
.boss-managed-popup-link{display:inline-block;min-width:140px;padding:12px 24px;border-radius:6px;background:#1266e8;color:#fff;font-weight:700;text-decoration:none}
.boss-managed-popup-close:focus-visible,.boss-managed-popup-link:focus-visible{outline:3px solid #f59e0b;outline-offset:3px}
@media(max-width:480px){.boss-managed-popup-overlay{padding:12px}.boss-managed-popup{padding:22px 16px;max-height:calc(100dvh - 24px)}.boss-managed-popup-title{font-size:20px}}

/* Outbound film link. Existing popup and player styles remain independent. */
.reference-watch-header.boss-film-header{grid-template-columns:minmax(160px,235px) minmax(0,1fr) max-content!important}
.reference-header-actions.boss-film-actions{width:max-content!important}
.boss-film-header>.reference-search-box{min-width:0;width:100%!important}
.boss-film-link{box-sizing:border-box;display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;min-height:36px;padding:8px 11px;border:1px solid #0d5bd1;border-radius:2px;background:#1266e8;color:#fff!important;font:700 13px/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-align:center;text-decoration:none!important;white-space:nowrap;cursor:pointer}
.boss-film-link:hover{background:#0958d0}
.boss-film-link:focus-visible{outline:3px solid #f59e0b;outline-offset:3px}
html[data-ui-theme="night"] .boss-film-link{border-color:#3d83ed;background:#155bb8}
html[data-ui-theme="neon"] .boss-film-link{border-color:#ff8a21;background:#c84d00}
@media(max-width:920px){
  .reference-watch-header.boss-film-header{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"brand" "actions" "search"!important}
  .reference-header-actions.boss-film-actions{width:100%!important;min-width:0;display:flex!important;flex-wrap:wrap!important;align-items:center;justify-content:flex-start!important;gap:6px!important}
  .boss-film-actions>.games-top-nav{flex:0 0 100%;max-width:100%}
  .boss-film-actions .boss-language-menu{order:0}
  .boss-film-actions .boss-film-link{order:1;min-height:34px;padding:6px 8px;font-size:12px}
  .boss-film-actions>.reference-theme-toggle,.boss-film-actions>.theme-mode-toggle{order:2;margin-left:auto}
  .site-header.boss-film-header .header-controls.boss-film-actions{display:flex!important;flex-wrap:wrap!important;align-items:center;gap:6px!important}
  .site-header.boss-film-header .header-controls>.search-box{order:3;flex:1 0 100%;min-width:0}
}
