/* ============ 基础 ============ */
:root {
  --bg: #0d1117;
  --panel: #151b23;
  --panel-2: #1b232e;
  --border: #2a313c;
  --text: #dbe2ea;
  --text-dim: #8b98a9;
  --radiant: #66bb6a;
  --radiant-dark: #2e7d32;
  --dire: #ef6a6a;
  --dire-dark: #b34040;
  --gold: #ffb300;
  --accent: #4c9aff;
  --danger: #ff5252;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 14px;
  line-height: 1.55;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============ 顶栏 ============ */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 52px;
  background: rgba(13, 17, 23, 0.92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.brand { font-weight: 700; font-size: 16px; cursor: pointer; user-select: none; }
.topbar nav { display: flex; gap: 18px; }
.topbar nav a { color: var(--text-dim); padding: 4px 2px; }
.topbar nav a:hover { color: var(--text); text-decoration: none; }
.badge {
  display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px;
  background: var(--gold); color: #1a1200; border-radius: 9px;
  font-size: 11px; font-weight: 700; text-align: center; vertical-align: 1px;
}

.container { max-width: 600px; margin: 0 auto; padding: 16px 12px 60px; }

.footer {
  text-align: center; color: var(--text-dim); font-size: 12px;
  padding: 18px 12px 30px;
}
.footer a { color: var(--text-dim); text-decoration: underline; }

/* ============ 通用组件 ============ */
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px; margin-bottom: 16px;
}
.card h2 { margin: 0 0 12px; font-size: 15px; color: var(--text); }
.muted { color: var(--text-dim); }
.small { font-size: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--panel-2); color: var(--text); cursor: pointer;
  font-size: 14px; font-weight: 600; user-select: none;
  transition: filter 0.15s;
}
.btn:hover { filter: brightness(1.15); text-decoration: none; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #1a1200; }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-sm { padding: 5px 12px; font-size: 12.5px; border-radius: 6px; }

input[type="text"], input[type="number"] {
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 10px 12px; font-size: 15px; outline: none; width: 100%;
}
input:focus { border-color: var(--accent); }

.spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: -3px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty { text-align: center; color: var(--text-dim); padding: 34px 10px; }
.alert { border-radius: 8px; padding: 10px 14px; margin: 10px 0; font-size: 13.5px; }
.alert-error { background: rgba(255, 82, 82, 0.12); border: 1px solid rgba(255, 82, 82, 0.45); color: #ffb3b3; }
.alert-info { background: rgba(76, 154, 255, 0.10); border: 1px solid rgba(76, 154, 255, 0.4); color: #b8d4ff; }
.alert-warn { background: rgba(255, 179, 0, 0.10); border: 1px solid rgba(255, 179, 0, 0.4); color: #ffe1a3; }

/* ============ 首页 ============ */
.hero { text-align: center; padding: 34px 10px 8px; }
.hero h1 { margin: 0 0 8px; font-size: 26px; }
.hero p { color: var(--text-dim); margin: 0 0 20px; }
.search-box { display: flex; gap: 10px; max-width: 620px; margin: 0 auto 6px; }
.search-box input { text-align: center; font-size: 17px; letter-spacing: 1px; }
.search-actions { display: flex; gap: 10px; justify-content: center; margin: 10px 0 4px; flex-wrap: wrap; }
.search-actions .btn { min-width: 150px; }
.hint { max-width: 620px; margin: 8px auto 0; text-align: left; color: var(--text-dim); font-size: 12.5px; }
.home-error { max-width: 620px; margin: 10px auto; }

.pro-list .pro-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 10px; border-radius: 8px; cursor: pointer; border: 1px solid transparent;
}
.pro-list .pro-row:hover { background: var(--panel-2); border-color: var(--border); }
.pro-teams { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pro-teams .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.pro-meta { color: var(--text-dim); font-size: 12.5px; flex-shrink: 0; }
.team-win { color: var(--gold); font-weight: 700; }

/* ============ 比赛页 ============ */
.match-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.match-head .score { font-size: 26px; font-weight: 800; }
.match-head .vs { color: var(--text-dim); margin: 0 6px; }
.score-radiant { color: var(--radiant); }
.score-dire { color: var(--dire); }
.match-head .info { color: var(--text-dim); font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.win-badge {
  padding: 3px 10px; border-radius: 12px; font-size: 12.5px; font-weight: 700;
}
.win-badge.radiant { background: rgba(102, 187, 106, 0.16); color: var(--radiant); border: 1px solid rgba(102, 187, 106, 0.5); }
.win-badge.dire { background: rgba(239, 106, 106, 0.16); color: var(--dire); border: 1px solid rgba(239, 106, 106, 0.5); }

/* 下载卡片 */
.download-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.progress-wrap { flex: 1; min-width: 260px; }
.progress-track {
  height: 12px; background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 7px; overflow: hidden;
}
.progress-fill {
  height: 100%; background: linear-gradient(90deg, #2f7d4f, var(--gold));
  border-radius: 6px; transition: width 0.3s; width: 0;
}
.progress-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.replay-info { font-size: 12.5px; color: var(--text-dim); margin-top: 10px; word-break: break-all; }
.replay-info code { background: var(--panel-2); padding: 2px 6px; border-radius: 5px; font-size: 12px; }

/* 标签页 */
.tabs { display: flex; gap: 6px; margin: 14px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tab-btn {
  background: none; border: none; color: var(--text-dim); cursor: pointer;
  padding: 9px 16px; font-size: 14.5px; font-weight: 600;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--text); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* 总览：两队面板（竖屏单列） */
.teams { display: grid; grid-template-columns: 1fr; gap: 12px; }
.team-card { border-radius: 10px; border: 1px solid var(--border); overflow: hidden; }
.team-card.radiant { border-top: 3px solid var(--radiant-dark); }
.team-card.dire { border-top: 3px solid var(--dire-dark); }
.team-card .team-title {
  padding: 9px 14px; font-weight: 700; font-size: 14.5px;
  display: flex; justify-content: space-between; align-items: center;
}
.team-card.radiant .team-title { background: rgba(102, 187, 106, 0.10); color: var(--radiant); }
.team-card.dire .team-title { background: rgba(239, 106, 106, 0.10); color: var(--dire); }
.player-row { padding: 9px 14px; border-top: 1px solid var(--border); }
.player-row:first-of-type { border-top: none; }
.player-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.player-hero { font-weight: 700; }
.player-name { color: var(--text-dim); font-size: 12.5px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-kda { font-weight: 600; }
.player-stats { display: flex; gap: 10px; flex-wrap: wrap; color: var(--text-dim); font-size: 12px; margin-top: 4px; }
.player-stats b { color: var(--text); font-weight: 600; }
.item-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.item-chip {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 5px;
  padding: 1px 7px; font-size: 11.5px; color: var(--text-dim); cursor: default;
}
.item-chip.has-time { border-color: rgba(255, 179, 0, 0.4); color: #e8d5a3; }

/* 图表 */
.chart-card { margin-bottom: 16px; }
.chart-legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--text-dim); margin-bottom: 6px; flex-wrap: wrap; }
.chart-legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.chart-box { position: relative; height: 240px; }
.chart-box canvas { width: 100%; height: 100%; display: block; }
.chart-tooltip {
  position: fixed; z-index: 99; pointer-events: none;
  background: rgba(13, 17, 23, 0.96); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 10px; font-size: 12px; color: var(--text);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5); white-space: nowrap;
}

/* 时间线 */
.timeline { max-height: 460px; overflow-y: auto; }
.tl-item {
  display: flex; gap: 10px; padding: 6px 10px; border-radius: 6px;
  align-items: baseline;
}
.tl-item:hover { background: var(--panel-2); }
.tl-time { font-variant-numeric: tabular-nums; color: var(--text-dim); font-size: 12.5px; min-width: 44px; }
.tl-badge {
  flex-shrink: 0; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 9px;
  border: 1px solid var(--border); color: var(--text-dim);
}
.tl-badge.first_blood { color: #ffb3b3; border-color: rgba(255,82,82,.6); }
.tl-badge.tower_kill, .tl-badge.rax_kill { color: #c9b8ff; border-color: rgba(149,117,255,.55); }
.tl-badge.tower_deny { color: #a8c7ff; border-color: rgba(120,160,255,.5); }
.tl-badge.roshan, .tl-badge.aegis { color: #ffe1a3; border-color: rgba(255,179,0,.55); }
.tl-badge.kill.radiant { color: var(--radiant); border-color: rgba(102,187,106,.5); }
.tl-badge.kill.dire { color: var(--dire); border-color: rgba(239,106,106,.5); }
.tl-text { flex: 1; }

/* 团战 */
.tf-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.tf-item { border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; background: var(--panel-2); }
.tf-item .tf-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.tf-score { font-weight: 700; }

/* 分锅 / 摸鱼 */
.verdict-note { color: var(--text-dim); font-size: 12.5px; margin-bottom: 12px; }
.verdict-list { display: grid; gap: 10px; }
.verdict-item {
  display: grid; grid-template-columns: 74px 1fr; gap: 14px; align-items: center;
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
}
.verdict-rank {
  text-align: center;
}
.verdict-rank .num {
  font-size: 26px; font-weight: 800; line-height: 1;
}
.verdict-rank .title {
  margin-top: 4px; font-size: 12px; font-weight: 700; border-radius: 10px; padding: 2px 6px;
  display: inline-block;
}
.verdict-item.blame .num { color: #ff9a9a; }
.verdict-item.slack .num { color: #a5d6a7; }
.verdict-rank .title.t1 { background: rgba(255,82,82,.18); color: #ff9a9a; }
.verdict-rank .title.t2 { background: rgba(255,138,101,.15); color: #ffb199; }
.verdict-rank .title.t3 { background: rgba(255,179,0,.15); color: #ffd88a; }
.verdict-rank .title.t4 { background: rgba(139,152,169,.18); color: #b9c4d1; }
.verdict-rank .title.t5 { background: rgba(102,187,106,.16); color: #a5d6a7; }
.verdict-main .vm-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.verdict-main .hero { font-weight: 700; font-size: 15px; }
.verdict-main .pname { color: var(--text-dim); font-size: 12.5px; }
.verdict-main .score-num { margin-left: auto; font-weight: 700; }
.verdict-item.blame .score-num { color: #ff9a9a; }
.verdict-item.slack .score-num { color: #a5d6a7; }
.vbar { height: 7px; border-radius: 4px; background: var(--panel-2); border: 1px solid var(--border); overflow: hidden; margin: 6px 0 2px; }
.vbar-fill { height: 100%; border-radius: 3px; }
.verdict-item.blame .vbar-fill { background: linear-gradient(90deg, #7a3030, #ff5252); }
.verdict-item.slack .vbar-fill { background: linear-gradient(90deg, #2f6b42, #66bb6a); }
.vm-reasons { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.vm-reasons .chip {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 11px;
  font-size: 11.5px; padding: 1px 9px; color: var(--text-dim);
}
.vm-stats { margin-top: 6px; color: var(--text-dim); font-size: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.vm-stats b { color: var(--text); }

/* ============ 录像库 ============ */
.file-table { width: 100%; border-collapse: collapse; }
.file-table th, .file-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.file-table th { color: var(--text-dim); font-weight: 600; font-size: 12.5px; }
.file-table tr:hover td { background: var(--panel-2); }
.file-actions { display: flex; gap: 8px; }
.job-item { margin-bottom: 10px; }

/* ============ 复盘面板 ============ */
.narrative p { margin: 0 0 10px; line-height: 1.75; }
.narrative p:last-child { margin-bottom: 0; }

.review-actions { float: right; display: flex; gap: 8px; }

.pb-phase {
  padding: 8px 12px; margin: 6px 0;
  background: rgba(76, 154, 255, 0.08); border-left: 3px solid var(--accent);
  border-radius: 4px; color: #b8d4ff; font-weight: 700; font-size: 13px;
}
.pb-detail { color: var(--gold); font-size: 12px; }
.tl-badge.teamfight { color: #ffe1a3; border-color: rgba(255, 179, 0, 0.55); }

.eco-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.eco-item {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px;
}
.eco-item.radiant { border-left: 3px solid var(--radiant); }
.eco-item.dire { border-left: 3px solid var(--dire); }
.eco-val { font-size: 20px; font-weight: 800; }
.eco-label { color: var(--text-dim); font-size: 12px; margin-top: 2px; }
.eco-item.radiant .eco-val { color: var(--radiant); }
.eco-item.dire .eco-val { color: var(--dire); }

.chip-hot {
  background: rgba(255, 82, 82, 0.15); color: #ffb199;
  border: 1px solid rgba(255, 82, 82, 0.4); border-radius: 10px;
  font-size: 11px; padding: 1px 8px;
}

.chip {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 11px;
  font-size: 11.5px; padding: 1px 9px; color: var(--text-dim);
  display: inline-block;
}
.chip.good { color: #a5d6a7; border-color: rgba(102, 187, 106, 0.4); }
.chip.bad { color: #ffb199; border-color: rgba(255, 82, 82, 0.4); }

.tl-badge.radiant { color: var(--radiant); border-color: rgba(102, 187, 106, 0.5); }
.tl-badge.dire { color: var(--dire); border-color: rgba(239, 106, 106, 0.5); }

.pr-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.pr-card {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; border-top: 3px solid var(--border);
}
.pr-card.radiant { border-top-color: var(--radiant-dark); }
.pr-card.dire { border-top-color: var(--dire-dark); }
.pr-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pr-kda { font-weight: 700; margin-left: auto; }
.pr-stats { display: flex; gap: 10px; flex-wrap: wrap; color: var(--text-dim); font-size: 12px; margin-top: 4px; }
.pr-stats b { color: var(--text); }
.pr-phase { margin-top: 6px; display: flex; gap: 5px; flex-wrap: wrap; }
.pr-tags { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; }

/* ============ 战绩分享卡 ============ */
.share-wrap { max-width: 480px; margin: 0 auto; }
.share-card {
  background: linear-gradient(165deg, #1a0f14 0%, #120a10 60%, #160d12 100%);
  border: 1px solid #5a3a2e; border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), inset 0 0 60px rgba(120, 60, 30, 0.08);
  padding: 18px 16px 20px; color: #e7d9d3;
}
.sc-topbar { display: flex; justify-content: space-between; align-items: center; }
.sc-brand { font-weight: 800; font-size: 15px; color: #ffd9a3; letter-spacing: 1px; }
.sc-ribbon {
  margin: 10px 0 16px; text-align: center; font-size: 11.5px; color: #b08a7a;
  letter-spacing: 2px; border-top: 1px solid rgba(180, 120, 90, 0.25);
  border-bottom: 1px solid rgba(180, 120, 90, 0.25); padding: 5px 0;
}
.sc-title { margin: 4px 0 4px; text-align: center; font-size: 24px; color: #ffe9cf; font-weight: 800; letter-spacing: 2px; }
.sc-subtitle { text-align: center; color: #a58a7e; font-size: 12px; margin-bottom: 14px; }
.sc-team-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 8px; }
.sc-team-tabs button {
  background: #241418; border: 1px solid #4a2e26; color: #c9a99a;
  border-radius: 18px; padding: 6px 18px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.sc-team-tabs button.active { background: rgba(255, 179, 0, 0.16); border-color: #b98a3a; color: #ffd9a3; }
.sc-team-label { text-align: center; color: #b08a7a; font-size: 12px; margin-bottom: 12px; }

.sc-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.sc-bigcard {
  border-radius: 12px; padding: 12px 10px; text-align: center;
  background: linear-gradient(180deg, #241318 0%, #1a0e12 100%);
  border: 1px solid #5a3a2e; position: relative; overflow: hidden;
}
.sc-bigcard.gold { border-color: #b98a3a; box-shadow: 0 0 20px rgba(255, 179, 0, 0.12); }
.sc-bigcard.blue { border-color: #3a6a9a; box-shadow: 0 0 20px rgba(76, 154, 255, 0.10); }
.sc-role {
  display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 10px;
  border-radius: 10px; background: rgba(255, 179, 0, 0.15); color: #ffd9a3; margin-bottom: 8px;
}
.sc-bigcard.blue .sc-role { background: rgba(76, 154, 255, 0.15); color: #a9ccff; }
.sc-heroimg {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  border: 2px solid #b98a3a; display: block; margin: 0 auto 6px; background: #2a181c;
}
.sc-bigcard.blue .sc-heroimg { border-color: #3a6a9a; }
.sc-heroimg.ph { display: flex; align-items: center; justify-content: center; font-size: 40px; }
.sc-name { font-weight: 800; font-size: 15px; color: #ffe9cf; }
.sc-hero { color: #a58a7e; font-size: 12px; margin-bottom: 6px; }
.sc-index .pct { display: block; font-size: 30px; font-weight: 900; color: #ffd9a3; line-height: 1.1; }
.sc-bigcard.blue .sc-index .pct { color: #a9ccff; }
.sc-index .label { font-size: 11px; color: #a58a7e; }
.sc-kda { margin: 6px 0 4px; font-weight: 700; font-size: 13px; color: #e7d9d3; }
.sc-tag { font-size: 11.5px; color: #b08a7a; line-height: 1.5; }

.sc-summary {
  background: rgba(255, 179, 0, 0.06); border-left: 3px solid #b98a3a;
  border-radius: 6px; padding: 10px 12px; margin-bottom: 16px;
}
.sc-summary p { margin: 0 0 6px; font-size: 13px; line-height: 1.7; color: #e7d9d3; }
.sc-summary p:last-child { margin-bottom: 0; }

.sc-section { margin-bottom: 18px; }
.sc-sec-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.sc-chip {
  background: #2a181c; border: 1px solid #5a3a2e; color: #ffd9a3;
  border-radius: 12px; padding: 3px 12px; font-size: 12.5px; font-weight: 700;
}
.sc-trend-label { color: #ff9a9a; font-weight: 700; font-size: 13px; }
.sc-trend-row { font-size: 13.5px; color: #c9a99a; margin-bottom: 6px; }
.sc-trend-row b { color: #ffe9cf; font-size: 16px; }
.sc-trend-text { font-size: 12.5px; color: #b08a7a; line-height: 1.7; }

.sc-event { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed rgba(180, 120, 90, 0.18); }
.sc-event:last-child { border-bottom: none; }
.sc-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #ff5252;
  flex-shrink: 0; margin-top: 5px; box-shadow: 0 0 8px rgba(255, 82, 82, 0.6);
}
.sc-ev-head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.sc-ev-time { font-weight: 700; font-size: 12.5px; color: #ffe9cf; font-variant-numeric: tabular-nums; }
.sc-ev-tag { font-size: 11px; color: #b08a7a; }
.sc-ev-text { font-size: 12.5px; color: #d8c4bc; line-height: 1.6; }
.sc-ev-detail { font-size: 11.5px; color: #b08a7a; margin-top: 2px; }

.sc-statcards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.sc-statcard {
  background: linear-gradient(180deg, #241318 0%, #1a0e12 100%);
  border: 1px solid #5a3a2e; border-radius: 10px; padding: 12px 10px; text-align: center;
}
.sc-stat-label { font-size: 11.5px; color: #a58a7e; margin-bottom: 4px; }
.sc-big { font-size: 30px; font-weight: 900; color: #ffd9a3; line-height: 1.15; }
.sc-unit { font-size: 14px; color: #a58a7e; margin-left: 2px; }
.sc-grade { font-size: 12.5px; color: #ff9a9a; font-weight: 700; margin-top: 2px; }
.sc-note { font-size: 11px; color: #a58a7e; line-height: 1.5; margin-top: 2px; }

.sc-player {
  border: 1px solid #4a2e26; border-radius: 12px; padding: 12px;
  margin-bottom: 12px; background: rgba(36, 19, 24, 0.55);
}
.sc-p-head { display: flex; align-items: center; gap: 10px; }
.sc-p-img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; border: 1px solid #5a3a2e; background: #2a181c; }
.sc-p-info { flex: 1; min-width: 0; }
.sc-p-name { font-weight: 800; font-size: 14px; color: #ffe9cf; }
.sc-p-sub { font-size: 11.5px; color: #a58a7e; }
.sc-p-score { font-size: 12px; color: #c9a99a; }
.sc-p-score b { font-size: 20px; color: #ffd9a3; }
.sc-p-tag { font-size: 13px; color: #ff9a9a; font-weight: 700; margin: 8px 0 6px; }
.sc-p-items { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.sc-item {
  background: #2a181c; border: 1px solid #4a2e26; border-radius: 6px;
  padding: 2px 8px; font-size: 11.5px; color: #d8c4bc;
}
.sc-item em { color: #ffd9a3; font-style: normal; font-size: 11px; }
.sc-p-kda { font-size: 13px; font-weight: 700; color: #e7d9d3; margin-bottom: 8px; }
.sc-p-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 6px; margin-bottom: 8px; }
.sc-cell { text-align: center; }
.sc-cell label { display: block; font-size: 10.5px; color: #a58a7e; }
.sc-cell b { font-size: 13px; color: #e7d9d3; }
.sc-p-label { font-size: 11px; color: #a58a7e; margin: 4px 0 2px; }
.sc-solo { display: flex; gap: 10px; font-size: 12px; color: #c9a99a; padding: 1px 0; }
.sc-solo-time { color: #ffd9a3; font-variant-numeric: tabular-nums; }
.sc-p-multi { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.sc-p-multi .sc-multi {
  background: rgba(255, 82, 82, 0.12); border: 1px solid rgba(255, 82, 82, 0.4);
  color: #ffb199; border-radius: 10px; padding: 1px 8px; font-size: 11.5px;
}

.sc-footer { text-align: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(180, 120, 90, 0.25); }
.sc-footer-line { font-size: 14px; font-weight: 700; color: #ffe9cf; margin-bottom: 4px; }
.sc-footer-brand { font-size: 11px; color: #a58a7e; }

.share-actions { display: flex; gap: 10px; justify-content: center; margin: 14px 0 40px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .search-box { flex-direction: column; }
  .match-head .score { font-size: 22px; }
  .verdict-item { grid-template-columns: 60px 1fr; gap: 10px; }
  .file-table th:nth-child(3), .file-table td:nth-child(3) { display: none; }
}

/* ============ 团战逐人明细 ============ */
.tf-item {
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--panel-2); padding: 0; margin-bottom: 8px;
}
.tf-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 12px; cursor: pointer; list-style: none;
}
.tf-head::-webkit-details-marker { display: none; }
.tf-summary { color: var(--text-dim); font-size: 12.5px; }
.tf-expand { margin-left: auto; color: var(--text-dim); transition: transform 0.2s; display: inline-block; }
details[open] .tf-expand { transform: rotate(180deg); }
.tf-detail { padding: 0 12px 12px; border-top: 1px dashed var(--border); }
.tf-totals { margin: 8px 0; font-size: 12.5px; color: var(--text-dim); }
.tf-totals b { color: var(--text); }
.tf-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tf-table th, .tf-table td { padding: 5px 6px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.tf-table th { color: var(--text-dim); font-weight: 600; font-size: 11.5px; white-space: nowrap; }
.tf-table tr.radiant td:first-child { border-left: 3px solid var(--radiant); }
.tf-table tr.dire td:first-child { border-left: 3px solid var(--dire); }
.tf-td-wrap { max-width: 180px; color: var(--text-dim); }
.tf-side-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.tf-side-dot.radiant { background: var(--radiant); }
.tf-side-dot.dire { background: var(--dire); }

/* ============ 移动端适配 ============ */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 640px; }

@media (max-width: 640px) {
  .topbar { padding: 0 12px; height: 48px; }
  .brand { font-size: 14px; }
  .topbar nav { gap: 12px; font-size: 13px; }
  .container { padding: 12px 10px 50px; }
  .card { padding: 12px; border-radius: 8px; }
  .match-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .match-head .score { font-size: 22px; }
  .search-box { flex-direction: column; }
  .hero h1 { font-size: 20px; }
  .hero { padding: 20px 4px 4px; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; gap: 2px; }
  .tab-btn { white-space: nowrap; padding: 9px 10px; font-size: 13.5px; }
  .review-actions { float: none; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
  .tf-head { padding: 8px 10px; gap: 6px; }
  .tf-summary { font-size: 11.5px; }
  .tf-td-wrap { max-width: 140px; }
  .player-stats { font-size: 11px; gap: 6px; }
  .player-main { gap: 6px; }
  .verdict-item { grid-template-columns: 54px 1fr; padding: 10px; }
  .share-card { border-radius: 12px; padding: 14px 12px; }
  .sc-title { font-size: 21px; }
  .sc-subtitle { font-size: 11px; }
  .sc-p-grid { grid-template-columns: repeat(4, 1fr); }
  .file-table { font-size: 12px; }
  .file-table th, .file-table td { padding: 7px 6px; }
  .narrative p { line-height: 1.65; }
  .eco-grid { grid-template-columns: repeat(2, 1fr); }
  .pr-grid { grid-template-columns: 1fr; }
  .sc-statcards { grid-template-columns: 1fr 1fr; }
  .sc-big { font-size: 26px; }
}

/* ============ 改进建议 / 被抓报告 / 团战物品 ============ */
.advice-list { display: grid; gap: 8px; }
.advice-item {
  display: flex; gap: 8px; align-items: flex-start;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 9px 12px; font-size: 13px; line-height: 1.65;
}
.advice-item.radiant { border-left: 3px solid var(--radiant); }
.advice-item.dire { border-left: 3px solid var(--dire); }
.advice-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.advice-dot.radiant { background: var(--radiant); }
.advice-dot.dire { background: var(--dire); }
.fi-team { margin-bottom: 10px; }
.fi-team-title { font-weight: 700; font-size: 13px; margin: 8px 0 6px; }
.fi-team-title.radiant { color: var(--radiant); }
.fi-team-title.dire { color: var(--dire); }
.fi-player { margin-top: 4px; line-height: 1.6; }

/* ============ 职业 / 高分对局页 ============ */
.page-head { margin-bottom: 12px; }
.page-head h2 { margin: 0 0 4px; font-size: 18px; }
.pro-tabs { margin-bottom: 12px; }
.pro-match { cursor: pointer; padding: 12px; margin-bottom: 10px; transition: border-color 0.15s; }
.pro-match:hover { border-color: var(--accent); }
.pro-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.pro-id { font-weight: 700; color: var(--gold); }
.pro-meta { color: var(--text-dim); font-size: 12.5px; }
.pro-win { font-size: 12px; font-weight: 700; border-radius: 10px; padding: 1px 8px; }
.pro-win.radiant { background: rgba(102, 187, 106, 0.15); color: var(--radiant); }
.pro-win.dire { background: rgba(239, 106, 106, 0.15); color: var(--dire); }
.pro-score { margin-left: auto; font-weight: 700; font-size: 15px; color: var(--text); }
.pro-team-row { padding: 3px 0; }
.pro-players { display: flex; flex-wrap: wrap; gap: 6px; }
.pro-player {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px;
  padding: 2px 7px; font-size: 12px; max-width: 100%;
}
.pro-role { color: var(--text-dim); font-size: 10.5px; }
.pro-hero.radiant { color: var(--radiant); }
.pro-hero.dire { color: var(--dire); }
.pro-name { color: var(--text-dim); font-size: 11px; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pro-foot { margin-top: 8px; }
