:root {
  --room: #e7f1f4;
  --ink: #122028;
  --muted: #52656e;
  --panel: #f8fbfc;
  --line: #c9d7de;
  --magenta: #e2186a;
  --blue: #1d4ed8;
  --amber: #f0a202;
  --leaf: #0f8a72;
  --top: 78px;
  --deck: 64px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #d5e2e8;
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

button, input { font-family: inherit; color: inherit; }

a { color: inherit; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.stage {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% -10%, rgba(226, 24, 106, 0.08), transparent 28%),
    var(--room);
  display: flex;
  flex-direction: column;
}

.top {
  height: var(--top);
  flex: none;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 36px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 251, 252, 0.92);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--magenta);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 10px 8px;
}

.mark i {
  display: block;
  width: 5px;
  background: #fff;
  border-radius: 99px;
}

.mark i:nth-child(1) { height: 14px; }
.mark i:nth-child(2) { height: 28px; }
.mark i:nth-child(3) { height: 18px; }
.mark i:nth-child(4) { height: 32px; }

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name strong {
  font-family: "Songti SC", "STSong", serif;
  font-size: 26px;
  font-weight: 700;
}

.brand-name span {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.nav { display: flex; gap: 4px; }

.nav a {
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 16px;
}

.nav a:hover,
.nav a.active {
  background: var(--ink);
  color: #fff;
}

.top-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.level {
  font-size: 13px;
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--muted);
}

.level.l2 { color: var(--blue); border-color: #b9c9f5; background: #f3f6ff; }
.level.l3 { color: var(--leaf); border-color: #b7e0d6; background: #f1faf7; }

.search input {
  width: 230px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 16px;
  font-size: 15px;
}

main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 22px 36px 16px;
  overflow: hidden;
}

.kicker {
  margin: 0 0 8px;
  color: var(--magenta);
  font-size: 14px;
  letter-spacing: 0.12em;
}

h1 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.lead {
  margin: 16px 0 0;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

.hero-actions { display: flex; gap: 12px; margin-top: 26px; }

.btn {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border: 0;
  font-size: 16px;
  cursor: pointer;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn:hover { transform: translateY(-1px); }

.home-top {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 22px;
}

.hero {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 42px 300px 42px 42px;
  overflow: hidden;
}

.vinyl {
  position: absolute;
  right: 28px;
  bottom: 36px;
  width: 248px;
  height: 248px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 18px, #f4d27a 19px 20px, transparent 21px),
    repeating-radial-gradient(circle at 50% 50%, #1b1b1b 0 2px, #2c2c2c 3px 5px);
  box-shadow: 0 18px 40px rgba(18, 32, 40, 0.28);
  display: grid;
  place-items: center;
  animation: spin 14s linear infinite;
}

.vinyl b {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--magenta);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: "Songti SC", "STSong", serif;
  font-size: 22px;
}

.entries {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 12px;
}

.entry {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 0 18px;
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.entry:hover { border-color: var(--ink); }

.entry .sleeve { width: 54px; height: 54px; border-radius: 12px; font-size: 20px; }

.entry strong { display: block; font-size: 20px; }
.entry em { display: block; margin-top: 4px; font-style: normal; color: var(--muted); font-size: 14px; }
.entry .go { color: var(--muted); font-size: 20px; }

.home-bottom {
  flex: none;
  height: 230px;
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 18px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px 18px;
  min-height: 0;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.panel-head h2 {
  margin: 0;
  font-size: 18px;
}

.panel-head a { color: var(--blue); font-size: 14px; }

.track-row, .chart-row, .rank, .story, .person {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.mini-tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 18px;
}

.track-row, .chart-row {
  display: grid;
  gap: 12px;
  align-items: center;
  border-radius: 12px;
  padding: 0 10px;
}

.track-row {
  grid-template-columns: 36px max-content max-content;
  justify-content: start;
  column-gap: 28px;
  height: 44px;
}

.track-row:hover, .chart-row:hover, .rank:hover, .story:hover, .person:hover,
.track-row.is-on, .chart-row.is-on, .rank.is-on, .story.on {
  background: #e7f6f2;
}

.track-row b, .chart-row .no { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.track-row span:nth-child(2) { color: var(--ink); font-size: 16px; }
.track-row span:last-child, .who small, .chart-row small { color: var(--muted); font-size: 14px; }

.singer-preview { display: flex; flex-direction: column; gap: 8px; }
.person {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  height: 48px;
  border-radius: 12px;
  padding: 0 8px;
}

.avatar, .sleeve {
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "Songti SC", "STSong", serif;
  flex: none;
}

.avatar { width: 36px; height: 36px; border-radius: 50%; font-size: 16px; }

.tone-a { background: linear-gradient(145deg, #1d4ed8, #e2186a); }
.tone-b { background: linear-gradient(145deg, #0f8a72, #16343c); }
.tone-c { background: linear-gradient(160deg, #ef9f1a, #e2186a); }
.tone-d { background: linear-gradient(145deg, #2456c7, #7fd1c3); }
.tone-e { background: linear-gradient(145deg, #24343b, #6d7f88); }
.tone-f { background: linear-gradient(145deg, #b4532a, #f0a202); }
.tone-g { background: linear-gradient(145deg, #3d2a8a, #1d4ed8); }
.tone-h { background: linear-gradient(145deg, #0f6e8a, #d7f25a); color: #122028; }

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex: none;
  min-height: 92px;
  margin-bottom: 16px;
}

.page-head h1 { font-size: 48px; }
.page-head .lead { margin: 6px 0 0; font-size: 16px; max-width: 820px; }

.crumb { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.crumb a { color: var(--blue); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

.split {
  display: grid;
  gap: 18px;
  flex: 1;
  min-height: 0;
}

.page-library .split { grid-template-columns: 250px 1fr; }
.page-artists .split { grid-template-columns: 1.05fr 0.95fr; }
.page-playlists .split { grid-template-columns: 1.15fr 0.85fr; }
.page-news .split { grid-template-columns: 1.15fr 0.85fr; }
.page-hot-artists .split { grid-template-columns: 1.15fr 0.85fr; }

.side, .sheet, .feature, .dossier, .story-list {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  min-height: 0;
}

.side { padding: 18px; display: flex; flex-direction: column; }
.side h2 { margin: 0 0 12px; font-size: 18px; }

.chips, .genre-list { display: flex; flex-wrap: wrap; gap: 8px; }

.chip, .genre-list button, .story {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
}

.chip.on, .genre-list button.on, .story.on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.side .btn { margin-top: auto; justify-content: center; }

.shelf {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  padding: 16px;
  height: 100%;
}

.record {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.record .sleeve {
  flex: 1;
  min-height: 0;
  height: auto;
  border-radius: 16px;
  align-items: end;
  justify-items: start;
  padding: 12px;
  font-size: 28px;
}

.record strong, .plist strong { display: block; margin-top: 8px; font-size: 16px; }
.record em, .plist em { display: block; margin-top: 2px; font-style: normal; color: var(--muted); font-size: 13px; }

.feature { padding: 22px; display: grid; grid-template-columns: 300px 1fr; gap: 28px; height: 100%; }
.feature .sleeve { height: 100%; min-height: 0; border-radius: 20px; font-size: 80px; }
.feature .copy { display: flex; flex-direction: column; min-height: 0; }
.feature h2 { margin: 8px 0; font-family: "Songti SC", "STSong", serif; font-size: 48px; }
.reps { margin-top: auto; display: grid; gap: 4px; }
.roster, .stack { padding: 12px; display: flex; flex-direction: column; gap: 6px; height: 100%; }
.roster a, .stack a { flex: 1; }

.roster a, .stack a {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  padding: 8px;
  border-radius: 14px;
}

.roster a:hover, .stack a:hover { background: #e7f6f2; }
.roster .avatar { width: 48px; height: 48px; font-size: 20px; }

.play-main { padding: 22px 24px; display: flex; flex-direction: column; height: 100%; }
.play-main h2 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: 40px; }
.play-list { margin-top: 12px; flex: 1; display: flex; flex-direction: column; }
.play-list .track-row { flex: 1; height: auto; }

.stack .sleeve { width: 54px; height: 54px; border-radius: 12px; font-size: 18px; }

.story-stage { padding: 36px; display: flex; flex-direction: column; height: 100%; justify-content: center; }
.story-stage h2 {
  margin: 10px 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 40px;
  line-height: 1.2;
}
.story-list { padding: 14px; display: flex; flex-direction: column; gap: 10px; height: 100%; }
.story {
  border-radius: 16px;
  text-align: left;
  padding: 18px 18px;
  flex: 1;
}
.story small { display: block; letter-spacing: 0.08em; margin-bottom: 4px; }
.story.on small { color: #f6c2d6; }

.track-sheet {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.table-wrap { padding: 8px 8px 0; flex: 1; min-height: 0; overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0 12px; height: 58px; border-bottom: 1px solid var(--line); font-size: 16px; }
th { height: 42px; color: var(--muted); font-size: 13px; font-weight: 600; }
tr[data-genre] { cursor: pointer; }
tr.is-on td { background: #e7f6f2; }
.empty {
  margin: 0;
  padding: 28px;
  color: var(--muted);
}

.filters { display: flex; gap: 8px; padding: 16px 16px 0; }

.rank-list { padding: 10px; height: 100%; display: flex; flex-direction: column; }
.rank {
  flex: 1;
  display: grid;
  grid-template-columns: 52px 56px 1fr 180px;
  gap: 12px;
  align-items: center;
  border-radius: 14px;
  padding: 0 10px;
}
.rank .no {
  font-family: "Songti SC", "STSong", serif;
  font-size: 28px;
}
.heat {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: #d7e3e8;
  overflow: hidden;
}
.heat i { display: block; height: 100%; background: linear-gradient(90deg, var(--leaf), var(--amber)); }

.dossier { padding: 28px; display: flex; flex-direction: column; height: 100%; }
.dossier .sleeve { flex: 1; height: auto; min-height: 220px; border-radius: 24px; font-size: 96px; }
.dossier h2 { margin: 16px 0 6px; font-family: "Songti SC", "STSong", serif; font-size: 40px; }

.chart { padding: 8px 12px; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chart-row {
  grid-template-columns: 64px 1fr 240px 280px;
  flex: 1;
  height: auto;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.chart-row:last-child { border-bottom: 0; }
.chart-row .no { font-family: "Songti SC", "STSong", serif; font-size: 26px; }

.is-hidden { display: none !important; }

.deck {
  height: var(--deck);
  flex: none;
  display: grid;
  grid-template-columns: 240px 1fr 260px;
  align-items: center;
  padding: 0 28px;
  background: #122028;
  color: #e7f1f4;
}

.reels { display: flex; align-items: center; gap: 10px; }
.reel {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px dashed var(--amber);
  position: relative;
}
.reel::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: var(--amber);
}
.reels:not(.paused) .reel { animation: spin 2.6s linear infinite; }

.deck-track { display: flex; flex-direction: column; }
.deck-track strong { font-size: 16px; }
.deck-track span { color: #9fb0b8; font-size: 13px; }

.vu {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 4px;
  height: 28px;
}
.vu i {
  display: block;
  width: 6px;
  border-radius: 99px;
  background: var(--amber);
}
.paused + .deck-track .vu i,
.vu.off i { height: 6px !important; opacity: 0.4; }
.vu i:nth-child(1) { height: 10px; }
.vu i:nth-child(2) { height: 18px; }
.vu i:nth-child(3) { height: 26px; }
.vu i:nth-child(4) { height: 14px; }
.vu i:nth-child(5) { height: 22px; }
.vu i:nth-child(6) { height: 12px; }

.deck button {
  margin-left: 16px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #3d515a;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .reel, .vinyl { animation: none; }
  .btn:hover { transform: none; }
}
