:root {
  --bg: #0b0b0f;
  --panel: #131318;
  --panel-2: #1b1b22;
  --text: #f2f2f5;
  --muted: #9a9aa6;
  --accent: #6c5ce7;
  --accent-2: #00d1b2;
  --line: #26262f;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
.app { display: flex; min-height: 100vh; padding-bottom: 84px; }

.sidebar {
  width: 232px; flex: 0 0 232px; background: var(--panel);
  border-right: 1px solid var(--line); padding: 22px 16px;
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px;
}
.brand { font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a { padding: 9px 11px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 500; }
.nav a:hover { background: var(--panel-2); color: var(--text); text-decoration: none; }
.nav a.active { background: var(--panel-2); color: var(--text); }
.side-foot { margin-top: auto; color: var(--muted); font-size: 12px; }

.view { flex: 1; padding: 30px 34px; max-width: 1200px; min-width: 0; }
h1 { font-size: 30px; margin: 0 0 6px; letter-spacing: -0.4px; }
h2 { font-size: 19px; margin: 0; }
.muted { color: var(--muted); }
.page-head { margin-bottom: 22px; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.block { margin-top: 32px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.block-head a { color: var(--muted); font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card:hover { text-decoration: none; }
.card:hover .cover { transform: translateY(-2px); }
.cover { width: 100%; aspect-ratio: 1/1; border-radius: 12px; object-fit: cover; background: var(--panel-2); transition: transform .15s ease; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.c-title { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-sub { font-size: 12px; color: var(--muted); margin-top: -4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.round { border-radius: 50%; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 14px; border-radius: 999px; background: var(--panel-2); font-size: 13px; color: var(--text); }
.chip:hover { text-decoration: none; filter: brightness(1.25); }

.tracks { list-style: none; margin: 0; padding: 0; }
.track { display: grid; grid-template-columns: 32px 24px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; }
.track:hover { background: var(--panel-2); }
.track.playing { background: rgba(108,92,231,.16); }
.track .play { border: 0; background: transparent; color: var(--muted); cursor: pointer; width: 28px; height: 28px; border-radius: 50%; font-size: 11px; }
.track:hover .play { background: var(--accent); color: #fff; }
.track .idx { color: var(--muted); font-size: 13px; text-align: right; }
.t-main { display: flex; flex-direction: column; min-width: 0; }
.t-title { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-dur { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.cover-thumb { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; }

.hero { display: flex; gap: 24px; align-items: flex-end; margin-bottom: 26px; }
.hero img { width: 196px; height: 196px; border-radius: 14px; object-fit: cover; box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.hero img.round { border-radius: 50%; }
.hero h1 { font-size: 38px; margin: 6px 0 8px; line-height: 1.05; }
.hero .eyebrow { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent-2); font-weight: 700; }
.hero p { margin: 0; color: var(--muted); font-size: 14px; }
.button { display: inline-block; margin-top: 12px; border: 0; cursor: pointer; background: var(--accent); color: #fff; padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.button:hover { filter: brightness(1.1); text-decoration: none; }
.button.ghost { background: var(--panel-2); }

.search-form { display: flex; gap: 10px; margin: 14px 0 6px; }
.search-form input { flex: 1; max-width: 520px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 11px 16px; font-size: 14px; outline: none; }
.search-form input:focus { border-color: var(--accent); }
.search-form button { border: 0; border-radius: 999px; padding: 0 20px; cursor: pointer; background: var(--text); color: #111; font-weight: 600; font-size: 14px; }

.player { position: fixed; left: 0; right: 0; bottom: 0; height: 84px; display: flex; align-items: center; gap: 16px; padding: 0 20px; background: rgba(19,19,24,.97); border-top: 1px solid var(--line); backdrop-filter: blur(10px); z-index: 10; }
.pcover { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--panel-2); }
.pmeta { width: 190px; min-width: 0; }
.ptitle { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.partist { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcontrols { display: flex; align-items: center; gap: 6px; }
.pcontrols button { border: 0; background: transparent; color: var(--text); cursor: pointer; font-size: 16px; width: 34px; height: 34px; border-radius: 50%; }
.pcontrols button:hover { background: var(--panel-2); }
.pcontrols .pp { background: var(--text); color: #111; font-size: 14px; }
.pseek { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 120px; }
.pseek span { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; width: 34px; text-align: center; }
input[type=range] { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 2px; background: #3a3a46; outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--text); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--text); cursor: pointer; }
.pseek input { flex: 1; }
.pvol input { width: 90px; }
.empty { color: var(--muted); padding: 26px 0; }
.error { color: #ff8a8a; padding: 18px 0; }
.skeleton { color: var(--muted); padding: 20px 0; }

@media (max-width: 860px) {
  .sidebar { display: none; }
  .view { padding: 20px 16px; }
  .hero { flex-direction: column; align-items: flex-start; }
  .hero img { width: 140px; height: 140px; }
  .hero h1 { font-size: 28px; }
  .pmeta { display: none; }
  .pvol { display: none; }
}
