:root {
  --bg: #06120d;
  --surface: rgba(10, 27, 19, 0.88);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-3: rgba(255, 255, 255, 0.1);
  --text: #eff6f0;
  --muted: #b7c8bb;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #8ed840;
  --accent-2: #d5f26f;
  --accent-dark: #17341a;
  --max: 1180px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(142, 216, 64, 0.18), transparent 24%),
    radial-gradient(circle at 90% 10%, rgba(213, 242, 111, 0.12), transparent 22%),
    linear-gradient(180deg, #0a1f17 0%, #06120d 45%, #091711 100%);
  line-height: 1.6;
}

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

a {
  color: var(--accent-2);
  text-decoration: none;
}

a:hover {
  color: #fff;
}

.site-shell {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
}

.site-shell::before {
  top: -120px;
  right: -100px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142, 216, 64, 0.18), transparent 70%);
}

.site-shell::after {
  bottom: -160px;
  left: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
}

.site-header,
.page,
.site-footer {
  position: relative;
  z-index: 1;
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  overflow: visible;
  backdrop-filter: blur(18px);
  background: rgba(6, 18, 13, 0.72);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  position: relative;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: #fff;
}

.brand img {
  width: 56px;
  height: 56px;
}

.brand__title {
  margin: 0;
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
}

.brand__subtitle {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.menu-toggle {
  display: none;
  position: relative;
  z-index: 1003;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: #fff;
  border-radius: 999px;
  padding: 0.7rem 1rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.is-current {
  background: var(--surface-2);
}

.page {
  padding-bottom: 5rem;
}

.hero {
  padding: 4.5rem 0 2rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.hero__copy {
  padding: 2rem 0;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent-2);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.hero h1,
.page-header h1,
.section-head h2,
.team-panel h2 {
  margin: 0;
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", "Arial Narrow", sans-serif;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 6rem);
  max-width: 10ch;
}

.hero p {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero__actions,
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #09140b;
}

.button-secondary {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: #fff;
}

.button:hover,
.button-secondary:hover {
  transform: translateY(-2px);
}

.hero-card,
.panel,
.info-card,
.news-card,
.widget-shell,
.contact-box,
.fixture-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-card {
  border-radius: 28px;
  overflow: hidden;
}

.hero-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-card__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.hero-card__meta div {
  padding: 1rem;
  background: rgba(5, 13, 9, 0.95);
}

.hero-card__meta strong {
  display: block;
  color: #fff;
}

.hero-card__meta span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 1.2rem 0 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.section-head p {
  max-width: 56ch;
  color: var(--muted);
}

.panel {
  border-radius: 24px;
  padding: 1.35rem;
}

.four-up,
.news-grid,
.info-grid,
.sponsor-grid,
.membership-grid,
.fixture-grid {
  display: grid;
  gap: 1rem;
}

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

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

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

.fixture-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  align-items: stretch;
}

.fixture-grid > * {
  min-width: 0;
}

[data-home-fixtures],
[data-home-featured-news] {
  height: 100%;
}

.info-card {
  border-radius: 20px;
  padding: 1.2rem;
}

.info-card h3,
.contact-box h3,
.fixture-card h3,
.widget-column h3,
.news-card h3 {
  margin: 0 0 0.55rem;
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", "Arial Narrow", sans-serif;
  font-size: 1.45rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.info-card p,
.contact-box li {
  color: var(--muted);
}

.news-card {
  border-radius: 24px;
  overflow: hidden;
}

.news-card__visual {
  position: relative;
}

.news-card__visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-card__visual .eyebrow {
  position: absolute;
  top: 1rem;
  left: 1rem;
  margin: 0;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(6, 18, 13, 0.82);
}

.news-card__body {
  padding: 1.2rem;
}

.news-card__date {
  color: var(--accent-2);
  font-size: 0.88rem;
}

.news-card__link {
  margin-top: 0.9rem;
}

.page-header {
  padding: 4rem 0 1rem;
}

.page-header h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.page-header p {
  max-width: 62ch;
  color: var(--muted);
}

.team-layout {
  display: grid;
  gap: 1rem;
}

.team-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.team-tab {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: #fff;
  border-radius: 999px;
  padding: 0.8rem 1rem;
  cursor: pointer;
}

.team-tab.is-active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #09140b;
  border-color: transparent;
}

.team-panel {
  display: none;
  gap: 1rem;
}

.team-panel.is-active {
  display: grid;
}

.team-panel__competitions {
  max-width: 90ch;
  color: var(--muted);
}

.section-head--compact {
  margin-bottom: 0.4rem;
}

.widget-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.widget-grid.has-table {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.widget-column {
  display: grid;
  gap: 0.95rem;
  align-content: start;
  align-items: start;
}

.match-grid {
  display: grid;
  gap: 1rem;
}

.widget-shell {
  border-radius: 24px;
  padding: 0.95rem;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  align-self: start;
}

.widget-shell iframe {
  width: min(100%, 980px);
  min-height: 360px;
  border: 0;
  background: #fff;
  border-radius: 18px;
  margin: 0 auto;
}

.table-16 iframe {
  min-height: 860px;
}

.table-8 iframe {
  min-height: 520px;
}

.table-7 iframe {
  min-height: 470px;
}

.table-6 iframe {
  min-height: 430px;
}

.custom-table {
  overflow: hidden;
  border-radius: 24px;
  background: #f7f7f4;
  border: 1px solid rgba(14, 25, 18, 0.16);
  color: #132118;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
}

.custom-table__head {
  padding: 1rem 1.25rem 0.9rem;
  border-bottom: 1px solid rgba(14, 25, 18, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f1f1ed 100%);
}

.custom-table__brand {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  color: #1a221c;
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", "Arial Narrow", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.custom-table__brand span:last-child {
  color: #536259;
  font-size: 0.86rem;
}

.custom-table__head p {
  margin: 0.85rem 0 0;
  color: #18221b;
  font-weight: 700;
}

.custom-table__labels,
.custom-table__row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 86px 92px 112px;
  align-items: center;
}

.custom-table__labels {
  padding: 0.9rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid rgba(14, 25, 18, 0.12);
  color: #111913;
  font-weight: 700;
}

.custom-table__labels span:not(:nth-child(2)),
.custom-table__stat,
.custom-table__position {
  text-align: center;
}

.custom-table__row {
  min-height: 88px;
  background: #ffffff;
}

.custom-table__row:nth-child(even) {
  background: #efefef;
}

.custom-table__row + .custom-table__row {
  border-top: 1px solid rgba(14, 25, 18, 0.08);
}

.custom-table__row.is-current-team {
  background: #f3f9e7;
}

.custom-table__position {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(14, 25, 18, 0.08);
}

.custom-table__position strong,
.custom-table__stat--points {
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", "Arial Narrow", sans-serif;
  font-size: 1.35rem;
  color: #111913;
}

.custom-table__team {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0 1rem;
}

.custom-table__team img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex: 0 0 auto;
}

.custom-table__team strong {
  color: #18221b;
}

.custom-table__stat {
  padding: 0 0.5rem;
  color: #18221b;
}

.match-card {
  overflow: hidden;
  border-radius: 24px;
  background: #f7f7f4;
  border: 1px solid rgba(14, 25, 18, 0.16);
  color: #132118;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
}

.match-card__head {
  padding: 1rem 1.25rem 0.9rem;
  border-bottom: 1px solid rgba(14, 25, 18, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f1f1ed 100%);
}

.match-card__body {
  background: #ffffff;
}

.match-row {
  padding: 1rem 1.25rem 1.1rem;
}

.match-row + .match-row {
  border-top: 1px solid rgba(14, 25, 18, 0.08);
  background: #efefef;
}

.match-row__meta,
.match-row__venue,
.match-row__link-wrap {
  margin: 0;
}

.match-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  color: #5f6e64;
  font-size: 0.95rem;
}

.match-row__teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  margin-top: 0.75rem;
}

.match-row__teams.has-result .match-row__separator {
  min-width: 5rem;
}

.match-row__teams strong {
  color: #18221b;
}

.match-row__team {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.match-row__team img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: 0 0 auto;
}

.match-row__separator {
  text-align: center;
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", "Arial Narrow", sans-serif;
  font-size: 1.15rem;
  color: #111913;
}

.match-row__venue {
  margin-top: 0.75rem;
  color: #405047;
  font-weight: 600;
}

.match-row__link-wrap {
  margin-top: 0.9rem;
}

.match-row__link {
  color: #1a261d;
  font-weight: 700;
}

.match-row__link:hover {
  color: #486a1d;
}

.table-empty {
  border-radius: 24px;
  padding: 1.25rem;
}

.contact-box {
  border-radius: 20px;
  padding: 1.2rem;
}

.team-summary,
.team-squad-section,
.contact-box ul {
  margin: 0;
}

.team-summary {
  display: grid;
  gap: 1rem;
}

.team-summary__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.team-summary__head h3 {
  margin: 0.15rem 0 0;
}

.team-summary__competition {
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.team-summary__grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-stat-card {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.team-stat-card__label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-stat-card__value {
  display: block;
  color: #fff;
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", "Arial Narrow", sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.team-squad-section {
  display: grid;
  gap: 0.9rem;
}

.team-squad-section__note {
  margin: 0;
  color: var(--muted);
}

.obfuscated-text {
  display: inline-block;
  line-height: 1;
  font-style: normal;
  letter-spacing: 0;
}

.player-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.player-stat-card {
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.player-stat-card__top {
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  align-items: start;
  margin-bottom: 0.95rem;
}

.player-stat-card__top h4 {
  margin: 0;
}

.player-stat-card__top p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.player-stat-card__number {
  min-width: 2.4rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(216, 242, 109, 0.12);
  color: var(--accent-2);
  text-align: center;
  font-weight: 700;
}

.player-stat-card__stats {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.player-stat-card__stats span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.player-stat-card__stats strong {
  color: #fff;
  font-size: 1.2rem;
}

.squad-empty {
  padding: 1.1rem 1.2rem;
}

.squad-empty p {
  margin: 0;
}

.squad-empty p + p {
  margin-top: 0.7rem;
}

.contact-box ul {
  padding-left: 1.1rem;
}

.membership-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  display: grid;
  gap: 0.7rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.price-row__label {
  color: #fff;
}

.price-row__value {
  color: var(--accent-2);
  white-space: nowrap;
  font-size: 1rem;
}

.price-row--note {
  justify-content: flex-start;
}

.price-row--note .price-row__label {
  color: var(--muted);
}

.sponsor-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 1rem;
  border-radius: 18px;
  text-align: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: #fff;
}

.sponsor-pill img {
  max-width: 100%;
  max-height: 68px;
  object-fit: contain;
}

.sponsor-pill span {
  font-weight: 700;
}

.cta-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(142, 216, 64, 0.18), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(142, 216, 64, 0.26);
}

.cta-strip h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.fixture-card {
  border-radius: 24px;
  padding: 1.35rem;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr;
}

.fixture-card .widget-shell {
  padding: 0.9rem;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  height: 100%;
}

.fixture-card .widget-shell iframe {
  min-height: 100%;
  width: 100%;
}

.news-card--featured-home {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
}

.news-card--featured-home .news-card__visual img {
  aspect-ratio: 16 / 10;
}

.news-card--featured-home .news-card__body {
  display: grid;
  align-content: start;
}

.news-card--featured-home .news-card__body p:last-of-type {
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  color: var(--muted);
  background: rgba(3, 10, 7, 0.82);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.8fr;
  gap: 1.4rem;
}

.footer-card {
  padding: 1.1rem 1.2rem;
  border-radius: 22px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.footer-card h3 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  width: 52px;
  height: 52px;
}

.site-footer__nav,
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.footer-links {
  display: grid;
  gap: 0.6rem;
}

.muted {
  color: var(--muted);
}

@media (max-width: 960px) {
  .hero__grid,
  .news-grid,
  .info-grid,
  .membership-grid,
  .site-footer__grid,
  .widget-grid.has-table,
  .player-grid,
  .team-summary__grid {
    grid-template-columns: 1fr;
  }

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

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    z-index: 1002;
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(6, 18, 13, 0.96);
    display: none;
  }

  .main-nav.is-open {
    display: flex;
  }

  .widget-shell {
    padding: 0.8rem;
  }

  .fixture-card {
    padding: 1.15rem;
  }

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

  .match-row__teams {
    grid-template-columns: 1fr;
  }

  .match-row__separator {
    min-width: 0;
  }

  .team-summary__head {
    align-items: start;
    flex-direction: column;
  }

  .team-summary__competition {
    text-align: left;
  }

}

@media (max-width: 640px) {
  .hero {
    padding-top: 2.8rem;
  }

  .hero-card__meta,
  .four-up,
  .sponsor-grid,
  .fixture-grid {
    grid-template-columns: 1fr;
  }

  .cta-strip,
  .section-head {
    flex-direction: column;
    align-items: start;
  }

  .widget-shell,
  .fixture-card .widget-shell {
    padding: 0.65rem;
  }
}
