/* PirateMedia — site header refresh */
:root {
  --site-header-h: 64px;
  --header-accent: #ff00ff;
  --header-accent-2: #00ffff;
  --header-bg: rgba(6, 6, 10, 0.78);
  --header-bg-scrolled: rgba(6, 6, 10, 0.94);
  --header-border: rgba(255, 255, 255, 0.07);
  --header-text: rgba(255, 255, 255, 0.72);
  --header-text-hover: #fff;
  --header-radius: 999px;
}

@media (max-width: 900px) {
  :root {
    --site-header-h: 60px;
  }
}

/* ── Shell ── */
header.navbar.navbar-new.site-header,
.navbar.navbar-new.site-header {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  z-index: 10000;
  height: var(--site-header-h);
  max-height: var(--site-header-h);
  padding: 0 !important;
  gap: 0;
  flex-wrap: nowrap;
  /* Keep visible so fixed mobile menu / search modal (inside header) are not clipped */
  overflow: visible;
  background: var(--header-bg);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  border-bottom: 1px solid var(--header-border);
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

header.navbar.navbar-new.site-header::after,
.navbar.navbar-new.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 255, 255, 0.35) 22%,
    rgba(255, 0, 255, 0.55) 50%,
    rgba(0, 255, 255, 0.35) 78%,
    transparent 100%
  );
  pointer-events: none;
  opacity: 0.9;
}

header.navbar.navbar-new.site-header.is-scrolled,
.navbar.navbar-new.site-header.is-scrolled {
  background: var(--header-bg-scrolled);
  border-bottom-color: rgba(255, 0, 255, 0.12);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(255, 0, 255, 0.06);
}

.site-header-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: 100%;
  max-width: min(1680px, 100%);
  min-width: 0;
  height: var(--site-header-h);
  margin: 0 auto;
  padding: 0 clamp(0.75rem, 2.5vw, 1.75rem);
  gap: clamp(0.4rem, 1vw, 1rem);
  box-sizing: border-box;
  /* Keep bar visible; nav scrolls horizontally if needed */
  overflow: visible;
}

/* ── Logo ── */
.site-header .logo {
  flex-shrink: 0;
  z-index: 2;
}

.site-header .logo-image {
  height: 38px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 0, 255, 0.2));
  transition: filter 0.25s ease, transform 0.25s ease;
}

.site-header .logo:hover .logo-image {
  filter: drop-shadow(0 0 18px rgba(0, 255, 255, 0.35));
  transform: scale(1.03);
}

/* ── Nav links ── */
.site-header .nav-links-container {
  /* 0% basis so this region yields space to logo + actions instead of growing the bar */
  flex: 1 1 0%;
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  /* Fade only the left edge (scroll hint); do not clip the last nav item on the right */
  mask-image: linear-gradient(to right, transparent, #000 14px, #000 100%);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14px, #000 100%);
  padding-right: 4px;
  margin-right: 2px;
}

.site-header--signed-in .nav-links-container {
  margin-right: 4px;
}

.site-header--signed-in .nav-links {
  gap: 0.1rem;
  padding-right: 4px;
}

.site-header--signed-in .nav-item {
  padding: 0.38rem 0.5rem;
  gap: 0.3rem;
  font-size: 0.78rem;
}

/* Account + Leaderboard: icon-only in the top nav */
.site-header--signed-in .nav-item--auth .nav-text {
  display: none;
}

.site-header--signed-in .nav-item--auth {
  padding: 0.38rem 0.48rem;
}

.site-header--signed-in .nav-item--auth .nav-svg-icon {
  margin: 0;
}

.site-header--signed-in .header-actions {
  gap: 0.3rem;
  flex: 0 0 auto;
}

.site-header--signed-in .header-chat-btn,
.site-header--signed-in .header-discord-btn {
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}

.site-header--signed-in .header-search-box {
  max-width: min(200px, 18vw);
}

.site-header--signed-in .header-search-btn {
  min-width: min(132px, 14vw);
  max-width: 200px;
}

.site-header .nav-links-container::-webkit-scrollbar {
  display: none;
}

.site-header .nav-links {
  display: flex;
  flex-wrap: nowrap;
  flex-shrink: 0;
  width: max-content;
  gap: 0.2rem;
  margin: 0;
  padding: 0 4px;
  list-style: none;
}

.site-header .nav-links > li {
  flex-shrink: 0;
}

.site-header .nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: var(--header-text);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.42rem 0.72rem;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: var(--header-radius);
  border: 1px solid transparent;
  background: transparent;
  text-decoration: none;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.site-header .nav-item .nav-svg-icon {
  width: 15px;
  height: 15px;
  opacity: 0.88;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.site-header .nav-item:hover {
  color: var(--header-text-hover);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.site-header .nav-item.active {
  color: #fff;
  background: linear-gradient(
    135deg,
    rgba(255, 0, 255, 0.2) 0%,
    rgba(0, 255, 255, 0.08) 100%
  );
  border-color: rgba(255, 0, 255, 0.35);
  box-shadow: 0 0 22px rgba(255, 0, 255, 0.12);
}

.site-header .nav-item.active .nav-svg-icon {
  color: #f5d0fe;
  opacity: 1;
}

/* ── Actions (Chat + Discord + search) ── */
.site-header .header-actions {
  display: flex !important;
  visibility: visible !important;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  margin-left: auto !important;
  padding-left: 4px;
  z-index: 2;
}

.site-header .header-chat-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-shrink: 0;
  min-height: 40px;
  padding: 0.48rem 0.85rem;
  border-radius: var(--header-radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--header-text) !important;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.site-header .header-chat-btn:hover {
  color: var(--header-text-hover) !important;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(0, 255, 255, 0.35);
}

.site-header .header-chat-btn.is-active {
  color: #fff !important;
  background: linear-gradient(
    135deg,
    rgba(255, 0, 255, 0.2) 0%,
    rgba(0, 255, 255, 0.08) 100%
  );
  border-color: rgba(255, 0, 255, 0.35);
  box-shadow: 0 0 22px rgba(255, 0, 255, 0.12);
}

.site-header .header-chat-icon {
  flex-shrink: 0;
  opacity: 0.9;
}

.site-header .header-discord-btn {
  display: inline-flex !important;
  visibility: visible !important;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.48rem 0.95rem;
  min-height: 40px;
  border-radius: var(--header-radius);
  background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff !important;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 14px rgba(88, 101, 242, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.site-header .header-discord-btn:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
  filter: brightness(1.06);
}

.site-header .header-search-box {
  display: flex !important;
  visibility: visible !important;
  align-items: center;
  flex-shrink: 0;
  max-width: min(280px, 28vw);
}

.site-header .header-search-btn {
  display: flex !important;
  visibility: visible !important;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-width: min(200px, 22vw);
  max-width: 280px;
  min-height: 40px;
  padding: 0.45rem 0.5rem 0.45rem 0.85rem;
  border-radius: var(--header-radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.site-header .header-search-btn:hover,
.site-header .header-search-btn:focus-visible {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(0, 255, 255, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 0, 255, 0.1),
    0 0 28px rgba(0, 255, 255, 0.08);
  outline: none;
}

.site-header .header-search-icon {
  color: rgba(0, 255, 255, 0.75);
  opacity: 1;
  flex-shrink: 0;
}

.site-header .header-search-text {
  flex: 1;
  text-align: left;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-header .header-search-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 0.15rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--header-accent), #b800b8);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(255, 0, 255, 0.35);
}

/* ── Mobile menu button ── */
.site-header .mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.site-header .mobile-menu-btn:hover {
  background: rgba(255, 0, 255, 0.1);
  border-color: rgba(255, 0, 255, 0.25);
}

.site-header .mobile-menu-btn span {
  background: linear-gradient(90deg, #fff, rgba(0, 255, 255, 0.9));
}

/* ── Tablet / mobile ── */
@media (max-width: 900px) {
  .site-header .nav-links-container {
    display: none !important;
  }

  /* Override legacy styles.css navbar height (56px) vs bar (60px) — caused menu btn to sit high */
  header.navbar.navbar-new.site-header,
  .navbar.navbar-new.site-header {
    display: block !important;
    height: var(--site-header-h) !important;
    max-height: var(--site-header-h) !important;
    min-height: var(--site-header-h) !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  .site-header .site-header-bar {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    grid-template-areas: "menu logo actions";
    align-items: center;
    height: var(--site-header-h);
    min-height: var(--site-header-h);
    column-gap: 0.4rem;
    padding-left: max(0.65rem, env(safe-area-inset-left));
    padding-right: max(0.65rem, env(safe-area-inset-right));
  }

  .site-header .mobile-menu-btn {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: stretch !important;
    grid-area: menu;
    justify-self: start;
    align-self: center;
    order: unset !important;
    margin: 0 !important;
    position: relative !important;
    top: auto !important;
    transform: none !important;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 9px;
    border-radius: 10px;
    box-sizing: border-box;
    overflow: visible;
  }

  .site-header .mobile-menu-btn span {
    display: block !important;
    width: 100%;
    min-width: 18px;
    height: 2px;
    min-height: 2px;
    flex-shrink: 0;
    border-radius: 2px;
    background: #fff !important;
    opacity: 1 !important;
  }

  .site-header.navbar.navbar-new .logo {
    grid-area: logo;
    flex: none !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 0 !important;
    height: auto !important;
    justify-self: center;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    pointer-events: auto;
    z-index: 1;
    order: unset !important;
  }

  .site-header .logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    line-height: 0;
  }

  .site-header .logo-image {
    height: 32px;
    width: auto;
    max-width: min(128px, 38vw);
    object-fit: contain;
    object-position: center;
    transform: none !important;
  }

  .site-header .logo:hover .logo-image {
    transform: none !important;
    filter: drop-shadow(0 0 12px rgba(255, 0, 255, 0.35));
  }

  .site-header .header-actions {
    grid-area: actions;
    order: unset;
    margin-left: 0 !important;
    justify-self: end;
    align-self: center;
    gap: 0.3rem;
    padding-left: 0;
  }

  .site-header .header-discord-text,
  .site-header .header-chat-text {
    display: none;
  }

  .site-header .header-chat-btn {
    min-width: 42px;
    width: 42px;
    padding: 0;
  }

  .site-header .header-discord-btn {
    padding: 0 !important;
    min-width: 42px;
    width: 42px;
    min-height: 42px;
  }

  .site-header .header-search-box {
    max-width: none;
    width: 42px;
  }

  .site-header .header-search-btn {
    min-width: 42px;
    width: 42px;
    max-width: 42px;
    padding: 0;
    justify-content: center;
  }

  .site-header .header-search-text,
  .site-header .header-search-arrow {
    display: none !important;
  }

  .site-header .header-search-icon {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 768px) {
  main,
  .hero-section,
  .sports-page-new,
  .watch-section,
  body > section:first-of-type {
    padding-top: calc(var(--site-header-h) + 6px);
  }
}

/*
 * Signed-in: compress Chat/Discord/search so actions stay in the viewport.
 */
@media (max-width: 1600px) {
  .site-header--signed-in .header-chat-text,
  .site-header--signed-in .header-discord-text {
    display: none;
  }

  .site-header--signed-in .header-chat-btn {
    min-width: 40px;
    width: 40px;
    padding: 0;
  }

  .site-header--signed-in .header-discord-btn {
    min-width: 40px;
    width: 40px;
    padding: 0;
  }

  .site-header--signed-in .header-search-btn {
    min-width: min(140px, 14vw);
  }

  .site-header--signed-in .header-search-text {
    font-size: 0.75rem;
  }
}

@media (max-width: 1366px) {
  .site-header--signed-in .header-search-text,
  .site-header--signed-in .header-search-arrow {
    display: none !important;
  }

  .site-header--signed-in .header-search-box {
    max-width: none;
    width: 40px;
  }

  .site-header--signed-in .header-search-btn {
    min-width: 40px;
    width: 40px;
    max-width: 40px;
    padding: 0;
    justify-content: center;
  }
}

@media (max-width: 1280px) {
  .site-header--signed-in .nav-item {
    padding: 0.36rem 0.42rem;
    font-size: 0.74rem;
  }
}

/* Progressive hide — signed-in and signed-out */
@media (max-width: 1480px) {
  .site-header .nav-item-hide-lg {
    display: none !important;
  }
}

@media (max-width: 1320px) {
  .site-header .nav-item-hide-md {
    display: none !important;
  }

  .site-header .nav-item {
    padding: 0.4rem 0.58rem;
    font-size: 0.78rem;
  }

  .site-header .nav-item .nav-svg-icon {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 1180px) {
  .site-header .nav-item-hide-sm {
    display: none !important;
  }
}

/* APKs: desktop top nav only — mobile menu keeps its own link */
.site-header .nav-links-container .nav-item-hide-desktop {
  display: none !important;
}

/* Hide nav items that already hide on smaller desktops */
@media (max-width: 1200px) {
  .site-header .nav-item-hide-mobile {
    display: none;
  }
}

@media (max-width: 380px) {
  .site-header .header-chat-btn {
    display: none !important;
  }

  .site-header .logo-image {
    max-width: 108px;
    height: 30px;
  }

  .site-header .header-discord-btn,
  .site-header .header-search-btn {
    min-width: 38px !important;
    width: 38px !important;
    height: 38px !important;
  }
}

/* ── Mobile drawer (overrides styles.css) ── */
.site-header .mobile-menu {
  width: min(100%, 360px);
  max-width: 100%;
  background: linear-gradient(180deg, #0c0c12 0%, #08080e 100%) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 12px 0 48px rgba(0, 0, 0, 0.55);
}

.site-header .mobile-menu.active {
  visibility: visible !important;
}

.site-header .mobile-menu-header {
  display: grid !important;
  grid-template-columns: 1fr 44px;
  align-items: center;
  gap: 0.5rem;
  padding: max(12px, env(safe-area-inset-top)) 14px 12px;
  min-height: 56px;
  height: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 16, 0.98) !important;
}

.site-header .mobile-menu-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 44px;
  padding: 4px 0;
}

.site-header .mobile-menu-brand .logo-image {
  height: 36px !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 160px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(255, 0, 255, 0.25));
}

.site-header .mobile-menu-close {
  justify-self: end;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.site-header .mobile-menu-close:hover {
  background: rgba(255, 0, 255, 0.12);
  border-color: rgba(255, 0, 255, 0.35);
}

.site-header .mobile-menu-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 12px 14px 4px;
  flex-shrink: 0;
}

.site-header .mobile-quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.site-header .mobile-quick-btn--search {
  color: rgba(0, 255, 255, 0.95);
  border-color: rgba(0, 255, 255, 0.25);
}

.site-header .mobile-quick-btn--search:hover {
  background: rgba(0, 255, 255, 0.1);
}

.site-header .mobile-quick-btn--discord {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.35), rgba(71, 82, 196, 0.25));
  border-color: rgba(88, 101, 242, 0.45);
  color: #fff;
}

.site-header .mobile-menu-section-label {
  margin: 0;
  padding: 0.65rem 18px 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.site-header .mobile-nav {
  display: flex !important;
  flex-direction: column;
  gap: 6px;
  padding: 6px 12px 16px !important;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: transparent !important;
}

.site-header .mobile-nav-item {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 12px 14px !important;
  margin: 0;
  font-size: 0.9375rem !important;
  font-weight: 600;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

.site-header .mobile-nav-item.active {
  background: linear-gradient(
    135deg,
    rgba(255, 0, 255, 0.18) 0%,
    rgba(0, 255, 255, 0.08) 100%
  ) !important;
  border-color: rgba(255, 0, 255, 0.35) !important;
  color: #fff !important;
}

.site-header .mobile-nav-item .mobile-nav-icon {
  width: 22px;
  height: 22px;
  opacity: 0.85;
}

.site-header .mobile-menu-mirror-banner {
  margin: 8px 12px max(16px, env(safe-area-inset-bottom)) !important;
}

/* ── Desktop bar: five primary links + a "More" menu, account controls enlarged ──
   The category links used to be hidden here entirely, which left the bar empty on
   desktop. The ones that no longer fit now live in the "More" dropdown instead. */
@media (min-width: 901px) {
  .site-header .nav-links-container {
    justify-content: flex-end;
    /* The bar scrolls horizontally on small screens; on desktop that clipped the
       "More" dropdown, which hangs below the bar. */
    overflow: visible;
  }

  .site-header .logo-image {
    height: 44px;
    max-width: 168px;
  }

  .site-header .nav-links {
    gap: 0.5rem;
  }

  .site-header .nav-item.nav-item--auth {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-header .nav-item.nav-item--auth .nav-svg-icon {
    width: 20px;
    height: 20px;
  }

  .site-header .nav-item.nav-item--auth:hover,
  .site-header .nav-item.nav-item--auth.active {
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.18);
  }

  .site-header .header-actions {
    gap: 0.6rem;
  }

  .site-header .header-chat-btn {
    min-height: 44px;
    padding: 0.55rem 1.05rem;
    border-radius: 14px;
    font-size: 0.9rem;
  }

  .site-header .header-chat-btn.acc-bell-link {
    width: 44px;
    padding: 0;
  }

  .site-header .header-chat-icon {
    width: 20px;
    height: 20px;
  }

  .site-header .header-discord-btn {
    min-height: 44px;
    padding: 0.55rem 1.25rem;
    border-radius: 14px;
    font-size: 0.9rem;
  }

  .site-header .header-discord-btn svg {
    width: 22px;
    height: 22px;
  }

  .site-header .header-search-box {
    max-width: min(320px, 26vw);
  }

  .site-header .header-search-btn {
    min-height: 44px;
    min-width: min(240px, 20vw);
    max-width: 320px;
    border-radius: 14px;
    font-size: 0.9rem;
  }

  .site-header .header-search-icon {
    width: 18px;
    height: 18px;
  }
}

@media (min-width: 901px) and (max-width: 1280px) {
  .site-header .header-search-btn {
    min-width: min(200px, 18vw);
    max-width: 240px;
  }

  .site-header .header-search-box {
    max-width: min(260px, 22vw);
  }
}

@media (min-width: 901px) {
  .site-header .nav-links .nav-item:not(.nav-item--auth) {
    min-height: 44px;
    padding: 0.55rem 0.95rem;
    border-radius: 14px;
    font-size: 0.9rem;
  }
}

/* ---------- "More" nav dropdown ----------
   The bar used to carry ten content links, with the last few hidden at narrower widths so
   they became unreachable. Five stay visible; the rest live here. */
.nav-more { position: relative; }
.nav-more-toggle {
  display: flex; align-items: center; gap: 7px; border: 0; background: none; cursor: pointer;
  font: inherit; color: inherit;
}
.nav-more-caret { width: 13px; height: 13px; opacity: 0.55; transition: transform 0.18s ease; }
.nav-more[data-open="1"] .nav-more-caret { transform: rotate(180deg); opacity: 0.9; }
.nav-more-menu {
  /* Fixed and positioned from JS: the header sits in its own stacking context and the
     site banner below it painted over an absolutely-positioned panel. */
  position: fixed; top: 0; left: 0; z-index: 2147483000;
  min-width: 212px; padding: 7px; border-radius: 16px;
  background: rgba(18, 18, 26, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.98);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.nav-more-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.nav-more-menu::before {
  content: ""; position: absolute; top: -6px; right: 22px; width: 12px; height: 12px;
  background: inherit; border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.12); transform: rotate(45deg);
}
.nav-more-item {
  position: relative; display: flex; align-items: center; gap: 11px;
  padding: 10px 13px; border-radius: 11px; text-decoration: none;
  color: rgba(255, 255, 255, 0.82); font-size: 0.9rem; font-weight: 600; white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-more-item:hover, .nav-more-item:focus-visible {
  color: #fff; background: rgba(255, 255, 255, 0.09); outline: none;
}
.nav-more-item.active { color: #fff; background: var(--hub-accent-soft, rgba(217, 70, 239, 0.18)); }
.nav-more-item.active::before {
  content: ""; position: absolute; left: 4px; top: 50%; width: 3px; height: 17px; margin-top: -8.5px;
  border-radius: 2px; background: var(--primary, #d946ef);
}
.nav-more-icon { width: 18px; height: 18px; flex: 0 0 auto; opacity: 0.85; }
.nav-more-toggle:focus-visible { outline: 2px solid var(--primary, #d946ef); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .nav-more-menu, .nav-more-caret { transition: none; }
}
/* The bar no longer needs to hide links at narrower widths. */
.nav-item-hide-lg, .nav-item-hide-md, .nav-item-hide-desktop { display: flex; }

/* Section label inside the mobile menu list (Browse / Downloads / More). */
.mobile-nav-divider {
  margin: 14px 0 6px; padding: 0 4px;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}
.mobile-nav-divider:first-child { margin-top: 0; }
