:root {
  --bg: #f6f7f2;
  --ink: #10151f;
  --muted: #657084;
  --line: #dfe4dc;
  --card: #ffffff;
  --green: #006b4f;
  --red: #c83f36;
  --gold: #c8902e;
  --blue: #1d4e89;
  --shadow: 0 18px 50px rgba(16, 21, 31, .10);
}
* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
main, section, .tool-section, .sub-hero, .leaderboard, .news-grid, .link-columns, .link-grid { max-width: 100%; min-width: 0; }
a { color: inherit; text-decoration: none; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(246, 247, 242, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
}
.nav a[aria-current="page"], .nav a:hover { color: #fff; background: var(--ink); }
.hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: end;
  gap: clamp(24px, 5vw, 70px);
  padding: clamp(42px, 7vw, 96px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(120deg, rgba(16, 21, 31, .78), rgba(16, 21, 31, .22)),
    url("https://images.unsplash.com/photo-1517927033932-b3d18e61fb3a?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: #fff;
}
.hero h1, .sub-hero h1 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(38px, 8vw, 86px);
  line-height: 1.02;
  letter-spacing: 0;
}
.hero p { max-width: 760px; color: rgba(255,255,255,.86); font-size: 18px; line-height: 1.8; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 18px;
  min-height: 44px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.button.primary { border-color: var(--red); background: var(--red); color: #fff; }
.expert-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.favorite-button {
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 900;
}
.share-button { font-weight: 900; }
.site-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 30;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(16, 21, 31, .92);
  color: #fff;
  font-weight: 800;
  text-align: center;
  box-shadow: var(--shadow);
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.site-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.live-panel {
  padding: 22px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.14);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.live-panel span, .live-panel small { display: block; color: rgba(255,255,255,.72); }
.live-panel strong { display: block; margin: 8px 0; font-size: 30px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 22px clamp(18px, 5vw, 72px) 0;
}
.stat, .expert-toolbar {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(16, 21, 31, .06);
}
.stat { padding: 18px; }
.stat span, .label { display: block; color: var(--muted); font-size: 13px; }
.stat strong { display: block; margin-top: 6px; font-size: 28px; }
.tool-section { padding: 42px clamp(18px, 5vw, 72px); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}
.section-head h2 { margin: 0; font-size: clamp(26px, 4vw, 44px); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
input, select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.match-list { display: grid; gap: 12px; }
.match-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 130px minmax(180px, .55fr);
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
}
.datebox strong, .score strong { display: block; font-size: 20px; }
.datebox span, .match-meta, .venue, .status { color: var(--muted); font-size: 13px; }
.teams { display: grid; gap: 8px; }
.team-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.team-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef3ef;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}
.score {
  display: grid;
  gap: 8px;
}
.score-board {
  display: grid;
  gap: 6px;
}
.score-board div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  padding: 4px 8px;
  background: #f4f7f2;
}
.score-board span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}
.score-board strong {
  text-align: right;
  color: var(--ink);
  font-size: 22px;
}
.score-board.pending {
  place-items: start;
  padding: 6px 8px;
  background: #f4f7f2;
}
.score-board.pending span {
  color: var(--muted);
  font-weight: 800;
}
.score-board.pending strong {
  text-align: left;
  font-size: 18px;
}
.status[data-state="post"] { color: var(--green); }
.status[data-state="in"] { color: var(--red); font-weight: 800; }
.sub-hero {
  padding: clamp(46px, 8vw, 92px) clamp(18px, 5vw, 72px) 32px;
  background: linear-gradient(135deg, #10262b, #1d4e89 48%, #c83f36);
  color: #fff;
}
.sub-hero p { max-width: 760px; color: rgba(255,255,255,.84); line-height: 1.8; }
.expert-toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 14px;
  margin: 22px clamp(18px, 5vw, 72px) 0;
  padding: 16px;
}
.expert-toolbar strong { display: block; margin-top: 4px; }
.leaderboard { display: grid; gap: 10px; }
.leaderboard-pager { margin-top: 12px; border-top: 1px solid var(--line); }
.expert-row {
  display: grid;
  grid-template-columns: 54px minmax(190px, 1fr) 96px 96px 130px minmax(170px, .7fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
}
.expert-row > *,
.prediction-row > *,
.link-columns > *,
.link-grid > *,
.news-grid > * { min-width: 0; }
.expert-row[hidden] { display: none !important; }
.prediction-row {
  grid-template-columns: 54px minmax(190px, .9fr) 96px minmax(280px, 1.4fr) minmax(100px, .35fr);
}
.day-picks {
  display: grid;
  gap: 5px;
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.45;
}
.day-picks span {
  display: block;
  padding: 5px 8px;
  border-radius: 8px;
  background: #f4f7f2;
}
.day-picks strong { font-size: 15px; }
.day-picks em {
  color: var(--blue);
  font-style: normal;
  font-weight: 800;
}
.compact-section { padding-bottom: 10px; }
.focus-matches { display: grid; gap: 10px; }
.focus-match {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(130px, .4fr) 110px;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
}
.focus-match strong, .focus-match small { display: block; }
.focus-match small { color: var(--muted); margin-top: 4px; }
.rank {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}
.expert-name strong, .expert-name small {
  display: block;
  overflow-wrap: anywhere;
}
.expert-name small, .muted { color: var(--muted); }
.text-link { color: var(--blue); font-weight: 800; }
.view-button {
  display: inline-grid;
  gap: 2px;
  min-width: 108px;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(16, 21, 31, .12);
  text-align: center;
}
.view-button span {
  color: rgba(255,255,255,.72);
  font-size: 11px;
  font-weight: 800;
}
.view-button strong {
  font-size: 14px;
  line-height: 1.2;
}
.view-button:hover {
  background: var(--blue);
  border-color: var(--blue);
}
.meter {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #e9ece6;
}
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--gold)); }
.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
}
.prediction-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}
.prediction-table th,
.prediction-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prediction-table th {
  color: var(--muted);
  background: #f0f3ee;
  font-size: 13px;
}
.prediction-table tr[hidden] { display: none !important; }
.prediction-table tr:hover td { background: #fafbf8; }
.table-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 0;
}
.pager-info {
  color: var(--muted);
  font-size: 13px;
}
.pager-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.pager-actions button,
.pager-actions select {
  min-height: 36px;
  padding: 0 10px;
  color: var(--ink);
  background: #f8faf6;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}
.pager-actions button:disabled {
  cursor: not-allowed;
  color: #9aa3ad;
  background: #f0f3ee;
}
.pager-page {
  min-width: 54px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.news-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  min-height: 220px;
  background: #fff;
  border: 1px solid var(--line);
}
.news-card h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}
.news-card h2 a { color: var(--ink); }
.news-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.news-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.news-meta span {
  color: var(--blue);
  font-weight: 900;
}
.news-source { color: var(--green); font-size: 13px; font-weight: 800; }
.featured-news {
  grid-column: span 2;
  min-height: 260px;
  background: #f8faf6;
}
.featured-news h2 { font-size: 28px; }
.internal-links {
  background: #fff;
  border-top: 1px solid var(--line);
}
.link-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 18px;
}
.link-columns h3 {
  margin: 0 0 12px;
  font-size: 18px;
}
.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.link-card {
  display: block;
  min-width: 0;
  min-height: 86px;
  padding: 13px 14px;
  color: var(--ink);
  background: #f8faf6;
  border: 1px solid var(--line);
}
.link-card:hover {
  border-color: rgba(29, 78, 137, .35);
  box-shadow: 0 8px 20px rgba(16, 21, 31, .06);
}
.link-card strong,
.link-card span {
  display: block;
}
.link-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 15px;
}
.link-card span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.highlight-link {
  grid-column: 1 / -1;
  background: #eef5f4;
}
.site-map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.site-map-links a {
  padding: 8px 12px;
  color: var(--blue);
  font-weight: 900;
  background: #f4f7f2;
  border: 1px solid var(--line);
}
.site-footer {
  padding: 26px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.site-footer p { margin: 6px 0; }
@media (max-width: 900px) {
  .site-header, .section-head { align-items: flex-start; flex-direction: column; }
  .site-header { gap: 12px; padding: 12px 14px; }
  .nav { width: 100%; justify-content: flex-start; }
  .expert-actions { width: 100%; justify-content: flex-start; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .stats-grid, .expert-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .match-card, .expert-row, .focus-match, .news-grid, .link-columns, .link-grid { grid-template-columns: 1fr; }
  .featured-news { grid-column: auto; }
  .table-wrap {
    overflow: visible;
    background: transparent;
    border: 0;
  }
  .prediction-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
  }
  .prediction-table thead { display: none; }
  .prediction-table,
  .prediction-table tbody,
  .prediction-table tr,
  .prediction-table td {
    display: block;
    width: 100%;
  }
  .prediction-table tr {
    padding: 4px 0;
    background: #fff;
    border: 1px solid var(--line);
  }
  .prediction-table td {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #eef1eb;
  }
  .prediction-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
  }
  .prediction-table td:last-child { border-bottom: 0; }
  .prediction-table tr:hover td { background: transparent; }
  .table-pager {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 8px;
    border-top: 1px solid var(--line);
  }
  .pager-actions { justify-content: flex-start; }
  .filters { width: 100%; justify-content: stretch; }
  input, .filters select { width: 100%; }
  .pager-actions select { width: auto; }
}
@media (max-width: 560px) {
  .stats-grid, .expert-toolbar { grid-template-columns: 1fr; }
  .hero h1, .sub-hero h1 { font-size: 34px; overflow-wrap: anywhere; }
  .tool-section { padding-left: 14px; padding-right: 14px; }
  .sub-hero { padding-left: 14px; padding-right: 14px; }
  .expert-row { padding: 14px; }
  .expert-actions .button { flex: 1 1 150px; text-align: center; }
}

/* Branded mirror header */
.branded-header { justify-content: space-between; }
.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 900;
  white-space: nowrap;
}
.site-brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #07111f;
  background: linear-gradient(135deg, #2dd4bf, #facc15);
  box-shadow: 0 10px 24px rgba(45, 212, 191, .22);
  font-weight: 900;
}
.branded-header .nav a { font-weight: 800; }
@media (max-width: 900px) {
  .branded-header { align-items: flex-start; }
  .site-brand { min-height: 38px; }
}
