:root {
  color-scheme: light;
  --ink: #15231d;
  --muted: #8b968d;
  --muted-strong: #5e6d64;
  --page: #eef2ed;
  --panel: #ffffff;
  --line: #e1e7e2;
  --line-strong: #d4ddd6;
  --header: #081b14;
  --header-2: #0d2a1f;
  --green: #159461;
  --green-dark: #073d2a;
  --green-soft: #e7f4ed;
  --gold: #f4be3b;
  --blue: #2f8bd7;
  --red: #ef3340;
  --purple: #9b73d9;
  --shadow: 0 12px 28px rgba(18, 32, 24, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--page);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input,
select {
  font: inherit;
}

.dashboard-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 24px;
  padding: 16px max(28px, calc((100vw - 1440px) / 2 + 28px)) 14px;
  color: #fff;
  background: linear-gradient(90deg, var(--header), var(--header-2));
  box-shadow: 0 12px 26px rgba(9, 24, 18, 0.18);
}

.header-main,
.header-status,
.dashboard-tabs,
.headline-team,
.ranking-head,
.section-head,
.brand-row,
.button-row,
.matchup-panel {
  display: flex;
  align-items: center;
}

.header-main {
  gap: 14px;
}

.product-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: linear-gradient(145deg, #20b778, #0c734d);
  box-shadow: 0 14px 28px rgba(21, 148, 97, 0.26);
}

.product-mark span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 65% 50%, #fff 0 22%, transparent 23%),
    linear-gradient(90deg, #fff 0 45%, #06150f 46%);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.header-main p {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.header-status {
  justify-content: end;
  gap: 12px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
  white-space: nowrap;
}

.online-dot,
.ready-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #35d28c;
  box-shadow: 0 0 0 5px rgba(53, 210, 140, 0.13);
}

.header-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.12);
}

.header-status strong {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  color: #fff;
  background: var(--green);
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(21, 148, 97, 0.26);
}

button:hover:not(:disabled) {
  filter: brightness(1.04);
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

button.secondary {
  color: var(--ink);
  background: #eef2ed;
  box-shadow: none;
}

.dashboard-tabs {
  grid-column: 1 / -1;
  gap: 14px;
  overflow-x: auto;
  padding-top: 2px;
}

.dashboard-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.66);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 900;
}

.dashboard-tabs a.active {
  color: #fff;
  background: var(--green);
}

.dashboard-tabs a span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.dashboard-tabs a:nth-child(2) span,
.dashboard-tabs a:nth-child(4) span {
  background: var(--blue);
}

.dashboard-tabs a:nth-child(3) span,
.dashboard-tabs a:nth-child(5) span {
  background: var(--gold);
}

.dashboard-tabs a:nth-child(6) span {
  background: var(--purple);
}

.app-shell {
  display: grid;
  gap: 24px;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 36px 28px 32px;
}

/* An author display rule beats the UA [hidden] style, so the router's
   hidden toggle needs an explicit override to actually hide a shell. */
.app-shell[hidden],
.detail-shell[hidden] {
  display: none !important;
}

.overview-cards {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1.1fr 1.1fr;
  gap: 18px;
}

.headline-card,
.overview-card,
.today-panel,
.today-match-card,
.upset-panel,
.upset-card,
.results-panel,
.side-card,
.control-panel,
.today-panel,
.teams-panel,
.history-panel,
.club-model-panel,
.policy-odds-panel,
.match-analysis-panel,
.trend-panel,
.national-stars-panel,
.analysis-block,
.stat-card,
.group-card,
.national-star-card,
.match-group-card,
.trend-row,
.trend-change-row,
.final-card,
.star-card,
.external-card,
.match-card,
.prob-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.headline-card {
  min-height: 150px;
  padding: 24px 26px;
  color: #d5eadc;
  background: linear-gradient(145deg, #0a3c29, #052417);
}

.headline-card p,
.overview-card p {
  color: var(--muted);
  font-weight: 900;
}

.headline-card p {
  color: #9ccbb1;
}

.headline-team {
  gap: 14px;
  margin-top: 16px;
}

.headline-team strong {
  color: #fff;
  font-size: 1.75rem;
}

.headline-card b {
  display: block;
  margin-top: 8px;
  color: var(--gold);
  font-size: 3rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.headline-card > span {
  display: block;
  margin-top: 8px;
  color: #8fc3a7;
}

.overview-card {
  display: grid;
  align-content: center;
  min-height: 150px;
  padding: 24px;
}

.today-matches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* Tomorrow is a forward-looking preview — same card layout, lighter accent. */
.tomorrow-panel .eyebrow {
  color: #7c8bb0;
}

.tomorrow-panel .today-match-card {
  border-style: dashed;
}

.today-match-card {
  display: grid;
  gap: 18px;
  padding: 24px 28px 26px;
}

.today-match-meta,
.today-match-main,
.today-probs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.today-match-meta {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.today-match-meta strong {
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--green);
  background: var(--green-soft);
}

.today-match-main {
  color: var(--ink);
  font-size: 1.14rem;
}

.today-match-main span {
  min-width: 88px;
  border-radius: 999px;
  padding: 6px 12px;
  color: #8a6418;
  background: #fff4d4;
  font-size: 0.86rem;
  font-weight: 1000;
  text-align: center;
}

.today-match-card p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.86rem;
}

.market-odds {
  display: grid;
  gap: 4px;
  border-radius: 6px;
  padding: 9px 10px;
  color: var(--muted-strong);
  background: #f7faf8;
  font-size: 0.8rem;
}

.market-odds strong {
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.4;
}

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

.forecast-summary div {
  display: grid;
  gap: 8px;
  border: 1px solid #edf2ee;
  border-radius: 6px;
  padding: 16px 18px;
  background: #fbfdfb;
}

.forecast-summary span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.forecast-summary strong {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.35;
}

.premium-panel {
  display: grid;
  gap: 18px;
  border: 1px solid #dfe8e2;
  border-radius: 8px;
  padding: 22px 24px;
  background: #fbfdfb;
}

.premium-panel.locked {
  background: #f7faf8;
}

.premium-panel.locked > div:first-child {
  align-items: flex-start;
}

.premium-panel.unlocked {
  border-color: rgba(25, 145, 95, 0.34);
  background: #f4fbf6;
}

.premium-panel > div:first-child,
.premium-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.premium-panel strong {
  color: var(--ink);
}

.premium-panel span,
.premium-panel p {
  color: var(--muted-strong);
  font-size: 0.88rem;
  line-height: 1.72;
}

.unlock-button {
  width: fit-content;
  border: 0;
  border-radius: 6px;
  padding: 12px 18px;
  color: #fff;
  background: #15945f;
  font-weight: 1000;
  cursor: pointer;
}

.unlock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.unlock-button.vip {
  color: var(--ink);
  background: #edf4ef;
}

.unified-detail {
  gap: 22px;
}

.unified-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.unified-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.unified-panel h3 {
  font-size: 1.15rem;
}

.detail-data-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.detail-data-list div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border-radius: 8px;
  background: #f4f8f5;
}

.detail-data-list dt {
  color: var(--muted);
  font-weight: 900;
}

.detail-data-list dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.score-grid div {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 8px;
  background: var(--green-soft);
}

.score-grid span {
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 900;
}

.score-grid strong {
  font-size: 1.3rem;
  color: var(--green-dark);
}

.analysis-copy {
  color: var(--muted-strong);
  line-height: 1.75;
}

.unlock-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.unlock-message {
  min-height: 1.2em;
}

.ad-slot {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 86px;
  border: 1px dashed #cfd9d2;
  border-radius: 8px;
  padding: 16px;
  color: var(--muted-strong);
  background: #f8fbf9;
  box-sizing: border-box;
}

.ad-slot .adsbygoogle {
  width: 100%;
  min-width: 250px;
  min-height: 72px;
}

.ad-slot span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.ad-slot strong {
  color: var(--ink);
}

.ad-slot-detail {
  min-height: 72px;
}

.league-today-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.league-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-strong);
  font-size: 0.88rem;
  font-weight: 900;
}

.league-filter-label select {
  min-width: 150px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
}

.platform-note {
  color: var(--muted-strong);
  font-weight: 800;
}

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

.platform-match-card,
.platform-empty {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.platform-empty {
  grid-column: 1 / -1;
  min-height: 120px;
  align-content: center;
}

.platform-empty strong,
.platform-match-main strong {
  font-size: 1.08rem;
}

.platform-empty span,
.platform-match-card p,
.platform-mini-grid,
.platform-ai-strip {
  color: var(--muted-strong);
  line-height: 1.55;
}

.platform-match-top,
.platform-match-main,
.platform-ai-strip,
.platform-lock-chip {
  display: flex;
  align-items: center;
}

.platform-match-top {
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.platform-match-top strong,
.platform-lock-chip {
  color: var(--green);
}

.platform-match-main {
  justify-content: space-between;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}

.platform-match-main span {
  min-width: 48px;
  border-radius: 999px;
  padding: 4px 12px;
  color: #8a6b17;
  background: #fff2c9;
  text-align: center;
  font-weight: 900;
}

.platform-mini-grid {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 8px 12px;
  padding: 14px;
  border-radius: 8px;
  background: #f4f8f5;
  font-size: 0.86rem;
}

.platform-mini-grid span {
  color: var(--muted);
  font-weight: 900;
}

.platform-mini-grid b {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 800;
}

.platform-ai-strip {
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-left: 3px solid var(--green);
  border-radius: 8px;
  background: var(--green-soft);
}

.platform-ai-strip span,
.platform-lock-chip {
  flex: 0 0 auto;
  font-weight: 900;
}

.platform-ai-strip b {
  min-width: 0;
  color: var(--ink);
  font-weight: 800;
}

.platform-lock-chip {
  justify-content: center;
  min-height: 38px;
  border: 1px solid #cce3d6;
  border-radius: 8px;
  background: #f5fbf8;
}

.site-footer {
  display: grid;
  gap: 18px;
  width: min(1440px, calc(100% - 56px));
  margin: 0 auto 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.site-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid #d9e4dc;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--green-dark);
  background: #f7faf8;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.site-footer section {
  display: grid;
  gap: 7px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.site-footer h2 {
  color: var(--ink);
  font-size: 1rem;
}

.site-footer p {
  max-width: 980px;
  color: var(--muted-strong);
  font-size: 0.88rem;
  line-height: 1.72;
}

.content-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 18px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.guide-copy {
  display: grid;
  align-content: start;
  gap: 12px;
}

.guide-copy h2 {
  max-width: 760px;
  color: var(--ink);
  font-size: 1.28rem;
  line-height: 1.32;
}

.guide-copy p:last-child {
  max-width: 880px;
  color: var(--muted-strong);
  font-size: 0.96rem;
  line-height: 1.8;
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.guide-grid article {
  display: grid;
  gap: 7px;
  border: 1px solid #edf2ee;
  border-radius: 6px;
  padding: 16px;
  background: #f8fbf9;
}

.guide-grid strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.guide-grid span {
  color: var(--muted-strong);
  font-size: 0.86rem;
  line-height: 1.58;
}

.upset-matches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.upset-card {
  display: grid;
  gap: 16px;
  min-height: 132px;
  padding: 22px 24px;
  box-shadow: none;
}

.upset-head,
.upset-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.upset-head span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.upset-head strong {
  color: var(--red);
  font-size: 0.88rem;
  white-space: nowrap;
}

.upset-main strong {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.28;
}

.upset-main span,
.upset-card p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.58;
}

.upset-card p {
  max-width: 92%;
}

/* Confidence picks: positive counterpart to the upset radar — green accents,
   with the #1 pick lifted to a headline state. */
.confidence-card-pick .confidence-badge {
  color: #1f9d63;
  white-space: nowrap;
}

.confidence-badge-极高,
.confidence-badge-高 {
  color: #137a4b;
}

.confidence-card-pick.confidence-top {
  border: 1px solid rgba(31, 157, 99, 0.55);
  background: linear-gradient(180deg, rgba(31, 157, 99, 0.08), rgba(31, 157, 99, 0.02));
  box-shadow: 0 8px 24px -16px rgba(31, 157, 99, 0.6);
}

.confidence-card-pick.confidence-top .upset-head span {
  color: #137a4b;
}

.today-probs {
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.today-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.recent-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.today-team-data,
.recent-form-card,
.tactic-preview,
.match-tactic-mini {
  border-radius: 6px;
  background: #f7faf8;
}

.today-team-data,
.recent-form-card {
  display: grid;
  gap: 7px;
  border: 1px solid #edf2ee;
  padding: 12px;
  font-size: 0.82rem;
}

.today-team-data strong,
.recent-form-card strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.today-team-data span,
.recent-form-card span {
  color: var(--muted-strong);
  line-height: 1.42;
}

.recent-form-card ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.match-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.match-links strong {
  margin-right: 2px;
  color: var(--ink);
  font-size: 0.86rem;
}

.match-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid #cfe6da;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--green);
  background: #f4fbf7;
  font-size: 0.8rem;
  font-weight: 900;
  text-decoration: none;
}

.match-links a:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

.tactic-preview {
  display: grid;
  gap: 10px;
  border: 1px solid #edf2ee;
  padding: 12px;
  color: var(--muted-strong);
  font-size: 0.82rem;
}

.tactic-preview div {
  display: grid;
  gap: 3px;
}

.tactic-preview strong,
.tactic-preview b {
  color: var(--ink);
}

.tactic-preview p {
  display: grid;
  gap: 3px;
  margin: 0;
  line-height: 1.5;
}

.confidence-card {
  display: flex;
  align-items: center;
  gap: 18px;
}

.overview-card strong {
  display: block;
  margin-top: 8px;
  color: #0b1612;
  font-size: 2.35rem;
  line-height: 1;
}

.overview-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.overview-card strong:has(.ready-dot) {
  display: flex;
  align-items: center;
  font-size: 1.45rem;
  line-height: 1.2;
}

.confidence-card strong {
  color: var(--green);
  font-size: 1.45rem;
  line-height: 1.35;
}

.ring {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 50%, transparent 51%),
    conic-gradient(var(--green) 0 76%, #edf2ee 76% 100%);
}

.ring span {
  margin: 0;
  color: var(--green);
  font-size: 1.9rem;
  font-weight: 1000;
}

.ready-dot {
  margin-right: 10px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 470px;
  gap: 18px;
  align-items: start;
}

.results-panel {
  overflow: hidden;
}

.ranking-head {
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
  color: #fff;
  background: linear-gradient(135deg, #082e20, #061a12);
}

.ranking-head h2 {
  color: #fff;
  font-size: 1.35rem;
}

.ranking-head p {
  margin-top: 6px;
  color: #8eb59e;
}

.ranking-head b {
  color: var(--gold);
  letter-spacing: 0.04em;
}

.top-list {
  display: grid;
  padding: 14px 24px 18px;
}

.team-row {
  display: grid;
  grid-template-columns: 42px 46px minmax(108px, 1fr) minmax(220px, 2fr) 82px;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  border-bottom: 1px solid #edf1ee;
}

.team-row:nth-child(n + 11) {
  display: none;
}

.rank {
  color: #6a8d78;
  font-size: 1.35rem;
  font-weight: 1000;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.team-row:first-child .rank {
  color: var(--gold);
}

.team-row strong {
  font-size: 1.08rem;
}

.pct {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 1000;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.bar,
.goal-track,
.confed-track,
.boost-track,
.star-meter,
.star-index-track,
.result-bars,
.weight-track {
  overflow: hidden;
  height: 13px;
  border-radius: 999px;
  background: #edf1ee;
}

.bar > div,
.boost-track > div,
.goal-track > div,
.confed-track > div,
.star-meter > div,
.star-index-track > div,
.weight-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.team-row:first-child .bar > div {
  background: linear-gradient(90deg, var(--gold), #d59d2c);
}

.side-stack {
  display: grid;
  gap: 18px;
}

.side-card {
  padding: 24px;
}

.side-card h3 {
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.side-card p {
  color: var(--muted-strong);
  font-size: 1rem;
  line-height: 1.75;
}

.weight-list,
.weight-row {
  display: grid;
  gap: 14px;
}

.weight-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted-strong);
  font-weight: 900;
}

.weight-row span {
  color: var(--green);
}

.weight-track.blue span {
  background: var(--blue);
}

.weight-track.gold span {
  background: #c99b2f;
}

.weight-track.purple span {
  background: var(--purple);
}

.update-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  color: var(--muted-strong);
  list-style: none;
}

.update-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
}

.update-list li > span:first-child {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.update-list li > span:last-child {
  flex: 1 1 auto;
  width: auto;
  height: auto;
  margin: 0;
  color: var(--muted-strong);
  background: transparent;
  line-height: 1.65;
}

.flag {
  display: inline-block;
  width: 34px;
  height: 26px;
  overflow: hidden;
  border: 1px solid #e5ebe6;
  border-radius: 4px;
  background: linear-gradient(135deg, #62a8dc 0 48%, #fff 49%);
}

.flag-argentina {
  background: linear-gradient(#72b7e8 0 33%, #fff 33% 66%, #72b7e8 66%);
}

.flag-france {
  background: linear-gradient(90deg, #1d3fab 0 33%, #fff 33% 66%, #ef3340 66%);
}

.flag-spain {
  background: linear-gradient(135deg, #c70f2e 0 44%, #ffd000 45% 74%, #c70f2e 75%);
}

.flag-england {
  background:
    linear-gradient(135deg, transparent 0 70%, #d70a28 71%),
    #fff;
}

.flag-brazil {
  background: linear-gradient(135deg, #ffdf00 0 48%, #009b3a 49%);
}

.flag-portugal {
  background: linear-gradient(135deg, #006600 0 48%, #ef2b2d 49%);
}

.flag-netherlands {
  background: linear-gradient(#ae1c28 0 33%, #fff 33% 66%, #21468b 66%);
}

.flag-germany {
  background: linear-gradient(#000 0 33%, #dd0000 33% 66%, #ffce00 66%);
}

.flag-belgium {
  background: linear-gradient(135deg, #2d2a7f 0 45%, #c81d38 46%);
}

.flag-uruguay {
  background: linear-gradient(135deg, #fff 0 46%, #6bb6e8 47%);
}

.flag-colombia {
  background: linear-gradient(#fcd116 0 50%, #003893 50% 75%, #ce1126 75%);
}

.flag-generic {
  background: linear-gradient(135deg, #63a8dc 0 48%, #fff 49%);
}

.section-head {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.eyebrow {
  margin-bottom: 5px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h2 {
  font-size: 1.3rem;
}

h3 {
  font-size: 1rem;
}

.section-head p,
#summary,
#trendSummary,
#matchAnalysisSummary,
#clubModelSummary,
#nationalStarsSummary,
#policyOddsSummary,
#historySummary {
  color: var(--muted);
  text-align: right;
}

.control-panel,
.teams-panel,
.history-panel,
.club-model-panel,
.policy-odds-panel,
.match-analysis-panel,
.trend-panel,
.national-stars-panel {
  padding: 24px;
}

.status-pill {
  min-width: 86px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  text-align: center;
  white-space: nowrap;
  font-weight: 1000;
}

.settings-grid,
.matchup-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.matchup-panel {
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted-strong);
  font-size: 0.84rem;
  font-weight: 900;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(21, 148, 97, 0.12);
}

input[type="range"] {
  padding: 0;
  accent-color: var(--green);
}

input[type="checkbox"] {
  accent-color: var(--green);
}

.toggle-label span {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
}

.toggle-label input {
  width: 18px;
  min-height: 18px;
}

.button-row {
  align-self: end;
}

.button-row button {
  width: 100%;
}

.matchup-result {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.prob-card {
  min-height: 84px;
  padding: 14px;
}

.prob-card strong {
  display: block;
  font-size: 1.65rem;
  font-variant-numeric: tabular-nums;
}

.prob-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

.history-stats,
.model-stats,
.match-stats,
.trend-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.stat-card,
.analysis-block {
  padding: 16px;
  box-shadow: none;
}

.stat-card {
  min-height: 92px;
}

.stat-card strong {
  display: block;
  font-size: 1.45rem;
}

.stat-card span,
.block-head span,
.final-card span,
.confed-row span,
.current-cup p,
.current-cup dd,
.current-cup dt,
.goal-row em,
.national-star-head span,
.national-star-card p,
.country-star-row span,
.club-power-row span,
.star-card span,
.star-card p,
.odds-row em,
.external-card span,
.model-note {
  color: var(--muted);
}

.history-layout,
.club-model-layout,
.policy-odds-layout,
.trend-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.analysis-block.wide {
  grid-column: 1 / -1;
}

.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.teams-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.group-card,
.match-group-card {
  overflow: hidden;
  box-shadow: none;
}

.group-title,
.match-group-title {
  padding: 10px 12px;
  color: #fff;
  background: var(--green-dark);
  font-weight: 1000;
}

.rating-row {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) 82px;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
}

.rating-row > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.rating-row > span em {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rating-row input {
  min-height: 34px;
  padding: 5px 7px;
  text-align: right;
}

.goal-chart,
.confed-chart,
.finals-timeline,
.insight-list,
.current-cup dl,
.national-boost-list,
.club-power-list,
.star-impact-grid,
.policy-list,
.odds-list,
.external-boost-grid,
.trend-table,
.trend-change-list,
.country-star-list {
  display: grid;
  gap: 10px;
}

.goal-row {
  display: grid;
  grid-template-columns: 46px minmax(120px, 1fr) 44px 46px;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  font-variant-numeric: tabular-nums;
}

.confed-row {
  display: grid;
  gap: 8px;
}

.confed-row > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.confed-track > div {
  background: var(--gold);
}

.finals-timeline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.final-card {
  display: grid;
  grid-template-columns: 54px minmax(100px, 1fr) 64px;
  gap: 10px;
  min-height: 124px;
  padding: 12px;
  box-shadow: none;
}

.final-card > div {
  display: grid;
  gap: 2px;
}

.final-card p {
  grid-column: 2 / -1;
  color: var(--ink);
  font-size: 0.9rem;
}

.final-year {
  grid-row: 1 / span 3;
  color: var(--green);
  font-size: 1.05rem;
  font-weight: 1000;
}

.current-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-size: 0.84rem;
  font-weight: 1000;
}

.current-cup dl {
  margin: 0;
}

.current-cup dl > div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.current-cup dd,
.model-note {
  margin: 0;
}

.current-cup p,
.model-note,
.insight-list {
  line-height: 1.55;
}

.insight-list {
  margin: 0;
  padding-left: 18px;
}

.boost-row,
.odds-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(120px, 2fr) 46px;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  font-variant-numeric: tabular-nums;
}

.odds-row {
  grid-template-columns: minmax(90px, 1fr) minmax(100px, 1.6fr) 58px 54px;
}

.boost-track.negative > div {
  background: var(--red);
}

.club-power-row {
  display: grid;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.club-power-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.star-impact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.star-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 12px;
  box-shadow: none;
}

.star-card p {
  line-height: 1.45;
}

.external-boost-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.external-card {
  display: grid;
  gap: 8px;
  min-height: 104px;
  padding: 12px;
  box-shadow: none;
}

.external-card b {
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
}

.trend-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) minmax(160px, 1fr) minmax(220px, 1.4fr) 72px;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 10px;
  box-shadow: none;
}

.trend-team {
  display: grid;
  grid-template-columns: 28px minmax(86px, 1fr);
  gap: 4px 8px;
  align-items: center;
}

.trend-team span {
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.trend-team em {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.trend-spark {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 6px;
  height: 42px;
}

.trend-point {
  display: flex;
  align-items: end;
  height: 100%;
  border-radius: 999px;
  background: #edf1ee;
}

.trend-point > div {
  width: 100%;
  min-height: 8px;
  border-radius: inherit;
  background: var(--green);
}

.trend-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(44px, 1fr));
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.trend-row b,
.trend-change-row strong {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.positive {
  color: var(--green);
}

.negative {
  color: var(--red);
}

.trend-change-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 70px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  box-shadow: none;
}

.national-stars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.national-star-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  box-shadow: none;
}

.national-star-head,
.country-star-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.national-star-head b {
  color: var(--green);
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.country-star-row {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.country-star-row b {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.country-star-row strong em {
  display: block;
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.match-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.match-list {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.match-card {
  display: grid;
  gap: 14px;
  border-color: #dfe8e2;
  border-radius: 8px;
  padding: 16px;
  box-shadow: none;
}

.match-card.completed {
  border-color: rgba(25, 145, 95, 0.26);
  background: #fbfefc;
}

.match-meta,
.match-teams,
.match-probs,
.match-read {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.match-meta span,
.match-probs,
.match-read {
  color: var(--muted);
  font-size: 0.78rem;
}

.match-meta strong {
  color: var(--green);
  font-size: 0.78rem;
}

.match-meta .status-final {
  border-radius: 999px;
  padding: 4px 8px;
  color: #fff;
  background: var(--green);
}

.match-teams {
  font-size: 0.92rem;
}

.match-teams span {
  color: var(--muted);
}

.match-teams.scoreline span {
  min-width: 58px;
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--ink);
  background: var(--gold-soft);
  text-align: center;
  font-size: 1.08rem;
  font-weight: 1000;
}

.result-bars {
  display: flex;
}

.result-segment.win-a {
  background: var(--blue);
}

.result-segment.draw {
  background: var(--gold);
}

.result-segment.win-b {
  background: var(--red);
}

.match-probs,
.match-read {
  flex-wrap: wrap;
  font-variant-numeric: tabular-nums;
}

.match-tactic-mini {
  padding: 8px 10px;
  color: var(--muted-strong);
  font-size: 0.78rem;
  line-height: 1.45;
}

.post-match-read {
  color: var(--ink);
  font-weight: 900;
}

.post-match-note {
  border-radius: 6px;
  padding: 10px;
  background: rgba(25, 145, 95, 0.08);
}

.post-match-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: 0.78rem;
}

.post-match-note p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.82rem;
  line-height: 1.55;
}

@media (max-width: 1180px) {
  .content-guide {
    grid-template-columns: 1fr;
  }

  .guide-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .overview-cards,
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }

  .results-panel {
    grid-column: 1 / -1;
  }

  .side-stack {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .dashboard-header {
    grid-template-columns: 1fr;
  }

  .header-status {
    justify-content: start;
    flex-wrap: wrap;
  }

  .overview-cards,
  .guide-grid,
  .dashboard-grid,
  .side-stack,
  .teams-grid,
  .history-stats,
  .model-stats,
  .match-stats,
  .trend-stats,
  .history-layout,
  .club-model-layout,
  .policy-odds-layout,
  .trend-layout,
  .finals-timeline,
  .star-impact-grid,
  .external-boost-grid,
  .match-groups,
  .upset-matches,
  .national-stars-grid {
    grid-template-columns: 1fr 1fr;
  }

  .analysis-block.wide {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .dashboard-header {
    position: static;
    gap: 8px;
    padding: 10px 12px;
  }

  .header-main {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
  }

  .product-mark {
    width: 42px;
    height: 42px;
  }

  .product-mark span {
    width: 15px;
    height: 15px;
  }

  h1 {
    font-size: 1.08rem;
  }

  .header-main p {
    font-size: 0.66rem;
    line-height: 1.3;
  }

  .header-status {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.78rem;
  }

  .header-status .header-divider,
  .header-status > span:nth-of-type(2),
  .header-status > span:nth-of-type(3) {
    display: none;
  }

  .header-status button {
    min-height: 38px;
    padding: 8px 14px;
  }

  .dashboard-tabs {
    gap: 8px;
    margin-inline: -12px;
    padding: 2px 12px 0;
    scroll-snap-type: x proximity;
  }

  .dashboard-tabs::-webkit-scrollbar {
    display: none;
  }

  .dashboard-tabs a {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.86rem;
    scroll-snap-align: start;
  }

  .app-shell {
    gap: 12px;
    padding: 12px;
  }

  .site-footer {
    width: calc(100% - 24px);
    margin-bottom: 12px;
    padding: 18px;
  }

  .site-footer nav {
    gap: 8px;
  }

  .site-footer nav a {
    min-height: 32px;
    padding: 0 11px;
    font-size: 0.78rem;
  }

  .content-guide {
    gap: 16px;
    padding: 20px;
  }

  .guide-copy h2 {
    font-size: 1.12rem;
  }

  .guide-grid {
    gap: 10px;
  }

  .overview-cards,
  .guide-grid,
  .dashboard-grid,
  .side-stack,
  .settings-grid,
  .matchup-panel,
  .teams-grid,
  .history-stats,
  .model-stats,
  .match-stats,
  .trend-stats,
  .history-layout,
  .club-model-layout,
  .policy-odds-layout,
  .trend-layout,
  .finals-timeline,
  .match-groups,
  .today-matches,
  .upset-matches,
  .star-impact-grid,
  .external-boost-grid,
  .national-stars-grid {
    grid-template-columns: 1fr;
  }

  .headline-card,
  .overview-card,
  .side-card,
  .control-panel,
  .today-panel,
  .upset-panel,
  .teams-panel,
  .history-panel,
  .club-model-panel,
  .policy-odds-panel,
  .match-analysis-panel,
  .trend-panel,
  .national-stars-panel {
    padding: 16px;
  }

  .overview-cards,
  .dashboard-grid,
  .side-stack,
  .today-matches,
  .upset-matches {
    gap: 12px;
  }

  .today-match-card {
    gap: 14px;
    padding: 16px;
  }

  .forecast-summary div,
  .premium-panel {
    padding: 20px;
  }

  .upset-card {
    gap: 14px;
    min-height: 0;
    padding: 22px;
  }

  .upset-main {
    gap: 10px;
  }

  .upset-card p {
    max-width: none;
  }

  .today-match-main,
  .today-probs,
  .today-data-grid,
  .recent-form-grid,
  .forecast-summary,
  .premium-panel > div:first-child,
  .premium-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .today-data-grid,
  .recent-form-grid,
  .forecast-summary {
    grid-template-columns: 1fr;
  }

  .headline-card {
    min-height: 0;
  }

  .headline-card p,
  .overview-card p {
    font-size: 0.86rem;
  }

  .headline-team {
    gap: 10px;
    margin-top: 12px;
  }

  .headline-team strong {
    font-size: 1.5rem;
  }

  .headline-card b {
    margin-top: 8px;
    font-size: 2.7rem;
  }

  .overview-card {
    min-height: 112px;
  }

  .overview-card strong {
    font-size: 2rem;
  }

  .overview-card strong:has(.ready-dot) {
    font-size: 1.3rem;
  }

  .confidence-card {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
  }

  .confidence-card strong {
    font-size: 1.18rem;
  }

  .ring {
    width: 78px;
    height: 78px;
  }

  .ring span {
    font-size: 1.55rem;
  }

  .ranking-head {
    padding: 16px;
  }

  .ranking-head h2 {
    font-size: 1.12rem;
  }

  .ranking-head p {
    font-size: 0.82rem;
  }

  .top-list {
    padding: 8px 14px 12px;
  }

  .team-row {
    grid-template-columns: 26px 34px minmax(78px, 1fr) 62px;
    gap: 10px;
    min-height: 54px;
  }

  .team-row .bar {
    grid-column: 3 / -1;
    grid-row: 2;
    width: 100%;
  }

  .team-row .pct {
    grid-column: 4;
    grid-row: 1;
  }

  .rank {
    font-size: 1.05rem;
  }

  .team-row strong {
    min-width: 0;
    overflow: hidden;
    font-size: 0.96rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pct {
    font-size: 1.02rem;
  }

  .bar,
  .goal-track,
  .confed-track,
  .boost-track,
  .star-meter,
  .star-index-track,
  .result-bars,
  .weight-track {
    height: 10px;
  }

  .flag {
    width: 30px;
    height: 22px;
  }

  .side-card h3 {
    margin-bottom: 10px;
  }

  .side-card p {
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .weight-list,
  .weight-row {
    gap: 10px;
  }

  .section-head {
    margin-bottom: 12px;
  }

  h2 {
    font-size: 1.12rem;
  }

  .settings-grid,
  .matchup-panel {
    gap: 12px;
  }

  input,
  select,
  .toggle-label span {
    min-height: 42px;
  }

  .prob-card {
    min-height: 72px;
    padding: 12px;
  }

  .prob-card strong {
    font-size: 1.35rem;
  }

  .history-stats,
  .model-stats,
  .match-stats,
  .trend-stats {
    gap: 10px;
  }

  .stat-card,
  .analysis-block {
    padding: 12px;
  }

  .stat-card {
    min-height: 78px;
  }

  .stat-card strong {
    font-size: 1.18rem;
  }

  .matchup-result {
    grid-template-columns: 1fr;
  }

  .section-head,
  .block-head,
  .confed-row > div:first-child,
  .match-meta,
  .match-teams,
  .match-read {
    align-items: flex-start;
    flex-direction: column;
  }

  .match-teams.scoreline {
    align-items: center;
    flex-direction: row;
  }

  #summary,
  #trendSummary,
  #matchAnalysisSummary,
  #clubModelSummary,
  #nationalStarsSummary,
  #policyOddsSummary,
  #historySummary {
    text-align: left;
  }

  .goal-row {
    grid-template-columns: 42px minmax(90px, 1fr) 42px;
  }

  .boost-row,
  .odds-row {
    grid-template-columns: minmax(92px, 1fr) 48px;
  }

  .boost-row .boost-track,
  .odds-row .boost-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .odds-row em {
    grid-column: 2;
    text-align: right;
  }

  .final-card {
    grid-template-columns: 52px 1fr;
  }

  .final-card p {
    grid-column: 2 / -1;
  }

  .trend-row {
    grid-template-columns: 1fr;
  }

  .trend-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trend-row b {
    text-align: left;
  }
}

/* ===== Compact group-stage rows + knockout bracket + match detail ===== */

.match-groups.compact {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.match-group-card.compact {
  padding: 14px 16px 16px;
}

.match-rows {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.match-row {
  display: grid;
  grid-template-columns: 38px 1fr auto 14px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 7px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid transparent;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.match-row:hover {
  background: var(--green-soft);
  border-color: var(--line-strong);
}

.match-row .row-id {
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--muted);
}

.match-row .row-teams {
  font-size: 0.92rem;
  font-weight: 700;
}

.match-row .row-vs {
  color: var(--muted);
  font-weight: 600;
  margin: 0 4px;
}

.match-row .row-score {
  color: var(--green-dark);
  margin: 0 4px;
}

.match-row .row-tag {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--green);
  white-space: nowrap;
}

.match-row .row-tag.hit { color: var(--green); }
.match-row .row-tag.miss { color: var(--red); }
.match-row .row-go { color: var(--muted); font-weight: 900; }

/* Knockout progression funnel */
.bracket-panel { margin-top: 18px; }

.bracket {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(140px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.bracket-col {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  display: grid;
  gap: 6px;
  align-content: start;
}

.bracket-col-head {
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--green-dark);
  text-align: center;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.bracket-team {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
}

.bracket-team b { color: var(--green); }

/* Match detail (二级页面) */
.detail-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 20px 60px;
}

.detail-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.detail-breadcrumb { font-weight: 800; color: var(--muted-strong); }

.detail-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 26px 28px;
  display: grid;
  gap: 22px;
}

.detail-teams {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.4rem;
  font-weight: 900;
}

.detail-teams span { color: var(--muted); font-size: 1rem; }
.detail-meta { color: var(--muted); margin-top: 4px; }

/* Prediction bars (live recompute target) */
.pred-bars { display: grid; gap: 8px; }

.pred-bar {
  display: grid;
  grid-template-columns: 92px 1fr 56px;
  align-items: center;
  gap: 10px;
}

.pred-bar .bar {
  background: var(--line);
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}

.pred-bar .bar i { display: block; height: 100%; background: var(--green); border-radius: 999px; }
.pred-bar .bar.draw i { background: var(--gold); }
.pred-bar b { text-align: right; font-variant-numeric: tabular-nums; }

.pred-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted-strong);
}

/* Factor panel */
.factor-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  background: var(--green-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.factor-group { display: grid; gap: 10px; align-content: start; }
.factor-group h3 { font-size: 0.82rem; font-weight: 900; color: var(--green-dark); margin: 0; }

.factor-row { display: grid; grid-template-columns: 1fr; gap: 4px; font-size: 0.82rem; }
.factor-row .factor-label { color: var(--muted-strong); font-weight: 700; }
.factor-row .factor-label em { color: var(--red); font-style: normal; font-weight: 700; }
.factor-row input[type="range"] { width: 100%; accent-color: var(--green); }
.factor-row output { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--ink); }

.factor-toggle { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700; }
.factor-toggle input { accent-color: var(--green); }

.detail-reset { margin-top: 6px; justify-self: start; }
.detail-analysis { display: grid; gap: 16px; }
.detail-missing { color: var(--muted-strong); padding: 40px 0; text-align: center; }

@media (max-width: 640px) {
  .detail-teams { font-size: 1.15rem; }
  .pred-bar { grid-template-columns: 76px 1fr 50px; }
}

/* Detail page: gated verdict vs open what-if sandbox */
.detail-section-title {
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--green-dark);
  margin: 0 0 10px;
}

.detail-section-title em {
  font-style: normal;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.8rem;
}

.detail-verdict,
.detail-sandbox {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

/* ===== Tournament map (top-of-page): group grid + knockout funnel ===== */
.tournament-map {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px 26px;
}

.map-band {
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin: 18px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.map-band:first-of-type { margin-top: 8px; }

.group-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.group-map-card {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 12px 12px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}
.group-map-card:hover {
  border-color: rgba(21, 148, 97, 0.5);
  box-shadow: 0 8px 20px -14px rgba(21, 148, 97, 0.6);
  transform: translateY(-1px);
}

.gm-head {
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--green-dark);
  margin-bottom: 4px;
}

.gm-team {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  padding: 3px 0;
  color: var(--muted-strong);
}
.gm-team .gm-rank { color: var(--muted); font-weight: 800; font-size: 0.74rem; }
.gm-team .gm-adv { font-variant-numeric: tabular-nums; color: var(--muted); }

/* Top-2 = projected to advance from the group */
.gm-team.adv {
  color: var(--ink);
  font-weight: 700;
}
.gm-team.adv .gm-name::before {
  content: "▸ ";
  color: var(--green);
}
.gm-team.adv .gm-adv { color: var(--green); font-weight: 800; }

@media (max-width: 980px) {
  .group-map { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .group-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .unified-detail-grid {
    grid-template-columns: 1fr;
  }

  .platform-match-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .league-today-panel,
  .platform-match-card,
  .unified-panel {
    padding: 16px;
  }

  .league-filter-label,
  .platform-match-main,
  .platform-ai-strip,
  .premium-panel > div:first-child,
  .premium-head {
    align-items: stretch;
    flex-direction: column;
  }

  .league-filter-label select,
  .unlock-button {
    width: 100%;
  }

  .platform-mini-grid,
  .detail-data-list div,
  .score-grid {
    grid-template-columns: 1fr;
  }
}
