/* ============================================================
   FC CSL – Communal Sport Le Locle
   Theme: Navy · White · Red (logo club)
   ============================================================ */
:root {
  --navy: #0b1f3a;
  --navy-mid: #142d4f;
  --navy-light: #1c3a63;
  --red: #e62f36;
  --red-dark: #c41f26;
  --red-soft: rgba(230, 47, 54, 0.12);
  --white: #ffffff;
  --off-white: #f4f6f9;
  --gray-100: #e8ecf1;
  --gray-300: #b0b8c4;
  --gray-500: #6b7585;
  --gray-700: #3a4250;
  --gold: #c9a227;
  --success: #1f9d55;
  --draw: #f0a500;
  --loss: #e62f36;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 40px rgba(11, 31, 58, 0.12);
  --shadow-sm: 0 4px 16px rgba(11, 31, 58, 0.08);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Oswald", "Inter", sans-serif;
  --header-h: 78px;
  --max: 1180px;
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
button, input, textarea, select {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--navy);
  line-height: 1.15;
  text-transform: uppercase;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
}
.section-label::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 0.5rem;
}
.section-sub {
  color: var(--gray-500);
  max-width: 540px;
  margin-bottom: 2rem;
}
.section { padding: 4.5rem 0; }
.section--navy {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
}
.section--navy h2,
.section--navy h3,
.section--navy .section-title { color: var(--white); }
.section--navy .section-sub { color: rgba(255,255,255,0.7); }
.section--white { background: var(--white); }
.section--soft { background: var(--off-white); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230, 47, 54, 0.35);
}
.btn-outline {
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}
.btn-outline-navy {
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-ghost {
  color: var(--red);
  padding-inline: 0.5rem;
}
.btn-ghost:hover { gap: 0.75rem; }

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 31, 58, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  flex-shrink: 0;
}
.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}
.brand-text { line-height: 1.1; }
.brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
}
.brand-text span {
  font-size: 0.68rem;
  opacity: 0.7;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav > a,
.nav-dropdown > button {
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav > a:hover,
.nav > a.active,
.nav-dropdown > button:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}
.nav > a.active { color: var(--red); }
.nav-dropdown { position: relative; }
.nav-dropdown > button {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  color: rgba(255,255,255,0.85);
}
.nav-dropdown > button svg { width: 12px; height: 12px; transition: transform var(--transition); }
.nav-dropdown.open > button svg { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 50;
}
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 0.65rem 0.9rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}
.dropdown-menu a:hover {
  background: var(--red-soft);
  color: var(--red);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.header-cta .social {
  display: flex;
  gap: 0.35rem;
}
.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  transition: all var(--transition);
}
.social-link:hover {
  background: var(--red);
  transform: translateY(-2px);
}
.social-link svg { width: 16px; height: 16px; }
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: clamp(520px, 78vh, 720px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.02);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,31,58,0.35) 0%, rgba(11,31,58,0.55) 40%, rgba(11,31,58,0.95) 100%),
    linear-gradient(90deg, rgba(11,31,58,0.85) 0%, rgba(11,31,58,0.2) 70%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 0 4rem;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(230, 47, 54, 0.2);
  border: 1px solid rgba(230, 47, 54, 0.5);
  color: #ffb3b6;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(230,47,54,0.6);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(230,47,54,0); }
  100% { box-shadow: 0 0 0 0 rgba(230,47,54,0); }
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  max-width: 16ch;
  margin-bottom: 1rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--red);
}
.hero p {
  font-size: 1.05rem;
  max-width: 48ch;
  color: rgba(255,255,255,0.82);
  margin-bottom: 1.8rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--white);
  letter-spacing: 0.04em;
}
.hero-stat span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
}

/* ========== PAGE HERO (inner) ========== */
.page-hero {
  position: relative;
  padding: 4rem 0 3rem;
  background:
    linear-gradient(135deg, rgba(11,31,58,0.92), rgba(20,45,79,0.88)),
    url("../img/hero.jpg") center/cover;
  color: var(--white);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 280px;
  height: 280px;
  background: url("../img/logo.png") center/contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}
.page-hero p {
  color: rgba(255,255,255,0.75);
  max-width: 50ch;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.55);
}
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: var(--red); }

/* ========== MATCH CARD ========== */
.match-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .match-grid { grid-template-columns: 1fr; }
}
.match-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.match-card-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  padding: 1rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.match-card-header .tag {
  background: var(--red);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.match-card-header .date {
  font-size: 0.85rem;
  opacity: 0.85;
}
.match-body {
  padding: 1.8rem 1.4rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  text-align: center;
}
.team-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.team-block img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.team-block .name {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.team-block .venue-label {
  font-size: 0.7rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.match-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.match-vs .score {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--navy);
  letter-spacing: 0.05em;
  line-height: 1;
}
.match-vs .score span { color: var(--gray-300); margin: 0 0.15rem; }
.match-vs .kickoff {
  background: var(--red-soft);
  color: var(--red);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.match-vs .competition {
  font-size: 0.72rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.match-footer {
  padding: 0 1.4rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.match-footer .location {
  font-size: 0.85rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Results list */
.results-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.results-panel-header {
  padding: 1rem 1.4rem;
  background: var(--navy);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.results-panel-header h3 {
  color: var(--white);
  font-size: 1rem;
}
.results-list { flex: 1; }
.result-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.95rem 1.4rem;
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition);
}
.result-row:hover { background: var(--off-white); }
.result-row:last-child { border-bottom: none; }
.result-date {
  font-size: 0.72rem;
  color: var(--gray-500);
  font-weight: 600;
  text-transform: uppercase;
}
.result-teams {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}
.result-teams .vs { color: var(--gray-300); font-weight: 400; margin: 0 0.25rem; }
.result-teams .home { color: var(--navy); }
.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  min-width: 58px;
  justify-content: center;
}
.score-pill.win { background: rgba(31,157,85,0.12); color: var(--success); }
.score-pill.draw { background: rgba(240,165,0,0.12); color: var(--draw); }
.score-pill.loss { background: rgba(230,47,54,0.12); color: var(--loss); }

/* ========== STANDINGS ========== */
.table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.table-wrap thead {
  background: var(--navy);
  color: var(--white);
}
.table-wrap th {
  padding: 0.85rem 0.7rem;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  text-transform: uppercase;
}
.table-wrap th.center,
.table-wrap td.center { text-align: center; }
.table-wrap td {
  padding: 0.8rem 0.7rem;
  border-bottom: 1px solid var(--gray-100);
}
.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap tr.highlight {
  background: var(--red-soft);
  font-weight: 700;
}
.table-wrap tr.highlight td { color: var(--navy); }
.pos {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--gray-100);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--navy);
}
.highlight .pos {
  background: var(--red);
  color: var(--white);
}
.team-cell {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  color: var(--navy);
}
.team-cell img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* ========== CARDS / GRID ========== */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
@media (max-width: 1000px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .cards-3, .cards-2, .cards-4 { grid-template-columns: 1fr; }
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card-img {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
  background: var(--navy);
}
.card-body { padding: 1.3rem 1.4rem 1.5rem; }
.card-meta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.45rem;
}
.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
}

/* Team cards */
.team-card {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow);
}
.team-card::before {
  content: "";
  position: absolute;
  right: -20px;
  top: -20px;
  width: 160px;
  height: 160px;
  background: url("../img/logo.png") center/contain no-repeat;
  opacity: 0.12;
}
.team-card .league {
  display: inline-block;
  background: var(--red);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  width: fit-content;
}
.team-card h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}
.team-card p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

/* ========== INSTAGRAM ========== */
.ig-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.ig-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.ig-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--red);
  padding: 2px;
  object-fit: cover;
  background: var(--navy);
}
.ig-profile strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  letter-spacing: 0.04em;
}
.ig-profile span {
  font-size: 0.85rem;
  color: var(--gray-500);
}
.ig-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) {
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
}
.ig-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--navy);
  box-shadow: var(--shadow-sm);
}
.ig-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.ig-card:hover img { transform: scale(1.06); }
.ig-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11,31,58,0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  color: var(--white);
  opacity: 0;
  transition: opacity var(--transition);
}
.ig-card:hover .ig-card-overlay { opacity: 1; }
.ig-card-overlay p {
  font-size: 0.8rem;
  line-height: 1.35;
}
.ig-card-overlay .likes {
  font-size: 0.72rem;
  opacity: 0.75;
  margin-top: 0.35rem;
}

/* ========== TIMELINE ========== */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0.3rem;
  bottom: 0.3rem;
  width: 3px;
  background: linear-gradient(180deg, var(--red), var(--navy));
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  padding: 0 0 2rem 1.5rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--red-soft);
}
.timeline-item .year {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--red);
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}
.timeline-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}
.timeline-item p {
  color: var(--gray-500);
  font-size: 0.95rem;
  max-width: 60ch;
}

/* ========== SQUAD ========== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-500);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.squad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.1rem;
}
.player-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.player-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.player-photo {
  aspect-ratio: 1;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.player-photo::before {
  content: attr(data-number);
  position: absolute;
  font-family: var(--font-display);
  font-size: 5rem;
  color: rgba(255,255,255,0.06);
  line-height: 1;
}
.player-photo .initials {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  letter-spacing: 0.05em;
  z-index: 1;
}
.player-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.player-info { padding: 1rem; }
.player-info .number {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.8rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.4rem;
}
.player-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.player-info .pos-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.player-info .nat {
  font-size: 0.75rem;
  color: var(--gray-300);
  margin-top: 0.3rem;
}

/* ========== STAFF ========== */
.staff-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.staff-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--red));
  display: grid;
  place-items: center;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.3rem;
  flex-shrink: 0;
}
.staff-card h3 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.staff-card .role {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}
.staff-card .meta {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.5;
}
.staff-card .meta a { color: var(--navy); font-weight: 600; }
.staff-card .meta a:hover { color: var(--red); }

/* ========== PARTNERS ========== */
.partners-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.partners-strip a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0.4rem;
  opacity: 0.75;
  transition: opacity var(--transition), transform var(--transition);
  filter: grayscale(0.3);
}
.partners-strip a:hover {
  opacity: 1;
  transform: scale(1.05);
  filter: none;
}
.partners-strip img {
  max-height: 48px;
  max-width: 120px;
  object-fit: contain;
}
.partner-tier {
  margin-bottom: 2.5rem;
}
.partner-tier h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.partner-tier h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gray-100);
}
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.partner-box {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  height: 110px;
  display: grid;
  place-items: center;
  padding: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.partner-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.partner-box img {
  max-height: 60px;
  max-width: 100%;
  object-fit: contain;
}

/* ========== GALLERY ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.gallery-item.wide { grid-column: span 2; aspect-ratio: 16/9; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(11,31,58,0.85));
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  transform: translateY(100%);
  transition: transform var(--transition);
}
.gallery-item:hover figcaption { transform: translateY(0); }

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-info-card {
  background: linear-gradient(160deg, var(--navy), var(--navy-light));
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.contact-info-card h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
}
.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.3rem;
  align-items: flex-start;
}
.contact-item .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-item .icon svg { width: 18px; height: 18px; }
.contact-item strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.65;
  margin-bottom: 0.2rem;
}
.contact-item a:hover { color: #ffb3b6; }
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
  background: var(--off-white);
  color: var(--navy);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
  background: var(--white);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* ========== CTA BANNER ========== */
.cta-banner {
  background:
    linear-gradient(135deg, rgba(11,31,58,0.95), rgba(230,47,54,0.85)),
    url("../img/team-photo.jpg") center/cover;
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  color: var(--white);
  text-align: center;
  box-shadow: var(--shadow);
}
.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 0.75rem;
}
.cta-banner p {
  color: rgba(255,255,255,0.85);
  max-width: 50ch;
  margin: 0 auto 1.5rem;
}
.cta-banner .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding-top: 3.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-brand .brand { color: var(--white); }
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 32ch;
}
.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  color: rgba(255,255,255,0.65);
}
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a:hover { color: var(--white); }

/* ========== UTILS ========== */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-100);
  padding-bottom: 0.5rem;
}
.tab-btn {
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-500);
  cursor: pointer;
  transition: all var(--transition);
}
.tab-btn.active {
  background: var(--navy);
  color: var(--white);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.trophy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}
.trophy {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 220px;
  flex: 1;
}
.trophy-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), #e8c547);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.trophy strong {
  display: block;
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}
.trophy span {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.notice {
  background: var(--red-soft);
  border-left: 4px solid var(--red);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.notice a { color: var(--red); font-weight: 700; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 320px;
  background: var(--gray-100);
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Mobile nav */
@media (max-width: 1100px) {
  .nav { display: none; }
  .header-cta .btn { display: none; }
  .burger { display: flex; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow);
    gap: 0.2rem;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.open > a,
  .nav.open .nav-dropdown > button {
    width: 100%;
    text-align: left;
    padding: 0.85rem 1rem;
  }
  .nav.open .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,0.05);
    margin: 0.2rem 0 0.5rem;
    display: none;
  }
  .nav.open .nav-dropdown.open .dropdown-menu { display: block; }
  .nav.open .dropdown-menu a { color: rgba(255,255,255,0.85); }
  .nav.open .dropdown-menu a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
}

/* Scroll reveal helper */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Print / a11y */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ========== MATCH CENTER ANF ========== */
.mc-portal {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(11,31,58,0.97) 0%, rgba(28,58,99,0.92) 50%, rgba(196,31,38,0.88) 100%),
    url("../img/hero.jpg") center/cover;
  color: var(--white);
  box-shadow: var(--shadow);
  padding: clamp(1.8rem, 4vw, 3rem);
}
.mc-portal-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 800px) {
  .mc-portal-grid { grid-template-columns: 1fr; }
}
.mc-portal .badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(230,47,54,0.25);
  border: 1px solid rgba(255,255,255,0.2);
  color: #ffb3b6;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.mc-portal .badge-live .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #e62f36;
  box-shadow: 0 0 0 0 rgba(230,47,54,0.6);
  animation: pulse 1.6s infinite;
}
.mc-portal h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  margin-bottom: 0.75rem;
}
.mc-portal > .mc-portal-grid p,
.mc-portal p {
  color: rgba(255,255,255,0.82);
  max-width: 48ch;
  margin-bottom: 1.4rem;
  line-height: 1.55;
}
.mc-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-bottom: 1.6rem;
}
.mc-features span {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
}
.mc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.mc-actions .btn-primary {
  font-size: 0.95rem;
  padding: 1rem 1.6rem;
  box-shadow: 0 10px 28px rgba(230,47,54,0.4);
}
.mc-side {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.4rem;
  backdrop-filter: blur(8px);
}
.mc-side h3 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  letter-spacing: 0.06em;
}
.mc-side ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mc-side li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
}
.mc-side li strong {
  display: block;
  color: var(--white);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}
.mc-side .num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--red);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
}
.mc-meta {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  word-break: break-all;
}
.mc-meta a { color: #ffb3b6; }
.mc-compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.mc-compact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}
.mc-compact span {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
}

/* ========== BUTTON / LAYOUT FIXES (desktop overflow + mobile) ========== */
.btn {
  max-width: 100%;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  max-width: 100%;
}
.hero-actions .btn {
  padding: 0.75rem 1.15rem;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.btn-outline-light {
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--navy);
}
.header-inner {
  gap: 0.5rem;
  min-width: 0;
}
.nav {
  flex: 1 1 auto;
  justify-content: center;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
}
.nav > a,
.nav-dropdown > button {
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  padding: 0.45rem 0.5rem;
}
.header-cta {
  flex-shrink: 0;
}
.header-cta .btn {
  padding: 0.55rem 0.9rem;
  font-size: 0.75rem;
  white-space: nowrap;
}
.brand-text strong { font-size: 1.1rem; }
.brand img { width: 46px; height: 46px; }

.mc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.mc-actions .btn {
  font-size: 0.8rem;
  padding: 0.75rem 1.1rem;
  max-width: 100%;
}
.mc-compact {
  gap: 0.85rem;
}
.mc-compact .btn {
  flex-shrink: 0;
  white-space: nowrap;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}
.btn-row .btn {
  font-size: 0.8rem;
  padding: 0.7rem 1.1rem;
}
.ig-header {
  gap: 1rem;
  align-items: center;
}
.ig-header .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Live Instagram feed */
.ig-live {
  margin-top: 0.5rem;
}
.ig-loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem;
  justify-content: center;
  color: var(--gray-500);
  font-weight: 600;
}
.ig-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid var(--gray-100);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: igspin 0.7s linear infinite;
}
@keyframes igspin { to { transform: rotate(360deg); } }
.ig-fallback {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.ig-fallback p { margin-bottom: 1rem; color: var(--gray-500); }
.ig-live-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.ig-live-profile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}
.ig-live-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.ig-live-name strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy);
  letter-spacing: 0.03em;
}
.ig-live-badge {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}
.ig-live-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-top: 0.2rem;
}
.ig-live-meta b { color: var(--navy); }
.ig-live-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}
.ig-live-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  min-width: 0;
}
.ig-live-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.ig-live-img-wrap {
  position: relative;
  aspect-ratio: 1;
  background: var(--navy);
  overflow: hidden;
}
.ig-live-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.ig-live-card:hover .ig-live-img-wrap img { transform: scale(1.05); }
.ig-live-video {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(11,31,58,0.75);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  z-index: 1;
}
.ig-live-caption {
  padding: 0.75rem 0.85rem 0.9rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.ig-live-caption p {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--gray-700);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ig-live-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--gray-500);
  font-weight: 600;
}
.ig-live-foot {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.ig-cache-note {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* Desktop medium: tighten header earlier */
@media (max-width: 1280px) {
  .nav > a,
  .nav-dropdown > button {
    font-size: 0.68rem;
    padding: 0.4rem 0.4rem;
  }
  .header-cta .btn { display: none; }
  .brand-text span { display: none; }
}
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header-cta .social { display: flex; }
}
@media (max-width: 1000px) {
  .ig-live-grid { grid-template-columns: repeat(3, 1fr); }
  .mc-portal-grid { grid-template-columns: 1fr; }
  .mc-features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .ig-live-grid { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
  .hero-actions .btn {
    flex: 1 1 calc(50% - 0.4rem);
    min-width: 0;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    padding: 0.7rem 0.6rem;
    font-size: 0.75rem;
  }
  .hero h1 { max-width: none; }
  .mc-actions .btn,
  .btn-row .btn,
  .cta-banner .btn-group .btn {
    width: 100%;
  }
  .mc-compact {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .mc-compact .btn { width: 100%; }
  .ig-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .ig-header .btn { width: 100%; }
  .ig-live-header { flex-direction: column; align-items: flex-start; }
  .ig-live-header .btn { width: 100%; }
  .ig-live-foot { flex-direction: column; align-items: stretch; }
  .ig-live-foot .btn { width: 100%; text-align: center; }
  .section { padding: 3rem 0; }
  .hero-stats { gap: 1rem; }
  .match-body { grid-template-columns: 1fr; gap: 0.75rem; }
  .match-vs .score { font-size: 1.8rem; }
}
@media (max-width: 420px) {
  .ig-live-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .container { width: min(100% - 1.25rem, var(--max)); }
}

/* ========== FACEBOOK FEED ========== */
.fb-feed { margin-top: 0.5rem; }
.fb-plugin-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.fb-plugin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--gray-100);
}
.fb-plugin-head strong {
  display: block;
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}
.fb-plugin-head span {
  font-size: 0.82rem;
  color: var(--gray-500);
}
.fb-plugin-frame {
  width: 100%;
  min-height: 520px;
  background: #f0f2f5;
}
.fb-plugin-frame iframe {
  width: 100% !important;
  min-height: 520px;
  height: 620px;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}
.fb-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.fb-post-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  min-width: 0;
}
.fb-post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.fb-post-img {
  aspect-ratio: 16/10;
  background: var(--navy);
  overflow: hidden;
}
.fb-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fb-post-body { padding: 1rem 1.1rem 1.15rem; }
.fb-post-meta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1877f2;
  margin-bottom: 0.4rem;
}
.fb-post-body p {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.social-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .social-split { grid-template-columns: 1fr; }
  .fb-posts-grid { grid-template-columns: 1fr; }
  .fb-plugin-frame iframe { height: 500px; min-height: 480px; }
}
@media (max-width: 700px) {
  .fb-plugin-head { flex-direction: column; align-items: stretch; }
  .fb-plugin-head .btn { width: 100%; }
}
.opp-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gray-100);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.1rem;
  margin: 0 auto;
}
.match-vs .kickoff {
  min-width: 4.5rem;
}

/* Facebook fallback card */
.fb-card-fallback {
  background: linear-gradient(160deg, #f0f2f5 0%, #fff 55%);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  padding: 2rem 1.5rem;
  text-align: center;
}
.fb-card-fallback-inner { max-width: 420px; margin: 0 auto; }
.fb-card-icon {
  width: 72px; height: 72px; margin: 0 auto 1rem;
  border-radius: 50%; background: #e7f0ff;
  display: grid; place-items: center;
}
.fb-card-fallback h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.fb-card-fallback p {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  line-height: 1.45;
}
.fb-card-hint {
  font-size: 0.82rem !important;
  color: var(--gray-300) !important;
}
.fb-card-actions {
  display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center;
  margin-top: 1.2rem;
}
.fb-plugin-frame {
  display: flex;
  justify-content: center;
  min-height: 280px;
  padding: 0.5rem 0 1rem;
  background: #f0f2f5;
}
.fb-plugin-frame .fb-page,
.fb-plugin-frame iframe {
  margin: 0 auto !important;
  max-width: 100%;
}
.fb-plugin-wrap {
  max-width: 540px;
  margin: 0 auto;
}
@media (max-width: 700px) {
  .fb-card-actions .btn { width: 100%; }
  .fb-plugin-frame { min-height: 220px; }
}

/* Facebook stable section (no iframe) */
.fb-stable { max-width: 720px; margin: 0 auto; }
.fb-stable-hero {
  background:
    linear-gradient(135deg, rgba(24,119,242,0.12), rgba(11,31,58,0.06)),
    #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem 1.5rem 1.5rem;
}
.fb-stable-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}
.fb-stable-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #1877f2;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(24,119,242,0.35);
}
.fb-stable-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--navy);
  text-transform: uppercase;
}
.fb-stable-sub {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 0.15rem;
}
.fb-stable-text {
  color: var(--gray-500);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.2rem;
}
.fb-stable-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.fb-post-img--empty {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1877f2, #0b1f3a);
  color: #fff;
  font-family: var(--font-display);
  font-size: 2.5rem;
  min-height: 120px;
}
@media (max-width: 700px) {
  .fb-stable-actions .btn { width: 100%; }
  .fb-stable-hero { padding: 1.25rem 1.1rem; }
}
.notice-ok { background: #dcfce7; border-left-color: #16a34a; color: #166534; }
.notice-err { background: #fee2e2; border-left-color: #dc2626; color: #991b1b; }
