/* BankMovie v152 — desktop header top-lock without redesigning the header.
   Important: this patch intentionally does NOT touch the search layers,
   button skins, colors, shadows, logo sizing, nav item styling, or VIP skin.
   Those stay exactly under bm-header-v106.css / theme CSS. */

@media (min-width: 992px) {
  /* Every public desktop header starts at the very top with one footprint. */
  html body #siteHeader.bm-public-header-v148,
  html body #siteHeader.bm-public-header-v148.header,
  html body #siteHeader.bm-public-header-v148.header-admin,
  html body #siteHeader.bm-public-header-v148.header-solid,
  html body #siteHeader.bm-public-header-v148.header-glass {
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    height: 84px !important;
    min-height: 84px !important;
    margin: 0 !important;
    padding-top: 10px !important;
    box-sizing: border-box !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    translate: none !important;
    z-index: 2600 !important;
  }

  /* Keep the V109/V145 compact three-group layout used by home/movie.
     This only locks geometry; visual skins remain untouched. */
  html body #siteHeader.bm-public-header-v148 .header-inner,
  html body #siteHeader.bm-public-header-v148.header-admin .header-inner {
    position: relative !important;
    min-height: 74px !important;
    height: 74px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    display: flex !important;
    flex-flow: row nowrap !important;
    direction: rtl !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0 !important;
    transform: none !important;
    translate: none !important;
  }

  /* Old scroll-state classes must not push the header down/off-screen. */
  html body #siteHeader.bm-public-header-v148.bm-header-hidden,
  html body #siteHeader.bm-public-header-v148.is-hidden,
  html body #siteHeader.bm-public-header-v148.hide {
    top: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    translate: none !important;
  }

  /* Listing pages already reserve space for the header. Keep that clearance
     deterministic now that the header is fixed. */
  html body.search-page > .search-section {
    margin-top: 96px !important;
  }
  html body #siteHeader[data-bm-page="genres.php"] ~ .bm-cat-wrap,
  html body .bm-cat-wrap {
    margin-top: 108px !important;
  }
}
