/**
 * Phase 31 — StreamLumi header chips + compact sidebar.
 */

body.sl-streamlumi-nav-active .sl-streamlumi-nav-chips {
  display: block;
  width: 100%;
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.sl-streamlumi-nav-active .sl-streamlumi-nav-chips-track {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

body.sl-streamlumi-nav-active .sl-streamlumi-nav-chips-track::-webkit-scrollbar {
  display: none;
}

body.sl-streamlumi-nav-active .sl-streamlumi-nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

body.sl-streamlumi-nav-active .sl-streamlumi-nav-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

body.sl-streamlumi-nav-active .sl-streamlumi-nav-chip small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.16);
  color: #a78bfa;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

body.sl-streamlumi-nav-active .sl-streamlumi-nav-sidebar {
  display: grid;
  gap: 14px;
}

body.sl-streamlumi-nav-active .sl-streamlumi-nav-sidebar-block {
  display: grid;
  gap: 6px;
}

body.sl-streamlumi-nav-active .sl-streamlumi-nav-sidebar-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.sl-streamlumi-nav-active .sl-streamlumi-nav-sidebar-links {
  display: grid;
  gap: 4px;
}

body.sl-streamlumi-nav-active .sl-streamlumi-nav-sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

body.sl-streamlumi-nav-active .sl-streamlumi-nav-sidebar-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

body.sl-streamlumi-nav-active .sl-streamlumi-nav-sidebar-link i {
  width: 16px;
  text-align: center;
  opacity: 0.85;
}

body.sl-streamlumi-nav-active .sl-streamlumi-nav-sidebar-link span {
  flex: 1 1 auto;
  min-width: 0;
}

body.sl-streamlumi-nav-active .sl-streamlumi-nav-sidebar-link small {
  color: #a78bfa;
  font-size: 11px;
  font-weight: 800;
}

body.sl-streamlumi-nav-active .sl-streamlumi-nav-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

body.sl-streamlumi-nav-active .sl-streamlumi-nav-all-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

body.sl-streamlumi-nav-active.sl-streamlumi-nav-compact-sidebar .mobile-sidebar-class .sidebar-section-block.sl-streamlumi-nav-hidden-section,
body.sl-streamlumi-nav-active.sl-streamlumi-nav-compact-sidebar .mobile-sidebar-class #smartFilters,
body.sl-streamlumi-nav-active.sl-streamlumi-nav-compact-sidebar .mobile-sidebar-class .sl-sidebar-label:not(.sl-streamlumi-nav-keep) {
  display: none !important;
}

body.sl-streamlumi-shell-active.sl-streamlumi-nav-active .sl-front-shell + .sl-streamlumi-nav-chips {
  margin-top: 0;
}

@media (max-width: 760px) {
  body.sl-streamlumi-nav-active .sl-front-shell .sl-streamlumi-nav-chips,
  body.sl-streamlumi-nav-active .sl-streamlumi-nav-chips {
    position: relative;
    top: auto;
    z-index: 1;
    background: #0a0a0a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
  }

  body.sl-streamlumi-nav-active .sl-streamlumi-nav-chips-track {
    padding: 10px 12px;
    gap: 8px;
    scroll-snap-type: x mandatory;
    mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 18px), transparent 100%);
  }

  body.sl-streamlumi-nav-active .sl-streamlumi-nav-chip {
    scroll-snap-align: start;
    min-height: 36px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    border-color: rgba(250, 204, 21, 0.22);
    background: rgba(255, 255, 255, 0.05);
  }

  body.sl-streamlumi-nav-active .sl-streamlumi-nav-chip small {
    font-size: 10px;
    min-width: 16px;
    padding: 1px 5px;
  }

  body.sl-streamlumi-shell-active.sl-streamlumi-nav-active .sl-front-shell + .sl-streamlumi-nav-chips {
    margin-top: 0;
  }

  body.sl-front-shell-active.sl-front-has-mobile-toolbar.sl-streamlumi-nav-active {
    padding-top: var(--sl-mobile-header-stack, 178px) !important;
  }
}

body.sl-streamlumi-nav-active .sl-front-drawer-nav-block .sl-front-link {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

body.sl-streamlumi-nav-active .sl-front-drawer-nav-block .sl-front-link small.sl-front-drawer-count {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.16);
  color: #a78bfa;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

body.sl-streamlumi-nav-active .sl-front-drawer-all-categories {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.sl-streamlumi-nav-active .sl-front-drawer-smart-filters .sl-front-drawer-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.sl-streamlumi-nav-active .sl-front-drawer-filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, 0.28);
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

body.sl-streamlumi-nav-active .sl-front-drawer-filter-chip:hover,
body.sl-streamlumi-nav-active .sl-front-drawer-filter-chip:focus {
  background: rgba(250, 204, 21, 0.12);
  border-color: rgba(250, 204, 21, 0.45);
  color: #fff;
}
