/*
Theme Name: Heron United FC
Theme URI: https://www.facebook.com/HeronUnited/
Author: Heron United FC
Description: A WordPress theme for Heron United Football Club with a sharper homepage, player recruitment, latest result, match report area, Facebook and YouTube sections, a combined Squad & Stats page, Champions page and Upcoming News holding page.
Version: 1.9.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: heron-united-fc
*/

:root {
  --red: #ed1b2f;
  --red-dark: #b90f20;
  --navy: #0c1f4a;
  --black: #141414;
  --charcoal: #222;
  --white: #ffffff;
  --cream: #f7f4ef;
  --muted: #696969;
  --line: rgba(20, 20, 20, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--cream);
  color: var(--black);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 28px));
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: rgba(20, 20, 20, .78);
  backdrop-filter: blur(18px);
  color: var(--white);
  box-shadow: 0 12px 44px rgba(0,0,0,.25);
}
.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding-left: 4px;
}
.brand img { width: 48px; height: 48px; border-radius: 50%; }
.brand strong { display: block; font-size: .98rem; letter-spacing: .02em; }
.brand small { display: block; color: rgba(255,255,255,.72); font-size: .75rem; margin-top: -3px; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .92rem;
  color: rgba(255,255,255,.86);
}
.site-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-cta { background: var(--red); color: #fff !important; }
.nav-toggle { display: none; }

.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--black);
  padding: 130px 20px 70px;
}
.hero-bg, .hero-overlay {
  position: absolute;
  inset: 0;
}
.hero-bg {
  background-image: url("assets/hero.jpg");
  background-size: cover;
  background-position: center 44%;
  transform: scale(1.02);
  filter: saturate(1.05);
}
.hero-overlay {
  background:
    radial-gradient(circle at 72% 35%, rgba(237,27,47,.35), transparent 30%),
    linear-gradient(90deg, rgba(0,0,0,.84), rgba(0,0,0,.50) 50%, rgba(0,0,0,.74));
}
.hero-content {
  width: min(1050px, 100%);
  position: relative;
  z-index: 2;
  color: var(--white);
}
.hero-badge { width: clamp(110px, 16vw, 170px); filter: drop-shadow(0 22px 40px rgba(0,0,0,.45)); margin-bottom: 20px; }
.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 1000;
  color: #fff;
  font-size: .78rem;
}
.eyebrow.red { color: var(--red); }
h1, h2, h3 { line-height: .96; margin: 0; letter-spacing: -.055em; }
h1 {
  max-width: 920px;
  font-size: clamp(3.4rem, 9vw, 9.5rem);
  text-transform: uppercase;
}
h2 { font-size: clamp(2.2rem, 5vw, 5.2rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 2rem); }
.hero-copy {
  max-width: 680px;
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  color: rgba(255,255,255,.88);
  margin: 24px 0 34px;
}
.hero-actions, .site-nav, .mini-list, .hero-actions { flex-wrap: wrap; }
.hero-actions { display: flex; gap: 14px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 1000;
  letter-spacing: .01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--red); color: #fff; box-shadow: 0 12px 34px rgba(237,27,47,.34); }
.button.primary:hover { background: var(--red-dark); }
.button.ghost { border: 1px solid rgba(255,255,255,.46); color: #fff; background: rgba(255,255,255,.08); }
.button.light { background: #fff; color: var(--red); box-shadow: none; }
.season-card {
  position: absolute;
  right: max(26px, calc((100vw - 1120px) / 2));
  bottom: 42px;
  z-index: 3;
  width: min(340px, calc(100% - 42px));
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.4);
}
.card-label {
  display: inline-flex;
  background: var(--black);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 1000;
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .1em;
  margin-bottom: 14px;
}
.season-card strong { display: block; font-size: 2rem; line-height: 1; letter-spacing: -.04em; }
.season-card p { margin: 10px 0 0; color: var(--muted); font-weight: 700; }

.stats {
  width: min(1120px, calc(100% - 34px));
  margin: -38px auto 0;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stats article {
  background: #fff;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 15px 45px rgba(0,0,0,.08);
}
.stats span { display: block; color: var(--muted); font-weight: 900; text-transform: uppercase; font-size: .74rem; letter-spacing: .12em; }
.stats strong { display: block; margin-top: 5px; font-size: clamp(1.4rem, 3vw, 2.4rem); letter-spacing: -.04em; }

.section {
  width: min(1120px, calc(100% - 34px));
  margin: 0 auto;
  padding: clamp(70px, 10vw, 120px) 0;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
}
.split.reverse { grid-template-columns: minmax(320px, .95fr) minmax(0, 1fr); }
.section p { color: #404040; font-size: 1.04rem; }
.feature-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.06);
}
.feature-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature-card div { padding: 24px; }
.feature-card span { color: var(--red); text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 1000; }
.feature-card p { margin-bottom: 0; }
.feature-card.wide img { aspect-ratio: 16 / 11; }

.recruitment {
  width: 100%;
  background: var(--black);
  color: #fff;
  padding-left: max(17px, calc((100% - 1120px) / 2));
  padding-right: max(17px, calc((100% - 1120px) / 2));
  border-radius: 42px;
  overflow: hidden;
  position: relative;
}
.recruitment:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 8% 0%, rgba(237,27,47,.35), transparent 32%), radial-gradient(circle at 88% 30%, rgba(237,27,47,.18), transparent 28%);
  pointer-events: none;
}
.recruitment > * { position: relative; }
.section-heading { max-width: 820px; margin-bottom: 36px; }
.section-heading p { color: rgba(255,255,255,.76); font-size: 1.16rem; }
.section-heading.compact { margin-bottom: 26px; }
.gallery-section .section-heading p { color: var(--red); }
.recruit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.recruit-grid article {
  padding: 24px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 22px;
}
.recruit-grid p { color: rgba(255,255,255,.72); font-size: .98rem; }
.icon { display: inline-block; font-size: 2rem; margin-bottom: 18px; }
.cta-panel {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--red);
  border-radius: 28px;
}
.cta-panel p { color: rgba(255,255,255,.86); margin-bottom: 0; }
.cta-panel .card-label { background: #fff; color: var(--red); }

.mini-list {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}
.mini-list span {
  padding: 9px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 900;
  font-size: .92rem;
}
.facebook-section {
  padding-top: clamp(20px, 5vw, 70px);
}
.facebook-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
  padding: clamp(24px, 5vw, 50px);
  border-radius: 34px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 55px rgba(0,0,0,.1);
  overflow: hidden;
  position: relative;
}
.facebook-panel:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: var(--red);
}
.facebook-copy, .facebook-embed { position: relative; }
.facebook-copy p { max-width: 620px; }
.facebook-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.facebook-embed {
  justify-self: end;
  width: min(100%, 500px);
  padding: 12px;
  border-radius: 24px;
  background: var(--cream);
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
  overflow: hidden;
}
.facebook-frame {
  display: block;
  width: 100%;
  border-radius: 16px;
  background: #fff;
}
.facebook-frame-desktop {
  max-width: 500px;
  min-height: 680px;
}
.facebook-frame-mobile {
  display: none;
  max-width: 320px;
  min-height: 540px;
  margin: 0 auto;
}
.facebook-fallback {
  margin: 10px 4px 0;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 800;
}


.fa-section {
  padding-top: clamp(20px, 5vw, 70px);
}
.fa-section .section-heading p:not(.eyebrow) {
  max-width: 760px;
  color: #404040;
}
.fa-live-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.fa-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 16px 55px rgba(0,0,0,.1);
  overflow: hidden;
}
.fa-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}
.fa-card-header span {
  display: block;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 1000;
  margin-bottom: 7px;
}
.fa-card-header h3 {
  font-size: clamp(1.45rem, 2.5vw, 2.25rem);
}
.button.small {
  min-height: 42px;
  padding: 10px 16px;
  font-size: .88rem;
  white-space: nowrap;
}
.fa-data-wrap {
  background: var(--cream);
  min-height: 520px;
  padding: 16px;
}
.fa-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(237,27,47,.1);
  color: var(--red-dark);
  font-size: .78rem;
  font-weight: 1000;
}
.fa-table-scroll {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
}
.fa-data-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: .92rem;
}
.fa-data-table th,
.fa-data-table td {
  padding: 12px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.fa-data-table th {
  background: var(--black);
  color: #fff;
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.fa-data-table tbody tr:last-child td { border-bottom: 0; }
.fa-data-table tbody tr:nth-child(even) { background: rgba(20,20,20,.025); }
.heron-row td {
  background: rgba(237,27,47,.12);
  font-weight: 1000;
}
.heron-team {
  color: var(--red-dark);
  font-weight: 1000;
}
.score-pill {
  display: inline-flex;
  justify-content: center;
  min-width: 68px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--black);
  color: #fff;
  white-space: nowrap;
}
.fa-empty {
  padding: 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}
.fa-empty strong {
  color: var(--black);
}
.fa-note {
  margin: 0;
  padding: 13px 18px 16px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
  background: #fff;
}


.player-stats-section {
  padding-top: clamp(24px, 5vw, 70px);
}
.player-stats-panel {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  background:
    radial-gradient(circle at 92% 8%, rgba(237,27,47,.22), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #fff 45%, #f7f4ef 100%);
  border: 1px solid var(--line);
  box-shadow: 0 18px 60px rgba(0,0,0,.12);
  padding: clamp(22px, 5vw, 48px);
}
.player-stats-panel:before {
  content: "";
  position: absolute;
  right: -80px;
  top: -90px;
  width: 290px;
  height: 290px;
  background: url("assets/badge-512.png") center / contain no-repeat;
  opacity: .055;
  pointer-events: none;
}
.player-stats-intro {
  position: relative;
  max-width: 780px;
  margin-bottom: 26px;
}
.player-stats-intro p:not(.eyebrow) {
  color: #404040;
  font-size: 1.12rem;
}
.player-stats-cards {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.player-stats-cards article {
  padding: 20px;
  border-radius: 22px;
  background: var(--black);
  color: #fff;
  box-shadow: 0 12px 34px rgba(0,0,0,.15);
}
.player-stats-cards span {
  display: block;
  color: rgba(255,255,255,.68);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .7rem;
  font-weight: 1000;
  margin-bottom: 8px;
}
.player-stats-cards strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -.05em;
}
.player-stats-cards p {
  margin: 8px 0 0;
  color: #fff;
  font-weight: 900;
}
.player-stats-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}
.player-stats-summary span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(237,27,47,.1);
  color: var(--red-dark);
  font-weight: 1000;
}
.player-stats-table-wrap {
  position: relative;
  overflow-x: auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #fff;
}
.player-stats-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: .94rem;
}
.player-stats-table th,
.player-stats-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.player-stats-table th {
  background: var(--red);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .74rem;
  font-weight: 1000;
}
.player-stats-table th:not(:first-child),
.player-stats-table td:not(:first-child) {
  text-align: center;
  font-weight: 1000;
}
.player-stats-table tbody tr:nth-child(even) {
  background: rgba(20,20,20,.025);
}
.player-stats-table tbody tr:last-child td {
  border-bottom: 0;
}
.player-stats-table tbody tr:hover {
  background: rgba(237,27,47,.08);
}
.player-stats-leader td {
  background: rgba(237,27,47,.12);
}
.player-stats-leader td:first-child {
  color: var(--red-dark);
  font-weight: 1000;
}
.player-stats-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
}
.player-stats-note code {
  background: rgba(20,20,20,.08);
  padding: 2px 6px;
  border-radius: 6px;
}

.youtube-section {
  padding-top: clamp(20px, 5vw, 70px);
}
.youtube-panel {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
  padding: clamp(24px, 5vw, 50px);
  border-radius: 34px;
  background: var(--black);
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 16px 55px rgba(0,0,0,.16);
  overflow: hidden;
  position: relative;
}
.youtube-panel:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 10%, rgba(237,27,47,.42), transparent 30%), radial-gradient(circle at 95% 55%, rgba(255,255,255,.08), transparent 28%);
  pointer-events: none;
}
.youtube-copy, .youtube-embed { position: relative; }
.youtube-copy p { color: rgba(255,255,255,.76); max-width: 620px; }
.youtube-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.youtube-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  padding: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 22px 70px rgba(0,0,0,.34);
}
.youtube-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 16px;
  background: #000;
}
.youtube-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.youtube-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 12px;
  box-shadow: 0 14px 45px rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.youtube-card:hover { transform: translateY(-2px); box-shadow: 0 20px 55px rgba(0,0,0,.12); }
.youtube-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #111;
  aspect-ratio: 16 / 9;
}
.youtube-thumb img { width: 100%; height: 100%; object-fit: cover; }
.play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(237,27,47,.94);
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
}
.youtube-card-content strong {
  display: block;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.youtube-card-content small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 900;
}
.youtube-fallback {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: .94rem;
  font-weight: 900;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 220px;
  gap: 14px;
}
.gallery-item {
  border: 0;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  border-radius: 26px;
  background: #ddd;
  box-shadow: 0 15px 45px rgba(0,0,0,.12);
}
.gallery-item:nth-child(1),
.gallery-item:nth-child(7) {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-item:nth-child(4),
.gallery-item:nth-child(10) {
  grid-column: span 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.button.outline {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--black);
}
.matchday { padding-top: clamp(40px, 7vw, 90px); }
.contact { padding-top: 0; }
.contact-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 28px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 32px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 55px rgba(0,0,0,.1);
}
.contact-card p { margin-bottom: 0; }

.site-footer {
  padding: 28px max(17px, calc((100% - 1120px) / 2));
  background: var(--black);
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.site-footer p { margin: 4px 0 0; color: rgba(255,255,255,.64); }
.site-footer a { color: #fff; font-weight: 900; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,.86);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 86vh;
  border-radius: 20px;
  box-shadow: 0 20px 80px rgba(0,0,0,.45);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: #fff;
  color: #000;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 860px) {
  .site-header { top: 10px; border-radius: 26px; align-items: flex-start; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.13);
    margin-top: 1px;
  }
  .nav-toggle span:not(.sr-only) { width: 20px; height: 2px; background: #fff; margin: 0 auto; }
  .site-nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(20,20,20,.96);
    border-radius: 22px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { text-align: center; }
  .hero { min-height: 820px; place-items: end start; padding-top: 120px; }
  h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .season-card { left: 18px; right: 18px; bottom: 24px; width: auto; }
  .stats, .recruit-grid, .split, .split.reverse, .contact-card, .facebook-panel, .youtube-panel, .youtube-latest-grid, .player-stats-cards {
    grid-template-columns: 1fr;
  }

  .fa-live-grid {
    grid-template-columns: 1fr;
  }
  .fa-card-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .fa-card-header .button {
    width: 100%;
  }
  .fa-data-wrap {
    min-height: 420px;
    padding: 12px;
  }

  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 190px; }
  .gallery-item:nth-child(1), .gallery-item:nth-child(7), .gallery-item:nth-child(4), .gallery-item:nth-child(10) { grid-column: span 1; grid-row: span 1; }
  .stats { margin-top: -24px; }
  .recruitment { border-radius: 28px; }
  .cta-panel { flex-direction: column; align-items: flex-start; }
  .gallery-item:first-child { grid-row: auto; }
  .contact-card { text-align: center; justify-items: center; }
  .contact-card img { width: 110px; }
  .facebook-embed { justify-self: stretch; width: 100%; max-width: 500px; margin: 0 auto; }
  .youtube-card { grid-template-columns: 130px 1fr; }
  .facebook-frame-desktop { min-height: 620px; }
  .site-footer { flex-direction: column; text-align: center; }
}

@media (max-width: 520px) {
  .brand strong { font-size: .9rem; }
  .brand small { font-size: .68rem; }
  .brand img { width: 42px; height: 42px; }
  .hero-actions .button, .gallery-cta .button, .facebook-actions .button, .youtube-actions .button { width: 100%; }
  .section, .stats { width: min(100% - 24px, 1120px); }
  .facebook-section { width: min(100% - 18px, 1120px); }
  .facebook-panel { padding: 18px 10px 18px; border-radius: 24px; }
  .facebook-panel:before { width: 5px; }
  .facebook-copy { padding: 0 8px; }
  .facebook-embed { width: 100%; max-width: 344px; padding: 8px; border-radius: 18px; box-shadow: 0 14px 36px rgba(0,0,0,.12); }
  .facebook-frame-desktop { display: none; }
  .facebook-frame-mobile { display: block; width: 100%; min-height: 540px; }
  .facebook-fallback { text-align: center; }

  .fa-card {
    border-radius: 22px;
  }
  .fa-card-header {
    padding: 18px;
  }
  .fa-data-wrap {
    min-height: 360px;
    padding: 10px;
  }
  .fa-data-table {
    min-width: 560px;
    font-size: .84rem;
  }
  .fa-data-table th,
  .fa-data-table td {
    padding: 10px 9px;
  }
  .fa-note {
    text-align: center;
  }
  .player-stats-panel { padding: 18px 12px; border-radius: 24px; }
  .player-stats-cards { gap: 10px; }
  .player-stats-cards article { padding: 16px; }
  .player-stats-summary { justify-content: center; }
  .player-stats-summary span { width: 100%; justify-content: center; }
  .player-stats-table { min-width: 560px; font-size: .84rem; }
  .player-stats-table th, .player-stats-table td { padding: 10px 9px; }
  .player-stats-note { text-align: center; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stats article { padding: 16px; }
}

@media (max-width: 360px) {
  .facebook-section { width: min(100% - 10px, 1120px); }
  .facebook-panel { padding-left: 6px; padding-right: 6px; }
  .facebook-copy { padding: 0 6px; }
  .facebook-embed { max-width: 326px; padding: 5px; }
}



/* Squad 2025/26 */
.squad-preview-section {
  padding-top: clamp(30px, 6vw, 90px);
}
.squad-preview-panel,
.squad-page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  background: var(--black);
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
}
.squad-preview-panel {
  padding: clamp(24px, 5vw, 54px);
}
.squad-preview-panel:before,
.squad-page-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(237,27,47,.45), transparent 30%),
    radial-gradient(circle at 90% 55%, rgba(255,255,255,.08), transparent 28%);
  pointer-events: none;
}
.squad-preview-panel > *,
.squad-page-hero > * {
  position: relative;
}
.squad-preview-head {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}
.squad-preview-head p:not(.eyebrow),
.squad-page-hero p {
  color: rgba(255,255,255,.76);
  max-width: 720px;
}
.squad-preview-grid,
.squad-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.squad-card {
  display: block;
  padding: 12px;
  border-radius: 28px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.squad-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.13);
  box-shadow: 0 20px 52px rgba(0,0,0,.22);
}
.squad-card img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  filter: drop-shadow(0 14px 26px rgba(0,0,0,.28));
}
.squad-card-meta {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  padding: 12px 4px 2px;
}
.squad-card-meta strong {
  display: block;
  color: #fff;
  font-size: .95rem;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.squad-card-meta span {
  display: block;
  margin-top: 3px;
  color: rgba(255,255,255,.66);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.squad-number {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 1000;
  box-shadow: 0 10px 30px rgba(237,27,47,.26);
}
.squad-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.squad-page {
  padding-top: 118px;
}
.squad-page-hero {
  width: min(1120px, calc(100% - 34px));
  margin: 0 auto;
  padding: clamp(36px, 7vw, 72px);
}
.squad-page-hero-row {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 30px;
  align-items: center;
}
.squad-page-hero img {
  width: 150px;
  justify-self: end;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.35));
}
.squad-page-layout {
  width: min(1120px, calc(100% - 34px));
  margin: 0 auto;
  padding: clamp(38px, 7vw, 72px) 0 clamp(70px, 9vw, 120px);
}
.squad-page-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.squad-page-toolbar p {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}
.squad-page-layout .squad-card {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 14px 44px rgba(0,0,0,.1);
}
.squad-page-layout .squad-card:hover {
  background: #fff;
  box-shadow: 0 22px 60px rgba(0,0,0,.16);
}
.squad-page-layout .squad-card-meta strong {
  color: var(--black);
}
.squad-page-layout .squad-card-meta span {
  color: var(--muted);
}
.squad-note {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 980px) {
  .squad-preview-grid,
  .squad-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .squad-preview-head { flex-direction: column; align-items: flex-start; }
  .squad-page-hero-row { grid-template-columns: 1fr; }
  .squad-page-hero img { justify-self: start; width: 118px; }
}

@media (max-width: 640px) {
  .squad-preview-grid,
  .squad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .squad-card { padding: 8px; border-radius: 22px; }
  .squad-card img { border-radius: 18px; }
  .squad-card-meta { display: block; padding: 10px 4px 2px; }
  .squad-number { min-width: 38px; min-height: 38px; margin-top: 8px; }
  .squad-page { padding-top: 104px; }
}

@media (max-width: 390px) {
  .squad-preview-grid,
  .squad-grid { grid-template-columns: 1fr; }
}

/* WordPress admin bar spacing */
body.admin-bar .site-header { top: 50px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 64px; }
}


@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 230px; }
}


@media (max-width: 640px) {
  .youtube-card { grid-template-columns: 1fr; }
}

/* Combined Squad & Stats page update */
.squad-stats-page .squad-page-hero {
  margin-bottom: clamp(18px, 4vw, 42px);
}
.squad-page-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.squad-page-stats {
  padding-top: 0;
  padding-bottom: clamp(28px, 6vw, 70px);
}
.squad-update-note {
  margin-top: 0;
  padding: 0 0 clamp(70px, 9vw, 120px);
}
.squad-update-note p {
  margin: 0 0 10px;
  padding: 18px 20px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}
.squad-update-note p strong {
  color: var(--black);
}
@media (max-width: 520px) {
  .squad-page-quicklinks .button,
  .squad-page-toolbar .button {
    width: 100%;
  }
}


/* Division 3 Champions page */
.champions-page {
  padding-top: 118px;
  background:
    radial-gradient(circle at 15% 8%, rgba(237,27,47,.11), transparent 32%),
    linear-gradient(180deg, #fff 0%, #f6f7fb 42%, #fff 100%);
}
.champions-hero {
  width: min(1120px, calc(100% - 34px));
  margin: 0 auto;
  padding: clamp(42px, 8vw, 86px) 0 clamp(36px, 6vw, 70px);
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}
.champions-hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: .86;
  letter-spacing: -.08em;
  text-transform: uppercase;
  color: var(--black);
}
.champions-lead {
  margin: 24px 0 0;
  max-width: 760px;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.55;
  color: var(--muted);
  font-weight: 800;
}
.champions-badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.champions-badges span,
.champions-message-grid article {
  display: block;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 42px rgba(0,0,0,.08);
}
.champions-badges strong {
  display: block;
  color: var(--red);
  font-size: 1.8rem;
  line-height: 1;
}
.champions-badges span {
  color: var(--muted);
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .78rem;
}
.champions-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.champions-crest-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
  border-radius: 36px;
  background: linear-gradient(150deg, var(--red), #8d1519);
  box-shadow: 0 28px 80px rgba(237,27,47,.24);
  overflow: hidden;
}
.champions-crest-card::before,
.champions-crest-card::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}
.champions-crest-card::before {
  width: 280px;
  height: 280px;
  top: -110px;
  right: -110px;
}
.champions-crest-card::after {
  width: 220px;
  height: 220px;
  bottom: -88px;
  left: -88px;
}
.champions-crest-card img {
  position: relative;
  z-index: 1;
  width: 190px;
  filter: drop-shadow(0 18px 32px rgba(0,0,0,.35));
}
.champions-crest-card span {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.champions-celebration {
  padding-top: clamp(30px, 6vw, 72px);
  padding-bottom: clamp(20px, 5vw, 54px);
}
.champions-message-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.champions-message-grid strong {
  display: block;
  color: var(--black);
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.champions-message-grid span {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}
.champions-table-section {
  padding-top: clamp(22px, 5vw, 54px);
}
.champions-table-wrap {
  overflow-x: auto;
  margin-top: 24px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,.1);
}
.champions-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  color: var(--black);
}
.champions-table caption {
  padding: 22px 18px;
  font-size: 1.45rem;
  font-weight: 1000;
  color: var(--black);
  text-align: center;
}
.champions-table th,
.champions-table td {
  padding: 16px 18px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  font-weight: 850;
}
.champions-table th:nth-child(2),
.champions-table td:nth-child(2) {
  text-align: left;
}
.champions-table thead th {
  background: var(--navy);
  color: #fff;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.champions-table tbody tr:nth-child(even) {
  background: #f7f7f8;
}
.champions-table tbody tr.champion-row {
  background: linear-gradient(90deg, rgba(237,27,47,.12), rgba(255,255,255,.92));
  box-shadow: inset 5px 0 0 var(--red);
}
.champions-table tbody tr.champion-row td {
  font-weight: 1000;
}
.champions-table tbody tr.champion-row td:nth-child(2)::after {
  content: ' Champions';
  display: inline-block;
  margin-left: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  vertical-align: middle;
}
.champions-table td:last-child {
  font-weight: 1000;
}

.champions-gallery-section {
  padding-top: clamp(28px, 6vw, 70px);
  padding-bottom: clamp(16px, 5vw, 54px);
  overflow: hidden;
}
.champions-scatter-gallery {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 74px;
  gap: clamp(12px, 1.8vw, 22px);
  margin-top: clamp(26px, 4vw, 44px);
  padding: clamp(12px, 3vw, 34px);
  border-radius: 36px;
  background:
    radial-gradient(circle at 18% 14%, rgba(237,27,47,.14), transparent 32%),
    radial-gradient(circle at 92% 78%, rgba(18,31,63,.16), transparent 32%),
    linear-gradient(135deg, #fff, #f6f6f7);
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(0,0,0,.08);
}
.champions-scatter-gallery::before {
  content: 'Champions 2025/26';
  position: absolute;
  right: clamp(16px, 4vw, 46px);
  top: clamp(12px, 3vw, 34px);
  color: rgba(237,27,47,.08);
  font-size: clamp(2.3rem, 8vw, 7.5rem);
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: -.05em;
  line-height: .85;
  pointer-events: none;
}
.champions-polaroid {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 8px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(18,31,63,.09);
  box-shadow: 0 22px 48px rgba(0,0,0,.15);
  transform: rotate(var(--rotate, 0deg));
  overflow: hidden;
}
.champions-polaroid:hover {
  z-index: 5;
  transform: rotate(0deg) translateY(-4px) scale(1.025);
}
.champions-polaroid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}
.champions-polaroid:nth-child(1) { grid-column: span 3; grid-row: span 6; --rotate: -3.5deg; }
.champions-polaroid:nth-child(2) { grid-column: span 3; grid-row: span 6; --rotate: 2.5deg; }
.champions-polaroid:nth-child(3) { grid-column: span 2; grid-row: span 6; --rotate: -1.8deg; }
.champions-polaroid:nth-child(4) { grid-column: span 4; grid-row: span 6; --rotate: 3.4deg; }
.champions-polaroid:nth-child(5) { grid-column: span 3; grid-row: span 6; --rotate: 1.7deg; }
.champions-polaroid:nth-child(6) { grid-column: span 3; grid-row: span 6; --rotate: -2.8deg; }
.champions-polaroid:nth-child(7) { grid-column: span 4; grid-row: span 5; --rotate: 2.2deg; }
.champions-polaroid:nth-child(8) { grid-column: span 5; grid-row: span 4; --rotate: -2.4deg; }
.champions-polaroid:nth-child(9) { grid-column: span 4; grid-row: span 4; --rotate: 2.8deg; }
.champions-polaroid:nth-child(10) { grid-column: span 3; grid-row: span 4; --rotate: -1.5deg; }
.champions-polaroid:nth-child(11) { grid-column: span 4; grid-row: span 4; --rotate: 1.6deg; }
.champions-polaroid:nth-child(12) { grid-column: span 5; grid-row: span 4; --rotate: -3deg; }
.champions-polaroid:nth-child(13) { grid-column: span 3; grid-row: span 5; --rotate: 2.1deg; }
.champions-polaroid:nth-child(14) { grid-column: span 4; grid-row: span 5; --rotate: -2.6deg; }
.champions-polaroid:nth-child(15) { grid-column: span 5; grid-row: span 5; --rotate: 1.9deg; }

@media (max-width: 900px) {
  .champions-hero { grid-template-columns: 1fr; }
  .champions-crest-card { min-height: 260px; }
  .champions-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .champions-message-grid { grid-template-columns: 1fr; }
  .champions-scatter-gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 68px; }
  .champions-polaroid:nth-child(n) { grid-column: span 3; grid-row: span 4; }
  .champions-polaroid:nth-child(1),
  .champions-polaroid:nth-child(2),
  .champions-polaroid:nth-child(3),
  .champions-polaroid:nth-child(4),
  .champions-polaroid:nth-child(5),
  .champions-polaroid:nth-child(6),
  .champions-polaroid:nth-child(7),
  .champions-polaroid:nth-child(13),
  .champions-polaroid:nth-child(14),
  .champions-polaroid:nth-child(15) { grid-row: span 5; }
}
@media (max-width: 640px) {
  .champions-page { padding-top: 104px; }
  .champions-scatter-gallery { grid-template-columns: 1fr; grid-auto-rows: auto; padding: 14px; }
  .champions-scatter-gallery::before { opacity: .65; }
  .champions-polaroid:nth-child(n) { grid-column: auto; grid-row: auto; height: clamp(230px, 75vw, 420px); transform: rotate(var(--rotate, 0deg)); }
  .champions-polaroid:nth-child(8),
  .champions-polaroid:nth-child(9),
  .champions-polaroid:nth-child(10),
  .champions-polaroid:nth-child(11),
  .champions-polaroid:nth-child(12) { height: clamp(190px, 58vw, 320px); }
  .champions-badges { grid-template-columns: 1fr; }
  .champions-actions .button { width: 100%; }
  .champions-table { min-width: 0; }
  .champions-table thead { display: none; }
  .champions-table caption { font-size: 1.2rem; }
  .champions-table tbody tr,
  .champions-table tbody tr:nth-child(even),
  .champions-table tbody tr.champion-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: none;
  }
  .champions-table tbody tr.champion-row {
    background: rgba(237,27,47,.08);
    border-left: 5px solid var(--red);
  }
  .champions-table td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 8px;
    border: 0;
    text-align: right;
  }
  .champions-table td:nth-child(2) {
    grid-column: 1 / -1;
    text-align: left;
    font-size: 1.05rem;
  }
  .champions-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: .75rem;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .08em;
  }
  .champions-table tbody tr.champion-row td:nth-child(2)::after {
    display: block;
    width: max-content;
    margin: 8px 0 0;
  }
}


/* Upcoming News holding page */
.upcoming-news-page {
  min-height: 100vh;
  padding: clamp(110px, 12vw, 150px) clamp(18px, 4vw, 56px) clamp(54px, 8vw, 96px);
  background:
    radial-gradient(circle at 10% 12%, rgba(237,27,47,.18), transparent 32%),
    radial-gradient(circle at 92% 18%, rgba(18,31,63,.16), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f6f7fb 48%, #ffffff 100%);
}
.upcoming-news-hero {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
}
.upcoming-news-content h1 {
  margin: 12px 0 18px;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: .86;
  letter-spacing: -.06em;
  text-transform: uppercase;
  color: var(--navy);
}
.upcoming-news-lead {
  max-width: 680px;
  margin: 0 0 28px;
  font-size: clamp(1.45rem, 3.2vw, 2.6rem);
  line-height: 1.08;
  font-weight: 1000;
  color: var(--red);
  text-transform: uppercase;
}
.upcoming-news-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.upcoming-news-card {
  position: relative;
  min-height: clamp(430px, 54vw, 620px);
  border-radius: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,.24), transparent 34%),
    linear-gradient(145deg, var(--red), #8f1619 58%, #121f3f 100%);
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: 0 30px 90px rgba(18,31,63,.2);
}
.upcoming-news-card::before {
  content: '';
  position: absolute;
  inset: 18px;
  border: 4px dashed rgba(255,255,255,.34);
  border-radius: 32px;
}
.upcoming-news-card::after {
  content: 'Heron United';
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  color: rgba(255,255,255,.12);
  font-size: clamp(2.6rem, 8vw, 6rem);
  font-weight: 1000;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: -.06em;
}
.upcoming-news-badge {
  position: relative;
  z-index: 2;
  width: clamp(180px, 32vw, 300px);
  height: auto;
  filter: drop-shadow(0 24px 36px rgba(0,0,0,.34));
}
.watch-stamp {
  position: absolute;
  z-index: 3;
  right: clamp(12px, 4vw, 36px);
  top: clamp(28px, 5vw, 64px);
  width: clamp(160px, 25vw, 240px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 8px solid rgba(255,255,255,.9);
  border-radius: 999px;
  color: #fff;
  font-size: clamp(1rem, 2.1vw, 1.7rem);
  line-height: .9;
  font-weight: 1000;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .05em;
  transform: rotate(-13deg);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.55), 0 18px 40px rgba(0,0,0,.2);
  background: rgba(18,31,63,.22);
  backdrop-filter: blur(2px);
}
.coming-soon-panel {
  position: absolute;
  z-index: 4;
  left: clamp(22px, 4vw, 46px);
  bottom: clamp(24px, 5vw, 54px);
  padding: clamp(18px, 3vw, 28px);
  border-radius: 26px;
  background: rgba(18,31,63,.78);
  color: #fff;
  box-shadow: 0 18px 42px rgba(0,0,0,.22);
}
.coming-soon-panel span {
  display: block;
  color: rgba(255,255,255,.78);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 900;
}
.coming-soon-panel strong {
  display: block;
  margin-top: 5px;
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: .95;
  text-transform: uppercase;
}
@media (max-width: 880px) {
  .upcoming-news-hero { grid-template-columns: 1fr; }
  .upcoming-news-card { min-height: 460px; }
}
@media (max-width: 560px) {
  .upcoming-news-page { padding-top: 104px; }
  .upcoming-news-content h1 { font-size: clamp(2.8rem, 16vw, 4.2rem); }
  .upcoming-news-lead { font-size: clamp(1.25rem, 7vw, 1.9rem); }
  .upcoming-news-actions .button { width: 100%; }
  .upcoming-news-card { min-height: 430px; border-radius: 30px; }
  .watch-stamp { width: 150px; right: 14px; top: 22px; border-width: 6px; }
  .coming-soon-panel { left: 16px; right: 16px; bottom: 18px; text-align: center; }
}


/* Clickable player profile cards */
.squad-card-link {
  display: block;
  height: 100%;
  color: inherit;
}
.squad-card-meta em {
  display: inline-block;
  margin-top: 7px;
  color: var(--red);
  font-style: normal;
  font-weight: 1000;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.squad-preview-section .squad-card-meta em,
.squad-preview-panel .squad-card-meta em {
  color: rgba(255,255,255,.72);
}
.squad-card-link:focus-visible {
  outline: 4px solid rgba(237,27,47,.45);
  outline-offset: 6px;
  border-radius: 24px;
}
.player-stats-name-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 1000;
  color: var(--black);
  text-decoration: underline;
  text-decoration-color: rgba(237,27,47,.45);
  text-underline-offset: 4px;
}
.player-stats-name-link:after {
  content: "↗";
  color: var(--red);
  font-size: .8em;
}
.player-profile-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  overflow-y: auto;
}
.player-profile-modal:target {
  opacity: 1;
  pointer-events: auto;
}
.player-profile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
}
.player-profile-card {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: clamp(18px, 4vw, 34px);
  align-items: center;
  padding: clamp(18px, 4vw, 34px);
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(237,27,47,.18), transparent 34%),
    #fff;
  border: 1px solid rgba(255,255,255,.38);
  box-shadow: 0 30px 100px rgba(0,0,0,.45);
}
.player-profile-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--black);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.player-profile-image-wrap {
  align-self: stretch;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: linear-gradient(135deg, #1d1d1d, #3a3a3a);
  padding: 12px;
}
.player-profile-image-wrap img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 22px;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,.24));
}
.player-profile-content h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: .92;
  letter-spacing: -.06em;
  text-transform: uppercase;
}
.player-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.player-profile-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
}
.player-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}
.player-profile-stats article {
  padding: 18px;
  border-radius: 20px;
  background: var(--cream);
  border: 1px solid var(--line);
}
.player-profile-stats span {
  display: block;
  color: var(--muted);
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .72rem;
}
.player-profile-stats strong {
  display: block;
  margin-top: 4px;
  color: var(--red);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}
.player-profile-copy {
  color: var(--muted);
  font-weight: 750;
}
.player-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
@media (max-width: 760px) {
  .player-profile-modal { padding: 12px; align-items: start; }
  .player-profile-card {
    grid-template-columns: 1fr;
    max-height: none;
    margin: 76px 0 20px;
    border-radius: 26px;
  }
  .player-profile-image-wrap img { max-height: 62vh; }
  .player-profile-stats { grid-template-columns: 1fr; }
  .player-profile-actions .button { width: 100%; }
}

/* Homepage refresh: shorter and sharper */
.compact-hero {
  min-height: 860px;
}
.sharp-recruitment {
  margin-top: clamp(36px, 6vw, 76px);
  padding-top: clamp(54px, 7vw, 88px);
  padding-bottom: clamp(54px, 7vw, 88px);
}
.short-recruit-grid {
  grid-template-columns: repeat(3, 1fr);
}
.compact-cta {
  margin-top: 16px;
}
.quick-section {
  padding-top: clamp(46px, 7vw, 80px);
  padding-bottom: clamp(30px, 5vw, 58px);
}
.tight-section {
  padding-top: clamp(26px, 5vw, 58px);
}
.quick-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 4vw, 42px);
  align-items: center;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 32px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 55px rgba(0,0,0,.1);
  overflow: hidden;
  position: relative;
}
.quick-card:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: var(--red);
}
.quick-card > * {
  position: relative;
}
.quick-card h3 {
  font-size: clamp(1.7rem, 3vw, 3rem);
  margin-bottom: 12px;
}
.quick-card p {
  max-width: 760px;
  margin: 0;
}
.quick-card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.latest-result-main h3 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  margin: 0 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--black);
  color: #fff;
  font-size: .78em;
  white-space: nowrap;
}
.match-report-card {
  grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
}
.match-report-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 16px 44px rgba(0,0,0,.14);
}
.empty-report-card {
  grid-template-columns: minmax(0, 1fr) auto;
}
.homepage-squad-panel {
  padding: clamp(24px, 5vw, 44px);
}
.homepage-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}
.homepage-stat-strip article {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}
.homepage-stat-strip span {
  display: block;
  color: rgba(255,255,255,.64);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .7rem;
  font-weight: 1000;
  margin-bottom: 8px;
}
.homepage-stat-strip strong {
  display: block;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
  letter-spacing: -.05em;
}
.homepage-stat-strip p {
  margin: 8px 0 0;
  color: #fff;
  font-weight: 900;
}
.champions-home-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
  padding: clamp(26px, 5vw, 52px);
  border-radius: 36px;
  background:
    radial-gradient(circle at 85% 15%, rgba(237,27,47,.24), transparent 28%),
    linear-gradient(135deg, #fff, #f7f4ef);
  border: 1px solid var(--line);
  box-shadow: 0 18px 60px rgba(0,0,0,.12);
}
.champions-home-card p {
  max-width: 720px;
}
.champions-home-card .button {
  margin-top: 10px;
}
.champions-home-card img {
  width: 100%;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.2));
}
.social-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.social-card {
  display: grid;
  gap: 22px;
  align-content: start;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 34px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 55px rgba(0,0,0,.1);
  overflow: hidden;
}
.youtube-social-card {
  background: var(--black);
  color: #fff;
}
.youtube-social-card p {
  color: rgba(255,255,255,.74);
}
.social-card .button {
  margin-top: 10px;
}
.compact-facebook {
  justify-self: stretch;
  width: 100%;
  max-width: 100%;
  box-shadow: none;
}
.compact-facebook .facebook-frame-desktop {
  min-height: 520px;
}
.compact-facebook .facebook-frame-mobile {
  min-height: 440px;
}
.compact-youtube {
  padding: 8px;
  border-radius: 20px;
}

@media (max-width: 860px) {
  .compact-hero { min-height: 760px; }
  .short-recruit-grid,
  .homepage-stat-strip,
  .social-hub-grid,
  .quick-card,
  .match-report-card,
  .empty-report-card,
  .champions-home-card {
    grid-template-columns: 1fr;
  }
  .quick-card-actions {
    justify-content: flex-start;
  }
  .champions-home-card img {
    width: min(180px, 60vw);
  }
  .homepage-squad-panel .squad-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .quick-card,
  .social-card,
  .champions-home-card {
    border-radius: 24px;
    padding: 18px;
  }
  .quick-card-actions .button,
  .social-card .button {
    width: 100%;
  }
  .latest-result-main h3 span {
    margin: 8px 0;
    display: flex;
    width: max-content;
  }
  .homepage-squad-panel .squad-preview-grid {
    grid-template-columns: 1fr;
  }
}
