/* BankMovie V46 — surgical low-end mobile paint/compositor pass.
   Strong devices (.bm-nav-dynamic) are intentionally untouched. */
@media (max-width:991px){
  /* 1) Low-end footer navigation: always visible, one stable geometry, no blur/filter animation. */
  html.bm-nav-static body .bottom-nav,
  html.bm-nav-static body .actor-bottom-nav,
  html.bm-nav-static body [data-mobile-bottom-nav]{
    position:fixed!important;
    left:50%!important;
    right:auto!important;
    top:auto!important;
    bottom:max(10px,env(safe-area-inset-bottom,0px))!important;
    transform:translate3d(-50%,0,0)!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    filter:none!important;
    -webkit-filter:none!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
    transition:none!important;
    animation:none!important;
    will-change:auto!important;
    min-height:68px!important;
    height:68px!important;
    border-radius:999rem!important;
    background:
      radial-gradient(circle at 12% 100%,rgba(var(--accent-rgb,249,115,22),.16),transparent 35%),
      linear-gradient(145deg,rgba(28,29,36,.97),rgba(15,18,27,.98))!important;
    border:1px solid rgba(255,255,255,.13)!important;
    box-shadow:0 10px 24px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.08)!important;
  }

  /* Existing smart-nav scripts may still toggle these classes on secondary pages.
     They become visually inert, so there is no translate/opacity/blur repaint. */
  html.bm-nav-static body .bottom-nav.nav-hidden,
  html.bm-nav-static body .bottom-nav.nav-compact,
  html.bm-nav-static body .actor-bottom-nav.nav-hidden,
  html.bm-nav-static body .actor-bottom-nav.nav-compact,
  html.bm-nav-static body [data-mobile-bottom-nav].nav-hidden,
  html.bm-nav-static body [data-mobile-bottom-nav].nav-compact{
    transform:translate3d(-50%,0,0)!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    filter:none!important;
    height:68px!important;
    min-height:68px!important;
    border-radius:999rem!important;
  }

  /* Remove the expensive blurred glow layers used by several footer variants. */
  html.bm-nav-static body .bottom-nav::before,
  html.bm-nav-static body .bottom-nav::after,
  html.bm-nav-static body .actor-bottom-nav::before,
  html.bm-nav-static body .actor-bottom-nav::after,
  html.bm-nav-static body [data-mobile-bottom-nav]::before,
  html.bm-nav-static body [data-mobile-bottom-nav]::after{
    animation:none!important;
    filter:none!important;
    -webkit-filter:none!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
    box-shadow:none!important;
  }

  html.bm-nav-static body .bottom-nav > .nav-item,
  html.bm-nav-static body .actor-bottom-nav > .nav-item,
  html.bm-nav-static body [data-mobile-bottom-nav] > .nav-item{
    transform:none!important;
    transition:none!important;
    animation:none!important;
    filter:none!important;
    -webkit-filter:none!important;
    will-change:auto!important;
    box-shadow:none!important;
  }
  html.bm-nav-static body .bottom-nav > .nav-item.active,
  html.bm-nav-static body .actor-bottom-nav > .nav-item.active,
  html.bm-nav-static body [data-mobile-bottom-nav] > .nav-item.active{
    box-shadow:inset 0 1px 0 rgba(255,255,255,.38),0 3px 9px rgba(0,0,0,.12)!important;
  }
  html.bm-nav-static body .bottom-nav svg,
  html.bm-nav-static body .actor-bottom-nav svg,
  html.bm-nav-static body [data-mobile-bottom-nav] svg{
    filter:none!important;
    -webkit-filter:none!important;
  }

  /* 2) Fixed glass layers are the highest paint cost during scroll.
        Keep their shape/color but use opaque/translucent surfaces instead of live backdrop sampling. */
  html.bm-nav-static body #siteHeader,
  html.bm-nav-static body .header,
  html.bm-nav-static body .mobile-header,
  html.bm-nav-static body .bm-app-mini-card{
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
    filter:none!important;
    transition-property:opacity,background-color,border-color!important;
    will-change:auto!important;
  }
  html.bm-nav-static body .bm-header-search-glow,
  html.bm-nav-static body #siteHeader [class*="glow"]{
    display:none!important;
  }

  /* 3) Touch devices do not need desktop hover transforms/drop-shadow recomposition. */
  @media (hover:none){
    html.bm-nav-static body .movie-card,
    html.bm-nav-static body .scroll-card,
    html.bm-nav-static body .grid-item,
    html.bm-nav-static body .collection-card,
    html.bm-nav-static body .related-card,
    html.bm-nav-static body .content-card,
    html.bm-nav-static body .archive-card,
    html.bm-nav-static body .result-card{
      will-change:auto!important;
    }
    html.bm-nav-static body .movie-card:hover,
    html.bm-nav-static body .scroll-card:hover,
    html.bm-nav-static body .grid-item:hover,
    html.bm-nav-static body .collection-card:hover,
    html.bm-nav-static body .related-card:hover,
    html.bm-nav-static body .content-card:hover,
    html.bm-nav-static body .archive-card:hover,
    html.bm-nav-static body .result-card:hover{
      transform:none!important;
      filter:none!important;
      -webkit-filter:none!important;
    }
  }

  /* 4) Stop only decorative continuous effects; loaders/player feedback are deliberately excluded. */
  html.bm-nav-static body .bm-promo-banner::before,
  html.bm-nav-static body .hero-glow,
  html.bm-nav-static body .bm-ad-glow{
    animation:none!important;
    filter:none!important;
    -webkit-filter:none!important;
    will-change:auto!important;
  }

  html.bm-nav-static{scroll-behavior:auto!important}
}
