
:root {
  color-scheme: dark;
  --bg: #02050a;
  --panel: rgba(7, 12, 21, .90);
  --panel-2: rgba(11, 18, 30, .94);
  --panel-hover: rgba(16, 25, 42, .96);
  --line: rgba(157, 170, 199, .18);
  --line-strong: rgba(172, 128, 255, .42);
  --muted: #9ba6bb;
  --text: #f6f3fb;
  --gold: #f2c96d;
  --gold-2: #ffe09a;
  --red: #ff6d73;
  --blue: #72aefc;
  --green: #52d89a;
  --cyan: #48d0df;
  --purple: #a97cff;
  --purple-2: #cbb5ff;
  --font-sans: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  --font-display: Georgia, "Noto Serif SC", "Songti SC", SimSun, serif;
}
* { box-sizing: border-box; }
html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  position: relative;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  letter-spacing: 0;
  line-height: 1.5;
  overflow-x: clip;
}
body::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: 760px;
  pointer-events: none;
  background: url("football-stadium-night.webp") center top / cover no-repeat;
  opacity: .66;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
}
a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(90,167,242,.18);
  touch-action: manipulation;
}
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--purple-2);
  outline-offset: 3px;
}
::selection { background: rgba(169,124,255,.32); color: #fff; }
.page {
  position: relative;
  z-index: 1;
  width: min(1260px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 60px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 24px;
  padding: 24px 0 26px;
  border-bottom: 1px solid var(--line);
}
.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  color: #eee5ff;
  padding: 9px 15px;
  border-radius: 6px;
  background: rgba(103, 70, 168, .16);
  font-size: 13px;
  font-weight: 800;
  box-shadow: inset 0 1px rgba(255,255,255,.04);
}
.lang-link:hover { border-color: var(--purple-2); color: #fff; background: rgba(126,82,210,.26); }
.private-link {
  border-color: rgba(190, 157, 255, .72);
  color: #fff;
  background: #6842ad;
  box-shadow: 0 10px 30px rgba(85, 49, 156, .22), inset 0 1px rgba(255,255,255,.10);
}
.detail-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.06;
}
h2 { margin: 0 0 12px; color: #f1edf8; font-family: var(--font-display); font-size: 21px; font-weight: 700; }
.subtitle, .footer, .panel p, .timeline-row span, .score-block span, .score-block small, .score-block em, .team-block p, .report-title p {
  color: var(--muted);
  line-height: 1.75;
}
.badge {
  border: 1px solid rgba(160, 172, 199, .24);
  color: #c7ccda;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
  background: rgba(7, 12, 21, .72);
  font-size: 13px;
}
.dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 20px;
  overflow: hidden;
  background: rgba(5, 10, 18, .84);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(0,0,0,.25), inset 0 1px rgba(255,255,255,.025);
  backdrop-filter: blur(16px);
}
.compact-dashboard { margin-top: 14px; margin-bottom: 0; }
.dash-cell, .panel, .final-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(16px);
}
.dash-cell {
  min-width: 0;
  min-height: 98px;
  padding: 20px 22px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}
.dash-cell:last-child { border-right: 0; }
.dash-cell span { color: var(--muted); font-size: 13px; }
.dash-cell strong { display: block; margin-top: 8px; font-family: var(--font-display); font-size: 30px; line-height: 1; }
.dashboard .dash-cell:nth-child(1) strong { color: var(--blue); }
.dashboard .dash-cell:nth-child(2) strong { color: var(--green); }
.dashboard .dash-cell:nth-child(3) strong { color: var(--red); }
.dashboard .dash-cell:nth-child(4) strong { color: var(--gold); }
.policy-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: -4px;
  margin-bottom: 18px;
  background: linear-gradient(100deg, rgba(113, 74, 185, .16), rgba(7, 12, 21, .78));
  border-color: var(--line-strong);
  box-shadow: inset 0 1px rgba(255,255,255,.035);
}
.policy-panel strong {
  color: var(--purple-2);
  white-space: nowrap;
}
.policy-panel span {
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
.access-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  background: linear-gradient(100deg, rgba(113, 74, 185, .15), rgba(7, 12, 21, .80));
  border-color: var(--line-strong);
  box-shadow: inset 0 1px rgba(255,255,255,.035);
}
.access-panel strong { color: var(--purple-2); white-space: nowrap; }
.access-panel span { color: var(--text); font-size: 14px; line-height: 1.6; }
.access-panel .access-help {
  grid-column: 2 / 4;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.access-panel .private-link {
  border-color: rgba(190, 157, 255, .72);
  color: #fff;
  background: #6842ad;
}
.league-topbar h1 {
  max-width: 760px;
}
.league-topbar {
  align-items: flex-end;
  min-height: 214px;
}
.league-topbar .subtitle {
  max-width: 760px;
  color: #b5bdd0;
}
.league-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.league-card {
  position: relative;
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(12, 19, 32, .94), rgba(5, 9, 17, .94));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.025);
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}
.league-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  width: auto;
  height: 2px;
  opacity: .9;
  background: var(--purple);
}
.league-card:hover {
  border-color: rgba(172, 128, 255, .55);
  background: var(--panel-hover);
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(0,0,0,.30), 0 0 28px rgba(121,75,203,.08);
}
.league-card.muted {
  opacity: .82;
}
.league-card.muted:hover {
  opacity: 1;
}
.league-card h2 {
  margin: 8px 0 10px;
  color: #f7f2ff;
  font-family: var(--font-display);
  font-size: 27px;
}
.league-card p {
  margin: 0;
  color: #c7d0db;
  line-height: 1.7;
  font-size: 14px;
}
.league-refresh {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.league-scope {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.league-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}
.league-status {
  color: var(--purple-2);
  font-size: 13px;
  font-weight: 900;
}
.league-card-foot strong {
  color: #eaf3ff;
  font-size: 13px;
}
.accent-blue::before { background: linear-gradient(90deg, var(--blue), var(--purple)); }
.accent-green::before { background: linear-gradient(90deg, var(--green), var(--purple)); }
.accent-cyan::before { background: linear-gradient(90deg, var(--cyan), var(--purple)); }
.accent-red::before { background: linear-gradient(90deg, var(--red), var(--purple)); }
.accent-purple::before { background: linear-gradient(90deg, var(--purple), #7344d5); }
.accent-blue .league-status { color: var(--blue); }
.accent-green .league-status { color: var(--green); }
.accent-cyan .league-status { color: var(--cyan); }
.accent-red .league-status { color: var(--red); }
.accent-purple .league-status { color: var(--purple); }
.league-empty {
  min-height: 104px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  line-height: 1.7;
  border: 1px dashed rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
}
.record-section {
  margin: 8px 0 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.record-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.record-title h2 {
  margin: 0;
  color: var(--purple-2);
  font-size: 18px;
}
.record-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.record-cell {
  min-height: 132px;
  padding: 18px 16px;
  text-align: center;
  background: linear-gradient(160deg, rgba(12, 19, 32, .94), rgba(5, 10, 18, .90));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0,0,0,.18), inset 0 1px rgba(255,255,255,.025);
}
.record-cell strong {
  display: block;
  color: var(--purple-2);
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
  margin: 6px 0 10px;
  font-variant-numeric: tabular-nums;
}
.record-cell .slash { font-size: .55em; color: #aa82fb; }
.record-cell span { display: block; color: #dfe5ec; font-size: 14px; }
.record-cell small {
  display: block;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 8px;
}
.panel, .final-panel {
  padding: 18px;
  margin-top: 14px;
  box-shadow: 0 18px 44px rgba(0,0,0,.18), inset 0 1px rgba(255,255,255,.02);
}
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.home-grid .panel { margin-top: 0; }
.schedule-list, .result-list { display: grid; gap: 10px; margin-top: 14px; }
.finished-toggle {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.finished-toggle summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 11px 13px;
  color: var(--text);
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
}
.finished-toggle summary::-webkit-details-marker { display: none; }
.finished-toggle summary::after {
  content: "+";
  color: var(--gold);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}
.finished-toggle[open] summary::after { content: "-"; }
.finished-toggle summary span {
  font-size: 16px;
  font-weight: 900;
}
.finished-toggle summary small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}
.finished-list .schedule-row {
  background: rgba(255,255,255,.03);
}
.change-list { display: grid; gap: 10px; margin-top: 14px; }
.change-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(130px, .45fr) minmax(150px, .5fr);
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  background: linear-gradient(110deg, rgba(11,18,30,.96), rgba(7,12,21,.93));
  border: 1px solid rgba(64, 169, 255, .26);
  border-radius: 8px;
}
.change-row > div:first-child span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 13px;
}
.change-pair {
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.change-pair span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.change-pair strong {
  display: block;
  color: var(--gold);
  font-size: 22px;
  margin-top: 2px;
}
.change-pair.active strong { color: var(--blue); }
.change-pair small {
  color: var(--muted);
  font-size: 12px;
}
.schedule-row {
  display: grid;
  grid-template-columns: 86px minmax(170px, .78fr) minmax(220px, .72fr) minmax(250px, 1fr) 112px;
  gap: 16px;
  align-items: center;
  padding: 13px 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}
a.schedule-row:hover {
  border-color: rgba(172,128,255,.48);
  background: var(--panel-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}
.schedule-row.disabled { opacity: .72; }
.result-cell, .prediction-cell {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}
.prediction-cell span, .prediction-cell small { display: block; }
.prediction-cell small { color: var(--muted); font-weight: 500; margin-top: 4px; }
.result-cell {
  color: var(--cyan);
  justify-self: center;
  width: 100%;
  text-align: center;
}
.result-cell .result-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  margin-bottom: 5px;
  font-weight: 700;
}
.result-cell strong {
  display: block;
  color: var(--cyan);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 900;
}
.result-card {
  padding: 13px;
  background: linear-gradient(110deg, rgba(11,18,30,.96), rgba(7,12,21,.93));
  border: 1px solid var(--line);
  border-radius: 8px;
}
.result-card, .schedule-row, .timeline-row, .external-card, .key-card, .stage-grid div {
  min-width: 0;
}
.teams, .prediction-cell, .result-cell, .status, .pick, .metric {
  min-width: 0;
}
.teams strong, .teams span, .prediction-cell span, .prediction-cell small, .status span, .status small {
  overflow-wrap: anywhere;
}
.result-card strong { display: block; font-size: 15px; }
.result-card strong a { color: var(--text); }
.result-card span, .result-card p, .result-score small { color: var(--muted); }
.result-card p { margin: 10px 0 0; font-size: 13px; }
.result-score {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-top: 8px;
}
.result-score b { color: var(--cyan); font-size: 26px; }
.timeline { display: grid; gap: 10px; margin-top: 14px; }
.timeline-row {
  display: grid;
  grid-template-columns: 86px 1fr 92px 92px 86px;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.timeline-row:hover { border-color: rgba(172,128,255,.48); background: var(--panel-hover); }
.time { color: var(--blue); font-weight: 800; font-size: 13px; }
.status { color: var(--gold); font-weight: 800; font-size: 13px; }
.status.exact-hit { color: var(--gold); }
.status.second-hit { color: var(--green); }
.status.cluster-hit { color: var(--cyan); }
.status.side-hit { color: var(--blue); }
.status.miss { color: var(--red); }
.status span, .status small { display: block; }
.status small { color: var(--muted); font-weight: 500; margin-top: 4px; }
.status .score-token.exact { color: var(--gold); }
.status .score-token.second { color: var(--green); }
.status .score-token.cluster { color: var(--cyan); }
.status .side-token { color: var(--blue); }
.status .miss-token { color: var(--red); }
.direction-note {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}
.direction-note.hit { color: var(--blue) !important; }
.direction-note.miss { color: var(--red) !important; }
.teams strong { display: block; font-size: 16px; line-height: 1.35; }
.teams span { display: block; color: var(--muted); margin-top: 4px; font-size: 13px; line-height: 1.45; }
.pick { text-align: right; font-variant-numeric: tabular-nums; }
.pick span { display: block; color: var(--text); font-weight: 800; }
.pick small { color: var(--muted); }
.muted-pick span { color: #d8dee5; }
.stage-grid, .key-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.stage-grid div, .key-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  padding: 13px;
}
.stage-grid span, .key-card span { display: block; color: var(--muted); margin-top: 6px; font-size: 13px; }
.source-panel a { color: var(--purple-2); }
.source-panel p { overflow-wrap: anywhere; }
.note { font-size: 13px; }
.external-grid { display: grid; gap: 12px; }
.external-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}
.external-card strong {
  display: block;
  color: var(--gold);
  font-size: 26px;
  margin: 6px 0;
}
.external-source { color: var(--muted); font-size: 13px; }
.external-card p { margin: 0; color: #d4dae0; }
.external-tags {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 112px;
}
.external-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.external-card a { color: #65aef5; font-size: 13px; align-self: end; }
.footer {
  display: grid;
  gap: 8px;
  text-align: center;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.footer-powered {
  color: var(--purple-2);
  font-weight: 800;
}
.icp-link {
  color: var(--muted);
  font-size: 12px;
}
.icp-link:hover { color: var(--purple-2); }
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--purple-2);
  margin-bottom: 0;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
}
.back-link:hover { border-color: var(--line-strong); background: rgba(126,82,210,.12); }
.report-title { text-align: center; margin: 12px 0 24px; }
.report-title h1 { font-size: 38px; }
.hero-card {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 340px) 1fr;
  align-items: center;
  min-height: 178px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(109,66,183,.16), transparent 37%, transparent 63%, rgba(68,112,181,.12)),
    rgba(5,10,18,.92);
  box-shadow: 0 24px 60px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.035);
  backdrop-filter: blur(18px);
}
.team-block { display: flex; flex-direction: column; gap: 8px; }
.team-block.right { align-items: flex-end; text-align: right; }
.team-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(130,88,213,.12);
  border: 1px solid var(--line-strong);
  color: var(--purple-2);
  font-weight: 800;
}
.team-block h2 { font-family: var(--font-display); font-size: 30px; margin: 0; }
.score-block { text-align: center; }
.score-block strong {
  display: block;
  color: var(--purple-2);
  font-family: var(--font-display);
  font-size: 60px;
  line-height: 1;
  margin: 8px 0;
}
.score-block em { display: block; margin-top: 10px; font-style: normal; }
.score-block .cluster-line {
  display: block;
  color: var(--cyan);
  max-width: 360px;
  margin: 4px auto 0;
}
.dimension-list { display: grid; gap: 12px; }
.dimension {
  display: grid;
  grid-template-columns: 140px 140px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}
.dim-title { font-weight: 800; }
.dim-tag {
  color: var(--green);
  font-weight: 800;
  font-size: 13px;
}
.dimension p { margin: 0; color: #d4dae0; }
.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.compact { display: grid; gap: 10px; }
.metric {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
}
.metric span { color: var(--muted); }
.metric strong { color: #d9f6ff; font-variant-numeric: tabular-nums; }
.compact .metric:nth-child(1) strong { color: var(--green); }
.compact .metric:nth-child(2) strong { color: var(--gold-2); }
.compact .metric:nth-child(3) strong { color: var(--blue); }
.compact .metric:nth-child(4) strong { color: var(--purple); }
.bar-row {
  display: grid;
  grid-template-columns: 52px 1fr 58px;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
  font-size: 13px;
}
.bar-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  overflow: hidden;
}
.bar-fill { display: block; height: 100%; border-radius: 999px; }
.bar-fill.red { background: linear-gradient(90deg, #bd352e, var(--red)); }
.bar-fill.blue { background: linear-gradient(90deg, #2f6fad, var(--blue)); }
.bar-prob { text-align: right; color: var(--cyan); font-variant-numeric: tabular-nums; }
.market-line {
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 12px;
  font-size: 13px;
}
.final-panel {
  border-color: var(--line-strong);
  background: linear-gradient(145deg, rgba(106,68,176,.12), rgba(7,12,21,.90));
}
.final-panel p { color: #e1e5e9; }
.ht-bet-panel.selected {
  border-color: rgba(255,112,112,.45);
  background: linear-gradient(135deg, rgba(255,112,112,.13), rgba(255,255,255,.025));
}
.ht-bet-panel.selected .key-card {
  border-color: rgba(255,112,112,.38);
  background: rgba(255,112,112,.075);
}
.ht-bet-panel.selected .key-card:first-child strong {
  color: #ffb0a8;
}
.live-panel {
  border-color: rgba(240,189,79,.55);
  background: linear-gradient(135deg, rgba(240,189,79,.10), rgba(255,255,255,.025));
}
.live-meta { color: var(--muted) !important; font-size: 13px; }
.live-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.live-grid div {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.18);
}
.live-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}
.live-grid strong { color: var(--text); }
.risk { font-size: 13px; }
.empty { color: var(--muted); }
@media (max-width: 900px) {
  .topbar { flex-direction: column; align-items: flex-start; }
  .top-actions { width: 100%; justify-content: space-between; }
  .dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard .dash-cell:nth-child(2) { border-right: 0; }
  .dashboard .dash-cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .home-grid, .grid.two, .grid.three { grid-template-columns: 1fr; }
  .stage-grid, .key-grid, .live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .league-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-card { grid-template-columns: minmax(0, 1fr) minmax(180px, 260px) minmax(0, 1fr); }
  .access-panel { grid-template-columns: 1fr; align-items: start; }
  .access-panel .access-help { grid-column: auto; }
  .record-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .schedule-row { grid-template-columns: 74px 1fr; align-items: start; }
  .schedule-row .time { grid-row: span 4; }
  .schedule-row .result-cell, .schedule-row .prediction-cell, .schedule-row .status { grid-column: 2; }
  .schedule-row .result-cell { justify-self: start; }
  .timeline-row { grid-template-columns: 74px 1fr; align-items: start; }
  .timeline-row .time { grid-row: span 3; }
  .timeline-row .pick, .timeline-row .status { grid-column: 2; }
  .pick { text-align: left; }
  .dimension { grid-template-columns: 130px 130px 1fr; }
  .external-card { grid-template-columns: 1fr; }
  .external-tags { flex-direction: row; flex-wrap: wrap; }
  .score-block strong { font-size: 48px; }
}
@media (max-width: 640px) {
  body::before {
    height: 520px;
    opacity: .52;
    background-position: 58% top;
  }
  .page {
    width: 100%;
    padding: 18px max(12px, env(safe-area-inset-right)) calc(34px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }
  .topbar { min-height: 0; gap: 14px; margin-bottom: 16px; padding: 12px 0 18px; }
  .top-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .top-actions .badge { grid-column: 1 / -1; }
  h1 { font-size: 28px; line-height: 1.15; }
  h2 { font-size: 18px; }
  .subtitle, .panel p, .report-title p { line-height: 1.6; }
  .subtitle { margin-bottom: 0; font-size: 14px; }
  .badge, .lang-link { width: 100%; }
  .badge { padding: 9px 10px; text-align: center; white-space: normal; }
  .lang-link { min-height: 44px; }
  .dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-bottom: 14px; }
  .dash-cell { min-height: 78px; padding: 11px 12px; }
  .dash-cell span { font-size: 12px; line-height: 1.3; }
  .dash-cell strong { margin-top: 5px; font-size: 22px; line-height: 1.1; }
  .policy-panel, .access-panel { gap: 8px; margin-bottom: 14px; }
  .policy-panel { flex-direction: column; align-items: flex-start; }
  .policy-panel strong, .access-panel strong { white-space: normal; }
  .access-panel .lang-link { margin-top: 2px; }
  .league-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 14px; }
  .league-card { min-height: 0; gap: 13px; padding: 14px 14px 13px 16px; }
  .league-card:hover { transform: none; }
  .league-card h2 { margin: 5px 0 7px; font-size: 21px; }
  .league-card p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .league-refresh {
    overflow: hidden;
    margin-top: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .league-card-foot { padding-top: 10px; }
  .record-section { margin-bottom: 14px; padding-top: 12px; }
  .record-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .record-cell { min-height: 122px; padding: 13px 9px; }
  .record-cell:last-child { grid-column: 1 / -1; min-height: 102px; }
  .record-cell strong { font-size: 32px; }
  .record-cell span { font-size: 13px; line-height: 1.35; }
  .record-cell small { font-size: 11px; line-height: 1.4; }
  .finished-toggle summary { align-items: flex-start; flex-direction: column; }
  .finished-toggle summary { padding-right: 42px; }
  .finished-toggle summary small { text-align: left; line-height: 1.45; }
  .finished-toggle summary::after { position: absolute; right: 14px; }
  .panel, .final-panel { padding: 14px; margin-top: 10px; }
  .section-head { gap: 8px; }
  .section-head p { margin-bottom: 0; font-size: 13px; }
  .schedule-list, .result-list, .timeline { gap: 8px; }
  .schedule-row {
    grid-template-columns: minmax(96px, .72fr) minmax(0, 1.28fr);
    grid-template-areas:
      "time status"
      "teams teams"
      "result prediction";
    gap: 9px 12px;
    padding: 13px;
  }
  a.schedule-row:hover { transform: none; }
  .schedule-row .time { grid-area: time; align-self: center; }
  .schedule-row .teams { grid-area: teams; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .schedule-row .result-cell {
    grid-area: result;
    align-self: stretch;
    justify-self: stretch;
    padding-right: 10px;
    border-right: 1px solid var(--line);
    text-align: left;
  }
  .schedule-row .prediction-cell { grid-area: prediction; }
  .schedule-row .status { grid-area: status; align-self: center; justify-self: end; text-align: right; }
  .teams strong { font-size: 17px; }
  .prediction-cell span { font-size: 14px; line-height: 1.4; }
  .prediction-cell small { font-size: 12px; line-height: 1.45; }
  .status { font-size: 12px; }
  .direction-note { font-size: 11px; }
  .timeline-row { grid-template-columns: 1fr; padding: 12px; gap: 7px; }
  .change-row { grid-template-columns: 1fr; gap: 8px; }
  .change-pair { border-left: 0; border-top: 1px solid var(--line); padding: 8px 0 0; }
  .timeline-row .time, .timeline-row .pick, .timeline-row .status { grid-column: auto; grid-row: auto; }
  .result-cell strong { font-size: 18px; }
  .result-score b { font-size: 24px; }
  .bar-row { grid-template-columns: 46px 1fr 48px; gap: 8px; }
  .detail-nav {
    position: sticky;
    z-index: 20;
    top: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    margin: -8px -4px 14px;
    padding: 8px 4px;
    background: rgba(8,9,11,.92);
    backdrop-filter: blur(12px);
  }
  .detail-nav .back-link { width: auto; min-width: 0; min-height: 44px; }
  .detail-nav .lang-link, .detail-nav .badge { width: auto; }
  .report-title { margin-bottom: 16px; }
  .report-title h1 { font-size: 26px; }
  .report-title p { margin: 8px 0 0; font-size: 13px; }
  .hero-card {
    grid-template-columns: minmax(0, 1fr) 118px minmax(0, 1fr);
    gap: 8px;
    min-height: 0;
    padding: 16px 10px;
  }
  .team-block { gap: 6px; min-width: 0; }
  .team-mark { width: 42px; height: 42px; font-size: 13px; }
  .team-block h2 { max-width: 100%; font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
  .team-block p { margin: 0; font-size: 11px; line-height: 1.45; }
  .score-block span { font-size: 12px; }
  .score-block strong { margin: 6px 0; font-size: 40px; }
  .score-block small { font-size: 11px; line-height: 1.4; }
  .score-block em { margin-top: 7px; font-size: 12px; line-height: 1.4; }
  .score-block .cluster-line { margin-top: 5px; }
  .dimension { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; padding: 12px; }
  .dimension p { grid-column: 1 / -1; font-size: 14px; line-height: 1.65; }
  .dim-title { font-size: 15px; }
  .dim-tag { text-align: right; }
  .stage-grid, .key-grid, .live-grid { grid-template-columns: 1fr; }
  .metric { padding: 10px 11px; }
  .source-panel p { font-size: 13px; }
  .footer { margin-top: 22px; padding-top: 18px; font-size: 12px; line-height: 1.6; }
}
@media (max-width: 360px) {
  .page { padding-left: max(10px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right)); }
  h1 { font-size: 25px; }
  .top-actions { grid-template-columns: 1fr; }
  .top-actions .badge { grid-column: auto; }
  .schedule-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "time status"
      "teams teams"
      "result result"
      "prediction prediction";
  }
  .schedule-row .result-cell { padding: 0 0 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-card { grid-template-columns: minmax(0, 1fr) 102px minmax(0, 1fr); gap: 5px; padding-inline: 8px; }
  .team-block h2 { font-size: 16px; }
  .score-block strong { font-size: 36px; }
}
