:root {
  --ink: #172323;
  --muted: #687572;
  --paper: #f4f1e9;
  --surface: #fffdf8;
  --line: #d8ddd5;
  --green: #0f6b5b;
  --green-dark: #0b4b42;
  --orange: #ef704d;
  --yellow: #f3c969;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; font-size: 15px; line-height: 1.45; }
.shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(244, 241, 233, .9); }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 76px; }
.header-actions { display: flex; align-items: center; gap: 24px; }
.results-link { color: var(--green); font-size: 12px; font-weight: 700; text-decoration: none; }
.results-link:hover { color: var(--orange); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: var(--surface); background: var(--green); font-size: 13px; transform: rotate(-8deg); }
.season-label { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin: 0 6px 1px; border-radius: 50%; background: var(--orange); }
.eyebrow { margin: 0 0 10px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.page-heading { padding: 64px 0 36px; }
.page-heading h1 { margin: 0; font-family: "Barlow Condensed", sans-serif; font-size: 64px; line-height: .9; text-transform: uppercase; }
.page-heading p:last-child { max-width: 380px; margin: 18px 0 0; color: var(--muted); font-size: 16px; }
.results-page .panel { margin-bottom: 64px; }
.next-matchday { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 34px; align-items: center; margin-top: 48px; padding: 27px 32px; overflow: hidden; color: var(--surface); background: var(--green-dark); }
.next-matchday::after { position: absolute; right: -25px; bottom: -65px; width: 200px; height: 200px; border: 1px solid rgba(243, 201, 105, .4); border-radius: 50%; content: ""; }
.next-matchday h2 { font-size: 38px; line-height: 1; }
.next-matchday .eyebrow { color: var(--yellow); }
.next-date { margin: 9px 0 0; color: var(--yellow); font-size: 18px; font-weight: 700; line-height: 1.1; }
.slots { display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 24px; }
.slot { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 9px; align-items: center; }
.slot span { grid-row: span 2; color: var(--yellow); font-family: "Barlow Condensed", sans-serif; font-size: 25px; }
.slot strong { font-size: 17px; }
.slot small { color: #b6d0c8; font-size: 13px; line-height: 1.25; }
.content-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; padding: 48px 0 48px; }
.panel { padding: 27px 28px 24px; background: var(--surface); border: 1px solid var(--line); }
.panel-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 24px; }
.panel h2 { font-size: 35px; line-height: .9; }
.match-count, .table-note { color: var(--muted); font-size: 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; table-layout: fixed; }
.rank-column { width: 34px; }
.team-column { width: auto; }
.stat-column { width: 38px; }
th { padding: 0 7px 12px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-align: right; text-transform: uppercase; }
th:nth-child(2), td:nth-child(2) { text-align: left; }
th:first-child, td:first-child { padding-left: 0; text-align: left; }
td { padding: 14px 7px; border-top: 1px solid var(--line); text-align: right; vertical-align: middle; }
td:first-child { color: var(--muted); font-size: 12px; }
td:nth-child(2) { font-weight: 700; }
td:last-child { color: var(--green); font-weight: 700; }
.team-label { display: inline-flex; align-items: center; gap: 8px; }
.team-color { display: inline-block; width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: var(--team-color); }
.table-note { margin: 18px 0 0; }
.results-list { display: grid; gap: 0; }
.result { padding: 17px 0; border-top: 1px solid var(--line); }
.result:first-child { border-top: 0; padding-top: 0; }
.result-date { margin-bottom: 11px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.result-row { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.teams { display: grid; gap: 7px; font-size: 14px; }
.team-line { display: flex; justify-content: space-between; gap: 20px; }
.team-line.winner { font-weight: 700; }
.score { font-family: "Barlow Condensed", sans-serif; font-size: 20px; }
.site-footer { padding: 22px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.schedule-panel { margin-bottom: 64px; }
.schedule-list { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 42px; }
.schedule-match { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 18px; align-items: center; padding: 15px 0; border-top: 1px solid var(--line); }
.schedule-meta { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; color: var(--muted); font-size: 12px; }
.schedule-meta strong { color: var(--green); }
.schedule-teams { display: grid; grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr); gap: 8px; align-items: center; font-size: 14px; }
.schedule-teams span:last-child { text-align: right; }
.schedule-teams b { color: var(--orange); font-family: "Barlow Condensed", sans-serif; font-size: 17px; }
.site-footer .shell { display: flex; justify-content: space-between; }
@media (max-width: 760px) {
  .shell { width: min(100% - 32px, 560px); }
  .header-inner { min-height: 64px; }
  .season-label { font-size: 11px; }
  .next-matchday { grid-template-columns: 1fr; gap: 22px; padding: 24px; }
  .slots { gap: 32px; }
  .slots { grid-template-columns: 1fr 1fr; gap: 18px; }
  .content-grid { grid-template-columns: 1fr; gap: 14px; padding: 36px 0 36px; }
  .panel { padding: 24px 20px; }
  table { min-width: 0; table-layout: auto; }
  .stat-column { width: auto; }
  th, td { padding-right: 5px; padding-left: 5px; }
  th:nth-child(4), td:nth-child(4),
  th:nth-child(5), td:nth-child(5),
  th:nth-child(6), td:nth-child(6) { display: none; }
  th:first-child, td:first-child { padding-left: 0; }
  .results-panel { min-height: 280px; }
  .schedule-list { grid-template-columns: 1fr; }
  .schedule-panel { margin-bottom: 48px; }
}
@media (max-width: 430px) {
  .slots { grid-template-columns: 1fr; }
  .schedule-match { grid-template-columns: 1fr; gap: 8px; }
  .site-footer .shell { display: block; }
  .site-footer .shell span + span { display: block; margin-top: 7px; }
}
