@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;
  filter: blur(var(--bg-blur, 0px));
  transform: scale(1.03);
  transition: filter 0.35s var(--ease);
}

.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:
    linear-gradient(180deg, rgba(6, 6, 10, var(--bg-dim, 0.35)), rgba(6, 6, 10, var(--bg-dim, 0.35))),
    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-mark-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.brand-mark {
  width: 18px;
  height: 18px;
  display: block;
  border-radius: 4.5px;
}

.brand-dot {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--online);
  border: 2px solid var(--bg);
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.brand-dot.live {
  opacity: 1;
  transform: scale(1);
}

.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) 80%, rgba(6, 6, 10, 0.14));
  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(var(--card-blur, 20px)) saturate(175%);
  -webkit-backdrop-filter: blur(var(--card-blur, 20px)) 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: visible;
  margin-bottom: 18px;
  will-change: transform;
  opacity: 0;
  transform: translateY(10px) scale(0.99);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), border-radius 0.8s var(--theme-ease), box-shadow 0.35s var(--ease);
}

.hero-card.is-revealed {
  opacity: 1;
  transform: none;
}

html.card-tilt-on #appShell .surface {
  transition: opacity 0.55s var(--ease), border-radius 0.8s var(--theme-ease), box-shadow 0.45s var(--ease);
}

html.card-tilt-on #appShell .surface.is-tilting {
  will-change: transform;
}

html.card-tilt-on #appShell .surface::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  opacity: var(--tilt-glow, 0);
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.085), transparent 62%);
}

html.card-tilt-on #appShell .hero-card::after {
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.115), transparent 60%);
}

html.card-tilt-on #appShell .surface:hover {
  box-shadow:
    inset 0 0 42px -18px rgba(255, 255, 255, 0.048),
    0 32px 82px -22px rgba(0, 0, 0, 0.62),
    0 8px 24px -8px rgba(0, 0, 0, 0.34),
    0 0 68px -28px color-mix(in srgb, var(--orb-1) calc(var(--card-melt) * 62%), transparent);
}

html.card-tilt-on #appShell .hero-card:hover {
  box-shadow:
    inset 0 0 46px -18px rgba(255, 255, 255, 0.055),
    0 34px 88px -20px rgba(0, 0, 0, 0.68),
    0 8px 28px -8px rgba(0, 0, 0, 0.38),
    0 0 72px -28px color-mix(in srgb, var(--orb-1) calc(var(--card-melt) * 65%), transparent);
}

html.card-tilt-on[data-card-style="minimal"] #appShell .surface:hover {
  box-shadow: none;
}

html.card-tilt-on[data-card-style="minimal"] #appShell .surface::after {
  opacity: calc(var(--tilt-glow, 0) * 0.45);
}

.hero-banner {
  position: relative;
  width: 100%;
  height: 146px;
  overflow: hidden;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  transition: border-radius 0.8s var(--theme-ease);
  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,
.badge-chip--platform {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  cursor: default;
}

.discord-badge::after,
.badge-chip--platform::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.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  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;
  line-height: 1.25;
  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,
.discord-badge:focus-visible::after,
.badge-chip--platform:hover::after,
.badge-chip--platform:focus-visible::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 Workspace Modal */
.studio-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overscroll-behavior: contain;
}

.studio-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 8, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity 0.22s var(--ease);
}

.studio-sheet {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  height: min(84vh, 760px);
  border-radius: 20px;
  overflow: hidden;
  background: #101016;
  contain: layout style paint;
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 32px 90px -16px rgba(0, 0, 0, 0.72);
  display: flex;
  flex-direction: column;
  animation: studioPopIn 0.24s var(--ease);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

@keyframes studioPopIn {
  from { opacity: 0; transform: scale(0.98) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.studio-head {
  padding: 15px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.studio-head-left {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.studio-head-slug {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.studio-workspace {
  flex: 1;
  min-height: 0;
  display: flex;
}

.studio-tabs {
  width: 192px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.015);
  overflow-y: auto;
  scrollbar-width: none;
}

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

.st-tab {
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.st-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.st-tab.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.14);
}

.studio-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.studio-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 20px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.studio-foot {
  padding: 13px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(13, 13, 18, 0.96);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}

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

.st-discord-sync {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.st-discord-sync-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.st-discord-sync-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--text-muted);
}

.studio-drawer.is-peeking {
  pointer-events: none;
}

.studio-drawer.is-peeking .studio-backdrop,
.studio-drawer.is-peeking .studio-sheet {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.97);
}

.studio-return-btn {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 75;
  pointer-events: auto;
  appearance: none;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--accent-ring);
  background: rgba(13, 13, 18, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.studio-return-btn:hover {
  transform: translateX(-50%) translateY(-2px);
  border-color: var(--accent);
}

html.studio-open {
  overflow: hidden;
  overscroll-behavior: none;
  transition: none !important;
}

html.studio-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

html.studio-open .surface::before,
html.studio-open .tabs-nav,
html.studio-open .topbar .btn--secondary,
html.studio-open .sound-corner {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.studio-open .aura-orb,
html.studio-open [data-name-effect],
html.studio-open [data-avatar-ring] .avatar-img,
html.studio-open .avatar-wrap::before,
html.studio-open .enter-audio-wave span,
html.studio-open .pa-art-bars span {
  animation-play-state: paused !important;
}

@media (max-width: 759px) {
  .studio-drawer {
    padding: 0;
  }
  .studio-backdrop {
    display: none;
  }
  .studio-sheet {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    border: none;
    animation: none;
  }
  .studio-head {
    padding: 12px 14px;
    gap: 8px;
  }
  .studio-head-left {
    flex: 1;
  }
  .studio-head-actions {
    gap: 4px;
  }
  .studio-workspace {
    flex-direction: column;
  }
  .studio-tabs {
    width: 100%;
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 12px;
    gap: 6px;
    overflow-x: auto;
  }
  .st-tab {
    width: auto;
    text-align: center;
    border-radius: 999px;
    padding: 7px 12px;
  }
  .studio-body {
    padding: 14px 16px 24px;
  }
  .studio-foot {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .st-media-grid {
    grid-template-columns: 1fr;
  }
  .st-admin-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }
}

.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: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent) var(--range-pct, 0%),
    rgba(255, 255, 255, 0.12) var(--range-pct, 0%),
    rgba(255, 255, 255, 0.12) 100%
  );
  outline: none;
  cursor: pointer;
}

.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: radial-gradient(circle at 50% 46%, rgba(10, 10, 14, 0.42), rgba(5, 5, 8, 0.78) 82%);
  backdrop-filter: blur(26px) saturate(1.15);
  -webkit-backdrop-filter: blur(26px) saturate(1.15);
  cursor: pointer;
  overflow: hidden;
  transition: opacity 0.52s var(--ease), transform 0.52s var(--ease), filter 0.52s var(--ease);
}

.enter-overlay.is-leaving {
  opacity: 0;
  transform: scale(1.025);
  filter: blur(8px);
  pointer-events: none;
}

.enter-backdrop-art {
  position: absolute;
  inset: -12%;
  background-position: center;
  background-size: cover;
  opacity: 0;
  filter: blur(64px) saturate(1.25);
  transform: scale(1.08);
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
}

.enter-backdrop-art.has-art {
  opacity: 0.22;
}

.enter-frame {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px;
  max-width: 440px;
  text-align: center;
}

.enter-text {
  font-family: var(--font-display);
  font-size: clamp(20px, 3.2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
  animation: urpageEnterPulse 3.4s ease-in-out infinite;
}

@keyframes urpageEnterPulse {
  0%, 100% { opacity: 0.84; }
  50% { opacity: 1; }
}

.enter-audio-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.enter-audio-cover {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.enter-audio-wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
  flex-shrink: 0;
}

.enter-audio-wave span {
  width: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.72);
  animation: urpageEqBar 1.15s ease-in-out infinite;
}

.enter-audio-wave span:nth-child(1) { height: 5px; animation-delay: 0s; }
.enter-audio-wave span:nth-child(2) { height: 11px; animation-delay: 0.22s; }
.enter-audio-wave span:nth-child(3) { height: 7px; animation-delay: 0.44s; }

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

.enter-audio-meta {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  text-align: left;
}

.enter-audio-title {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.enter-audio-artist {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.44);
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.enter-audio-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.46);
  flex-shrink: 0;
}

.enter-silent-btn {
  appearance: none;
  position: fixed;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 6px 12px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.48);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color 0.18s var(--ease);
}

.enter-silent-btn:hover {
  color: rgba(255, 255, 255, 0.92);
}

.media-rights-box {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--accent-ring);
}

.cursor-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 190;
}

.sound-corner {
  position: fixed;
  top: 18px;
  left: 20px;
  z-index: 45;
  height: 40px;
  padding: 4px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  background: rgba(16, 16, 21, 0.72);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.sound-corner:hover,
.sound-corner:focus-within,
.sound-corner.is-dragging,
.sound-corner.is-open {
  border-color: rgba(255, 255, 255, 0.16);
}

.sc-icon-btn {
  appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 0;
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.sc-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
}

.sc-vol-tray {
  display: flex;
  align-items: center;
  gap: 0;
  width: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  transition: width 0.32s var(--ease), opacity 0.24s var(--ease), padding 0.32s var(--ease);
}

.sound-corner:hover .sc-vol-tray,
.sound-corner:focus-within .sc-vol-tray,
.sound-corner.is-dragging .sc-vol-tray,
.sound-corner.is-open .sc-vol-tray {
  width: 148px;
  opacity: 1;
  gap: 10px;
  padding: 0 10px 0 4px;
}

.sc-vol-range {
  -webkit-appearance: none;
  appearance: none;
  width: 88px;
  height: 3.5px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent) var(--sc-vol-pct, 20%),
    rgba(255, 255, 255, 0.16) var(--sc-vol-pct, 20%),
    rgba(255, 255, 255, 0.16) 100%
  );
  outline: none;
  cursor: pointer;
  flex-shrink: 0;
}

.sc-vol-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text);
  border: 1.5px solid #0a0a0e;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.sc-vol-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--text-muted);
  min-width: 34px;
  text-align: right;
  flex-shrink: 0;
}

.sc-dock-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 8px;
}

.sc-dock-sep {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 2px;
}

.sc-mini-btn {
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}

.sc-mini-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.sc-dock-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  max-width: 132px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1100px) {
  .sound-corner {
    top: auto;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    left: 16px;
  }
}

.badge-chip--platform {
  color: var(--accent);
}

.badge-chip--platform svg {
  display: block;
  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="frosted"] .surface::before {
  background-color: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(calc(var(--card-blur, 20px) + 12px)) saturate(195%);
  -webkit-backdrop-filter: blur(calc(var(--card-blur, 20px) + 12px)) saturate(195%);
}

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,
html[data-layout="showcase"] .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,
html[data-layout="showcase"] .name-row,
html[data-layout="showcase"] .handle-row,
html[data-layout="showcase"] .links-bar,
html[data-layout="showcase"] .custom-status {
  justify-content: center;
}

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

html[data-layout="showcase"] .avatar-wrap {
  width: 104px;
  height: 104px;
}

html[data-layout="showcase"] .avatar-img {
  width: 104px;
  height: 104px;
}

html[data-layout="showcase"] .avatar-deco {
  inset: -11px;
  width: 126px;
  height: 126px;
}

html[data-layout="showcase"] #displayName {
  font-size: clamp(28px, 4.2vw, 36px);
}

html[data-avatar-shape="squircle"] .avatar-img {
  border-radius: 26%;
}

html[data-avatar-shape="square"] .avatar-img {
  border-radius: 10px;
}

html[data-avatar-ring="accent"] .avatar-img {
  box-shadow: 0 0 0 2px var(--accent), 0 0 22px -4px var(--accent-ring);
}

html[data-avatar-ring="pulse"] .avatar-img {
  animation: urpageAvatarPulse 2.8s var(--ease) infinite;
}

html[data-avatar-ring="prism"] .avatar-wrap::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), rgba(255, 255, 255, 0.25), var(--accent-2), var(--accent));
  animation: urpageSpin 5s linear infinite;
  z-index: 0;
}

html[data-avatar-ring="prism"][data-avatar-shape="squircle"] .avatar-wrap::before {
  border-radius: 28%;
}

html[data-avatar-ring="prism"][data-avatar-shape="square"] .avatar-wrap::before {
  border-radius: 12px;
}

html[data-avatar-ring="prism"] .avatar-img {
  position: relative;
  z-index: 1;
}

@keyframes urpageAvatarPulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--accent), 0 0 0 0 var(--accent-ring); }
  50% { box-shadow: 0 0 0 2px var(--accent), 0 0 0 8px rgba(255, 255, 255, 0); }
}

@keyframes urpageSpin {
  to { transform: rotate(360deg); }
}

.surface h1[data-name-effect="chrome"],
.surface h1[data-name-effect="shimmer"] {
  text-shadow: none;
}

#displayName[data-name-effect]:not([data-name-effect="none"]) {
  transition: transform 0.35s var(--ease), filter 0.35s var(--ease), text-shadow 0.35s var(--ease);
}

[data-name-effect="chrome"] {
  display: inline-block;
  background: linear-gradient(125deg, #ffffff 8%, var(--accent) 44%, rgba(255, 255, 255, 0.76) 68%, #ffffff 94%);
  background-size: 200% 200%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position 0.65s var(--ease), filter 0.35s var(--ease), transform 0.35s var(--ease);
}

[data-name-effect="chrome"]:hover,
.hero-card.tilt-enabled:hover [data-name-effect="chrome"] {
  background-position: 100% 50%;
  filter: brightness(1.08);
}

[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);
}

[data-name-effect="wave"] {
  display: inline-block;
  animation: urpageWave 3.2s ease-in-out infinite;
  text-shadow: 0 4px 20px var(--accent-soft);
}

[data-name-effect="glitch"] {
  position: relative;
  display: inline-block;
}

[data-name-effect="glitch"]::before,
[data-name-effect="glitch"]::after {
  content: attr(data-glitch-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  pointer-events: none;
  opacity: 0.72;
}

[data-name-effect="glitch"]::before {
  color: var(--accent);
  clip-path: inset(0 0 58% 0);
  transform: translate(-1.5px, 0);
  animation: urpageGlitchA 2.8s steps(2, end) infinite;
}

[data-name-effect="glitch"]::after {
  color: #f43f5e;
  clip-path: inset(56% 0 0 0);
  transform: translate(1.5px, 0);
  animation: urpageGlitchB 2.4s steps(2, end) infinite;
}

[data-name-effect="typewriter"]::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 0.88em;
  margin-left: 4px;
  vertical-align: -0.08em;
  background: var(--accent);
  animation: urpageCaret 0.9s steps(1, end) infinite;
}

@keyframes urpageWave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2.5px); }
}

@keyframes urpageGlitchA {
  0%, 88%, 100% { transform: translate(0, 0); }
  90% { transform: translate(-2px, -1px); }
  94% { transform: translate(2px, 1px); }
}

@keyframes urpageGlitchB {
  0%, 84%, 100% { transform: translate(0, 0); }
  86% { transform: translate(2px, 1px); }
  92% { transform: translate(-2px, -1px); }
}

@keyframes urpageCaret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@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;
}

.profile-legal-foot {
  margin-top: 26px;
  padding: 14px 4px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-legal-foot a,
.legal-foot-btn {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s var(--ease);
}

.profile-legal-foot a:hover,
.legal-foot-btn:hover {
  color: var(--text);
}

.report-modal {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.report-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 22px;
  border-radius: 16px;
  background: rgba(16, 16, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.report-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.st-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.st-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.st-card-head {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.st-fold {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.075);
  padding: 0 14px;
}

.st-fold summary {
  list-style: none;
  padding: 12px 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.st-fold summary::-webkit-details-marker {
  display: none;
}

.st-fold summary::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
  margin-right: 4px;
}

.st-fold[open] summary::after {
  transform: rotate(-135deg);
}

.st-fold-body {
  padding: 4px 0 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.st-seg-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.st-seg-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 7px 6px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.16s var(--ease), background 0.16s var(--ease), border-color 0.16s var(--ease);
}

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

.st-seg-btn.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.14);
}

.st-media-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.st-media-thumb {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}

.st-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.st-media-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.st-media-info strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.st-media-info span {
  font-size: 11.5px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-media-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.st-color-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.st-color-hex {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
}

.st-connect-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.st-connect-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.st-connect-label > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.st-connect-label strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.st-connect-label span {
  font-size: 11.5px;
  color: var(--text-dim);
}

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

.st-status-dot.is-on {
  background: var(--ok);
}

.st-link-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.btn.is-dirty {
  box-shadow: 0 0 0 2px var(--accent-ring);
}

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

.preset-chip {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.preset-chip:hover {
  border-color: var(--accent-ring);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.preset-swatch {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.profile-audio-card {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  padding: 13px 15px 11px;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.044) 0%, rgba(255, 255, 255, 0.018) 100%);
  border: 1px solid rgba(255, 255, 255, 0.075);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 30px -16px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.28s var(--ease), background 0.28s var(--ease);
}

.profile-audio-card.is-playing {
  border-color: rgba(255, 255, 255, 0.12);
}

.pa-ambient-bg {
  position: absolute;
  inset: -24px;
  background-position: center;
  background-size: cover;
  opacity: 0;
  filter: blur(36px) saturate(1.25);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.25) 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.25) 60%, transparent 100%);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.45s var(--ease);
}

.pa-ambient-bg.has-art {
  opacity: 0.22;
}

.pa-beat-glow {
  position: absolute;
  left: -36px;
  top: -36px;
  width: 210px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 42%, transparent), transparent 68%);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.35s var(--ease);
}

.profile-audio-card.is-playing .pa-beat-glow {
  opacity: calc(0.06 + var(--audio-energy, 0) * 0.22);
}

@media (prefers-reduced-motion: reduce) {
  .profile-audio-card.is-playing .pa-beat-glow {
    opacity: 0.08;
  }
}

.pa-row,
.pa-wave-row,
.pa-queue {
  position: relative;
  z-index: 1;
}

.pa-row {
  display: flex;
  align-items: center;
  gap: 13px;
}

.pa-art-stage {
  position: relative;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
}

.pa-art-frame {
  position: relative;
  z-index: 2;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.34);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pa-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pa-art-fallback {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.12), rgba(14, 14, 19, 0.94) 76%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pa-art-bars {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  height: 18px;
}

.pa-art-bars span {
  width: 2.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  transition: transform 0.25s var(--ease);
}

.pa-art-bars span:nth-child(1) { height: 7px; }
.pa-art-bars span:nth-child(2) { height: 14px; }
.pa-art-bars span:nth-child(3) { height: 18px; background: var(--accent); }
.pa-art-bars span:nth-child(4) { height: 11px; }
.pa-art-bars span:nth-child(5) { height: 6px; }

.profile-audio-card.is-playing .pa-art-bars span {
  animation: urpageArtBars 1.2s ease-in-out infinite;
}

.profile-audio-card.is-playing .pa-art-bars span:nth-child(1) { animation-delay: 0s; }
.profile-audio-card.is-playing .pa-art-bars span:nth-child(2) { animation-delay: 0.18s; }
.profile-audio-card.is-playing .pa-art-bars span:nth-child(3) { animation-delay: 0.36s; }
.profile-audio-card.is-playing .pa-art-bars span:nth-child(4) { animation-delay: 0.54s; }
.profile-audio-card.is-playing .pa-art-bars span:nth-child(5) { animation-delay: 0.72s; }

@keyframes urpageArtBars {
  0%, 100% { transform: scaleY(0.55); opacity: 0.7; }
  50% { transform: scaleY(1); opacity: 1; }
}

.pa-vinyl-disc {
  display: none;
  position: absolute;
  top: 4px;
  left: 4px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  z-index: 1;
  background:
    radial-gradient(circle at center, var(--accent) 0 18%, #111116 19% 26%, transparent 27%),
    conic-gradient(from 30deg, rgba(255, 255, 255, 0.08) 0deg 35deg, transparent 70deg 180deg, rgba(255, 255, 255, 0.06) 210deg 245deg, transparent 290deg 360deg),
    repeating-radial-gradient(circle at center, #1b1b22 0px, #1b1b22 1.8px, #0b0b0f 3px, #141419 4.2px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  align-items: center;
  justify-content: center;
  transition: transform 0.45s var(--ease);
}

.pa-vinyl-core {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--surface-solid);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.pa-art-play {
  position: relative;
  z-index: 3;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(10, 10, 14, 0.64);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.pa-art-frame:hover .pa-art-play,
.pa-art-play:focus-visible {
  opacity: 1;
  transform: scale(1);
  border-color: var(--accent);
}

.pa-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pa-title-line {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.pa-eq-inline {
  position: static;
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
  flex-shrink: 0;
}

.pa-eq-inline span {
  width: 2px;
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  transform-origin: bottom center;
  animation: urpageEqBar 0.9s ease-in-out infinite;
}

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

.pa-title {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pa-track-index {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--text-dim);
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

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

.pa-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.pa-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.10);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 4px 14px rgba(0, 0, 0, 0.32);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.pa-play-btn:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.17);
}

.profile-audio-card.is-playing .pa-play-btn {
  border-color: color-mix(in srgb, var(--accent) 42%, rgba(255, 255, 255, 0.18));
}

.pa-ctrl-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.pa-ctrl-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.pa-ctrl-btn.is-active {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-ring);
}

.pa-wave-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pa-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--text-dim);
  min-width: 32px;
  flex-shrink: 0;
}

.pa-time:last-child {
  text-align: right;
}

.pa-wave-wrap {
  position: relative;
  flex: 1;
  height: 28px;
  cursor: pointer;
  touch-action: none;
  outline: none;
}

.pa-wave-wrap:focus-visible {
  box-shadow: 0 0 0 1px var(--accent-ring);
  border-radius: 6px;
}

.pa-wave-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.pa-hover-time {
  position: absolute;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(12, 12, 16, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text);
  pointer-events: none;
  white-space: nowrap;
}

.pa-queue {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-height: 176px;
  overflow-y: auto;
}

.pa-queue-item {
  appearance: none;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 9px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  color: var(--text-muted);
  font-family: inherit;
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.pa-queue-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.pa-queue-item.is-active {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--accent-ring);
  color: var(--text);
}

.pa-q-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.pa-queue-item.is-active .pa-q-num {
  color: var(--accent);
}

.pa-q-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pa-q-title {
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pa-q-artist {
  font-size: 11.5px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Style: Pill */
.profile-audio-card[data-audio-style="pill"] {
  border-radius: 28px;
  padding: 10px 14px;
  gap: 7px;
}

.profile-audio-card[data-audio-style="pill"] .pa-art-stage,
.profile-audio-card[data-audio-style="pill"] .pa-art-frame {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.profile-audio-card[data-audio-style="pill"].is-playing .pa-cover {
  animation: urpageSpin 14s linear infinite;
}

/* Style: Vinyl */
.profile-audio-card[data-audio-style="vinyl"] .pa-art-stage {
  width: 68px;
  height: 52px;
}

.profile-audio-card[data-audio-style="vinyl"] .pa-art-frame {
  border-radius: 6px;
}

.profile-audio-card[data-audio-style="vinyl"] .pa-vinyl-disc {
  display: flex;
  transform: translateX(14px);
}

.profile-audio-card[data-audio-style="vinyl"].is-playing .pa-vinyl-disc {
  transform: translateX(18px);
  animation: urpageVinylSpin 4.8s linear infinite;
}

@keyframes urpageVinylSpin {
  from { transform: translateX(18px) rotate(0deg); }
  to { transform: translateX(18px) rotate(360deg); }
}

/* Style: Minimal */
.profile-audio-card[data-audio-style="minimal"] {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.075);
  box-shadow: none;
  border-radius: 12px;
  padding: 10px 12px;
}

.profile-audio-card[data-audio-style="minimal"] .pa-ambient-bg {
  opacity: 0;
}

.profile-audio-card[data-audio-style="minimal"] .pa-art-stage,
.profile-audio-card[data-audio-style="minimal"] .pa-art-frame {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.profile-audio-card[data-audio-style="minimal"] .pa-play-btn {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.profile-audio-card[data-audio-style="pill"] .pa-wave-wrap {
  height: 24px;
}

.profile-audio-card[data-audio-style="vinyl"] .pa-art-stage {
  width: 66px;
}

/* Studio Music Tab */
.st-card-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.st-track-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
}

.st-vol-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.st-vol-badge {
  font-size: 11px;
  color: var(--text-muted);
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.st-vol-presets {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.st-vol-preset {
  appearance: none;
  padding: 5px 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.st-vol-preset:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.st-vol-preset.is-active {
  background: color-mix(in srgb, var(--accent) 16%, rgba(255, 255, 255, 0.04));
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  color: var(--text);
}

.st-audio-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.st-audio-dropzone:hover,
.st-audio-dropzone.is-dragover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.st-audio-dropzone.is-uploading {
  pointer-events: none;
  opacity: 0.7;
}

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

.st-track-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.st-track-item.is-playing {
  border-color: var(--accent-ring);
  background: rgba(255, 255, 255, 0.055);
}

.st-track-cover {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

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

.st-track-cover-edit {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.16s var(--ease);
}

.st-track-cover:hover .st-track-cover-edit {
  opacity: 1;
}

.st-track-play {
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease), background 0.16s var(--ease);
}

.st-track-item.is-playing .st-track-play,
.st-track-play:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
}

.st-track-fields {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.st-track-input {
  width: 100%;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  padding: 2px 6px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease);
}

.st-track-input--title {
  font-size: 12.5px;
  font-weight: 500;
}

.st-track-input--artist {
  font-size: 11.5px;
  color: var(--text-muted);
}

.st-track-input:hover {
  background: rgba(255, 255, 255, 0.035);
}

.st-track-input:focus {
  background: rgba(0, 0, 0, 0.25);
  border-color: var(--accent-ring);
}

.st-track-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .profile-audio-card {
    padding: 11px 12px;
  }
  .pa-row {
    gap: 10px;
  }
  .pa-art-stage,
  .pa-art-frame {
    width: 44px;
    height: 44px;
  }
  .profile-audio-card[data-audio-style="vinyl"] .pa-art-stage {
    width: 58px;
    height: 44px;
  }
  .profile-audio-card[data-audio-style="vinyl"] .pa-vinyl-disc {
    width: 38px;
    height: 38px;
    top: 3px;
    left: 3px;
  }
  .pa-ctrl-btn--sub {
    display: none;
  }
}

.st-addr-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.st-addr-mode {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}

.st-addr-mode.is-active {
  background: rgba(255, 255, 255, 0.92);
  color: #09090b;
  font-weight: 600;
}

.st-primary-url {
  width: 100%;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease);
}

.st-primary-url:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.24);
}

.st-primary-url span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-copy-tag {
  flex-shrink: 0;
  font-family: inherit;
  font-size: 11px;
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.st-domains-collapse {
  margin-top: 8px;
}

.st-domains-collapse summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--text-muted);
  user-select: none;
  padding: 4px 0;
  list-style: none;
}

.st-domains-collapse summary::-webkit-details-marker {
  display: none;
}

.st-domains-collapse summary::before {
  content: '▸ ';
  display: inline-block;
  transition: transform 0.16s var(--ease);
}

.st-domains-collapse[open] summary::before {
  content: '▾ ';
}

.st-domain-bubbles {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.st-dom-bubble {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}

.st-dom-bubble:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.055);
}

.st-dom-bubble.is-current {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.07);
}

.st-dom-seg {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  line-height: 1;
  padding: 3px 1px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.st-dom-stem {
  color: var(--text);
  font-weight: 500;
}

.st-dom-tld {
  display: inline-flex;
  align-items: center;
  padding: 2px 4px;
  border-radius: 999px;
  color: var(--text-muted);
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}

.st-dom-seg--lead .st-dom-tld {
  padding-left: 1px;
  padding-right: 3px;
}

.st-dom-seg:hover .st-dom-tld {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.st-dom-seg.is-current .st-dom-tld {
  background: var(--text);
  color: #09090b;
  font-weight: 600;
  padding: 2px 6px;
}

.st-dom-seg--lead.is-current .st-dom-tld {
  margin-left: 3px;
}

.st-dom-slash {
  color: var(--text-muted);
  opacity: 0.55;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  user-select: none;
  margin: 0 1px;
}

.st-card-head--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.st-alias-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.st-addr-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.st-addr-controls .st-addr-toggle {
  margin-bottom: 0;
}

.st-slug-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  max-width: 100%;
}

.st-slug-pill {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}

.st-slug-pill:hover {
  color: var(--text);
}

.st-slug-pill.is-active {
  background: rgba(255, 255, 255, 0.92);
  color: #09090b;
  font-weight: 600;
}

.st-alias-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.st-alias-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.st-alias-input-row .input-field {
  flex: 1;
  min-width: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
}

.st-alias-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  padding-left: 2px;
}

.st-alias-hint.is-ok {
  color: #4ade80;
}

.st-alias-hint.is-err {
  color: #f87171;
}

.st-alias-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.st-alias-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.st-alias-main {
  flex: 1;
  min-width: 0;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 2px 4px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.st-alias-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-alias-preview {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-alias-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.st-adm-aliases {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
}

.st-adm-alias-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  cursor: pointer;
}

.st-adm-alias-chip:hover {
  border-color: rgba(248, 113, 113, 0.5);
  color: #fca5a5;
}

.st-adm-alias-add-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.st-adm-alias-in {
  width: 96px;
  padding: 3px 8px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
}

@media (max-width: 520px) {
  .st-alias-input-row {
    flex-wrap: wrap;
  }
  .st-alias-input-row .btn {
    width: 100%;
  }
}

.st-card-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.st-card-head-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.st-link-clicks {
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  flex-shrink: 0;
}

.st-link-clicks-sum {
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

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

.st-stats-periods {
  flex: 1 1 240px;
}

.st-stats-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.st-stats-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.st-kpi-card {
  padding: 12px 13px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.st-kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.st-kpi-val {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.st-kpi-sub {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.st-kpi-delta {
  font-size: 10.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.st-kpi-delta.is-up {
  background: rgba(74, 222, 128, 0.14);
  color: #86efac;
}

.st-kpi-delta.is-down {
  background: rgba(248, 113, 113, 0.14);
  color: #fca5a5;
}

.st-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}

.st-live-dot.is-online {
  background: #4ade80;
}

.st-mini-tabs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.st-mini-tab {
  appearance: none;
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}

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

.st-mini-tab.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.11);
}

.st-chart-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.st-chart-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 18px;
  gap: 8px;
}

.st-chart-max {
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.st-chart-tooltip {
  font-size: 11px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transition: opacity 0.14s var(--ease);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-chart-tooltip.is-visible {
  opacity: 1;
}

.st-chart-svg {
  width: 100%;
  height: 148px;
  display: block;
  overflow: visible;
}

.st-chart-axis {
  stroke: rgba(255, 255, 255, 0.10);
  stroke-width: 1;
}

.st-chart-hit {
  fill: transparent;
}

.st-chart-bar {
  fill: var(--accent, #e4e4e7);
  opacity: 0.72;
  transition: opacity 0.14s var(--ease);
}

.st-chart-bar.is-zero {
  opacity: 0.14;
}

.st-chart-col {
  cursor: pointer;
  outline: none;
}

.st-chart-col:hover .st-chart-bar,
.st-chart-col:focus .st-chart-bar {
  opacity: 1;
}

.st-chart-x {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.st-stats-peak {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11.5px;
  color: var(--text-muted);
}

.st-stats-peak strong {
  color: var(--text);
  font-weight: 600;
}

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

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

.st-rank-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.st-rank-bar {
  position: absolute;
  inset: 0 auto 0 0;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.st-rank-label {
  position: relative;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-rank-label em {
  font-style: normal;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 5px;
}

.st-rank-vals {
  position: relative;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.st-rank-vals em {
  font-style: normal;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 4px;
}

.st-stats-empty {
  padding: 14px 8px;
}

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

.st-music-stat {
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.st-music-stat span {
  font-size: 11px;
  color: var(--text-muted);
}

.st-music-stat strong {
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.st-music-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-muted);
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.st-music-top strong {
  color: var(--text);
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 759px) {
  .st-stats-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .st-stats-grid-2 {
    grid-template-columns: 1fr;
  }
}




