:root {
  --bg: #050506;
  --fg: #f6f3ed;
  --muted: rgba(246, 243, 237, 0.56);
  --dim: rgba(246, 243, 237, 0.36);
  --line: rgba(255, 255, 255, 0.1);
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.085);
  --gold: #d7b56d;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(215, 181, 109, 0.1), transparent 28%),
    radial-gradient(circle at 90% 8%, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #09090b, #050506 48%, #030303);
  color: var(--fg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

img {
  display: block;
  max-width: 100%;
}

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

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 280px;
  padding: 24px 20px;
  border-right: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(26px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 900;
}

.brand strong,
.profile-chip span {
  display: grid;
  gap: 2px;
}

.brand small,
.profile-chip small,
.track-row small,
.track-card small,
.playlist-card small,
.artist-card small {
  color: var(--dim);
  font-size: 12px;
  font-weight: 500;
}

.sidebar nav {
  display: grid;
  gap: 6px;
  margin-top: 40px;
}

.sidebar nav a,
.profile-chip a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.66);
  transition: 180ms ease;
}

.sidebar nav a:hover,
.profile-chip a:hover {
  background: rgba(255, 255, 255, 0.075);
  color: white;
}

.profile-chip {
  position: absolute;
  right: 20px;
  bottom: 106px;
  left: 20px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.profile-chip img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.page-shell {
  width: min(1500px, 100%);
  min-height: 100vh;
  padding: 28px 34px 150px 314px;
}

.page-shell > * + * {
  margin-top: 24px;
}

.panel,
.hero-panel,
.artist-theme,
.profile-hero {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.panel {
  padding: 22px;
}

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  overflow: hidden;
  min-height: 430px;
  padding: 34px;
}

.hero-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 24% 15%, rgba(215, 181, 109, 0.18), transparent 32%),
    radial-gradient(circle at 82% 10%, rgba(255, 255, 255, 0.12), transparent 24%);
  pointer-events: none;
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
}

.lead {
  max-width: 720px;
  color: rgba(246, 243, 237, 0.64);
  font-size: 18px;
  line-height: 1.65;
}

.muted {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
  transition: 180ms ease;
}

.button:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.13);
}

.button.primary {
  border-color: rgba(255, 255, 255, 0.22);
  background: white;
  color: black;
  box-shadow: 0 14px 34px rgba(255, 255, 255, 0.08);
}

.button.ghost {
  background: transparent;
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.hero-artists,
.artist-grid,
.playlist-grid,
.track-grid {
  display: grid;
  gap: 12px;
}

.hero-artists {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: end;
}

.hero-artists a {
  position: relative;
  overflow: hidden;
  min-height: 160px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.hero-artists img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  opacity: 0.62;
  transition: 500ms ease;
}

.hero-artists a:hover img {
  transform: scale(1.05);
  opacity: 0.78;
}

.hero-artists span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: grid;
  gap: 4px;
  font-weight: 700;
}

.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.artist-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.artist-card,
.playlist-card {
  display: flex;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  transition: 180ms ease;
}

.artist-card:hover,
.playlist-card:hover,
.track-card:hover,
.track-row:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.078);
}

.artist-card img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
}

.artist-card span,
.playlist-card span:not(.playlist-cover) {
  display: grid;
  min-width: 0;
}

.playlist-card {
  display: grid;
}

.playlist-cover {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--gold);
}

.playlist-cover img,
.track-card img,
.art-button img,
.track-cover img,
.playlist-hero img,
.profile-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-list {
  display: grid;
  gap: 8px;
}

.track-row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  overflow: hidden;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  transition: 180ms ease;
}

.art-button {
  position: relative;
  overflow: hidden;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: white;
  cursor: pointer;
}

.art-button span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.36);
  font-size: 10px;
  font-weight: 700;
}

.track-main {
  min-width: 0;
}

.track-main > a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.track-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  font-size: 12px;
}

.add-playlist-form {
  display: flex;
  align-items: center;
  gap: 5px;
}

.add-playlist-form select {
  width: 116px;
  min-height: 32px;
  padding: 0 8px;
  font-size: 12px;
}

.add-playlist-form button {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
}

.favorite-track,
.share-track {
  min-width: 42px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
}

.favorite-track.active {
  color: #ffd5d5;
  border-color: rgba(255, 120, 120, 0.35);
}

.unavailable {
  color: #ffc4c4;
}

.track-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.track-card {
  position: relative;
  overflow: hidden;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  transition: 180ms ease;
}

.track-card .art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.track-card .floating {
  position: absolute;
  right: 10px;
  bottom: 10px;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: white;
  color: black;
  font-weight: 800;
}

.track-card > a {
  display: block;
  overflow: hidden;
  margin-top: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.artist-theme {
  position: relative;
  overflow: hidden;
  padding: 24px;
  --theme-accent: #d7b56d;
  --theme-accent-2: #050505;
  --theme-accent-3: #f4ead3;
}

.theme-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.8;
}

.theme-backdrop span {
  position: absolute;
  width: 42%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--theme-accent), transparent);
  filter: blur(1px);
  animation: drift 20s linear infinite;
}

.theme-backdrop span:first-child {
  left: -8%;
  top: 18%;
}

.theme-backdrop span:last-child {
  right: -12%;
  bottom: 22%;
  animation-direction: reverse;
}

.theme-vamp-luxury {
  background: linear-gradient(110deg, rgba(5, 5, 5, 0.96), rgba(60, 0, 8, 0.48), rgba(5, 5, 5, 0.96));
}

.theme-cosmic-diamond {
  background: linear-gradient(135deg, rgba(31, 15, 78, 0.82), rgba(0, 40, 58, 0.4), rgba(4, 4, 8, 0.96));
}

.theme-emotional-chaos {
  background: linear-gradient(145deg, rgba(89, 6, 15, 0.82), rgba(255, 93, 31, 0.16), rgba(4, 4, 5, 0.96));
}

.theme-liquid-dream {
  background: linear-gradient(120deg, rgba(38, 21, 80, 0.84), rgba(190, 112, 255, 0.22), rgba(8, 11, 35, 0.96));
}

.theme-futuristic-energy {
  background: linear-gradient(120deg, rgba(8, 14, 9, 0.96), rgba(122, 255, 29, 0.16), rgba(2, 3, 2, 0.98));
}

.theme-cyber-rage {
  background: linear-gradient(135deg, rgba(8, 8, 8, 0.98), rgba(139, 0, 13, 0.36), rgba(0, 0, 0, 0.98));
}

.theme-luxury-void {
  background: linear-gradient(140deg, rgba(2, 2, 2, 0.98), rgba(120, 93, 45, 0.22), rgba(5, 5, 5, 0.98));
}

.theme-track::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(105deg, transparent, color-mix(in srgb, var(--theme-accent, #d7b56d) 20%, transparent), transparent);
  transform: translateX(-70%);
  transition: 180ms ease;
}

.theme-track:hover::after {
  opacity: 1;
  animation: sheen 900ms ease forwards;
}

.artist-hero,
.track-detail,
.playlist-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  align-items: end;
}

.artist-banner {
  position: absolute;
  inset: -24px;
  z-index: -1;
  width: calc(100% + 48px);
  height: 380px;
  object-fit: cover;
  opacity: 0.28;
  mask-image: linear-gradient(to bottom, black, transparent);
}

.artist-image,
.track-cover,
.playlist-hero > img {
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

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

.chips span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.filters,
.inline-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 180px 160px auto;
  gap: 10px;
  margin: 18px 0;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.26);
  color: white;
  outline: none;
}

textarea {
  min-height: 110px;
  padding-top: 12px;
  resize: vertical;
}

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

.form-stack label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

.form-stack label.inline,
.inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-stack input[type="checkbox"],
.inline input[type="checkbox"] {
  width: auto;
  min-height: auto;
}

.center-panel {
  width: min(520px, 100%);
  margin: 8vh auto 0;
}

.admin-panel {
  width: min(980px, 100%);
  margin: 4vh auto 0;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.import-source-list {
  display: grid;
  gap: 8px;
}

.import-source-list > div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.import-source-list small {
  color: var(--muted);
}

.import-source-list a {
  width: fit-content;
  color: white;
  font-size: 13px;
}

code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.24);
  color: rgba(255, 255, 255, 0.86);
}

.notice,
.empty-state {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
}

.profile-hero {
  overflow: hidden;
  padding: 0 24px 24px;
}

.profile-banner {
  width: calc(100% + 48px);
  height: 220px;
  margin: 0 -24px;
  opacity: 0.74;
}

.profile-avatar {
  width: 124px;
  height: 124px;
  margin-top: -62px;
  border: 4px solid #050506;
  border-radius: 50%;
  object-fit: cover;
}

.playlist-stack {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.playlist-stack a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.player {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(220px, 0.7fr);
  gap: 18px;
  align-items: center;
  min-height: 78px;
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(24px);
}

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

.player-track img {
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.player-track span {
  display: grid;
  min-width: 0;
}

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

.player-track small {
  color: var(--dim);
}

.player-controls {
  display: flex;
  gap: 8px;
}

.player-controls button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.player-sliders {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 12px;
}

#player-error {
  position: absolute;
  right: 22px;
  bottom: 78px;
  color: #ffd0d0;
  font-size: 12px;
}

.mobile-nav {
  display: none;
}

.icon {
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: -0.18em;
}

.button .icon,
.sidebar nav .icon,
.profile-chip .icon {
  margin-right: 8px;
}

.player-controls .icon,
.favorite-track .icon,
.share-track .icon,
.add-playlist-form .icon,
.play-track .icon {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.player-controls button,
.favorite-track,
.share-track,
.add-playlist-form button {
  display: inline-grid;
  place-items: center;
}

.player-controls button {
  width: 38px;
  min-width: 38px;
  padding: 0;
}

#play-button {
  width: 44px;
  min-width: 44px;
  border-color: rgba(255, 255, 255, 0.2);
  background: white;
  color: black;
}

#play-button .pause-symbol,
#play-button.is-playing .play-symbol {
  display: none;
}

#play-button.is-playing .pause-symbol {
  display: inline-grid;
}

#repeat-button.is-repeat-one {
  box-shadow: inset 0 0 0 1px rgba(215, 181, 109, 0.32);
}

.mobile-nav a {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.theme-backdrop {
  overflow: hidden;
  mix-blend-mode: screen;
}

.theme-backdrop .fx {
  position: absolute;
  display: block;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: 0;
  height: 0;
  background: transparent;
  filter: none;
  animation: none;
  pointer-events: none;
}

.theme-intensity-minimal .theme-backdrop .fx-c,
.theme-intensity-minimal .theme-backdrop .fx-d,
.theme-intensity-minimal .theme-backdrop .fx-e,
.theme-intensity-minimal .theme-backdrop .fx-f,
.theme-intensity-minimal .artist-theme::after {
  display: none;
}

.theme-intensity-minimal .theme-backdrop {
  opacity: 0.38;
}

.theme-intensity-full .theme-backdrop {
  opacity: 1;
}

.theme-intensity-full .artist-theme::before,
.theme-intensity-full .artist-theme::after {
  opacity: 0.72;
}

.reduce-artist-effects .theme-backdrop,
.reduce-artist-effects .artist-theme::before,
.reduce-artist-effects .artist-theme::after,
.reduce-artist-effects .theme-track::before,
.reduce-artist-effects .theme-track::after {
  display: none !important;
}

.reduce-artist-effects .theme-track,
.reduce-artist-effects .theme-track:hover {
  animation: none !important;
  filter: none !important;
}

.artist-theme::before,
.artist-theme::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  z-index: 0;
}

.artist-theme > *:not(.theme-backdrop),
.track-detail > *:not(.theme-backdrop) {
  position: relative;
  z-index: 2;
}

.artist-theme .button {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--theme-accent) 42%, rgba(255, 255, 255, 0.12));
}

.artist-theme .button::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0;
  transform: translateX(-110%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--theme-accent) 28%, transparent), transparent);
  transition: opacity 160ms ease;
}

.artist-theme .button:hover::after {
  opacity: 1;
  animation: sheen 780ms ease forwards;
}

/* Playboi Carti: black/crimson/chrome, fog, moonlight, bat silhouettes, rare lightning. */
.theme-vamp-luxury {
  border-color: rgba(138, 7, 16, 0.42);
  background:
    radial-gradient(circle at 72% 16%, rgba(210, 210, 220, 0.14), transparent 13%),
    radial-gradient(circle at 70% 14%, rgba(255, 255, 255, 0.08), transparent 8%),
    linear-gradient(118deg, #030303, rgba(74, 0, 8, 0.62), #060606 72%),
    repeating-linear-gradient(92deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 11px);
  box-shadow: inset 0 0 0 1px rgba(196, 196, 196, 0.06), 0 28px 90px rgba(0, 0, 0, 0.42);
}

.theme-vamp-luxury::before {
  opacity: 0.32;
  background:
    linear-gradient(96deg, transparent, rgba(210, 210, 220, 0.08), transparent),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 14px);
}

.theme-vamp-luxury::after {
  opacity: 0;
  background: linear-gradient(115deg, transparent 62%, rgba(255, 30, 45, 0.5) 64%, transparent 67%);
  animation: red-lightning 14s steps(1, end) infinite;
}

.theme-vamp-luxury .fx-a,
.theme-vamp-luxury .fx-b,
.theme-vamp-luxury .fx-c {
  width: 42px;
  height: 18px;
  background: rgba(0, 0, 0, 0.78);
  clip-path: polygon(0 48%, 14% 8%, 34% 42%, 50% 14%, 66% 42%, 86% 8%, 100% 48%, 71% 42%, 58% 86%, 50% 50%, 42% 86%, 29% 42%);
  filter: drop-shadow(0 0 8px rgba(138, 7, 16, 0.55));
  animation: bat-flight 24s linear infinite;
}

.theme-vamp-luxury .fx-a { top: 18%; left: -8%; animation-delay: -2s; }
.theme-vamp-luxury .fx-b { top: 34%; left: -12%; transform: scale(.72); animation-delay: -11s; }
.theme-vamp-luxury .fx-c { top: 11%; left: -16%; transform: scale(1.2); animation-delay: -17s; }
.theme-vamp-luxury .fx-d,
.theme-vamp-luxury .fx-e {
  width: 340px;
  height: 78px;
  border-radius: 50%;
  background: rgba(210, 210, 220, 0.08);
  filter: blur(22px);
  animation: fog-wisp 22s ease-in-out infinite;
}
.theme-vamp-luxury .fx-d { left: 8%; bottom: 18%; }
.theme-vamp-luxury .fx-e { right: 4%; top: 44%; animation-delay: -8s; }

.theme-vamp-luxury .button {
  border-radius: 2px 9px 2px 9px;
  border-color: rgba(200, 200, 200, 0.34);
  box-shadow: inset 0 0 0 1px rgba(138, 7, 16, 0.38);
}
.theme-vamp-luxury .button:hover {
  box-shadow: inset 0 0 0 1px rgba(220, 220, 220, 0.24), 0 0 28px rgba(138, 7, 16, 0.34);
}

/* Lil Uzi Vert: crystal glass, stars, constellation lines, galaxy mist. */
.theme-cosmic-diamond {
  border-color: rgba(75, 231, 255, 0.28);
  background:
    radial-gradient(circle at 24% 22%, rgba(139, 92, 255, 0.36), transparent 24%),
    radial-gradient(circle at 78% 16%, rgba(75, 231, 255, 0.2), transparent 23%),
    linear-gradient(135deg, rgba(27, 13, 78, 0.9), rgba(4, 38, 61, 0.66), rgba(4, 4, 10, 0.98));
  box-shadow: inset 0 0 42px rgba(255, 255, 255, 0.04), 0 0 80px rgba(75, 231, 255, 0.08);
}

.theme-cosmic-diamond::before {
  opacity: 0.7;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(75, 231, 255, 0.8) 0 1px, transparent 1.5px),
    linear-gradient(35deg, transparent 48%, rgba(255, 255, 255, 0.12) 49%, transparent 51%);
  background-size: 80px 80px, 132px 132px, 240px 240px;
  animation: star-drift 28s linear infinite;
}

.theme-cosmic-diamond .fx-a,
.theme-cosmic-diamond .fx-b,
.theme-cosmic-diamond .fx-c {
  width: 12px;
  height: 12px;
  background: white;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  filter: drop-shadow(0 0 10px rgba(75, 231, 255, 0.8));
  animation: diamond-float 8s ease-in-out infinite;
}
.theme-cosmic-diamond .fx-a { left: 18%; top: 18%; }
.theme-cosmic-diamond .fx-b { right: 20%; top: 34%; animation-delay: -3s; }
.theme-cosmic-diamond .fx-c { left: 58%; bottom: 16%; animation-delay: -5s; }
.theme-cosmic-diamond .fx-d {
  width: 120px;
  height: 2px;
  left: 18%;
  top: 28%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transform: rotate(22deg);
}
.theme-cosmic-diamond .fx-e {
  width: 180px;
  height: 180px;
  right: 4%;
  bottom: 6%;
  border-radius: 40%;
  background: conic-gradient(from 90deg, rgba(139,92,255,.18), rgba(75,231,255,.12), transparent, rgba(255,255,255,.08));
  filter: blur(18px);
  animation: galaxy-mist 18s linear infinite;
}
.theme-cosmic-diamond .button {
  border-radius: 14px 5px;
  background: linear-gradient(115deg, rgba(255,255,255,.13), rgba(75,231,255,.1), rgba(139,92,255,.12));
}

/* Trippie Redd: smoke, clouds, hearts, ink texture. */
.theme-emotional-chaos {
  border-color: rgba(255, 95, 162, 0.32);
  background:
    radial-gradient(circle at 22% 30%, rgba(166, 8, 22, 0.5), transparent 26%),
    radial-gradient(circle at 76% 14%, rgba(255, 116, 38, 0.2), transparent 28%),
    linear-gradient(145deg, rgba(74, 4, 14, 0.94), rgba(255, 60, 45, 0.18), rgba(5, 4, 5, 0.98));
}

.theme-emotional-chaos::before {
  opacity: 0.28;
  background:
    radial-gradient(ellipse at 20% 70%, rgba(255, 80, 80, 0.36), transparent 28%),
    radial-gradient(ellipse at 65% 20%, rgba(255, 116, 38, 0.22), transparent 32%),
    repeating-linear-gradient(-8deg, rgba(255,255,255,.055) 0 2px, transparent 2px 16px);
  filter: contrast(1.25);
}

.theme-emotional-chaos .fx-a,
.theme-emotional-chaos .fx-b {
  width: 210px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 80, 80, 0.16);
  filter: blur(18px);
  animation: smoke-pulse 9s ease-in-out infinite;
}
.theme-emotional-chaos .fx-a { left: 8%; bottom: 18%; }
.theme-emotional-chaos .fx-b { right: 12%; top: 22%; animation-delay: -4s; }
.theme-emotional-chaos .fx-c,
.theme-emotional-chaos .fx-d {
  width: 28px;
  height: 28px;
  background: rgba(255, 95, 162, 0.38);
  clip-path: polygon(50% 90%, 15% 55%, 8% 30%, 25% 10%, 50% 27%, 75% 10%, 92% 30%, 85% 55%);
  filter: drop-shadow(0 0 10px rgba(255,95,162,.45));
  animation: heart-float 11s ease-in-out infinite;
}
.theme-emotional-chaos .fx-c { left: 15%; top: 20%; }
.theme-emotional-chaos .fx-d { right: 20%; bottom: 20%; animation-delay: -6s; }
.theme-emotional-chaos .button {
  border-radius: 11px 6px 13px 5px;
  border-style: dashed;
  background: radial-gradient(circle at 50% 50%, rgba(166,8,22,.32), rgba(255,255,255,.07));
}

/* Lil Shine: liquid streams, droplets, wet reflections. */
.theme-liquid-dream {
  border-color: rgba(255, 121, 223, 0.32);
  background:
    radial-gradient(circle at 18% 22%, rgba(183, 149, 255, 0.42), transparent 24%),
    radial-gradient(circle at 74% 32%, rgba(52, 127, 255, 0.24), transparent 28%),
    linear-gradient(120deg, rgba(34, 20, 78, 0.96), rgba(255, 121, 223, 0.18), rgba(8, 11, 35, 0.98));
}

.theme-liquid-dream::before {
  opacity: 0.58;
  background:
    linear-gradient(112deg, transparent 20%, rgba(255,121,223,.2) 24%, transparent 34%),
    linear-gradient(78deg, transparent 44%, rgba(52,127,255,.16) 49%, transparent 58%);
  filter: blur(3px);
  animation: liquid-stream 10s ease-in-out infinite;
}

.theme-liquid-dream .fx-a,
.theme-liquid-dream .fx-b,
.theme-liquid-dream .fx-c {
  border-radius: 45% 55% 62% 38%;
  background: linear-gradient(135deg, rgba(183,149,255,.32), rgba(255,121,223,.24), rgba(52,127,255,.26));
  filter: blur(1px) drop-shadow(0 0 18px rgba(255,121,223,.24));
  animation: blob-merge 12s ease-in-out infinite;
}
.theme-liquid-dream .fx-a { width: 150px; height: 110px; left: 7%; top: 18%; }
.theme-liquid-dream .fx-b { width: 92px; height: 78px; right: 20%; top: 24%; animation-delay: -4s; }
.theme-liquid-dream .fx-c { width: 120px; height: 96px; right: 9%; bottom: 14%; animation-delay: -7s; }
.theme-liquid-dream .fx-d,
.theme-liquid-dream .fx-e {
  width: 14px;
  height: 20px;
  border-radius: 50% 50% 60% 60%;
  background: rgba(255,255,255,.38);
  animation: droplet 7s ease-in-out infinite;
}
.theme-liquid-dream .fx-d { left: 42%; top: 16%; }
.theme-liquid-dream .fx-e { right: 32%; top: 10%; animation-delay: -3s; }
.theme-liquid-dream .button {
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(183,149,255,.2), rgba(255,121,223,.12));
}

/* Yeat: energy rings, symbols, distortion, neon particles. */
.theme-futuristic-energy {
  border-color: rgba(173, 255, 59, 0.36);
  background:
    radial-gradient(circle at 72% 18%, rgba(245, 255, 67, 0.14), transparent 22%),
    linear-gradient(120deg, rgba(8, 14, 9, 0.98), rgba(122, 255, 29, 0.16), rgba(2, 3, 2, 0.99)),
    repeating-linear-gradient(90deg, rgba(173,255,59,.05) 0 1px, transparent 1px 18px);
}

.theme-futuristic-energy::before {
  opacity: 0.36;
  background:
    repeating-linear-gradient(90deg, rgba(173,255,59,.08) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(0deg, rgba(245,255,67,.04) 0 1px, transparent 1px 20px);
  animation: energy-distort 6s steps(5, end) infinite;
}

.theme-futuristic-energy .fx-a,
.theme-futuristic-energy .fx-b {
  border: 1px solid rgba(173,255,59,.42);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(173,255,59,.16), inset 0 0 18px rgba(173,255,59,.08);
  animation: energy-ring 9s ease-in-out infinite;
}
.theme-futuristic-energy .fx-a { width: 180px; height: 180px; right: 10%; top: 13%; }
.theme-futuristic-energy .fx-b { width: 92px; height: 92px; left: 14%; bottom: 15%; animation-delay: -4s; }
.theme-futuristic-energy .fx-c,
.theme-futuristic-energy .fx-d,
.theme-futuristic-energy .fx-e {
  color: rgba(245,255,67,.58);
  font: 800 28px/1 monospace;
  animation: symbol-float 8s ease-in-out infinite;
}
.theme-futuristic-energy .fx-c::before { content: "++"; }
.theme-futuristic-energy .fx-d::before { content: "2093"; }
.theme-futuristic-energy .fx-e::before { content: "##"; }
.theme-futuristic-energy .fx-c { left: 22%; top: 20%; }
.theme-futuristic-energy .fx-d { right: 22%; bottom: 18%; animation-delay: -3s; }
.theme-futuristic-energy .fx-e { left: 55%; top: 11%; animation-delay: -5s; }
.theme-futuristic-energy .button {
  border-radius: 4px;
  border-color: rgba(173,255,59,.5);
  box-shadow: inset 0 0 0 1px rgba(173,255,59,.12);
}

/* Ken Carson: digital rain, scanlines, pixel fragments. */
.theme-cyber-rage {
  border-color: rgba(244, 39, 49, 0.44);
  background:
    linear-gradient(135deg, rgba(8, 8, 8, 0.99), rgba(139, 0, 13, 0.38), rgba(0, 0, 0, 0.99)),
    repeating-linear-gradient(0deg, rgba(255,0,20,.08) 0 2px, transparent 2px 12px);
}

.theme-cyber-rage::before {
  opacity: 0.36;
  background:
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(244,39,49,.18) 35px 36px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 1px, transparent 1px 7px);
  animation: scanline-move 8s linear infinite;
}

.theme-cyber-rage .fx-a,
.theme-cyber-rage .fx-b,
.theme-cyber-rage .fx-c,
.theme-cyber-rage .fx-d {
  width: 8px;
  height: 8px;
  background: rgba(244, 39, 49, 0.9);
  box-shadow:
    18px 12px 0 rgba(255,255,255,.46),
    44px -8px 0 rgba(244,39,49,.48),
    72px 20px 0 rgba(244,39,49,.32);
  animation: pixel-break 7s steps(4, end) infinite;
}
.theme-cyber-rage .fx-a { left: 18%; top: 18%; }
.theme-cyber-rage .fx-b { right: 22%; top: 28%; animation-delay: -2s; }
.theme-cyber-rage .fx-c { left: 40%; bottom: 18%; animation-delay: -4s; }
.theme-cyber-rage .button {
  border-radius: 3px;
  border-color: rgba(244,39,49,.48);
  box-shadow: 0 0 0 1px rgba(244,39,49,.15), 0 0 18px rgba(244,39,49,.1);
}

/* Destroy Lonely: dust, marble haze, satin black, gold reflection. */
.theme-luxury-void {
  border-color: rgba(215, 181, 109, 0.34);
  background:
    radial-gradient(ellipse at 28% 20%, rgba(244, 234, 211, 0.08), transparent 28%),
    linear-gradient(140deg, rgba(2, 2, 2, 0.99), rgba(120, 93, 45, 0.24), rgba(5, 5, 5, 0.99)),
    repeating-linear-gradient(115deg, rgba(244,234,211,.045) 0 1px, transparent 1px 18px);
}

.theme-luxury-void::before {
  opacity: 0.36;
  background:
    radial-gradient(circle at 22% 26%, rgba(215,181,109,.14), transparent 26%),
    linear-gradient(115deg, transparent, rgba(244,234,211,.08), transparent 46%);
  filter: blur(2px);
}

.theme-luxury-void .fx-a,
.theme-luxury-void .fx-b,
.theme-luxury-void .fx-c {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(244,234,211,.7);
  box-shadow:
    30px 40px 0 rgba(215,181,109,.3),
    90px 12px 0 rgba(244,234,211,.32),
    142px 70px 0 rgba(215,181,109,.24),
    210px 24px 0 rgba(244,234,211,.22);
  animation: dust-float 14s ease-in-out infinite;
}
.theme-luxury-void .fx-a { left: 10%; top: 18%; }
.theme-luxury-void .fx-b { right: 22%; top: 20%; animation-delay: -6s; }
.theme-luxury-void .fx-c { left: 42%; bottom: 22%; animation-delay: -9s; }
.theme-luxury-void .fx-d {
  width: 56%;
  height: 130%;
  right: -30%;
  top: -10%;
  background: linear-gradient(105deg, transparent, rgba(215,181,109,.14), transparent);
  transform: rotate(12deg);
  animation: gold-reflection 12s ease-in-out infinite;
}
.theme-luxury-void .button {
  border-radius: 2px;
  border-color: rgba(215,181,109,.46);
  background: rgba(255,255,255,.045);
}

.theme-track {
  --track-accent: var(--theme-accent, #d7b56d);
}

.theme-track[data-theme-id="vamp-luxury"] {
  background:
    linear-gradient(110deg, rgba(0,0,0,.64), rgba(60,0,8,.18), rgba(255,255,255,.035)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 10px);
}
.theme-track[data-theme-id="vamp-luxury"]:hover {
  transform: translateY(-1px) rotateX(1.2deg);
  box-shadow: 0 0 28px rgba(138,7,16,.22), inset 0 0 0 1px rgba(138,7,16,.28);
}

.theme-track[data-theme-id="cosmic-diamond"]:hover {
  box-shadow: 0 0 28px rgba(75,231,255,.18), inset 0 0 18px rgba(255,255,255,.06);
}
.theme-track[data-theme-id="cosmic-diamond"]::after {
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.35), rgba(139,92,255,.16), rgba(75,231,255,.22), transparent);
}

.theme-track[data-theme-id="emotional-chaos"] {
  background:
    radial-gradient(circle at 18% 50%, rgba(166,8,22,.18), transparent 28%),
    rgba(255,255,255,.045);
}
.theme-track[data-theme-id="emotional-chaos"]:hover {
  box-shadow: 0 0 24px rgba(255,95,162,.12), inset 0 0 28px rgba(166,8,22,.12);
}

.theme-track[data-theme-id="liquid-dream"]::after {
  background: linear-gradient(95deg, transparent, rgba(183,149,255,.22), rgba(255,121,223,.2), rgba(52,127,255,.18), transparent);
}
.theme-track[data-theme-id="liquid-dream"]:hover {
  border-radius: 14px;
}

.theme-track[data-theme-id="futuristic-energy"]:hover {
  filter: contrast(1.05) saturate(1.08);
  box-shadow: 0 0 26px rgba(173,255,59,.14), inset 0 0 0 1px rgba(173,255,59,.18);
}

.theme-track[data-theme-id="cyber-rage"]:hover {
  animation: tiny-glitch 420ms steps(2, end);
  box-shadow: 0 0 24px rgba(244,39,49,.14), inset 0 0 0 1px rgba(244,39,49,.22);
}

.theme-track[data-theme-id="cyber-rage"]::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.12) 0 1px, transparent 1px 6px);
}
.theme-track[data-theme-id="cyber-rage"]:hover::before {
  opacity: .24;
  animation: scanline-move 700ms linear;
}

.theme-track[data-theme-id="luxury-void"]:hover {
  box-shadow: 0 0 28px rgba(215,181,109,.12), inset 0 0 0 1px rgba(215,181,109,.24);
}
.theme-track[data-theme-id="luxury-void"]::after {
  background: linear-gradient(105deg, transparent, rgba(215,181,109,.24), rgba(244,234,211,.12), transparent);
}

@keyframes drift {
  to {
    transform: translate3d(24px, 14px, 0) rotate(360deg);
  }
}

@keyframes sheen {
  to {
    transform: translateX(70%);
  }
}

@keyframes red-lightning {
  0%, 88%, 92%, 100% { opacity: 0; }
  89%, 91% { opacity: .58; }
}

@keyframes bat-flight {
  0% { transform: translateX(0) translateY(0) scale(.9); opacity: 0; }
  8% { opacity: .75; }
  52% { transform: translateX(58vw) translateY(-16px) scale(1.05); }
  100% { transform: translateX(118vw) translateY(18px) scale(.82); opacity: 0; }
}

@keyframes fog-wisp {
  0%, 100% { transform: translateX(-14px); opacity: .22; }
  50% { transform: translateX(38px); opacity: .5; }
}

@keyframes star-drift {
  to { background-position: 80px 80px, -132px 132px, 240px 0; }
}

@keyframes diamond-float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: .62; }
  50% { transform: translateY(-14px) rotate(40deg); opacity: 1; }
}

@keyframes galaxy-mist {
  to { transform: rotate(360deg); }
}

@keyframes smoke-pulse {
  0%, 100% { transform: scale(.9); opacity: .2; }
  50% { transform: scale(1.25); opacity: .46; }
}

@keyframes heart-float {
  0%, 100% { transform: translateY(0) rotate(-8deg); opacity: .38; }
  50% { transform: translateY(-24px) rotate(9deg); opacity: .75; }
}

@keyframes liquid-stream {
  0%, 100% { transform: translateX(-16px) skewX(-8deg); }
  50% { transform: translateX(18px) skewX(8deg); }
}

@keyframes blob-merge {
  0%, 100% { transform: translate(0, 0) scale(1); border-radius: 45% 55% 62% 38%; }
  50% { transform: translate(18px, -12px) scale(1.08); border-radius: 62% 38% 43% 57%; }
}

@keyframes droplet {
  0%, 100% { transform: translateY(0); opacity: .2; }
  50% { transform: translateY(38px); opacity: .72; }
}

@keyframes energy-distort {
  0%, 100% { transform: skewX(0); }
  50% { transform: skewX(-2deg) translateX(3px); }
}

@keyframes energy-ring {
  0%, 100% { transform: scale(.92); opacity: .32; }
  50% { transform: scale(1.15); opacity: .78; }
}

@keyframes symbol-float {
  0%, 100% { transform: translateY(0); opacity: .38; }
  50% { transform: translateY(-14px); opacity: .82; }
}

@keyframes scanline-move {
  to { background-position: 0 80px, 42px 0; }
}

@keyframes pixel-break {
  0%, 100% { transform: translate(0, 0); opacity: .42; }
  50% { transform: translate(5px, -3px); opacity: .9; }
}

@keyframes dust-float {
  0%, 100% { transform: translateY(0); opacity: .25; }
  50% { transform: translateY(-24px); opacity: .68; }
}

@keyframes gold-reflection {
  0%, 100% { transform: translateX(0) rotate(12deg); opacity: .08; }
  50% { transform: translateX(-54%) rotate(12deg); opacity: .3; }
}

@keyframes tiny-glitch {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(2px, -1px); }
  50% { transform: translate(-2px, 1px); }
  75% { transform: translate(1px, 0); }
}

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

@media (max-width: 1050px) {
  .sidebar {
    display: none;
  }

  .page-shell {
    padding: 18px 16px 178px;
  }

  .grid-two,
  .admin-grid,
  .hero-panel,
  .artist-hero,
  .track-detail,
  .playlist-hero {
    grid-template-columns: 1fr;
  }

  .artist-grid,
  .playlist-grid,
  .track-grid,
  .hero-artists {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .player {
    grid-template-columns: 1fr auto;
    bottom: 58px;
  }

  .player-sliders {
    grid-column: 1 / -1;
  }

  .mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 49;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.86);
    backdrop-filter: blur(20px);
  }

  .mobile-nav a {
    padding: 14px 6px;
    color: var(--muted);
    text-align: center;
    font-size: 12px;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: 42px;
  }

  .hero-panel,
  .panel,
  .artist-theme {
    padding: 16px;
  }

  .track-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .track-meta {
    grid-column: 2;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .artist-grid,
  .playlist-grid,
  .track-grid,
  .hero-artists {
    grid-template-columns: 1fr;
  }

  .player {
    grid-template-columns: 1fr;
  }

  .player-controls,
  .player-sliders {
    width: 100%;
  }
}
