:root {
  --red-950: #230406;
  --red-850: #52070d;
  --red-700: #b20f1a;
  --red-500: #ee2631;
  --rose-100: #ffe2e4;
  --gold: #f2c45d;
  --ink: #181010;
  --muted: #756465;
  --line: #ead4d5;
  --paper: #fff8f7;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(42, 5, 7, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 248, 247, 0.96), rgba(255, 248, 247, 0.9)),
    repeating-linear-gradient(135deg, rgba(178, 15, 26, 0.05) 0 2px, transparent 2px 34px),
    var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  position: relative;
}

.page-watermark {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.page-watermark span {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%) rotate(-12deg);
  color: rgba(178, 15, 26, 0.035);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: min(36vw, 440px);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.page-watermark img {
  position: absolute;
  right: -90px;
  bottom: 5vh;
  width: min(52vw, 620px);
  opacity: 0.035;
  filter: grayscale(1);
}

img {
  max-width: 100%;
  display: block;
}

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

.site-header {
  min-height: 92vh;
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(35, 4, 6, 0.98) 0%, rgba(82, 7, 13, 0.94) 48%, rgba(178, 15, 26, 0.9) 100%),
    linear-gradient(150deg, transparent 0 47%, rgba(255, 255, 255, 0.16) 47% 55%, transparent 55%),
    radial-gradient(circle at 80% 18%, rgba(242, 196, 93, 0.28), transparent 30%);
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: "FFBC";
  position: absolute;
  right: -0.06em;
  bottom: -0.22em;
  color: rgba(255, 255, 255, 0.045);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: min(37vw, 460px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  pointer-events: none;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: min(42vw, 520px);
  height: 100%;
  background:
    linear-gradient(135deg, transparent 0 34%, rgba(255, 255, 255, 0.18) 34% 43%, transparent 43% 54%, rgba(255, 255, 255, 0.1) 54% 60%, transparent 60%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 58px);
  pointer-events: none;
}

.compact-header {
  min-height: 360px;
}

.compact-header::before {
  font-size: min(30vw, 320px);
}

.topbar {
  width: min(1420px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 0 0 auto;
}

.brand-mark {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-mark img,
.crest-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.brand-fallback,
.crest-fallback {
  display: none;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-weight: 800;
}

.logo-missing .brand-mark img,
.logo-missing .crest-card img {
  display: none;
}

.logo-missing .brand-fallback,
.logo-missing .crest-fallback {
  display: block;
}

.brand strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.05;
}

.brand small {
  display: block;
  color: var(--rose-100);
  font-weight: 600;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 5px;
  min-width: 0;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
  font-size: 0.76rem;
  line-height: 1;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.nav-links a:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.menu-button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  display: none;
  place-items: center;
  padding: 10px;
}

.menu-button span {
  width: 20px;
  height: 2px;
  background: var(--white);
  display: block;
}

.hero {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0 120px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.58fr);
  gap: 54px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.page-title {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 92px;
  position: relative;
  z-index: 1;
}

.page-title h1 {
  margin: 0;
  max-width: 780px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  font-family: "Barlow Condensed", Impact, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(4rem, 7.4vw, 8rem);
  line-height: 0.86;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-text {
  max-width: 650px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 0 18px;
  font-weight: 900;
}

.button.primary {
  color: var(--white);
  background: var(--red-500);
  box-shadow: 0 12px 34px rgba(238, 38, 49, 0.32);
}

.button.secondary,
.button.compact {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.button.compact {
  color: var(--red-950);
  border-color: var(--line);
  background: var(--white);
  min-height: 42px;
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.crest-card {
  aspect-ratio: 1;
  width: min(100%, 380px);
  justify-self: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 226, 228, 0.92)),
    var(--white);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.crest-card::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(135deg, transparent 0 42%, rgba(178, 15, 26, 0.12) 42% 53%, transparent 53%);
}

.crest-card img {
  position: relative;
}

.crest-fallback {
  font-size: clamp(5rem, 12vw, 9rem);
  color: var(--white);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.quick-stats article {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
}

.quick-stats strong {
  display: block;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 2.1rem;
  line-height: 1;
}

.quick-stats span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.84rem;
  font-weight: 700;
}

.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0;
}

.home-shortcuts {
  padding: 24px 0 0;
}

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

.shortcut-buttons .button {
  text-align: center;
  border-radius: 12px;
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.92rem;
}

.intro-band {
  width: 100%;
  padding: 42px max(16px, calc((100% - 1160px) / 2));
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.65fr);
  gap: 32px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 226, 228, 0.72)),
    var(--white);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.intro-band::after {
  content: "FFBC";
  position: absolute;
  right: max(16px, calc((100% - 1160px) / 2));
  bottom: -34px;
  color: rgba(178, 15, 26, 0.06);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(5rem, 14vw, 11rem);
  font-weight: 800;
  line-height: 1;
}

.intro-band > * {
  position: relative;
  z-index: 1;
}

.intro-band h2,
.section-heading h2 {
  margin: 0;
  color: var(--red-950);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.intro-band p:last-child,
.section-heading p {
  color: var(--muted);
  line-height: 1.7;
}

.section-heading {
  margin-bottom: 30px;
  max-width: 760px;
}

.section-heading.split {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading.split > p {
  max-width: 430px;
}

.category-grid,
.majors-grid,
.rivals-grid,
.news-grid {
  display: grid;
  gap: 16px;
}

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

.institutional-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.category-card,
.major-card,
.rival-card,
.news-grid article,
.fixture-card,
.history-card,
.commission-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 35px rgba(42, 5, 7, 0.08);
  backdrop-filter: blur(6px);
}

.history-card,
.commission-card {
  padding: 24px;
}

.history-card > span,
.commission-card > span {
  color: var(--red-700);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.history-card h3,
.commission-card h3 {
  margin: 10px 0 0;
  color: var(--red-950);
  font-size: 1.55rem;
}

.history-card p {
  color: var(--muted);
  line-height: 1.7;
}

.history-card .history-place {
  margin: 8px 0 0;
  color: var(--red-700);
  font-weight: 800;
}

.commission-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.commission-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.commission-list div:last-child {
  border-bottom: 0;
}

.commission-list strong {
  color: var(--red-950);
}

.commission-list span {
  color: var(--muted);
  text-align: right;
  font-weight: 700;
}

.category-card {
  min-height: 142px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-card span,
.major-card span,
.news-grid span {
  color: var(--red-700);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.category-card h3,
.major-card h3,
.news-grid h3 {
  margin: 9px 0 0;
  font-size: 1.18rem;
}

.category-card p,
.major-card p,
.news-grid p,
.fixture-card p {
  color: var(--muted);
  line-height: 1.55;
}

.majors-section {
  width: 100%;
  padding-left: max(16px, calc((100% - 1160px) / 2));
  padding-right: max(16px, calc((100% - 1160px) / 2));
  background:
    linear-gradient(135deg, rgba(35, 4, 6, 0.98), rgba(82, 7, 13, 0.96)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 60px);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.majors-section::before {
  content: "";
  position: absolute;
  right: max(16px, calc((100% - 1160px) / 2));
  top: 50%;
  width: min(40vw, 420px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: url("assets/logos/ferro-logo.png") center / contain no-repeat;
  opacity: 0.05;
  filter: grayscale(1);
}

.majors-section > * {
  position: relative;
  z-index: 1;
}

.majors-section .section-heading h2,
.majors-section .section-heading p {
  color: var(--white);
}

.majors-section .section-heading p {
  color: rgba(255, 255, 255, 0.76);
}

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

.major-card {
  min-height: 260px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.major-card span {
  color: var(--gold);
}

.major-card p {
  color: rgba(255, 255, 255, 0.75);
}

.major-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.major-meta strong {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--red-950);
  background: var(--gold);
  font-size: 0.86rem;
}

.section-action {
  margin-top: 20px;
}

.major-competition-grid,
.people-stats-grid {
  display: grid;
  gap: 18px;
}

.major-competition-card,
.regulations-card,
.people-table-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 35px rgba(42, 5, 7, 0.08);
}

.major-competition-card {
  padding: 22px;
}

.major-competition-head span,
.people-table-card small {
  color: var(--red-700);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.major-competition-head h3,
.people-table-card h3 {
  margin: 8px 0 8px;
  color: var(--red-950);
  font-size: 1.55rem;
}

.major-competition-head p,
.zone-card p,
.regulations-card p {
  color: var(--muted);
  line-height: 1.65;
}

.zone-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.zone-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff8f8;
}

.zone-card h4 {
  margin: 0 0 10px;
  color: var(--red-950);
}

.zone-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zone-card li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.zone-card img,
.zone-card li > span:first-child {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  object-fit: contain;
}

.zone-card li > span:first-child {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--red-950);
  font-size: 0.65rem;
  font-weight: 900;
}

.regulations-card {
  padding: 24px;
}

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

.people-table-card {
  padding: 18px;
}

.people-table {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.people-row {
  display: grid;
  grid-template-columns: 30px minmax(120px, 1fr) 28px 58px;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
}

.people-row:last-child {
  border-bottom: 0;
}

.people-row strong,
.people-row b {
  color: var(--red-950);
  text-align: center;
}

.people-name {
  font-weight: 800;
  line-height: 1.2;
}

.people-club-logo {
  width: 24px;
  min-height: 24px;
  display: grid;
  place-items: center;
}

.people-club-logo img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.people-row b {
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 4px 6px;
  border-radius: 8px;
  background: #fff0f1;
}

.people-row b span {
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1;
}

.people-row b small {
  color: var(--red-700);
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

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

.rival-block + .rival-block {
  margin-top: 28px;
}

.rival-block-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.rival-block-head h3 {
  margin: 0;
  color: var(--red-950);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 2rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.rival-block-head span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  text-align: right;
  text-transform: uppercase;
}

.rival-card {
  padding: 18px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.compact-rivals {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.compact-rivals .rival-card,
.compact-rival-card {
  min-height: 86px;
  padding: 10px;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
}

.rival-logo {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff6f6;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--red-700);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
}

.compact-rivals .rival-logo,
.compact-rival-card .rival-logo {
  width: 48px;
  height: 48px;
  font-size: 1.1rem;
}

.rival-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px;
}

.rival-card h3 {
  margin: 0;
  font-size: 1rem;
}

.compact-rivals .rival-card h3,
.compact-rival-card h3 {
  font-size: 0.9rem;
  line-height: 1.15;
}

.rival-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.compact-rivals .rival-card p,
.compact-rival-card p {
  margin-top: 3px;
  font-size: 0.78rem;
  line-height: 1.25;
}

.major-page-actions {
  margin: -10px 0 22px;
}

.fixture-section {
  padding-top: 28px;
}

.fixture-list {
  display: grid;
  gap: 12px;
}

.filter-bar {
  max-width: 760px;
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}

.filter-bar.two-fields {
  max-width: 760px;
}

.filter-bar label {
  display: grid;
  gap: 8px;
  color: var(--red-950);
  font-weight: 900;
}

.filter-bar select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--red-950);
  background: var(--white);
  font: inherit;
  font-weight: 800;
}

.fixture-card {
  padding: 18px;
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.date-pill {
  border-radius: 8px;
  padding: 12px;
  background: var(--red-950);
  color: var(--white);
  text-align: center;
  font-weight: 900;
}

.date-pill strong {
  display: block;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 2rem;
  line-height: 0.9;
}

.fixture-card h3 {
  margin: 0;
}

.fixture-card p {
  margin: 6px 0 0;
}

.fixture-tag {
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--red-950);
  background: var(--rose-100);
  font-size: 0.84rem;
  font-weight: 900;
  white-space: nowrap;
}

.news-section {
  padding-top: 30px;
}

.championship-section {
  width: 100%;
  padding-left: max(16px, calc((100% - 1160px) / 2));
  padding-right: max(16px, calc((100% - 1160px) / 2));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 247, 0.96)),
    var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.sub-tabs {
  margin-bottom: 18px;
}

.sub-tabs button {
  min-height: 34px;
  font-size: 0.86rem;
}

.tabs button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  color: var(--red-950);
  background: var(--paper);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.tabs button.is-active {
  color: var(--white);
  border-color: var(--red-700);
  background: var(--red-700);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 35px rgba(42, 5, 7, 0.08);
}

.standings-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.standings-table th,
.standings-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.standings-table th {
  color: var(--red-950);
  background: #fff0f1;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.standings-table td:nth-child(2),
.standings-table th:nth-child(2) {
  text-align: left;
  min-width: 180px;
  font-weight: 900;
}

.standings-team {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.standings-team img,
.standings-team span {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  object-fit: contain;
}

.standings-team > span {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--red-950);
  font-size: 0.72rem;
}

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

.results-grid {
  display: grid;
  gap: 0;
  margin-top: 18px;
}

.round-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 35px rgba(42, 5, 7, 0.08);
}

.round-group + .round-group {
  margin-top: 14px;
}

.round-group h3 {
  margin: 0;
  padding: 10px 16px;
  color: var(--white);
  background: var(--red-950);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.match-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 116px minmax(190px, 1fr) 76px minmax(190px, 1fr) 138px;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}

.match-row:last-child {
  border-bottom: 0;
}

.match-date {
  padding-right: 12px;
  border-right: 1px solid var(--line);
  text-align: right;
}

.match-date strong,
.match-date span,
.match-meta span {
  display: block;
}

.match-date strong {
  font-size: 0.9rem;
}

.match-date span,
.match-meta span {
  color: var(--muted);
  font-size: 0.82rem;
}

.match-team {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.match-team.home {
  justify-content: flex-end;
  text-align: right;
}

.match-team.away {
  justify-content: flex-start;
}

.match-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #fff3f4;
  color: var(--red-700);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-weight: 800;
  overflow: hidden;
}

.match-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.match-score {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.match-score strong {
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
}

.pending-score strong {
  min-width: 42px;
  width: auto;
  padding: 0 8px;
  border-color: var(--line);
  color: var(--red-700);
  white-space: nowrap;
}

.match-meta {
  text-align: left;
}

.match-observation {
  margin-top: 4px;
  color: var(--red-950) !important;
  font-weight: 800;
  line-height: 1.25;
}

.empty-state {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
}

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

.news-grid article {
  padding: 22px;
  overflow: hidden;
}

.news-grid img {
  width: calc(100% + 44px);
  height: 180px;
  margin: -22px -22px 18px;
  object-fit: cover;
  background: #fff0f1;
}

.footer {
  width: 100%;
  padding: 32px max(16px, calc((100% - 1160px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--white);
  background: var(--red-950);
}

.footer p {
  margin: 0;
}

.footer-title {
  font-weight: 900;
}

.footer-copy {
  margin-top: 6px;
  color: var(--rose-100);
  font-size: 0.86rem;
}

.footer-copy a {
  color: inherit;
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--rose-100);
  font-weight: 700;
}

@media (max-width: 920px) {
  .menu-button {
    display: grid;
  }

  .nav-links {
    position: absolute;
    top: calc(100% - 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(42, 5, 7, 0.98);
  }

  .nav-open .nav-links {
    display: flex;
  }

  .hero,
  .intro-band,
  .institutional-grid,
  .section-heading.split {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 56px;
    grid-template-columns: 1fr;
  }

  .crest-card {
    width: min(100%, 300px);
  }

  .category-grid,
  .rivals-grid,
  .compact-rivals,
  .news-grid,
  .zone-grid,
  .people-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .match-row {
    grid-template-columns: 96px minmax(150px, 1fr) 70px minmax(150px, 1fr);
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .match-meta {
    grid-column: 2 / -1;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: auto;
  }

  .topbar,
  .hero,
  .section {
    width: min(100% - 24px, 1160px);
  }

  .hero {
    padding: 42px 0 74px;
  }

  h1 {
    font-size: clamp(3.5rem, 22vw, 5.2rem);
  }

  .hero-text {
    font-size: 1rem;
  }

  .quick-stats,
  .category-grid,
  .majors-grid,
  .rivals-grid,
  .compact-rivals,
  .news-grid,
  .zone-grid,
  .people-stats-grid,
  .people-row {
    grid-template-columns: 1fr;
  }

  .shortcut-buttons {
    grid-template-columns: 1fr;
  }

  .rival-block-head {
    display: grid;
    align-items: start;
  }

  .rival-block-head span {
    text-align: left;
  }

  .match-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .match-date,
  .match-meta {
    border-right: 0;
    text-align: left;
  }

  .match-team.home,
  .match-team.away {
    justify-content: flex-start;
    text-align: left;
  }

  .match-team.home .match-logo {
    order: -1;
  }

  .match-score {
    justify-content: flex-start;
  }

  .intro-band,
  .section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .section-heading.split,
  .footer {
    display: grid;
    align-items: start;
  }

  .fixture-card {
    grid-template-columns: 1fr;
  }

  .date-pill {
    width: 118px;
  }

  .fixture-tag {
    justify-self: start;
    white-space: normal;
  }

}
