/* BankMovie v149 — deterministic shared-header placement and viewport guards. */
html,body{max-width:100%;overflow-x:clip}

html body #siteHeader.bm-public-header-v148,
html body #siteHeader.bm-public-header-v148.header,
html body #siteHeader.bm-public-header-v148.header-admin{
  position:absolute!important;
  inset:0 0 auto 0!important;
  top:0!important;
  right:0!important;
  left:0!important;
  width:100%!important;
  max-width:100vw!important;
  margin:0!important;
  transform:none!important;
  z-index:1200!important;
}

html body #siteHeader.bm-public-header-v148 .header-inner,
html body #siteHeader.bm-public-header-v148.header-admin .header-inner{
  margin-top:0!important;
  margin-bottom:0!important;
  max-width:calc(100vw - 24px)!important;
  box-sizing:border-box!important;
  flex-wrap:nowrap!important;
}

html body #siteHeader.bm-public-header-v148 .desktop-nav,
html body #siteHeader.bm-public-header-v148 .header-actions{
  min-width:0!important;
  max-width:100%!important;
}

html body #siteHeader.bm-public-header-v148 .bm-header-search,
html body #siteHeader.bm-public-header-v148 .bm-header-search-trigger{
  overflow:hidden!important;
  box-sizing:border-box!important;
}

/* Content begins below the same header footprint on ordinary listing pages. */
html body.search-page > .search-section{margin-top:96px!important;padding-top:18px!important}
html body #siteHeader[data-bm-page="categories.php"] ~ .bm-category-page,
html body .bm-category-page{margin-top:96px!important}
html body.bm-boxoffice-page .bm-bo-shell{margin-top:96px!important}

/* Shared search can never escape the viewport, including Windows zoom levels. */
html body #bmQuickSearchModal{
  box-sizing:border-box!important;
  width:100vw!important;
  max-width:100vw!important;
  overflow-x:hidden!important;
}
html body #bmQuickSearchModal #unifiedSearchSection.bm-quick-search-card.search-section{
  box-sizing:border-box!important;
  width:min(980px,calc(100vw - 28px))!important;
  max-width:calc(100vw - 28px)!important;
  max-height:calc(100dvh - 32px)!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
}
html body #bmQuickSearchModal .bm-quick-search-poda,
html body #bmQuickSearchModal .bm-quick-search-main,
html body #bmQuickSearchModal .bm-quick-search-input,
html body.search-page .search-box,
html body.search-page .search-input{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}

@media(min-width:992px){
  html body #siteHeader.bm-public-header-v148{padding-top:10px!important}
}

@media(max-width:991px){
  html body #siteHeader.bm-public-header-v148,
  html body #siteHeader.bm-public-header-v148.header,
  html body #siteHeader.bm-public-header-v148.header-admin{
    padding:0!important;
    min-height:64px!important;
  }
  html body #siteHeader.bm-public-header-v148 .header-inner,
  html body #siteHeader.bm-public-header-v148.header-admin .header-inner{
    width:100%!important;
    max-width:100vw!important;
    min-height:64px!important;
    padding-top:max(env(safe-area-inset-top,0px),4px)!important;
  }
  html body.search-page > .search-section{margin-top:68px!important;padding:12px 10px 0!important}
  html body #siteHeader[data-bm-page="categories.php"] ~ .bm-category-page,
  html body .bm-category-page{margin-top:72px!important}
  html body.bm-boxoffice-page .bm-bo-shell{margin-top:72px!important}
  html body #bmQuickSearchModal #unifiedSearchSection.bm-quick-search-card.search-section{
    width:calc(100vw - 18px)!important;
    max-width:calc(100vw - 18px)!important;
    max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 58px)!important;
    padding:15px 12px 14px!important;
  }
}

@media(min-width:992px) and (max-width:1199px){
  html body #siteHeader.bm-public-header-v148 .header-inner{max-width:calc(100vw - 16px)!important}
}
