/* ============ L4D2 RatingPro Hub — 深色数据面板 ============ */

:root {
  --bg: #080b11;
  --bg-soft: #0d1219;
  --panel: #111823;
  --panel-2: #151e2b;
  --panel-3: #1a2434;
  --border: #1f2a3a;
  --border-soft: #17202d;
  --text: #e8eef7;
  --text-dim: #b3c0d1;
  --muted: #7d8da3;
  --accent: #ff6b35;
  --accent-soft: rgba(255, 107, 53, 0.12);
  --accent-2: #38bdf8;
  --good: #34d399;
  --good-soft: rgba(52, 211, 153, 0.12);
  --bad: #f87171;
  --bad-soft: rgba(248, 113, 113, 0.12);
  --warn: #fbbf24;
  --radius: 14px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background-image:
    radial-gradient(900px 500px at 12% -10%, rgba(255, 107, 53, 0.10), transparent 60%),
    radial-gradient(800px 500px at 88% 0%, rgba(56, 189, 248, 0.08), transparent 60%);
  background-repeat: no-repeat;
}

a { color: inherit; text-decoration: none; }

/* ---------------- 顶栏 ---------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 22px;
  height: 60px;
  background: rgba(9, 13, 19, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #d9480f);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.32);
}

.brand-text { font-size: 15px; }
.brand-text em { font-style: normal; color: var(--accent); }

.nav {
  display: flex;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }

.nav a {
  position: relative;
  padding: 7px 13px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: var(--panel-2); }
.nav a.active { color: var(--text); background: var(--accent-soft); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.search { flex-shrink: 0; width: 230px; }

.search input {
  width: 100%;
  height: 34px;
  padding: 0 12px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search input::placeholder { color: #5c6b80; }
.search input:focus {
  border-color: rgba(255, 107, 53, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.10);
}

/* ---------------- 布局 ---------------- */

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 22px 72px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.page-head h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.page-head .sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.3px;
}

.card-title .hint { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 6px; }

/* ---------------- 控件 ---------------- */

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.seg button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.seg button:hover { color: var(--text); }
.seg button.active { background: var(--panel-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }

.field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

.field input {
  width: 62px;
  height: 30px;
  padding: 0 8px;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  outline: none;
  text-align: center;
}
.field input:focus { border-color: rgba(255, 107, 53, 0.5); }

.btn {
  appearance: none;
  height: 32px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text-dim);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--panel-3); color: var(--text); border-color: #2a3749; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #ff7d4d; }
.btn:disabled { opacity: .55; cursor: default; }

/* ---------------- 表格 ---------------- */

.table-wrap { overflow-x: auto; margin: 0 -6px; }
.table-wrap::-webkit-scrollbar { height: 8px; }
.table-wrap::-webkit-scrollbar-thumb { background: #223044; border-radius: 4px; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  text-align: left;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 10px;
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
  color: var(--text-dim);
}

tbody tr:last-child td { border-bottom: 0; }
tbody tr.clickable { cursor: pointer; transition: background .12s; }
tbody tr.clickable:hover { background: rgba(255, 255, 255, 0.028); }

.num { font-family: var(--mono); font-size: 12.5px; text-align: right; }
th.num { text-align: right; }
.strong { color: var(--text); font-weight: 600; }
.dim { color: var(--muted); }

/* ---------------- 玩家单元 ---------------- */

.player-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #24344a, #182231);
  border: 1px solid #2b3a50;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  overflow: hidden;
}
.avatar.accent { background: linear-gradient(135deg, rgba(255,107,53,.9), #c2410c); border-color: rgba(255,107,53,.5); color: #fff; }

.player-name {
  color: var(--text);
  font-weight: 500;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-badge {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 24px;
  padding: 0 7px;
  border-radius: 7px;
  background: var(--panel-3);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}
.rank-badge.r1 { background: linear-gradient(135deg, #f7b733, #d97706); border-color: #f7b733; color: #1a1205; }
.rank-badge.r2 { background: linear-gradient(135deg, #cbd5e1, #94a3b8); border-color: #cbd5e1; color: #111827; }
.rank-badge.r3 { background: linear-gradient(135deg, #d19a66, #a16207); border-color: #d19a66; color: #1a1205; }

/* ---------------- 数值色彩 ---------------- */

.pos { color: var(--good); }
.neg { color: var(--bad); }
.flat { color: var(--muted); }

.elo-main {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
}
.badge.sur { color: #86efac; background: rgba(52, 211, 153, .10); border-color: rgba(52, 211, 153, .25); }
.badge.inf { color: #fca5a5; background: rgba(248, 113, 113, .10); border-color: rgba(248, 113, 113, .25); }
.badge.na { color: var(--muted); background: var(--panel-3); border-color: var(--border); }
.badge.mode { color: #93c5fd; background: rgba(59, 130, 246, .10); border-color: rgba(59, 130, 246, .25); }

/* ---------------- 统计格 ---------------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}

.stat {
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 11px;
}
.stat .label {
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.stat .value {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}
.stat .value.small { font-size: 15px; }
.stat .sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ---------------- 玩家页头 ---------------- */

.hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    radial-gradient(600px 200px at 0% 0%, rgba(255, 107, 53, 0.10), transparent 70%),
    linear-gradient(180deg, var(--panel), var(--bg-soft));
  flex-wrap: wrap;
}

.hero-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #b45309);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.25);
  flex-shrink: 0;
}

.hero-main { flex: 1; min-width: 200px; }
.hero-name { font-size: 24px; font-weight: 700; letter-spacing: -0.3px; margin: 0; }
.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
}
.hero-id { font-family: var(--mono); font-size: 12px; color: #63718a; }
.hero-rank { display: inline-flex; align-items: center; gap: 5px; }
.hero-rank .of { color: var(--muted); font-size: 12px; font-family: var(--mono); }

.hero-elo { text-align: right; min-width: 150px; }
.hero-elo .big {
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--text);
}
.hero-elo .cap { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 4px; }
.hero-elo .sub { font-size: 12px; color: var(--muted); margin-top: 5px; }

/* ---------------- 条形指标 ---------------- */

.bars { display: grid; gap: 11px; }

.bar-row {
  display: grid;
  grid-template-columns: 88px 1fr 46px;
  align-items: center;
  gap: 12px;
}

.bar-row .blabel { font-size: 12.5px; color: var(--text-dim); }
.bar-row .bval { font-family: var(--mono); font-size: 12.5px; color: var(--text); text-align: right; }

.bar-track {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #16202d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #fbbf24);
  transition: width .5s cubic-bezier(.2,.8,.2,1);
}
.bar-fill.blue { background: linear-gradient(90deg, #38bdf8, #818cf8); }
.bar-fill.green { background: linear-gradient(90deg, #34d399, #22d3ee); }

/* ---------------- 图表 ---------------- */

.chart { width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: #1d2735; stroke-width: 1; }
.chart .axis-label { fill: #63718a; font-size: 10.5px; font-family: var(--mono); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.chart .line.blue { stroke: var(--accent-2); }
.chart .area { fill: url(#areaGrad); }
.chart .dot { fill: var(--accent); stroke: #0b0f16; stroke-width: 2; }

/* ---------------- 空态/骨架 ---------------- */

.empty {
  padding: 42px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}
.empty strong { display: block; color: var(--text-dim); font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.empty code { font-family: var(--mono); font-size: 12px; background: var(--panel-3); padding: 2px 6px; border-radius: 5px; }

.skeleton {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #131b26 25%, #18222f 50%, #131b26 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite linear;
  margin: 8px 0;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------------- 代码块 / 文档 ---------------- */

.code {
  position: relative;
  margin: 0;
  padding: 14px 16px;
  background: #080c12;
  border: 1px solid var(--border-soft);
  border-radius: 11px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.2px;
  line-height: 1.6;
  color: #c8d4e4;
}
.code .c-key { color: #7dd3fc; }
.code .c-str { color: #a5d6a7; }
.code .c-num { color: #fbbf24; }
.code .c-com { color: #526178; font-style: italic; }
.code.tall { max-height: 430px; overflow-y: auto; }
.code.tall::-webkit-scrollbar { width: 8px; }
.code.tall::-webkit-scrollbar-thumb { background: #223044; border-radius: 4px; }

.method {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.method.post { background: rgba(52, 211, 153, .14); color: #6ee7b7; }
.method.get { background: rgba(56, 189, 248, .14); color: #7dd3fc; }

.endpoint {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dim);
  padding: 9px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.endpoint .path { color: var(--text); }

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.prose { color: var(--text-dim); font-size: 13.5px; line-height: 1.75; }
.prose h3 { color: var(--text); font-size: 14.5px; margin: 22px 0 8px; }
.prose p { margin: 8px 0; }
.prose ul { margin: 8px 0; padding-left: 20px; }
.prose li { margin: 4px 0; }
.prose code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--panel-3);
  border: 1px solid var(--border-soft);
  padding: 1px 5px;
  border-radius: 5px;
  color: #e2b98a;
}
.prose table { margin: 10px 0; }

/* ---------------- 提示条 ---------------- */

.notice {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 11px;
  font-size: 13px;
  line-height: 1.6;
  border: 1px solid;
  margin-bottom: 16px;
}
.notice.info { background: rgba(56, 189, 248, .07); border-color: rgba(56, 189, 248, .22); color: #bae6fd; }
.notice.warn { background: rgba(251, 191, 36, .07); border-color: rgba(251, 191, 36, .22); color: #fde68a; }

/* ---------------- 页脚 ---------------- */

footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px 40px;
  color: #55647a;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------------- Toast ---------------- */

#toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 12px);
  padding: 10px 18px;
  border-radius: 10px;
  background: #1c2938;
  border: 1px solid #2b3a4d;
  color: var(--text);
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 100;
  max-width: 80vw;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.error { border-color: rgba(248, 113, 113, .5); }

/* ---------------- 五维雷达 ---------------- */

.mono { font-family: var(--mono); }

.radar-layout {
  display: grid;
  grid-template-columns: minmax(260px, 400px) 1fr;
  gap: 28px;
  align-items: center;
}

.radar-layout.compact { grid-template-columns: minmax(200px, 280px) 1fr; gap: 22px; }

.radar-host { min-width: 0; }

.dim-list { display: grid; gap: 9px; min-width: 0; }

.dim-caption {
  font-size: 11px;
  letter-spacing: 0.7px;
  color: var(--muted);
  margin-bottom: 2px;
  text-transform: uppercase;
}

.dim-row {
  display: grid;
  grid-template-columns: 72px 34px minmax(60px, 1fr) 38px 54px;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}

.dim-name { color: var(--text-dim); white-space: nowrap; }
.dim-weight { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }

.dim-track {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: #16202d;
  overflow: hidden;
}
.dim-track i { display: block; height: 100%; border-radius: 999px; transition: width .5s cubic-bezier(.2,.8,.2,1); }

.dim-val { font-family: var(--mono); font-weight: 600; color: var(--text); text-align: right; }
.dim-contrib { font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-align: right; }
.dim-contrib.pos { color: var(--good); }
.dim-contrib.neg { color: var(--bad); }

.radar-legend, .dim-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.lg-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}
.lg-item i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; }

/* 五维迷你柱 */

.mini-dims {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 20px;
  width: 44px;
  vertical-align: middle;
}
.mini-dims i {
  display: block;
  flex: 1;
  border-radius: 2px 2px 0 0;
  opacity: .95;
}


/* ---------------- 对局详情 ---------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.team-panel {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 3px solid var(--team, var(--accent));
  background: linear-gradient(180deg, rgba(255, 255, 255, .022), transparent);
}

.team-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.team-elo { margin-left: auto; font-family: var(--mono); font-size: 13px; }
.team-elo.pos { color: var(--good); }
.team-elo.neg { color: var(--bad); }
.team-elo.flat { color: var(--muted); }

.team-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.team-metrics div { display: flex; flex-direction: column; gap: 3px; }
.team-metrics span { font-size: 11px; color: var(--muted); }
.team-metrics b {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
  letter-spacing: -0.2px;
}

.round-radar {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  padding: 6px 0 2px;
}
.round-radar-svg { max-width: 400px; width: 100%; margin: 0 auto; }

.team-dims { display: grid; gap: 6px; width: 100%; max-width: 340px; }
.team-dim {
  display: grid;
  grid-template-columns: 1fr 70px 70px;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--border-soft);
}
.team-dim.head {
  font-size: 10.5px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.team-dim .num { font-family: var(--mono); text-align: right; font-weight: 600; }
.team-dim.head .num { color: var(--muted); font-weight: 500; }

tr.expand-row { cursor: pointer; }
tr.expand-row.open > td { background: rgba(255, 107, 53, .045); }
.detail-row > td {
  padding: 0 !important;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.detail-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px 0; }
.detail-head strong { font-size: 14px; }

.player-detail {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  padding: 12px 16px 18px;
}
.player-detail-radar { width: 100%; max-width: 300px; }

.detail-elo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 12.5px;
}
.detail-elo b { font-family: var(--mono); color: var(--text); }

.detail-dims { display: grid; gap: 5px; }
.detail-dim {
  display: grid;
  grid-template-columns: 82px minmax(50px, 1fr) 64px 54px 58px;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}
.detail-dim.head {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: .4px;
  text-transform: uppercase;
}
.detail-track { display: block; height: 7px; border-radius: 999px; background: #16202d; overflow: hidden; }
.detail-track i { display: block; height: 100%; border-radius: 999px; }
.detail-dim .num { font-family: var(--mono); text-align: right; color: var(--text-dim); }
.detail-dim .contrib { color: var(--good); font-size: 11.5px; }

.detail-counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.kv-group h4 {
  margin: 0 0 7px;
  font-size: 10.5px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.kv {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--border-soft);
  font-size: 12px;
}
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv b { font-family: var(--mono); font-weight: 600; color: var(--text-dim); }

/* ---------------- 响应式 ---------------- */

@media (max-width: 860px) {
  .search { width: 160px; }
  .hide-md { display: none; }
  .hero { padding: 18px; }
  .radar-layout, .radar-layout.compact { grid-template-columns: 1fr; gap: 18px; }
  .player-detail { grid-template-columns: 1fr; }
  .player-detail-radar { max-width: 300px; margin: 0 auto; }
  .team-metrics { grid-template-columns: 1fr 1fr; }
  .round-radar { grid-template-columns: 1fr; gap: 14px; }
  .team-dims { max-width: 100%; }
}

@media (max-width: 620px) {
  .topbar {
    height: auto;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 8px 14px 6px;
  }
  .brand { order: 1; }
  .brand-text { display: none; }
  .search { order: 2; flex: 1; display: none; }
  .nav { order: 3; flex: 0 0 100%; width: 100%; gap: 2px; }
  .nav a { padding: 6px 10px; font-size: 12.5px; }
  .nav a.active::after { left: 10px; right: 10px; bottom: 2px; }
  main { padding: 18px 14px 60px; }
  .hide-sm { display: none; }
  .hero-elo { text-align: left; width: 100%; }
  .hero-elo .big { font-size: 28px; }
  .page-head h1 { font-size: 19px; }
}
