@property --bg { syntax: '<color>'; inherits: true; initial-value: #08080a; }
@property --surface { syntax: '<color>'; inherits: true; initial-value: rgba(15, 15, 18, 0.78); }
@property --surface-solid { syntax: '<color>'; inherits: true; initial-value: #0f0f12; }
@property --surface-elevated { syntax: '<color>'; inherits: true; initial-value: #17171b; }
@property --border { syntax: '<color>'; inherits: true; initial-value: rgba(255, 255, 255, 0.075); }
@property --border-strong { syntax: '<color>'; inherits: true; initial-value: rgba(255, 255, 255, 0.15); }
@property --text { syntax: '<color>'; inherits: true; initial-value: #f4f4f5; }
@property --text-muted { syntax: '<color>'; inherits: true; initial-value: #a1a1aa; }
@property --text-dim { syntax: '<color>'; inherits: true; initial-value: #71717a; }
@property --accent { syntax: '<color>'; inherits: true; initial-value: #e4e4e7; }
@property --accent-2 { syntax: '<color>'; inherits: true; initial-value: #a1a1aa; }
@property --accent-soft { syntax: '<color>'; inherits: true; initial-value: rgba(255, 255, 255, 0.06); }
@property --accent-ring { syntax: '<color>'; inherits: true; initial-value: rgba(255, 255, 255, 0.16); }
@property --orb-1 { syntax: '<color>'; inherits: true; initial-value: rgba(228, 228, 231, 0); }
@property --orb-2 { syntax: '<color>'; inherits: true; initial-value: rgba(228, 228, 231, 0); }
@property --orb-3 { syntax: '<color>'; inherits: true; initial-value: rgba(228, 228, 231, 0); }
@property --scrim-top { syntax: '<color>'; inherits: true; initial-value: rgba(8, 8, 10, 0.52); }
@property --scrim-mid { syntax: '<color>'; inherits: true; initial-value: rgba(8, 8, 10, 0.74); }
@property --scrim-bottom { syntax: '<color>'; inherits: true; initial-value: rgba(8, 8, 10, 0.94); }
@property --card-melt { syntax: '<number>'; inherits: true; initial-value: 0; }

:root {
  --bg: #08080a;
  --surface: rgba(15, 15, 18, 0.78);
  --surface-solid: #0f0f12;
  --surface-elevated: #17171b;
  --surface-hover: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.075);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --accent: #e4e4e7;
  --accent-2: #a1a1aa;
  --accent-soft: rgba(255, 255, 255, 0.06);
  --accent-ring: rgba(255, 255, 255, 0.16);
  --orb-1: rgba(228, 228, 231, 0);
  --orb-2: rgba(228, 228, 231, 0);
  --orb-3: rgba(228, 228, 231, 0);
  --scrim-top: rgba(8, 8, 10, 0.52);
  --scrim-mid: rgba(8, 8, 10, 0.74);
  --scrim-bottom: rgba(8, 8, 10, 0.94);
  --card-blur: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --theme-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --theme-dur: 2.2s;
  --card-melt: 0;
  --font-display: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-lyrics: 'Outfit', 'Inter', sans-serif;
  --tracking-display: -0.025em;
  --tracking-lyrics: -0.015em;
  --radius-card: 16px;
  --radius-inner: 10px;
  --radius-btn: 8px;
  --radius-pill: 6px;
  --radius-thumb: 8px;
  --dyn-border-mix: 0;
  --motion-lyrics: 0.58s;
  --eq-speed: 0.9s;
  --ambient-speed: 18s;
  --online: #23a55a;
  --idle: #f0b232;
  --dnd: #f23f43;
  --offline: #71717a;
  --ok: #34d399;
  --skip: #a1a1aa;
  transition:
    --bg var(--theme-dur) var(--theme-ease),
    --surface var(--theme-dur) var(--theme-ease),
    --surface-solid var(--theme-dur) var(--theme-ease),
    --surface-elevated var(--theme-dur) var(--theme-ease),
    --border var(--theme-dur) var(--theme-ease),
    --border-strong var(--theme-dur) var(--theme-ease),
    --text 1.05s var(--theme-ease),
    --text-muted 1.05s var(--theme-ease),
    --text-dim 1.05s var(--theme-ease),
    --accent var(--theme-dur) var(--theme-ease),
    --accent-2 var(--theme-dur) var(--theme-ease),
    --accent-soft var(--theme-dur) var(--theme-ease),
    --accent-ring var(--theme-dur) var(--theme-ease),
    --orb-1 calc(var(--theme-dur) * 1.15) var(--theme-ease),
    --orb-2 calc(var(--theme-dur) * 1.15) var(--theme-ease),
    --orb-3 calc(var(--theme-dur) * 1.15) var(--theme-ease),
    --scrim-top var(--theme-dur) var(--theme-ease),
    --scrim-mid var(--theme-dur) var(--theme-ease),
    --scrim-bottom var(--theme-dur) var(--theme-ease),
    --card-melt var(--theme-dur) var(--theme-ease);
}

html.is-song-live {
  --card-melt: 1;
}

html.is-returning-default {
  --theme-dur: 2.6s;
}

html[data-vibe="kinetic"] {
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-lyrics: 'Space Grotesk', 'Inter', sans-serif;
  --tracking-display: -0.04em;
  --tracking-lyrics: -0.02em;
  --radius-card: 6px;
  --radius-inner: 4px;
  --radius-btn: 5px;
  --radius-pill: 4px;
  --radius-thumb: 5px;
  --motion-lyrics: 0.38s;
  --eq-speed: 0.48s;
  --ambient-speed: 9s;
}

html[data-vibe="urban"] {
  --font-display: 'Syne', 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-lyrics: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --tracking-display: -0.03em;
  --tracking-lyrics: -0.014em;
  --radius-card: 12px;
  --radius-inner: 7px;
  --radius-btn: 7px;
  --radius-pill: 6px;
  --radius-thumb: 6px;
  --motion-lyrics: 0.48s;
  --eq-speed: 0.72s;
  --ambient-speed: 14s;
}

html[data-vibe="velvet"] {
  --font-display: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-lyrics: 'Outfit', 'Inter', sans-serif;
  --tracking-display: -0.015em;
  --tracking-lyrics: -0.01em;
  --radius-card: 24px;
  --radius-inner: 15px;
  --radius-btn: 16px;
  --radius-pill: 14px;
  --radius-thumb: 13px;
  --motion-lyrics: 0.68s;
  --eq-speed: 1.15s;
  --ambient-speed: 20s;
}

html[data-vibe="cinematic"] {
  --font-display: 'Lora', 'Outfit', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-lyrics: 'Lora', 'Outfit', serif;
  --tracking-display: -0.01em;
  --tracking-lyrics: -0.005em;
  --radius-card: 18px;
  --radius-inner: 10px;
  --radius-btn: 10px;
  --radius-pill: 8px;
  --radius-thumb: 9px;
  --motion-lyrics: 0.84s;
  --eq-speed: 1.5s;
  --ambient-speed: 28s;
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  transition: background-color var(--theme-dur) var(--theme-ease);
}

body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: color 1.05s var(--theme-ease);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

.hidden {
  display: none !important;
}

.mono-sm {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}

/* Unified Button System */
.btn {
  height: 34px;
  padding: 0 13px;
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  flex-shrink: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  white-space: nowrap;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease), border-radius 1.8s var(--theme-ease), transform 0.12s var(--ease);
}

.btn--full {
  width: 100%;
  height: 36px;
}

.btn:active {
  transform: scale(0.985);
}

.btn--primary {
  background: var(--accent);
  color: #09090b;
  border-color: transparent;
  transition: background-color 1.1s var(--ease), filter 0.16s var(--ease), transform 0.12s var(--ease);
}

.btn--primary:hover {
  filter: brightness(0.94);
}

.btn--secondary {
  background: rgba(14, 14, 20, 0.42);
  border: none;
  color: var(--text);
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.5);
}

.topbar .btn--secondary {
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: transparent;
}

.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.btn--danger {
  background: rgba(242, 63, 67, 0.1);
  border-color: rgba(242, 63, 67, 0.22);
  color: #fca5a5;
}

.btn--danger:hover {
  background: rgba(242, 63, 67, 0.18);
  border-color: rgba(242, 63, 67, 0.4);
}

.btn--sm {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: var(--radius-pill);
}

.btn--icon {
  width: 34px;
  padding: 0;
}

.btn--sm.btn--icon {
  width: 28px;
}

.stage-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  isolation: isolate;
  --dyn-energy: 0;
  --dyn-pulse: 0;
  --dyn-flow: 0;
}

#tidalCard {
  --dyn-energy: 0;
  --dyn-pulse: 0;
  --dyn-eq-1: 4px;
  --dyn-eq-2: 6px;
  --dyn-eq-3: 4px;
}

#heroCard {
  --dyn-energy: 0;
}

.bg-layer, .ambient-cover, .ambient-aura, .bg-scrim, .bg-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bg-layer {
  z-index: 0;
  background-size: cover;
  background-position: center;
}

.bg-layer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ambient-cover {
  z-index: 1;
  background-size: cover;
  background-position: center;
  filter: blur(64px) saturate(1.55) contrast(1.1) brightness(0.75);
  transform: translate3d(0, 0, 0) scale(1.2);
  backface-visibility: hidden;
  opacity: 0;
  transition: opacity 2.4s var(--theme-ease);
  will-change: opacity;
}

.ambient-cover.visible {
  opacity: 0.36;
}

.ambient-aura {
  display: none;
  z-index: 2;
  overflow: hidden;
  opacity: 0;
  transition: opacity var(--theme-dur) var(--theme-ease);
  will-change: opacity;
}

.ambient-aura.visible {
  opacity: 0.35;
}

.aura-orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.aura-orb--1 {
  top: -18%;
  left: -12%;
  width: 58vw;
  height: 58vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, var(--orb-1) 0%, color-mix(in srgb, var(--orb-1) 42%, transparent) 38%, transparent 72%);
  animation: auraDriftA var(--ambient-speed) ease-in-out infinite alternate;
}

.aura-orb--2 {
  right: -14%;
  bottom: -20%;
  width: 54vw;
  height: 54vw;
  max-width: 660px;
  max-height: 660px;
  background: radial-gradient(circle, var(--orb-2) 0%, color-mix(in srgb, var(--orb-2) 42%, transparent) 38%, transparent 72%);
  animation: auraDriftB calc(var(--ambient-speed) * 1.22) ease-in-out infinite alternate;
}

.aura-orb--3 {
  top: 22%;
  left: 34%;
  width: 44vw;
  height: 44vw;
  max-width: 520px;
  max-height: 520px;
  background: radial-gradient(circle, var(--orb-3) 0%, color-mix(in srgb, var(--orb-3) 42%, transparent) 38%, transparent 72%);
  animation: auraDriftC calc(var(--ambient-speed) * 1.38) ease-in-out infinite alternate;
}

@keyframes auraDriftA {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(8vw, 6vh, 0) scale(1.12); }
}

@keyframes auraDriftB {
  0% { transform: translate3d(0, 0, 0) scale(1.04); }
  100% { transform: translate3d(-7vw, -5vh, 0) scale(0.94); }
}

@keyframes auraDriftC {
  0% { transform: translate3d(-4vw, 3vh, 0) scale(0.96); }
  100% { transform: translate3d(6vw, -6vh, 0) scale(1.08); }
}

.bg-scrim {
  z-index: 2;
  background:
    radial-gradient(ellipse 92% 82% at 50% 42%, var(--scrim-top) 0%, var(--scrim-mid) 58%, var(--scrim-bottom) 100%);
}

.bg-canvas {
  z-index: 3;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 1;
}

.bg-lyrics-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity var(--theme-dur) var(--theme-ease);
}

@media (min-width: 960px) {
  .bg-ly-float {
    width: max-content;
    max-width: min(280px, max(125px, calc(50vw - 418px)));
  }
}

@media (max-width: 959px) {
  .bg-lyrics-layer {
    display: none;
  }
}

.bg-lyrics-layer.is-visible {
  opacity: 1;
}

.bg-ly-field {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.85s var(--theme-ease);
}

.bg-ly-field.is-ready {
  opacity: 1;
}

.bg-ly-field.is-exiting {
  opacity: 0;
}

.bg-ly-stream,
.bg-ly-col {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  will-change: transform;
}

.bg-ly-float {
  position: absolute;
  top: 0;
  max-width: clamp(190px, 24vw, 360px);
  font-family: var(--font-lyrics);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: var(--tracking-lyrics);
  color: var(--text);
  user-select: none;
  pointer-events: none;
  opacity: 0;
  transform: rotate(var(--fl-rot, 0deg));
  transition: opacity 1.4s var(--theme-ease), transform 1.2s var(--theme-ease);
}

.bg-ly-float.is-anchor-right {
  text-align: right;
}

.bg-ly-float.is-whisper {
  font-weight: 400;
  font-style: italic;
}

.bg-ly-float.is-display {
  font-weight: 700;
}

.bg-ly-float.is-shown {
  opacity: var(--fl-edge, 1);
}

.bg-ly-float.is-active {
  z-index: 3;
  transform: rotate(calc(var(--fl-rot, 0deg) * 0.25)) scale(1.06);
}

.bg-ly-float:not(.has-words) {
  color: var(--text);
  opacity: 0;
  transition: opacity 1.35s var(--theme-ease), color 1.35s var(--theme-ease), text-shadow 1.35s var(--theme-ease), transform 1.2s var(--theme-ease);
}

.bg-ly-float.is-shown:not(.has-words) {
  opacity: calc(clamp(0.06, calc(var(--fl-op, 0.14) + var(--fl-wave, 0) * 0.14), 0.34) * var(--fl-edge, 1));
}

.bg-ly-float.is-active:not(.has-words) {
  color: var(--accent);
  opacity: calc(0.68 * var(--fl-edge, 1));
  text-shadow: 0 0 28px var(--accent-soft);
}

.bg-ly-float.is-lingering:not(.has-words) {
  color: var(--accent);
  opacity: calc(var(--fl-op, 0.14) * 1.45 * var(--fl-edge, 1));
  text-shadow: none;
  transition-duration: 1.75s;
}

.bg-ly-w {
  display: inline-block;
  padding: 0.05em 0.04em;
  margin: -0.05em -0.04em;
  color: var(--text);
  opacity: clamp(0.06, calc(var(--fl-op, 0.12) + var(--fl-wave, 0) * 0.14), 0.32);
  transition: opacity 1.45s var(--theme-ease), color 1.45s var(--theme-ease), text-shadow 1.45s var(--theme-ease);
}

.bg-ly-float.is-lingering .bg-ly-w {
  color: var(--accent);
  opacity: calc(var(--fl-op, 0.12) * 1.45);
  text-shadow: none;
  transition-duration: 1.75s;
}

.bg-ly-float.is-active .bg-ly-w {
  color: var(--text);
  opacity: 0.28;
  transition-duration: 1.1s;
}

.bg-ly-float.is-active .bg-ly-w.is-done {
  color: color-mix(in srgb, var(--accent) 86%, transparent);
  opacity: 1;
  text-shadow: 0 0 26px var(--accent-soft);
  transition: text-shadow 0.55s var(--theme-ease);
}

.bg-ly-float.is-active .bg-ly-w.is-filling {
  opacity: 1;
  color: color-mix(in srgb, var(--accent) 86%, transparent);
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  transition: none;
  background-image: linear-gradient(
    90deg,
    color-mix(in srgb, var(--accent) 86%, transparent) 0%,
    color-mix(in srgb, var(--accent) 86%, transparent) 44%,
    color-mix(in srgb, var(--text) 28%, transparent) 56%,
    color-mix(in srgb, var(--text) 28%, transparent) 100%
  );
  background-size: 240% 100%;
  background-position: calc(100% - var(--wp, 0%)) 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
}

html.is-song-paused .ambient-cover.visible {
  opacity: 0.14;
}

html.is-song-paused .ambient-aura.visible {
  opacity: 0.42;
}

html.is-song-paused .bg-lyrics-layer.is-visible {
  opacity: 0.48;
}

html.is-song-outro .bg-lyrics-layer.is-visible {
  opacity: 0.42;
}

.topbar {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  padding: 18px 20px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: var(--tracking-display);
}

.brand-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--text-dim);
  transition: background 0.3s var(--ease);
}

.brand-dot.live {
  background: var(--online);
}

.shell {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  padding: 12px 20px 72px;
}

.surface {
  position: relative;
  z-index: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius-card);
  box-shadow:
    inset 0 0 42px -18px rgba(255, 255, 255, 0.035),
    0 28px 74px -22px rgba(0, 0, 0, 0.56),
    0 6px 22px -8px rgba(0, 0, 0, 0.30),
    0 0 64px -30px color-mix(in srgb, var(--orb-1) calc(var(--card-melt) * 58%), transparent);
  transition: border-radius 1.4s var(--theme-ease);
}

.surface::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background-color: color-mix(in srgb, var(--surface) 28%, rgba(6, 6, 10, 0.28));
  background-image:
    radial-gradient(
      ellipse 115% 85% at 50% -15%,
      color-mix(in srgb, var(--accent-soft) 48%, rgba(255, 255, 255, 0.03)),
      transparent 72%
    );
  backdrop-filter: blur(22px) saturate(175%);
  -webkit-backdrop-filter: blur(22px) saturate(175%);
}

.surface h1,
.surface h2,
.surface .np-title,
.surface .kpi-val,
.surface .rank-title {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.36);
}

html.is-song-live .hero-card {
  box-shadow:
    inset 0 0 48px -24px var(--accent-soft),
    0 32px 92px -22px rgba(0, 0, 0, 0.62),
    0 0 88px -28px var(--orb-1);
}

html[data-vibe="kinetic"].is-song-live .hero-card,
html[data-vibe="velvet"].is-song-live .hero-card,
html[data-vibe="cinematic"].is-song-live .hero-card {
  box-shadow:
    inset 0 0 56px -24px var(--accent-soft),
    0 36px 98px -22px rgba(0, 0, 0, 0.64),
    0 0 96px -28px var(--orb-1);
}

.now-playing-card,
.np-lyrics-shell,
.np-lyrics-shell.is-open,
.rp-list,
.tabs-nav,
.metric-cell,
.track-row,
.avatar-img,
.status-dot,
.rp-small {
  border-color: transparent !important;
  transition: border-color var(--theme-dur) var(--theme-ease);
}

html.is-song-live .badges-row,
html.is-song-live .custom-status,
html.is-song-live .play-badge,
html.is-song-live .play-badge--live,
html.is-song-live .np-lyrics-btn,
html.is-song-live .np-lyrics-btn.is-active,
html.is-song-live .btn--secondary,
html.is-song-live .segmented,
html.is-song-live .rp-card,
html.is-song-live .input-field {
  border: none;
  background-color: color-mix(in srgb, var(--accent-soft) 42%, rgba(12, 12, 18, 0.38));
}

html.is-song-live .np-cover-wrap,
html.is-song-live .album-cover,
html.is-song-live .recap-hero-img {
  border: none;
  box-shadow: 0 14px 36px -10px rgba(0, 0, 0, 0.58);
}

h1, h2, .np-title, .np-artist, .np-album, .kpi-val, .kpi-lbl {
  transition:
    opacity 0.65s var(--theme-ease),
    color var(--theme-dur) var(--theme-ease),
    letter-spacing 1.2s var(--theme-ease);
}

html[data-vibe="kinetic"] .tab-btn,
html[data-vibe="kinetic"] .np-state,
html[data-vibe="kinetic"] .kpi-lbl {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

html[data-vibe="cinematic"] h2,
html[data-vibe="cinematic"] .kpi-lbl {
  letter-spacing: 0.03em;
}

html.is-vibe-shifting h1,
html.is-vibe-shifting h2,
html.is-vibe-shifting .np-title,
html.is-vibe-shifting .ly-line {
  opacity: 0.86;
}

.np-swap {
  animation: npSwapIn 0.95s var(--theme-ease);
}

@keyframes npSwapIn {
  0% { opacity: 0.22; transform: translateY(5px); }
  100% { opacity: 1; transform: translateY(0); }
}

.gate-card {
  max-width: 380px;
  margin: 90px auto;
  padding: 36px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.hero-card {
  overflow: hidden;
  margin-bottom: 18px;
}

.hero-banner {
  position: relative;
  width: 100%;
  height: 146px;
  overflow: hidden;
  background: #141418;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 12, 16, 0) 28%, rgba(12, 12, 16, 0.46) 100%);
  pointer-events: none;
}

.hero-main {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.avatar-wrap {
  position: relative;
  width: 82px;
  height: 82px;
  flex-shrink: 0;
}

.avatar-wrap.has-banner {
  margin-top: -54px;
  z-index: 2;
}

.avatar-img {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--surface-solid);
  background: #18181b;
}

.avatar-deco {
  position: absolute;
  inset: -9px;
  width: 100px;
  height: 100px;
  pointer-events: none;
}

.status-dot {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 3px solid var(--surface-solid);
  background: var(--offline);
}

.status-dot.status-online { background: var(--online); }
.status-dot.status-idle { background: var(--idle); }
.status-dot.status-dnd { background: var(--dnd); }
.status-dot.status-offline { background: var(--offline); }

.identity {
  flex: 1;
  min-width: 0;
}

.name-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  line-height: 1.15;
}

h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: var(--tracking-display);
}

.badges-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: var(--radius-pill);
  background: rgba(14, 14, 20, 0.36);
  border: none;
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.42);
  transition: border-radius 1.8s var(--theme-ease);
}

.discord-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  cursor: default;
}

.discord-badge::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%) translateY(3px);
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(18, 18, 24, 0.84);
  border: 1px solid transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 26px -8px rgba(0, 0, 0, 0.55);
  color: var(--text);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s var(--ease), transform 0.14s var(--ease);
  z-index: 20;
}

.discord-badge:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.handle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 3px;
}

.handle-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--text-muted);
}

.meta-pill {
  font-size: 12px;
  color: var(--text-dim);
}

.custom-status {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(14, 14, 20, 0.36);
  border: none;
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.42);
  font-size: 12.5px;
  color: var(--text-muted);
  transition: border-radius 1.8s var(--theme-ease);
}

.custom-status img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.bio-text {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: #d4d4d8;
  white-space: pre-wrap;
}

.links-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Embedded Now Playing */
.now-playing-card {
  display: flex;
  flex-direction: column;
  padding-top: 18px;
  border-top: none;
}

.np-main {
  display: flex;
  gap: 15px;
  align-items: center;
}

.np-cover-wrap {
  position: relative;
  width: 78px;
  height: 78px;
  flex-shrink: 0;
  border-radius: var(--radius-thumb);
  overflow: hidden;
  border: none;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 14px 36px -10px rgba(0, 0, 0, 0.58);
  transition: border-radius 1.8s var(--theme-ease);
}

.np-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.48s var(--theme-ease), transform 0.16s linear;
}

.np-cover.is-swapping {
  opacity: 0.18;
}

.eq-bars {
  position: absolute;
  right: 5px;
  bottom: 5px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 3px 4px;
  border-radius: 5px;
  background: rgba(14, 14, 18, 0.62);
  height: 16px;
  transition: opacity 0.65s var(--theme-ease);
}

.eq-bars.is-idle {
  opacity: 0;
  pointer-events: none;
}

.eq-bars span {
  width: 2px;
  height: 11px;
  transform-origin: bottom center;
  transform: scaleY(0.3);
  background: var(--accent);
  border-radius: 2px;
  animation: eqPulse var(--eq-speed) ease-in-out infinite;
  transition: background-color 1.1s var(--ease), transform 0.09s linear;
}

.eq-bars span:nth-child(2) { animation-delay: 0.2s; }
.eq-bars span:nth-child(3) { animation-delay: 0.4s; }

html.is-song-live .eq-bars span {
  animation: none;
}

@keyframes eqPulse {
  0%, 100% { transform: scaleY(0.28); }
  50% { transform: scaleY(0.82); }
}

.np-info {
  flex: 1;
  min-width: 0;
}

.np-kicker-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 3px;
}

.np-state {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.np-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--accent-soft) 55%, rgba(12, 12, 18, 0.35));
  color: var(--text-muted);
  transition: background-color 1.1s var(--ease), color 0.9s var(--ease), border-radius 1.8s var(--theme-ease);
}

.np-title {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: var(--tracking-display);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-title:hover {
  text-decoration: underline;
}

.np-artist {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.np-album {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.np-progress-wrap {
  margin-top: 9px;
}

.np-progress-track {
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.np-progress-fill {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 6px var(--accent-ring);
  transition: transform 0.1s linear, background-color 1.1s var(--ease);
}

.np-times {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: var(--text-dim);
}

.np-lyrics-btn {
  margin-left: auto;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  border: none;
  background: rgba(14, 14, 20, 0.36);
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.42);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-radius 1.8s var(--theme-ease);
}

.np-lyrics-btn:hover {
  background: rgba(255, 255, 255, 0.11);
  color: var(--text);
}

.np-lyrics-btn.is-active {
  background: color-mix(in srgb, var(--accent-soft) 72%, rgba(255, 255, 255, 0.08));
  border: none;
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.4);
  color: var(--text);
}

.np-lyrics-shell {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.72s var(--theme-ease), opacity 0.55s var(--theme-ease), margin-top 0.72s var(--theme-ease);
}

.np-lyrics-shell.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 16px;
  border-top: none;
}

.np-lyrics-shell.is-transitioning .np-lyrics-viewport {
  opacity: 0;
}

.np-lyrics-inner {
  overflow: hidden;
  min-height: 0;
}

.np-lyrics-viewport {
  position: relative;
  height: 112px;
  overflow: hidden;
  padding: 8px 2px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
  transition: height 0.42s var(--ease), opacity 0.3s var(--ease);
  scrollbar-width: none;
}

.np-lyrics-viewport::-webkit-scrollbar {
  display: none;
}

.np-lyrics-viewport.is-expanded {
  height: 296px;
  overflow-y: auto;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.np-lyrics-viewport.is-plain {
  padding: 12px 2px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 92%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 92%, transparent 100%);
}

.np-lyrics-shell.is-paused .np-lyrics-viewport {
  opacity: 0.68;
}

.np-lyrics-track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0;
  transition: transform var(--motion-lyrics) var(--ease);
}

.np-lyrics-track.no-anim {
  transition: none !important;
}

.ly-line {
  font-family: var(--font-lyrics);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: var(--tracking-lyrics);
  color: var(--text);
  transform-origin: left center;
  transition: opacity 0.4s var(--ease), transform 0.44s var(--ease), color 0.9s var(--ease);
}

.ly-line.is-past {
  opacity: 0.22;
  transform: scale(0.96);
}

.ly-line.is-active {
  opacity: 1;
  transform: scale(1);
}

.ly-line.is-next {
  opacity: 0.38;
  transform: scale(0.975);
}

.ly-line.is-upcoming {
  opacity: 0.28;
  transform: scale(0.96);
}

.ly-w {
  display: inline-block;
  padding: 0.08em 0.06em;
  margin: -0.08em -0.06em;
}

.ly-line.is-active.has-words .ly-w {
  color: var(--text);
  opacity: 0.38;
}

.ly-line.is-active.has-words .ly-w.is-done {
  opacity: 1;
}

.ly-line.is-active.has-words .ly-w.is-filling {
  opacity: 1;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(
    90deg,
    var(--text) 0%,
    var(--text) 44%,
    color-mix(in srgb, var(--text) 38%, transparent) 56%,
    color-mix(in srgb, var(--text) 38%, transparent) 100%
  );
  background-size: 240% 100%;
  background-position: calc(100% - var(--wp, 0%)) 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
}

.ly-interlude {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 4px 0;
}

.ly-dot {
  width: 3.5px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.24;
  transform: scaleY(0.45);
  transition: opacity 0.35s var(--ease);
}

@keyframes lyWaveBar {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1); }
}

.ly-interlude.is-active .ly-dot {
  animation: lyWaveBar 1.15s var(--ease) infinite;
}

.ly-interlude.is-active .ly-dot:nth-child(1) {
  animation-delay: 0s;
  opacity: calc(0.32 + min(1, max(0, var(--dot-p, 0) * 5)) * 0.65);
}

.ly-interlude.is-active .ly-dot:nth-child(2) {
  animation-delay: 0.14s;
  opacity: calc(0.32 + min(1, max(0, (var(--dot-p, 0) - 0.20) * 5)) * 0.65);
}

.ly-interlude.is-active .ly-dot:nth-child(3) {
  animation-delay: 0.28s;
  opacity: calc(0.32 + min(1, max(0, (var(--dot-p, 0) - 0.40) * 5)) * 0.65);
}

.ly-interlude.is-active .ly-dot:nth-child(4) {
  animation-delay: 0.42s;
  opacity: calc(0.32 + min(1, max(0, (var(--dot-p, 0) - 0.60) * 5)) * 0.65);
}

.ly-interlude.is-active .ly-dot:nth-child(5) {
  animation-delay: 0.56s;
  opacity: calc(0.32 + min(1, max(0, (var(--dot-p, 0) - 0.80) * 5)) * 0.65);
}

.ly-plain {
  font-size: 14px;
  line-height: 1.65;
  color: #d4d4d8;
  white-space: pre-line;
  padding: 6px 2px 14px;
}

.rp-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  padding-top: 16px;
  border-top: none;
}

.rp-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-inner);
  background: rgba(14, 14, 20, 0.36);
  border: none;
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.42);
  transition: border-radius 1.8s var(--theme-ease);
}

.rp-art-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.rp-large {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-thumb);
  object-fit: cover;
  background: #18181b;
}

.rp-small {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--surface-solid);
  object-fit: cover;
}

.rp-body {
  min-width: 0;
  flex: 1;
}

.rp-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rp-detail, .rp-time {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rp-time {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  line-height: 1.35;
  min-height: 1.35em;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Glass Capsule Tabs */
.tabs-nav {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  margin-bottom: 16px;
  border: none;
  border-radius: var(--radius-inner);
  background: rgba(12, 12, 18, 0.44);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.55);
  overflow-x: auto;
  max-width: 100%;
}

.tab-btn {
  padding: 7px 14px;
  border: none;
  border-bottom: none;
  margin-bottom: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.active {
  color: var(--text);
  background: color-mix(in srgb, var(--accent-soft) 58%, rgba(255, 255, 255, 0.1));
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.45);
}

.tab-panel {
  display: none;
  flex-direction: column;
  gap: 14px;
}

.tab-panel.active {
  display: flex;
}

/* Unified Metric Strip */
.metric-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0;
  overflow: hidden;
}

.metric-cell {
  padding: 14px 16px;
  border-right: none;
}

.metric-cell:last-child {
  border-right: none;
}

.kpi-val {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: var(--tracking-display);
}

.kpi-lbl {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.panel-card {
  padding: 18px 20px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-tag {
  font-size: 11.5px;
  color: var(--text-dim);
}

.panel-foot {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 11px;
}

.rank-num {
  width: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--text-dim);
  text-align: right;
  flex-shrink: 0;
}

.rank-img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-thumb);
  object-fit: cover;
  background: #18181b;
  flex-shrink: 0;
}

.rank-img.round {
  border-radius: 50%;
}

.rank-meta {
  flex: 1;
  min-width: 0;
}

.rank-title {
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-sub {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-bar-bg {
  margin-top: 5px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.rank-bar-fill {
  height: 100%;
  background: var(--accent);
  opacity: 0.72;
  transition: background-color 1.1s var(--ease);
}

.rank-plays {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.track-table {
  display: flex;
  flex-direction: column;
}

.track-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 8px;
  margin: 0 -8px;
  border-bottom: none;
  border-radius: 8px;
  transition: background 0.14s var(--ease);
}

.track-row:last-child {
  border-bottom: none;
}

.track-row:hover {
  background: var(--surface-hover);
}

.track-meta {
  flex: 1;
  min-width: 0;
}

.track-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.track-time {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: var(--text-dim);
  min-width: 58px;
  text-align: right;
}

/* Play / Skip Status Badge */
.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(14, 14, 20, 0.36);
  border: none;
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.42);
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: var(--text-muted);
  transition: border-radius 1.8s var(--theme-ease);
}

.play-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  flex-shrink: 0;
}

.play-badge--ok .play-dot {
  background: var(--ok);
}

.play-badge--live {
  color: var(--text);
  background: color-mix(in srgb, var(--accent-soft) 72%, rgba(255, 255, 255, 0.06));
  border: none;
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.45);
}

.play-badge--live .play-dot {
  background: var(--online);
}

.play-badge--skip .play-dot {
  background: var(--skip);
}

.play-badge--paused .play-dot {
  background: var(--idle, #d6a856);
}

.mini-bar {
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.mini-bar span {
  display: block;
  height: 100%;
  background: var(--text-muted);
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

.album-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.album-cover {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-thumb);
  object-fit: cover;
  border: none;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 14px 36px -10px rgba(0, 0, 0, 0.56);
  transition: border-radius 1.8s var(--theme-ease);
}

.period-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-inner);
  background: rgba(14, 14, 20, 0.36);
  border: none;
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.42);
  gap: 2px;
  transition: border-radius 1.8s var(--theme-ease);
}

.seg-btn {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s var(--ease), background 0.15s var(--ease), border-radius 1.8s var(--theme-ease);
}

.seg-btn:hover {
  color: var(--text);
}

.seg-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.45);
}

.svg-chart-wrap {
  width: 100%;
  overflow-x: auto;
}

.svg-chart-wrap rect {
  transition: fill 1.1s var(--ease);
}

.recap-actions {
  display: flex;
  gap: 8px;
}

.recap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.recap-card {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recap-hero-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-thumb);
  object-fit: cover;
  border: none;
  box-shadow: 0 14px 36px -10px rgba(0, 0, 0, 0.56);
}

.recap-hero-img.round {
  border-radius: 50%;
}

.recap-big {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.collection-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.input-field {
  width: 100%;
  height: 34px;
  padding: 0 11px;
  border-radius: var(--radius-btn);
  background: rgba(12, 12, 18, 0.42);
  border: none;
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.42);
  font-size: 13px;
  outline: none;
  transition: box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-radius 1.8s var(--theme-ease);
}

textarea.input-field {
  height: auto;
  padding: 9px 11px;
  resize: vertical;
}

.input-field:focus {
  background: rgba(18, 18, 26, 0.56);
  box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.52);
}

.search-box {
  width: 210px;
}

/* Story Modal */
.story-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  display: grid;
  place-items: center;
  padding: 16px;
}

.story-frame {
  width: 100%;
  max-width: 420px;
  min-height: 560px;
  background: rgba(18, 18, 24, 0.36);
  backdrop-filter: blur(36px) saturate(190%) brightness(1.06);
  -webkit-backdrop-filter: blur(36px) saturate(190%) brightness(1.06);
  border: 1px solid transparent;
  box-shadow:
    inset 0 1px 0.5px rgba(255, 255, 255, 0.26),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 32px 90px -20px rgba(0, 0, 0, 0.6);
  border-radius: 20px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.story-bars {
  display: grid;
  grid-auto-flow: column;
  gap: 5px;
}

.story-bar {
  height: 2.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.story-bar.done, .story-bar.active {
  background: var(--accent);
}

.story-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.story-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.story-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 12px 6px;
}

.story-cover {
  width: 180px;
  height: 180px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--border-strong);
}

.story-cover.round {
  border-radius: 50%;
}

.story-num {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.story-title {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 21px;
  font-weight: 600;
}

.story-sub {
  font-size: 13.5px;
  color: var(--text-muted);
}

.story-nav {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

/* Studio Drawer */
.studio-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
}

.studio-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.studio-sheet {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(460px, 100vw);
  background: rgba(16, 16, 22, 0.44);
  backdrop-filter: blur(38px) saturate(190%) brightness(1.05);
  -webkit-backdrop-filter: blur(38px) saturate(190%) brightness(1.05);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.16),
    -24px 0 72px -18px rgba(0, 0, 0, 0.58);
  display: flex;
  flex-direction: column;
}

.studio-head {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.studio-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.studio-tabs {
  display: flex;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.studio-tabs::-webkit-scrollbar {
  display: none;
}

.st-tab {
  padding: 11px 2px;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
}

.st-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.studio-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.studio-foot {
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 16, 22, 0.28);
  flex-shrink: 0;
}

.studio-section {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.studio-section:last-of-type {
  border-bottom: none;
}

.studio-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 16px;
}

.studio-details {
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
}

.studio-details summary {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.studio-details-body {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.color-row, .file-row, .code-copy-box {
  display: flex;
  gap: 8px;
  align-items: center;
}

.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 2px;
}

.swatch-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 0.14s var(--ease), border-color 0.14s var(--ease);
}

.swatch-btn:hover {
  transform: scale(1.1);
}

.swatch-btn.active {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px #0f0f12;
}

.color-preview-dot {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}

.picker-popover {
  margin-top: 4px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(18, 18, 24, 0.72);
  border: 1px solid transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 18px 44px -14px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.picker-sv-wrap {
  position: relative;
  width: 100%;
  height: 124px;
  border-radius: 7px;
  overflow: hidden;
  cursor: crosshair;
  touch-action: none;
}

.picker-sv-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.picker-sv-thumb {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.picker-hue-bar {
  position: relative;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
  cursor: pointer;
  touch-action: none;
}

.picker-hue-thumb {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #09090b;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.file-name {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.range-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.range-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--text-muted);
}

.range-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid var(--surface-solid);
}

/* Custom Switch */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 13px;
  cursor: pointer;
}

.switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 20px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.18s var(--ease);
}

.switch-track::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #a1a1aa;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease);
}

.switch input:checked + .switch-track {
  background: var(--accent);
}

.switch input:checked + .switch-track::after {
  transform: translateX(14px);
  background: #09090b;
}

.empty-state {
  padding: 22px 12px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  padding: 9px 15px;
  border-radius: 10px;
  background: rgba(18, 18, 24, 0.46);
  backdrop-filter: blur(28px) saturate(185%);
  -webkit-backdrop-filter: blur(28px) saturate(185%);
  border: 1px solid transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 18px 44px -14px rgba(0, 0, 0, 0.55);
  font-size: 13px;
}

@media (max-width: 720px) {
  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric-cell {
    border-bottom: 1px solid var(--border);
  }
  .split-grid {
    grid-template-columns: 1fr;
  }
  .profile-head {
    flex-direction: column;
  }
  .avatar-wrap.has-banner {
    margin-top: -54px;
  }
  .track-row {
    flex-wrap: wrap;
  }
  .track-right {
    width: 100%;
    justify-content: flex-end;
  }
  .search-box {
    width: 100%;
  }
  .np-lyrics-viewport {
    height: 106px;
  }
  .np-lyrics-viewport.is-expanded {
    height: 250px;
  }
  .ly-line {
    font-size: 15px;
  }
}

/* --- urpage Multi-User, Studio Customization & Effects --- */
.brand-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-sep {
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}

.brand-slug {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-muted);
}

.enter-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 10, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  cursor: pointer;
  transition: opacity 0.36s var(--ease);
}

.enter-overlay.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.enter-text {
  font-family: var(--font-display);
  font-size: clamp(20px, 4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.audio-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 15, 18, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.audio-dock.is-playing #audioToggleBtn {
  border-color: var(--accent);
  color: var(--accent);
}

.audio-title {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-vol {
  width: 64px;
  accent-color: var(--accent);
}

.badge-chip--platform {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  opacity: 0.95;
}

.link-btn--featured {
  border-color: var(--accent-ring) !important;
  background: var(--accent-soft) !important;
}

.link-btn--icon {
  padding: 8px 10px !important;
}

html[data-card-style="solid"] .surface {
  background: var(--surface-solid);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-card-style="minimal"] .surface {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-card-style="outline"] .surface {
  background: rgba(8, 8, 10, 0.35);
  border-color: var(--border-strong);
}

html[data-layout="compact"] .shell {
  max-width: 640px;
}

html[data-layout="editorial"] .profile-head {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

html[data-layout="editorial"] .name-row,
html[data-layout="editorial"] .handle-row,
html[data-layout="editorial"] .links-bar {
  justify-content: center;
}

[data-name-effect="shimmer"] {
  background: linear-gradient(110deg, var(--text) 35%, var(--accent) 50%, var(--text) 65%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: urpageShimmer 3.8s linear infinite;
}

[data-name-effect="subtle-glow"] {
  text-shadow: 0 0 18px var(--accent-ring);
}

@keyframes urpageShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

html.is-song-live #bgEffectCanvas {
  opacity: 0.2;
  transition: opacity 0.8s ease;
}

.studio-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.studio-group-title {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.studio-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.studio-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.studio-list-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.studio-list-main strong {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-list-main span {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-btn-row, .studio-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.studio-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 12px;
  text-decoration: none;
}

.studio-color-input {
  width: 100%;
  height: 36px;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.studio-upload-btn {
  cursor: pointer;
  flex-shrink: 0;
}


