:root {
  color-scheme: dark;
  --bg: #09090d;
  --bg-elevated: #0f1016;
  --panel: rgba(22, 23, 31, 0.82);
  --panel-solid: #171820;
  --panel-hover: #20212b;
  --input: #12131a;
  --text: #f7f7fa;
  --muted: #9295a3;
  --faint: #5f6270;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent: #9cff57;
  --accent-2: #62e8d5;
  --violet: #8f6bff;
  --danger: #ff6b7a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --sidebar-width: 238px;
  --player-height: 92px;
  --radius: 20px;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f5f1;
  --bg-elevated: #ffffff;
  --panel: rgba(255, 255, 255, 0.85);
  --panel-solid: #ffffff;
  --panel-hover: #f0f1ec;
  --input: #eeefe9;
  --text: #16171b;
  --muted: #696c76;
  --faint: #999ca4;
  --line: rgba(20, 22, 28, 0.09);
  --line-strong: rgba(20, 22, 28, 0.15);
  --shadow: 0 24px 60px rgba(43, 48, 39, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 74% -10%, rgba(143, 107, 255, 0.09), transparent 30%),
    var(--bg);
  color: var(--text);
  font-size: 15px;
}

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

button {
  color: inherit;
}

button,
a,
input[type="range"] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hidden {
  display: none !important;
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.12;
}

.ambient-one {
  width: 380px;
  height: 380px;
  right: 2%;
  top: 8%;
  background: var(--violet);
}

.ambient-two {
  width: 300px;
  height: 300px;
  left: 22%;
  bottom: 4%;
  background: var(--accent-2);
  opacity: 0.06;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: calc(100vh - var(--player-height));
}

.sidebar {
  position: fixed;
  inset: 0 auto var(--player-height) 0;
  z-index: 30;
  width: var(--sidebar-width);
  padding: 27px 20px 22px;
  border-right: 1px solid var(--line);
  background: rgba(10, 10, 14, 0.82);
  backdrop-filter: blur(22px);
  display: flex;
  flex-direction: column;
}

[data-theme="light"] .sidebar {
  background: rgba(248, 249, 245, 0.9);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 9px 34px;
  color: var(--text);
  text-decoration: none;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 26px;
  height: 26px;
}

.brand-mark i {
  width: 3px;
  border-radius: 4px;
  background: var(--accent);
}

.brand-mark i:nth-child(1) { height: 9px; }
.brand-mark i:nth-child(2) { height: 19px; }
.brand-mark i:nth-child(3) { height: 14px; }
.brand-mark i:nth-child(4) { height: 22px; }

.main-nav,
.sidebar-group {
  display: grid;
  gap: 5px;
}

.main-nav > [data-view="radio"],
.main-nav > [data-view="feed"] {
  display: none !important;
}

.sidebar-group {
  margin-top: 30px;
}

.sidebar-label {
  margin: 0 12px 10px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-item {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 13px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  transition: 160ms ease;
}

.nav-item:hover {
  color: var(--text);
  background: var(--panel);
}

.nav-item.active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(156, 255, 87, 0.14), rgba(156, 255, 87, 0.03));
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  width: 3px;
  height: 22px;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
}

.nav-item svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item.compact {
  min-height: 38px;
  font-size: 12px;
}

.nav-item.compact svg {
  width: 17px;
  height: 17px;
}

.upload-sidebar {
  margin-top: auto;
  height: 43px;
  border: 1px solid rgba(156, 255, 87, 0.28);
  border-radius: 13px;
  background: rgba(156, 255, 87, 0.08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: 160ms ease;
}

.upload-sidebar:hover {
  transform: translateY(-1px);
  background: rgba(156, 255, 87, 0.14);
}

.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 15px 5px 0;
  color: var(--faint);
  font-size: 10px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.main {
  grid-column: 2;
  min-width: 0;
  padding-bottom: calc(var(--player-height) + 25px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 82px;
  padding: 18px clamp(25px, 4vw, 65px);
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(to bottom, var(--bg) 55%, transparent);
}

.search-box {
  width: min(450px, 46vw);
  height: 43px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--input);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 160ms ease;
}

.search-box:focus-within {
  border-color: rgba(156, 255, 87, 0.45);
  box-shadow: 0 0 0 3px rgba(156, 255, 87, 0.06);
}

.search-box svg {
  width: 18px;
  fill: none;
  stroke: var(--faint);
  stroke-width: 2;
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
}

.search-box input::placeholder {
  color: var(--faint);
}

kbd {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--faint);
  background: var(--panel);
  font-size: 9px;
}

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.button,
.icon-button,
.play-button,
.profile-chip,
.text-button {
  border: 0;
  cursor: pointer;
}

.button {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  transition: 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent);
  color: #10120e;
  box-shadow: 0 8px 28px rgba(156, 255, 87, 0.12);
}

.button.ghost {
  background: transparent;
  color: var(--muted);
}

.button.subtle {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.button.large {
  min-height: 48px;
  padding: 0 22px;
}

.button svg {
  width: 17px;
  margin-right: 7px;
  fill: currentColor;
  vertical-align: -4px;
}

.button.full {
  width: 100%;
  min-height: 48px;
}

.icon-button {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: 160ms ease;
}

.icon-button:hover {
  color: var(--text);
  background: var(--panel-hover);
}

.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button.tiny {
  width: 32px;
  height: 32px;
}
#crossfadeButton svg {
  width: 15px;
  opacity: .5;
  transition: opacity .15s;
}
#crossfadeButton.active svg { opacity: 1; }

.mobile-menu {
  display: none;
}

.sun-icon,
[data-theme="light"] .moon-icon {
  display: none;
}

[data-theme="light"] .sun-icon {
  display: block;
}

.profile-chip {
  height: 42px;
  padding: 0 10px 0 5px;
  border-radius: 22px;
  background: var(--panel);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}

.profile-chip svg {
  width: 14px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  color: #0c1009;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.content {
  width: min(1380px, 100%);
  margin: 0 auto;
  padding: 4px clamp(25px, 4vw, 65px) 70px;
}

.hero {
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: clamp(36px, 5vw, 72px);
  overflow: hidden;
  background:
    radial-gradient(circle at 77% 49%, rgba(156, 255, 87, 0.09), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(143, 107, 255, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 55%);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

.hero-copy {
  z-index: 2;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  width: 18px;
  height: 1px;
  margin-right: 8px;
  background: currentColor;
  vertical-align: 4px;
}

.eyebrow.muted {
  margin-bottom: 7px;
  color: var(--faint);
}

.hero h1 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(46px, 5.3vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.058em;
}

.hero h1 em {
  color: transparent;
  -webkit-text-stroke: 1px var(--muted);
  font-weight: 450;
  font-style: normal;
}

.hero-text {
  max-width: 510px;
  margin: 27px 0 30px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 11px;
}

.hero-stats {
  margin-top: 46px;
  display: flex;
  gap: clamp(28px, 4vw, 55px);
}

.hero-stats div {
  display: grid;
  gap: 4px;
}

.hero-stats strong {
  font-size: 18px;
  letter-spacing: -0.03em;
}

.hero-stats span {
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-art {
  min-height: 360px;
  position: relative;
  display: grid;
  place-items: center;
}

.vinyl {
  position: relative;
  z-index: 3;
  width: clamp(240px, 25vw, 350px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 7px, rgba(255,255,255,.045) 8px 9px),
    conic-gradient(from 10deg, #0c0d11, #20212a, #09090c, #252630, #0b0b0f, #1b1c24, #0c0d11);
  box-shadow:
    0 45px 70px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255,255,255,.08);
  animation: float 7s ease-in-out infinite;
}

.vinyl::before,
.vinyl::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  inset: 14%;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.vinyl::after {
  inset: 27%;
}

.vinyl-shine {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background: conic-gradient(from 190deg, transparent 0 22%, rgba(255,255,255,.13) 28%, transparent 34% 62%, rgba(156,255,87,.06) 70%, transparent 77%);
}

.vinyl-label {
  position: absolute;
  inset: 35%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255,255,255,.28), transparent 10%),
    linear-gradient(145deg, var(--accent), #79d94e);
  color: #10130e;
  display: grid;
  place-content: center;
  justify-items: center;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.18);
}

.vinyl-label::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  left: calc(50% - 5px);
  top: calc(50% - 5px);
  border-radius: 50%;
  background: #0b0c0a;
}

.mini-brand {
  margin-bottom: 18px;
  font-size: 24px;
  font-weight: 950;
}

.vinyl-label small {
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.orbit {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.orbit-one {
  width: 420px;
  height: 180px;
  transform: rotate(-20deg);
}

.orbit-two {
  width: 360px;
  height: 420px;
  transform: rotate(32deg);
}

.floating-tag {
  position: absolute;
  z-index: 4;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(14, 15, 20, 0.72);
  backdrop-filter: blur(8px);
  color: var(--muted);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.tag-one { top: 14%; right: 8%; transform: rotate(7deg); }
.tag-two { bottom: 18%; left: 2%; transform: rotate(-8deg); }

.hero-wave {
  position: absolute;
  z-index: 5;
  right: 1%;
  bottom: 7%;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.hero-wave i {
  width: 2px;
  height: 30%;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0.75;
  animation: wave 1.1s ease-in-out infinite alternate;
}

.hero-wave i:nth-child(2n) { animation-delay: -.5s; }
.hero-wave i:nth-child(3n) { animation-delay: -.8s; }
.hero-wave i:nth-child(4n) { animation-delay: -.25s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes wave {
  from { height: 18%; }
  to { height: 100%; }
}

.section {
  margin-top: 68px;
  content-visibility: auto;
  contain-intrinsic-size: 0 400px;
}

.section-head {
  margin-bottom: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-head h2,
.page-title {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 34px);
  letter-spacing: -0.045em;
}

.text-button {
  padding: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.text-button:hover {
  color: var(--accent);
}

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

.track-card {
  min-width: 0;
  padding: 10px 10px 15px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  transition: 180ms ease;
  will-change: transform;
  contain: layout style;
}

.track-card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  background: var(--panel);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
}

.cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 13px;
  background: linear-gradient(145deg, #2e3140, #111219);
  cursor: pointer;
}

.cover::before {
  content: "";
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(circle at 30% 25%, var(--cover-a, #8f6bff), transparent 30%),
    radial-gradient(circle at 75% 70%, var(--cover-b, #62e8d5), transparent 30%);
  filter: blur(18px);
  opacity: 0.85;
}

.cover::after {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.78);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -0.08em;
  text-shadow: 0 5px 25px rgba(0,0,0,.3);
}

.palette-0 { --cover-a: #8f6bff; --cover-b: #62e8d5; }
.palette-1 { --cover-a: #ff6b9d; --cover-b: #f59e0b; }
.palette-2 { --cover-a: #31d8c6; --cover-b: #2563eb; }
.palette-3 { --cover-a: #9cff57; --cover-b: #3f6212; }
.palette-4 { --cover-a: #d946ef; --cover-b: #7c3aed; }
.palette-5 { --cover-a: #ff7957; --cover-b: #334155; }

.cover img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-play {
  position: absolute;
  z-index: 4;
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #11140e;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(8px);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  transition: 180ms ease;
}

.cover:hover .card-play,
.track-card.active .card-play {
  opacity: 1;
  transform: translateY(0);
}

.card-play svg {
  width: 18px;
  fill: currentColor;
}

.track-card-body {
  padding: 13px 3px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.track-card-meta {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 5px;
}

.track-card-meta strong,
.list-meta strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-card-meta span,
.list-meta span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.like-button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--faint);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.like-button svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.like-button.liked {
  color: var(--accent);
}

.like-button.liked svg {
  fill: currentColor;
}

.track-list {
  border-top: 1px solid var(--line);
}

.track-row {
  min-height: 70px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  border-radius: 11px;
  display: grid;
  grid-template-columns: 34px 48px minmax(130px, 1.7fr) minmax(95px, .8fr) minmax(100px, .8fr) 70px 70px;
  align-items: center;
  gap: 12px;
  transition: 150ms ease;
}

.track-row:hover,
.track-row.active {
  background: var(--panel);
}

.row-index {
  color: var(--faint);
  font-size: 10px;
  text-align: center;
}

.row-cover {
  width: 46px;
  height: 46px;
  border-radius: 9px;
}

.row-cover::after {
  font-size: 13px;
}

.list-meta {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.row-album,
.row-genre,
.row-duration {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.genre-pill {
  width: max-content;
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--genre-color) 35%, transparent);
  border-radius: 20px;
  color: var(--genre-color);
  background: color-mix(in srgb, var(--genre-color) 8%, transparent);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.mood-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 11px;
}

.mood-card {
  min-height: 112px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: start;
  position: relative;
  cursor: pointer;
  text-align: left;
  transition: 170ms ease;
}

.mood-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.mood-card::before {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  right: -22px;
  top: -30px;
  border-radius: 50%;
  background: var(--mood);
  opacity: .18;
  filter: blur(12px);
}

.mood-card::after {
  content: "◖";
  position: absolute;
  right: 15px;
  top: 12px;
  color: var(--mood);
  font-size: 34px;
  transform: rotate(25deg);
}

.mood-card strong {
  position: relative;
  font-size: 12px;
}

.mood-card span {
  position: relative;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.mood-0 { --mood: #8f6bff; }
.mood-1 { --mood: #9cff57; }
.mood-2 { --mood: #62e8d5; }
.mood-3 { --mood: #5e8cff; }
.mood-4 { --mood: #ff6b7a; }

.genre-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(100px, 1fr));
  gap: 10px;
}

.genre-card {
  height: 72px;
  padding: 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  position: relative;
  cursor: pointer;
  text-align: left;
  transition: 160ms ease;
}

.genre-card:hover {
  transform: translateY(-2px);
  border-color: var(--genre);
}

.genre-card::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  right: -17px;
  bottom: -25px;
  border-radius: 50%;
  background: var(--genre);
  filter: blur(5px);
  opacity: .42;
}

.genre-card strong {
  display: block;
  font-size: 11px;
}

.genre-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 8px;
}

.genre-style-0 { --genre: #31d8c6; }
.genre-style-1 { --genre: #84cc16; }
.genre-style-2 { --genre: #fb7185; }
.genre-style-3 { --genre: #8b5cf6; }
.genre-style-4 { --genre: #f59e0b; }
.genre-style-5 { --genre: #ff7957; }
.genre-style-6 { --genre: #38bdf8; }
.genre-style-7 { --genre: #d946ef; }

.genre-color-0 { --genre-color: #31d8c6; }
.genre-color-1 { --genre-color: #84cc16; }
.genre-color-2 { --genre-color: #fb7185; }
.genre-color-3 { --genre-color: #8b5cf6; }
.genre-color-4 { --genre-color: #f59e0b; }
.genre-color-5 { --genre-color: #ff7957; }
.genre-color-6 { --genre-color: #38bdf8; }
.genre-color-7 { --genre-color: #d946ef; }

.skeleton-grid::before {
  content: "";
  display: none;
}

.skeleton {
  height: 250px;
  border-radius: 18px;
  background: linear-gradient(100deg, var(--panel) 25%, var(--panel-hover) 45%, var(--panel) 65%);
  background-size: 220% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.empty-state {
  padding: 45px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 18px;
}

.view-header {
  margin: 12px 0 35px;
}

.view-header p {
  max-width: 600px;
  color: var(--muted);
  line-height: 1.7;
}

.filter-row {
  margin: 0 0 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
  border-color: rgba(156,255,87,.32);
  color: var(--accent);
}

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

.playlist-card {
  min-height: 180px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.playlist-art {
  width: 62px;
  height: 62px;
  margin-bottom: 24px;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--violet), var(--accent-2));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.playlist-card strong {
  display: block;
  margin-bottom: 7px;
}

.playlist-card span {
  color: var(--muted);
  font-size: 10px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.stat-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.stat-card span {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 26px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.admin-table th,
.admin-table td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.admin-table th {
  color: var(--faint);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 60, 60, 0.15);
  color: #ff4444;
  border: 1px solid rgba(255, 60, 60, 0.3);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: 20px;
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
@keyframes fadeIn {
  from { opacity: 0; background: rgba(120, 90, 255, 0.15); }
  to { opacity: 1; background: transparent; }
}
.admin-table small {
  color: var(--faint);
  font-size: 10px;
}
.admin-play-btn {
  width: 34px; height: 34px;
  border: 0; border-radius: 50%;
  background: var(--panel-hover);
  color: var(--faint);
  display: grid; place-items: center;
  cursor: pointer; transition: background .15s, color .15s;
  flex-shrink: 0;
}
.admin-play-btn:hover { background: var(--accent); color: #000; }
.admin-play-btn.active { background: var(--accent); color: #000; }
.admin-play-btn svg { width: 14px; fill: currentColor; stroke: none; }
.admin-play-btn .pause-icon { display: none; }
.admin-play-btn.active .play-icon { display: none; }
.admin-play-btn.active .pause-icon { display: block; }

.status-select {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--input);
  color: var(--text);
  font-size: 10px;
}

.player {
  position: fixed;
  z-index: 50;
  inset: auto 0 0;
  height: var(--player-height);
  padding: 12px 24px;
  border-top: 1px solid var(--line-strong);
  background: rgba(13, 14, 19, 0.9);
  backdrop-filter: blur(26px) saturate(1.4);
  will-change: transform;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(330px, 1.4fr) minmax(190px, 1fr);
  align-items: center;
  gap: 20px;
  box-shadow: 0 -12px 45px rgba(0,0,0,.2);
}

[data-theme="light"] .player {
  background: rgba(250, 250, 247, 0.9);
}

.player-track {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-cover {
  flex: 0 0 auto;
  width: 55px;
  height: 55px;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--cover-a, var(--violet)), var(--cover-b, var(--accent-2)));
  display: grid;
  place-items: center;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-cover span {
  color: rgba(255,255,255,.85);
  font-size: 13px;
  font-weight: 900;
}

.player-meta {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 5px;
}

.player-meta strong,
.player-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-meta strong { font-size: 12px; }
.player-meta span { color: var(--muted); font-size: 9px; }

.player-like.active {
  color: var(--accent);
}

.player-like.active svg {
  fill: currentColor;
}

.player-center {
  min-width: 0;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.play-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  display: grid;
  place-items: center;
  transition: 160ms ease;
}

.play-button:hover {
  transform: scale(1.05);
}

.play-button svg {
  width: 19px;
  fill: currentColor;
}

.play-button .pause-icon {
  display: none;
}

.player.playing .play-button .play-icon {
  display: none;
}

.player.playing .play-button .pause-icon {
  display: block;
}

.icon-button.active {
  color: var(--accent);
}

.progress-row {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  color: var(--faint);
  font-size: 8px;
}

input[type="range"] {
  width: 100%;
  height: 3px;
  margin: 0;
  appearance: none;
  border-radius: 4px;
  background: linear-gradient(to right, var(--accent) var(--range, 0%), var(--line-strong) var(--range, 0%));
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
  appearance: none;
  border-radius: 50%;
  background: var(--text);
  opacity: 0;
  transition: 130ms ease;
}

input[type="range"]:hover::-webkit-slider-thumb {
  opacity: 1;
}

.player-extra {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 8px;
}

.volume-icon {
  width: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#volumeBar {
  max-width: 95px;
  --range: 72%;
}

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  padding: 20px;
  overflow-y: auto;
  background: rgba(3, 4, 7, 0.76);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
}

.modal {
  position: relative;
  width: min(440px, 100%);
  padding: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.upload-modal {
  width: min(720px, 100%);
  margin: auto;
}

.modal-close {
  position: absolute;
  right: 17px;
  top: 14px;
  width: 35px;
  height: 35px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 25px;
  cursor: pointer;
}

.modal-brand {
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
}

.modal h2 {
  margin: 0 0 8px;
  font-size: 29px;
  letter-spacing: -.04em;
}

.modal-subtitle {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.tabs {
  padding: 4px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--input);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.tab {
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.tab.active {
  background: var(--panel-hover);
  color: var(--text);
}

.form {
  display: grid;
  gap: 14px;
}

.form label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.form input:not([type="checkbox"]):not([type="file"]),
.form select,
.form textarea {
  width: 100%;
  min-height: 43px;
  margin-top: 7px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  background: var(--input);
  color: var(--text);
  resize: vertical;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: rgba(156, 255, 87, .45);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.dropzone {
  min-height: 130px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  background: var(--input);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.dropzone input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dropzone strong {
  color: var(--text);
  font-size: 12px;
}

.dropzone small {
  color: var(--faint);
}

.drop-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: rgba(156,255,87,.12);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 20px;
}

.metadata-review {
  min-height: 82px;
  padding: 14px;
  border: 1px solid rgba(98, 232, 213, .2);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(98, 232, 213, .07), transparent 65%),
    var(--input);
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.metadata-review.loading {
  border-color: rgba(156, 255, 87, .2);
}

.metadata-review.warning {
  border-color: rgba(245, 158, 11, .25);
  background:
    linear-gradient(135deg, rgba(245, 158, 11, .06), transparent 65%),
    var(--input);
}

.metadata-review-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(98, 232, 213, .1);
  color: var(--accent-2);
  display: grid;
  place-items: center;
  font-size: 17px;
}

.metadata-review.loading .metadata-review-icon {
  color: var(--accent);
  animation: metadata-pulse 1s ease-in-out infinite alternate;
}

.metadata-review.warning .metadata-review-icon {
  color: #f59e0b;
  background: rgba(245, 158, 11, .08);
}

.metadata-review-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.metadata-review-copy strong {
  font-size: 11px;
}

.metadata-review-copy > span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.metadata-state {
  padding: 5px 8px;
  border-radius: 20px;
  background: rgba(98, 232, 213, .09);
  color: var(--accent-2);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.metadata-review.loading .metadata-state {
  color: var(--accent);
  background: rgba(156, 255, 87, .08);
}

.metadata-review.warning .metadata-state {
  color: #f59e0b;
  background: rgba(245, 158, 11, .08);
}

.metadata-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 3px;
}

.metadata-fact {
  max-width: 180px;
  padding: 4px 7px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--panel);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes metadata-pulse {
  from { transform: scale(.9); opacity: .6; }
  to { transform: scale(1.05); opacity: 1; }
}

.artist-register-fields { display: grid; gap: 14px; }
.batch-summary { padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--input); display: flex; justify-content: space-between; gap: 14px; }
.batch-summary strong { font-size: 11px; }
.batch-summary span { color: var(--muted); font-size: 9px; }
.batch-upload-list { display: grid; gap: 10px; }
.batch-track { padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--input); }
.batch-track.error { border-color: rgba(255, 107, 122, .3); }
.batch-track.done { border-color: rgba(156, 255, 87, .24); }
.batch-track-head { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.batch-track-number { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; background: rgba(156, 255, 87, .09); color: var(--accent); display: grid; place-items: center; font-size: 10px; font-weight: 900; }
.batch-track-file { min-width: 0; flex: 1; }
.batch-track-file strong, .batch-track-file span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-track-file strong { font-size: 10px; }
.batch-track-file span { margin-top: 4px; color: var(--muted); font-size: 8px; }
.batch-remove { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--faint); cursor: pointer; font-size: 18px; }
.batch-fields { display: grid; grid-template-columns: 1.4fr 1.2fr .8fr .6fr .8fr .55fr; gap: 8px; }
.batch-fields label { min-width: 0; }
.batch-fields input, .batch-fields select { min-height: 38px !important; padding: 8px 9px !important; font-size: 9px; }
.batch-tech { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 6px; }
.batch-tech span { padding: 4px 7px; border-radius: 7px; background: var(--panel); color: var(--muted); font-size: 8px; }
.creator-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.creator-card { padding: 20px; border: 1px solid var(--line); border-radius: 19px; background: var(--panel); cursor: pointer; transition: 170ms ease; }
.creator-card:hover { transform: translateY(-3px); border-color: rgba(156, 255, 87, .22); }
.creator-avatar { width: 64px; height: 64px; margin-bottom: 18px; border-radius: 20px; background: linear-gradient(145deg, var(--avatar-a, var(--violet)), var(--avatar-b, var(--accent-2))); display: grid; place-items: center; color: #fff; font-size: 20px; font-weight: 950; }
.creator-card h3 { margin: 0 0 6px; font-size: 15px; }
.creator-card p { height: 36px; margin: 12px 0; overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.55; }
.creator-card-meta { color: var(--faint); font-size: 8px; }
.creator-hero { padding: 35px; border: 1px solid var(--line); border-radius: 25px; background: radial-gradient(circle at 80% 20%, rgba(143,107,255,.13), transparent 32%), var(--panel); display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 25px; }
.creator-hero .creator-avatar { width: 110px; height: 110px; margin: 0; border-radius: 30px; font-size: 34px; }
.creator-hero h1 { margin: 0 0 7px; font-size: clamp(30px, 4vw, 52px); letter-spacing: -.05em; }
.creator-hero p { max-width: 650px; color: var(--muted); line-height: 1.65; }
.creator-counts { display: flex; gap: 20px; color: var(--muted); font-size: 9px; }
.creator-counts strong { color: var(--text); font-size: 13px; }
.post-composer, .post-card { padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: var(--panel); }
.post-composer { margin: 25px 0; }
.post-composer textarea { width: 100%; min-height: 90px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--input); color: var(--text); resize: vertical; }
.post-composer-actions { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.post-list { display: grid; gap: 13px; }
.post-author { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.post-author .creator-avatar { width: 38px; height: 38px; margin: 0; border-radius: 11px; font-size: 12px; }
.post-author strong, .post-author span { display: block; }
.post-author span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.post-body { margin: 15px 0; color: var(--text); font-size: 12px; line-height: 1.65; white-space: pre-wrap; }
.post-media { width: 100%; max-height: 620px; border-radius: 14px; background: #050506; object-fit: contain; }
.reaction-row { margin-top: 13px; display: flex; gap: 7px; }
.reaction-button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 20px; background: var(--input); color: var(--muted); cursor: pointer; font-size: 10px; }
.reaction-button.active { border-color: rgba(156,255,87,.3); color: var(--accent); }
.artist-link { border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer; }
.download-button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--faint); display: grid; place-items: center; cursor: pointer; }
.download-button:hover { color: var(--accent-2); background: var(--panel-hover); }
.download-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.track-actions { display: flex; justify-content: end; align-items: center; }
.share-button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--faint); display: grid; place-items: center; cursor: pointer; transition: color .15s, background .15s; }
.share-button:hover { color: var(--accent); background: var(--panel-hover); }
.share-button svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.5;
}

.check-row input {
  margin-top: 2px;
  accent-color: var(--accent);
}

.legal-note {
  padding: 12px;
  border: 1px solid rgba(245, 158, 11, .16);
  border-radius: 10px;
  background: rgba(245, 158, 11, .05);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.form-error {
  min-height: 14px;
  margin: 0;
  color: var(--danger);
  font-size: 10px;
}

.profile-menu {
  position: fixed;
  z-index: 80;
  right: 28px;
  top: 68px;
  width: 180px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.profile-menu button {
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  text-align: left;
}

.profile-menu button:hover {
  background: var(--panel-hover);
  color: var(--text);
}

.toast-stack {
  position: fixed;
  z-index: 150;
  right: 20px;
  bottom: calc(var(--player-height) + 18px);
  display: grid;
  gap: 8px;
}

.toast {
  max-width: 330px;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 11px;
  animation: toast-in .25s ease;
}

.toast.error {
  border-color: rgba(255, 107, 122, .28);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
  .track-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .genre-grid { grid-template-columns: repeat(4, minmax(100px, 1fr)); }
  .mood-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { grid-template-columns: 1fr 360px; padding: 45px; }
  .hero h1 { font-size: 54px; }
  .track-row { grid-template-columns: 30px 48px minmax(130px, 1.5fr) minmax(90px, .8fr) 70px 70px; }
  .creator-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .batch-fields { grid-template-columns: repeat(3, 1fr); }
  .row-genre { display: none; }
}

@media (max-width: 900px) {
  :root { --sidebar-width: 210px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-art { display: none; }
  .hero-copy { max-width: 660px; }
  .topbar { padding-inline: 24px; }
  .content { padding-inline: 24px; }
  .button.ghost { display: none; }
  .search-box { width: min(390px, 48vw); }
  .player { grid-template-columns: 1fr 1.3fr; }
  .player-extra { display: none; }
  .admin-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  :root {
    --player-height: 74px;
  }
  .app-shell { display: block; }
  .main { grid-column: auto; padding-bottom: 85px; }
  .sidebar {
    inset: 0 auto 0 0;
    height: 100vh;
    transform: translateX(-105%);
    transition: transform 220ms ease;
    box-shadow: 25px 0 60px rgba(0,0,0,.35);
  }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu { display: grid; flex: 0 0 auto; }
  .topbar {
    min-height: 70px;
    padding: 12px 15px;
    gap: 9px;
  }
  .search-box {
    width: auto;
    flex: 1;
  }
  .search-box kbd,
  #registerButton,
  #themeButton {
    display: none;
  }
  #loginButton {
    min-width: auto;
    padding: 0 10px;
    display: block;
  }
  .profile-name {
    display: none;
  }
  .profile-chip {
    width: 42px;
    padding: 5px;
  }
  .profile-chip > svg {
    display: none;
  }
  .content { padding: 0 15px 55px; }
  .hero {
    padding: 32px 24px;
    border-radius: 22px;
  }
  .hero h1 { font-size: clamp(40px, 12vw, 56px); }
  .hero-text { font-size: 12px; }
  .hero-stats { margin-top: 32px; gap: 25px; }
  .section { margin-top: 45px; }
  .track-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .track-card { padding: 7px 7px 12px; }
  .card-play {
    width: 38px;
    height: 38px;
    opacity: 1;
    transform: none;
  }
  .mood-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .genre-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .track-row {
    grid-template-columns: 42px minmax(0, 1fr) 70px;
    min-height: 62px;
    padding-inline: 5px;
  }
  .row-index,
  .row-album,
  .row-genre,
  .row-duration {
    display: none;
  }
  .row-cover {
    width: 40px;
    height: 40px;
  }
  .playlist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creator-hero { grid-template-columns: 75px 1fr; padding: 22px; }
  .creator-hero .creator-avatar { width: 75px; height: 75px; border-radius: 22px; }
  .creator-hero > .button { grid-column: 1 / -1; width: 100%; }
  .batch-fields { grid-template-columns: 1fr 1fr; }
  .player {
    height: var(--player-height);
    padding: 8px 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }
  .player-cover {
    width: 48px;
    height: 48px;
  }
  .player-center {
    display: flex;
  }
  .player-controls .tiny,
  .player-controls #prevButton,
  .player-controls #nextButton,
  .progress-row {
    display: none;
  }
  .player-controls { gap: 0; }
  .player-like { display: none; }
  .modal { padding: 30px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-table { min-width: 650px; }
  .table-wrap { overflow-x: auto; }
}

@media (max-width: 430px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-stats { justify-content: space-between; gap: 8px; }
  .track-card-meta strong { font-size: 11px; }
  .playlist-grid { grid-template-columns: 1fr; }
  .creator-grid { grid-template-columns: 1fr; }
  .batch-fields { grid-template-columns: 1fr; }
}

/* SOUNDORA catalog, content labels and settings */
.explicit-badge {
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  margin-left: 5px;
  padding: 0 4px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  vertical-align: 2px;
}
.more-button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--faint); cursor: pointer; font-weight: 900; letter-spacing: -2px; }
.more-button:hover { color: var(--text); background: var(--panel-hover); }
.album-link { border: 0; background: transparent; color: var(--muted); text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.album-link:hover { color: var(--accent-2); }
.catalog-artist-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.catalog-artist-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: linear-gradient(145deg, var(--panel), color-mix(in srgb, var(--panel-solid) 86%, transparent));
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease;
}
.catalog-artist-card:hover { transform: translateY(-4px); border-color: rgba(156,255,87,.25); }
.catalog-artist-image {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--cover-a, var(--violet)), var(--cover-b, var(--accent-2)));
}
.catalog-artist-image img { width: 100%; height: 100%; object-fit: cover; }
.catalog-artist-image > span { font-size: 40px; font-weight: 950; color: rgba(255,255,255,.8); }
.catalog-artist-copy { padding: 13px 5px 5px; }
.catalog-artist-copy h3 { margin: 0 0 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.catalog-artist-copy span, .catalog-artist-copy p { color: var(--muted); font-size: 9px; }
.catalog-artist-copy p { min-height: 28px; margin: 8px 0 0; line-height: 1.5; }
.catalog-artist-hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  margin-bottom: 22px;
  padding: clamp(28px, 6vw, 70px);
  border: 1px solid var(--line);
  border-radius: 30px;
  display: grid;
  grid-template-columns: minmax(180px, 310px) minmax(0, 1fr);
  align-items: end;
  gap: clamp(25px, 6vw, 65px);
  background: var(--panel-solid);
}
.catalog-artist-backdrop {
  position: absolute;
  inset: -50px;
  background: radial-gradient(circle at 75% 30%, rgba(143,107,255,.45), transparent 35%);
  background-size: cover;
  background-position: center;
  filter: blur(36px) brightness(.34) saturate(1.35);
  opacity: .75;
}
.catalog-artist-portrait, .catalog-artist-info { position: relative; z-index: 1; }
.catalog-artist-portrait {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 25px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--cover-a, var(--violet)), var(--cover-b, var(--accent-2)));
  box-shadow: 0 28px 70px rgba(0,0,0,.38);
}
.catalog-artist-portrait img { width: 100%; height: 100%; object-fit: cover; }
.catalog-artist-portrait > span { color: #fff; font-size: clamp(48px, 9vw, 100px); font-weight: 950; }
.catalog-artist-info h1 { margin: 12px 0 22px; font-size: clamp(42px, 8vw, 96px); line-height: .9; letter-spacing: -.05em; }
.artist-hero-actions { margin-top: 25px; display: flex; flex-wrap: wrap; gap: 9px; }
.artist-tabs {
  position: sticky;
  top: 72px;
  z-index: 12;
  margin: 0 0 28px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  backdrop-filter: blur(16px);
  display: flex;
  gap: 4px;
}
.artist-tabs button {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
}
.artist-tabs button.active { background: var(--panel-hover); color: var(--accent); }
.album-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.album-card { min-width: 0; cursor: pointer; display: grid; gap: 7px; }
.album-cover {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--cover-a, var(--violet)), var(--cover-b, var(--accent-2)));
  display: grid;
  place-items: center;
}
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-cover span { color: #fff; font-size: 42px; }
.album-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.album-card > span { color: var(--muted); font-size: 9px; }
.artist-about { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; }
.artist-about p, .artist-about-preview p { color: var(--muted); line-height: 1.8; }
.artist-about dl { margin: 0; display: grid; gap: 13px; }
.artist-about dt { color: var(--faint); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.artist-about dd { margin: 5px 0 0; font-size: 12px; }
.artist-about a { color: var(--accent-2); }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.settings-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--panel);
}
.settings-card h2 { margin: 0 0 10px; font-size: 17px; }
.settings-card p { color: var(--muted); font-size: 11px; line-height: 1.65; }
.settings-card > label:not(.setting-toggle) { margin-top: 15px; display: grid; gap: 7px; color: var(--muted); font-size: 10px; }
.settings-card select { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--input); color: var(--text); }
.setting-toggle { min-height: 62px; padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.setting-toggle span { display: grid; gap: 4px; }
.setting-toggle strong { font-size: 12px; }
.setting-toggle small { color: var(--muted); font-size: 9px; }
.setting-toggle input { width: 22px; height: 22px; accent-color: var(--accent); }
.network-state { display: block; margin-top: 16px; color: var(--accent-2); font-size: 10px; }
.search-suggestions { margin: -8px 0 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.search-suggestions > span { color: var(--faint); font-size: 9px; }
.search-suggestions button { min-height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); color: var(--text); cursor: pointer; }
.search-section { margin-top: 38px; }
.search-mixed-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.search-result-card { min-height: 110px; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--text); text-align: left; display: grid; align-content: center; gap: 7px; }
.search-result-card b { color: var(--accent-2); font-size: 8px; text-transform: uppercase; }
.search-result-card span { color: var(--muted); font-size: 9px; }
.admin-artist-tools { margin: 20px 0 30px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.admin-artist-tools > div { margin-right: auto; }
.admin-artist-tools h2 { margin: 0; font-size: 14px; }
.admin-artist-tools p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.admin-artist-tools select { min-height: 40px; max-width: 210px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--input); color: var(--text); }
.explicit-admin-button { min-width: 34px; min-height: 34px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.explicit-admin-button.active { border-color: var(--danger); color: var(--danger); }
.admin-audit-grid { margin-top: 35px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.audit-row { padding: 14px; border-bottom: 1px solid var(--line); background: var(--panel); }
.audit-row:first-of-type { border-radius: 14px 14px 0 0; }
.audit-row:last-of-type { border-radius: 0 0 14px 14px; border-bottom: 0; }
.audit-row strong, .audit-row span { display: block; }
.audit-row strong { font-size: 11px; }
.audit-row span { margin-top: 5px; color: var(--accent-2); font-size: 8px; }
.audit-row p { margin: 7px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }

@media (max-width: 1100px) {
  .catalog-artist-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .album-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .sidebar {
    inset: auto 0 0;
    width: 100%;
    height: calc(64px + env(safe-area-inset-bottom));
    padding: 5px 6px env(safe-area-inset-bottom);
    border: 0;
    border-top: 1px solid var(--line-strong);
    transform: none;
    box-shadow: 0 -12px 35px rgba(0,0,0,.28);
    overflow: hidden;
  }
  .sidebar .brand, .sidebar-group, .upload-sidebar, .sidebar-foot { display: none; }
  .main-nav { height: 100%; display: flex; align-items: stretch; overflow-x: auto; gap: 2px; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav .nav-item {
    flex: 0 0 66px;
    min-height: 54px;
    padding: 4px 3px;
    border-radius: 10px;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    font-size: 8px;
    text-align: center;
  }
  .main-nav .nav-item svg { width: 20px; height: 20px; }
  .main-nav .nav-item.active::before { display: none; }
  .mobile-menu { display: none; }
  .player { bottom: calc(64px + env(safe-area-inset-bottom)); }
  .queue-panel, .similar-panel { bottom: calc(var(--player-height) + 72px + env(safe-area-inset-bottom)); }
  .catalog-artist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .catalog-artist-hero { min-height: 0; padding: 22px; grid-template-columns: 96px minmax(0, 1fr); align-items: center; border-radius: 22px; }
  .catalog-artist-info h1 { margin: 8px 0 12px; font-size: clamp(27px, 10vw, 48px); }
  .catalog-artist-info .creator-counts { grid-column: 1 / -1; }
  .artist-hero-actions { grid-column: 1 / -1; }
  .artist-hero-actions .button { min-height: 44px; }
  .artist-tabs { top: 68px; }
  .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .artist-about, .settings-grid { grid-template-columns: 1fr; }
  .admin-audit-grid { grid-template-columns: 1fr; }
  .search-mixed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .icon-button, .icon-button.tiny { min-width: 44px; min-height: 44px; }
  .track-actions button, .track-actions a { min-width: 44px; min-height: 44px; }
}
@media (max-width: 360px) {
  .catalog-artist-grid { grid-template-columns: 1fr 1fr; }
  .catalog-artist-copy p { display: none; }
  .search-mixed-grid { grid-template-columns: 1fr; }
}

/* ── Notification badge ───────────────────────────────── */
.live-chip {
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
}
.live-chip:hover { border-color: rgba(156,255,87,.24); color: var(--text); }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245,158,11,.65);
}
.live-dot.connected {
  background: var(--accent);
  box-shadow: 0 0 9px rgba(156,255,87,.7);
  animation: live-pulse 1.7s ease-in-out infinite;
}
.live-dot.offline { background: #ff5a6f; box-shadow: 0 0 8px rgba(255,90,111,.55); }
.live-count { color: var(--faint); font-variant-numeric: tabular-nums; }
@keyframes live-pulse { 50% { transform: scale(1.35); opacity: .65; } }

.live-panel {
  position: fixed;
  z-index: 205;
  top: 64px;
  right: 16px;
  width: min(380px, calc(100vw - 30px));
  max-height: min(540px, calc(100vh - 150px));
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  background: color-mix(in srgb, var(--panel-solid) 94%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
}
.live-panel-head {
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.live-panel-head strong, .live-panel-head span { display: block; }
.live-panel-head strong { font-size: 12px; letter-spacing: .04em; }
.live-panel-head span { margin-top: 3px; color: var(--faint); font-size: 9px; }
.live-list { min-height: 110px; overflow-y: auto; padding: 6px; }
.live-event {
  padding: 10px;
  border-radius: 11px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  animation: live-event-in .24s ease;
}
.live-event:hover { background: var(--panel-hover); }
.live-event-icon {
  width: 30px; height: 30px; border-radius: 9px;
  background: rgba(98,232,213,.09);
  color: var(--accent-2);
  display: grid; place-items: center;
  font-size: 14px;
}
.live-event-text { min-width: 0; font-size: 10px; line-height: 1.45; }
.live-event-text span { display: block; margin-top: 3px; color: var(--faint); font-size: 8px; }
.live-empty { padding: 30px 15px; color: var(--faint); text-align: center; font-size: 10px; }
@keyframes live-event-in { from { opacity: 0; transform: translateY(-5px); } }

#notifButton { position: relative; }
.notif-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: #ff4d6d; color: #fff;
  border-radius: 8px; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; pointer-events: none;
  line-height: 1;
}

/* ── Notifications panel ──────────────────────────────── */
.notif-panel {
  position: fixed; top: 58px; right: 16px;
  width: 340px; max-height: 480px;
  background: var(--panel-solid);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  z-index: 200; overflow: hidden;
  display: flex; flex-direction: column;
}
.notif-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 10px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--faint);
  border-bottom: 1px solid rgba(255,255,255,.06); flex-shrink: 0;
}
.notif-list { overflow-y: auto; flex: 1; }
.notif-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 14px; cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .12s;
}
.notif-item:hover { background: var(--panel-hover); }
.notif-item.unread { background: rgba(156,255,87,.04); }
.notif-item.unread:hover { background: rgba(156,255,87,.08); }
.notif-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0; margin-top: 5px;
}
.notif-dot.read { background: transparent; }
.notif-text { flex: 1; font-size: 13px; line-height: 1.4; }
.notif-text strong { font-weight: 600; }
.notif-time { font-size: 11px; color: var(--faint); margin-top: 2px; display: block; }
.notif-empty { padding: 32px 16px; text-align: center; color: var(--faint); font-size: 13px; }

/* ── Queue panel ──────────────────────────────────────── */
.queue-panel {
  position: fixed;
  bottom: calc(var(--player-height) + 8px); right: 16px;
  width: 320px; max-height: 440px;
  background: var(--panel-solid);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  z-index: 120; display: flex; flex-direction: column; overflow: hidden;
}
.queue-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 10px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--faint);
  border-bottom: 1px solid rgba(255,255,255,.06); flex-shrink: 0;
}
.queue-list { overflow-y: auto; flex: 1; padding: 4px 0; }
.queue-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 14px; cursor: pointer; transition: background .12s;
}
.queue-row:hover { background: var(--panel-hover); }
.queue-row.current { background: rgba(156,255,87,.07); }
.queue-row.current .queue-title { color: var(--accent); }
.queue-num { width: 20px; text-align: center; font-size: 11px; color: var(--faint); flex-shrink: 0; }
.queue-cover { width: 34px; height: 34px; border-radius: 5px; flex-shrink: 0; font-size: 9px; }
.queue-meta { flex: 1; min-width: 0; }
.queue-title { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.queue-artist { font-size: 11px; color: var(--faint); }
.queue-remove {
  width: 22px; height: 22px; border: 0; border-radius: 50%;
  background: transparent; color: var(--faint);
  display: grid; place-items: center; cursor: pointer; flex-shrink: 0;
  opacity: 0; transition: opacity .12s, background .12s;
}
.queue-row:hover .queue-remove { opacity: 1; }
.queue-remove:hover { background: var(--panel-hover); color: var(--text); }
.queue-remove svg { width: 12px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ── Now Playing overlay ──────────────────────────────── */
.nowplaying-overlay {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
}
.nowplaying-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: blur(60px) brightness(.35) saturate(1.4);
  transform: scale(1.1);
}
.nowplaying-close {
  position: absolute; top: 20px; right: 24px; z-index: 1;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.1); color: var(--text);
  display: grid; place-items: center; cursor: pointer;
  transition: background .15s;
}
.nowplaying-close:hover { background: rgba(255,255,255,.2); }
.nowplaying-close svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.nowplaying-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 20px; padding: 40px 24px; width: 100%; max-width: 420px;
}
.nowplaying-cover {
  width: min(280px, 70vw); height: min(280px, 70vw);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  flex-shrink: 0;
}
.nowplaying-cover img { width: 100%; height: 100%; object-fit: cover; }
.nowplaying-cover span {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; font-weight: 800; color: rgba(255,255,255,.5);
}
.nowplaying-meta { text-align: center; }
.nowplaying-meta strong { display: block; font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.nowplaying-meta span { font-size: 14px; color: rgba(255,255,255,.6); }
.nowplaying-progress {
  display: flex; align-items: center; gap: 10px;
  width: 100%; font-size: 12px; color: rgba(255,255,255,.5);
}
.nowplaying-progress input[type=range] { flex: 1; }
.nowplaying-controls {
  display: flex; align-items: center; gap: 24px;
}
.nowplaying-controls .icon-button { width: 44px; height: 44px; }
.nowplaying-controls .icon-button svg { width: 24px; }
.play-button.large {
  width: 64px; height: 64px; border-radius: 50%;
}
.play-button.large svg { width: 26px; }
.player-cover { cursor: pointer; }
.player-cover:hover { opacity: .85; }

/* ── Visualizer ───────────────────────────────────────── */
.viz-canvas {
  position: absolute;
  bottom: 100%;
  left: 0; right: 0;
  height: 56px;
  pointer-events: none;
  opacity: .7;
}
#vizButton.active { color: var(--accent); }
#similarButton.active { color: var(--accent-2); }

/* ── Similar tracks panel ─────────────────────────────── */
.similar-panel {
  position: fixed;
  bottom: calc(var(--player-height) + 8px);
  right: 16px;
  width: 320px;
  background: var(--panel-solid);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  z-index: 120;
  overflow: hidden;
}
.similar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--faint);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.similar-list { padding: 6px 0; }
.similar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  cursor: pointer;
  transition: background .12s;
}
.similar-row:hover { background: var(--panel-hover); }
.similar-row .cover { width: 36px; height: 36px; border-radius: 6px; flex-shrink: 0; font-size: 10px; }
.similar-row-meta { flex: 1; min-width: 0; }
.similar-row-meta strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.similar-row-meta span { font-size: 11px; color: var(--faint); }

/* ── Artist stats view ────────────────────────────────── */
.stats-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.stats-card {
  background: var(--panel-solid);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}
.stats-card strong { display: block; font-size: 26px; font-weight: 800; color: var(--accent); }
.stats-card span { font-size: 12px; color: var(--faint); }
.stats-table { width: 100%; border-collapse: collapse; }
.stats-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,.07); }
.stats-table td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.04); font-size: 13px; vertical-align: middle; }
.stats-table tr:last-child td { border-bottom: none; }
.stats-table tr:hover td { background: var(--panel-hover); }
.stat-bar-wrap { display: flex; align-items: center; gap: 8px; }
.stat-bar { height: 4px; border-radius: 2px; background: var(--accent); min-width: 2px; transition: width .4s; }
.stat-bar.likes { background: #ff6b8a; }
.stat-bar.downloads { background: var(--accent-2); }
.stat-num { font-size: 12px; color: var(--faint); white-space: nowrap; }
.stats-cover { width: 32px; height: 32px; border-radius: 5px; font-size: 9px; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 720px) {
  .live-label { display: none; }
  .live-chip { width: 38px; padding: 0; justify-content: center; }
  .live-count { display: none; }
  .live-panel { top: 66px; right: 10px; width: calc(100vw - 20px); }
}

/* ── Product expansion: radio, releases, studio, fan clubs ── */
.feature-toolbar {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.feature-toolbar .filter-row { margin: 0; }
.release-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.release-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--panel);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease;
}
.release-card:hover { transform: translateY(-4px); border-color: rgba(156,255,87,.25); }
.release-cover, .release-hero-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--cover-a, var(--violet)), var(--cover-b, var(--accent-2)));
  display: grid;
  place-items: center;
}
.release-cover img, .release-hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.release-cover > span, .release-hero-cover > span {
  color: rgba(255,255,255,.9);
  font-size: clamp(30px, 5vw, 65px);
  font-weight: 900;
}
.release-soon {
  position: absolute;
  top: 10px; right: 10px;
  padding: 5px 8px;
  border-radius: 20px;
  background: #0c0d12;
  color: var(--accent);
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .1em;
}
.release-card-copy { padding: 13px 5px 5px; display: grid; gap: 6px; }
.release-card-copy > span, .release-card-copy small { color: var(--faint); font-size: 9px; }
.release-card-copy > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.release-hero {
  padding: clamp(22px, 5vw, 50px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(143,107,255,.16), rgba(98,232,213,.06));
  display: grid;
  grid-template-columns: minmax(180px, 300px) 1fr;
  align-items: end;
  gap: clamp(24px, 5vw, 60px);
}
.release-hero h1 { margin: 10px 0; font-size: clamp(38px, 7vw, 84px); line-height: .95; }
.release-hero p { max-width: 650px; color: var(--muted); line-height: 1.7; }
.release-date { margin: 18px 0; color: var(--accent-2); font-size: 11px; font-weight: 800; }
.radio-hero {
  min-height: 270px;
  margin-bottom: 25px;
  padding: clamp(28px, 5vw, 58px);
  overflow: hidden;
  border: 1px solid rgba(98,232,213,.15);
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 50%, rgba(156,255,87,.12), transparent 25%),
    radial-gradient(circle at 78% 15%, rgba(143,107,255,.22), transparent 35%),
    var(--panel);
  display: flex;
  align-items: center;
  gap: clamp(25px, 6vw, 80px);
}
.radio-orbit {
  position: relative;
  flex: 0 0 auto;
  width: clamp(130px, 18vw, 210px);
  aspect-ratio: 1;
  border: 1px solid rgba(156,255,87,.28);
  border-radius: 50%;
  box-shadow: 0 0 50px rgba(98,232,213,.12), inset 0 0 45px rgba(143,107,255,.16);
  display: grid;
  place-items: center;
  animation: radio-float 4s ease-in-out infinite;
}
.radio-orbit::before, .radio-orbit::after {
  content: "";
  position: absolute;
  width: 70%; height: 70%;
  border: 1px dashed rgba(255,255,255,.15);
  border-radius: 50%;
  animation: spin 12s linear infinite;
}
.radio-orbit::after { width: 115%; height: 115%; animation-direction: reverse; }
.radio-orbit span { color: var(--accent); font-size: 58px; filter: drop-shadow(0 0 14px rgba(156,255,87,.45)); }
.radio-hero p { color: var(--accent-2); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .15em; }
.radio-hero h2 { margin: 8px 0 25px; font-size: clamp(28px, 4vw, 52px); }
@keyframes radio-float { 50% { transform: translateY(-8px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.fan-club-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: clamp(25px, 5vw, 45px);
  border: 1px solid rgba(143,107,255,.23);
  border-radius: 25px;
  background: linear-gradient(120deg, rgba(143,107,255,.19), rgba(255,107,157,.08), var(--panel));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.fan-club-card h2 { margin: 8px 0; font-size: clamp(24px, 4vw, 42px); }
.fan-club-card p { max-width: 650px; color: var(--muted); }
.fan-club-card > div > span { color: var(--accent-2); font-size: 10px; }
.fan-club-glow {
  position: absolute;
  right: -80px; top: -100px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: var(--violet);
  opacity: .12;
  filter: blur(55px);
}
.fan-club-actions { position: relative; display: flex; flex-wrap: wrap; gap: 9px; }
.fan-posts { margin-top: 14px; display: grid; gap: 12px; }
.fan-lock, .fan-post {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}
.fan-lock { text-align: center; }
.fan-lock strong, .fan-lock span { display: block; }
.fan-lock span { margin-top: 7px; color: var(--muted); font-size: 11px; }
.fan-post > span, .fan-only-badge { color: var(--violet); font-size: 9px; font-weight: 800; }
.fan-post p { line-height: 1.7; }
.fan-post img, .fan-post video { width: min(100%, 720px); max-height: 430px; object-fit: cover; border-radius: 14px; }
.fan-only-badge { margin-bottom: 10px; }
.studio-summary { grid-template-columns: repeat(5, 1fr); }
.studio-grid, .recap-lists {
  margin: 18px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.insight-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--panel);
}
.insight-card h3 { margin: 0 0 20px; font-size: 13px; }
.insight-card > p { color: var(--muted); font-size: 11px; }
.geo-list { display: grid; gap: 13px; }
.geo-list > div { display: grid; grid-template-columns: 55px 1fr 35px; align-items: center; gap: 10px; font-size: 10px; }
.geo-list i { height: 5px; border-radius: 5px; background: linear-gradient(90deg, var(--violet) var(--bar), var(--line) var(--bar)); }
.growth-chart { min-height: 160px; display: flex; align-items: end; gap: 5px; }
.growth-chart i { flex: 1; height: var(--growth); max-height: 140px; border-radius: 4px 4px 0 0; background: var(--accent); }
.growth-chart i.negative { background: var(--danger); }
.studio-track-list { display: grid; gap: 9px; }
.studio-track-row { display: grid; grid-template-columns: minmax(130px, 1fr) 80px 100px 130px; align-items: center; gap: 12px; font-size: 10px; }
.studio-track-row > span { color: var(--muted); }
.studio-track-row > i { height: 5px; border-radius: 5px; background: linear-gradient(90deg, var(--accent-2) var(--retention), var(--line) var(--retention)); }
.recap-card {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: clamp(28px, 7vw, 75px);
  border-radius: 30px;
  background:
    radial-gradient(circle at 85% 20%, rgba(156,255,87,.28), transparent 23%),
    radial-gradient(circle at 15% 90%, rgba(98,232,213,.25), transparent 28%),
    linear-gradient(135deg, #171020, #482490 55%, #087f79);
  color: #fff;
  box-shadow: 0 35px 90px rgba(48,25,105,.25);
}
.recap-card > p { color: #9cff57; font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.recap-card h2 { margin: 15px 0 40px; font-size: clamp(35px, 8vw, 80px); }
.recap-main-number { font-size: clamp(75px, 17vw, 180px); font-weight: 950; line-height: .8; }
.recap-main-number span { display: block; margin: 20px 0 40px; font-size: 17px; letter-spacing: .12em; text-transform: uppercase; }
.recap-stats { display: flex; flex-wrap: wrap; gap: 35px; }
.recap-stats strong, .recap-stats span { display: block; }
.recap-stats strong { font-size: 25px; }
.recap-stats span { color: rgba(255,255,255,.65); font-size: 9px; }
.recap-highlight { margin-top: 40px; }
.recap-highlight span, .recap-highlight strong { display: block; }
.recap-highlight span { color: #9cff57; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.recap-highlight strong { margin-top: 8px; font-size: clamp(22px, 4vw, 38px); }
.recap-tags { margin-top: 25px; display: flex; flex-wrap: wrap; gap: 8px; }
.recap-tags span { padding: 7px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 20px; font-size: 9px; }
.recap-actions { margin: 18px 0 30px; display: flex; gap: 10px; }
.rank-row { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 25px 1fr auto; gap: 10px; align-items: center; }
.rank-row b { color: var(--accent); }
.rank-row span { font-size: 11px; }
.rank-row small { color: var(--faint); }
.feature-modal { width: min(820px, 100%); }
.feature-tabs { margin-bottom: 20px; }
.lyrics-layout { display: grid; grid-template-columns: 1.4fr .8fr; gap: 25px; }
.lyrics-text {
  min-height: 280px;
  padding: 22px;
  border-radius: 16px;
  background: var(--input);
  font-size: 14px;
  line-height: 2;
  white-space: normal;
}
.credits-list { padding: 20px; border: 1px solid var(--line); border-radius: 16px; }
.credits-list h3 { margin-top: 0; font-size: 12px; }
.credit-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.credit-row span, .credit-row strong { display: block; }
.credit-row span { color: var(--faint); font-size: 8px; text-transform: uppercase; }
.credit-row strong { margin-top: 4px; font-size: 11px; }
.feature-empty { color: var(--muted); }
.editorial-form small { color: var(--faint); font-size: 9px; }
.comment-composer {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
}
.timestamp-chip {
  padding: 0 13px;
  border: 1px solid rgba(156,255,87,.25);
  border-radius: 11px;
  background: rgba(156,255,87,.07);
  color: var(--accent);
  cursor: pointer;
}
.comment-composer input { min-width: 0; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--input); color: var(--text); }
.timeline-comments { display: grid; gap: 7px; }
.timeline-comment {
  padding: 12px;
  border-radius: 13px;
  background: var(--panel);
  display: grid;
  grid-template-columns: 55px 1fr auto;
  gap: 12px;
}
.timeline-comment > button:first-child { border: 0; background: transparent; color: var(--accent-2); cursor: pointer; font-weight: 800; }
.timeline-comment strong { font-size: 10px; }
.timeline-comment p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.comment-delete { border: 0; background: transparent; color: var(--faint); cursor: pointer; }

@media (max-width: 1100px) {
  .release-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .studio-summary { grid-template-columns: repeat(3, 1fr); }
  .studio-track-row { grid-template-columns: minmax(120px, 1fr) 70px 90px; }
  .studio-track-row > i { display: none; }
}
@media (max-width: 720px) {
  .release-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .release-hero { grid-template-columns: 105px 1fr; align-items: center; }
  .release-hero h1 { font-size: 31px; }
  .release-hero p { grid-column: 1 / -1; }
  .radio-hero { min-height: 210px; padding: 25px; }
  .radio-orbit { width: 95px; }
  .radio-orbit span { font-size: 36px; }
  .fan-club-card { align-items: flex-start; flex-direction: column; }
  .studio-summary { grid-template-columns: repeat(2, 1fr); }
  .studio-grid, .recap-lists, .lyrics-layout { grid-template-columns: 1fr; }
  .studio-track-row { grid-template-columns: 1fr auto; }
  .studio-track-row > span:nth-of-type(2) { display: none; }
  .recap-card { min-height: 500px; }
  .comment-composer { grid-template-columns: auto 1fr; }
  .comment-composer .button { grid-column: 1 / -1; }
}
@media (max-width: 430px) {
  body, .main, .content, .topbar { width: 100%; min-width: 0; }
  .topbar { overflow: hidden; }
  .search-box { min-width: 0; }
  .top-actions { flex: 0 0 auto; gap: 5px; }
  #liveButton { width: 34px; flex-basis: 34px; }
  #loginButton { display: none; }
  .hero { width: 100%; overflow: hidden; }
  .hero-copy { width: 100%; min-width: 0; }
  .hero h1 { max-width: 100%; overflow-wrap: anywhere; }
  .hero-text { width: 100%; max-width: 100%; overflow-wrap: anywhere; }
  .hero-stats { flex-wrap: wrap; }
  .hero-stats div { min-width: 52px; }
  .hero-stats span { font-size: 7px; overflow-wrap: anywhere; }
  .section-head { min-width: 0; }
  .section-head .text-button { max-width: 95px; overflow: hidden; white-space: nowrap; }
  .release-grid { grid-template-columns: 1fr 1fr; }
  .release-card-copy small { display: none; }
  .feature-toolbar { align-items: stretch; flex-direction: column; }
  .radio-hero { align-items: flex-start; flex-direction: column; }
  .radio-orbit { width: 75px; }
  .studio-summary { grid-template-columns: 1fr 1fr; }
  .recap-actions { flex-direction: column; }
}
