/* HNK Fruškogorac — žuto-plava (boje s grba) */
:root {
  --yellow: #ffd200;
  --yellow-deep: #e6bc00;
  --yellow-soft: #fff3a8;
  --yellow-glow: rgba(255, 210, 0, 0.45);
  --blue: #1b50a1;
  --blue-deep: #123a78;
  --blue-mid: #2460b8;
  --blue-soft: #e8f0fb;
  --blue-wash: #d6e4f7;
  --white: #ffffff;
  --paper: #eef3fb;
  --ink: #0f2a52;
  --ink-soft: #2a4570;
  --muted: #5a7194;
  --line: rgba(27, 80, 161, 0.16);
  --shadow: 0 24px 60px rgba(18, 58, 120, 0.18);
  --radius: 4px;
  --nav-h: 76px;
  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #0a1e46;
  line-height: 1.55;
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: fixed;
  inset: 0;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
}

.app-shell {
  height: 100%;
  height: 100dvh;
  height: 100svh;
  height: calc(var(--app-vh, 1vh) * 100);
  width: 100%;
  overflow: hidden;
  background: #0a1e46;
  display: flex;
  flex-direction: column;
}

.app-scroll {
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  position: relative;
  background: #0a1e46;
}

/* ——— NAV ——— */
.nav {
  position: relative;
  flex-shrink: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(27, 80, 161, 0.98);
  color: var(--white);
  box-shadow: 0 1px 0 rgba(255, 210, 0, 0.35);
  padding-top: env(safe-area-inset-top, 0px);
  box-sizing: content-box;
}

.nav.scrolled {
  background: rgba(27, 80, 161, 0.98);
  backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(255, 210, 0, 0.35);
  color: var(--white);
}

input,
select,
textarea {
  font-size: 16px;
}

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

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

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.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;
}

.nav.scrolled .nav__links a,
.nav .nav__links a {
  opacity: 0.85;
}

.nav.scrolled .nav__links a:hover,
.nav .nav__links a:hover {
  opacity: 1;
  color: var(--yellow);
}

.nav.scrolled .nav__langs,
.nav .nav__langs {
  border-left-color: rgba(255, 255, 255, 0.25);
}

.nav.scrolled .nav__langs button.active,
.nav .nav__langs button.active {
  background: var(--yellow);
  color: var(--blue-deep);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1280px, calc(100% - 2rem));
  margin-inline: auto;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  z-index: 2;
}

.nav__crest {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--yellow);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(18, 58, 120, 0.2);
}

.nav__crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav__links a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.45rem 0.55rem;
  opacity: 0.72;
  transition: opacity 0.25s;
}

.nav__links a:hover {
  opacity: 1;
}

.nav__langs {
  display: flex;
  gap: 0.25rem;
  margin-left: 0.5rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--line);
}

.nav__langs button {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.45rem;
  opacity: 0.45;
  transition: opacity 0.2s, background 0.2s;
}

.nav__langs button.active {
  opacity: 1;
  background: var(--blue);
  color: var(--yellow);
}

.nav__burger {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--blue);
  background: var(--yellow);
}

.nav.scrolled .nav__burger {
  border-color: var(--yellow);
  background: var(--yellow);
}

.nav__burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--blue-deep);
  position: relative;
}

.nav__burger span::before,
.nav__burger span::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 2px;
  background: var(--blue-deep);
}

.nav__burger span::before {
  top: -6px;
}
.nav__burger span::after {
  top: 6px;
}

/* ——— HERO ——— */
.hero {
  position: relative;
  min-height: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  min-height: calc(var(--app-vh, 1vh) * 100);
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  background: #0a1e46;
}

.hero__slides {
  position: absolute;
  inset: 0;
  background: #0a1e46;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2.2s var(--ease);
  display: grid;
  place-items: center;
  background: #0a1e46;
}

.hero__slide.active {
  opacity: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transform: none;
  animation: none;
}

.hero__slide--cover img {
  object-fit: cover;
  object-position: center 58%;
}

.hero__slide--top img {
  object-fit: cover;
  object-position: center 42%;
}

.hero__slide--bright img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  filter: brightness(1.18) contrast(1.12) saturate(1.08);
  image-rendering: auto;
}

.hero__slide.active img {
  animation: none;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 58, 120, 0.25) 0%, rgba(18, 58, 120, 0.05) 35%, rgba(10, 30, 70, 0.72) 100%);
  pointer-events: none;
  transition: background 0.6s var(--ease), opacity 0.6s var(--ease);
}

.hero__veil.is-bright {
  background:
    linear-gradient(180deg, rgba(10, 30, 70, 0.12) 0%, rgba(10, 30, 70, 0.02) 45%, rgba(10, 30, 70, 0.45) 100%);
  opacity: 0.85;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.5rem 0 4.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
}

.hero__brand-block {
  max-width: 720px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.85rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.15s forwards;
}

.hero__eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--yellow);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8.5vw, 6.2rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  color: #fff;
  text-shadow:
    -1px -1px 0 var(--yellow),
    1px -1px 0 var(--yellow),
    -1px 1px 0 var(--blue),
    1px 1px 0 var(--blue),
    0 -1px 0 var(--yellow),
    0 1px 0 var(--blue),
    -1px 0 0 var(--yellow),
    1px 0 0 var(--blue);
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.28s forwards;
}

.hero__city {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: 0.22em;
  color: var(--yellow);
  margin-bottom: 1.1rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.4s forwards;
}

.hero__tagline {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.52s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.64s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--yellow {
  background: var(--yellow);
  color: var(--blue-deep);
}

.btn--yellow:hover {
  background: var(--white);
  color: var(--blue);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.btn--ghost:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.hero__profile {
  width: min(220px, 28vw);
  aspect-ratio: 1;
  border: 3px solid var(--yellow);
  background: var(--blue);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  opacity: 1;
  animation: rise 0.9s var(--ease) 0.7s both;
  box-shadow: 0 16px 40px rgba(18, 58, 120, 0.45);
}

.hero__profile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0;
}

.hero__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.1rem;
  z-index: 3;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

.hero__dots {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hero__dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  transition: background 0.3s, transform 0.3s;
}

.hero__dots button.active {
  background: var(--yellow);
  border-color: var(--yellow);
  transform: scale(1.25);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ——— TICKER ——— */
.ticker {
  position: relative;
  background: var(--blue);
  color: var(--white);
  border-top: 2px solid rgba(255, 210, 0, 0.75);
  border-bottom: 2px solid rgba(255, 210, 0, 0.75);
  overflow: hidden;
  padding: 0.85rem 0;
}

.ticker__label {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0 1rem;
  background: var(--yellow);
  color: var(--blue-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  min-width: 5.25rem;
  box-sizing: border-box;
}

.ticker__wrap {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding-left: 6.5rem;
}

.ticker__track {
  display: flex;
  width: max-content;
  gap: 0;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.ticker__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.15rem 1.6rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: color 0.25s;
  flex-shrink: 0;
}

.ticker__item:hover {
  color: var(--yellow);
}

.ticker__item img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--yellow);
}

.ticker__item strong {
  font-size: 0.92rem;
  font-weight: 700;
}

.ticker__item em {
  font-style: normal;
  font-size: 0.72rem;
  opacity: 0.55;
  margin-left: 0.35rem;
}

/* ——— INFO TICKER (podaci kluba) ——— */
.info-ticker {
  position: relative;
  background: var(--yellow);
  color: var(--blue-deep);
  overflow: hidden;
  padding: 0.7rem 0;
  border-bottom: 2px solid rgba(27, 80, 161, 0.45);
}

.info-ticker__wrap {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding-left: 6.5rem;
}

.info-ticker__label {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0 1rem;
  background: var(--blue);
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  min-width: 5.25rem;
  box-sizing: border-box;
}

.info-ticker__track {
  display: flex;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.info-ticker__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 1.75rem;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 700;
  border-right: 1px solid rgba(27, 80, 161, 0.25);
  flex-shrink: 0;
}

.info-ticker__item::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* ——— TEAM CAROUSEL ——— */
.team-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.35rem;
}

.team-tabs button {
  padding: 0.75rem 1.25rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--blue-deep);
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s;
}

.team-tabs button:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}

.team-tabs button.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--yellow);
}

.team-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
}

.team-nav {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--yellow);
  font-size: 1.8rem;
  line-height: 1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.25s, transform 0.25s;
  z-index: 2;
}

.team-nav:hover {
  background: var(--blue-deep);
  transform: scale(1.06);
}

.team-rail {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding: 0.35rem 0.15rem 0.85rem;
  -webkit-overflow-scrolling: touch;
  /* Allow vertical page scroll while finger is over the rail */
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
}

.team-rail::-webkit-scrollbar {
  height: 6px;
}

.team-rail::-webkit-scrollbar-thumb {
  background: var(--blue);
  border-radius: 3px;
}

.team-rail .player-card {
  flex: 0 0 min(220px, 72vw);
  scroll-snap-align: start;
  flex-shrink: 0;
}

.team-meta {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

/* ——— SECTIONS ——— */
:root {
  --section-blend-h: clamp(5.5rem, 14vw, 10rem);
}

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  position: relative;
  isolation: isolate;
  background: var(--paper);
}

.section::before,
.section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: var(--section-blend-h);
  pointer-events: none;
  z-index: 0;
}

.section::before {
  top: 0;
  background: var(--blend-top, none);
}

.section::after {
  bottom: 0;
  background: var(--blend-bottom, none);
}

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

.section--alt {
  background:
    linear-gradient(180deg, rgba(27, 80, 161, 0.06), rgba(27, 80, 161, 0.02)),
    var(--white);
}

.section--yellow {
  background: linear-gradient(135deg, var(--yellow) 0%, #ffe566 45%, var(--yellow-soft) 100%);
  --blend-top: linear-gradient(to bottom, var(--paper) 0%, rgba(255, 243, 168, 0.35) 28%, rgba(255, 229, 102, 0.75) 62%, var(--yellow) 100%);
  --blend-bottom: linear-gradient(to top, var(--paper) 0%, rgba(255, 243, 168, 0.35) 28%, rgba(255, 229, 102, 0.75) 62%, var(--yellow-soft) 100%);
}

.section--blue {
  background: linear-gradient(160deg, var(--blue-deep) 0%, var(--blue) 55%, var(--blue-mid) 100%);
  color: var(--white);
  --blend-top: linear-gradient(to bottom, var(--paper) 0%, rgba(18, 58, 120, 0.4) 45%, var(--blue-deep) 100%);
  --blend-bottom: linear-gradient(to top, var(--blue-deep) 0%, rgba(18, 58, 120, 0.55) 45%, var(--blue-mid) 100%);
}

/* ——— SECTION COLOR BLEEDS ——— */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: clamp(4rem, 12vw, 8rem);
  background: linear-gradient(to bottom, transparent 0%, rgba(27, 80, 161, 0.55) 55%, var(--blue) 100%);
  pointer-events: none;
  z-index: 1;
}

.ticker::before,
.ticker::after,
.info-ticker::before,
.info-ticker::after {
  content: none;
}

.info-ticker + .section {
  --blend-top: linear-gradient(to bottom, var(--yellow-soft) 0%, rgba(255, 243, 168, 0.35) 35%, var(--paper) 100%);
}

.section--alt + .section:not(.section--yellow):not(.section--blue) {
  --blend-top: linear-gradient(to bottom, var(--white) 0%, rgba(255, 255, 255, 0.75) 40%, var(--paper) 100%);
}

.section:not(.section--alt):not(.section--yellow):not(.section--blue) + .section--alt {
  --blend-top: linear-gradient(to bottom, var(--paper) 0%, rgba(238, 243, 251, 0.75) 40%, var(--white) 100%);
}

.section:not(.section--alt):not(.section--yellow):not(.section--blue):has(+ .section--alt) {
  --blend-bottom: linear-gradient(to top, var(--white) 0%, rgba(255, 255, 255, 0.7) 40%, var(--paper) 100%);
}

.section--alt:has(+ .section:not(.section--yellow):not(.section--blue)) {
  --blend-bottom: linear-gradient(to top, var(--paper) 0%, rgba(238, 243, 251, 0.75) 40%, var(--white) 100%);
}

#gallery:has(+ .section--blue) {
  --blend-bottom: linear-gradient(to top, var(--blue-deep) 0%, rgba(18, 58, 120, 0.35) 42%, var(--paper) 100%);
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--section-blend-h);
  background: linear-gradient(to bottom, var(--blue-mid) 0%, rgba(18, 58, 120, 0.45) 50%, var(--blue-deep) 100%);
  pointer-events: none;
}

.section__head {
  margin-bottom: 2.25rem;
  max-width: 40rem;
  position: relative;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--blue-soft);
  color: var(--blue-deep);
  border: 1px solid var(--line);
}

.live-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}

.live-status.is-live {
  background: rgba(27, 80, 161, 0.1);
  color: var(--blue);
  border-color: rgba(27, 80, 161, 0.25);
}

.live-status.is-live::before {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
  animation: pulse 1.6s ease-in-out infinite;
}

.live-status.is-error::before {
  background: #f59e0b;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.7;
  }
}

.section__eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.55rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  letter-spacing: 0.03em;
  line-height: 0.95;
  text-transform: uppercase;
}

.section__sub {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 1rem;
}

/* ——— MATCHBOARD ——— */
.matchboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.match-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  padding: 1.5rem 1.6rem 1.7rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.match-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.match-card--next {
  background: linear-gradient(145deg, var(--blue-deep), var(--blue));
  color: var(--white);
  border-color: var(--blue-deep);
  border-top-color: var(--yellow);
}

.match-card--next::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--yellow);
}

.match-card__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.85rem;
}

.match-card--next .match-card__label {
  color: var(--yellow);
}

.match-card__team-tag {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold, #c4a35a);
}

.match-card__comp {
  font-size: 0.78rem;
  opacity: 0.55;
  margin-bottom: 1rem;
}

.match-card__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.1rem;
}

.match-card__team {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.match-card__team:last-child {
  text-align: right;
}

.match-card__score {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--blue);
  letter-spacing: 0.04em;
  min-width: 4.5rem;
  text-align: center;
}

.match-card--next .match-card__score {
  color: var(--yellow);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  line-height: 1.1;
}

.match-card--next .match-card__score small {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  opacity: 0.85;
}

.match-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.match-card--next .match-card__meta {
  color: rgba(255, 255, 255, 0.7);
}

.match-card__scorers {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ——— NEWS ——— */
.news-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.news-rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding: 0.35rem 0.15rem 0.85rem;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
}

.news-rail::-webkit-scrollbar {
  height: 6px;
}

.news-rail::-webkit-scrollbar-thumb {
  background: var(--blue);
  border-radius: 3px;
}

.news-rail .news-card {
  flex: 0 0 min(360px, 82vw);
  scroll-snap-align: start;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.35s var(--ease);
  text-align: left;
  color: inherit;
  font: inherit;
  width: 100%;
}

.news-card--clickable {
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-4px);
}

.news-card__more {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.news-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.news-card:hover .news-card__media img {
  transform: scale(1.06);
}

.news-card__body {
  padding: 1.25rem 1.3rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card__date {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.55rem;
}

.news-card__title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.news-card__excerpt {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: auto;
}

/* ——— SQUAD ——— */
.squad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.player-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  cursor: pointer;
  background: var(--blue-deep);
  color: var(--white);
  border-bottom: 4px solid var(--yellow);
}

.player-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.28s ease;
  pointer-events: none;
  -webkit-user-drag: none;
  background: var(--blue-deep);
}

.player-card img.is-loaded {
  opacity: 0.92;
}

.player-card:hover img.is-loaded {
  transform: scale(1.05);
  opacity: 1;
}

.player-card__overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 1.1rem 1rem 1.15rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  z-index: 1;
}

.player-card__num {
  position: absolute;
  top: 0.75rem;
  left: 0.85rem;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--yellow);
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.player-card__name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.05;
  display: block;
}

.player-card__pos {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 0.35rem;
}

/* ——— TABLE ——— */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--white);
}

.standings {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 720px;
}

.standings th,
.standings td {
  padding: 0.85rem 0.75rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.standings th {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
}

.standings td:nth-child(2),
.standings th:nth-child(2) {
  text-align: left;
}

.standings tr.highlight {
  background: linear-gradient(90deg, var(--yellow-soft), rgba(255, 210, 0, 0.35));
  font-weight: 700;
}

.standings tr.highlight td:first-child {
  box-shadow: inset 4px 0 0 var(--blue);
}

.standings tr:hover:not(.highlight) {
  background: rgba(27, 80, 161, 0.06);
}

/* ——— STATS ——— */
.scorers {
  display: grid;
  gap: 0.65rem;
}

.scorer-row {
  display: grid;
  grid-template-columns: 48px 56px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color 0.25s, transform 0.25s;
  cursor: pointer;
}

.scorer-row:hover {
  border-color: var(--blue);
  transform: translateX(4px);
}

.scorer-row__rank {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--blue);
}

.scorer-row img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--yellow);
}

.scorer-row__name {
  font-weight: 700;
}

.scorer-row__pos {
  font-size: 0.78rem;
  color: var(--muted);
}

.scorer-row__goals {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--ink);
}

/* ——— SCHEDULE ——— */
.tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.tabs button {
  padding: 0.7rem 1.2rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: var(--white);
  transition: background 0.25s, border-color 0.25s;
}

.tabs button.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--yellow);
}

.fixture-list {
  display: grid;
  gap: 0.55rem;
}

.semafor-block {
  margin-top: 2.25rem;
}

.semafor-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.semafor-block__head h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

.match-team-tabs {
  margin: 0 0 0.9rem;
}

.semafor-chip__team {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold, #c4a35a);
}

.semafor-empty {
  margin: 0.15rem 0 0;
  padding: 0.75rem 0.15rem;
  color: var(--muted, #6b7280);
  font-size: 0.95rem;
}

.semafor-rail {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 0.55rem;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
}

.semafor-rail::-webkit-scrollbar {
  height: 6px;
}

.semafor-rail::-webkit-scrollbar-thumb {
  background: var(--blue);
}

.semafor-chip {
  flex: 0 0 min(280px, 82vw);
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  padding: 1rem 1.1rem 1.15rem;
}

.semafor-chip--next {
  background: linear-gradient(145deg, var(--blue-deep), var(--blue));
  color: var(--white);
  border-color: var(--blue-deep);
  border-top-color: var(--yellow);
}

.semafor-chip__comp {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.45rem;
}

.semafor-chip--next .semafor-chip__comp {
  color: var(--yellow);
}

.semafor-chip__when {
  margin-bottom: 0.7rem;
}

.semafor-chip__when strong {
  display: block;
  font-size: 0.95rem;
}

.semafor-chip__when span {
  font-size: 0.8rem;
  opacity: 0.7;
}

.semafor-chip__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.4rem;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.semafor-chip__teams span:last-child {
  text-align: right;
}

.semafor-chip__score {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--blue);
  min-width: 3.2rem;
  text-align: center;
}

.semafor-chip__score--live,
.semafor-chip--next .semafor-chip__score {
  color: var(--yellow);
  font-size: 1.05rem;
}

.semafor-chip__venue {
  font-size: 0.78rem;
  opacity: 0.65;
}

.season-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.season-stat {
  background: linear-gradient(145deg, var(--blue-deep), var(--blue));
  color: var(--white);
  padding: 1.1rem 0.7rem;
  text-align: center;
}

.season-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.season-stat span {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

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

.stats-col__title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  color: var(--blue-deep);
}

.fixture {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr) 3.5rem;
  gap: 0.85rem 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.fixture__comp {
  display: block;
  font-size: 0.72rem;
  color: var(--blue);
  font-weight: 700;
  margin-top: 0.15rem;
}

.fixture__mid {
  min-width: 0;
  overflow: hidden;
}

.fixture__venue {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.75rem;
  align-items: stretch;
}

#contact.section {
  padding: clamp(2.25rem, 4vw, 3.25rem) 0;
}

#contact .section__head {
  margin-bottom: 1.25rem;
}

#contact .section__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

#contact .section__sub {
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 210, 0, 0.35);
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-card strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: var(--yellow);
}

.contact-card span {
  opacity: 0.8;
  font-size: 0.85rem;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  justify-content: center;
}

.contact-actions .btn {
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
}

.contact-location {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#contact .location-block {
  padding-top: 0.15rem;
  border-top: 1px solid rgba(255, 210, 0, 0.22);
}

#contact .location-grid {
  gap: 0.85rem;
}

#contact .location-info dt {
  color: var(--yellow);
  opacity: 0.85;
}

#contact .location-info dd {
  color: #fff;
  font-size: 0.92rem;
}

#contact .location-map {
  min-height: 220px;
  border-color: rgba(255, 210, 0, 0.25);
}

#contact .location-map iframe {
  min-height: 220px;
}

.section--blue .btn--ghost {
  border-color: rgba(255, 255, 255, 0.45);
}

.fixture__when {
  font-size: 0.85rem;
}

.fixture__when strong {
  display: block;
  font-weight: 700;
}

.fixture__when span {
  color: var(--muted);
  font-size: 0.8rem;
}

.fixture__teams {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.15;
  min-width: 0;
}

.fixture__side {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fixture__score {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 3.5rem;
  min-width: 3.5rem;
  justify-self: end;
  align-self: center;
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1;
  text-align: right;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.fixture__score.pending {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
  width: 3.5rem;
}

/* ——— BOARD ——— */
#board.section {
  padding: clamp(2.25rem, 4vw, 3.25rem) 0;
}

#board .section__head {
  margin-bottom: 1.25rem;
}

#board .section__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.board-layout {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

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

.board-members-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  text-align: center;
}

.board-members {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 0.5rem;
}

.board-card {
  text-align: center;
  padding: 0.85rem 0.55rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.board-card--officer {
  padding: 1.1rem 0.75rem;
}

.board-card--officer .board-card__name {
  font-size: 1.35rem;
}

.board-card--officer .board-card__role {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.board-card--member {
  padding: 0.65rem 0.35rem;
}

.board-card__name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.1;
}

.board-card__role {
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.3;
}

.board-card--member .board-card__role {
  display: none;
}

.board-coaches {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  max-width: 42rem;
}

.coach-row {
  display: grid;
  grid-template-columns: 11.5rem 1fr;
  align-items: center;
  column-gap: 1rem;
  padding: 0.65rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.coach-row__team {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  line-height: 1.25;
}

.coach-row__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.15;
  text-align: left;
}

.coach-row__name em {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

/* ——— GALLERY ——— */
.gallery-rail {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
}

.gallery-rail::-webkit-scrollbar {
  height: 6px;
}

.gallery-rail::-webkit-scrollbar-thumb {
  background: var(--yellow);
}

.gallery-item {
  flex: 0 0 min(320px, 78vw);
  aspect-ratio: 4 / 3;
  scroll-snap-align: start;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: 1px solid rgba(27, 80, 161, 0.18);
  background: var(--blue-deep);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 58, 120, 0.08) 0%,
    rgba(27, 80, 161, 0.14) 100%
  );
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
  z-index: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.96) contrast(1.02);
  transition: transform 0.6s var(--ease), filter 0.45s var(--ease);
}

.gallery-item:hover::after {
  opacity: 0.35;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: saturate(0.97) brightness(1) contrast(1.02);
}

/* ——— SPONSORS ——— */
#sponsors.section {
  padding: clamp(2.25rem, 4vw, 3.25rem) 0;
}

#sponsors .section__head {
  margin-bottom: 1.25rem;
}

#sponsors .section__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.sponsors-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sponsor-group {
  margin-bottom: 0;
  text-align: center;
}

.sponsor-group:last-child {
  margin-bottom: 0;
}

.sponsor-group h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 auto 0.85rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--blue);
  display: inline-block;
  color: var(--blue-deep);
}

.sponsor-group--general h3 {
  border-color: var(--blue);
  color: var(--blue-deep);
}

.sponsor-group--gold h3 {
  border-color: #c9a227;
  color: #8a6d12;
}

.sponsor-group--silver h3 {
  border-color: #9aa0a6;
  color: #5c636a;
}

.sponsor-group--bronze h3 {
  border-color: #b87333;
  color: #8a5520;
}

.sponsor-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  align-items: center;
}

.sponsor-row--general {
  gap: 1.5rem;
}

.sponsor-row--gold {
  gap: 1.25rem;
}

.sponsor-row--bronze {
  gap: 0.45rem;
}

.sponsor-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: auto;
  height: auto;
  background: transparent;
  border: none;
  text-decoration: none;
  color: var(--blue-deep);
}

.sponsor-logo__media {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.sponsor-logo__media:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 40, 80, 0.1);
}

.sponsor-logo__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.65rem;
}

.sponsor-logo__media--fill {
  padding: 0;
  cursor: zoom-in;
  background: #f4f4f4;
}

.sponsor-logo__media--fill img {
  padding: 0;
  object-fit: contain;
  object-position: center;
}

.sponsor-logo__media--bleed {
  background: #0b0b0b;
}

.sponsor-logo__media--bleed img {
  object-fit: contain;
  object-position: center;
}

.sponsor-logo__media--bleed-gold {
  background: #c9a46a;
}

.sponsor-logo--silver .sponsor-logo__media--fill {
  width: min(260px, 72vw);
  height: auto;
  aspect-ratio: 16 / 9;
}

.sponsor-logo--silver .sponsor-logo__media--bleed-gold {
  aspect-ratio: 11 / 4;
}

button.sponsor-logo__media {
  font: inherit;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.sponsor-logo__fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-align: center;
  line-height: 1.2;
  color: var(--blue-deep);
  background:
    linear-gradient(135deg, rgba(255, 214, 0, 0.12), transparent 55%),
    var(--white);
}

.sponsor-logo__caption {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.25;
  color: var(--blue-deep);
  max-width: 100%;
}

.sponsor-logo--general .sponsor-logo__media {
  width: min(380px, 85vw);
  height: 240px;
}

.sponsor-logo--general .sponsor-logo__fallback {
  font-size: 1.5rem;
}

.sponsor-logo--general .sponsor-logo__caption {
  font-size: 0.95rem;
}

.sponsor-logo--gold .sponsor-logo__media {
  width: min(220px, 42vw);
  height: 140px;
}

.sponsor-logo--gold .sponsor-logo__fallback {
  font-size: 1.15rem;
}

.sponsor-logo--gold .sponsor-logo__caption {
  font-size: 0.85rem;
}

.sponsor-logo--silver .sponsor-logo__media {
  width: min(160px, 36vw);
  height: 100px;
}

.sponsor-logo--silver .sponsor-logo__fallback {
  font-size: 0.95rem;
}

.sponsor-logo--bronze .sponsor-logo__media {
  width: min(110px, 28vw);
  height: 72px;
}

.sponsor-logo--bronze .sponsor-logo__media--fill {
  width: min(220px, 72vw);
  height: 124px;
}

.sponsor-logo--bronze .sponsor-logo__fallback {
  font-size: 0.72rem;
  padding: 0.4rem;
}

.sponsor-pill {
  min-width: 0;
  padding: 0.55rem 0.9rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-align: center;
  color: var(--blue-deep);
  transition: color 0.2s, border-color 0.2s;
}

.sponsor-pill--text:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* ——— LOCATION ——— */
#location.section {
  padding: clamp(2.25rem, 4vw, 3.25rem) 0;
}

#location .section__head {
  margin-bottom: 1.25rem;
}

#location .section__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

#location .section__sub {
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1rem;
  align-items: stretch;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  justify-content: center;
}

.location-info dl {
  display: grid;
  gap: 0.55rem;
}

.location-info dt {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.location-info dd {
  font-size: 0.95rem;
  font-weight: 600;
}

.location-map {
  min-height: 240px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--blue-deep);
}

.location-map iframe {
  width: 100%;
  height: 100%;
  min-height: 240px;
  border: 0;
  filter: grayscale(0.15) contrast(1.05);
}

/* ——— ABOUT ——— */
#about.section {
  padding: clamp(2.25rem, 4vw, 3.25rem) 0;
}

#about .section__head {
  margin-bottom: 1.25rem;
}

#about .section__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.about-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
  align-items: center;
}

.about-block p {
  font-size: 0.98rem;
  color: var(--ink-soft);
  max-width: 52ch;
  line-height: 1.5;
}

.about-seo {
  margin-top: 0.85rem;
  font-size: 0.92rem !important;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.about-stat {
  padding: 0.85rem 0.9rem;
  background: linear-gradient(145deg, var(--blue-deep), var(--blue));
  color: var(--white);
}

.about-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.about-stat span {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ——— FOOTER ——— */
.footer {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: var(--white);
  padding: 1rem 0 0.85rem;
  border-top: 2px solid rgba(255, 210, 0, 0.65);
}

.footer > .container {
  position: relative;
  z-index: 1;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.footer__brand span {
  color: var(--yellow);
}

.footer__meta {
  font-size: 0.72rem;
  opacity: 0.6;
  margin-top: 0.15rem;
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.footer__social a:hover {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}

/* ——— MODAL ——— */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(6px);
}

.modal__panel {
  position: relative;
  width: min(920px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.35s var(--ease);
}

.modal.open .modal__panel {
  transform: none;
}

.modal__panel--article {
  width: min(760px, 100%);
  max-height: min(92vh, 980px);
}

.article__hero {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--blue-deep);
}

.article__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article__body {
  padding: 1.5rem 1.5rem 2rem;
}

.article__meta {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.article__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 0.85rem;
}

.article__lead {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.55;
}

.article__qa {
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.article__q {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--blue);
}

.article__a {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  width: 42px;
  height: 42px;
  background: var(--blue);
  color: var(--yellow);
  font-size: 1.3rem;
  display: grid;
  place-items: center;
}

.modal__layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

.modal__photo {
  display: block;
  width: 100%;
  min-height: 320px;
  max-height: min(72vh, 680px);
  padding: 0;
  border: 0;
  background: #0a1e46;
  cursor: zoom-in;
}

.modal__photo img {
  width: 100%;
  height: 100%;
  max-height: min(72vh, 680px);
  object-fit: contain;
  object-position: center top;
}

.modal__body {
  padding: 2rem 1.6rem 1.8rem;
  overflow: visible;
}

.modal__num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--blue);
  line-height: 1.15;
  padding-top: 0.12em;
  overflow: visible;
}

.modal__name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 0.95;
  margin: 0.2rem 0 0.35rem;
}

.modal__pos {
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.modal__status {
  margin: -0.4rem 0 1rem;
  font-size: 0.85rem;
}

.modal__status a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.modal__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}

.modal__stat {
  padding: 0.75rem 0.5rem;
  background: var(--blue-soft);
  text-align: center;
  border: 1px solid var(--line);
}

.modal__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
}

.modal__stat span {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.modal__bio {
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.modal__gallery-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.55rem;
}

.modal__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.modal__gallery button {
  aspect-ratio: 1;
  overflow: hidden;
}

.modal__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.modal__gallery button:hover img {
  transform: scale(1.08);
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.94);
  display: grid;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox.is-loading img {
  opacity: 0.25;
}

.lightbox img {
  width: auto;
  height: auto;
  max-width: min(1100px, 96vw);
  max-height: min(88dvh, 900px);
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  background: var(--yellow);
  color: var(--blue-deep);
  font-size: 1.4rem;
}

/* file inputs for crest / profile */
.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.15s var(--ease), transform 1.15s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ——— RESPONSIVE ——— */
@media (max-width: 1100px) {
  .nav {
    height: auto;
    min-height: var(--nav-h);
  }

  .nav__inner {
    flex-wrap: wrap;
    align-items: center;
    width: min(1280px, calc(100% - 1.25rem));
    gap: 0.35rem 0.75rem;
    padding-bottom: 0.4rem;
  }

  .nav__brand span:last-child {
    font-size: 1.25rem;
  }

  .nav__links {
    display: flex;
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0.05rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
  }

  .nav__links::-webkit-scrollbar {
    display: none;
  }

  .nav__links a {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.68rem;
    padding: 0.4rem 0.45rem;
    opacity: 0.92;
  }

  .nav__langs {
    margin-left: 0.25rem;
    padding-left: 0.45rem;
    flex: 0 0 auto;
  }

  .nav__burger {
    display: none;
  }

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

  .news-rail .news-card {
    flex-basis: min(300px, 78vw);
  }

  .board-members {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .hero__slide img,
  .hero__slide--cover img,
  .hero__slide--bright img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center 42%;
    filter: none;
  }

  .hero__slide--top img {
    /* Mobile: pull back zoom, show jerseys + shelves, hide shoe row */
    object-fit: cover;
    object-position: center 26%;
    transform: scale(0.92);
    transform-origin: center 20%;
  }

  .hero__slide--mobile-only img {
    object-fit: cover;
    object-position: center 40%;
  }

  .hero__veil,
  .hero__veil.is-bright {
    opacity: 1;
    background:
      linear-gradient(
        180deg,
        rgba(10, 30, 70, 0.45) 0%,
        rgba(10, 30, 70, 0.2) 38%,
        rgba(10, 30, 70, 0.92) 100%
      );
  }

  .hero__content {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding-top: 1.25rem;
    padding-bottom: 5rem;
    gap: 0.85rem;
    align-items: end;
  }

  .hero__brand-block {
    max-width: 100%;
  }

  .hero__eyebrow {
    justify-content: center;
  }

  .hero__actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero__profile {
    width: min(108px, 30vw);
    order: -1;
    margin-top: 0;
    border-width: 2px;
  }

  .hero__profile img {
    padding: 0;
  }

  .hero__title {
    font-size: clamp(2.6rem, 12vw, 3.6rem);
  }

  .hero__dots {
    flex-direction: row;
    top: auto;
    bottom: 3rem;
    right: 50%;
    transform: translateX(50%);
  }

  .matchboard,
  .location-grid,
  .about-block,
  .modal__layout,
  .stats-columns,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .board-members {
    grid-template-columns: repeat(3, 1fr);
  }

  .coach-row {
    grid-template-columns: 8.75rem 1fr;
    column-gap: 0.65rem;
    padding: 0.55rem 0.7rem;
  }

  .coach-row__name {
    font-size: 1rem;
  }

  .fixture {
    grid-template-columns: 5.5rem minmax(0, 1fr) 3.1rem;
    gap: 0.45rem 0.55rem;
    padding: 0.85rem 0.75rem;
    align-items: center;
  }

  .fixture__when {
    font-size: 0.75rem;
  }

  .fixture__when span {
    font-size: 0.7rem;
  }

  .fixture__comp {
    font-size: 0.62rem;
  }

  .fixture__teams {
    font-size: 1.02rem;
  }

  .fixture__venue {
    font-size: 0.7rem;
  }

  .fixture__score {
    width: 3.1rem;
    min-width: 3.1rem;
    font-size: 1.35rem;
    text-align: right;
    justify-content: flex-end;
  }

  .fixture__score.pending {
    width: 3.1rem;
    font-size: 0.65rem;
  }

  .ticker__wrap,
  .info-ticker__wrap {
    padding-left: 5.75rem;
  }

  .ticker__label,
  .info-ticker__label {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    margin-bottom: 0;
    width: 5.25rem;
    max-width: 5.25rem;
    min-width: 5.25rem;
    padding: 0 0.45rem;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-align: center;
    line-height: 1.15;
  }

  .team-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    overflow: visible;
    flex-wrap: unset;
    padding-bottom: 0;
    touch-action: manipulation;
  }

  .team-tabs::-webkit-scrollbar {
    display: none;
  }

  .team-tabs button {
    padding: 0.5rem 0.35rem;
    font-size: 0.58rem;
    letter-spacing: 0.03em;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
    width: 100%;
    min-height: 2.4rem;
  }

  .team-carousel {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .team-nav {
    position: absolute;
    top: 42%;
    z-index: 3;
    width: 40px;
    height: 40px;
    font-size: 1.45rem;
  }

  .team-nav--prev {
    left: 0.25rem;
  }

  .team-nav--next {
    right: 0.25rem;
  }

  .team-rail {
    gap: 0.65rem;
    padding: 0.25rem 2.4rem 0.85rem;
    scroll-snap-type: none;
  }

  .team-rail .player-card {
    flex: 0 0 min(200px, 78vw);
    scroll-snap-align: none;
  }

  .team-rail .player-card__name {
    font-size: 1.15rem;
  }

  .squad-grid,
  .about-stats,
  .modal__stats,
  .modal__gallery,
  .season-grid {
    grid-template-columns: 1fr 1fr;
  }

  .news-carousel {
    gap: 0.35rem;
  }

  .news-rail .news-card {
    flex-basis: min(280px, 85vw);
  }

  .board-officers {
    grid-template-columns: 1fr;
  }

  .board-members {
    grid-template-columns: 1fr 1fr;
  }

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

  .hero__title {
    font-size: clamp(2.6rem, 11vw, 4rem);
  }

  .scorer-row {
    grid-template-columns: 36px 44px 1fr auto;
    gap: 0.55rem;
    padding: 0.65rem 0.7rem;
  }
}



/* PitchLive TV */
.pitchlive-wrap {
  display: grid;
  gap: 1rem;
  max-width: 640px;
  margin-inline: auto;
}

.pitchlive-tv {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.pitchlive-tv iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pitchlive-tv--ad {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  aspect-ratio: 1024 / 548;
  display: block;
  width: 100%;
}

.pitchlive-tv--ad:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 3px;
}

.pitchlive-ad {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #000;
  pointer-events: none;
  user-select: none;
}

.pitchlive-screen {
  position: relative;
  z-index: 1;
  width: min(92vw, 420px);
  background: #0a0a0a;
  color: #fff;
  border-radius: 12px;
  padding: 0.85rem 1rem 1.15rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.pitchlive-modal.open .pitchlive-screen {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.pitchlive-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.pitchlive-modal[hidden] {
  display: none;
}

.pitchlive-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.pitchlive-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.62);
  cursor: pointer;
}

.pitchlive-screen__bar {
  width: 2.5rem;
  height: 3px;
  border-radius: 2px;
  background: #3b82f6;
  margin-bottom: 0.85rem;
}

.pitchlive-screen__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}

.pitchlive-screen__crest {
  width: 2.15rem;
  height: 2.15rem;
  object-fit: contain;
  flex: 0 0 auto;
}

.pitchlive-screen__title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.pitchlive-card {
  border-radius: 14px;
  overflow: hidden;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pitchlive-pitch {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(ellipse 80% 70% at 50% 45%, #1f6b3a 0%, #0f3d22 55%, #0a2a18 100%);
  display: grid;
  place-items: center;
}

.pitchlive-pitch__field {
  width: 78%;
  height: 72%;
  opacity: 0.9;
}

.pitchlive-pitch__soon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  font-size: clamp(1.6rem, 5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
  background: rgba(0, 0, 0, 0.28);
}

.pitchlive-card__foot {
  padding: 1rem 1.1rem 1.15rem;
}

.pitchlive-card__name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}
