/* ============================================================
   Basstion Sound - LIQUID GLASS layer (2026-11)
   Loads LAST (after gold/radio/home) -> wins by cascade order.
   Everything is scoped under html.lg; js/liquid.js sets the class
   unless the URL has ?classic (A/B compare) or the page is an OBS overlay.
   Rollback: drop the <link> to this file + <script src="js/liquid.js">.
   Rules learned elsewhere (keep):
   - no per-frame CSS-var writes on elements with backdrop-filter (Chrome hangs)
   - OBS overlays stay transparent: nothing here applies in overlay-mode
   - gold = status tier, untouched; radio (.rd-*) has its own skin, untouched
   ============================================================ */

html.lg {
  --lg-fill: rgba(255, 255, 255, 0.055);
  --lg-fill-hi: rgba(255, 255, 255, 0.11);
  --lg-ink: rgba(12, 8, 26, 0.55);
  --lg-rim: rgba(255, 255, 255, 0.16);
  --lg-spec: rgba(255, 255, 255, 0.42);
  --lg-blur: blur(28px) saturate(150%) brightness(1.05);
  --lg-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.85), 0 2px 6px -2px rgba(0, 0, 0, 0.4);
  --lg-ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- 1. BACKDROP: glass needs colour behind it to read ---------- */
html.lg body { background: #06040d; }
html.lg .orb { opacity: 0.5; filter: blur(90px); }
html.lg .orb-1 { width: 620px; height: 620px; }
html.lg .orb-2 { width: 720px; height: 720px; }
html.lg .orb-3 { width: 520px; height: 520px; background: #22d3ee; opacity: 0.22; }
html.lg .grid-bg { opacity: 0.55; }

/* ---------- 2. THE PANE --------------------------------------------------
   Recipe: thin light fill over a dark ink (keeps text contrast), strong
   blur+saturation, a specular top rim, faint bottom bounce light, and a
   gradient hairline border (border-box background layer) so the edge
   catches light on the top-left like a real lens.                        */
html.lg .glass,
html.lg .glass-strong {
  /* rim = second background painted in the border-box under a 1px transparent
     border: works with border-radius, needs no ::before and no position change
     (forcing position:relative once dropped the fixed chart player - gold.css) */
  border: 1px solid transparent;
  background:
    linear-gradient(155deg, var(--lg-fill-hi) 0%, var(--lg-fill) 38%, rgba(255, 255, 255, 0.025) 100%) padding-box,
    linear-gradient(var(--lg-ink), var(--lg-ink)) padding-box,
    linear-gradient(140deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.10) 28%,
      rgba(255, 255, 255, 0.04) 60%, rgba(255, 255, 255, 0.22) 100%) border-box;
  backdrop-filter: var(--lg-blur);
  -webkit-backdrop-filter: var(--lg-blur);
  box-shadow:
    inset 0 1px 0 0 var(--lg-spec),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.06),
    inset 0 0 24px 0 rgba(255, 255, 255, 0.03),
    var(--lg-shadow);
}

/* "hot" tier from gold.css: same lens, denser + warmer rim */
html.lg .glass-hot,
html.lg .chart-top1,
html.lg #chart-player,
html.lg .queue-item.now {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 40%, rgba(255, 255, 255, 0.03) 100%),
    rgba(24, 16, 44, 0.55) !important;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.5),
    inset 0 0 30px 0 rgba(255, 255, 255, 0.04),
    var(--lg-shadow) !important;
}
html.lg .chart-top1 {
  box-shadow:
    inset 0 1px 0 0 rgba(255, 236, 160, 0.6),
    0 0 40px -8px var(--gold-glow, rgba(245, 197, 24, .35)),
    var(--lg-shadow) !important;
}

/* cards lift like a droplet on hover (transform only - cheap) */
html.lg .criterion,
html.lg .queue-item,
html.lg .chart-row {
  transition: transform .35s var(--lg-ease), box-shadow .35s var(--lg-ease), border-color .35s;
}
html.lg .criterion:hover { transform: translateY(-3px) scale(1.006); }

/* ---------- 3. NAVBAR -> floating glass capsule ------------------------- */
html.lg .navbar {
  background: transparent !important;
  border: 0 !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 12px 12px 0;
}
html.lg .navbar > div {
  height: 62px !important;
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04) 45%, rgba(255, 255, 255, 0.03)),
    rgba(10, 7, 22, 0.42);
  backdrop-filter: blur(30px) saturate(200%) brightness(1.1);
  -webkit-backdrop-filter: blur(30px) saturate(200%) brightness(1.1);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.07),
    0 18px 50px -18px rgba(0, 0, 0, 0.9);
  transition: background .3s, box-shadow .3s;
}
html.lg .navbar.scrolled > div {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03) 45%),
    rgba(8, 5, 18, 0.72);
}
html.lg .nav-logo { border-radius: 14px; box-shadow: 0 6px 18px rgba(168, 85, 247, 0.35), inset 0 1px 0 rgba(255, 255, 255, .3); }

/* nav links: the active one sits inside a glass pill instead of an underline */
html.lg .nav-link {
  padding: 7px 12px;
  border-radius: 12px;
  transition: color .2s, background .25s var(--lg-ease), box-shadow .25s var(--lg-ease);
}
html.lg .nav-scroll { gap: 4px !important; }
html.lg .nav-link::after { display: none; }
html.lg .nav-link:hover { background: rgba(255, 255, 255, 0.06); }
html.lg .nav-link.active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 4px 14px -4px rgba(0, 0, 0, 0.6);
}

/* ---------- 4. BUTTONS: gel ---------------------------------------------- */
html.lg .btn-primary,
html.lg .toggle-pill.active,
html.lg .tab-indicator {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.06) 46%, rgba(0, 0, 0, 0.08) 100%),
    linear-gradient(135deg, var(--pink), var(--purple) 60%, var(--indigo));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 6px rgba(70, 20, 120, 0.45),
    0 10px 28px -8px rgba(168, 85, 247, 0.7);
}
html.lg .btn-primary {
  transition: transform .25s var(--lg-ease), box-shadow .25s var(--lg-ease), filter .25s;
}
html.lg .btn-primary:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -2px 6px rgba(70, 20, 120, 0.45), 0 16px 40px -8px rgba(168, 85, 247, 0.85); }
html.lg .btn-primary:active { transform: scale(0.97); transition-duration: .08s; }

html.lg .btn-ghost,
html.lg .preset-btn,
html.lg .genre-chip {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform .2s var(--lg-ease), background .2s, border-color .2s, box-shadow .2s;
}
html.lg .btn-ghost:hover,
html.lg .preset-btn:hover,
html.lg .genre-chip:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 255, 255, 0.24);
}
html.lg .preset-btn:active,
html.lg .genre-chip:active { transform: scale(0.94); }
html.lg .genre-chip.active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(236, 72, 153, 0.45), rgba(168, 85, 247, 0.45));
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 6px 18px -6px rgba(236, 72, 153, 0.6);
}

/* ---------- 5. SLIDER: glass droplet thumb ------------------------------- */
html.lg input[type=range]::-webkit-slider-thumb {
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.95) 0 18%, rgba(255, 255, 255, 0.35) 40%, rgba(255, 255, 255, 0.12) 70%),
    rgba(236, 72, 153, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.6), inset 0 -2px 4px rgba(120, 40, 160, 0.35);
}
html.lg input[type=range]::-moz-range-thumb {
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.95) 0 18%, rgba(255, 255, 255, 0.35) 40%, rgba(255, 255, 255, 0.12) 70%),
    rgba(236, 72, 153, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* small controls & inputs: the backdrop's saturation flooded them purple
   (orbs show through a thin fill) -> darker fill, near-neutral backdrop */
html.lg .genre-chip,
html.lg .preset-btn,
html.lg input.glass,
html.lg textarea.glass {
  backdrop-filter: blur(14px) saturate(110%);
  -webkit-backdrop-filter: blur(14px) saturate(110%);
}
html.lg .genre-chip:not(.active),
html.lg .preset-btn {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)), rgba(10, 6, 22, 0.6) !important;
}

/* inputs: frosted wells */
html.lg input[type=text],
html.lg input[type=search],
html.lg textarea,
html.lg select,
html.lg .exact-input {
  background: rgba(8, 5, 18, 0.62) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.06);
}
html.lg input[type=text]:focus,
html.lg textarea:focus,
html.lg .exact-input:focus {
  border-color: rgba(236, 72, 153, 0.55) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(236, 72, 153, 0.14);
}

/* ---------- 6. STICKY SCORE BAR -> floating capsule ---------------------- */
html.lg .sticky-bar {
  left: 12px !important; right: 12px !important; bottom: 12px !important;
  border-radius: 22px;
  border: 0;
  background:
    linear-gradient(170deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03) 50%),
    rgba(8, 5, 18, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 -10px 50px -20px rgba(0, 0, 0, 0.9);
}

/* ---------- 7. PAGE TRANSITION: soft focus-in ---------------------------- */
html.lg .pg.on { animation: lgPageIn .55s var(--lg-ease); }
@keyframes lgPageIn {
  from { opacity: 0; transform: translateY(14px) scale(.992); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* ---------- 8. SAFETY ---------------------------------------------------- */
/* weak GPUs / phones: lighter blur keeps 60fps */
@media (max-width: 640px) {
  html.lg { --lg-blur: blur(18px) saturate(170%); }
  html.lg .navbar > div { backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
  html.lg .navbar { padding: 8px 8px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html.lg .pg.on { animation: none; }
  html.lg .criterion:hover, html.lg .btn-primary:hover { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  html.lg .glass, html.lg .glass-strong, html.lg .navbar > div, html.lg .sticky-bar {
    background: rgba(14, 10, 28, 0.94) !important;
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
}

/* ======================================================================
   9. HOME HERO CAROUSEL (#lg-hero) - wide cinematic banners
   Images: img/hero/*.jpg (CF lucid-origin, tools/gen_hero.py).
   Motion = opacity + transform only; nothing with backdrop-filter sits
   inside the slider (Ken Burns under a blur = repaint every frame).
   ====================================================================== */
.lg-hero { display: none; }
html.lg .lg-hero {
  display: block;
  position: relative;
  height: clamp(560px, 84vh, 880px);
  overflow: hidden;
  isolation: isolate;
  /* fade the whole slider into the page (orbs) instead of a hard edge */
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
}
html.lg #top #hm-proof {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px;
  margin: 0; padding: 16px 22px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)), rgba(12, 8, 26, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
html.lg .lgh-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 1s var(--lg-ease), visibility 1s;
}
html.lg .lgh-slide.on { opacity: 1; visibility: visible; }
html.lg .lgh-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 45%;
  transform: scale(1.09);
  transition: transform 9s linear;
}
html.lg .lgh-slide.on .lgh-img { transform: scale(1); }
html.lg .lgh-slide::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 4, 13, 0.94) 0%, rgba(6, 4, 13, 0.72) 30%, rgba(6, 4, 13, 0.18) 62%, rgba(6, 4, 13, 0.05) 100%),
    linear-gradient(0deg, rgba(6, 4, 13, 0.85) 0%, rgba(6, 4, 13, 0.4) 20%, transparent 45%),
    linear-gradient(180deg, rgba(6, 4, 13, 0.7) 0%, transparent 22%);
}
html.lg .lgh-copy {
  position: absolute; z-index: 2;
  left: max(20px, calc((100vw - 1152px) / 2 + 16px));
  right: 20px; bottom: 19%;
  max-width: 640px;
}
html.lg .lgh-copy > * {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s var(--lg-ease), transform .7s var(--lg-ease);
}
html.lg .lgh-slide.on .lgh-copy > * { opacity: 1; transform: none; }
html.lg .lgh-slide.on .lgh-copy > :nth-child(2) { transition-delay: .12s; }
html.lg .lgh-slide.on .lgh-copy > :nth-child(3) { transition-delay: .22s; }
html.lg .lgh-slide.on .lgh-copy > :nth-child(4) { transition-delay: .32s; }
html.lg .lgh-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
  font: 600 12px/1 'JetBrains Mono', monospace; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)), rgba(10, 6, 22, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
html.lg .lgh-title {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
  font-size: clamp(46px, 7.2vw, 104px); line-height: .9; letter-spacing: -0.045em;
  margin: 0 0 20px; text-wrap: balance;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}
html.lg .lgh-title .grad-text { -webkit-text-fill-color: transparent; text-shadow: none; }
html.lg .lgh-gold {
  background: linear-gradient(135deg, #ffe27a, #f5c518 45%, #a9761c);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: none;
}
html.lg .lgh-text {
  font-size: clamp(16px, 1.35vw, 19px); line-height: 1.55; color: rgba(255, 255, 255, 0.72);
  max-width: 520px; margin: 0 0 30px;
}
html.lg .lgh-cta { display: flex; flex-wrap: wrap; gap: 12px; }
html.lg .lgh-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 28px; border-radius: 18px; font-weight: 700; font-size: 16px; color: #fff;
}

/* nav: dots = progress bars that fill over the autoplay interval */
html.lg .lgh-nav {
  position: absolute; z-index: 3; bottom: 7%;
  right: max(20px, calc((100vw - 1152px) / 2 + 16px));
  display: flex; align-items: center; gap: 14px;
}
html.lg .lgh-dots { display: flex; gap: 8px; }
html.lg .lgh-dot {
  all: unset; cursor: pointer; width: 42px; height: 4px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.22); overflow: hidden; position: relative;
}
html.lg .lgh-dot i {
  position: absolute; inset: 0; border-radius: inherit; background: #fff;
  transform: scaleX(0); transform-origin: left;
}
html.lg .lgh-dot.on i { animation: lghFill 7s linear forwards; }
html.lg .lg-hero.paused .lgh-dot.on i { animation-play-state: paused; }
@keyframes lghFill { to { transform: scaleX(1); } }
html.lg .lgh-arrow {
  all: unset; cursor: pointer; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-size: 26px; line-height: 1; color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05)), rgba(10, 6, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 24px -8px #000;
  transition: transform .2s var(--lg-ease), background .2s;
}
html.lg .lgh-arrow:hover { transform: scale(1.08); background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.08)), rgba(10, 6, 22, 0.55); }
html.lg .lgh-arrow:active { transform: scale(.94); }

/* ======================================================================
   10. OLD HERO -> "STUDIO" BENTO under the slider
   Left text column duplicates slide 1 -> hidden. Live art card (Twitch,
   live score panel, toggle - all JS hooks intact) + stat tiles side by side.
   ====================================================================== */
html.lg #top { padding-top: 0 !important; overflow: visible; }
html.lg #top .hero-mesh,
html.lg #top .hero-grain { display: none; }
html.lg #top > div { padding-top: 0 !important; padding-bottom: 56px !important; margin-top: -40px; }
html.lg #top > div > .grid:first-child > .fade-up:first-child { display: none; }
html.lg #top > div > .grid:first-child { display: block; }
html.lg #top > div > .grid:last-child { margin-top: 16px; }
html.lg #top #hm-proof { margin-top: 16px; }
@media (min-width: 900px) {
  /* home.js injects #hm-proof between the two grids -> place by areas, not DOM order */
  html.lg #top > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "art stats" "proof proof"; gap: 16px; align-items: stretch; }
  html.lg #top > div > .grid:first-child { grid-area: art; }
  html.lg #top > div > .grid:last-child { grid-area: stats; margin-top: 0; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; }
  html.lg #top #hm-proof { grid-area: proof; }
  html.lg #top .hero-art-card { aspect-ratio: auto; height: 100%; min-height: 380px; max-width: none; margin: 0; animation: none; }
  html.lg #top > div > .grid:first-child > .relative { height: 100%; }
}
html.lg .stat-card {
  border-radius: 24px; padding: 26px !important;
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px;
  border: 1px solid transparent;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03) 45%) padding-box,
    linear-gradient(rgba(12, 8, 26, 0.6), rgba(12, 8, 26, 0.6)) padding-box,
    linear-gradient(140deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.06) 40%, rgba(255, 255, 255, 0.18)) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), var(--lg-shadow);
}
/* number size: see section 14 (first child is now the injected icon row) */
html.lg .hero-art-card { border-radius: 28px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), var(--lg-shadow); }

@media (max-width: 640px) {
  html.lg .lg-hero { height: 88svh; min-height: 560px; }
  html.lg .lgh-img { object-position: 70% 50%; }
  html.lg .lgh-slide::after {
    background: linear-gradient(0deg, #06040d 0%, rgba(6, 4, 13, 0.88) 38%, rgba(6, 4, 13, 0.25) 70%, rgba(6, 4, 13, 0.5) 100%);
  }
  html.lg .lgh-copy { bottom: 15%; }
  html.lg .lgh-nav { left: 20px; right: auto; bottom: 5%; }
  html.lg .lgh-arrow { display: none; }
  html.lg .lgh-btn { padding: 13px 20px; font-size: 15px; }
  html.lg #top > div { margin-top: -20px; }
}
@media (prefers-reduced-motion: reduce) {
  html.lg .lgh-img { transition: none; transform: none; }
}

/* ======================================================================
   11. NAVBAR -> full-width glass bar (overrides the capsule from §3)
   Spans the whole viewport over the hero; content spreads to 1440px.
   ====================================================================== */
html.lg .navbar { padding: 0 !important; }
html.lg .navbar > div {
  max-width: none !important; width: 100%;
  height: 74px !important; border-radius: 0;
  padding-left: max(20px, calc((100vw - 1440px) / 2 + 32px)) !important;
  padding-right: max(20px, calc((100vw - 1440px) / 2 + 32px)) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
    rgba(8, 5, 18, 0.34);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.10), 0 10px 40px -20px rgba(0, 0, 0, 0.8);
}
/* glowing hairline under the bar: brand gradient with a gold tail */
html.lg .navbar > div::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(236, 72, 153, 0.7) 22%, rgba(168, 85, 247, 0.7) 52%, rgba(245, 197, 24, 0.6) 80%, transparent);
  opacity: .7;
}
html.lg .navbar > div { position: relative; }
html.lg .navbar.scrolled > div {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)), rgba(8, 5, 18, 0.8);
}
html.lg .nav-scroll { font-size: 15px; }
html.lg .nav-link { padding: 9px 16px; border-radius: 14px; }
html.lg .nav-logo { width: 46px; height: 46px; }
@media (max-width: 640px) {
  html.lg .navbar { padding: 0 !important; }
  html.lg .navbar > div { height: 64px !important; padding-left: 12px !important; padding-right: 12px !important; }
}

/* ======================================================================
   12. PAGE BANNERS (.lg-phero) - rate / queue / charts / history
   Original eyebrow + h2 stay in DOM (JS hooks, counters) but hide in lg;
   the banner mirrors the counter via [data-mirror] (js/lg-hero.js).
   ====================================================================== */
.lg-phero { display: none; }
html.lg .lg-phero {
  --cw: 1024px;
  /* height grows with the copy (flex + padding) so text never slides under the navbar */
  display: flex; align-items: flex-end; position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(380px, 50vh, 500px);
  padding: 118px 0 64px;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}
html.lg #pg-charts .lg-phero { --cw: 1152px; }
html.lg .lgp-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%;
  animation: lgpZoom 14s var(--lg-ease) both;
}
@keyframes lgpZoom { from { transform: scale(1.1); } to { transform: scale(1); } }
html.lg .lg-phero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 4, 13, 0.92) 0%, rgba(6, 4, 13, 0.66) 34%, rgba(6, 4, 13, 0.15) 70%, rgba(6, 4, 13, 0.25) 100%),
    linear-gradient(180deg, rgba(6, 4, 13, 0.75) 0%, transparent 30%);
}
html.lg .lgp-copy {
  position: relative; z-index: 2;
  margin-left: max(16px, calc((100vw - var(--cw)) / 2 + 16px)); margin-right: 16px; max-width: 640px;
}
html.lg .lgp-copy > * { animation: lgpIn .7s var(--lg-ease) both; }
html.lg .lgp-copy > :nth-child(2) { animation-delay: .08s; }
html.lg .lgp-copy > :nth-child(3) { animation-delay: .16s; }
html.lg .lgp-copy > :nth-child(4) { animation-delay: .24s; }
@keyframes lgpIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
html.lg .lgp-copy .lgh-kicker { margin-bottom: 16px; }
html.lg .lgp-title {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
  font-size: clamp(42px, 5.8vw, 84px); line-height: .92; letter-spacing: -0.045em; margin: 0 0 14px;
  display: flex; align-items: flex-start; flex-wrap: wrap; gap: 0 .25em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
html.lg .lgp-title .grad-text { -webkit-text-fill-color: transparent; text-shadow: none; }
html.lg .lgp-count:not(:empty) {
  align-self: flex-start; margin-top: .25em;
  font: 700 clamp(15px, 1.5vw, 20px)/1 'JetBrains Mono', monospace; letter-spacing: 0;
  padding: 8px 13px; border-radius: 999px; color: #fff; text-shadow: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.06)), linear-gradient(135deg, #ec4899, #a855f7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 6px 18px -6px rgba(168, 85, 247, 0.8);
}
html.lg .lgp-text { font-size: clamp(15px, 1.25vw, 18px); line-height: 1.55; color: rgba(255, 255, 255, 0.72); max-width: 540px; margin: 0 0 24px; }

/* pages under a banner: no tall top padding, originals hidden */
html.lg #pg-rate > div, html.lg #pg-queue > div, html.lg #pg-charts > div, html.lg #pg-history > div { padding-top: 4px !important; }
html.lg #pg-rate > div > .section-eyebrow:first-child,
html.lg #pg-rate > div > .section-eyebrow:first-child + h2,
html.lg #pg-charts > div > .section-eyebrow:first-child,
html.lg #pg-charts > div > .section-eyebrow:first-child + h2,
html.lg #pg-charts > div > .section-eyebrow:first-child + h2 + p,
html.lg #queue-section > .section-eyebrow:first-child,
html.lg #queue-section > .section-eyebrow:first-child + div > div:first-child,
html.lg #history-section > .section-eyebrow:first-child,
html.lg #history-section > .section-eyebrow:first-child + div > h2 { display: none !important; }
html.lg #queue-section > .section-eyebrow:first-child + div,
html.lg #history-section > .section-eyebrow:first-child + div { justify-content: flex-end; }

/* section headings inside pages: one consistent rhythm */
html.lg #pg-charts h3.font-display { font-size: 15px; letter-spacing: .2em; color: rgba(255, 255, 255, 0.85); }

@media (max-width: 640px) {
  html.lg .lg-phero { min-height: 380px; padding: 96px 0 48px; }
  html.lg .lg-phero::after { background: linear-gradient(0deg, rgba(6, 4, 13, 0.92) 0%, rgba(6, 4, 13, 0.6) 45%, rgba(6, 4, 13, 0.5) 100%); }
}
@media (prefers-reduced-motion: reduce) {
  html.lg .lgp-img, html.lg .lgp-copy > * { animation: none; }
}

/* ======================================================================
   13. APP SHELL (CASALOMA-style): left sidebar + top bar + full-width main
   Desktop >=1100px only. Sidebar links carry .nav-link[data-tab] so the
   site go() highlights them for free. Mobile keeps the top nav (section 11).
   ====================================================================== */
.lg-side, .lgt-left, .lgt-chips { display: none; }

@media (min-width: 1100px) {
  html.lg { --side: 256px; }
  html.lg body { padding-left: var(--side); }

  /* ---- sidebar ---- */
  html.lg .lg-side {
    display: flex; flex-direction: column;
    position: fixed; top: 0; bottom: 0; left: 0; width: var(--side); z-index: 65;
    padding: 18px 14px 18px; overflow-y: auto; scrollbar-width: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)), rgba(7, 5, 15, 0.82);
    backdrop-filter: blur(26px) saturate(150%); -webkit-backdrop-filter: blur(26px) saturate(150%);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08);
  }
  html.lg .lg-side::-webkit-scrollbar { display: none; }
  html.lg .lgs-logo { display: flex; align-items: center; gap: 12px; padding: 4px 8px 10px; }
  html.lg .lgs-logo img { width: 44px; height: 44px; border-radius: 13px; box-shadow: 0 6px 18px rgba(168, 85, 247, 0.35), inset 0 1px 0 rgba(255, 255, 255, .3); }
  html.lg .lgs-logo span { font: 800 17px/1.05 'Bricolage Grotesque', sans-serif; letter-spacing: -0.02em; }
  html.lg .lgs-logo small { display: block; margin-top: 4px; font: 500 9px 'JetBrains Mono', monospace; letter-spacing: .35em; text-transform: uppercase; color: rgba(255, 255, 255, 0.35); }
  html.lg .lgs-h { font: 600 10.5px 'JetBrains Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.3); padding: 20px 12px 8px; }
  html.lg .lgs-nav { display: flex; flex-direction: column; gap: 2px; }
  html.lg .lgs-link {
    display: flex !important; align-items: center; gap: 12px; padding: 10px 12px !important; border-radius: 12px !important;
    color: rgba(255, 255, 255, 0.6); font: 600 14.5px/1.2 Inter, sans-serif; transition: background .2s, color .2s;
  }
  html.lg .lgs-link:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
  html.lg .lgs-link.active { color: #fff !important; }
  html.lg .lgs-link.active .lgs-ic { color: var(--pink); }
  html.lg .lgs-ic { width: 19px; height: 19px; flex: none; }
  html.lg .lgs-badge:not(:empty) {
    margin-left: auto; font: 700 11px/1 'JetBrains Mono', monospace; padding: 5px 8px; border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.05)), linear-gradient(135deg, #ec4899, #a855f7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  }
  html.lg .lgs-eq { margin-left: auto; display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
  html.lg .lgs-eq i { width: 3px; height: 12px; border-radius: 1px; background: var(--pink); transform-origin: bottom; animation: lgsEq 1s ease-in-out infinite; }
  html.lg .lgs-eq i:nth-child(2) { animation-delay: -.35s; background: var(--purple); }
  html.lg .lgs-eq i:nth-child(3) { animation-delay: -.7s; background: #f5c518; }
  html.lg .lgs-ext span small { display: block; margin-top: 2px; font: 500 11px 'JetBrains Mono', monospace; color: rgba(255, 255, 255, 0.3); }
  html.lg .lgs-live {
    display: block; margin: 0 4px; padding: 14px; border-radius: 16px;
    background: linear-gradient(155deg, rgba(236, 72, 153, 0.22), rgba(168, 85, 247, 0.10) 50%, rgba(255, 255, 255, 0.03)), rgba(12, 8, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: transform .2s var(--lg-ease);
  }
  html.lg .lgs-live:hover { transform: translateY(-2px); }
  html.lg .lgs-live-top { display: flex; align-items: center; gap: 8px; font: 700 12px 'JetBrains Mono', monospace; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }
  html.lg .lgs-live-row { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: baseline; margin-top: 10px; }
  html.lg .lgs-live-row b { font: 800 20px/1.1 'Bricolage Grotesque', sans-serif; }
  html.lg .lgs-live-row small { font-size: 12px; color: rgba(255, 255, 255, 0.45); }
  html.lg .lgs-foot { margin-top: auto; padding-top: 18px; }
  html.lg .lgs-cta { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 14px; border-radius: 14px; font-weight: 700; font-size: 14.5px; color: #fff; }

  /* ---- top bar = navbar minus logo/links ---- */
  html.lg .navbar { left: var(--side) !important; }
  html.lg .navbar > div { padding-left: 32px !important; padding-right: 32px !important; height: 72px !important; }
  html.lg .navbar > div > a:first-child, html.lg .navbar .nav-scroll { display: none !important; }
  html.lg .lgt-left { display: flex; flex-direction: column; justify-content: center; line-height: 1.1; }
  html.lg .lgt-crumb { font: 500 10px 'JetBrains Mono', monospace; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.35); }
  html.lg .lgt-title { font: 800 22px 'Bricolage Grotesque', sans-serif; letter-spacing: -0.02em; margin-top: 3px; }
  html.lg .lgt-chips { display: flex; gap: 8px; margin-left: auto; margin-right: 12px; }
  html.lg .lgt-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; font-size: 12.5px; color: rgba(255, 255, 255, 0.6);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)); border: 1px solid rgba(255, 255, 255, 0.1);
  }
  html.lg .lgt-chip b { color: #fff; font: 700 13px 'JetBrains Mono', monospace; }
  html.lg .lgt-link:hover { color: #fff; border-color: rgba(255, 255, 255, 0.25); }

  /* ---- full-width content ---- */
  html.lg main .max-w-6xl, html.lg main .max-w-5xl { max-width: 1480px; padding-left: 40px; padding-right: 40px; }

  /* hero slider -> big rounded card under the top bar */
  html.lg .lg-hero {
    margin: 88px 24px 0; border-radius: 30px; height: clamp(520px, 72vh, 780px);
    -webkit-mask-image: none; mask-image: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 30px 80px -30px rgba(0, 0, 0, 0.9);
  }
  html.lg .lgh-slide::after {
    background:
      linear-gradient(90deg, rgba(6, 4, 13, 0.94) 0%, rgba(6, 4, 13, 0.7) 32%, rgba(6, 4, 13, 0.15) 64%, rgba(6, 4, 13, 0.05) 100%),
      linear-gradient(0deg, rgba(6, 4, 13, 0.7) 0%, transparent 35%);
  }
  html.lg .lgh-copy { left: 64px; bottom: 16%; }
  html.lg .lgh-nav { right: 40px; bottom: 40px; }
  html.lg #top > div { margin-top: 24px; }

  /* page banners -> rounded cards too */
  html.lg .lg-phero {
    margin: 88px 24px 0; border-radius: 30px; padding: 72px 0 60px; min-height: clamp(340px, 42vh, 440px);
    -webkit-mask-image: none; mask-image: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 30px 80px -30px rgba(0, 0, 0, 0.9);
  }
  html.lg .lgp-copy { margin-left: 64px; }
  html.lg #pg-rate > div, html.lg #pg-queue > div, html.lg #pg-charts > div, html.lg #pg-history > div { padding-top: 32px !important; }

  /* fixed bits re-centred on the content column */
  html.lg .sticky-bar { left: calc(var(--side) + 12px) !important; }
  html.lg #chart-player { left: calc(50% + var(--side) / 2) !important; }
  html.lg #lg-cmp { left: calc(50% + var(--side) / 2); }
}
@keyframes lgsEq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

/* host-only must beat .lgs-link display:flex !important (same weight, so needs more specificity) */
html.lg body:not(.host) .lg-side .host-only { display: none !important; }

/* full-bleed band (home.css .hm-band: width 100vw) must not count the sidebar:
   it overflowed by side/2 and the page scrolled sideways (arrow keys moved it) */
@media (min-width: 1100px) {
  html.lg .hm-band { width: calc(100vw - var(--side)); margin-left: calc(50% - (100vw - var(--side)) / 2); margin-right: calc(50% - (100vw - var(--side)) / 2); }
}
html.lg { overflow-x: clip; }

/* ======================================================================
   14. HOME STAT TILES - icon, caption, link, tone glow, avg-score ring
   Nodes injected by js/lg-hero.js; hidden in the classic look.
   ====================================================================== */
.lgsc-top, .lgsc-sub, .lgsc-ring { display: none; }
html.lg .lgsc { position: relative; overflow: hidden; isolation: isolate; --tone: 236, 72, 153; }
html.lg .lgsc-purple { --tone: 168, 85, 247; }
html.lg .lgsc-cyan { --tone: 34, 211, 238; }
html.lg .lgsc-gold { --tone: 245, 197, 24; }
/* coloured corner glow + faint grid: the tile reads as a "screen", not an empty box */
html.lg .lgsc::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(var(--tone), 0.28), transparent 55%),
    radial-gradient(80% 60% at 0% 100%, rgba(var(--tone), 0.10), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 22px);
}
html.lg .lgsc:hover { transform: translateY(-3px); }
html.lg .lgsc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: auto; padding-bottom: 18px; }
html.lg .lgsc-ic {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  color: rgb(var(--tone));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)), rgba(var(--tone), 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 24px -10px rgba(var(--tone), 0.8);
}
html.lg .lgsc-ic svg { width: 22px; height: 22px; }
html.lg .lgsc-link {
  font: 600 12.5px 'Inter', sans-serif; color: rgba(255, 255, 255, 0.55);
  padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.12);
  transition: color .2s, border-color .2s, background .2s;
}
html.lg .lgsc-link:hover { color: #fff; border-color: rgba(var(--tone), 0.6); background: rgba(var(--tone), 0.12); }
html.lg .lgsc-sub { display: block; margin-top: 8px; font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, 0.42); max-width: 260px; }
html.lg .stat-card > div[id^="stat-"] { font-size: clamp(44px, 4.6vw, 68px) !important; letter-spacing: -0.04em; }
html.lg .lgsc-cyan > div[id^="stat-"] { color: #fff; }

/* average score ring (real value via --p) */
html.lg .lgsc-ring { display: block; position: absolute; right: 22px; bottom: 22px; width: 86px; height: 86px; }
html.lg .lgsc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
html.lg .lgsc-ring circle { fill: none; stroke-width: 4; stroke: rgba(255, 255, 255, 0.08); }
html.lg .lgsc-ring circle.v {
  stroke: rgb(var(--tone)); stroke-linecap: round;
  stroke-dasharray: calc(var(--p, 0) * 1) 100;
  filter: drop-shadow(0 0 6px rgba(var(--tone), 0.7));
  transition: stroke-dasharray 1.2s var(--lg-ease);
}

/* first slide: user banner (16:9) pinned to the top so the mic head is never cut */
html.lg .lgh-slide[data-i="0"] .lgh-img { object-position: 70% 18%; }

/* hero title must fit short-but-wide windows (2280x760): cap by height too */
html.lg .lgh-title { font-size: clamp(42px, min(6.4vw, 10.5vh), 104px); }
html.lg .lgh-text { margin-bottom: clamp(18px, 3vh, 30px); }
html.lg .lgh-kicker { margin-bottom: clamp(12px, 2.4vh, 22px); }

/* content spans the full column like the hero card (same 24px gutters) - CASALOMA rhythm */
@media (min-width: 1100px) {
  html.lg main .max-w-6xl, html.lg main .max-w-5xl { max-width: none; padding-left: 24px; padding-right: 24px; }
  html.lg .lgp-copy { margin-left: 64px; }
}

/* ======================================================================
   15. HOME ART CARD - interactive: tilt + glare + parallax (js/lg-hero.js),
   EQ bars and an action bar that slides up on hover (always on touch).
   ====================================================================== */
.lga-ui { display: none; }
html.lg #top .hero-art-card { transition: transform .5s var(--lg-ease); transform-style: preserve-3d; will-change: transform; }
html.lg #top .hero-art-card.lga-on { transition: transform .08s linear; }
html.lg #top .hero-art-photo { object-position: 50% 12%; transition: transform .6s var(--lg-ease); }
html.lg #top .hero-art-card.lga-on .hero-art-photo { transition: transform .12s linear; }
html.lg .lga-ui { display: block; position: absolute; inset: 0; z-index: 4; pointer-events: none; }
html.lg .lga-glare {
  position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.22), transparent 55%);
  mix-blend-mode: soft-light;
}
html.lg .lga-on .lga-glare { opacity: 1; }
html.lg .lga-eq {
  position: absolute; right: 22px; top: 22px; display: flex; gap: 3px; align-items: flex-end; height: 34px;
  opacity: .75; transition: opacity .3s;
}
html.lg .lga-eq i {
  width: 4px; height: 100%; border-radius: 2px; transform-origin: bottom; transform: scaleY(.2);
  background: linear-gradient(0deg, #ec4899, #a855f7 60%, #22d3ee);
  animation: lgaEq 1.1s ease-in-out infinite;
}
html.lg .lga-on .lga-eq { opacity: 1; }
html.lg .lga-bar {
  position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end;
  pointer-events: auto; opacity: 0; transform: translateY(14px); transition: opacity .3s, transform .4s var(--lg-ease);
}
html.lg .hero-art-card:hover .lga-bar, html.lg .hero-art-card:focus-within .lga-bar { opacity: 1; transform: none; }
html.lg .lga-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px;
  font: 700 13px Inter, sans-serif; color: #fff; cursor: pointer;
  background: rgba(10, 7, 20, 0.55); border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: background .2s, transform .15s;
}
html.lg .lga-btn:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }
html.lg .lga-btn b { font-family: 'JetBrains Mono', monospace; color: #22d3ee; }
html.lg .lga-main { background: linear-gradient(135deg, #ec4899, #a855f7); border-color: rgba(255, 255, 255, 0.35); box-shadow: 0 10px 26px -10px rgba(236, 72, 153, 0.9); }
html.lg body:not(.host) .lga-ui .host-only, html.lg body.host .lga-ui .viewer-only { display: none; }
@media (hover: none) { html.lg .lga-bar { opacity: 1; transform: none; } }
@keyframes lgaEq { 0%, 100% { transform: scaleY(.18); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { html.lg .lga-eq i { animation: none; transform: scaleY(.5); } }

/* ======================================================================
   16. HOME: ticker under the slider + more air between blocks
   ====================================================================== */
.hm-ticker { display: none; }
html.lg .hm-ticker {
  display: block; position: relative; overflow: hidden; margin: 22px 16px 0; height: 58px; border-radius: 18px;
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.12), rgba(168, 85, 247, 0.10) 50%, rgba(34, 211, 238, 0.08)), rgba(10, 7, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
html.lg .hmt-track {
  display: inline-flex; align-items: center; height: 100%; white-space: nowrap; gap: 0;
  animation: hmtRun 60s linear infinite; will-change: transform;
}
html.lg .hm-ticker:hover .hmt-track { animation-play-state: paused; }
html.lg .hmt-track > span, html.lg .hmt-work { display: inline-flex; align-items: center; gap: 10px; padding: 0 22px; font: 600 15px Inter, sans-serif; color: rgba(255, 255, 255, 0.82); }
html.lg .hmt-track b { font: 800 16px 'Bricolage Grotesque', sans-serif; color: #ffb648; }
html.lg .hmt-work { transition: color .2s; }
html.lg .hmt-work .hmt-t { font-weight: 800; color: #fff; }
html.lg .hmt-work .hmt-n { color: rgba(255, 255, 255, 0.45); font-weight: 500; }
html.lg a.hmt-work:hover .hmt-t { color: #f472b6; }
html.lg .hmt-sep { font-style: normal; color: rgba(236, 72, 153, 0.7); font-size: 13px; }
html.lg .hmt-live { color: #fff !important; font-weight: 800 !important; text-transform: uppercase; letter-spacing: .06em; font-size: 13.5px !important; }
html.lg .hmt-live i { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, .7); animation: hmtPulse 1.6s infinite; }
@keyframes hmtRun { to { transform: translateX(-50%); } }
@keyframes hmtPulse { 70% { box-shadow: 0 0 0 9px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
@media (prefers-reduced-motion: reduce) { html.lg .hmt-track { animation: none; } html.lg .hm-ticker { overflow-x: auto; } }

/* air: the home blocks used to sit almost edge to edge */
html.lg #top > div { gap: 22px; }
html.lg #top #hm-proof { margin-top: 22px; }
html.lg #pg-home > div.max-w-6xl { padding-top: 88px; }
html.lg #pg-home > div.max-w-6xl > * { margin-bottom: 104px !important; }
html.lg #pg-home > div.max-w-6xl > *:last-child { margin-bottom: 0 !important; }
html.lg .hmp-grid { gap: 22px; }
html.lg .hmp-bar, html.lg #cm-home .hmp-bar { margin-bottom: 22px; }
@media (min-width: 1100px) {
  html.lg .hm-ticker { margin: 24px 24px 0; }
  html.lg #top > div { margin-top: 56px; }
}
@media (max-width: 640px) {
  html.lg .hm-ticker { height: 50px; margin: 14px 12px 0; border-radius: 14px; }
  html.lg .hmt-track > span, html.lg .hmt-work { font-size: 13.5px; padding: 0 16px; }
  html.lg #pg-home > div.max-w-6xl { padding-top: 56px; }
  html.lg #pg-home > div.max-w-6xl > * { margin-bottom: 72px !important; }
}
@media (max-width: 640px) {
  html.lg #top > div { margin-top: 28px; }
  /* phone: the ring moves to the empty top-right corner of the tile instead of covering the caption */
  html.lg .lgsc-ring { width: 54px; height: 54px; right: 16px; top: 22px; bottom: auto; }
}
/* slide «Чарты»: on phones keep the gold record label (≈77% of the width) in the frame */
@media (max-width: 640px) { html.lg .lgh-slide[data-i="2"] .lgh-img { object-position: 85% 45%; } }

/* ======================================================================
   17. SIDEBAR v2: floating panel (≥1100px). Spinning vinyl ring on the logo,
   sliding active pill, tone-coloured icon tiles, feature cards, collapsible
   «Мы в сети», legal footer, soft cursor-follow glow. JS: js/lg-hero.js
   ====================================================================== */
@media (min-width: 1100px) {
  html.lg { --side: 284px; }
  html.lg .lg-side.sb {
    top: 14px; bottom: 14px; left: 14px; width: calc(var(--side) - 28px);
    padding: 20px 14px 16px; border-radius: 28px; overflow-x: hidden;
    background:
      radial-gradient(120% 40% at 50% 0%, rgba(236, 72, 153, 0.10), transparent 70%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
      rgba(10, 7, 20, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 30px 70px -30px rgba(0, 0, 0, 0.9);
  }
  html.lg .navbar { left: var(--side) !important; }

  /* cursor-follow glow (position set by JS, transform-free: only a background) */
  html.lg .sb-glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; border-radius: inherit;
    background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 30%), rgba(168, 85, 247, 0.13), transparent 70%); }
  html.lg .lg-side.sb:hover .sb-glow { opacity: 1; }
  html.lg .lg-side.sb > *:not(.sb-glow) { position: relative; }

  /* logo: vinyl ring */
  html.lg .sb-logo { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 6px 0 18px; text-align: center; }
  html.lg .sb-logo-ring { position: relative; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; }
  html.lg .sb-logo-ring::before { content: ''; position: absolute; inset: -6px; border-radius: 50%;
    background: conic-gradient(from 0deg, #ec4899, #a855f7, #22d3ee, #f5c518, #ec4899);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
    animation: sbSpin 9s linear infinite; }
  html.lg .sb-logo-ring::after { content: ''; position: absolute; inset: -18px; border-radius: 50%; z-index: -1;
    background: radial-gradient(closest-side, rgba(236, 72, 153, 0.35), transparent); animation: sbBreath 3.2s ease-in-out infinite; }
  html.lg .sb-logo-ring img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
  html.lg .sb-logo:hover .sb-logo-ring::before { animation-duration: 2.5s; }
  html.lg .sb-logo-t { font: 800 17px/1.1 'Bricolage Grotesque', sans-serif; letter-spacing: -0.02em; }
  html.lg .sb-logo-t small { display: block; margin-top: 4px; font: 500 9px 'JetBrains Mono', monospace; letter-spacing: .4em; text-transform: uppercase; color: rgba(255,255,255,.35); }

  /* main nav with the sliding pill */
  html.lg .sb-nav { position: relative; display: flex; flex-direction: column; gap: 3px; }
  html.lg .sb-ind { position: absolute; left: 0; right: 0; top: 0; height: 46px; border-radius: 14px; pointer-events: none; opacity: 0;
    transform: translateY(var(--iy, 0px)); transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), opacity .25s, background .3s, border-color .3s;
    background: linear-gradient(90deg, rgba(var(--it, 236,72,153), 0.20), rgba(var(--it, 236,72,153), 0.05));
    border: 1px solid rgba(var(--it, 236,72,153), 0.38); box-shadow: 0 10px 26px -14px rgba(var(--it, 236,72,153), 0.9); }
  html.lg .sb-ind::before { content: ''; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: rgb(var(--it, 236,72,153)); }
  html.lg .sb-ind.on { opacity: 1; }
  html.lg .sb-link { position: relative; display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 10px; border-radius: 14px;
    color: rgba(255,255,255,.62); font: 600 14.5px Inter, sans-serif; transition: color .2s, background .2s; }
  html.lg .sb-link:hover { color: #fff; background: rgba(255,255,255,.04); }
  html.lg .sb-link.active { color: #fff; background: transparent; }
  html.lg .sb-ic { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center;
    color: rgba(255,255,255,.7); background: rgba(255,255,255,.06); transition: background .25s, color .25s, box-shadow .25s, transform .25s; }
  html.lg .sb-ic svg, html.lg .sb-feat-ic svg, html.lg .sb-cta svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  html.lg .sb-link:hover .sb-ic { color: rgb(var(--t)); background: rgba(var(--t), .16); transform: rotate(-6deg) scale(1.06); }
  html.lg .sb-link.active .sb-ic { color: #fff; background: linear-gradient(135deg, rgba(var(--t), .95), rgba(var(--t), .55)); box-shadow: 0 6px 18px -6px rgba(var(--t), .9); }
  html.lg .sb-badge:not(:empty) { margin-left: auto; font: 700 11px/1 'JetBrains Mono', monospace; padding: 5px 8px; border-radius: 999px;
    background: linear-gradient(135deg, #ec4899, #a855f7); box-shadow: inset 0 1px 0 rgba(255,255,255,.45); }
  html.lg .sb-badge.bump { animation: sbBump .6s cubic-bezier(.3, 1.6, .5, 1); }

  /* feature cards */
  html.lg .sb-feats { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
  html.lg .sb-feat { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 16px;
    background: linear-gradient(135deg, rgba(var(--f), 0.20), rgba(var(--f), 0.05)); border: 1px solid rgba(var(--f), 0.30);
    transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), border-color .25s, box-shadow .25s; }
  html.lg .sb-feat::after { content: ''; position: absolute; top: 0; bottom: 0; width: 60%; left: -70%; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.12), transparent); transition: left .7s ease; }
  html.lg .sb-feat:hover { transform: translateY(-2px); border-color: rgba(var(--f), 0.6); box-shadow: 0 14px 30px -16px rgba(var(--f), 0.9); }
  html.lg .sb-feat:hover::after { left: 110%; }
  html.lg .sb-feat.active { border-color: rgba(var(--f), 0.85); box-shadow: 0 0 0 1px rgba(var(--f), 0.4), 0 14px 30px -14px rgba(var(--f), 0.9); }
  html.lg .sb-feat-comm { --f: 168, 85, 247; }
  html.lg .sb-feat-radio { --f: 255, 182, 72; }
  html.lg .sb-feat-live { --f: 239, 68, 68; }
  html.lg .sb-feat-ic { width: 36px; height: 36px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff;
    background: linear-gradient(135deg, rgba(var(--f), 1), rgba(var(--f), .55)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
  html.lg .sb-feat-live .sb-feat-ic { background: rgba(var(--f), .18); }
  html.lg .sb-feat-t { min-width: 0; flex: 1; display: flex; flex-direction: column; }
  html.lg .sb-feat-t > b { font: 800 14px 'Bricolage Grotesque', sans-serif; letter-spacing: -.01em; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
  html.lg .sb-feat-t small { font-size: 11.5px; color: rgba(255,255,255,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.lg .sb-feat-t small b { color: rgba(255,255,255,.85); font-weight: 700; }
  html.lg .sb-new { font: 700 9px 'JetBrains Mono', monospace; font-style: normal; letter-spacing: .08em; text-transform: uppercase; padding: 2px 6px; border-radius: 999px; color: #22d3ee; border: 1px solid rgba(34,211,238,.45); }
  html.lg .sb-chev { font-style: normal; color: rgba(255,255,255,.4); font-size: 18px; transition: transform .25s, color .25s; }
  html.lg .sb-feat:hover .sb-chev { transform: translateX(3px); color: #fff; }
  html.lg .sb-eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 16px; }
  html.lg .sb-eq i { width: 3px; height: 16px; border-radius: 2px; background: rgb(var(--f)); transform-origin: bottom; animation: lgsEq 1s ease-in-out infinite; }
  html.lg .sb-eq i:nth-child(2) { animation-delay: -.3s; } html.lg .sb-eq i:nth-child(3) { animation-delay: -.6s; } html.lg .sb-eq i:nth-child(4) { animation-delay: -.15s; }

  /* group «Мы в сети» */
  html.lg .sb-sep { height: 1px; margin: 18px 6px 6px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent); }
  html.lg .sb-group-h { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 10px 6px;
    font: 700 10.5px 'JetBrains Mono', monospace; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.38); cursor: pointer; }
  html.lg .sb-group-h:hover { color: rgba(255,255,255,.7); }
  html.lg .sb-caret { font-style: normal; transition: transform .3s; }
  html.lg .sb-group-h[aria-expanded="false"] .sb-caret { transform: rotate(180deg); }
  html.lg .sb-group { display: flex; flex-direction: column; gap: 2px; overflow: hidden; max-height: 240px; transition: max-height .35s ease, opacity .3s; }
  html.lg .sb-group.closed { max-height: 0; opacity: 0; }
  html.lg .sb-ext { height: 42px; font-size: 13.5px; }
  html.lg .sb-ext .sb-ic { width: 28px; height: 28px; border-radius: 9px; }
  html.lg .sb-ext .sb-tx { display: flex; flex-direction: column; line-height: 1.15; }
  html.lg .sb-ext small { font: 500 10.5px 'JetBrains Mono', monospace; color: rgba(255,255,255,.32); margin-top: 2px; }

  /* footer */
  html.lg .sb-foot { margin-top: auto; padding-top: 16px; }
  html.lg .sb-cta { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 14px; border-radius: 14px; font-weight: 700; font-size: 14px; color: #fff; }
  html.lg .sb-legal { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; padding: 12px 8px 0; border-top: 1px solid rgba(255,255,255,.07); }
  html.lg .sb-legal a { font-size: 12px; color: rgba(255,255,255,.42); transition: color .2s; }
  html.lg .sb-legal a:hover { color: #fff; }
  html.lg .sb-legal span { font: 500 10.5px 'JetBrains Mono', monospace; color: rgba(255,255,255,.25); margin-top: 2px; }
}
@keyframes sbSpin { to { transform: rotate(360deg); } }
@keyframes sbBreath { 0%, 100% { opacity: .55; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes sbBump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  html.lg .sb-logo-ring::before, html.lg .sb-logo-ring::after, html.lg .sb-eq i { animation: none; }
  html.lg .sb-ind { transition: opacity .2s; }
}

@media (min-width: 1100px) {
  /* active text stays white (gold.css paints .nav-link.active gold) */
  html.lg .sb-link.active, html.lg .sb-feat.active, html.lg .sb-feat.active .sb-feat-t > b { color: #fff !important; }
  /* socials: one row of tone-coloured icon tiles instead of a tall list */
  html.lg .sb-group, html.lg .sb-group.closed { flex-direction: row; justify-content: space-between; gap: 8px; max-height: none; opacity: 1; overflow: visible; padding: 4px 4px 0; }
  html.lg .sb-ext { flex: 1; height: 44px; padding: 0; justify-content: center; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
    transition: transform .25s cubic-bezier(.3,1.4,.5,1), background .25s, border-color .25s, box-shadow .25s; }
  html.lg .sb-ext .sb-tx { display: none; }
  html.lg .sb-ext .sb-ic { background: none; width: auto; height: auto; color: rgba(255,255,255,.7); }
  html.lg .sb-ext:hover { transform: translateY(-3px); background: rgba(var(--t), .16); border-color: rgba(var(--t), .5); box-shadow: 0 10px 22px -12px rgba(var(--t), .9); }
  html.lg .sb-ext:hover .sb-ic { color: rgb(var(--t)); transform: none; background: none; }
  html.lg .sb-group-h { cursor: default; }
  html.lg .sb-group-h:hover { color: rgba(255,255,255,.38); }
  /* sign-in in the panel: outlined, so it doesn't compete with the main CTA */
  html.lg .cm-chip-wrap.side .cm-chip.cm-login { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.85); }
  html.lg .cm-chip-wrap.side .cm-chip.cm-login:hover { border-color: rgba(236,72,153,.6); color: #fff; background: rgba(236,72,153,.1); }
  html.lg .lg-side.sb > * { flex-shrink: 0; }
}

@media (min-width: 1100px) {
  html.lg .sb-feat, html.lg .sb-feat-t > b { color: #fff; }
  html.lg .sb-logo { padding: 2px 0 14px; }
  html.lg .sb-link { height: 44px; }
  html.lg .sb-feat { padding: 10px 12px; }
  html.lg .sb-sep { margin: 14px 6px 4px; }
}
/* short screens: compact logo so the whole panel fits without scrolling */
@media (min-width: 1100px) and (max-height: 860px) {
  html.lg .sb-logo { flex-direction: row; justify-content: center; gap: 12px; padding: 0 0 12px; text-align: left; }
  html.lg .sb-logo-ring { width: 46px; height: 46px; }
  html.lg .sb-logo-ring img { width: 40px; height: 40px; }
  html.lg .sb-link { height: 40px; }
  html.lg .sb-feats { gap: 7px; margin-top: 12px; }
  html.lg .sb-feat { padding: 8px 10px; }
  html.lg .sb-feat-ic { width: 32px; height: 32px; }
  html.lg .sb-legal { flex-direction: row; flex-wrap: wrap; gap: 2px 10px; margin-top: 10px; padding-top: 10px; }
}

/* ======================================================================
   18. SIDEBAR: living icons - each icon has its own micro-animation on hover
   (transform/opacity only; parts of the SVG animate around their own centre)
   ====================================================================== */
@media (min-width: 1100px) and (prefers-reduced-motion: no-preference) {
  html.lg .sb-ic svg, html.lg .sb-feat-ic svg { overflow: visible; }
  html.lg .sb-ic svg *, html.lg .sb-feat-ic svg * { transform-box: fill-box; transform-origin: center; }
  /* the generic tilt from section 17 would fight the per-icon motion */
  html.lg .sb-link:hover .sb-ic[data-i] { transform: none; }

  /* home: hop */
  html.lg .sb-link:hover [data-i="home"] svg { animation: icHop .6s cubic-bezier(.3, 1.6, .5, 1); }
  /* rate: slider knobs slide */
  html.lg .sb-link:hover [data-i="rate"] line:nth-child(7) { animation: icKnobL .9s ease-in-out infinite; }
  html.lg .sb-link:hover [data-i="rate"] line:nth-child(8) { animation: icKnobR .9s ease-in-out infinite .15s; }
  html.lg .sb-link:hover [data-i="rate"] line:nth-child(9) { animation: icKnobL .9s ease-in-out infinite .3s; }
  /* queue: rows slide in one by one */
  html.lg .sb-link:hover [data-i="queue"] line { animation: icRow .5s cubic-bezier(.3, 1.4, .5, 1) both; }
  html.lg .sb-link:hover [data-i="queue"] line:nth-child(2) { animation-delay: .08s; }
  html.lg .sb-link:hover [data-i="queue"] line:nth-child(3) { animation-delay: .16s; }
  /* charts: trophy cheers */
  html.lg .sb-link:hover [data-i="charts"] svg { animation: icCheer .8s ease-in-out; transform-origin: 50% 90%; }
  /* history: rewind */
  html.lg .sb-link:hover [data-i="history"] svg { animation: icRewind .8s cubic-bezier(.4, 0, .2, 1); }

  /* community: the second person pops up, the first one nods */
  html.lg .sb-feat:hover [data-i="comm"] path:nth-child(3), html.lg .sb-feat:hover [data-i="comm"] path:nth-child(4) { animation: icPop .6s cubic-bezier(.3, 1.6, .5, 1); }
  html.lg .sb-feat:hover [data-i="comm"] circle { animation: icNod .6s ease-in-out .1s; }
  /* radio: waves radiate */
  html.lg .sb-feat:hover [data-i="radio"] path:nth-child(2), html.lg .sb-feat:hover [data-i="radio"] path:nth-child(4) { animation: icWave 1s ease-out infinite; }
  html.lg .sb-feat:hover [data-i="radio"] path:nth-child(1), html.lg .sb-feat:hover [data-i="radio"] path:nth-child(5) { animation: icWave 1s ease-out infinite .25s; }
  /* live: ping ring around the dot */
  html.lg [data-i="live"] { position: relative; }
  html.lg .sb-feat:hover [data-i="live"]::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px;
    border-radius: 50%; border: 2px solid #ef4444; animation: icPing 1s ease-out infinite; }

  /* socials */
  html.lg .sb-ext:hover [data-i="tg"] svg { animation: icFly .9s cubic-bezier(.5, 0, .3, 1); }
  html.lg .sb-ext:hover [data-i="bot"] path:nth-child(5), html.lg .sb-ext:hover [data-i="bot"] path:nth-child(6) { animation: icBlink .9s ease-in-out; }
  html.lg .sb-ext:hover [data-i="bot"] path:nth-child(1) { animation: icAntenna .9s ease-in-out; transform-origin: 50% 100%; }
  html.lg .sb-ext:hover [data-i="vk"] svg { animation: icWiggle .7s ease-in-out; }
  html.lg .sb-ext:hover [data-i="yt"] polygon { animation: icPlay .8s ease-in-out infinite; }

  /* CTA paper plane nudges forward */
  html.lg .sb-cta:hover svg { animation: icNudge .7s ease-in-out infinite; }
}
@keyframes icHop { 0% { transform: translateY(0); } 35% { transform: translateY(-4px) scaleX(.94); } 65% { transform: translateY(0) scaleY(.9); } 100% { transform: none; } }
@keyframes icKnobL { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-3px); } }
@keyframes icKnobR { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
@keyframes icRow { from { transform: translateX(-6px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes icCheer { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg) translateY(-1px); } 45% { transform: rotate(12deg) translateY(-2px); } 70% { transform: rotate(-6deg); } }
@keyframes icRewind { from { transform: rotate(0); } to { transform: rotate(-360deg); } }
@keyframes icPop { 0% { transform: none; } 40% { transform: translateY(-3px) scale(1.12); } 100% { transform: none; } }
@keyframes icNod { 0%, 100% { transform: none; } 50% { transform: translateY(1.5px); } }
@keyframes icWave { 0% { opacity: 1; transform: scale(1); } 60% { opacity: .25; transform: scale(1.18); } 100% { opacity: 1; transform: scale(1); } }
@keyframes icPing { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
@keyframes icFly { 0% { transform: none; opacity: 1; } 45% { transform: translate(9px, -9px) scale(.7); opacity: 0; } 46% { transform: translate(-9px, 9px) scale(.7); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes icBlink { 0%, 30%, 60%, 100% { transform: scaleY(1); } 40%, 50% { transform: scaleY(.1); } }
@keyframes icAntenna { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-18deg); } 60% { transform: rotate(12deg); } }
@keyframes icWiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 50% { transform: rotate(8deg); } 75% { transform: rotate(-4deg); } }
@keyframes icPlay { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.3); } }
@keyframes icNudge { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(2px, -2px); } }

/* logo ring v2: no rainbow - a dark vinyl rim with a pink→violet light streak running around it */
@media (min-width: 1100px) {
  html.lg .sb-logo-ring { box-shadow: 0 0 0 1px rgba(255,255,255,.10), 0 0 0 5px rgba(10,7,20,.9), 0 0 0 6px rgba(255,255,255,.06); }
  html.lg .sb-logo-ring::before {
    inset: -7px;
    background: conic-gradient(from 0deg, transparent 0 62%, rgba(168,85,247,.0) 62%, rgba(168,85,247,.55) 82%, #ec4899 97%, #fff 99%, transparent 100%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
    filter: drop-shadow(0 0 4px rgba(236,72,153,.8));
    animation-duration: 4.5s;
  }
  html.lg .sb-logo:hover .sb-logo-ring::before { animation-duration: 1.6s; }
}

/* ======================================================================
   19. SIDEBAR WIDGETS: countdown to the stream / LIVE, track of the week.
   They live in the leftover space and hide themselves when it is too short
   (size container query), so short screens keep a clean panel.
   ====================================================================== */
.sb-widgets { display: none; }
@media (min-width: 1100px) {
  html.lg .sb-widgets { display: flex; flex-direction: column; justify-content: center; gap: 10px; flex: 1 1 auto !important; min-height: 0;
    container-type: size; container-name: sbw; padding: 10px 0 0; }
  html.lg .sb-count, html.lg .sb-totw { position: relative; overflow: hidden; border-radius: 18px; padding: 14px 14px 13px;
    background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); border: 1px solid rgba(255,255,255,.09); }
  html.lg .sbw-eyebrow { display: flex; align-items: center; gap: 7px; font: 700 10px 'JetBrains Mono', monospace; letter-spacing: .16em; text-transform: uppercase; color: #f472b6; }
  /* countdown */
  html.lg .sb-count::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(90% 70% at 100% 0%, rgba(236,72,153,.18), transparent 60%); }
  html.lg .sbw-digits { display: flex; align-items: baseline; gap: 2px; margin-top: 8px; font: 800 30px/1 'Bricolage Grotesque', sans-serif; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
  html.lg .sbw-digits i { font-style: normal; color: rgba(255,255,255,.3); margin: 0 1px; }
  html.lg .sbw-digits small { font: 600 10px 'JetBrains Mono', monospace; color: rgba(255,255,255,.4); margin: 0 6px 0 2px; letter-spacing: .05em; }
  html.lg .sbw-sub { margin-top: 8px; font-size: 11.5px; line-height: 1.4; color: rgba(255,255,255,.5); }
  html.lg .sbw-bar { height: 3px; margin-top: 10px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
  html.lg .sbw-bar i { display: block; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, #a855f7, #ec4899); border-radius: 3px; transition: width 1s linear; }
  html.lg .sb-count.soon { border-color: rgba(236,72,153,.45); }
  html.lg .sb-count.live { border-color: rgba(239,68,68,.6); background: linear-gradient(150deg, rgba(239,68,68,.28), rgba(236,72,153,.12) 60%, rgba(255,255,255,.02)); }
  html.lg .sb-count.live .sbw-eyebrow { color: #fecaca; }
  html.lg .sbw-live-t { margin-top: 8px; font: 800 22px/1.1 'Bricolage Grotesque', sans-serif; }
  html.lg .sbw-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 8px 14px; border-radius: 11px; font-size: 13px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #ef4444, #ec4899); box-shadow: 0 8px 20px -10px rgba(239,68,68,.9); }
  html.lg .sbw-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239,68,68,.7); animation: hmtPulse 1.6s infinite; }
  /* track of the week */
  html.lg .sb-totw .sbw-eyebrow { color: #ffb648; }
  html.lg .sbw-row { display: flex; align-items: center; gap: 11px; margin-top: 10px; }
  html.lg .sbw-cover { position: relative; width: 50px; height: 50px; flex: none; border-radius: 12px; display: grid; place-items: center; overflow: hidden;
    background-size: cover; background-position: center; font: 800 20px 'Bricolage Grotesque', sans-serif; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
  html.lg .sbw-cover button { position: absolute; inset: 0; border: 0; color: #fff; font-size: 16px; background: rgba(8,5,16,.45); opacity: 0; transition: opacity .2s; cursor: pointer; }
  html.lg .sb-totw:hover .sbw-cover button { opacity: 1; }
  html.lg .sbw-meta { min-width: 0; flex: 1; display: flex; flex-direction: column; }
  html.lg .sbw-meta b { font: 800 14px/1.2 'Bricolage Grotesque', sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html.lg .sbw-meta small { font-size: 11.5px; color: rgba(255,255,255,.5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
  html.lg .sbw-pct { font: 800 20px 'Bricolage Grotesque', sans-serif; color: #ffb648; }
  html.lg .sbw-pct small { font-size: 11px; opacity: .6; }
  html.lg .sb-totw:hover { border-color: rgba(255,182,72,.4); }

  @container sbw (max-height: 258px) { .sb-totw { display: none !important; } }
  @container sbw (max-height: 148px) { .sb-count { display: none !important; } }
}

/* ======================================================================
   20. TOP BAR v2 (≥1100px): floating liquid-glass capsule next to the sidebar
   + engraved, non-interactive page motto in the empty middle.
   ====================================================================== */
.lgt-engrave { display: none; }
@media (min-width: 1100px) {
  html.lg .navbar { top: 14px !important; right: 14px !important; left: calc(var(--side) - 2px) !important;
    background: none !important; border: 0 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  html.lg .navbar > div {
    position: relative; overflow: hidden; height: 72px !important; border-radius: 24px !important;
    padding-left: 26px !important; padding-right: 14px !important;
    background:
      radial-gradient(60% 140% at 0% 0%, rgba(236, 72, 153, 0.10), transparent 60%),
      radial-gradient(50% 140% at 100% 100%, rgba(168, 85, 247, 0.10), transparent 60%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02)),
      rgba(10, 7, 20, 0.62) !important;
    backdrop-filter: blur(22px) saturate(160%) !important; -webkit-backdrop-filter: blur(22px) saturate(160%) !important;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.35), 0 18px 50px -24px rgba(0, 0, 0, 0.95) !important;
  }
  /* liquid rim: a soft light along the top edge instead of the old hairline under the bar */
  html.lg .navbar > div::after {
    left: 18px; right: 18px; top: 0; bottom: auto; height: 1px; opacity: .9;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35) 30%, rgba(244, 114, 182, 0.45) 55%, transparent);
  }
  html.lg .navbar.scrolled > div { background:
      radial-gradient(60% 140% at 0% 0%, rgba(236, 72, 153, 0.10), transparent 60%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
      rgba(10, 7, 20, 0.86) !important; }
  html.lg .lgt-chip { border-radius: 14px; }

  /* engraved motto: centred in the free space, can't be clicked or selected */
  html.lg .lgt-engrave {
    display: block; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    pointer-events: none; user-select: none; white-space: nowrap; z-index: 0;
    font: 800 15px/1 'Bricolage Grotesque', sans-serif; letter-spacing: .42em; text-transform: uppercase;
    color: transparent;
    background: linear-gradient(100deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,.07) 40%, rgba(255,255,255,.30) 50%, rgba(255,255,255,.07) 60%, rgba(255,255,255,.07) 100%);
    background-size: 300% 100%; background-position: 100% 0;
    -webkit-background-clip: text; background-clip: text;
    filter: drop-shadow(0 1px 0 rgba(255,255,255,.05)) drop-shadow(0 -1px 0 rgba(0,0,0,.7));
    animation: lgtSheen 9s ease-in-out infinite;
    transition: opacity .5s;
  }
  html.lg .lgt-engrave.swap { opacity: 0; }
  html.lg .lgt-left, html.lg .lgt-chips, html.lg .navbar > div > div:last-child { position: relative; z-index: 1; }

  /* everything under the bar moves down by its new offset (14px) */
  html.lg .lg-hero, html.lg .lg-phero { margin-top: 100px !important; }
}
/* not enough room between the title and the chips: drop the motto */
@media (min-width: 1100px) and (max-width: 1480px) { html.lg .lgt-engrave { display: none; } }
@keyframes lgtSheen { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: 0% 0; } }
@media (prefers-reduced-motion: reduce) { html.lg .lgt-engrave { animation: none; } }
/* the engraved motto is inserted as the first child, so hide the bar logo by its link, not by :first-child */
@media (min-width: 1100px) { html.lg .navbar > div > a[href="#home"] { display: none !important; } }
