:root {
  --bg: #121018;
  --panel: #1c1826;
  --row-hover: #262033;
  --text: #ece8f4;
  --muted: #9a93ab;
  --accent: #e0609a;
  --accent-soft: #e0609a33;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  padding-bottom: 170px;
}

header, main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

h1 { margin: 28px 0 16px; font-size: 28px; }

#search {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #2f2940;
  background: var(--panel);
  color: var(--text);
  font: inherit;
}
#search:focus { outline: 2px solid var(--accent); border-color: transparent; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px; }
.chips button {
  border: 1px solid #2f2940;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.chips button.on { background: var(--accent); border-color: var(--accent); color: #fff; }

#list { list-style: none; padding: 0; margin: 8px 0; }
#list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}
#list li:hover { background: var(--row-hover); }
#list li.playing { background: var(--accent-soft); }
#list .num { width: 24px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
#list li.playing .num { color: var(--accent); }
#list .title { font-weight: 600; }
#list .artist { color: var(--muted); font-size: 13px; }

#empty { color: var(--muted); text-align: center; }

#player {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--panel);
  border-top: 1px solid #2f2940;
  padding: 12px 16px 16px;
  display: grid;
  gap: 8px;
  justify-items: center;
}
.now { text-align: center; min-height: 40px; max-width: 100%; }
#np-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#np-artist { color: var(--muted); font-size: 13px; }

.controls { display: flex; align-items: center; gap: 10px; }
.controls button {
  width: 40px; height: 40px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}
.controls button:hover { background: var(--row-hover); }
.controls button[aria-pressed="true"] { color: var(--accent); }
.controls .big { width: 52px; height: 52px; background: var(--accent); color: #fff; font-size: 20px; }
.controls .big:hover { background: var(--accent); filter: brightness(1.1); }

.progress {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 600px;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
#seek { flex: 1; accent-color: var(--accent); }
