﻿html body select:not([multiple]):not([size]),
html body select[size="1"] {
  appearance: none !important;
  color-scheme: dark;
  color: #f2f2f5 !important;
  background-color: var(--bg-surface) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23b9bbc2' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 13px center !important;
  background-size: 16px !important;
  padding-right: 39px !important;
  border: 1px solid #ffffff12 !important;
  border-radius: 13px !important;
  cursor: pointer;
  transition: border-color .18s, background-color .18s;
}
html body select:disabled { opacity: .45; cursor: not-allowed; }
html body select.ah-select-open { border-color: #ffffff40 !important; background-color: var(--bg-elevated) !important; }
html body select:focus,
html body select:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
.ah-select-popup {
  position: fixed !important;
  inset: auto;
  margin: 0 !important;
  box-sizing: border-box;
  z-index: 2147483647;
  padding: 8px !important;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #ffffff18 !important;
  border-radius: 18px !important;
  background: #111113 !important;
  color: #f2f2f5;
  box-shadow: 0 12px 30px #0006;
  font-family: var(--font-reading, "Segoe UI", sans-serif);
  scrollbar-width: thin;
  scrollbar-color: #3a3a40 transparent;
  animation: select-menu-in .16s ease-out;
}
.ah-select-popup::backdrop { background: transparent; pointer-events: none; }
html body .ah-select-popup .ah-select-option {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: auto !important;
  min-height: 44px;
  margin: 0 !important;
  padding: 12px 15px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: #bfc0c7 !important;
  text-align: left;
  font: 600 15px/1.35 var(--font-reading, "Segoe UI", sans-serif) !important;
  white-space: normal;
  cursor: pointer;
  transition: background .12s, color .12s;
  box-shadow: none !important;
  transform: none !important;
}
html body .ah-select-popup .ah-select-option[aria-selected="true"] { background: var(--bg-hover) !important; color: #fff !important; }
html body .ah-select-popup .ah-select-option:not(:disabled):hover,
html body .ah-select-popup .ah-select-option:focus { background: #222225 !important; color: #fff !important; outline: none; }
html body .ah-select-popup .ah-select-option:disabled { color: #66666e !important; cursor: not-allowed; }
.ah-select-group { padding: 10px 15px 5px; font-size: 12px; color: #898992; }
@keyframes select-menu-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ah-select-popup { animation: none; } }
html body .ah-select-popup .ah-select-option.ah-select-option--multi { display:flex !important; flex-direction:row !important; align-items:center; justify-content:space-between; gap:12px; }
html body .ah-select-check { display:grid; place-items:center; width:16px; height:16px; flex-shrink:0; border-radius:4px; border:1px solid #aaa; color:#000; background:transparent; font-size:13px; font-weight:900; line-height:1; }
html body .ah-select-option--multi[aria-selected="true"] .ah-select-check { background:#fff; border-color:#fff; }

:root {
  --bg-base:#0A0A0A;
  --bg-surface:#141414;
  --bg-elevated:#1C1C1C;
  --bg-hover:#262626;
  --border-default:#333333;
  --border-subtle:#222222;
  --text-primary:#FFFFFF;
  --text-secondary:#A3A3A3;
  --text-tertiary:#6A6A6A;
  --text-disabled:#404040;
  --accent-hover:#FFC199;
  --accent-default:#FFA66E;
  --accent-active:#E88A50;
  --accent-muted:rgba(255,166,110,.14);
  --accent-muted-border:rgba(255,166,110,.3);
  --status-success:#5FBF7A;
  --status-danger:#E5484D;
  --status-warning:#E8B93F;
  --status-info:#6E9FD8;
  --rating-star:#FFD166;
  --bg:var(--bg-base); --panel:var(--bg-surface);
  --panel-2:var(--bg-elevated); --panel-3:var(--bg-hover);
  --line:var(--border-default); --line-soft:var(--border-subtle);
  --text:var(--text-primary); --muted:var(--text-secondary);
  --orange:var(--accent-default); --orange-2:var(--accent-hover);
  --danger:var(--status-danger); --blue:var(--status-info);
}


/* ===== MOBILE HEADER/BOTTOM NAV FINAL OVERRIDE — v7 ===== */
@media (max-width: 760px) {
  /* Override polish-fixes.css: one compact row only. */
  html:root body[class] main.site-shell > header.topbar,
  html:root body main.site-shell > header.topbar,
  html body .site-shell > .topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 500 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: 52px !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    height: 58px !important;
    min-height: 58px !important;
    padding: 3px 8px !important;
    margin: 0 !important;
    border: 0 !important;
    background: #090a0c !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  /* No logo / premium / old hamburger on mobile. */
  html body .topbar > .logo,
  html body .topbar > #mobileMenuButton,
  html body .top-actions > .header-premium-action,
  html body .top-actions > .header-random-action {
    display: none !important;
  }

  /* Search is the main centered row element, with no pill/background. */
  html body .topbar .top-search,
  html body .topbar .top-search:hover,
  html body .topbar .top-search:focus-within {
    position: static !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: grid !important;
    grid-template-columns: 32px minmax(0, 1fr) !important;
    align-items: center !important;
    width: 100% !important;
    max-width: none !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    transform: none !important;
  }

  html body .topbar .top-search::before,
  html body .topbar .top-search::after {
    display: none !important;
    content: none !important;
  }

  html body .topbar .top-search button {
    display: grid !important;
    place-items: center !important;
    width: 32px !important;
    height: 44px !important;
    min-width: 32px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: rgba(255,255,255,.55) !important;
    box-shadow: none !important;
    pointer-events: none !important;
  }

  html body .topbar .top-search button svg {
    width: 18px !important;
    height: 18px !important;
  }

  html body .topbar .top-search input {
    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    padding: 0 2px !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    text-align: center !important;
  }

  html body .topbar .top-search input::placeholder {
    color: rgba(255,255,255,.58) !important;
    opacity: 1 !important;
  }

  /* Notifications + profile live on the same row, right of search. */
  html body .topbar .top-actions {
    position: static !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 2px !important;
    width: auto !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  html body .topbar .notification-button,
  html body .topbar .profile-button {
    display: grid !important;
    place-items: center !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html body .topbar .notification-button > span {
    display: grid !important;
    place-items: center !important;
    width: 28px !important;
    height: 28px !important;
    border: 0 !important;
    background: transparent !important;
  }

  html body .topbar .notification-button svg {
    width: 19px !important;
    height: 19px !important;
  }

  html body .topbar .profile-button,
  html body .topbar .profile-button img {
    border-radius: 50% !important;
  }

  html body .topbar .profile-button img {
    width: 34px !important;
    height: 34px !important;
  }

  /* Bottom nav: Profile slot becomes Burger/Menu. */
  html body .desktop-rail > a[data-view="profile"] {
    display: none !important;
  }

  html body .desktop-rail > .mobile-nav-burger {
    display: grid !important;
    place-items: center !important;
    align-self: center !important;
    justify-self: center !important;
    order: 3 !important;
    width: 44px !important;
    height: 52px !important;
    min-width: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: transparent !important;
    color: rgba(255,255,255,.72) !important;
    box-shadow: none !important;
  }

  html body .desktop-rail > .mobile-nav-burger::before,
  html body .desktop-rail > .mobile-nav-burger::after {
    display: none !important;
  }

  html body .desktop-rail > .mobile-nav-burger .burger-lines {
    position: relative !important;
    display: block !important;
    width: 22px !important;
    height: 18px !important;
  }

  html body .desktop-rail > .mobile-nav-burger .burger-lines i {
    position: absolute !important;
    left: 0 !important;
    display: block !important;
    width: 22px !important;
    height: 2px !important;
    border-radius: 99px !important;
    background: currentColor !important;
    transform-origin: 50% 50% !important;
    transition:
      top .22s ease,
      transform .3s cubic-bezier(.2,.85,.2,1),
      opacity .16s ease !important;
  }

  html body .desktop-rail > .mobile-nav-burger .burger-lines i:nth-child(1) { top: 1px !important; }
  html body .desktop-rail > .mobile-nav-burger .burger-lines i:nth-child(2) { top: 8px !important; }
  html body .desktop-rail > .mobile-nav-burger .burger-lines i:nth-child(3) { top: 15px !important; }

  html body.mobile-drawer-open .desktop-rail > .mobile-nav-burger .burger-lines i:nth-child(1) {
    top: 8px !important;
    transform: rotate(45deg) !important;
  }
  html body.mobile-drawer-open .desktop-rail > .mobile-nav-burger .burger-lines i:nth-child(2) {
    opacity: 0 !important;
    transform: scaleX(.25) !important;
  }
  html body.mobile-drawer-open .desktop-rail > .mobile-nav-burger .burger-lines i:nth-child(3) {
    top: 8px !important;
    transform: rotate(-45deg) !important;
  }

  /* Match existing mobile bar's five slots explicitly. */
  html body .desktop-rail {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
  html body .desktop-rail > a[data-view="home"] { order: 1 !important; }
  html body .desktop-rail > a[data-view="catalog"] { order: 2 !important; }
  html body .desktop-rail > .mobile-nav-burger { order: 3 !important; }
  html body .desktop-rail > a[data-view="favorites"] { order: 4 !important; }
  html body .desktop-rail > a[data-random-anime] { order: 5 !important; }

  /* Hide all rail items that are meant to live in the burger drawer. */
  html body .desktop-rail > a[data-view="history"],
  html body .desktop-rail > a[data-view="premium"],
  html body .desktop-rail > a[data-view="referrals"],
  html body .desktop-rail > .desktop-rail-button,
  html body .desktop-rail > .desktop-rail-section-gap,
  html body .desktop-rail > .desktop-rail-bottom-gap {
    display: none !important;
  }
}

@media (max-width: 370px) {
  html:root body[class] main.site-shell > header.topbar,
  html:root body main.site-shell > header.topbar {
    padding-inline: 5px !important;
    gap: 1px !important;
  }
  html body .topbar .notification-button,
  html body .topbar .profile-button {
    width: 34px !important;
    min-width: 34px !important;
  }
  html body .topbar .profile-button img {
    width: 31px !important;
    height: 31px !important;
  }
  html body .topbar .top-search input {
    font-size: 12px !important;
  }
}


/* ===== MOBILE NAV V9 — EXACT CURRENT DOM OVERRIDE ===== */
@media (max-width: 760px) {
  /* Header */
  body .site-shell > header.topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 38px 38px !important;
    grid-template-rows: 58px !important;
    align-items: center !important;
    gap: 2px !important;
    height: 58px !important;
    min-height: 58px !important;
    padding: 0 7px !important;
    background: #090a0c !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  body .site-shell > header.topbar > a.logo,
  body .site-shell > header.topbar > button#mobileMenuButton {
    display: none !important;
  }

  body .site-shell > header.topbar > form#searchForm.top-search {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: none !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body .site-shell > header.topbar > form#searchForm.top-search > button[type="submit"] {
    display: grid !important;
    place-items: center !important;
    width: 28px !important;
    min-width: 28px !important;
    height: 44px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  body .site-shell > header.topbar > form#searchForm.top-search > button[type="submit"]::before,
  body .site-shell > header.topbar > form#searchForm.top-search > button[type="submit"]::after {
    display: none !important;
    content: none !important;
  }

  body .site-shell > header.topbar > form#searchForm.top-search > button[type="submit"] svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
  }

  body .site-shell > header.topbar > form#searchForm.top-search > input#searchInput {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    padding: 0 2px 0 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    text-align: center !important;
    line-height: 44px !important;
  }

  body .site-shell > header.topbar > .top-actions {
    display: contents !important;
  }

  body .site-shell > header.topbar > .top-actions > a.header-random-action,
  body .site-shell > header.topbar > .top-actions > a.header-premium-action,
  body .site-shell > header.topbar > .top-actions > .notifications-popover {
    display: none !important;
  }

  body .site-shell > header.topbar > .top-actions > button#notificationsOpen {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  body .site-shell > header.topbar > .top-actions > button#authOpen {
    grid-column: 3 !important;
    grid-row: 1 !important;
  }

  body .site-shell > header.topbar > .top-actions > button#notificationsOpen,
  body .site-shell > header.topbar > .top-actions > button#authOpen {
    align-self: center !important;
    justify-self: center !important;
    display: grid !important;
    place-items: center !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body .site-shell > header.topbar > .top-actions > button#notificationsOpen > span {
    display: grid !important;
    place-items: center !important;
    width: 26px !important;
    height: 26px !important;
    background: transparent !important;
  }

  body .site-shell > header.topbar > .top-actions > button#authOpen,
  body .site-shell > header.topbar > .top-actions > button#authOpen img#profileAvatar {
    border-radius: 50% !important;
  }

  body .site-shell > header.topbar > .top-actions > button#authOpen img#profileAvatar {
    display: block !important;
    width: 34px !important;
    height: 34px !important;
  }

  /* Bottom desktop-rail transformed into the mobile dock. */
  body > nav.desktop-rail {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }

  body > nav.desktop-rail > a[data-view="profile"] {
    display: none !important;
  }

  body > nav.desktop-rail > button#mobileNavBurger.mobile-nav-burger {
    display: grid !important;
    place-items: center !important;
    order: 3 !important;
    width: 100% !important;
    height: 56px !important;
    min-height: 56px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: transparent !important;
    color: #8f939c !important;
    box-shadow: none !important;
  }

  body > nav.desktop-rail > a[data-view="home"] { order: 1 !important; }
  body > nav.desktop-rail > a[data-view="catalog"] { order: 2 !important; }
  body > nav.desktop-rail > a[data-view="favorites"] { order: 4 !important; }
  body > nav.desktop-rail > a[data-random-anime] { order: 5 !important; }

  body > nav.desktop-rail > a[data-view="history"],
  body > nav.desktop-rail > a[data-view="premium"],
  body > nav.desktop-rail > a[data-view="referrals"],
  body > nav.desktop-rail > span.desktop-rail-section-gap,
  body > nav.desktop-rail > span.desktop-rail-bottom-gap,
  body > nav.desktop-rail > button.desktop-rail-button {
    display: none !important;
  }

  body > nav.desktop-rail > button#mobileNavBurger .burger-lines {
    position: relative !important;
    display: block !important;
    width: 23px !important;
    height: 18px !important;
  }

  body > nav.desktop-rail > button#mobileNavBurger .burger-lines i {
    position: absolute !important;
    left: 0 !important;
    display: block !important;
    width: 23px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: currentColor !important;
    transition: top .22s ease, transform .3s cubic-bezier(.2,.85,.2,1), opacity .16s ease !important;
  }

  body > nav.desktop-rail > button#mobileNavBurger .burger-lines i:nth-child(1) { top: 1px !important; }
  body > nav.desktop-rail > button#mobileNavBurger .burger-lines i:nth-child(2) { top: 8px !important; }
  body > nav.desktop-rail > button#mobileNavBurger .burger-lines i:nth-child(3) { top: 15px !important; }

  body.mobile-drawer-open > nav.desktop-rail > button#mobileNavBurger .burger-lines i:nth-child(1) {
    top: 8px !important;
    transform: rotate(45deg) !important;
  }
  body.mobile-drawer-open > nav.desktop-rail > button#mobileNavBurger .burger-lines i:nth-child(2) {
    opacity: 0 !important;
  }
  body.mobile-drawer-open > nav.desktop-rail > button#mobileNavBurger .burger-lines i:nth-child(3) {
    top: 8px !important;
    transform: rotate(-45deg) !important;
  }
}


/* ===== MOBILE NAV V11 — REAL MOBILE DOCK + NO HEADER BOX ===== */
@media (max-width: 760px) {
  /* The search row floats over the page. No rectangular header panel. */
  html body .site-shell > header.topbar,
  html:root body[class] main.site-shell > header.topbar {
    position: absolute !important;
    inset: 0 0 auto 0 !important;
    top: 0 !important;
    z-index: 1500 !important;
    height: 58px !important;
    min-height: 58px !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* On non-hero pages reserve vertical room, but don't draw a header box. */
  body.is-library .home-page,
  body.is-library #catalogPage,
  body.is-library #favoritesPage,
  body.is-library #historyPage,
  body.is-profile #profilePage,
  body.is-settings #settingsPage {
    padding-top: 64px !important;
  }

  /* Home hero can sit directly underneath the floating search row. */
  body.is-home .home-page,
  body.is-home #catalog,
  body.is-home #continueCard {
    padding-top: 0 !important;
  }

  /* The real mobile nav (not desktop-rail). */
  html body .mobile-bottom-nav {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0,1fr)) !important;
    align-items: end !important;
  }

  html body .mobile-bottom-nav > .mobile-bottom-nav__menu {
    position: relative !important;
    display: flex !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    min-height: 56px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    padding: 7px 2px 3px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: transparent !important;
    color: #92959d !important;
    font: 700 9px/1 var(--font-reading) !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    appearance: none !important;
    cursor: pointer !important;
  }

  html body .mobile-bottom-nav > .mobile-bottom-nav__menu > span {
    display: block !important;
    margin: 0 !important;
    font: inherit !important;
    color: inherit !important;
  }

  html body .mobile-bottom-nav__burger {
    position: relative !important;
    display: block !important;
    width: 22px !important;
    height: 20px !important;
    margin-bottom: 1px !important;
    font-style: normal !important;
  }

  html body .mobile-bottom-nav__burger b {
    position: absolute !important;
    left: 0 !important;
    display: block !important;
    width: 22px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: currentColor !important;
    transform-origin: center !important;
    transition:
      top .2s ease,
      transform .28s cubic-bezier(.2,.85,.2,1),
      opacity .14s ease !important;
  }

  html body .mobile-bottom-nav__burger b:nth-child(1) { top: 2px !important; }
  html body .mobile-bottom-nav__burger b:nth-child(2) { top: 9px !important; }
  html body .mobile-bottom-nav__burger b:nth-child(3) { top: 16px !important; }

  html body.mobile-drawer-open .mobile-bottom-nav > .mobile-bottom-nav__menu {
    color: var(--accent-default, #ff9367) !important;
    background: color-mix(in srgb, var(--accent-default, #ff9367) 10%, transparent) !important;
  }

  html body.mobile-drawer-open .mobile-bottom-nav__burger b:nth-child(1) {
    top: 9px !important;
    transform: rotate(45deg) !important;
  }
  html body.mobile-drawer-open .mobile-bottom-nav__burger b:nth-child(2) {
    opacity: 0 !important;
    transform: scaleX(.3) !important;
  }
  html body.mobile-drawer-open .mobile-bottom-nav__burger b:nth-child(3) {
    top: 9px !important;
    transform: rotate(-45deg) !important;
  }

  /* Old raised profile slot must never come back. */
  html body .mobile-bottom-nav > .mobile-bottom-nav__profile {
    display: none !important;
  }
}


/* ===== MOBILE NAV V12 — NO HEADER BOX, FIXED SEARCH ROW ===== */
@media (max-width: 760px) {
  html body .site-shell > header.topbar,
  html:root body[class] main.site-shell > header.topbar {
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 2000 !important;
    height: 58px !important;
    min-height: 58px !important;
    padding: 0 7px !important;
    margin: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* No pseudo-layer may recreate the old top box. */
  html body .site-shell > header.topbar::before,
  html body .site-shell > header.topbar::after {
    content: none !important;
    display: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  /* Search/actions remain clickable while the invisible header shell itself is inert. */
  html body .site-shell > header.topbar {
    pointer-events: none !important;
  }

  html body .site-shell > header.topbar > form#searchForm,
  html body .site-shell > header.topbar > .top-actions,
  html body .site-shell > header.topbar button,
  html body .site-shell > header.topbar input,
  html body .site-shell > header.topbar a {
    pointer-events: auto !important;
  }

  /* Keep the search itself visually naked as well. */
  html body .site-shell > header.topbar > form#searchForm.top-search,
  html body .site-shell > header.topbar > form#searchForm.top-search:hover,
  html body .site-shell > header.topbar > form#searchForm.top-search:focus-within {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Homepage/hero starts under the fixed controls, not under a header rectangle. */
  html body.is-home .home-page,
  html body.is-home #catalog,
  html body.is-home #continueCard {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  /* Ordinary pages only reserve breathing room for the fixed controls. */
  html body:not(.is-home) main.site-shell > .home-page,
  html body.is-library main.site-shell > .home-page,
  html body.is-detail #detailPage,
  html body.is-watch #detailPage {
    scroll-margin-top: 64px !important;
  }
}


/* ===== MOBILE HEADER V13 — ANITYPE-STYLE FLOATING SEARCH PILL ===== */
@media (max-width: 760px) {
  html body .site-shell > header.topbar,
  html:root body[class] main.site-shell > header.topbar {
    position: fixed !important;
    top: 14px !important;
    left: 16px !important;
    right: 16px !important;
    bottom: auto !important;
    z-index: 2200 !important;

    display: grid !important;
    grid-template-columns: minmax(0,1fr) 42px 42px !important;
    grid-template-rows: 64px !important;
    align-items: center !important;
    gap: 2px !important;

    width: auto !important;
    height: 64px !important;
    min-height: 64px !important;
    padding: 0 12px !important;
    margin: 0 !important;

    border: 1px solid rgba(255,255,255,.045) !important;
    border-radius: 999px !important;
    background: rgba(7,7,9,.96) !important;
    background-image: none !important;
    box-shadow: 0 12px 34px rgba(0,0,0,.36) !important;
    backdrop-filter: blur(16px) saturate(125%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(125%) !important;
    overflow: hidden !important;
    pointer-events: auto !important;
  }

  /* Nothing except search + bell + avatar. */
  html body .site-shell > header.topbar > a.logo,
  html body .site-shell > header.topbar > #mobileMenuButton,
  html body .site-shell > header.topbar > .mobile-menu-button,
  html body .site-shell > header.topbar .header-premium-action,
  html body .site-shell > header.topbar .header-random-action,
  html body .site-shell > header.topbar #headerSearchSettings {
    display: none !important;
  }

  html body .site-shell > header.topbar > form#searchForm.top-search,
  html body .site-shell > header.topbar > form#searchForm.top-search:hover,
  html body .site-shell > header.topbar > form#searchForm.top-search:focus-within {
    grid-column: 1 !important;
    grid-row: 1 !important;

    display: grid !important;
    grid-template-columns: 44px minmax(0,1fr) !important;
    align-items: center !important;

    width: 100% !important;
    max-width: none !important;
    height: 64px !important;
    min-height: 64px !important;
    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow: visible !important;
  }

  html body .site-shell > header.topbar > form#searchForm.top-search::before,
  html body .site-shell > header.topbar > form#searchForm.top-search::after {
    content: none !important;
    display: none !important;
  }

  html body .site-shell > header.topbar > form#searchForm.top-search > button[type="submit"] {
    display: grid !important;
    place-items: center !important;

    width: 44px !important;
    min-width: 44px !important;
    height: 64px !important;
    padding: 0 !important;

    border: 0 !important;
    background: transparent !important;
    color: rgba(255,255,255,.58) !important;
    box-shadow: none !important;
  }

  html body .site-shell > header.topbar > form#searchForm.top-search > button[type="submit"]::before,
  html body .site-shell > header.topbar > form#searchForm.top-search > button[type="submit"]::after {
    content: none !important;
    display: none !important;
  }

  html body .site-shell > header.topbar > form#searchForm.top-search > button[type="submit"] svg {
    display: block !important;
    width: 25px !important;
    height: 25px !important;
    opacity: .76 !important;
  }

  html body .site-shell > header.topbar > form#searchForm.top-search > input#searchInput {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 64px !important;
    padding: 0 8px 0 2px !important;

    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    color: #f4f4f6 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 64px !important;
    text-align: left !important;
  }

  html body .site-shell > header.topbar > form#searchForm.top-search > input#searchInput::placeholder {
    color: rgba(255,255,255,.46) !important;
    opacity: 1 !important;
    font-weight: 500 !important;
  }

  html body .site-shell > header.topbar > .top-actions {
    display: contents !important;
  }

  html body .site-shell > header.topbar > .top-actions > button#notificationsOpen {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  html body .site-shell > header.topbar > .top-actions > button#authOpen {
    grid-column: 3 !important;
    grid-row: 1 !important;
  }

  html body .site-shell > header.topbar > .top-actions > button#notificationsOpen,
  html body .site-shell > header.topbar > .top-actions > button#authOpen {
    align-self: center !important;
    justify-self: center !important;
    display: grid !important;
    place-items: center !important;

    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 !important;
    margin: 0 !important;

    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html body .site-shell > header.topbar > .top-actions > button#notificationsOpen > span {
    display: grid !important;
    place-items: center !important;
    width: 34px !important;
    height: 34px !important;
    background: transparent !important;
  }

  html body .site-shell > header.topbar > .top-actions > button#notificationsOpen svg {
    width: 24px !important;
    height: 24px !important;
    opacity: .74 !important;
  }

  html body .site-shell > header.topbar > .top-actions > button#authOpen {
    border-radius: 50% !important;
  }

  html body .site-shell > header.topbar > .top-actions > button#authOpen img#profileAvatar {
    display: block !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
  }

  /* Let hero/background exist right behind the floating pill. */
  html body.is-home .home-page,
  html body.is-home #catalog,
  html body.is-home #continueCard {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
}

@media (max-width: 370px) {
  html body .site-shell > header.topbar,
  html:root body[class] main.site-shell > header.topbar {
    top: 10px !important;
    left: 10px !important;
    right: 10px !important;
    grid-template-columns: minmax(0,1fr) 38px 38px !important;
    height: 60px !important;
    min-height: 60px !important;
    grid-template-rows: 60px !important;
    padding: 0 10px !important;
  }

  html body .site-shell > header.topbar > form#searchForm.top-search,
  html body .site-shell > header.topbar > form#searchForm.top-search > button[type="submit"],
  html body .site-shell > header.topbar > form#searchForm.top-search > input#searchInput {
    height: 60px !important;
    min-height: 60px !important;
    line-height: 60px !important;
  }

  html body .site-shell > header.topbar > form#searchForm.top-search > input#searchInput {
    font-size: 15px !important;
  }

  html body .site-shell > header.topbar > .top-actions > button#authOpen img#profileAvatar {
    width: 35px !important;
    height: 35px !important;
  }
}


/* ===== MOBILE HEADER V14 — COMPACT TOP + LOWER BOTTOM NAV ===== */
@media (max-width: 760px) {
  /* TOP HEADER: make it shorter and remove the accidental tall block look */
  html body .site-shell > header.topbar,
  html:root body[class] main.site-shell > header.topbar {
    top: 8px !important;
    left: 10px !important;
    right: 10px !important;
    bottom: auto !important;

    height: 52px !important;
    min-height: 52px !important;
    grid-template-rows: 52px !important;
    grid-template-columns: minmax(0,1fr) 34px 34px !important;
    gap: 0 !important;
    padding: 0 10px !important;

    background: rgba(7,7,9,.94) !important;
    background-color: rgba(7,7,9,.94) !important;
    border: 1px solid rgba(255,255,255,.035) !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.28) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    overflow: hidden !important;
  }

  html body .site-shell > header.topbar::before,
  html body .site-shell > header.topbar::after,
  html body .site-shell > header.topbar *::before,
  html body .site-shell > header.topbar *::after {
    box-shadow: none !important;
  }

  html body .site-shell > header.topbar > form#searchForm.top-search,
  html body .site-shell > header.topbar > form#searchForm.top-search:hover,
  html body .site-shell > header.topbar > form#searchForm.top-search:focus-within {
    height: 52px !important;
    min-height: 52px !important;
    grid-template-columns: 34px minmax(0,1fr) !important;
    border: 0 !important;
    background: transparent !important;
  }

  html body .site-shell > header.topbar > form#searchForm.top-search > button[type="submit"] {
    width: 34px !important;
    min-width: 34px !important;
    height: 52px !important;
    min-height: 52px !important;
  }

  html body .site-shell > header.topbar > form#searchForm.top-search > button[type="submit"] svg {
    width: 19px !important;
    height: 19px !important;
    opacity: .72 !important;
  }

  html body .site-shell > header.topbar > form#searchForm.top-search > input#searchInput {
    height: 52px !important;
    min-height: 52px !important;
    line-height: 52px !important;
    padding: 0 6px 0 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
  }

  html body .site-shell > header.topbar > form#searchForm.top-search > input#searchInput::placeholder {
    font-size: 14px !important;
    color: rgba(255,255,255,.46) !important;
  }

  html body .site-shell > header.topbar > .top-actions > button#notificationsOpen,
  html body .site-shell > header.topbar > .top-actions > button#authOpen {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
  }

  html body .site-shell > header.topbar > .top-actions > button#notificationsOpen > span {
    width: 28px !important;
    height: 28px !important;
  }

  html body .site-shell > header.topbar > .top-actions > button#notificationsOpen svg {
    width: 18px !important;
    height: 18px !important;
    opacity: .72 !important;
  }

  html body .site-shell > header.topbar > .top-actions > button#authOpen img#profileAvatar {
    width: 30px !important;
    height: 30px !important;
  }

  /* BOTTOM NAV: reduce height and vertically center items */
  html body nav.mobile-bottom-nav,
  html body .mobile-bottom-nav {
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    padding: 6px 10px 7px !important;
    border-radius: 18px 18px 0 0 !important;
    align-items: center !important;
  }

  html body nav.mobile-bottom-nav a,
  html body nav.mobile-bottom-nav button,
  html body .mobile-bottom-nav a,
  html body .mobile-bottom-nav button,
  html body .mobile-bottom-nav .nav-item,
  html body .mobile-bottom-nav .nav-link {
    height: 100% !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 2px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
  }

  html body nav.mobile-bottom-nav svg,
  html body .mobile-bottom-nav svg {
    width: 18px !important;
    height: 18px !important;
  }

  html body nav.mobile-bottom-nav span,
  html body .mobile-bottom-nav span,
  html body nav.mobile-bottom-nav .label,
  html body .mobile-bottom-nav .label {
    line-height: 1.05 !important;
  }

  /* If there is a raised center button, keep it tighter */
  html body .mobile-bottom-nav .is-active,
  html body .mobile-bottom-nav .active,
  html body nav.mobile-bottom-nav .is-active,
  html body nav.mobile-bottom-nav .active {
    transform: none !important;
  }

  html body .mobile-bottom-nav .nav-item--center,
  html body nav.mobile-bottom-nav .nav-item--center,
  html body .mobile-bottom-nav .center-item,
  html body nav.mobile-bottom-nav .center-item {
    margin-top: 0 !important;
  }
}

@media (max-width: 370px) {
  html body .site-shell > header.topbar,
  html:root body[class] main.site-shell > header.topbar {
    top: 6px !important;
    left: 8px !important;
    right: 8px !important;
    height: 50px !important;
    min-height: 50px !important;
    grid-template-rows: 50px !important;
    grid-template-columns: minmax(0,1fr) 32px 32px !important;
    padding: 0 9px !important;
  }

  html body .site-shell > header.topbar > form#searchForm.top-search,
  html body .site-shell > header.topbar > form#searchForm.top-search:hover,
  html body .site-shell > header.topbar > form#searchForm.top-search:focus-within {
    height: 50px !important;
    min-height: 50px !important;
    grid-template-columns: 32px minmax(0,1fr) !important;
  }

  html body .site-shell > header.topbar > form#searchForm.top-search > button[type="submit"],
  html body .site-shell > header.topbar > form#searchForm.top-search > input#searchInput {
    height: 50px !important;
    min-height: 50px !important;
    line-height: 50px !important;
  }

  html body .site-shell > header.topbar > form#searchForm.top-search > input#searchInput {
    font-size: 13.5px !important;
  }

  html body .site-shell > header.topbar > .top-actions > button#notificationsOpen,
  html body .site-shell > header.topbar > .top-actions > button#authOpen {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
  }

  html body .site-shell > header.topbar > .top-actions > button#authOpen img#profileAvatar {
    width: 28px !important;
    height: 28px !important;
  }

  html body nav.mobile-bottom-nav,
  html body .mobile-bottom-nav {
    height: 57px !important;
    min-height: 57px !important;
    max-height: 57px !important;
    padding: 5px 9px 6px !important;
  }
}


/* ===== MOBILE HEADER V15 — PIXEL POLISH AGAINST REFERENCE ===== */
@media (max-width: 760px) {
  /* Floating pill: slightly narrower, lower, and visually lighter. */
  html body .site-shell > header.topbar,
  html:root body[class] main.site-shell > header.topbar {
    top: 12px !important;
    left: 14px !important;
    right: 14px !important;

    height: 50px !important;
    min-height: 50px !important;
    grid-template-rows: 50px !important;
    grid-template-columns: minmax(0,1fr) 32px 32px !important;
    gap: 4px !important;

    padding: 0 10px 0 12px !important;

    border: 0 !important;
    border-radius: 28px !important;
    background: rgba(6,6,8,.965) !important;
    box-shadow: 0 10px 26px rgba(0,0,0,.32) !important;
    backdrop-filter: blur(10px) saturate(115%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(115%) !important;
  }

  html body .site-shell > header.topbar > form#searchForm.top-search,
  html body .site-shell > header.topbar > form#searchForm.top-search:hover,
  html body .site-shell > header.topbar > form#searchForm.top-search:focus-within {
    height: 50px !important;
    min-height: 50px !important;
    grid-template-columns: 30px minmax(0,1fr) !important;
  }

  html body .site-shell > header.topbar > form#searchForm.top-search > button[type="submit"] {
    width: 30px !important;
    min-width: 30px !important;
    height: 50px !important;
    min-height: 50px !important;
  }

  html body .site-shell > header.topbar > form#searchForm.top-search > button[type="submit"] svg {
    width: 20px !important;
    height: 20px !important;
    opacity: .68 !important;
  }

  html body .site-shell > header.topbar > form#searchForm.top-search > input#searchInput {
    height: 50px !important;
    min-height: 50px !important;
    line-height: 50px !important;
    padding: 0 6px 0 5px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: left !important;
    letter-spacing: -.01em !important;
  }

  html body .site-shell > header.topbar > form#searchForm.top-search > input#searchInput::placeholder {
    color: rgba(255,255,255,.43) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
  }

  /* Smaller right controls, closer to the reference. */
  html body .site-shell > header.topbar > .top-actions > button#notificationsOpen,
  html body .site-shell > header.topbar > .top-actions > button#authOpen {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
  }

  html body .site-shell > header.topbar > .top-actions > button#notificationsOpen > span {
    width: 24px !important;
    height: 24px !important;
  }

  html body .site-shell > header.topbar > .top-actions > button#notificationsOpen svg {
    width: 17px !important;
    height: 17px !important;
    opacity: .7 !important;
  }

  html body .site-shell > header.topbar > .top-actions > button#authOpen img#profileAvatar {
    width: 29px !important;
    height: 29px !important;
  }

  /* Bottom dock: lower profile, less vertical bulk, content optically centered. */
  html body nav.mobile-bottom-nav,
  html body .mobile-bottom-nav {
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;

    padding: 4px 8px 5px !important;
    border-radius: 16px 16px 0 0 !important;

    align-items: center !important;
    box-shadow: 0 -5px 18px rgba(0,0,0,.18) !important;
  }

  html body nav.mobile-bottom-nav > *,
  html body .mobile-bottom-nav > * {
    min-height: 0 !important;
    height: 45px !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1px !important;
    padding: 0 !important;
  }

  html body .mobile-bottom-nav a i,
  html body .mobile-bottom-nav button i,
  html body nav.mobile-bottom-nav a i,
  html body nav.mobile-bottom-nav button i {
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
  }

  html body .mobile-bottom-nav svg,
  html body nav.mobile-bottom-nav svg {
    width: 17px !important;
    height: 17px !important;
  }

  html body .mobile-bottom-nav > * > span,
  html body nav.mobile-bottom-nav > * > span {
    margin: 1px 0 0 !important;
    font-size: 8px !important;
    line-height: 1 !important;
  }

  html body .mobile-bottom-nav__burger {
    width: 20px !important;
    height: 17px !important;
    margin: 0 !important;
  }

  html body .mobile-bottom-nav__burger b {
    width: 20px !important;
    height: 2px !important;
  }

  html body .mobile-bottom-nav__burger b:nth-child(1) { top: 1px !important; }
  html body .mobile-bottom-nav__burger b:nth-child(2) { top: 7px !important; }
  html body .mobile-bottom-nav__burger b:nth-child(3) { top: 13px !important; }

  html body.mobile-drawer-open .mobile-bottom-nav__burger b:nth-child(1),
  html body.mobile-drawer-open .mobile-bottom-nav__burger b:nth-child(3) {
    top: 7px !important;
  }
}

@media (max-width: 370px) {
  html body .site-shell > header.topbar,
  html:root body[class] main.site-shell > header.topbar {
    top: 10px !important;
    left: 10px !important;
    right: 10px !important;
    height: 48px !important;
    min-height: 48px !important;
    grid-template-rows: 48px !important;
    grid-template-columns: minmax(0,1fr) 30px 30px !important;
    padding: 0 9px 0 10px !important;
  }

  html body .site-shell > header.topbar > form#searchForm.top-search,
  html body .site-shell > header.topbar > form#searchForm.top-search > button[type="submit"],
  html body .site-shell > header.topbar > form#searchForm.top-search > input#searchInput {
    height: 48px !important;
    min-height: 48px !important;
    line-height: 48px !important;
  }

  html body .site-shell > header.topbar > form#searchForm.top-search > input#searchInput {
    font-size: 13px !important;
  }

  html body nav.mobile-bottom-nav,
  html body .mobile-bottom-nav {
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
  }
}


/* ===== MOBILE HEADER V16 — ANITYPE 1:1 PASS ===== */
@media (max-width: 760px) {
  /* Remove all old header extras on mobile. */
  html body .site-shell > header.topbar > a.logo,
  html body .site-shell > header.topbar > button#mobileMenuButton,
  html body .site-shell > header.topbar > .top-actions > a.header-random-action,
  html body .site-shell > header.topbar > .top-actions > a.header-premium-action,
  html body .site-shell > header.topbar > .top-actions > .notifications-popover {
    display: none !important;
  }

  /* Main pill — only search + bell + avatar, fixed and not scrolling. */
  html body .site-shell > header.topbar,
  html:root body[class] main.site-shell > header.topbar {
    position: fixed !important;
    top: 14px !important;
    left: 16px !important;
    right: 16px !important;
    z-index: 1200 !important;

    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto !important;
    grid-template-rows: 54px !important;
    align-items: center !important;
    gap: 8px !important;

    height: 54px !important;
    min-height: 54px !important;
    margin: 0 !important;
    padding: 0 8px 0 12px !important;

    border: none !important;
    border-radius: 28px !important;
    background: rgba(0, 0, 0, .96) !important;
    box-shadow: 0 10px 28px rgba(0,0,0,.32) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
  }

  html body .site-shell > header.topbar::before,
  html body .site-shell > header.topbar::after,
  html body .site-shell > header.topbar *::before,
  html body .site-shell > header.topbar *::after {
    box-shadow: none !important;
  }

  /* Search area looks like native content inside the pill, no extra inner block. */
  html body .site-shell > header.topbar > form#searchForm.top-search,
  html body .site-shell > header.topbar > form#searchForm.top-search:hover,
  html body .site-shell > header.topbar > form#searchForm.top-search:focus-within {
    display: grid !important;
    grid-template-columns: 28px minmax(0,1fr) !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 54px !important;
    min-height: 54px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  html body .site-shell > header.topbar > form#searchForm.top-search > button[type="submit"] {
    width: 28px !important;
    min-width: 28px !important;
    height: 54px !important;
    min-height: 54px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html body .site-shell > header.topbar > form#searchForm.top-search > button[type="submit"] svg {
    width: 19px !important;
    height: 19px !important;
    color: rgba(255,255,255,.78) !important;
    opacity: .88 !important;
    stroke-width: 2.1 !important;
  }

  html body .site-shell > header.topbar > form#searchForm.top-search > input#searchInput {
    width: 100% !important;
    min-width: 0 !important;
    height: 54px !important;
    min-height: 54px !important;
    line-height: 54px !important;
    margin: 0 !important;
    padding: 0 8px 0 8px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-align: left !important;
    letter-spacing: -.015em !important;
  }

  html body .site-shell > header.topbar > form#searchForm.top-search > input#searchInput::placeholder {
    color: rgba(255,255,255,.50) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
  }

  /* Right side actions are just inline controls, no separate box. */
  html body .site-shell > header.topbar > .top-actions {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    width: auto !important;
    min-width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  html body .site-shell > header.topbar > .top-actions > button#notificationsOpen,
  html body .site-shell > header.topbar > .top-actions > button#authOpen {
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  html body .site-shell > header.topbar > .top-actions > button#notificationsOpen > span {
    width: 18px !important;
    height: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  html body .site-shell > header.topbar > .top-actions > button#notificationsOpen svg {
    width: 17px !important;
    height: 17px !important;
    color: rgba(255,255,255,.78) !important;
    opacity: .88 !important;
  }

  html body .site-shell > header.topbar > .top-actions > button#notificationsOpen b#notificationsBadge {
    top: -4px !important;
    right: -6px !important;
    min-width: 13px !important;
    height: 13px !important;
    padding: 0 3px !important;
    font-size: 8px !important;
    line-height: 13px !important;
  }

  html body .site-shell > header.topbar > .top-actions > button#authOpen img#profileAvatar {
    display: block !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    background: #1b72e8 !important;
    box-shadow: none !important;
  }

  /* Bottom nav lower and tighter. */
  html body nav.mobile-bottom-nav,
  html body .mobile-bottom-nav {
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 3px 8px 4px !important;
    border-radius: 18px 18px 0 0 !important;
  }

  html body nav.mobile-bottom-nav > *,
  html body .mobile-bottom-nav > * {
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    gap: 2px !important;
  }

  html body .mobile-bottom-nav > * > span,
  html body nav.mobile-bottom-nav > * > span {
    font-size: 8px !important;
    line-height: 1 !important;
    margin-top: 0 !important;
  }

  html body .mobile-bottom-nav a i,
  html body .mobile-bottom-nav button i,
  html body nav.mobile-bottom-nav a i,
  html body nav.mobile-bottom-nav button i {
    width: 18px !important;
    height: 18px !important;
  }

  html body .mobile-bottom-nav svg,
  html body nav.mobile-bottom-nav svg {
    width: 16px !important;
    height: 16px !important;
  }

  html body .mobile-bottom-nav__burger {
    width: 18px !important;
    height: 14px !important;
  }

  html body .mobile-bottom-nav__burger b {
    width: 18px !important;
    height: 2px !important;
  }

  html body .mobile-bottom-nav__burger b:nth-child(1) { top: 0 !important; }
  html body .mobile-bottom-nav__burger b:nth-child(2) { top: 6px !important; }
  html body .mobile-bottom-nav__burger b:nth-child(3) { top: 12px !important; }

  html body.mobile-drawer-open .mobile-bottom-nav__burger b:nth-child(1),
  html body.mobile-drawer-open .mobile-bottom-nav__burger b:nth-child(3) {
    top: 6px !important;
  }
}

@media (max-width: 370px) {
  html body .site-shell > header.topbar,
  html:root body[class] main.site-shell > header.topbar {
    top: 12px !important;
    left: 12px !important;
    right: 12px !important;
    height: 52px !important;
    min-height: 52px !important;
    grid-template-rows: 52px !important;
    padding: 0 8px 0 11px !important;
  }

  html body .site-shell > header.topbar > form#searchForm.top-search,
  html body .site-shell > header.topbar > form#searchForm.top-search > button[type="submit"],
  html body .site-shell > header.topbar > form#searchForm.top-search > input#searchInput {
    height: 52px !important;
    min-height: 52px !important;
    line-height: 52px !important;
  }

  html body .site-shell > header.topbar > .top-actions {
    gap: 9px !important;
  }

  html body nav.mobile-bottom-nav,
  html body .mobile-bottom-nav {
    height: 49px !important;
    min-height: 49px !important;
    max-height: 49px !important;
  }
}



/* ===== MOBILE HEADER V17 — kill box, shrink pill ===== */
@media (max-width: 760px) {
  html body .site-shell > header.topbar,
  html:root body[class] main.site-shell > header.topbar {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    top: 12px !important;
    left: 12px !important;
    right: 12px !important;
    overflow: visible !important;
  }

  html body .site-shell > header.topbar > form#searchForm.top-search,
  html body .site-shell > header.topbar > form#searchForm.top-search:hover,
  html body .site-shell > header.topbar > form#searchForm.top-search:focus-within {
    grid-column: 1 / 4 !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 64px 0 14px !important;
    border-radius: 999px !important;
    background: rgba(0,0,0,.96) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.26) !important;
  }

  html body .site-shell > header.topbar > form#searchForm.top-search > button[type="submit"] {
    width: 24px !important;
    min-width: 24px !important;
    height: 42px !important;
    min-height: 42px !important;
  }

  html body .site-shell > header.topbar > form#searchForm.top-search > button[type="submit"] svg {
    width: 16px !important;
    height: 16px !important;
  }

  html body .site-shell > header.topbar > form#searchForm.top-search > input#searchInput {
    height: 42px !important;
    min-height: 42px !important;
    line-height: 42px !important;
    font-size: 12px !important;
    font-weight: 560 !important;
    text-align: left !important;
    padding: 0 0 0 6px !important;
  }

  html body .site-shell > header.topbar > form#searchForm.top-search > input#searchInput::placeholder {
    font-size: 12px !important;
    color: rgba(255,255,255,.52) !important;
  }

  html body .site-shell > header.topbar > .top-actions > button#notificationsOpen,
  html body .site-shell > header.topbar > .top-actions > button#authOpen {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
  }

  html body .site-shell > header.topbar > .top-actions > button#notificationsOpen > span {
    width: 18px !important;
    height: 18px !important;
  }

  html body .site-shell > header.topbar > .top-actions > button#notificationsOpen svg {
    width: 15px !important;
    height: 15px !important;
  }

  html body .site-shell > header.topbar > .top-actions > button#authOpen img#profileAvatar {
    width: 26px !important;
    height: 26px !important;
  }

  html body nav.mobile-bottom-nav,
  html body .mobile-bottom-nav {
    height: 47px !important;
    min-height: 47px !important;
    max-height: 47px !important;
    padding: 2px 8px 3px !important;
  }

  html body nav.mobile-bottom-nav > *,
  html body .mobile-bottom-nav > * {
    height: 39px !important;
    min-height: 39px !important;
    align-content: center !important;
    align-items: center !important;
    justify-items: center !important;
  }

  html body .mobile-bottom-nav > * > span,
  html body nav.mobile-bottom-nav > * > span {
    font-size: 8px !important;
  }
}


/* ===== MOBILE HEADER V18 — profile left of bell, smaller ===== */
@media (max-width: 760px) {
  html body .site-shell > header.topbar {
    grid-template-columns: minmax(0, 1fr) 24px 22px !important;
  }
  html body .site-shell > header.topbar > form#searchForm.top-search {
    padding-right: 60px !important;
  }
  html body .site-shell > header.topbar > .top-actions > button#authOpen {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    justify-self: center !important;
    align-self: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  html body .site-shell > header.topbar > .top-actions > button#authOpen img#profileAvatar {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
  }
  html body .site-shell > header.topbar > .top-actions > button#notificationsOpen {
    grid-column: 3 !important;
    grid-row: 1 !important;
    width: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
    justify-self: center !important;
    align-self: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}


/* ===== MOBILE HEADER V19 — REMOVE RESERVED TOP BLACK GAP ===== */
@media (max-width: 760px) {
  html:root body.is-home main.site-shell,
  html body.is-home main.site-shell {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  html body.is-home main.site-shell > .home-page,
  html body.is-home main.site-shell #catalog,
  html body.is-home main.site-shell #continueCard,
  html body.is-home main.site-shell .continue-card,
  html body.is-home main.site-shell .hero-carousel,
  html body.is-home main.site-shell .hero-welcome {
    margin-top: 0 !important;
  }
}


/* ===== MOBILE NAV V20 — ALIGN MENU WITH OTHER ITEMS ===== */
@media (max-width: 760px) {
  html body nav.mobile-bottom-nav,
  html body .mobile-bottom-nav {
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 3px 8px 4px !important;
    align-items: center !important;
    overflow: hidden !important;
  }

  html body .mobile-bottom-nav > a,
  html body .mobile-bottom-nav > button {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: none !important;
  }

  html body .mobile-bottom-nav > a > i,
  html body .mobile-bottom-nav > button > i {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    margin: 0 !important;
    flex: 0 0 18px !important;
  }

  html body .mobile-bottom-nav > a > span,
  html body .mobile-bottom-nav > button > span {
    position: static !important;
    display: block !important;
    margin: 1px 0 0 !important;
    padding: 0 !important;
    font-size: 8px !important;
    line-height: 1 !important;
    transform: none !important;
    white-space: nowrap !important;
  }

  html body .mobile-bottom-nav > button#mobileBottomMenu {
    top: 0 !important;
    bottom: auto !important;
    align-self: center !important;
    justify-self: stretch !important;
  }

  html body .mobile-bottom-nav > button#mobileBottomMenu > .mobile-bottom-nav__burger {
    position: relative !important;
    width: 18px !important;
    height: 14px !important;
    min-width: 18px !important;
    min-height: 14px !important;
    margin: 0 !important;
    flex: 0 0 14px !important;
  }

  html body .mobile-bottom-nav > button#mobileBottomMenu > span {
    margin-top: 3px !important;
  }
}


/* ===== MOBILE NAV V21 — RESTORE MENU LABEL ===== */
@media (max-width: 760px) {
  html body .mobile-bottom-nav > button#mobileBottomMenu {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    gap: 3px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    color: #9a9da5 !important;
    font-family: var(--font-reading, Arial, sans-serif) !important;
  }

  html body .mobile-bottom-nav > button#mobileBottomMenu > .mobile-bottom-nav__burger {
    position: relative !important;
    display: block !important;
    width: 18px !important;
    height: 14px !important;
    min-width: 18px !important;
    min-height: 14px !important;
    max-width: 18px !important;
    max-height: 14px !important;
    margin: 0 !important;
    flex: 0 0 14px !important;
    color: inherit !important;
  }

  html body .mobile-bottom-nav > button#mobileBottomMenu > span {
    position: static !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    min-height: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    color: #9a9da5 !important;
    font-family: var(--font-reading, Arial, sans-serif) !important;
    font-size: 8px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-indent: 0 !important;
    transform: none !important;
    white-space: nowrap !important;
  }

  html body.mobile-drawer-open .mobile-bottom-nav > button#mobileBottomMenu > span {
    color: var(--accent-default, #ff9367) !important;
  }
}

