:root {
  --bg: #0c0d10;
  --bg-elevated: #15171d;
  --text: #a8aeb8;
  --text-light: #e8edf4;
  --text-grey: #6d7480;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #7ee0c8;
  --danger: #d98989;
  --ok: #8fbf9f;
  --font: Manrope, system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html, body { min-height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  padding: 28px 20px 64px;
}
a { color: var(--text-light); text-underline-offset: 3px; }
.wrap { max-width: 420px; margin: 0 auto; }
.wrap.wide { max-width: 980px; }
.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.brand {
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: -0.05em;
  font-size: 18px;
  text-decoration: none;
}
.brand span { color: var(--accent); font-style: italic; font-weight: 500; }
h1 {
  color: var(--text-light);
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.12;
}
h2 {
  color: var(--text-light);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.lede { margin-top: 14px; max-width: 38em; line-height: 1.5; }
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px 20px;
}
.nav a { margin-left: 0; font-size: 14px; }
.nav a.on {
  color: var(--text-light);
  font-weight: 600;
  text-decoration: none;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 18px;
}
.track-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}
.track-card h2 { font-size: 18px; }
.track-card .meta {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-grey);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
form, .card {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}
label { font-size: 13px; color: var(--text-grey); display: grid; gap: 6px; }
input, button, select, textarea {
  font: inherit;
  border-radius: 10px;
}
input, select, textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-light);
  padding: 11px 12px;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
}
button {
  background: var(--accent);
  color: #10221c;
  border: 0;
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
}
button.ghost {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--border);
}
button:disabled { opacity: 0.55; cursor: default; }
.err { color: var(--danger); font-size: 14px; min-height: 1.2em; }
.hint { color: var(--text-grey); font-size: 13px; line-height: 1.45; }
.hidden { display: none; }
.hero-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions a, .play-link, .ghost-link {
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
}
.hero-actions .primary, .play-link { background: var(--accent); color: #10221c; }
.hero-actions .secondary, .ghost-link {
  border: 1px solid var(--border);
  color: var(--text-light);
}
.pill {
  display: inline-block;
  margin-right: 6px;
  margin-top: 12px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-light);
}
.pill.ai { color: #9ecbff; }
.pill.meme { color: #e0b8ff; }
.pill.original { color: var(--accent); }
.player {
  margin-top: 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}
audio { width: 100%; margin-top: 10px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.avatar, .avatar-fallback {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #242830;
  color: var(--text-light);
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.nav-user {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}
.nav-avatar {
  width: 16px !important;
  height: 16px !important;
  font-size: 8px !important;
}
.vip-mark { color: #e0b322; font-style: italic; font-weight: 500; margin-left: 6px; }
.rank-hyper, .rank-cool, .rank-awesome, .rank-mega {
  font-style: italic;
  font-weight: 600;
  margin-left: 6px;
}
.rank-hyper { color: #3b8cff; }
.rank-cool { color: #c5c9d1; }
.rank-awesome { color: #3dcf6a; }
.rank-mega {
  background: linear-gradient(90deg, #ff3b3b, #ffae00, #4dff6a, #3db8ff, #c45cff, #ff3b3b);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.catalog { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
