.wide { width: min(1320px, 100% - 32px); }
.links a.on { color: var(--gold); }
.data-page main { padding: 28px 0 12px; }
.bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.bar h1 { font-size: 26px; }
.bar .meta { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button, .sorts button, .thead button { font: inherit; cursor: pointer; }
.chips button { height: 34px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 14px; }
.chips button:hover { color: var(--text); border-color: #3a4a64; }
.chips button.on { color: #1a1406; background: var(--gold); border-color: var(--gold); font-weight: 700; }

.board { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 18px; align-items: start; }
.list, .detail { background: linear-gradient(180deg, #151e2e, var(--card)); border: 1px solid var(--line); border-radius: var(--radius); }
.list { position: sticky; top: 76px; display: flex; flex-direction: column; height: calc(100vh - 96px); padding: 14px; }
.search { width: 100%; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 15px; outline: none; }
.search:focus { border-color: var(--gold); }
.sorts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 10px 0; padding: 3px; border-radius: 10px; background: var(--bg); }
.sorts button { height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 13px; }
.sorts button.on { background: #22304a; color: var(--text); }
.rows { overflow-y: auto; margin: 0 -6px; padding: 0 6px; flex: 1; }
.hero-row { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 10px; background: transparent; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.hero-row:hover { background: #1c2638; }
.hero-row.on { background: #263350; box-shadow: inset 3px 0 0 var(--gold); }
.hero-row img, .hhead img { border-radius: 8px; background: #0b0f17; }
.hero-row b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.hero-row small { color: var(--muted); font-size: 12px; }
.hero-row .num { text-align: right; font-variant-numeric: tabular-nums; }
.hero-row .num b { font-size: 15px; }
.rank { color: #66728a; font-size: 12px; width: 22px; display: inline-block; }

.detail { padding: 22px; min-height: 60vh; }
.back { display: none; }
.hhead { display: grid; grid-template-columns: 76px 1fr; gap: 6px 18px; align-items: center; margin-bottom: 20px; }
.hhead h2 { text-align: left; margin: 0; font-size: 26px; }
.hhead h2 small { color: var(--muted); font-size: 15px; font-weight: 400; margin-left: 8px; }
.hstats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.hstats span { padding: 5px 12px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.hstats b { color: var(--text); font-size: 15px; margin-left: 4px; }
.filters { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.toggle { color: var(--muted); font-size: 14px; cursor: pointer; user-select: none; }
.toggle input { accent-color: var(--gold); vertical-align: -2px; }

.thead, .aug { display: grid; grid-template-columns: minmax(0, 1fr) 190px 90px; align-items: center; gap: 14px; }
.thead { padding: 0 10px 8px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.thead button { border: 0; background: none; color: var(--muted); text-align: left; padding: 0; font-size: 13px; }
.thead button.on { color: var(--gold); }
.thead button.on::after { content: " ↓"; }
.thead button:last-child { text-align: right; }
.aug { padding: 9px 10px; border-bottom: 1px solid #1c2537; }
.aug:hover { background: #18212f; }
.aug.low { opacity: .5; }
.aname { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; }
.aname img { width: 34px; height: 34px; border-radius: 7px; border: 2px solid transparent; background: #0b0f17; }
.aname img.prismatic { border-color: #b98cff; }
.aname img.gold { border-color: #e7c35a; }
.aname img.silver { border-color: #a9b6c9; }
.aname b { display: block; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aname small { display: block; color: #7c879b; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wr { display: grid; grid-template-columns: 56px 1fr 44px; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.wr b { font-size: 15px; }
.barbg { height: 6px; border-radius: 3px; background: #222c3e; overflow: hidden; }
.barbg i { display: block; height: 100%; border-radius: 3px; background: var(--muted); }
.d { font-size: 13px; text-align: right; }
.up { color: var(--green); } .down { color: #ff7a6b; }
.barbg i.up { background: var(--green); } .barbg i.down { background: #ff7a6b; }
.games { text-align: right; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }
.note { color: #66728a; font-size: 13px; margin: 18px 0 0; }
.data-page .foot { margin-top: 28px; padding: 18px 0; }
.data-page .disclaim { margin: 0; }

@media (max-width: 860px) {
  .board { grid-template-columns: 1fr; }
  .list { position: static; height: auto; max-height: none; }
  .rows { overflow: visible; }
  .detail { display: none; padding: 16px; }
  .board.show .list { display: none; }
  .board.show .detail { display: block; }
  .back { display: inline-block; margin-bottom: 14px; border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 14px; }
  .thead, .aug { grid-template-columns: minmax(0, 1fr) 128px 56px; gap: 8px; }
  .wr { grid-template-columns: 50px 1fr; }
  .wr .barbg { display: none; }
  .d { text-align: left; }
  .hhead { grid-template-columns: 60px 1fr; }
  .hhead img { width: 60px; height: 60px; }
  .bar h1 { font-size: 22px; }
}

.bar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* 评级、计数、加载占位、表头吸顶 */
.g { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 4px; border-radius: 5px; font-style: normal; font-size: 12px; font-weight: 800; vertical-align: 2px; line-height: 1; }
.gS { background: rgba(240, 200, 90, .16); color: #f0c85a; }
.gA { background: rgba(95, 211, 141, .14); color: #5fd38d; }
.gB { background: rgba(98, 168, 255, .14); color: #62a8ff; }
.gC { background: rgba(200, 204, 214, .1); color: #c8ccd6; }
.gD { background: rgba(255, 122, 107, .14); color: #ff7a6b; }
.hhead h2 .g { min-width: 28px; height: 28px; font-size: 16px; margin-left: 10px; vertical-align: 4px; }
.count { color: var(--faint); font-size: 12px; margin: 0 0 6px 4px; }
.chips button small { margin-left: 5px; opacity: .65; font-size: 12px; }
.thead { position: sticky; top: 64px; z-index: 2; background: #141c2a; padding-top: 8px; }
.sk { pointer-events: none; }
.skb { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #1b2435 25%, #243049 50%, #1b2435 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; margin: 4px 0; }
.skb.sq { width: 34px; height: 34px; border-radius: 8px; margin: 0; }
.skb.w40 { width: 40%; } .skb.w50 { width: 50%; } .skb.w60 { width: 60%; } .skb.w80 { width: 80%; } .skb.w90 { width: 90%; }
.hero-row.sk { display: grid; grid-template-columns: 38px 1fr 50px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.hero-row, .aug { transition: background .12s; }
.search::-webkit-search-cancel-button { filter: invert(.7); }
@media (max-width: 760px) {
  .bar-right { width: 100%; justify-content: space-between; }
}
