/* BankMovie V64 — universal STATIC mobile footer navigation.
   Appearance intentionally follows the proven V49 low-end/static dock.
   We are fixing behavior/geometry now; visual redesign can happen later. */
@media (max-width:991px){
  html.bm-nav-fixed-v64 body{
    padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))!important;
  }

  html.bm-nav-fixed-v64 body .bottom-nav[data-mobile-bottom-nav],
  html.bm-nav-fixed-v64 body .bottom-nav,
  html.bm-nav-fixed-v64 body .actor-bottom-nav,
  html.bm-nav-fixed-v64 body [data-mobile-bottom-nav]{
    position:fixed!important;
    left:0!important;
    right:0!important;
    top:auto!important;
    bottom:0!important;
    transform:none!important;
    width:100%!important;
    max-width:none!important;
    min-height:68px!important;
    height:calc(68px + env(safe-area-inset-bottom,0px))!important;
    margin:0!important;
    padding:7px 10px calc(7px + env(safe-area-inset-bottom,0px))!important;
    border-radius:18px 18px 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;
    background:
      linear-gradient(180deg,rgba(var(--accent-rgb,47,124,255),.20),rgba(var(--accent-rgb,47,124,255),.065)),
      linear-gradient(180deg,rgba(25,27,34,.99),rgba(11,13,19,.997))!important;
    border:0!important;
    border-top:1px solid rgba(var(--accent-rgb,47,124,255),.42)!important;
    box-shadow:0 -8px 22px rgba(0,0,0,.24),inset 0 1px 0 rgba(var(--accent-rgb,47,124,255),.18)!important;
    z-index:2050!important;
  }

  /* Old page controllers may keep toggling these classes while scrolling.
     In V64 they become visual no-ops everywhere. */
  html.bm-nav-fixed-v64 body .bottom-nav.nav-hidden,
  html.bm-nav-fixed-v64 body .bottom-nav.nav-compact,
  html.bm-nav-fixed-v64 body .actor-bottom-nav.nav-hidden,
  html.bm-nav-fixed-v64 body .actor-bottom-nav.nav-compact,
  html.bm-nav-fixed-v64 body [data-mobile-bottom-nav].nav-hidden,
  html.bm-nav-fixed-v64 body [data-mobile-bottom-nav].nav-compact{
    left:0!important;
    right:0!important;
    bottom:0!important;
    transform:none!important;
    width:100%!important;
    max-width:none!important;
    height:calc(68px + env(safe-area-inset-bottom,0px))!important;
    min-height:68px!important;
    border-radius:18px 18px 0 0!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    filter:none!important;
  }

  html.bm-nav-fixed-v64 body .bottom-nav::before,
  html.bm-nav-fixed-v64 body .bottom-nav::after,
  html.bm-nav-fixed-v64 body .actor-bottom-nav::before,
  html.bm-nav-fixed-v64 body .actor-bottom-nav::after,
  html.bm-nav-fixed-v64 body [data-mobile-bottom-nav]::before,
  html.bm-nav-fixed-v64 body [data-mobile-bottom-nav]::after{
    display:none!important;
    content:none!important;
  }

  html.bm-nav-fixed-v64 body .bottom-nav > .nav-item,
  html.bm-nav-fixed-v64 body .actor-bottom-nav > .nav-item,
  html.bm-nav-fixed-v64 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-fixed-v64 body .bottom-nav > .nav-item.active,
  html.bm-nav-fixed-v64 body .actor-bottom-nav > .nav-item.active,
  html.bm-nav-fixed-v64 body [data-mobile-bottom-nav] > .nav-item.active{
    color:var(--accent,#2f7cff)!important;
    background:rgba(var(--accent-rgb,47,124,255),.13)!important;
    box-shadow:inset 0 1px 0 rgba(var(--accent-rgb,47,124,255),.32),0 2px 7px rgba(0,0,0,.10)!important;
    transform:none!important;
  }

  /* Preserve intentional full-screen / Watch Party UI hiding. */
  html.bm-nav-fixed-v64 body.watch-party-page.wp-room-tools-open .bottom-nav{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
}
