:root,
[data-theme="neon"] {
  --bg: #0a0c12;
  --bg-2: #0f1219;
  --surface: #151a24;
  --surface-2: #1a2030;
  --border: rgba(255, 255, 255, 0.07);
  --text: #eef1f8;
  --text-dim: #8b93a7;
  --text-faint: #5b6375;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --accent-rgb: 124, 92, 255;
  --accent-2-rgb: 34, 211, 238;
  --accent-grad: linear-gradient(135deg, #7c5cff 0%, #22d3ee 100%);
  --on-accent: #ffffff;
  --glow-1: rgba(124, 92, 255, 0.16);
  --glow-2: rgba(34, 211, 238, 0.1);
  --danger: #ff5f6d;
  --chip: rgba(255, 255, 255, 0.05);
  --chip-2: rgba(255, 255, 255, 0.08);
  --hover: rgba(255, 255, 255, 0.08);
  --hover-2: rgba(255, 255, 255, 0.14);
  --chrome-1: #12101c;
  --chrome-2: #0a0c12;
  --chrome-text: #eef1f8;
  --chrome-dim: #8b93a7;
  --chrome-border: rgba(255, 255, 255, 0.08);
  --chrome-chip: rgba(255, 255, 255, 0.08);
  --chrome-hover: rgba(255, 255, 255, 0.14);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-strong: 0 24px 60px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}
[data-theme="mono"] {
  --bg: #0b0b0d;
  --bg-2: #101013;
  --surface: #17171a;
  --surface-2: #1d1d21;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f6;
  --text-dim: #9aa0ad;
  --text-faint: #6b7078;
  --accent: #f2f2f5;
  --accent-2: #a3a8b5;
  --accent-rgb: 242, 242, 245;
  --accent-2-rgb: 163, 168, 181;
  --accent-grad: linear-gradient(135deg, #ffffff 0%, #9aa0ad 100%);
  --on-accent: #0b0b0d;
  --glow-1: rgba(255, 255, 255, 0.07);
  --glow-2: rgba(163, 168, 181, 0.06);
  --danger: #ff5f6d;
  --chip: rgba(255, 255, 255, 0.05);
  --chip-2: rgba(255, 255, 255, 0.09);
  --hover: rgba(255, 255, 255, 0.08);
  --hover-2: rgba(255, 255, 255, 0.15);
  --chrome-1: #141416;
  --chrome-2: #0b0b0d;
  --chrome-text: #f4f4f6;
  --chrome-dim: #9aa0ad;
  --chrome-border: rgba(255, 255, 255, 0.09);
  --chrome-chip: rgba(255, 255, 255, 0.08);
  --chrome-hover: rgba(255, 255, 255, 0.15);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-strong: 0 24px 60px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html,
body,
#root {
  height: 100%;
}
body {
  margin: 0;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    Segoe UI,
    Roboto,
    Helvetica Neue,
    Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
input {
  font: inherit;
}
:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.75);
  outline-offset: 2px;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: var(--hover-2);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: #ffffff38;
  background-clip: content-box;
}
.app {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  background:
    radial-gradient(1100px 700px at 8% -8%, var(--glow-1), transparent 62%),
    radial-gradient(900px 600px at 105% 105%, var(--glow-2), transparent 60%),
    var(--bg);
}
.sidebar {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 14px 16px;
  border-right: 1px solid var(--border);
  background: #0d10188c;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  overflow-y: auto;
  min-height: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 18px;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--accent-grad);
  color: var(--on-accent);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.35);
  flex-shrink: 0;
}
.brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-item:hover {
  background: var(--chip);
  color: var(--text);
}
.nav-item.active {
  background: linear-gradient(
    90deg,
    rgba(var(--accent-rgb), 0.18),
    rgba(var(--accent-2-rgb), 0.07)
  );
  color: #fff;
}
.nav-item.active svg {
  color: var(--accent-2);
}
.nav-label {
  flex: 1;
  text-align: left;
}
.nav-count {
  font-size: 11px;
  color: var(--text-faint);
  background: var(--chip);
  padding: 2px 7px;
  border-radius: 999px;
}
.side-section {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
}
.side-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.side-add {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  background: var(--chip);
  transition:
    background 0.15s,
    color 0.15s;
}
.side-add:hover {
  background: var(--hover);
  color: #fff;
}
.playlist-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.side-empty {
  padding: 6px 12px;
  font-size: 12.5px;
  color: var(--text-faint);
}
.playlist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 13.5px;
  transition:
    background 0.15s,
    color 0.15s;
  text-align: left;
}
.playlist-item:hover {
  background: var(--chip);
  color: var(--text);
}
.playlist-item.active {
  background: rgba(var(--accent-rgb), 0.16);
  color: #fff;
}
.playlist-dot {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(var(--accent-rgb), 0.22);
  color: var(--accent-2);
  flex-shrink: 0;
}
.playlist-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.playlist-count {
  font-size: 11px;
  color: var(--text-faint);
}
.side-footer {
  margin-top: auto;
  padding: 16px 12px 4px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-faint);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.side-stat strong {
  color: var(--text-dim);
  font-weight: 600;
}
.side-note {
  opacity: 0.7;
  line-height: 1.45;
  margin-top: 4px;
}
.main {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 18px 28px 10px;
}
.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--chip);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-faint);
  transition:
    border-color 0.15s,
    background 0.15s;
  min-width: 0;
}
.search:focus-within {
  border-color: rgba(var(--accent-rgb), 0.6);
  background: rgba(var(--accent-rgb), 0.07);
  color: var(--text-dim);
}
.search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  min-width: 0;
}
.search input::placeholder {
  color: var(--text-faint);
}
.search input:disabled {
  cursor: not-allowed;
}
.content {
  flex: 1;
  overflow-y: auto;
  padding: 6px 28px 32px;
  min-height: 0;
}
.view-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 20px;
  flex-wrap: wrap;
}
.view-info h2 {
  margin: 0;
  font-size: 34px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.view-info p {
  margin: 6px 0 0;
  color: var(--text-dim);
  font-size: 13.5px;
}
.view-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 600;
  transition:
    transform 0.12s,
    background 0.15s,
    box-shadow 0.15s,
    opacity 0.15s,
    filter 0.15s;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--accent-grad);
  color: var(--on-accent);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.3);
}
.btn-primary:hover:not(:disabled) {
  box-shadow: 0 10px 28px rgba(var(--accent-rgb), 0.45);
  filter: brightness(1.06);
}
.btn-ghost {
  background: var(--chip);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--border);
}
.btn-ghost.danger {
  color: #ff8089;
  border-color: #ff5f6d40;
}
.btn-ghost.danger:hover:not(:disabled) {
  background: #ff5f6d1a;
}
.btn-danger {
  background: linear-gradient(135deg, #ff5f6d, #ff2e63);
  color: #fff;
  box-shadow: 0 8px 22px #ff5f6d47;
}
.btn-danger:hover:not(:disabled) {
  filter: brightness(1.06);
}
.confirm-text {
  margin: 4px 0 0;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
}
.tracklist {
  display: flex;
  flex-direction: column;
}
.thead,
.row {
  display: grid;
  grid-template-columns: 34px 44px minmax(0, 1.4fr) minmax(0, 1fr) 128px 56px;
  align-items: center;
  gap: 12px;
}
.tracklist.no-album .thead,
.tracklist.no-album .row {
  grid-template-columns: 34px 44px minmax(0, 1.4fr) 128px 56px;
}
.thead {
  padding: 0 12px 10px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
}
.thead .col-dur {
  display: flex;
  justify-content: flex-end;
}
.row {
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
  -webkit-user-select: none;
  user-select: none;
}
.row:hover {
  background: var(--hover);
}
.row.current {
  background: linear-gradient(
    90deg,
    rgba(var(--accent-rgb), 0.16),
    rgba(var(--accent-2-rgb), 0.05)
  );
}
.row.current .row-title {
  color: var(--text);
}
.col-num {
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  color: var(--text-faint);
  text-align: center;
}
.col-cover {
  display: flex;
}
.col-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.row-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-artist,
.col-album {
  font-size: 12.5px;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.col-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.15s;
}
.row:hover .col-actions,
.row.current .col-actions {
  opacity: 1;
}
.col-dur {
  font-size: 12.5px;
  color: var(--text-dim);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.icon-btn {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--text-faint);
  transition:
    color 0.15s,
    background 0.15s;
  flex-shrink: 0;
}
.icon-btn:hover {
  color: #fff;
  background: var(--hover);
}
.icon-btn.active {
  color: #ff5f7a;
}
.icon-btn.danger:hover {
  color: #ff8089;
}
.cover {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fffffff0;
  font-weight: 700;
  letter-spacing: 0.02em;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--hover-2);
  flex-shrink: 0;
}
.cover:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(
    120% 80% at 20% 10%,
    rgba(255, 255, 255, 0.28),
    transparent 55%
  );
}
.cover span {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.cover.placeholder {
  background: var(--chip-2);
  color: var(--text-faint);
}
.eqbars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  width: 16px;
}
.eqbars i {
  width: 3px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent-2);
}
.eqbars.on i {
  animation: eq 1s ease-in-out infinite;
}
.eqbars.on i:nth-child(2) {
  animation-delay: 0.25s;
}
.eqbars.on i:nth-child(3) {
  animation-delay: 0.5s;
}
@keyframes eq {
  0%,
  to {
    height: 4px;
  }
  50% {
    height: 14px;
  }
}
.empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 40px 20px;
}
.empty-art {
  margin-bottom: 18px;
}
.empty-ring {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent-grad);
  box-shadow: 0 20px 60px rgba(var(--accent-rgb), 0.4);
}
.empty h2 {
  font-size: 28px;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.empty p {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}
.empty-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.empty-hint {
  margin-top: 16px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--text-faint);
}
.list-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 70px 20px;
  color: var(--text-faint);
  border: 1px dashed var(--border);
  border-radius: 18px;
  text-align: center;
}
.list-empty p {
  margin: 0;
  font-size: 14px;
}
.playerbar {
  grid-column: 1 / -1;
  grid-row: 2;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  background: #0b0d13db;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  z-index: 30;
}
.pb-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.pb-cover {
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 6px 18px #0006;
  transition: transform 0.15s;
  display: block;
}
.pb-cover:hover:not(:disabled) {
  transform: scale(1.04);
}
.pb-cover:disabled {
  cursor: default;
}
.pb-info {
  min-width: 0;
  cursor: pointer;
}
.pb-title {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pb-artist {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pb-fav {
  flex-shrink: 0;
}
.pb-center {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.pb-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.ctrl {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--text-dim);
  transition:
    color 0.15s,
    background 0.15s;
  flex-shrink: 0;
}
.ctrl:hover {
  color: #fff;
  background: var(--chip-2);
}
.ctrl.active {
  color: var(--accent-2);
}
.ctrl-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #0a0c12;
  transition:
    transform 0.12s,
    box-shadow 0.15s,
    opacity 0.15s;
  box-shadow: 0 6px 18px #00000059;
  flex-shrink: 0;
}
.ctrl-play:hover:not(:disabled) {
  transform: scale(1.06);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.45);
}
.ctrl-play:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pb-seek {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pb-time {
  font-size: 11px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  min-width: 34px;
}
.pb-time:last-child {
  text-align: right;
}
.pb-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
.pb-volume {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pb-volume .range {
  width: 92px;
  flex: none;
}
input[type="range"].range {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent-2) var(--p, 0%),
    rgba(255, 255, 255, 0.13) var(--p, 0%),
    rgba(255, 255, 255, 0.13) 100%
  );
  outline: none;
  cursor: pointer;
  flex: 1;
  min-width: 0;
}
input[type="range"].range:disabled {
  opacity: 0.4;
  cursor: default;
}
input[type="range"].range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.28);
  opacity: 0;
  transition: opacity 0.15s;
}
input[type="range"].range:hover::-webkit-slider-thumb,
input[type="range"].range:active::-webkit-slider-thumb {
  opacity: 1;
}
input[type="range"].range::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.28);
  opacity: 0;
}
input[type="range"].range:hover::-moz-range-thumb {
  opacity: 1;
}
input[type="range"].range::-moz-range-track {
  background: transparent;
}
.panel {
  position: absolute;
  right: 16px;
  bottom: calc(100% + 10px);
  width: 320px;
  max-height: 380px;
  overflow-y: auto;
  background: #161a26f5;
  border: 1px solid var(--hover);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 24px 60px #0000008c;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  animation: pop 0.16s ease-out;
  z-index: 40;
}
@keyframes pop {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  padding: 2px 4px 10px;
}
.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
}
.preset-chip {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-dim);
  background: var(--chip);
  border: 1px solid transparent;
  transition:
    background 0.15s,
    color 0.15s;
}
.preset-chip:hover {
  color: #fff;
  background: var(--border);
}
.preset-chip.active {
  color: #fff;
  background: rgba(var(--accent-rgb), 0.28);
  border-color: rgba(var(--accent-rgb), 0.5);
}
.eq-bands {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 4px 4px;
}
.eq-band {
  display: grid;
  grid-template-columns: 34px 1fr 52px;
  align-items: center;
  gap: 10px;
}
.eq-val {
  font-size: 11px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.eq-val.pos {
  color: var(--accent-2);
}
.eq-val.neg {
  color: #ff8089;
}
.eq-freq {
  font-size: 10.5px;
  color: var(--text-faint);
  text-align: right;
}
.queue-panel {
  width: 340px;
}
.queue-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.queue-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  text-align: left;
  transition: background 0.15s;
}
.queue-item:hover {
  background: var(--chip-2);
}
.queue-item.current {
  background: rgba(var(--accent-rgb), 0.16);
}
.queue-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.queue-title {
  font-size: 12.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.queue-artist {
  font-size: 11px;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.queue-dur {
  font-size: 11px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.panel-empty {
  padding: 18px;
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
}
.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}
.mini-bars i {
  width: 2px;
  height: 4px;
  background: var(--accent-2);
  border-radius: 1px;
}
.mini-bars.on i {
  animation: eq 1s ease-in-out infinite;
}
.mini-bars.on i:nth-child(2) {
  animation-delay: 0.2s;
}
.mini-bars.on i:nth-child(3) {
  animation-delay: 0.4s;
}
.nowplaying {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  overflow-y: auto;
  animation: npin 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes npin {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.np-close {
  position: absolute;
  top: 20px;
  left: 24px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  background: var(--chip-2);
  transition:
    background 0.15s,
    color 0.15s;
}
.np-close:hover {
  color: #fff;
  background: var(--hover-2);
}
.np-body {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 6vw, 90px);
  padding: 60px clamp(24px, 6vw, 80px);
}
.np-art-wrap {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.np-art {
  border-radius: 24px;
  box-shadow:
    0 40px 100px #0000008c,
    0 0 0 1px var(--hover);
}
.np-art-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
}
.np-viz {
  width: 100%;
  height: 64px;
  margin-top: 22px;
  opacity: 0.9;
}
.np-info {
  max-width: 460px;
  flex: 1;
  min-width: 0;
}
.np-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 10px;
}
.np-title {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  margin: 0 0 10px;
  font-weight: 750;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
.np-sub {
  color: var(--text-dim);
  font-size: 15px;
}
.np-sub .dot {
  margin: 0 6px;
  color: var(--text-faint);
}
.np-seek {
  margin-top: 26px;
}
.np-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.np-controls .ctrl {
  width: 40px;
  height: 40px;
}
.np-controls .ctrl-play.big {
  width: 62px;
  height: 62px;
}
.np-upnext {
  margin-top: 30px;
  border-top: 1px solid var(--hover);
  padding-top: 16px;
}
.np-upnext-title {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.np-upnext-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px;
  border-radius: 10px;
  text-align: left;
  transition: background 0.15s;
}
.np-upnext-item:hover {
  background: var(--chip-2);
}
.np-upnext-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.np-upnext-meta span:first-child {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.np-upnext-meta span:last-child {
  font-size: 11.5px;
  color: var(--text-dim);
}
.np-upnext-dur {
  font-size: 11.5px;
  color: var(--text-faint);
}
.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 80;
  background: #05070ca8;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fadein 0.15s ease-out;
}
@keyframes fadein {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.modal {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 30px 80px #0009;
  animation: pop 0.18s ease-out;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.modal-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
}
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.text-input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--chip);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.text-input:focus {
  border-color: rgba(var(--accent-rgb), 0.65);
  background: rgba(var(--accent-rgb), 0.07);
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.pl-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 240px;
  overflow-y: auto;
}
.pl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  text-align: left;
  transition: background 0.15s;
}
.pl-item:hover {
  background: var(--chip-2);
}
.pl-cover {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(var(--accent-rgb), 0.22);
  color: var(--accent-2);
  flex-shrink: 0;
}
.pl-name {
  flex: 1;
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pl-count {
  font-size: 11px;
  color: var(--text-faint);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 110px;
  transform: translate(-50%);
  z-index: 90;
  padding: 10px 18px;
  border-radius: 999px;
  background: #1e222ef2;
  border: 1px solid var(--hover);
  box-shadow: 0 16px 40px #00000080;
  font-size: 13px;
  color: var(--text);
  animation: toastin 0.2s ease-out;
  white-space: nowrap;
}
@keyframes toastin {
  0% {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%);
  }
}
.drop-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  background: #080a0fcc;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  pointer-events: none;
}
.drop-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 40px 56px;
  border-radius: 24px;
  border: 2px dashed rgba(var(--accent-rgb), 0.7);
  background: rgba(var(--accent-rgb), 0.1);
  color: #fff;
}
.drop-card p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
@media (max-width: 900px) {
  .app {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }
  .sidebar {
    grid-row: 1;
    grid-column: 1;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    overflow-y: hidden;
  }
  .brand {
    padding: 0 6px 0 0;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }
  .brand-name {
    font-size: 16px;
  }
  .nav {
    flex-direction: row;
    gap: 2px;
  }
  .nav-item {
    padding: 8px 10px;
    gap: 7px;
    white-space: nowrap;
  }
  .nav-count {
    display: none;
  }
  .side-section {
    margin-top: 0;
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }
  .side-title {
    padding: 0 6px;
  }
  .side-title > span {
    display: none;
  }
  .playlist-list {
    flex-direction: row;
    gap: 4px;
  }
  .side-empty {
    display: none;
  }
  .playlist-item {
    padding: 8px 10px;
    white-space: nowrap;
    gap: 6px;
  }
  .playlist-name {
    max-width: 110px;
  }
  .side-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    padding: 0 2px 0 10px;
    border-top: none;
    flex-shrink: 0;
  }
  .side-footer .side-stat,
  .side-footer .side-note {
    display: none;
  }
  .theme-row {
    padding: 0;
  }
  .theme-label {
    display: none;
  }
  .user-row {
    border-top: none;
    padding: 0;
    margin-top: 0;
  }
  .user-btn {
    width: auto;
    padding: 8px 11px;
  }
  .user-email {
    display: none;
  }
  .main {
    grid-row: 2;
    grid-column: 1;
  }
  .topbar {
    padding: 12px 16px 8px;
  }
  .content {
    padding: 4px 16px 24px;
  }
  .view-info h2 {
    font-size: 27px;
  }
  .view-head {
    padding-bottom: 14px;
  }
  .playerbar {
    grid-row: 3;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "left controls" "seek seek";
    padding: 8px 12px 10px;
    gap: 4px 8px;
  }
  .pb-left {
    grid-area: left;
  }
  .pb-center {
    display: contents;
  }
  .pb-controls {
    grid-area: controls;
  }
  .pb-seek {
    grid-area: seek;
    padding: 0 4px;
  }
  .pb-right,
  .pb-fav {
    display: none;
  }
  .pb-cover .cover {
    width: 44px !important;
    height: 44px !important;
    font-size: 15px !important;
  }
  .panel {
    right: 10px;
    left: 10px;
    width: auto;
  }
  .np-body {
    flex-direction: column;
    gap: 30px;
    padding: 76px 20px 40px;
    justify-content: flex-start;
  }
  .np-art {
    width: min(320px, 62vw) !important;
    height: min(320px, 62vw) !important;
    font-size: 96px !important;
  }
  .np-art-glow {
    width: 320px;
    height: 320px;
  }
  .np-info {
    max-width: 100%;
    width: 100%;
  }
  .np-viz {
    height: 52px;
    margin-top: 16px;
  }
  .toast {
    bottom: 130px;
  }
}
@media (max-width: 620px) {
  .btn-label,
  .brand-name {
    display: none;
  }
  .nav-item {
    padding: 8px 9px;
  }
  .row .pl-add,
  .user-btn-label {
    display: none;
  }
  .user-btn {
    padding: 9px;
  }
  .cat-grid {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 12px;
  }
  .topbar .btn {
    padding: 10px 12px;
  }
  .search input::placeholder {
    color: transparent;
  }
  .thead,
  .row {
    grid-template-columns: 20px 40px minmax(0, 1fr) 64px 38px;
    gap: 8px;
  }
  .thead > span:nth-child(4),
  .row > .col-album {
    display: none;
  }
  .tracklist.no-album .thead,
  .tracklist.no-album .row {
    grid-template-columns: 20px 40px minmax(0, 1fr) 64px 38px;
    gap: 8px;
  }
  .col-actions {
    opacity: 1;
  }
  .pb-controls .ctrl:first-child,
  .pb-controls .ctrl:last-child {
    display: none;
  }
  .np-controls .ctrl:first-child,
  .np-controls .ctrl:last-child {
    display: none;
  }
}
@keyframes viewIn {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.view-anim {
  animation: viewIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes rowIn {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.row {
  animation: rowIn 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 14ms);
}
@keyframes pulseGlow {
  0%,
  to {
    opacity: 0.45;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.04);
  }
}
.np-art-glow {
  animation: pulseGlow 6s ease-in-out infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.spin {
  animation: spin 0.9s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.cover-img {
  object-fit: cover;
  display: block;
}
.row.missing {
  opacity: 0.55;
}
.row.missing .row-title {
  color: var(--text-dim);
}
.missing-badge {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 7px;
  color: var(--text-faint);
}
.theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0 8px;
}
.theme-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.theme-dots {
  display: flex;
  gap: 6px;
}
.theme-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  padding: 2px;
  border: 1px solid var(--hover-2);
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.theme-dot span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg);
}
.theme-dot:hover {
  transform: scale(1.12);
}
.theme-dot.active {
  border-color: #ffffffb3;
}
.user-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.user-btn {
  width: 100%;
  justify-content: center;
  padding: 8px 10px;
  font-size: 12.5px;
}
.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(var(--accent-rgb), 0.25);
  color: var(--accent-2);
  flex-shrink: 0;
}
.user-email {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.catalog {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.genre-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.genre-chip {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text-dim);
  background: var(--chip);
  border: 1px solid var(--border);
  transition:
    color 0.15s,
    background 0.15s,
    border-color 0.15s;
}
.genre-chip:hover {
  color: var(--text);
  background: var(--hover);
}
.genre-chip.active {
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.22);
  border-color: rgba(var(--accent-rgb), 0.5);
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 18px;
}
.cat-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  cursor: pointer;
  transition:
    transform 0.18s,
    background 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
  animation: rowIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 22ms);
}
.cat-card:hover {
  transform: translateY(-3px);
  background: var(--chip);
  box-shadow: 0 16px 40px #00000059;
}
.cat-card.current {
  border-color: rgba(var(--accent-rgb), 0.6);
}
.cat-art {
  position: relative;
  aspect-ratio: 1;
  border-radius: 11px;
  overflow: hidden;
  background: var(--chip);
}
.cat-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.cat-card:hover .cat-art img {
  transform: scale(1.05);
}
.cat-art-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 40px;
  font-weight: 700;
  color: #ffffff59;
  background: linear-gradient(
    135deg,
    rgba(var(--accent-rgb), 0.5),
    rgba(var(--accent-2-rgb), 0.35)
  );
}
.cat-play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-grad);
  color: var(--on-accent);
  box-shadow: 0 8px 20px #00000073;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.18s,
    transform 0.18s;
}
.cat-card:hover .cat-play,
.cat-card.current .cat-play {
  opacity: 1;
  transform: none;
}
.cat-save {
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0000008c;
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition:
    opacity 0.18s,
    background 0.18s;
}
.cat-card:hover .cat-save {
  opacity: 1;
}
.cat-save:hover {
  background: rgba(var(--accent-rgb), 0.9);
}
.cat-bars {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  padding: 4px 6px;
  border-radius: 6px;
  background: #0000008c;
}
.cat-bars i {
  width: 3px;
  height: 5px;
  border-radius: 2px;
  background: var(--accent-2);
}
.cat-bars.on i {
  animation: eq 1s ease-in-out infinite;
}
.cat-bars.on i:nth-child(2) {
  animation-delay: 0.2s;
}
.cat-bars.on i:nth-child(3) {
  animation-delay: 0.4s;
}
.cat-title {
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cat-artist {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cat-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  font-size: 10.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cat-status {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-faint);
  font-size: 14px;
}
.cat-error {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #ff5f6d14;
  border: 1px solid rgba(255, 95, 109, 0.25);
  font-size: 13.5px;
  color: #ffb3ba;
}
.cat-error span {
  color: var(--text-dim);
  font-size: 12.5px;
}
.skeleton {
  pointer-events: none;
}
.skeleton .cat-art,
.skeleton-line {
  background: linear-gradient(90deg, var(--chip), var(--border), var(--chip));
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
.skeleton-line {
  height: 12px;
  border-radius: 6px;
  margin-top: 12px;
}
.skeleton-line.short {
  width: 60%;
  margin-top: 8px;
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
.auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--chip);
  border-radius: 12px;
}
.auth-tabs button {
  flex: 1;
  padding: 9px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  transition:
    background 0.15s,
    color 0.15s;
}
.auth-tabs button.active {
  background: rgba(var(--accent-rgb), 0.25);
  color: var(--text);
}
.auth-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-dim);
}
.auth-error {
  padding: 9px 12px;
  border-radius: 10px;
  background: #ff5f6d1a;
  border: 1px solid rgba(255, 95, 109, 0.3);
  color: #ffb3ba;
  font-size: 12.5px;
}
.cat-card.unavailable {
  opacity: 0.5;
}
.cat-card.unavailable:hover {
  transform: none;
}
.cat-unavailable {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #0000009e;
  color: #ffb3ba;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.cat-meta span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-server-toggle {
  align-self: flex-start;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-faint);
  text-decoration: underline dotted;
}
.auth-server-toggle:hover {
  color: var(--text-dim);
}
.cat-retry {
  align-self: flex-start;
  margin-top: 4px;
  padding: 7px 14px;
  font-size: 12.5px;
}
.sidebar {
  background: linear-gradient(180deg, var(--chrome-1) 0%, var(--chrome-2) 100%);
  border-right: 1px solid var(--chrome-border);
  color: var(--chrome-text);
}
.brand-name {
  color: var(--chrome-text);
  letter-spacing: 0.02em;
}
.brand-mark {
  background: var(--accent-grad);
  color: var(--on-accent);
  box-shadow:
    0 8px 20px rgba(var(--accent-rgb), 0.45),
    inset 0 1px #ffffff73;
}
.nav-item {
  color: var(--chrome-dim);
  border-radius: 12px;
}
.nav-item:hover {
  background: var(--chrome-chip);
  color: var(--chrome-text);
}
.nav-item.active {
  background: linear-gradient(
    135deg,
    rgba(var(--accent-rgb), 0.28),
    rgba(var(--accent-2-rgb), 0.16)
  );
  color: var(--chrome-text);
  box-shadow:
    inset 0 0 0 1px rgba(var(--accent-2-rgb), 0.4),
    0 8px 20px #00000073;
}
.nav-count {
  background: var(--chrome-chip);
  color: var(--chrome-dim);
}
.nav-item.active .nav-count {
  background: #ffffff2e;
  color: #fff;
}
.side-title > span,
.theme-label {
  color: var(--chrome-dim);
}
.side-add {
  color: var(--chrome-dim);
}
.side-add:hover {
  background: var(--chrome-chip);
  color: #fff;
}
.playlist-item {
  color: var(--chrome-dim);
}
.playlist-item:hover {
  background: var(--chrome-chip);
  color: var(--chrome-text);
}
.playlist-item.active {
  background: var(--chrome-hover);
  color: #fff;
}
.playlist-dot {
  background: var(--chrome-chip);
  color: var(--chrome-dim);
}
.playlist-count,
.side-empty {
  color: var(--chrome-dim);
}
.side-footer {
  border-top: 1px solid var(--chrome-border);
}
.side-stat {
  color: var(--chrome-dim);
}
.side-stat strong {
  color: var(--chrome-text);
}
.side-note {
  color: var(--chrome-dim);
}
.user-row {
  border-top: 1px solid var(--chrome-border);
}
.user-avatar {
  background: rgba(var(--accent-rgb), 0.25);
  color: var(--accent-2);
}
.user-email {
  color: var(--chrome-dim);
}
.user-btn {
  background: var(--chrome-chip);
  border-color: var(--chrome-border);
  color: var(--chrome-text);
}
.user-btn:hover {
  background: var(--chrome-hover);
  border-color: #93b8ff59;
}
.sidebar .icon-btn {
  color: var(--chrome-dim);
}
.sidebar .icon-btn:hover {
  background: var(--chrome-chip);
  color: #fff;
}
.btn {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  isolation: isolate;
}
.btn:before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  bottom: -1px;
  left: -1px;
  z-index: 1;
  background: linear-gradient(
    105deg,
    transparent 42%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 58%
  );
  transform: translate(-130%);
  transition: transform 0.55s ease;
  pointer-events: none;
}
.btn:hover:before {
  transform: translate(130%);
}
.btn:active {
  transform: scale(0.96);
}
.btn-primary {
  background: var(--accent-grad);
  color: var(--on-accent);
  box-shadow:
    0 8px 20px rgba(var(--accent-rgb), 0.35),
    inset 0 1px #fff6;
}
.btn-primary:hover {
  box-shadow:
    0 12px 28px rgba(var(--accent-rgb), 0.45),
    inset 0 1px #ffffff80;
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0) scale(0.96);
}
.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: 0 2px 8px #0000004d;
}
.btn-ghost:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: var(--chip);
  color: var(--accent);
  transform: translateY(-1px);
}
.btn-ghost:before {
  background: linear-gradient(
    105deg,
    transparent 42%,
    rgba(var(--accent-rgb), 0.18) 50%,
    transparent 58%
  );
}
.btn.danger:hover,
.icon-btn.danger:hover {
  color: var(--danger);
  background: #ff5f6d1f;
}
.icon-btn {
  border-radius: 10px;
  transition:
    background 0.15s,
    color 0.15s,
    transform 0.12s;
}
.icon-btn:hover {
  background: var(--hover);
  color: var(--accent);
  transform: translateY(-1px);
}
.icon-btn:active {
  transform: scale(0.88);
}
.icon-btn.active {
  color: var(--accent);
}
.search {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px #00000040;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.search:focus-within {
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14);
}
.search svg {
  color: var(--text-faint);
}
.search input {
  color: var(--text);
}
.row {
  border-radius: 12px;
}
.row.current {
  background: linear-gradient(
    90deg,
    rgba(var(--accent-rgb), 0.14),
    rgba(var(--accent-2-rgb), 0.05)
  );
  box-shadow: inset 3px 0 0 var(--accent);
}
.row-title {
  color: var(--text);
}
.row-artist,
.col-album {
  color: var(--text-dim);
}
.thead {
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
}
.col-num {
  color: var(--text-faint);
}
.row.current .col-num {
  color: var(--accent);
}
.eqbars i {
  background: var(--accent);
}
.cover {
  box-shadow:
    inset 0 0 0 1px var(--hover-2),
    0 4px 12px #00000059;
}
.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.cat-card:hover {
  transform: translateY(-4px) scale(1.012);
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: var(--shadow-strong);
}
.cat-card.current {
  border-color: rgba(var(--accent-rgb), 0.65);
  box-shadow:
    0 0 0 3px rgba(var(--accent-rgb), 0.18),
    var(--shadow);
}
.cat-play {
  background: var(--accent-grad);
  color: var(--on-accent);
  box-shadow:
    0 10px 24px rgba(var(--accent-rgb), 0.5),
    inset 0 1px #ffffff73;
}
.cat-save {
  background: #0009;
  color: #fff;
}
.cat-save:hover {
  background: rgba(var(--accent-rgb), 0.92);
}
.cat-art-fallback {
  color: #fff6;
  background: linear-gradient(
    135deg,
    rgba(var(--accent-rgb), 0.55),
    rgba(var(--accent-2-rgb), 0.35)
  );
}
.genre-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  box-shadow: 0 2px 6px #0003;
  transition:
    color 0.15s,
    background 0.15s,
    border-color 0.15s,
    transform 0.12s,
    box-shadow 0.2s;
}
.genre-chip:hover {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.45);
  transform: translateY(-1px);
}
.genre-chip.active {
  background: var(--accent-grad);
  border-color: transparent;
  color: var(--on-accent);
  box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.35);
}
.skeleton .cat-art,
.skeleton-line {
  background: linear-gradient(90deg, var(--chip), var(--chip-2), var(--chip));
  background-size: 200% 100%;
}
.cat-error {
  background: #ff5f6d14;
  border-color: #ff5f6d40;
  color: #ffb3ba;
}
.cat-error span {
  color: var(--text-dim);
}
.playerbar {
  background: linear-gradient(180deg, var(--chrome-1), var(--chrome-2));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--chrome-border);
  color: var(--chrome-text);
}
.playerbar button {
  color: var(--chrome-dim);
}
.playerbar button:hover {
  color: #fff;
}
.playerbar .icon-btn:hover {
  background: var(--chrome-chip);
}
.pb-title {
  color: #fff;
}
.pb-artist {
  color: var(--chrome-dim);
}
.ctrl-play {
  background: var(--accent-grad);
  color: var(--on-accent);
  box-shadow:
    0 8px 22px rgba(var(--accent-rgb), 0.5),
    inset 0 1px #ffffff73;
  transition:
    transform 0.15s,
    box-shadow 0.2s;
}
.ctrl-play:hover {
  transform: scale(1.07);
  box-shadow:
    0 12px 28px rgba(var(--accent-rgb), 0.6),
    inset 0 1px #ffffff80;
}
.ctrl-play:active {
  transform: scale(0.94);
}
.pb-time {
  color: var(--chrome-dim);
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-strong);
  color: var(--text);
}
.panel-head {
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
.panel-empty,
.eq-freq {
  color: var(--text-faint);
}
.nowplaying {
  color: var(--chrome-text);
}
.np-eyebrow {
  color: var(--accent-2);
  letter-spacing: 0.18em;
}
.np-title {
  color: #fff;
}
.np-sub,
.np-close {
  color: var(--chrome-dim);
}
.np-close:hover {
  background: var(--chrome-chip);
  color: #fff;
}
.np-upnext-title,
.np-upnext-item {
  color: var(--chrome-dim);
}
.np-upnext-item:hover {
  background: var(--chrome-chip);
  color: #fff;
}
.np-upnext-dur,
.nowplaying .ctrl {
  color: var(--chrome-dim);
}
.nowplaying .ctrl:hover {
  color: #fff;
}
.nowplaying .pb-time {
  color: var(--chrome-dim);
}
.modal-backdrop {
  background: #0009;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-strong);
  color: var(--text);
}
.modal-title {
  color: var(--text);
}
.text-input {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
}
.text-input:focus {
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14);
  outline: none;
}
.pl-item {
  color: var(--text);
}
.pl-item:hover {
  background: var(--hover);
}
.auth-tabs {
  background: var(--chip);
}
.auth-tabs button {
  color: var(--text-dim);
}
.auth-tabs button.active {
  background: var(--accent-grad);
  color: var(--on-accent);
  box-shadow: 0 6px 16px rgba(var(--accent-rgb), 0.35);
}
.auth-note {
  color: var(--text-dim);
}
.auth-error {
  background: #ff5f6d1a;
  border-color: #ff5f6d4d;
  color: #ffb3ba;
}
.auth-server-toggle {
  color: var(--text-faint);
}
.toast {
  background: linear-gradient(135deg, var(--chrome-1), var(--chrome-2));
  border: 1px solid var(--chrome-border);
  color: var(--chrome-text);
  box-shadow: 0 16px 40px #00000073;
}
.drop-overlay {
  background: #000000b3;
}
.drop-card {
  background: linear-gradient(180deg, var(--chrome-1), var(--chrome-2));
  border: 2px dashed rgba(var(--accent-2-rgb), 0.55);
  color: var(--chrome-text);
  box-shadow: 0 30px 80px #0009;
}
.empty h2 {
  color: var(--text);
}
.empty p {
  color: var(--text-dim);
}
.empty-ring {
  background: var(--accent-grad);
  color: var(--on-accent);
  box-shadow:
    0 20px 50px rgba(var(--accent-rgb), 0.4),
    inset 0 1px #ffffff73;
}
.empty-hint,
.list-empty {
  color: var(--text-faint);
}
.view-info h2 {
  color: var(--text);
}
.view-info p {
  color: var(--text-dim);
}
.theme-dot {
  border-color: #fff3;
}
.theme-dot.active {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(var(--accent-2-rgb), 0.35);
}
::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-rgb), 0.35);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--accent-rgb), 0.55);
}
::-webkit-scrollbar-track {
  background: transparent;
}
