/* ═══════════════════════════════════════════════════════════════════════
   ooki-public.css  —  Universal public-page responsive layer
   Hamburger nav drawer: 3 breakpoints
     Desktop  ≥1025px  → 420px right-side slide-in panel + blurred backdrop
     Tablet   769–1024 → 360px right-side slide-in panel + blurred backdrop
     Mobile   ≤768px   → full-screen slide-UP sheet from bottom
   ═══════════════════════════════════════════════════════════════════════ */

/* ── CSS variables for drawer ─────────────────────────────────────────── */
:root {
  --nd-w-desk:   420px;
  --nd-w-tab:    360px;
  --nd-speed:    0.30s;
  --nd-ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --nd-bg-dark:  rgba(10, 10, 13, 0.98);
  --nd-bg-light: rgba(248, 248, 251, 0.99);
  --nd-sep-dark: rgba(255, 255, 255, 0.07);
  --nd-sep-light:rgba(0, 0, 0, 0.07);
}

/* ── Suppress shell elements on public pages ──────────────────────────── */
body:not(:has(.ooki-shell)) #mobile-bottom-nav {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Scroll lock when drawer open */
body.nd-locked {
  overflow: hidden !important;
  -webkit-overflow-scrolling: auto !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   ❶  HAMBURGER BUTTON  (.nav-hamburger)
   ═══════════════════════════════════════════════════════════════════════ */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;  /* equal-width bars, centered (matches index.html) */
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: 10px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1100;
  flex-shrink: 0;
  transition: background var(--nd-speed) ease;
}
.nav-hamburger:hover {
  background: rgba(255,255,255,0.06);
}
[data-theme="light"] .nav-hamburger:hover {
  background: rgba(0,0,0,0.05);
}

/* Three bars — .nh-b, .nh-b2, .nh-b3
   NOTE: previously tapered (22/16/10px) + right-aligned with
   transform-origin:right — when combined with the rotate-to-X open
   animation this produced a lopsided chevron ("〉") instead of a
   clean X. Using equal-width, center-aligned bars (matching the
   .nav-hamburger implementation used on index.html/search.html/
   store.html) for a consistent, correctly-formed icon site-wide. */
.nh-b {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary, #fff);
  border-radius: 2px;
  transform-origin: center;
  transition:
    transform  var(--nd-speed) var(--nd-ease),
    opacity    0.18s ease;
}

/* Open state → animated X */
.nh-open .nh-b  { transform: translateY(7px) rotate(45deg); }
.nh-open .nh-b2 { opacity: 0; }
.nh-open .nh-b3 { transform: translateY(-7px) rotate(-45deg); }

/* Always visible — desktop keeps hamburger as extended menu button */
@media (max-width: 1024px) {
  .nav-hamburger { display: flex !important; }
}
@media (min-width: 1025px) {
  .nav-hamburger { display: flex; }  /* visible on desktop too */
}

/* ═══════════════════════════════════════════════════════════════════════
   ❷  BACKDROP  (.nd-backdrop)
   ═══════════════════════════════════════════════════════════════════════ */
.nd-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  pointer-events: none;
  transition:
    background        var(--nd-speed) var(--nd-ease),
    backdrop-filter   var(--nd-speed) var(--nd-ease),
    -webkit-backdrop-filter var(--nd-speed) var(--nd-ease);
}
.nd-backdrop.nd-backdrop-show {
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: all;
  cursor: pointer; /* indicate "click to close" */
}
[data-theme="light"] .nd-backdrop.nd-backdrop-show {
  background: rgba(0,0,0,0.28);
}

/* Mobile: no backdrop blur (performance) */
@media (max-width: 768px) {
  .nd-backdrop.nd-backdrop-show {
    background: rgba(0,0,0,0.50);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   ❸  DRAWER  (.nd-drawer)
   Desktop / Tablet: 420px / 360px right-side panel, slides in from right
   Mobile: full-screen bottom sheet, slides up from bottom
   ═══════════════════════════════════════════════════════════════════════ */
.nd-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--nd-w-desk);
  z-index: 1050;

  /* Layout */
  display: flex;
  flex-direction: column;
  overflow: hidden;

  /* Visual */
  background: var(--nd-bg-dark);
  border-left: 1px solid var(--nd-sep-dark);
  border-radius: 20px 0 0 20px;
  box-shadow: -16px 0 48px rgba(0,0,0,0.55), -4px 0 16px rgba(0,0,0,0.30);

  /* Slide in from RIGHT */
  transform: translateX(calc(100% + 2px)); /* +2px hides the border-radius edge */
  transition: transform var(--nd-speed) var(--nd-ease);
}
.nd-drawer.nd-open {
  transform: translateX(0);
}

[data-theme="light"] .nd-drawer {
  background: var(--nd-bg-light);
  border-left-color: var(--nd-sep-light);
  box-shadow: -16px 0 48px rgba(0,0,0,0.15), -4px 0 16px rgba(0,0,0,0.08);
}

/* ── Tablet ─────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nd-drawer { width: var(--nd-w-tab); }
}

/* ── Mobile: full-screen overlay ───────────────────────────────────────
   Previously this was a 92dvh "bottom sheet" with a visible peek of page
   content above it and a pill-handle — inconsistent with index.html's
   mobile drawer (and the user's reference design) which is a clean,
   full-screen panel covering the entire viewport. Standardized to match:
   full height, slides in from the right (same direction as desktop/
   tablet, just full-width), no peek-through, no pill handle. */
@media (max-width: 768px) {
  .nd-drawer {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-height: none;

    /* Override desktop side-panel styles */
    border-left: none;
    border-radius: 0;
    box-shadow: none;

    /* Slide in from the right, full width */
    transform: translateX(100%);
    transition: transform var(--nd-speed) var(--nd-ease);
  }
  .nd-drawer.nd-open { transform: translateX(0); }
}

/* ═══════════════════════════════════════════════════════════════════════
   ❹  DRAWER HEADER  (.nd-hdr)
   [Logo]  ···  [Theme ⊙]  [Close ✕]
   ═══════════════════════════════════════════════════════════════════════ */
.nd-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  height: 60px;
  border-bottom: 1px solid var(--nd-sep-dark);
  flex-shrink: 0;
}
[data-theme="light"] .nd-hdr {
  border-bottom-color: var(--nd-sep-light);
}

/* Mobile: account for pill handle */
@media (max-width: 768px) {
  .nd-hdr {
    padding-top: 8px;  /* pushes content below pill handle */
    height: 68px;
  }
}

/* Logo in drawer */
.nd-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  text-decoration: none;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  line-height: 1;
  user-select: none;
}
.nd-logo-word {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary, #fff);
}
.nd-logo-dot {
  font-size: 20px;
  font-weight: 700;
  color: var(--ooki-red, #FF0A3D);
}
[data-theme="light"] .nd-logo-word { color: #0A0A0A; }

/* Header action buttons group */
.nd-hdr-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Theme + close buttons */
.nd-theme-btn,
.nd-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-muted, rgba(255,255,255,0.35));
  font-size: 15px;
  transition: background 0.15s, color 0.15s;
}
.nd-theme-btn:hover,
.nd-close-btn:hover {
  background: rgba(255,255,255,0.07);
  color: var(--text-primary, #fff);
}
[data-theme="light"] .nd-theme-btn,
[data-theme="light"] .nd-close-btn {
  color: rgba(10,10,10,0.38);
}
[data-theme="light"] .nd-theme-btn:hover,
[data-theme="light"] .nd-close-btn:hover {
  background: rgba(0,0,0,0.06);
  color: #0A0A0A;
}

/* Close button: two-span X mark */
.nd-close-btn {
  position: relative;
  font-size: 0; /* hide any text */
}
.nd-close-btn span {
  position: absolute;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.nd-close-btn span:nth-child(1) { transform: rotate(45deg); }
.nd-close-btn span:nth-child(2) { transform: rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════════════════
   ❺  AUTH ZONE  (#ndAuthZone) — rendered by JS
   Contains either .nd-user-strip (logged in) or .nd-guest-strip (guest)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Logged-in strip ─────────────────────────────────────────────────── */
.nd-user-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--nd-sep-dark);
  flex-shrink: 0;
  background: rgba(255,255,255,0.025);
}
[data-theme="light"] .nd-user-strip {
  background: rgba(0,0,0,0.025);
  border-bottom-color: var(--nd-sep-light);
}

.nd-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ooki-red, #FF0A3D) 0%, #9C6DFF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: -0.02em;
  overflow: hidden;
}
.nd-avatar img { width: 100%; height: 100%; object-fit: cover; }

.nd-user-info { flex: 1; min-width: 0; }
.nd-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, #fff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
[data-theme="light"] .nd-user-name { color: #0A0A0A; }

.nd-user-role {
  font-size: 11px;
  color: var(--text-muted, rgba(255,255,255,0.35));
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}
.nd-user-role i { font-size: 9px; }
[data-theme="light"] .nd-user-role { color: rgba(10,10,10,0.38); }

.nd-dash-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  color: var(--text-muted, rgba(255,255,255,0.38));
  font-size: 12px;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.nd-dash-btn:hover {
  background: rgba(255,255,255,0.13);
  color: var(--text-primary, #fff);
}
[data-theme="light"] .nd-dash-btn {
  background: rgba(0,0,0,0.06);
  color: rgba(10,10,10,0.40);
}
[data-theme="light"] .nd-dash-btn:hover {
  background: rgba(0,0,0,0.10);
  color: #0A0A0A;
}

/* ── Guest strip ─────────────────────────────────────────────────────── */
.nd-guest-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--nd-sep-dark);
  flex-shrink: 0;
}
[data-theme="light"] .nd-guest-strip {
  border-bottom-color: var(--nd-sep-light);
}

/* Primary CTA */
.nd-cta-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  padding: 9px 14px;
  border-radius: 22px;
  background: var(--ooki-red, #FF0A3D);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.nd-cta-primary:hover {
  background: #e00030;
  transform: scale(1.02);
}

/* Ghost CTA */
.nd-cta-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 22px;
  border: 1px solid var(--nd-sep-dark);
  color: var(--text-secondary, rgba(255,255,255,0.60));
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.nd-cta-ghost:hover {
  border-color: rgba(255,255,255,0.20);
  color: var(--text-primary, #fff);
  background: rgba(255,255,255,0.04);
}
[data-theme="light"] .nd-cta-ghost {
  border-color: var(--nd-sep-light);
  color: rgba(10,10,10,0.60);
}
[data-theme="light"] .nd-cta-ghost:hover {
  border-color: rgba(0,0,0,0.18);
  color: #0A0A0A;
  background: rgba(0,0,0,0.03);
}

/* ═══════════════════════════════════════════════════════════════════════
   ❻  SCROLLABLE BODY  (.nd-body)
   ═══════════════════════════════════════════════════════════════════════ */
.nd-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.09) transparent;
}
.nd-body::-webkit-scrollbar       { width: 3px; }
.nd-body::-webkit-scrollbar-track { background: transparent; }
.nd-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.09); border-radius: 2px; }
[data-theme="light"] .nd-body {
  scrollbar-color: rgba(0,0,0,0.09) transparent;
}
[data-theme="light"] .nd-body::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.09);
}

/* ── Section wrapper  (.nd-sec) ─────────────────────────────────────── */
.nd-sec {
  border-bottom: 1px solid var(--nd-sep-dark);
  padding-bottom: 6px;
}
.nd-sec:last-child { border-bottom: none; }
[data-theme="light"] .nd-sec { border-bottom-color: var(--nd-sep-light); }

/* ── Section label  (.nd-sec-lbl) ──────────────────────────────────── */
.nd-sec-lbl {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted, rgba(255,255,255,0.30));
  pointer-events: none;
  user-select: none;
}
.nd-sec-lbl i {
  font-size: 9px;
  width: 11px;
  text-align: center;
  opacity: 0.6;
  flex-shrink: 0;
}
[data-theme="light"] .nd-sec-lbl { color: rgba(10,10,10,0.33); }

/* ── Individual nav link ────────────────────────────────────────────── */
.nd-sec a {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 1px 10px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary, rgba(255,255,255,0.65));
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease, transform 0.12s ease;
  cursor: pointer;
}
.nd-sec a:hover {
  background: rgba(255,255,255,0.055);
  color: var(--text-primary, #fff);
  transform: translateX(2px);
}
.nd-sec a.nd-active {
  background: rgba(255,10,61,0.08);
  color: var(--ooki-red, #FF0A3D);
}
.nd-sec a.nd-active .nd-link-icon i {
  color: var(--ooki-red, #FF0A3D);
  opacity: 1;
}
[data-theme="light"] .nd-sec a { color: rgba(10,10,10,0.65); }
[data-theme="light"] .nd-sec a:hover {
  background: rgba(0,0,0,0.04);
  color: #0A0A0A;
}
[data-theme="light"] .nd-sec a.nd-active {
  background: rgba(255,10,61,0.06);
  color: var(--ooki-red, #FF0A3D);
}

/* Link icon box  (.nd-link-icon) */
.nd-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  flex-shrink: 0;
  transition: background 0.12s ease;
}
.nd-link-icon i {
  font-size: 12px;
  color: rgba(255,255,255,0.38);
  transition: color 0.12s ease;
}
.nd-sec a:hover .nd-link-icon {
  background: rgba(255,255,255,0.10);
}
.nd-sec a:hover .nd-link-icon i { color: var(--text-primary, #fff); }
[data-theme="light"] .nd-link-icon { background: rgba(0,0,0,0.05); }
[data-theme="light"] .nd-link-icon i { color: rgba(10,10,10,0.38); }
[data-theme="light"] .nd-sec a:hover .nd-link-icon { background: rgba(0,0,0,0.08); }
[data-theme="light"] .nd-sec a:hover .nd-link-icon i { color: #0A0A0A; }

/* Link label  (.nd-link-label) */
.nd-link-label { flex: 1; min-width: 0; }

/* Animated chevron  (.nd-link-arrow) */
.nd-link-arrow {
  font-size: 9px;
  color: rgba(255,255,255,0.16);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
  flex-shrink: 0;
}
.nd-sec a:hover .nd-link-arrow {
  opacity: 1;
  transform: translateX(0);
}
[data-theme="light"] .nd-link-arrow { color: rgba(10,10,10,0.16); }

/* ── OMG Radio link  (.nd-radio-link) — purple, gated ─────────────── */
.nd-radio-link {
  color: #9C6DFF !important;
}
.nd-radio-link .nd-link-icon {
  background: rgba(156,109,255,0.10) !important;
}
.nd-radio-link .nd-link-icon i {
  color: #9C6DFF !important;
  opacity: 1 !important;
}
.nd-radio-link .nd-link-label { color: #9C6DFF !important; }
.nd-sec a.nd-radio-link:hover { background: rgba(156,109,255,0.09) !important; }

/* ── Creator CTA links  (data-cta="red" | data-cta="ghost") ─────────── */
.nd-sec a[data-cta="red"] {
  background: var(--ooki-red, #FF0A3D) !important;
  color: #fff !important;
  font-weight: 600;
  margin: 2px 10px;
}
.nd-sec a[data-cta="red"] .nd-link-icon {
  background: rgba(255,255,255,0.16) !important;
}
.nd-sec a[data-cta="red"] .nd-link-icon i { color: #fff !important; opacity: 1 !important; }
.nd-sec a[data-cta="red"] .nd-link-label  { color: #fff !important; }
.nd-sec a[data-cta="red"] .nd-link-arrow  { color: rgba(255,255,255,0.45) !important; opacity: 0; }
.nd-sec a[data-cta="red"]:hover {
  background: #e00030 !important;
  transform: translateX(2px);
}
.nd-sec a[data-cta="red"]:hover .nd-link-arrow { opacity: 1; }

.nd-sec a[data-cta="ghost"] {
  border: 1px solid var(--nd-sep-dark);
  margin: 2px 10px;
}
[data-theme="light"] .nd-sec a[data-cta="ghost"] {
  border-color: var(--nd-sep-light);
}

/* ═══════════════════════════════════════════════════════════════════════
   ❼  DRAWER FOOTER  (.nd-ftr)
   Sign-out · Social icons · Copyright
   ═══════════════════════════════════════════════════════════════════════ */
.nd-ftr {
  border-top: 1px solid var(--nd-sep-dark);
  padding: 12px 18px 16px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
[data-theme="light"] .nd-ftr { border-top-color: var(--nd-sep-light); }

/* Sign-out button row */
.nd-signout-row {
  display: flex;
}
.nd-signout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,80,80,0.18);
  background: rgba(255,80,80,0.06);
  color: rgba(255,110,110,0.80);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.nd-signout-btn i { font-size: 12px; flex-shrink: 0; }
.nd-signout-btn:hover {
  background: rgba(255,50,50,0.11);
  color: #ff5a5a;
  border-color: rgba(255,80,80,0.32);
}

/* Social icon row */
.nd-soc-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nd-soc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255,255,255,0.05);
  color: var(--text-muted, rgba(255,255,255,0.35));
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.nd-soc-btn:hover {
  background: rgba(255,255,255,0.10);
  color: var(--text-primary, #fff);
  transform: translateY(-2px);
}
[data-theme="light"] .nd-soc-btn {
  background: rgba(0,0,0,0.05);
  color: rgba(10,10,10,0.35);
}
[data-theme="light"] .nd-soc-btn:hover {
  background: rgba(0,0,0,0.09);
  color: #0A0A0A;
}

/* Copyright text */
.nd-copy {
  font-size: 11px;
  color: var(--text-muted, rgba(255,255,255,0.25));
  line-height: 1.5;
}
.nd-copy a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.15s;
}
.nd-copy a:hover { opacity: 0.8; text-decoration: underline; }
[data-theme="light"] .nd-copy { color: rgba(10,10,10,0.28); }

/* ═══════════════════════════════════════════════════════════════════════
   ❽  INLINE NAV ELEMENT VISIBILITY BY BREAKPOINT
   Desktop ≥1025px: hamburger shown (accesses extra drawer) + full top nav
   Tablet 769–1024: hamburger shown, top nav links hidden
   Mobile ≤768px:   hamburger shown, all inline groups hidden
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Tablet (769–1024px): hide desktop nav link rows ────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
  .public-nav  .nav-links,
  .public-nav  .nav-cta-group,
  .story-nav   .nav-links,
  .top-nav     .nav-links { display: none !important; }

  .main-nav    > div:not(:first-child):not(.nav-mobile-menu) { display: none !important; }
  .store-nav   > div:not(:first-child):not(.nav-mobile-menu) { display: none !important; }
}

/* ── Mobile (≤768px): hide all inline nav groups ────────────────────── */
@media (max-width: 768px) {
  /* Tighten padding */
  .public-nav, .main-nav, .story-nav, .top-nav, .pt-nav,
  .portals-nav, .store-nav, .search-nav, .inv-nav, .legal-nav {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Named link groups */
  .public-nav  .nav-links,
  .public-nav  .nav-cta-group,
  .story-nav   .nav-links,
  .story-nav   .nav-cta-group,
  .pt-nav      .nav-links-row,
  .pt-nav      .nav-actions,
  .top-nav     .nav-links,
  /* sonic-capsules.html's custom inline auth/account button group.
     The hamburger drawer (ooki-public-nav.js) already renders its own
     self-contained auth zone (#ndAuthZone: Sign In / Get Started, or the
     logged-in user-strip + Dashboard + Sign Out) inside the drawer, so
     this inline copy is pure duplication on narrow screens — and at
     390px wide it has nowhere to go, overlapping/crowding the
     logo+hamburger ("Crowded & overlapping nav bar" / "Button cutoff"). */
  #auth-container { display: none !important; }

  /* Generic div children (exclude hamburger button — it's a <button>) */
  .main-nav    > div:not(:first-child):not(.nav-mobile-menu) { display: none !important; }
  .store-nav   > div:not(:first-child):not(.nav-mobile-menu) { display: none !important; }
  .inv-nav     > div:not(:first-child):not(.nav-mobile-menu) { display: none !important; }
  .portals-nav > div:not(:first-child):not(.nav-mobile-menu) { display: none !important; }
  .search-nav  .nav-actions                                  { display: none !important; }
  .search-nav  > div:nth-child(3):not(.nav-mobile-menu)      { display: none !important; }
  .legal-nav   > div:not(.nav-mobile-menu)                   { display: none !important; }

  /* Always show hamburger */
  .public-nav .nav-hamburger, .main-nav .nav-hamburger, .story-nav .nav-hamburger,
  .top-nav .nav-hamburger, .pt-nav .nav-hamburger, .portals-nav .nav-hamburger,
  .store-nav .nav-hamburger, .search-nav .nav-hamburger, .inv-nav .nav-hamburger,
  .legal-nav .nav-hamburger { display: flex !important; }

  body.has-ooki-player { padding-bottom: 80px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   ❾  PUBLIC PLAYER BAR
   Fixed to bottom on all public (non-shell) pages
   ═══════════════════════════════════════════════════════════════════════ */
body:not(:has(.ooki-shell)) { padding-bottom: 80px; }

body:not(:has(.ooki-shell)) .ooki-player {
  position: fixed !important;
  bottom: 0; left: 0; right: 0;
  height: 72px;
  z-index: 800;
  grid-area: unset !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  padding: 0 24px;
  gap: 16px;
  background: var(--player-bg, rgba(8,8,10,0.97)) !important;
  color: var(--player-text-primary, #fff) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--player-border, rgba(255,255,255,0.07)) !important;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.5);
  overflow: hidden;
}
[data-theme="light"] body:not(:has(.ooki-shell)) .ooki-player {
  background: rgba(245,245,247,0.98) !important;
  border-top: 1px solid rgba(0,0,0,0.09) !important;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.06) !important;
}
/* ── text / icons inside the public fixed-bottom player ─────────── */
[data-theme="light"] body:not(:has(.ooki-shell)) .ooki-player .player-title,
[data-theme="light"] body:not(:has(.ooki-shell)) .ooki-player .player-track-title {
  color: #0A0A0A !important;
}
[data-theme="light"] body:not(:has(.ooki-shell)) .ooki-player .player-artist,
[data-theme="light"] body:not(:has(.ooki-shell)) .ooki-player .player-track-artist {
  color: rgba(0,0,0,0.55) !important;
}
[data-theme="light"] body:not(:has(.ooki-shell)) .ooki-player .player-like,
[data-theme="light"] body:not(:has(.ooki-shell)) .ooki-player .player-track-like {
  color: rgba(0,0,0,0.45) !important;
}
[data-theme="light"] body:not(:has(.ooki-shell)) .ooki-player .player-btn {
  color: rgba(0,0,0,0.55) !important;
}
[data-theme="light"] body:not(:has(.ooki-shell)) .ooki-player .player-btn:hover {
  color: #0A0A0A !important;
  background: rgba(0,0,0,0.06) !important;
}
[data-theme="light"] body:not(:has(.ooki-shell)) .ooki-player .player-time {
  color: rgba(0,0,0,0.40) !important;
}
[data-theme="light"] body:not(:has(.ooki-shell)) .ooki-player .player-bar,
[data-theme="light"] body:not(:has(.ooki-shell)) .ooki-player .progress-bar {
  background: rgba(0,0,0,0.14) !important;
}
[data-theme="light"] body:not(:has(.ooki-shell)) .ooki-player .progress-fill {
  background: #0A0A0A !important;
}
[data-theme="light"] body:not(:has(.ooki-shell)) .ooki-player .progress-fill::after {
  background: #0A0A0A !important;
}
[data-theme="light"] body:not(:has(.ooki-shell)) .ooki-player .player-volume-bar {
  background: rgba(0,0,0,0.14) !important;
}
[data-theme="light"] body:not(:has(.ooki-shell)) .ooki-player .player-volume-fill {
  background: rgba(0,0,0,0.55) !important;
}
[data-theme="light"] body:not(:has(.ooki-shell)) .ooki-player input[type="range"] {
  accent-color: #0A0A0A !important;
}
[data-theme="light"] body:not(:has(.ooki-shell)) .ooki-player .player-art {
  background: #E0E0E6 !important;
}
[data-theme="light"] body:not(:has(.ooki-shell)) .ooki-player .player-art i {
  color: rgba(0,0,0,0.35) !important;
}

body:not(:has(.ooki-shell)) .ooki-player .player-track {
  display: flex; align-items: center; gap: 12px;
  flex: 1 1 180px; min-width: 0; width: auto !important; max-width: 300px;
}
body:not(:has(.ooki-shell)) .ooki-player .player-center {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0;
}
body:not(:has(.ooki-shell)) .ooki-player .player-controls {
  display: flex !important; flex-direction: row !important;
  align-items: center !important; gap: 6px; flex-wrap: nowrap !important;
}
body:not(:has(.ooki-shell)) .ooki-player .player-extra {
  display: flex; align-items: center; gap: 8px; flex: 0 0 auto;
}

body:not(:has(.ooki-shell)) .ooki-player::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: var(--pub-progress, 0%); height: 2px;
  background: var(--ooki-red, #FF0A3D); transition: width 0.5s linear;
}

@media (max-width: 768px) {
  body:not(:has(.ooki-shell)) .ooki-player {
    height: 66px; padding: 0 12px; gap: 10px;
  }
  body:not(:has(.ooki-shell)) .ooki-player .player-extra,
  body:not(:has(.ooki-shell)) .ooki-player .player-volume,
  body:not(:has(.ooki-shell)) .ooki-player .player-progress { display: none !important; }
  body:not(:has(.ooki-shell)) .ooki-player .player-track { flex: 1; min-width: 0; }
  body:not(:has(.ooki-shell)) .ooki-player .player-art { width: 40px; height: 40px; flex-shrink: 0; }
  body:not(:has(.ooki-shell)) .ooki-player .player-center { flex: 0 0 auto; }
}

/* ── .ooki-player-public (injected when no .ooki-player exists) ──────── */
.ooki-player-public {
  position: fixed; bottom: 0; left: 0; right: 0; height: 72px; z-index: 800;
  display: flex; flex-direction: row; align-items: center;
  background: var(--player-bg, rgba(8,8,10,0.97));
  color: var(--player-text-primary, #fff);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--player-border, rgba(255,255,255,0.07));
  box-shadow: 0 -4px 24px rgba(0,0,0,0.5); overflow: hidden;
}
[data-theme="light"] .ooki-player-public {
  background: rgba(245,245,247,0.98) !important;
  border-top: 1px solid rgba(0,0,0,0.09) !important;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.06) !important;
}
/* ── text / icons inside the injected .ooki-player-public ─────────── */
[data-theme="light"] .ooki-player-public .player-title {
  color: #0A0A0A !important;
}
[data-theme="light"] .ooki-player-public .player-artist {
  color: rgba(0,0,0,0.55) !important;
}
[data-theme="light"] .ooki-player-public .player-like {
  color: rgba(0,0,0,0.45) !important;
}
[data-theme="light"] .ooki-player-public .player-btn {
  color: rgba(0,0,0,0.55) !important;
}
[data-theme="light"] .ooki-player-public .player-btn:hover {
  color: #0A0A0A !important;
  background: rgba(0,0,0,0.06) !important;
}
[data-theme="light"] .ooki-player-public .player-time {
  color: rgba(0,0,0,0.40) !important;
}
[data-theme="light"] .ooki-player-public .player-bar {
  background: rgba(0,0,0,0.14) !important;
}
[data-theme="light"] .ooki-player-public .player-art {
  background: #E0E0E6 !important;
}
[data-theme="light"] .ooki-player-public .player-art i {
  color: rgba(0,0,0,0.35) !important;
}
[data-theme="light"] .ooki-player-public input[type="range"] {
  accent-color: #0A0A0A !important;
}
.ooki-player-public::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: var(--pub-progress, 0%); height: 2px;
  background: var(--ooki-red, #FF0A3D); transition: width 0.5s linear; z-index: 1;
}
.ooki-player-public .player-track {
  display: flex; align-items: center; gap: 12px;
  flex: 0 1 280px; min-width: 0; padding: 0 16px 0 20px;
}
.ooki-player-public .player-art {
  width: 44px; height: 44px; border-radius: 6px; flex-shrink: 0; overflow: hidden;
  background: radial-gradient(circle, #1a1a1a 30%, #050505 100%);
  display: flex; align-items: center; justify-content: center;
}
.ooki-player-public .player-art i { color: var(--ooki-red, #FF0A3D); font-size: 14px; }
.ooki-player-public .player-art img { width: 100%; height: 100%; object-fit: cover; }
.ooki-player-public .player-info { flex: 1; min-width: 0; }
.ooki-player-public .player-title {
  font-size: 13px; font-weight: 600; color: var(--text-primary, #fff);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ooki-player-public .player-artist {
  font-size: 11px; color: var(--text-muted, rgba(255,255,255,0.45));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ooki-player-public .player-like {
  width: 32px; height: 32px; border-radius: 50%; border: none; background: none;
  color: var(--text-muted, rgba(255,255,255,0.45)); font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: color 0.15s; flex-shrink: 0;
}
.ooki-player-public .player-like:hover,
.ooki-player-public .player-like.liked { color: var(--ooki-red, #FF0A3D); }
.ooki-player-public .player-center {
  flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 16px;
}
.ooki-player-public .player-controls { display: flex; align-items: center; gap: 6px; }
.ooki-player-public .player-btn {
  width: 36px; height: 36px; border-radius: 50%; border: none; background: none;
  color: var(--text-muted, rgba(255,255,255,0.5)); font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: color 0.15s, background 0.15s;
}
.ooki-player-public .player-btn:hover {
  color: var(--text-primary, #fff); background: rgba(255,255,255,0.06);
}
.ooki-player-public .player-play {
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: var(--ooki-red, #FF0A3D); color: #fff; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: transform 0.15s, background 0.15s;
}
.ooki-player-public .player-play:hover { background: #e00030; transform: scale(1.05); }
.ooki-player-public .player-extra {
  display: flex; align-items: center; gap: 8px; padding: 0 20px 0 16px; flex-shrink: 0;
}
.ooki-player-public .player-radio-link {
  display: none; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px;
  background: rgba(156,109,255,0.12); border: 1px solid rgba(156,109,255,0.25);
  color: #9C6DFF; font-size: 12px; font-weight: 600; text-decoration: none;
  white-space: nowrap; transition: background 0.15s; flex-shrink: 0;
}
.ooki-player-public .player-radio-link:hover { background: rgba(156,109,255,0.22); }
.ooki-player-public .player-radio-link.visible { display: flex; }
@media (max-width: 768px) {
  .ooki-player-public { height: 66px; }
  .ooki-player-public .player-track { flex: 1; padding: 0 10px 0 14px; min-width: 0; }
  .ooki-player-public .player-art { width: 40px; height: 40px; }
  .ooki-player-public .player-center { padding: 0 10px; flex: 0 0 auto; }
  .ooki-player-public .player-extra,
  .ooki-player-public .player-radio-link { display: none !important; }
}

/* ── OMG Radio link in existing .ooki-player bars ─────────────────────── */
body:not(:has(.ooki-shell)) .ooki-player .player-radio-link {
  display: none; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px;
  background: rgba(156,109,255,0.12); border: 1px solid rgba(156,109,255,0.25);
  color: #9C6DFF; font-size: 12px; font-weight: 600; text-decoration: none;
  white-space: nowrap; flex-shrink: 0; transition: background 0.15s;
}
body:not(:has(.ooki-shell)) .ooki-player .player-radio-link.visible { display: flex; }
@media (max-width: 768px) {
  body:not(:has(.ooki-shell)) .ooki-player .player-radio-link { display: none !important; }
}

/* ── Footer OMG Radio placeholder links ────────────────────────────────── */
.footer-omg-radio-link {
  display: none; align-items: center; gap: 6px; color: #9C6DFF;
  text-decoration: none; font-size: 13px; font-weight: 600; transition: opacity 0.15s;
}
.footer-omg-radio-link.visible { display: flex; }
.footer-omg-radio-link:hover { opacity: 0.8; }

/* ═══════════════════════════════════════════════════════════════════════
   ❿  PUBLIC FOOTER — collapse on mobile
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .public-footer .footer-top { display: none !important; }
  .public-footer .footer-bottom {
    display: flex !important; flex-direction: column !important;
    align-items: center !important; gap: 8px !important;
    padding: 16px !important; text-align: center !important;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .public-footer .footer-top { grid-template-columns: 1fr 1fr !important; gap: 24px !important; }
  .public-footer .footer-brand { grid-column: span 2 !important; }
}

/* ══════════════════════════════════════════════════════════════════
   NUCLEAR PLAYER LIGHT MODE — ooki-public.css final override
   Must appear AFTER body:not(:has(.ooki-shell)) .ooki-player block
   so source-order wins the !important tiebreaker.
   ══════════════════════════════════════════════════════════════════ */
html[data-theme="light"] body .ooki-player,
html[data-theme="light"] body .ooki-player-public {
  background: var(--player-bg, rgba(245,245,247,0.98)) !important;
  background-color: var(--player-bg, rgba(245,245,247,0.98)) !important;
  border-top: 1px solid var(--player-border, rgba(0,0,0,0.10)) !important;
  color: var(--player-text-primary, #0A0A0A) !important;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.07) !important;
}
html[data-theme="light"] body .ooki-player .player-track-title,
html[data-theme="light"] body .ooki-player .player-title,
html[data-theme="light"] body .ooki-player-public .player-title {
  color: #0A0A0A !important;
}
html[data-theme="light"] body .ooki-player .player-track-artist,
html[data-theme="light"] body .ooki-player .player-artist,
html[data-theme="light"] body .ooki-player-public .player-artist {
  color: rgba(0,0,0,0.55) !important;
}
html[data-theme="light"] body .ooki-player .player-btn,
html[data-theme="light"] body .ooki-player .player-like,
html[data-theme="light"] body .ooki-player .player-track-like,
html[data-theme="light"] body .ooki-player-public .player-btn,
html[data-theme="light"] body .ooki-player-public .player-like {
  color: rgba(0,0,0,0.55) !important;
}
html[data-theme="light"] body .ooki-player .player-btn.play-btn {
  background: #0A0A0A !important;
  color: #ffffff !important;
}
html[data-theme="light"] body .ooki-player .player-btn:hover,
html[data-theme="light"] body .ooki-player-public .player-btn:hover {
  color: #0A0A0A !important;
  background: rgba(0,0,0,0.07) !important;
}
html[data-theme="light"] body .ooki-player .player-time,
html[data-theme="light"] body .ooki-player-public .player-time {
  color: rgba(0,0,0,0.40) !important;
}
html[data-theme="light"] body .ooki-player .progress-bar,
html[data-theme="light"] body .ooki-player .player-bar,
html[data-theme="light"] body .ooki-player-public .player-bar {
  background: rgba(0,0,0,0.14) !important;
}
html[data-theme="light"] body .ooki-player .progress-fill {
  background: #0A0A0A !important;
}
html[data-theme="light"] body .ooki-player .player-volume-bar {
  background: rgba(0,0,0,0.14) !important;
}
html[data-theme="light"] body .ooki-player .player-volume-fill {
  background: rgba(0,0,0,0.55) !important;
}
html[data-theme="light"] body .ooki-player .player-extra i,
html[data-theme="light"] body .ooki-player .player-volume i {
  color: rgba(0,0,0,0.45) !important;
}
html[data-theme="light"] body .ooki-player .player-track-art,
html[data-theme="light"] body .ooki-player .player-art,
html[data-theme="light"] body .ooki-player-public .player-art {
  background: #E0E0E6 !important;
}
html[data-theme="light"] body .ooki-player .art-placeholder {
  color: rgba(0,0,0,0.35) !important;
  background: linear-gradient(135deg, #E0E0E6, #CACAD0) !important;
}
