:root {
  color-scheme: light;
  --bg: #f4f7f5;
  --surface: #ffffff;
  --surface-soft: #eef4f1;
  --ink: #13231d;
  --muted: #5f6f68;
  --line: #d7e2dd;
  --accent: #0f8f6a;
  --accent-2: #d64c31;
  --accent-3: #2457a6;
  --gold: #c8942d;
  --shadow: 0 18px 45px rgba(16, 35, 29, 0.1);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(215, 226, 221, 0.85);
  background: rgba(244, 247, 245, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 240px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--ink) 0 8%, transparent 9%),
    conic-gradient(
      from 0deg,
      #ffffff 0 16%,
      var(--accent) 16% 32%,
      #ffffff 32% 48%,
      var(--accent-2) 48% 64%,
      #ffffff 64% 80%,
      var(--accent-3) 80% 100%
    );
  box-shadow: inset 0 0 0 6px #ffffff;
}

.brand h1,
.hero-copy h2,
.section-heading h2,
.panel-header h2,
.side-panel h2 {
  margin: 0;
  line-height: 1.08;
}

.brand h1 {
  font-size: clamp(18px, 2vw, 24px);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #30453d;
  font-size: 14px;
  font-weight: 700;
}

.top-nav a {
  padding: 9px 12px;
  border-radius: 8px;
}

.top-nav a:hover {
  background: var(--surface-soft);
}

main {
  display: grid;
  gap: 42px;
  padding: 0 clamp(18px, 4vw, 56px) 48px;
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: stretch;
  gap: 28px;
  min-height: 420px;
  margin: 26px calc(clamp(18px, 4vw, 56px) * -1) 0;
  padding: clamp(30px, 6vw, 72px) clamp(18px, 4vw, 56px);
  background:
    linear-gradient(120deg, rgba(15, 143, 106, 0.14), transparent 55%),
    linear-gradient(90deg, #f7fbf9 0%, #edf4f1 100%);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  max-width: 720px;
}

.hero-copy h2 {
  max-width: 780px;
  font-size: clamp(38px, 6vw, 78px);
}

.hero-copy p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.75;
}

.pitch-visual {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid rgba(19, 35, 29, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px) 0 0 /
      42px 42px,
    linear-gradient(0deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px) 0 0 /
      42px 42px,
    linear-gradient(135deg, #1f7a5d, #114f45);
  box-shadow: var(--shadow);
}

.pitch-visual::before,
.pitch-visual::after,
.pitch-line {
  position: absolute;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.72);
  content: "";
}

.pitch-visual::before {
  inset: 22px;
}

.pitch-visual::after {
  left: 50%;
  top: 50%;
  width: 104px;
  height: 104px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.pitch-line.center {
  left: 50%;
  top: 22px;
  bottom: 22px;
  border-width: 0 0 0 2px;
}

.pitch-line.box-left,
.pitch-line.box-right {
  top: 28%;
  width: 92px;
  height: 44%;
}

.pitch-line.box-left {
  left: 22px;
  border-left: 0;
}

.pitch-line.box-right {
  right: 22px;
  border-right: 0;
}

.heat {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  filter: blur(5px);
  opacity: 0.75;
}

.heat-a {
  left: 18%;
  top: 18%;
  background: rgba(214, 76, 49, 0.76);
}

.heat-b {
  right: 20%;
  bottom: 16%;
  background: rgba(200, 148, 45, 0.74);
}

.heat-c {
  left: 47%;
  top: 52%;
  background: rgba(36, 87, 166, 0.62);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.status-strip div {
  padding: 18px;
  background: var(--surface);
}

.label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.section-grid,
.detail-layout,
.glossary-section {
  display: grid;
  gap: 18px;
}

.section-heading {
  display: grid;
  gap: 7px;
  max-width: 820px;
}

.section-heading h2,
.panel-header h2,
.side-panel h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.section-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.chip {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: #314941;
  cursor: pointer;
}

.chip:hover,
.chip.is-active {
  border-color: rgba(15, 143, 106, 0.55);
  background: #e3f4ee;
  color: #07573f;
}

.match-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 14px;
}

.match-card {
  display: grid;
  gap: 18px;
  min-height: 240px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(16, 35, 29, 0.06);
  cursor: pointer;
}

.match-card:hover,
.match-card.is-selected {
  border-color: rgba(15, 143, 106, 0.72);
  transform: translateY(-2px);
}

.match-meta,
.teams,
.metric-row,
.panel-header,
.odds-line,
.model-row,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.match-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.teams {
  align-items: flex-start;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
}

.versus {
  color: var(--accent-2);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signal {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 8px;
  background: #f6ead2;
  color: #7a4f05;
  font-size: 12px;
  font-weight: 900;
}

.metric-stack {
  display: grid;
  gap: 9px;
}

.metric-row {
  min-height: 32px;
  color: var(--muted);
  font-size: 13px;
}

.metric-row strong {
  color: var(--ink);
  font-size: 18px;
}

.bar {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3ece8;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.detail-layout {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  align-items: start;
}

.analysis-panel,
.side-panel,
.table-wrap,
.glossary-grid article,
.disclaimer {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(16, 35, 29, 0.06);
}

.analysis-panel,
.side-panel {
  padding: clamp(18px, 3vw, 28px);
}

.panel-header {
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.risk-badge {
  min-width: 86px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #e3f4ee;
  color: #07573f;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.detail-block {
  display: grid;
  gap: 11px;
  min-height: 166px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.detail-block h3,
.glossary-grid h3 {
  margin: 0;
  font-size: 16px;
}

.odds-line,
.model-row {
  color: var(--muted);
  font-size: 14px;
}

.odds-line strong,
.model-row strong {
  color: var(--ink);
  text-align: right;
  overflow-wrap: anywhere;
}

.empty-state {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.model-notes-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.model-notes-list li {
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  color: #344941;
  line-height: 1.65;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  background: #edf4f1;
  color: #2d453d;
  font-size: 13px;
}

td {
  font-size: 14px;
}

tr:last-child td {
  border-bottom: 0;
}

.positive {
  color: var(--accent);
  font-weight: 900;
}

.negative {
  color: var(--accent-2);
  font-weight: 900;
}

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

.glossary-grid article {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.glossary-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.disclaimer {
  padding: 18px;
  color: #4d463b;
  line-height: 1.75;
  background: #fff7e8;
}

footer {
  flex-wrap: wrap;
  padding: 24px clamp(18px, 4vw, 56px) 40px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

@media (max-width: 1040px) {
  .hero-band,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .match-list,
  .glossary-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-band {
    min-height: auto;
  }

  .pitch-visual {
    min-height: 240px;
  }

  .status-strip,
  .match-list,
  .detail-grid,
  .glossary-grid {
    grid-template-columns: 1fr;
  }

  .teams {
    font-size: 20px;
  }

  .panel-header {
    flex-direction: column;
  }
}
