:root {
  --bg: #110305;
  --bg2: #220609;
  --card: rgba(255, 255, 255, 0.075);
  --card2: rgba(255, 255, 255, 0.12);
  --card3: rgba(255, 255, 255, 0.18);
  --border: rgba(255, 255, 255, 0.14);
  --text: #fff7f7;
  --muted: #f0a8ad;
  --soft: #ffdadd;
  --primary: #ff174d;
  --primary2: #ff4d00;
  --accent: #ffb703;
  --danger: #ff2b2b;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  --sidebar: 286px;
  --player: 94px;
  --radius: 28px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="midnight"] {
  --bg: #070a18;
  --bg2: #11162a;
  --muted: #a8b1d8;
  --soft: #e0e7ff;
  --primary: #4f46e5;
  --primary2: #06b6d4;
  --accent: #22c55e;
}

html[data-theme="neon"] {
  --bg: #16041f;
  --bg2: #250832;
  --muted: #d8b4fe;
  --soft: #f5d0fe;
  --primary: #d946ef;
  --primary2: #8b5cf6;
  --accent: #22d3ee;
}

html[data-theme="ember"] {
  --bg: #140905;
  --bg2: #2b1208;
  --muted: #ffd0a1;
  --soft: #fff1dc;
  --primary: #ff7a00;
  --primary2: #ff2e00;
  --accent: #ffd166;
}

html[data-theme="light"] {
  --bg: #fff5f5;
  --bg2: #ffe4e6;
  --card: rgba(255, 255, 255, 0.82);
  --card2: #ffffff;
  --card3: #fff1f2;
  --border: rgba(15, 23, 42, 0.12);
  --text: #16080a;
  --muted: #7f1d1d;
  --soft: #3f1416;
  --primary: #e11d48;
  --primary2: #fb7185;
  --accent: #f59e0b;
  --shadow: 0 26px 70px rgba(120, 20, 30, 0.14);
}

html[data-theme="mono"] {
  --bg: #050505;
  --bg2: #121212;
  --card: rgba(255, 255, 255, 0.08);
  --card2: rgba(255, 255, 255, 0.14);
  --card3: rgba(255, 255, 255, 0.2);
  --border: rgba(255, 255, 255, 0.18);
  --text: #ffffff;
  --muted: #bdbdbd;
  --soft: #f2f2f2;
  --primary: #ffffff;
  --primary2: #8f8f8f;
  --accent: #d9d9d9;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.62);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

body {
  min-height: 100%;
  margin: 0;
  padding-bottom: calc(var(--player) + env(safe-area-inset-bottom) + 26px);
  overflow-x: hidden;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--primary) 34%, transparent), transparent 30%),
    radial-gradient(circle at 88% 6%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 26%),
    linear-gradient(135deg, var(--bg), var(--bg2));
}

body.is-playing .aurora-bg {
  animation-duration: 7s;
  filter: blur(5px) saturate(1.25);
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

a {
  color: var(--primary2);
  text-decoration: none;
  font-weight: 900;
}

input,
select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  outline: none;
  color: var(--text);
  background: color-mix(in srgb, var(--card2) 76%, transparent);
  transition: 0.22s ease;
}

input:focus,
select:focus {
  border-color: color-mix(in srgb, var(--primary) 70%, white);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 18%, transparent);
}

input::placeholder {
  color: color-mix(in srgb, var(--muted) 75%, transparent);
}

.bg-canvas,
.aurora-bg,
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg-canvas {
  z-index: -4;
  opacity: 0.55;
}

.aurora-bg {
  z-index: -5;
  background:
    radial-gradient(circle at 22% 18%, color-mix(in srgb, var(--primary) 24%, transparent), transparent 24%),
    radial-gradient(circle at 82% 20%, color-mix(in srgb, var(--primary2) 18%, transparent), transparent 28%),
    radial-gradient(circle at 50% 94%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 35%);
  filter: blur(8px);
  animation: auroraMove 12s ease-in-out infinite alternate;
}

@keyframes auroraMove {
  from {
    transform: scale(1) rotate(0deg);
  }

  to {
    transform: scale(1.08) rotate(2deg);
  }
}

.noise {
  z-index: -3;
  opacity: 0.18;
  background-image:
    linear-gradient(color-mix(in srgb, var(--text) 6%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--text) 6%, transparent) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 30% 10%, color-mix(in srgb, var(--primary) 28%, transparent), transparent 34%),
    rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(22px);
}

.auth-gate.hidden {
  display: none;
}

.auth-card {
  width: min(520px, 100%);
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 34px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 16%, transparent), transparent),
    color-mix(in srgb, var(--bg2) 88%, transparent);
  box-shadow: var(--shadow);
  animation: authIn 0.42s cubic-bezier(.2,.9,.2,1) both;
}

@keyframes authIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-brand {
  margin-bottom: 20px;
}

.auth-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 6vw, 54px);
  line-height: 0.95;
}

.auth-hero p,
.auth-note {
  color: var(--muted);
  line-height: 1.55;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0 14px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
}

.auth-tab {
  min-height: 42px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  font-weight: 1000;
}

.auth-tab.active {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
}

.auth-form {
  display: none;
  gap: 12px;
}

.auth-form.active {
  display: grid;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 950;
}

.divider {
  display: grid;
  place-items: center;
  margin: 18px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.google-box {
  display: grid;
  place-items: center;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 80;
  width: var(--sidebar);
  padding: 22px;
  border-right: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg2) 82%, transparent);
  backdrop-filter: blur(24px);
}

.brand,
.brand-button {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 24px;
}

.brand-button,
.auth-brand {
  width: 100%;
  padding: 0;
  cursor: pointer;
  color: var(--text);
  background: transparent;
  text-align: left;
}

.brand strong {
  display: block;
  font-size: 21px;
  letter-spacing: -0.05em;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.brand-mark,
.mini-cover,
.big-cover,
.lyrics-art,
.track-art {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.95), transparent 0 12%, transparent 13%),
    linear-gradient(135deg, var(--primary), var(--primary2), var(--accent));
}

html[data-theme="mono"] .brand-mark,
html[data-theme="mono"] .mini-cover,
html[data-theme="mono"] .big-cover,
html[data-theme="mono"] .lyrics-art,
html[data-theme="mono"] .track-art,
html[data-theme="mono"] .pill,
html[data-theme="mono"] .btn.primary,
html[data-theme="mono"] .play-btn,
html[data-theme="mono"] .tab-btn.active,
html[data-theme="mono"] .auth-tab.active {
  color: #050505;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 19px;
  box-shadow:
    0 18px 50px color-mix(in srgb, var(--primary) 34%, transparent),
    inset 0 0 20px rgba(255,255,255,0.22);
}

.brand-mark.big {
  width: 96px;
  height: 96px;
  border-radius: 32px;
}

.brand-mark span {
  color: inherit;
  font-size: 24px;
  font-weight: 1000;
  letter-spacing: -0.12em;
}

.nav {
  display: grid;
  gap: 9px;
}

.nav-btn {
  min-height: 48px;
  padding: 0 15px;
  border-radius: 17px;
  cursor: pointer;
  color: var(--soft);
  background: transparent;
  text-align: left;
  font-weight: 950;
  transition: 0.2s ease;
}

.nav-btn:hover {
  transform: translateX(4px);
  background: var(--card);
}

.nav-btn.active {
  color: white;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 42%, transparent), color-mix(in srgb, var(--primary2) 12%, transparent)),
    var(--card2);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--primary) 18%, transparent);
}

.side-card,
.panel,
.topbar,
.hero,
.mini-player,
.now-card {
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.side-card {
  margin-top: 15px;
  padding: 17px;
  border-radius: 24px;
}

.side-card h3,
.panel h3 {
  margin: 0 0 10px;
  letter-spacing: -0.035em;
}

.side-card p,
.muted {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.glow-card {
  position: relative;
  overflow: hidden;
}

.glow-card::before {
  content: "";
  position: absolute;
  inset: -80px auto auto -80px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 38%, transparent);
  filter: blur(34px);
}

.main {
  margin-left: var(--sidebar);
  padding: 18px 22px 130px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  margin-bottom: 16px;
  padding: 10px;
  border-radius: 26px;
  background: color-mix(in srgb, var(--bg2) 78%, transparent);
}

.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
  padding-left: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
}

.search input {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.theme-select {
  width: 170px;
}

.btn,
.icon-btn,
.play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--text);
  font-weight: 950;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn:hover,
.icon-btn:hover,
.play-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.btn:active,
.icon-btn:active,
.play-btn:active {
  transform: translateY(0) scale(0.98);
}

.btn.primary,
.play-btn {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  box-shadow: 0 16px 42px color-mix(in srgb, var(--primary) 34%, transparent);
}

.btn.secondary {
  color: var(--text);
  background: var(--card2);
}

.btn.ghost,
.icon-btn {
  color: var(--text);
  background: var(--card2);
}

.btn.full {
  width: 100%;
}

.btn.large {
  min-height: 54px;
  padding: 0 22px;
}

.icon-btn {
  width: 44px;
  padding: 0;
}

.mobile-only {
  display: none;
}

.view {
  display: none;
  animation: pageIn 0.34s cubic-bezier(.2,.9,.2,1) both;
}

.view.active {
  display: block;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.992);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 390px;
  gap: 22px;
  min-height: 430px;
  padding: 36px;
  border-radius: 38px;
  overflow: hidden;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 16px;
  font-size: clamp(42px, 6.6vw, 82px);
  line-height: 0.92;
  letter-spacing: -0.085em;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.07em;
}

.hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-player-card {
  display: grid;
  place-items: center;
  gap: 18px;
  min-height: 360px;
  border: 1px solid var(--border);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 48%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 38%),
    var(--card2);
  overflow: hidden;
}

.tilt-card {
  transform-style: preserve-3d;
  animation: floatCard 5.5s ease-in-out infinite;
}

@keyframes floatCard {
  50% {
    transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
  }
}

.red-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 250px;
  height: 250px;
}

.orb-core {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  box-shadow:
    0 0 46px color-mix(in srgb, var(--primary) 56%, transparent),
    inset 0 0 26px rgba(255,255,255,0.22);
  animation: orbBreath 2.2s ease-in-out infinite;
}

html[data-theme="mono"] .orb-core {
  color: #050505;
}

.orb-core span {
  font-size: 38px;
  font-weight: 1000;
  letter-spacing: -0.12em;
}

.orb-ring {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--primary) 62%, transparent);
  border-radius: 50%;
  animation: ringPulse 2.6s ease-out infinite;
}

.ring-1 {
  inset: 58px;
}

.ring-2 {
  inset: 34px;
  animation-delay: 0.45s;
}

.ring-3 {
  inset: 10px;
  animation-delay: 0.9s;
}

@keyframes orbBreath {
  50% {
    transform: scale(1.06);
    box-shadow:
      0 0 70px color-mix(in srgb, var(--primary) 74%, transparent),
      inset 0 0 34px rgba(255,255,255,0.32);
  }
}

@keyframes ringPulse {
  0% {
    transform: scale(0.75);
    opacity: 0.92;
  }

  100% {
    transform: scale(1.26);
    opacity: 0;
  }
}

.mini-spectrum {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 6px;
  height: 64px;
}

.mini-spectrum i {
  width: 10px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(to top, var(--primary), var(--accent));
  animation: barDance 1.1s ease-in-out infinite;
}

.mini-spectrum i:nth-child(2n) {
  animation-delay: 0.12s;
}

.mini-spectrum i:nth-child(3n) {
  animation-delay: 0.28s;
}

@keyframes barDance {
  0%, 100% {
    height: 18px;
    opacity: 0.62;
  }

  50% {
    height: 62px;
    opacity: 1;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 26px;
}

.stat-card,
.track-item,
.recommend-card,
.feature-list div {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card2) 82%, transparent);
}

.stat-card {
  padding: 20px;
  border-radius: 26px;
  transition: 0.22s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
}

.stat-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 38px;
  letter-spacing: -0.07em;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin: 24px 0 14px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.content-grid {
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  gap: 18px;
}

.panel {
  padding: 20px;
  border-radius: var(--radius);
}

.wide-panel {
  min-width: 0;
}

.panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.form {
  display: grid;
  gap: 13px;
}

.form label {
  display: grid;
  gap: 7px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 950;
}

.track-list {
  display: grid;
  gap: 10px;
}

.track-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  min-height: 80px;
  padding: 10px;
  border-radius: 24px;
  transition: 0.2s ease;
}

.track-item:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary) 48%, var(--border));
  box-shadow: 0 16px 38px color-mix(in srgb, var(--primary) 12%, transparent);
}

.track-item.playing {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 20%, transparent), transparent),
    color-mix(in srgb, var(--card2) 86%, transparent);
}

.track-art,
.mini-cover,
.big-cover,
.lyrics-art {
  display: grid;
  place-items: center;
  overflow: hidden;
  color: white;
  font-weight: 1000;
}

.track-art {
  width: 58px;
  height: 58px;
  border-radius: 18px;
}

.track-art img,
.mini-cover img,
.big-cover img,
.lyrics-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-title,
.track-artist,
.mini-info strong,
.mini-info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-title {
  font-weight: 1000;
}

.track-artist {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.pill,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  font-size: 11px;
  font-weight: 1000;
}

.badge {
  color: var(--text);
  background: var(--card3);
}

.empty {
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: 22px;
  color: var(--muted);
  line-height: 1.6;
}

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.recommend-card {
  min-height: 110px;
  padding: 16px;
  border-radius: 24px;
  cursor: pointer;
  color: var(--text);
  text-align: left;
  transition: 0.2s ease;
}

.recommend-card:hover {
  transform: translateY(-3px) scale(1.01);
}

.recommend-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.recommend-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.wave-lab {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.wave-panel {
  min-height: 330px;
}

.pulse-wave {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 12px;
  height: 220px;
  border-radius: 28px;
  background:
    radial-gradient(circle at center, color-mix(in srgb, var(--primary) 22%, transparent), transparent 48%),
    var(--card2);
}

.pulse-wave span {
  width: 22px;
  height: 50px;
  border-radius: 999px;
  background: linear-gradient(to top, var(--primary), var(--primary2), var(--accent));
  box-shadow: 0 0 24px color-mix(in srgb, var(--primary) 42%, transparent);
  animation: pulseWave 1.2s cubic-bezier(.2,.9,.2,1) infinite;
}

.pulse-wave span:nth-child(2) { animation-delay: .1s; }
.pulse-wave span:nth-child(3) { animation-delay: .2s; }
.pulse-wave span:nth-child(4) { animation-delay: .3s; }
.pulse-wave span:nth-child(5) { animation-delay: .4s; }

@keyframes pulseWave {
  0%, 100% {
    height: 42px;
    transform: translateY(0) scaleX(1);
  }

  50% {
    height: 188px;
    transform: translateY(-8px) scaleX(1.14);
  }
}

.liquid-box {
  position: relative;
  display: grid;
  place-items: center;
  height: 220px;
  overflow: hidden;
  border-radius: 28px;
  background: color-mix(in srgb, var(--bg2) 70%, transparent);
}

.liquid-box strong {
  position: relative;
  z-index: 3;
  font-size: 28px;
  letter-spacing: -0.06em;
}

.liquid {
  position: absolute;
  left: -15%;
  right: -15%;
  bottom: -30%;
  height: 78%;
  border-radius: 45% 47% 43% 46%;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  opacity: 0.78;
  animation: liquidMove 8s linear infinite;
}

.liquid-2 {
  opacity: 0.45;
  animation-duration: 6.4s;
  animation-direction: reverse;
}

.liquid-3 {
  opacity: 0.25;
  animation-duration: 10s;
}

@keyframes liquidMove {
  to {
    transform: rotate(360deg);
  }
}

.wave-canvas {
  width: 100%;
  height: 220px;
  border-radius: 24px;
  background:
    radial-gradient(circle at center, color-mix(in srgb, var(--primary) 14%, transparent), transparent 58%),
    color-mix(in srgb, var(--card2) 75%, transparent);
}

.lyrics-page {
  min-height: 620px;
}

.lyrics-song-head {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.lyrics-art {
  width: 76px;
  height: 76px;
  border-radius: 24px;
}

.lyrics-song-head p {
  margin: 0;
  color: var(--muted);
}

.page-lyrics-list {
  max-height: 500px;
}

.feature-list {
  display: grid;
  gap: 10px;
}

.feature-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 15px;
  border-radius: 20px;
}

.feature-list b {
  font-size: 15px;
}

.feature-list span {
  color: var(--muted);
  text-align: right;
  font-size: 13px;
  font-weight: 850;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 18px;
}

.theme-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.theme-card {
  min-height: 90px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 24px;
  cursor: pointer;
  color: white;
  font-weight: 1000;
  text-align: left;
}

.tc-red { background: linear-gradient(135deg, #110305, #ff174d, #ff4d00); }
.tc-mid { background: linear-gradient(135deg, #070a18, #4f46e5, #06b6d4); }
.tc-neon { background: linear-gradient(135deg, #16041f, #d946ef, #22d3ee); }
.tc-ember { background: linear-gradient(135deg, #140905, #ff7a00, #ffd166); }
.tc-light { color: #16080a; background: linear-gradient(135deg, #fff5f5, #ffffff, #fb7185); }
.tc-mono { color: #050505; background: linear-gradient(135deg, #050505, #ffffff, #8f8f8f); }

.mini-player {
  position: fixed;
  left: calc(var(--sidebar) + 16px);
  right: 16px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 90;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 170px auto minmax(200px, 360px);
  align-items: center;
  gap: 13px;
  min-height: var(--player);
  padding: 12px;
  border-radius: 30px;
  background: color-mix(in srgb, var(--bg2) 82%, transparent);
  cursor: pointer;
  transition: 0.2s ease;
}

.mini-player:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary) 48%, var(--border));
}

.mini-cover {
  width: 60px;
  height: 60px;
  border-radius: 19px;
}

.mini-cover.playing {
  animation: coverPulse 1.8s ease-in-out infinite;
}

@keyframes coverPulse {
  50% {
    transform: scale(1.04) rotate(-1deg);
    box-shadow: 0 0 36px color-mix(in srgb, var(--primary) 45%, transparent);
  }
}

.mini-info {
  min-width: 0;
}

.mini-info strong,
.mini-info span {
  display: block;
}

.mini-info span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.mini-canvas {
  width: 170px;
  height: 54px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--card2) 70%, transparent);
}

.mini-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.play-btn {
  width: 52px;
  height: 52px;
  padding: 0;
}

.mini-progress,
.full-progress {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.mini-progress input,
.full-progress input,
.volume-row input {
  min-height: unset;
  padding: 0;
}

.now-playing {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: none;
  padding: 18px;
}

.now-playing.open {
  display: block;
}

.now-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 10%, color-mix(in srgb, var(--primary) 34%, transparent), transparent 30%),
    rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px);
}

.now-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(0, 1.15fr);
  gap: 22px;
  width: min(1240px, 100%);
  height: min(820px, calc(100vh - 36px));
  margin: 0 auto;
  padding: 22px;
  border-radius: 38px;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 18%, transparent), transparent),
    color-mix(in srgb, var(--bg2) 91%, transparent);
  animation: nowIn 0.28s cubic-bezier(.2,.9,.2,1) both;
}

@keyframes nowIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.close-now {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text);
  background: var(--card2);
  font-size: 26px;
}

.now-left {
  display: grid;
  align-content: center;
  gap: 18px;
  min-width: 0;
}

.vinyl-scene {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 370px;
}

.vinyl {
  position: absolute;
  width: min(330px, 70vw);
  height: min(330px, 70vw);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 8%, #080808 9% 14%, transparent 15%),
    repeating-radial-gradient(circle, #111 0 4px, #191919 5px 8px);
  box-shadow:
    0 26px 80px rgba(0,0,0,0.55),
    inset 0 0 30px rgba(255,255,255,0.08);
  transform: translateX(72px);
}

.vinyl.playing {
  animation: spin 4.8s linear infinite;
}

.vinyl-hole {
  position: absolute;
  inset: 42%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
}

@keyframes spin {
  to {
    transform: translateX(72px) rotate(360deg);
  }
}

.big-cover {
  position: relative;
  z-index: 3;
  width: min(300px, 66vw);
  height: min(300px, 66vw);
  border-radius: 38px;
  font-size: 52px;
  box-shadow:
    0 26px 80px rgba(0,0,0,0.48),
    0 0 70px color-mix(in srgb, var(--primary) 28%, transparent);
}

.big-cover.playing {
  animation: bigCoverFloat 3s ease-in-out infinite;
}

@keyframes bigCoverFloat {
  50% {
    transform: translateY(-8px) rotate(-1deg);
  }
}

.now-meta {
  text-align: center;
}

.now-meta h2 {
  margin: 12px 0 6px;
  font-size: clamp(34px, 4vw, 56px);
}

.now-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 850;
}

.now-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.big-play {
  width: 68px;
  height: 68px;
  font-size: 22px;
}

.volume-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
}

.now-right {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.now-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
}

.tab-btn {
  flex: 1;
  min-height: 42px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  font-weight: 1000;
}

.tab-btn.active {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
}

.now-tab {
  display: none;
  min-height: 0;
  overflow: hidden;
}

.now-tab.active {
  display: block;
}

.lyrics-status {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
}

.lyrics-list {
  height: 100%;
  max-height: 650px;
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 38%),
    color-mix(in srgb, var(--card2) 76%, transparent);
  scroll-behavior: smooth;
}

.lyric-line {
  padding: 10px 4px;
  color: color-mix(in srgb, var(--text) 54%, transparent);
  font-size: clamp(22px, 2.3vw, 36px);
  line-height: 1.18;
  font-weight: 1000;
  letter-spacing: -0.045em;
  transform-origin: left center;
  transition: 0.25s ease;
}

.lyric-line.active {
  color: white;
  text-shadow:
    0 0 28px color-mix(in srgb, var(--primary) 74%, transparent),
    0 0 4px rgba(255,255,255,0.4);
  transform: scale(1.035) translateX(8px);
}

.lyric-line.past {
  color: color-mix(in srgb, var(--muted) 48%, transparent);
}

.queue-list {
  display: grid;
  gap: 10px;
  overflow: auto;
  max-height: 650px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--player) + 28px + env(safe-area-inset-bottom));
  z-index: 700;
  max-width: min(620px, calc(100% - 28px));
  padding: 13px 17px;
  border: 1px solid var(--border);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  color: var(--text);
  background: color-mix(in srgb, var(--bg2) 92%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  font-size: 14px;
  font-weight: 950;
  transition: 0.22s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1180px) {
  .hero,
  .content-grid,
  .now-card {
    grid-template-columns: 1fr;
  }

  .now-card {
    overflow: auto;
  }

  .wave-lab,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mini-player {
    left: 16px;
    grid-template-columns: 58px minmax(0, 1fr) auto;
  }

  .mini-canvas,
  .mini-progress {
    display: none;
  }
}

@media (max-width: 860px) {
  :root {
    --player: 84px;
  }

  .sidebar {
    transform: translateX(-105%);
    transition: transform 0.24s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main {
    margin-left: 0;
    padding: 12px 12px 116px;
  }

  .mobile-only {
    display: inline-flex;
  }

  /* ИСПРАВЛЕНИЕ ТЕМЫ НА ТЕЛЕФОНЕ: теперь меню не скрыто, а аккуратно подгоняется по ширине */
  .theme-select {
    display: block;
    width: 110px;
    min-height: 40px;
    font-size: 13px;
    padding: 0 8px;
  }

  .topbar {
    gap: 8px;
  }

  #shuffleBtn {
    display: none;
  }

  .hero {
    padding: 22px;
    border-radius: 30px;
  }

  .hero-player-card {
    min-height: 270px;
  }

  .stats-grid,
  .wave-lab,
  .profile-grid,
  .recommend-grid,
  .theme-cards {
    grid-template-columns: 1fr;
  }

  .track-item {
    grid-template-columns: 54px minmax(0, 1fr) auto;
  }

  .track-item .delete-track,
  .track-item .fav-track {
    display: none;
  }

  .mini-player {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    grid-template-columns: 52px minmax(0, 1fr) auto;
    min-height: 78px;
    border-radius: 25px;
  }

  .mini-cover {
    width: 52px;
    height: 52px;
    border-radius: 17px;
  }

  .mini-controls .icon-btn {
    display: none;
  }

  .play-btn {
    width: 50px;
    height: 50px;
  }

  .now-playing {
    padding: 8px;
  }

  .now-card {
    height: calc(100vh - 16px);
    border-radius: 28px;
    padding: 16px;
  }

  .vinyl {
    transform: translateX(46px);
  }

  @keyframes spin {
    to {
      transform: translateX(46px) rotate(360deg);
    }
  }

  .lyrics-list {
    max-height: 420px;
  }
}

/* =========================================================
   WaweCloud Auth Window Animations
   ========================================================= */

.auth-gate {
  overflow: hidden;
  animation: authGateFade 0.35s ease both;
}

.auth-gate::before,
.auth-gate::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.55;
}

.auth-gate::before {
  width: 360px;
  height: 360px;
  left: 8%;
  top: 10%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--primary) 54%, transparent),
    transparent 68%
  );
  animation: authOrbMoveA 8s ease-in-out infinite alternate;
}

.auth-gate::after {
  width: 420px;
  height: 420px;
  right: 6%;
  bottom: 8%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--primary2) 42%, transparent),
    transparent 68%
  );
  animation: authOrbMoveB 9s ease-in-out infinite alternate;
}

@keyframes authGateFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes authOrbMoveA {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(44px, 28px, 0) scale(1.12);
  }
}

@keyframes authOrbMoveB {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(-46px, -36px, 0) scale(1.1);
  }
}

.auth-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform-origin: center;
  animation: authCardPop 0.56s cubic-bezier(.16, 1, .3, 1) both;
}

.auth-card > * {
  position: relative;
  z-index: 2;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--primary) 34%, transparent), transparent 34%),
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 30%),
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--primary) 16%, transparent),
      transparent 36%,
      color-mix(in srgb, var(--primary2) 12%, transparent)
    );
  opacity: 0.95;
}

.auth-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 28%,
    rgba(255, 255, 255, 0.13) 42%,
    transparent 56%,
    transparent 100%
  );
  transform: translateX(-140%);
  animation: authCardShine 4.8s ease-in-out infinite;
}

@keyframes authCardPop {
  0% {
    opacity: 0;
    transform: translateY(34px) scale(0.94);
    filter: blur(12px);
  }

  62% {
    opacity: 1;
    transform: translateY(-4px) scale(1.012);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes authCardShine {
  0%,
  46% {
    transform: translateX(-145%);
    opacity: 0;
  }

  58% {
    opacity: 1;
  }

  74%,
  100% {
    transform: translateX(145%);
    opacity: 0;
  }
}

.auth-card.is-shaking {
  animation: authShake 0.42s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes authShake {
  0%,
  100% {
    transform: translateX(0);
  }

  18% {
    transform: translateX(-10px);
  }

  34% {
    transform: translateX(9px);
  }

  50% {
    transform: translateX(-7px);
  }

  66% {
    transform: translateX(5px);
  }

  82% {
    transform: translateX(-2px);
  }
}

.auth-brand {
  animation: authBrandIn 0.5s cubic-bezier(.2, .9, .2, 1) 0.08s both;
}

.auth-hero {
  animation: authHeroIn 0.54s cubic-bezier(.2, .9, .2, 1) 0.14s both;
}

.auth-tabs {
  position: relative;
  animation: authHeroIn 0.54s cubic-bezier(.2, .9, .2, 1) 0.2s both;
}

@keyframes authBrandIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes authHeroIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-tab {
  position: relative;
  overflow: hidden;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.auth-tab:hover {
  transform: translateY(-1px);
  color: var(--text);
}

.auth-tab.active {
  box-shadow:
    0 12px 28px color-mix(in srgb, var(--primary) 26%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  animation: authTabActive 0.28s cubic-bezier(.2, .9, .2, 1) both;
}

@keyframes authTabActive {
  from {
    transform: scale(0.96);
  }

  to {
    transform: scale(1);
  }
}

.auth-form.active {
  animation: authFormSwap 0.36s cubic-bezier(.2, .9, .2, 1) both;
}

@keyframes authFormSwap {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.auth-form.active label {
  animation: authFieldIn 0.42s cubic-bezier(.2, .9, .2, 1) both;
}

.auth-form.active label:nth-of-type(1) {
  animation-delay: 0.04s;
}

.auth-form.active label:nth-of-type(2) {
  animation-delay: 0.09s;
}

.auth-form.active label:nth-of-type(3) {
  animation-delay: 0.14s;
}

.auth-form.active .btn {
  animation: authFieldIn 0.42s cubic-bezier(.2, .9, .2, 1) 0.18s both;
}

@keyframes authFieldIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-form input {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 rgba(0, 0, 0, 0);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    transform 0.22s ease;
}

.auth-form input:hover {
  border-color: color-mix(in srgb, var(--primary) 34%, var(--border));
}

.auth-form input:focus {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--card2) 88%, transparent);
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--primary) 18%, transparent),
    0 16px 36px color-mix(in srgb, var(--primary) 12%, transparent);
}

.auth-form .btn.primary {
  position: relative;
  overflow: hidden;
}

.auth-form .btn.primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 30%,
    rgba(255, 255, 255, 0.24) 46%,
    transparent 62%,
    transparent 100%
  );
  transform: translateX(-130%);
  transition: transform 0.6s ease;
}

.auth-form .btn.primary:hover::before {
  transform: translateX(130%);
}

.auth-form .btn.is-loading {
  cursor: wait;
  opacity: 0.88;
  pointer-events: none;
}

.auth-form .btn.is-loading::after {
  content: "";
  width: 15px;
  height: 15px;
  margin-left: 10px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: authButtonSpin 0.72s linear infinite;
}

@keyframes authButtonSpin {
  to {
    transform: rotate(360deg);
  }
}

.divider {
  position: relative;
  overflow: hidden;
}

.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 34%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--muted) 42%, transparent),
    transparent
  );
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

.google-box {
  animation: authFieldIn 0.42s cubic-bezier(.2, .9, .2, 1) 0.22s both;
}

#authMessage,
[data-auth-message] {
  min-height: 42px;
  margin: 10px 0 0;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--muted);
  background: color-mix(in srgb, var(--card2) 72%, transparent);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
}

#authMessage.is-error,
[data-auth-message].is-error {
  color: #ffd7d7;
  border-color: color-mix(in srgb, var(--danger) 48%, var(--border));
  background: color-mix(in srgb, var(--danger) 14%, transparent);
}

#authMessage.is-success,
[data-auth-message].is-success {
  color: #dcffe8;
  border-color: color-mix(in srgb, #22c55e 46%, var(--border));
  background: color-mix(in srgb, #22c55e 14%, transparent);
}

@media (max-width: 560px) {
  .auth-card {
    padding: 18px;
    border-radius: 28px;
  }

  .auth-hero h1 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .auth-tabs {
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-gate,
  .auth-gate::before,
  .auth-gate::after,
  .auth-card,
  .auth-card::after,
  .auth-brand,
  .auth-hero,
  .auth-tabs,
  .auth-form.active,
  .auth-form.active label,
  .auth-form.active .btn,
  .google-box,
  .auth-tab.active,
  .auth-card.is-shaking {
    animation: none !important;
  }

  .auth-form input:focus {
    transform: none;
  }
}