:root {
  --bg: #0a0e16;
  --bg-soft: #0f1522;
  --panel: #111827;
  --panel-2: #151f31;
  --line: #22304a;
  --text: #e8eefc;
  --muted: #8fa3bf;
  --accent: #4cc9f0;
  --accent-2: #7b61ff;
  --win: #34d399;
  --loss: #f87171;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(1200px 600px at 15% -10%, #132036 0%, transparent 60%),
              radial-gradient(900px 500px at 90% 0%, #1a1430 0%, transparent 55%),
              var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }

header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(10, 14, 22, .78);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .3px;
  background: linear-gradient(90deg, #ffffff 10%, var(--accent) 60%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand small {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 1px;
  margin-left: 8px;
}

.head-meta {
  margin-left: auto;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
  text-align: right;
}

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

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.card .k {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .5px;
}

.card .v {
  font-size: 24px;
  font-weight: 800;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

.card .v span { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 4px; }

.controls {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
}

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

.control > label {
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: .5px;
}

.seg {
  display: inline-flex;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.seg button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
  transition: all .18s ease;
  white-space: nowrap;
}

.seg button:hover { color: var(--text); }

.seg button.active {
  color: #071019;
  background: linear-gradient(135deg, var(--accent), #63e6ff);
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(76, 201, 240, .25);
}

.panel {
  background: linear-gradient(180deg, rgba(21, 31, 49, .9), rgba(17, 24, 39, .92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 22px;
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.panel-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .3px;
}

.panel-title em {
  font-style: normal;
  color: var(--muted);
  font-weight: 500;
  font-size: 12.5px;
  margin-left: 10px;
}

.panel-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.seg.small button { padding: 5px 12px; font-size: 12.5px; }

.search {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-family: inherit;
  width: 170px;
  outline: none;
  transition: border-color .18s;
}

.search:focus { border-color: var(--accent); }

.search::placeholder { color: #5d708c; }

.table-wrap { max-height: 620px; overflow: auto; }

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

thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0d1420;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: .8px;
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(34, 48, 74, .55);
  vertical-align: middle;
}

tbody tr:hover { background: rgba(76, 201, 240, .05); }

td.rank {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  width: 46px;
}

td.rank.top { color: var(--accent); font-weight: 700; }

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

th.num { text-align: right; }

.hero-chips { display: flex; gap: 6px; flex-wrap: wrap; }

.chip {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 7px;
  background: rgba(76, 201, 240, .1);
  border: 1px solid rgba(76, 201, 240, .22);
  font-size: 12.5px;
  white-space: nowrap;
}

.chip.player {
  background: rgba(123, 97, 255, .12);
  border-color: rgba(123, 97, 255, .28);
}

td.player { font-weight: 600; white-space: nowrap; }

.team-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(143, 163, 191, .12);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.meter {
  position: relative;
  display: inline-block;
  width: 84px;
  height: 6px;
  margin-right: 9px;
  border-radius: 99px;
  background: rgba(143, 163, 191, .15);
  overflow: hidden;
  vertical-align: middle;
}

.meter i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: .85;
}

.win { color: var(--win); font-weight: 600; }
.lose { color: var(--loss); font-weight: 600; }
.neutral { color: var(--muted); }

.empty {
  padding: 30px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px 40px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

footer b { color: #b8c7dd; font-weight: 600; }

@media (max-width: 720px) {
  .head-meta { display: none; }
  .panel-tools { margin-left: 0; width: 100%; }
  .search { width: 100%; }
  .table-wrap { max-height: none; }
  .meter { display: none; }
  table { table-layout: fixed; }
  th:first-child, td:first-child { width: 34px; }
  th.num, td.num { width: 62px; }
  .chip { font-size: 11.5px; padding: 2px 6px; }
  .hero-chips { gap: 4px; }
  td, th { padding: 9px 8px; }
}
