/* HLB V5.4.1d - exact mobile header + bottom nav overrides */
@media (max-width:820px){
  :root{
    --hlb-v541d-nav-h:72px;
  }

  /* HEADER: logo | search | message | notification | avatar */
  .topbar-inner{
    gap:8px !important;
  }
  .brand{
    flex:0 0 auto;
  }
  .brand-copy{
    display:none !important;
  }
  .global-search{
    min-width:0 !important;
    max-width:none !important;
    flex:1 1 auto !important;
    margin-left:0 !important;
    padding:0 10px !important;
    border-radius:10px !important;
  }
  .global-search input{
    min-width:0 !important;
    font-size:13px !important;
  }
  .account-actions{
    flex:0 0 auto !important;
    margin-left:0 !important;
    gap:6px !important;
  }
  .message-bell,
  .notification-bell{
    display:grid !important;
    width:34px !important;
    height:34px !important;
    border-radius:50% !important;
    background:#191b21 !important;
    border:1px solid #30333c !important;
    color:#eef0f5 !important;
    box-shadow:none !important;
    transform:none !important;
    font-size:0 !important;
  }
  .message-bell:hover,.message-bell.active,
  .notification-bell:hover,.notification-bell.active,
  .message-bell[aria-expanded="true"],
  .notification-bell[aria-expanded="true"]{
    background:#24272f !important;
    border-color:#464b56 !important;
    transform:none !important;
  }
  .message-bell svg,
  .notification-bell svg{
    width:18px !important;
    height:18px !important;
    fill:none !important;
    stroke:currentColor !important;
    stroke-width:1.8 !important;
    stroke-linecap:round !important;
    stroke-linejoin:round !important;
  }
  .message-bell>b,
  .notification-bell>b{
    right:-4px !important;
    top:-5px !important;
    min-width:17px !important;
    height:17px !important;
    padding:0 4px !important;
    border-width:2px !important;
    font-size:8px !important;
  }
  .account-chip{
    width:36px !important;
    height:36px !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    max-width:36px !important;
  }
  .avatar-mini{
    width:36px !important;
    height:36px !important;
    overflow:hidden !important;
    border:1px solid #3b3f49 !important;
  }
  .avatar-mini img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    display:block !important;
  }
  .account-email{display:none !important;}

  /* BOTTOM NAV: exact existing .mobile-nav.mobile-nav-v43 */
  .mobile-nav.mobile-nav-v43{
    display:grid !important;
    grid-template-columns:repeat(6,minmax(0,1fr)) !important;
    position:fixed !important;
    z-index:110 !important;
    left:0 !important;
    right:0 !important;
    bottom:0 !important;
    height:calc(var(--hlb-v541d-nav-h) + env(safe-area-inset-bottom,0px)) !important;
    padding:7px 8px max(8px,env(safe-area-inset-bottom,0px)) !important;
    background:rgba(16,18,23,.97) !important;
    border-top:1px solid rgba(255,255,255,.08) !important;
    box-shadow:0 -10px 30px rgba(0,0,0,.24) !important;
    backdrop-filter:blur(18px) !important;
    -webkit-backdrop-filter:blur(18px) !important;
    box-sizing:border-box !important;
  }
  .mobile-nav.mobile-nav-v43>a{
    min-width:0 !important;
    position:relative !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:5px !important;
    padding:4px 1px !important;
    border-radius:12px !important;
    color:#9297a3 !important;
    font-size:10px !important;
    font-weight:650 !important;
    line-height:1 !important;
    text-decoration:none !important;
  }
  .mobile-nav.mobile-nav-v43>a>span{
    width:25px !important;
    height:25px !important;
    position:relative !important;
    display:grid !important;
    place-items:center !important;
    font-size:0 !important;
    line-height:1 !important;
  }
  .mobile-nav.mobile-nav-v43>a>span>svg{
    width:24px !important;
    height:24px !important;
    fill:none !important;
    stroke:currentColor !important;
    stroke-width:1.8 !important;
    stroke-linecap:round !important;
    stroke-linejoin:round !important;
  }
  .mobile-nav.mobile-nav-v43>a.active{
    color:#fff !important;
  }
  .mobile-nav.mobile-nav-v43>a.active>span{
    color:#fff !important;
  }
  .mobile-nav.mobile-nav-v43>a.active::before{
    content:"";
    position:absolute;
    top:0;
    left:50%;
    transform:translateX(-50%);
    width:18px;
    height:3px;
    border-radius:999px;
    background:var(--accent);
  }
  .mobile-nav.mobile-nav-v43 a span>b{
    position:absolute !important;
    right:-8px !important;
    top:-6px !important;
    min-width:17px !important;
    height:17px !important;
    padding:0 4px !important;
    border-radius:999px !important;
    display:grid !important;
    place-items:center !important;
    background:var(--accent) !important;
    color:#fff !important;
    border:2px solid #101217 !important;
    font-size:8px !important;
    font-weight:900 !important;
    line-height:1 !important;
  }
  .mobile-nav.mobile-nav-v43 a span>b[hidden]{display:none !important;}

  /* PLAYER always sits ABOVE the bottom navigation */
  .player-shell{
    bottom:calc(var(--hlb-v541d-nav-h) + env(safe-area-inset-bottom,0px)) !important;
    z-index:105 !important;
  }
  .music-app{
    padding-bottom:calc(var(--hlb-v541d-nav-h) + env(safe-area-inset-bottom,0px)) !important;
  }
  .page-main{
    padding-bottom:178px !important;
  }
  .player-queue-drawer{
    bottom:calc(var(--hlb-v541d-nav-h) + 8px + env(safe-area-inset-bottom,0px)) !important;
  }
}

@media (max-width:430px){
  .topbar-inner{gap:6px !important;}
  .brand-mark{width:32px !important;height:32px !important;}
  .global-search{height:36px !important;padding:0 8px !important;}
  .message-bell,.notification-bell{width:32px !important;height:32px !important;}
  .account-chip,.avatar-mini{width:34px !important;height:34px !important;max-width:34px !important;}
}

@media (max-width:370px){
  .message-bell,.notification-bell{width:30px !important;height:30px !important;}
  .account-chip,.avatar-mini{width:32px !important;height:32px !important;max-width:32px !important;}
  .global-search input{font-size:12px !important;}
  .mobile-nav.mobile-nav-v43>a{font-size:9px !important;}
}
