:root {
  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --fg: #1D1F25;
  --muted: #616670;
  --border: #E0E2E6;
  --accent: #0078f8;
  --accent-ink: #FFFFFF;
  --live: #cd0808;
  --hover: #F2F4F7;
  --slot: #EEF0F3;
  --lift: 0 1px 2px rgba(29, 31, 37, 0.06);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-score: "Barlow Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius-control: 6px;
  --radius-panel: 8px;
  --ease: 120ms ease;
  --page: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}

body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote,
dl,
dt,
dd {
  margin: 0;
}

ul {
  list-style: none;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.studio-note {
  margin: 0;
  padding: 7px 24px;
  background: var(--fg);
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.studio-note a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 40;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
}

.skip-link:focus {
  top: 8px;
}

/* ——— Header ——— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 12px 20px;
  min-height: 64px;
  padding: 10px 24px;
  max-width: var(--page);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--accent);
  min-width: 0;
  text-decoration: none;
}

.brand:hover {
  color: var(--accent);
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.brand__word {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 4px;
  flex: 1 1 auto;
  min-width: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--fg);
  text-decoration: none;
}

.site-nav a.is-active {
  color: var(--fg);
  font-weight: 700;
  border-bottom-color: var(--accent);
}

.site-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 0;
}

.site-search {
  flex: 1 1 180px;
  min-width: 0;
  max-width: 240px;
}

.site-search input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--bg);
  padding: 0 12px;
  color: var(--fg);
  font-size: 14px;
}

.site-search input::placeholder {
  color: var(--muted);
}

.site-search input:hover,
.site-search input:focus {
  background: var(--surface);
}

/* ——— Page frame ——— */

.page {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 32px 24px 72px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-width: 0;
}

.page-intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 62ch;
}

.page-intro h1,
.page-title {
  font-family: var(--font);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--fg);
}

.page-intro p,
.page-sub {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 62ch;
}

.live-note {
  margin: -24px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.section-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 62ch;
}

.section-head h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--fg);
}

.section-head p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  box-shadow: var(--lift);
  min-width: 0;
  overflow: hidden;
}

.panel-pad {
  padding: 24px;
}

.panel > .section-head.panel-pad {
  padding-bottom: 0;
}

.more-link {
  display: block;
  padding: 14px 20px 16px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
}

/* ——— Hero ——— */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px 40px;
  align-items: start;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  padding-top: 8px;
}

.hero__eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.hero h1 {
  font-size: clamp(32px, 4.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--fg);
  max-width: 16ch;
}

.hero__lead {
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.hero-match {
  display: flex;
  flex-direction: column;
  gap: 0;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.hero-match:hover {
  color: inherit;
  text-decoration: none;
}

.hero-match__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.hero-match__title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--fg);
}

.hero-match__meta {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.hero-match__quiet {
  margin-top: 10px;
  padding: 0 4px;
  font-size: 13px;
  color: var(--muted);
}

/* ——— Scores ——— */

.score-stack {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.score-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.score-line .code {
  font-family: var(--font-score);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.score-line .score {
  font-family: var(--font-score);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  color: var(--fg);
  white-space: nowrap;
}

.score-line.is-win .code,
.score-line.is-win .score {
  color: var(--accent);
}

.score-margin {
  margin-top: 4px;
  color: var(--live);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.score-num {
  font-family: var(--font-score);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  color: var(--fg);
  white-space: nowrap;
}

.score-num.is-win {
  color: var(--accent);
}

.live-chip {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  background: var(--live);
  color: var(--accent-ink);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ——— Lists ——— */

.match-list,
.story-list,
.series-list {
  display: flex;
  flex-direction: column;
}

.match-row,
.story,
.series-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 12px 20px;
  align-items: start;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.match-row:first-child,
.story:first-child,
.series-row:first-child {
  border-top: 0;
}

a.match-row:hover,
a.story:hover {
  background: var(--hover);
  color: inherit;
  text-decoration: none;
}

.match-row__title,
.story h3,
.series-row {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--fg);
  overflow-wrap: anywhere;
}

.match-row__result,
.match-row__when {
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.story {
  grid-template-columns: 1fr;
  gap: 6px;
}

.story h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.story p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.series-row {
  display: block;
  font-weight: 400;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  min-width: 0;
}

/* ——— House ——— */

.house-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.house-card {
  padding: 20px;
  min-width: 0;
}

.house-card h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.house-card p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.house-follow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 62ch;
}

.house-follow p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
}

/* ——— Media on home ——— */

.screen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  min-width: 0;
}

.media-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 16px 8px;
}

.media-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.media-item time,
.media-card time {
  display: block;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.01em;
}

.media-label {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.media-thumb,
.media-frame {
  position: relative;
}

.media-thumb::after,
.media-frame::after {
  content: "▶";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  line-height: 28px;
  text-align: center;
  padding-left: 2px;
}

.media-thumb {
  background: var(--slot);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.media-thumb--portrait {
  aspect-ratio: 9 / 16;
}

.media-thumb--wide {
  aspect-ratio: 16 / 9;
}

.panel-actions {
  padding: 8px 16px 16px;
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0 16px 16px;
}

.media-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  overflow: hidden;
}

.media-frame {
  background: var(--slot);
  border-bottom: 1px solid var(--border);
}

.media-frame--portrait {
  aspect-ratio: 9 / 16;
}

.media-frame--wide {
  aspect-ratio: 16 / 9;
}

.media-card time,
.media-card .media-label {
  padding: 0 12px;
}

.media-card .media-label {
  padding-top: 10px;
}

.media-card time {
  padding: 2px 12px 12px;
}

.feed-list {
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
}

.feed-list li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
}

.feed-over {
  font-family: var(--font-score);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.feed-note {
  margin: 0;
  padding: 12px 16px 16px;
  color: var(--muted);
  font-size: 13px;
}

.squad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 16px 16px 0;
}

.squad-grid h3 {
  margin: 0;
  font-size: 16px;
}

.squad-kicker {
  margin: 2px 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.squad-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.squad-grid li {
  padding: 8px 0;
  border-top: 1px solid var(--border);
}

/* ——— Closing band ——— */

.band {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.band h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.band p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 52ch;
}

.band__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.text-link {
  font-size: 14px;
  font-weight: 500;
}

/* ——— Match centre ——— */

.match-head {
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 24px;
  align-items: start;
}

.match-head__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.match-head__meta {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
}

.tabs button {
  background: none;
  border: 0;
  height: 44px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}

.tabs button:hover {
  color: var(--fg);
}

.tabs button.is-active {
  color: var(--fg);
  font-weight: 700;
  border-bottom-color: var(--accent);
}

.tab-body {
  padding: 8px 0 12px;
}

.records {
  width: 100%;
}

.records__head,
.records__row {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  gap: 12px;
  font-size: 15px;
  line-height: 1.35;
  border-top: 1px solid var(--border);
  min-width: 0;
}

.records--1 .records__head,
.records--1 .records__row {
  grid-template-columns: minmax(0, 1fr);
}

.records--3 .records__head,
.records--3 .records__row {
  grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1.4fr);
}

.records__head {
  min-height: 36px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--surface);
}

.records__row {
  color: var(--fg);
  background: var(--surface);
  text-decoration: none;
  overflow-wrap: anywhere;
}

a.records__row:hover,
.records__row:hover {
  background: var(--hover);
  color: var(--fg);
  text-decoration: none;
}

.records__row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.records__muted {
  color: var(--muted);
}

.pair-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}

.stat-box {
  padding: 16px 20px;
}

.stat-box + .stat-box {
  border-left: 1px solid var(--border);
}

.stat-box dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-box dd {
  margin-top: 6px;
  font-family: var(--font-score);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.chip:hover {
  background: var(--hover);
  text-decoration: none;
}

.chip.is-active,
.chip.is-active:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.empty {
  padding: 28px 20px 32px;
  max-width: 46ch;
}

.empty p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.empty .btn {
  margin-top: 14px;
}

/* ——— Prose ——— */

.prose {
  padding: 28px 24px 32px;
  max-width: 65ch;
}

.prose h1 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.prose h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin: 28px 0 8px;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.prose p,
.prose li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
}

.prose p + p,
.prose ul + p {
  margin-top: 12px;
}

.prose ul {
  padding-left: 18px;
  margin: 8px 0 0;
  list-style: disc;
}

.prose li + li {
  margin-top: 6px;
}

.quote {
  margin: 28px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
}

.quote p {
  font-size: 17px;
  line-height: 1.5;
  color: var(--fg);
}

.quote footer {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: none;
  border: 0;
  padding: 0;
}

.article-continue {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.prose .btn {
  margin-top: 24px;
}

/* ——— Forms ——— */

.form-panel {
  max-width: 520px;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 24px 24px;
}

.form-panel .form-stack {
  padding: 0;
}

.form-panel.panel-pad {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field span,
.field-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
}

.field input,
.field textarea,
.search-form input {
  width: 100%;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  padding: 0 12px;
  color: var(--fg);
}

.field textarea {
  height: auto;
  min-height: 120px;
  padding: 10px 12px;
  resize: vertical;
}

.field input:hover,
.field textarea:hover,
.search-form input:hover {
  background: var(--hover);
}

.password-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  height: 44px;
  padding-right: 10px;
}

.password-wrap input {
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  border: 0;
  border-radius: var(--radius-control);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--fg);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--ease), border-color var(--ease);
}

.btn:hover {
  background: var(--hover);
  color: var(--fg);
  text-decoration: none;
}

.btn-solid {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn-solid:hover {
  background: color-mix(in srgb, var(--accent) 88%, var(--fg));
  border-color: color-mix(in srgb, var(--accent) 88%, var(--fg));
  color: var(--accent-ink);
}

.btn-block {
  width: 100%;
}

.btn-quiet {
  border: 0;
  background: none;
  min-height: auto;
  height: auto;
  padding: 0;
  color: var(--accent);
  font-weight: 500;
}

.btn-quiet:hover {
  background: none;
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  margin: 2px 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.auth-switch {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.auth-switch a {
  color: var(--accent);
  font-weight: 700;
}

.search-form {
  display: flex;
  gap: 8px;
  margin: 16px 20px 12px;
  min-width: 0;
  align-items: center;
}

.search-form input {
  flex: 1 1 auto;
  min-width: 0;
}

.search-form input::placeholder {
  color: var(--muted);
}

.hit-list {
  display: flex;
  flex-direction: column;
}

.hit-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  font-size: 15px;
}

a.hit-item:hover {
  background: var(--hover);
  color: inherit;
  text-decoration: none;
}

.hit-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 2px;
}

.hit-line {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ——— Footer ——— */

.site-footer {
  margin-top: auto;
  background: var(--bg);
}

.site-footer__main {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.site-footer__inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 40px 24px 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 32px 28px;
}

.footer-col h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 14px;
}

.footer-col--brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-col--brand p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 36ch;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.site-footer__bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.site-footer__bar p {
  max-width: var(--page);
  margin: 0 auto;
  padding: 14px 24px 18px;
  color: var(--muted);
  font-size: 13px;
}

/* ——— Breakpoints ——— */

@media (min-width: 720px) {
  .media-grid--shorts,
  .media-grid--videos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }

  .house-grid,
  .split,
  .screen-grid {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1023.98px) {
  .site-header__inner {
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    flex: 1 1 100%;
    justify-content: flex-start;
  }

  .site-tools {
    margin-left: auto;
  }
}

@media (max-width: 719.98px) {
  .site-header__inner {
    flex-wrap: wrap;
    height: auto;
    min-height: 56px;
    padding: 10px 16px;
  }

  .site-nav {
    order: 3;
    flex: 1 1 100%;
    justify-content: flex-start;
  }

  .site-tools {
    order: 4;
    flex: 1 1 100%;
    margin-left: 0;
  }

  .site-search {
    max-width: none;
    flex: 1 1 auto;
  }

  .page {
    padding: 24px 16px 56px;
    gap: 32px;
  }

  .match-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .match-head {
    grid-template-columns: 1fr;
  }

  .search-form {
    flex-wrap: wrap;
    margin: 0 16px 12px;
  }

  .search-form .btn {
    width: 100%;
  }

  .records--3 .records__head,
  .records--3 .records__row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .records--3 .records__row span:last-child {
    grid-column: 1 / -1;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    padding: 32px 16px 28px;
    gap: 28px;
  }

  .footer-col--brand {
    grid-column: auto;
  }

  .site-footer__bar p {
    padding: 14px 16px 18px;
  }
}

@media (max-width: 389.98px) {
  .site-nav a {
    padding: 0 8px;
  }
}
