/* TTT Hub — 五彩斑斓的黑 · 质感深色 */

:root {
  --void: #030303;
  --black: #0a0a0a;
  --surface: rgba(12, 12, 14, 0.72);
  --surface-2: rgba(18, 18, 22, 0.85);
  --glass: rgba(255, 255, 255, 0.04);
  --text: #f5f5f7;
  --text-soft: #a1a1aa;
  --text-dim: #71717a;
  --gold: #e8c547;
  --gold-dim: rgba(232, 197, 71, 0.12);
  --iris: linear-gradient(135deg, #6366f1 0%, #a855f7 25%, #ec4899 50%, #f59e0b 75%, #06b6d4 100%);
  --iris-border: linear-gradient(135deg, rgba(99,102,241,0.5), rgba(168,85,247,0.4), rgba(236,72,153,0.35), rgba(245,158,11,0.4), rgba(6,182,212,0.45));
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --radius: 14px;
  --radius-lg: 20px;
  --nav-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.35s var(--ease);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  background: var(--void);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── 五彩斑斓的黑 背景 ── */
.cosmos {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--void);
  overflow: hidden;
}

.cosmos-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: drift 20s ease-in-out infinite;
}

.cosmos-orb--1 {
  width: 50vw; height: 50vw;
  top: -15%; left: -10%;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
}

.cosmos-orb--2 {
  width: 45vw; height: 45vw;
  bottom: -20%; right: -10%;
  background: radial-gradient(circle, #ec4899 0%, transparent 70%);
  animation-delay: -7s;
}

.cosmos-orb--3 {
  width: 35vw; height: 35vw;
  top: 40%; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, #f59e0b 0%, transparent 70%);
  opacity: 0.2;
  animation-delay: -14s;
}

.cosmos-noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(3%, 2%) scale(1.05); }
  66% { transform: translate(-2%, 3%) scale(0.98); }
}

/* ── 加载 ── */
.loader {
  position: fixed;
  inset: 0;
  background: var(--void);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-frame {
  padding: 3px;
  border-radius: 50%;
  background: var(--iris-border);
}

.loader-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--black);
}

/* ── 导航 ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(3, 3, 3, 0.75);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}

.logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.nav-links {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar { display: none; }

.nav-link {
  padding: 7px 14px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-soft);
  background: var(--glass);
  border-color: var(--border);
}

.nav-link.active {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border-hover);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.08);
}

/* ── 主内容 ── */
.main {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}

.section { display: none; animation: rise 0.5s var(--ease); }
.section.active { display: block; }
#section-players.active { animation: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── 首页 ── */
.hero {
  text-align: center;
  padding: 56px 0 48px;
}

/* 首页 emblem：六边形徽章，与球员圆角头像区分 */
.hero-emblem {
  position: relative;
  width: 118px;
  height: 118px;
  margin: 0 auto 28px;
}

.hero-emblem-ring {
  position: absolute;
  inset: -4px;
  background: var(--iris-border);
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  opacity: 0.85;
  animation: emblemPulse 4s ease-in-out infinite;
}

@keyframes emblemPulse {
  0%, 100% { opacity: 0.75; filter: blur(0); }
  50% { opacity: 1; filter: blur(0.5px); }
}

.hero-emblem-core {
  position: absolute;
  inset: 6px;
  background: var(--black);
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 24px rgba(99, 102, 241, 0.12);
}

.hero-logo {
  width: 88%;
  height: 88%;
  object-fit: cover;
  display: block;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 12px;
  margin-right: -12px;
  background: linear-gradient(180deg, #fff 30%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-btn-solo { margin-bottom: 28px; }

.home-block { margin-top: 8px; }

.home-block-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  margin-bottom: 12px;
  padding-left: 4px;
}

/* 首页高级按钮 */
.home-btn-grid {
  display: grid;
  gap: 12px;
}

.home-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: left;
  color: inherit;
  font-family: inherit;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.home-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--iris);
  opacity: 0;
  transition: opacity 0.4s;
}

.home-btn:hover {
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.08);
}

.home-btn:hover::before { opacity: 0.06; }

.home-btn:active { transform: translateY(0); }

.home-btn-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold);
  background: var(--gold-dim);
  border-radius: 10px;
  border: 1px solid rgba(232, 197, 71, 0.2);
  position: relative;
  z-index: 1;
}

.home-btn-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
  z-index: 1;
}

.home-btn-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.home-btn-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.home-btn-arrow {
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--text-dim);
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.home-btn:hover .home-btn-arrow {
  color: var(--gold);
  transform: translateX(4px);
}

/* ── 页面头 ── */
.page-head {
  margin-bottom: 28px;
}

.page-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold);
  opacity: 0.8;
  margin-bottom: 8px;
}

.page-head h1 {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.page-head p {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-top: 6px;
}

.page-note {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 12px;
  font-size: 0.78rem;
  color: var(--text-dim);
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* 比赛 · 赛事切换 */
.event-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}

.event-tab {
  flex: 1;
  min-width: 100px;
  padding: 10px 14px;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.event-tab:hover { color: var(--text-soft); background: var(--glass); }

.event-tab.active {
  color: var(--text);
  background: var(--surface-2);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-hover);
}

.event-panel { display: none; animation: rise 0.35s var(--ease); }
.event-panel.active { display: block; }

.event-panel-head {
  margin-bottom: 20px;
}

.event-panel-head h2 {
  font-size: 1.1rem;
  font-weight: 600;
}

.event-panel-head p {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* ── 通用面板 ── */
.panel, .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 14px;
  backdrop-filter: blur(12px);
}

.panel-title, .card-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ── 球员 & 头像框 ── */
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 14px;
}

.player-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 14px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.player-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.avatar-wrap {
  width: 84px;
  height: 84px;
  margin: 0 auto 14px;
  padding: 2px;
  border-radius: 18px;
  background: var(--iris-border);
  transition: var(--transition);
}

.player-card:hover .avatar-wrap {
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.2);
}

.avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  background: var(--black);
}

.avatar-wrap.avatar-round {
  border-radius: 50%;
  padding: 2px;
}

.avatar-wrap.avatar-round img { border-radius: 50%; }

.avatar-wrap.avatar-lg {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
}

.player-name {
  font-size: 0.95rem;
  font-weight: 600;
}

.player-abbr {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  margin-top: 4px;
}

/* ── 统一比赛行 ── */
.match-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  transition: var(--transition);
  cursor: default;
}

.match-row.clickable { cursor: pointer; }

.match-row.clickable:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.06);
}

.match-row-index {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  min-width: 24px;
}

.match-row-body {
  flex: 1;
  min-width: 0;
}

.match-row-players {
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.match-row-meta {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.match-row-side {
  text-align: right;
  flex-shrink: 0;
}

.match-row-score {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
}

.match-row-winner {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.match-row-arrow {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-left: 8px;
  transition: var(--transition);
}

.match-row.clickable:hover .match-row-arrow {
  color: var(--gold);
  transform: translateX(3px);
}

/* ── 对阵 bracket ── */
.seg-control {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 16px;
}

.seg-btn {
  padding: 8px 20px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.seg-btn.active {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.bracket-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.tab-btn {
  padding: 8px 18px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--glass);
}

.bracket-panel { display: none; }
.bracket-panel.active { display: block; animation: rise 0.35s var(--ease); }

.bracket-zones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) { .bracket-zones { grid-template-columns: 1fr; } }

.zone-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(8px);
}

.zone-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.bracket-match {
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.bracket-match:last-child { border-bottom: none; }
.bracket-vs { color: var(--text-dim); font-size: 0.75rem; }
.bye { color: var(--text-dim); font-size: 0.78rem; }

/* 晋级图卡片 */
.bracket-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 8px 0;
}

.bracket-round {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 168px;
}

.round-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.bracket-node {
  width: 168px;
  padding: 14px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.bracket-node:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.bracket-node.final {
  border-color: rgba(232, 197, 71, 0.25);
  background: var(--gold-dim);
}

.bracket-node.champion {
  border-color: rgba(232, 197, 71, 0.35);
  box-shadow: 0 0 30px rgba(232, 197, 71, 0.08);
}

.bracket-player {
  padding: 7px 8px;
  margin: 3px 0;
  border-radius: 8px;
  font-size: 0.84rem;
}

.bracket-player.win { color: var(--gold); font-weight: 600; background: rgba(232,197,71,0.08); }
.bracket-player.lose { color: var(--text-dim); }
.bracket-player.pending { color: var(--text-dim); font-style: italic; }
.bracket-type { font-size: 0.68rem; color: var(--text-dim); margin-top: 6px; }

/* ── 团体赛 ── */
.scoreboard {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding: 8px 0 16px;
}

.team-score-block { text-align: center; }
.team-score-block .label { font-size: 0.78rem; color: var(--text-dim); margin-bottom: 4px; }
.team-score-block .score { font-size: 2.4rem; font-weight: 700; color: var(--gold); }
.vs-text { font-size: 0.78rem; color: var(--text-dim); font-weight: 600; }
.winner-banner { text-align: center; font-size: 0.88rem; color: var(--text-soft); padding-top: 8px; border-top: 1px solid var(--border); }

.teams-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

@media (max-width: 600px) { .teams-row { grid-template-columns: 1fr; } }

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(8px);
}

.team-card h3 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.team-card ul { list-style: none; }
.team-card li {
  padding: 9px 0;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
}
.team-card li:last-child { border-bottom: none; }

.team-group-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 10px;
  backdrop-filter: blur(8px);
}

.team-group-card h4 {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.team-group-card .members { display: flex; flex-wrap: wrap; gap: 6px; }

.member-chip {
  padding: 5px 12px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.84rem;
}

.member-chip.sub { color: var(--text-dim); font-style: italic; }

.hint-text {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}

/* ── 统一详情悬浮窗 ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(3, 3, 3, 0.72);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.25s ease;
}

.modal-overlay.show { display: flex; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--surface-2);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255,255,255,0.04);
  animation: modalPop 0.35s var(--ease);
  backdrop-filter: blur(16px);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 2;
}

.modal-close:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

.modal-badge {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 16px;
  opacity: 0.9;
}

.modal-body { padding-top: 4px; }

.modal.modal-player {
  max-width: 400px;
  padding: 32px 28px 28px;
}

.modal.modal-player .modal-badge { display: none; }

.player-photo-showcase {
  margin: 8px auto 20px;
  padding: 3px;
  border-radius: 20px;
  background: var(--iris-border);
  max-width: 280px;
}

.player-photo-large {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  background: var(--black);
}

.detail-player .player-name {
  font-size: 1.35rem;
  text-align: center;
}

.detail-player .player-abbr {
  text-align: center;
  margin-top: 6px;
}

/* 详情内容块 */
.detail-hero {
  text-align: center;
  margin-bottom: 28px;
}

.detail-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.detail-sub {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.detail-winner {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 16px;
  background: var(--gold-dim);
  border: 1px solid rgba(232, 197, 71, 0.25);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 500;
}

.detail-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  text-align: center;
}

.detail-score-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}

.detail-score-name {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 4px;
  word-break: break-all;
}

.detail-score-vs {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 600;
}

.detail-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.detail-table th {
  padding: 12px 10px;
  text-align: center;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text-dim);
  background: var(--glass);
  border-bottom: 1px solid var(--border);
}

.detail-table td {
  padding: 11px 10px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.detail-table tr:last-child td { border-bottom: none; }

.detail-table .win-cell { color: var(--gold); font-weight: 500; }

.detail-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.detail-empty h3 {
  font-size: 1rem;
  color: var(--text-soft);
  margin-bottom: 8px;
  font-weight: 500;
}

.detail-games-line {
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--text-soft);
  text-align: center;
  line-height: 1.8;
}

.detail-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0 4px;
}

/* ── 页脚 ── */
.footer {
  text-align: center;
  padding: 28px 24px;
  color: var(--text-dim);
  font-size: 0.78rem;
  border-top: 1px solid var(--border);
}

.footer span { color: var(--text-soft); }

/* ── 入场 ── */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; letter-spacing: 8px; margin-right: -8px; }
  .nav-link { padding: 6px 10px; font-size: 0.76rem; }
  .home-btn { padding: 16px 18px; }
  .match-row { flex-wrap: wrap; }
  .match-row-side { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; }
}
