/* ============================================================
   FOOTBALL NETWORK V5 — WYDAD-STYLE DESIGN SYSTEM
   Standalone theme. Namespaced .fnwv5-* / --fnwv5-*.
   Foundation layer: tokens, typography, animations,
   watermark background, reusable components.
   Brand hexes (--fnwv5-primary/secondary/theme + derived)
   are injected inline from WP options by functions.php
   (fnwv5_brand_tokens_css). Values below are static
   fallbacks so the theme renders even without injection.
   ============================================================ */

:root {
  /* Brand (overridden inline from options) */
  --fnwv5-primary: #111111;       /* shell / dark */
  --fnwv5-secondary: #ffffff;     /* light / surface */
  --fnwv5-theme: #e31b23;         /* red accent */
  --fnwv5-on-primary: #ffffff;    /* readable text on primary */
  --fnwv5-primary-hi: #3a3a3a;
  --fnwv5-primary-dark: #0b0b0b;
  --fnwv5-primary-deep: #050505;
  --fnwv5-on-secondary: #ffffff;
  --fnwv5-secondary-deep: #0a0a0a;
  --fnwv5-on-theme: #ffffff;      /* readable text on theme/red */
  --fnwv5-glow: rgba(227, 27, 35, 0.5);
  --fnwv5-theme-soft: rgba(227, 27, 35, 0.12);
  /* Derived brand shades — overridden inline (concrete hex) by functions.php so
     the whole design recolours per club. Static fallbacks below for no-PHP case. */
  --fnwv5-theme-hi: #e83a41;
  --fnwv5-theme-dark: #94121a;
  --fnwv5-theme-deep: #440809;
  --fnwv5-gold: #f4c54a;

  /* Neutrals / surfaces */
  --fnwv5-ink: #111111;           /* body text on light */
  --fnwv5-muted: #6b7280;         /* secondary text */
  --fnwv5-bg: #ffffff;            /* page background */
  --fnwv5-surface: #f4f4f5;       /* card / panel */
  --fnwv5-line: rgba(17, 17, 17, 0.10);
  --fnwv5-shell: #0a0a0a;         /* header / footer black */
  --fnwv5-on-shell: #ffffff;
  --fnwv5-on-shell-muted: rgba(255, 255, 255, 0.62);

  /* Radius */
  --fnwv5-radius-sm: 10px;
  --fnwv5-radius: 20px;
  --fnwv5-radius-lg: 40px;
  --fnwv5-radius-pill: 9999px;

  /* Shadows */
  --fnwv5-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
  --fnwv5-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
  --fnwv5-shadow-glow: 0 0 30px var(--fnwv5-glow);

  /* Spacing rhythm */
  --fnwv5-gap: 24px;
  --fnwv5-section-y: clamp(48px, 7vw, 120px);
  --fnwv5-container: 1240px;
  --fnwv5-pad-x: clamp(16px, 4vw, 56px);

  /* Typography */
  --fnwv5-font-display: "Anton", "Oswald", "Noto Sans Thai", "Noto Sans Arabic", system-ui, sans-serif;
  --fnwv5-font-heading: "Oswald", "Noto Sans Thai", "Noto Sans Arabic", system-ui, sans-serif;
  --fnwv5-font-body: "DM Sans", "Noto Sans Thai", "Noto Sans Arabic", system-ui, -apple-system, sans-serif;

  /* Header height (used by sticky + spacers) */
  --fnwv5-header-h: 72px;

  /* Motion */
  --fnwv5-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ⛔ ЗДЕСЬ БЫЛА ПОДМЕНА ШРИФТА ПО ЯЗЫКУ — И ЭТО БЫЛА ОШИБКА.
   Было: на тайских страницах `--fnwv5-font-display` начинался с "Noto Sans
   Thai". Замысел понятен — чтобы тайский заголовок не остался без глифов.
   Но набор шрифтов И БЕЗ ТОГО подбирается ПОГЛИФНО: латиницу берёт первый
   шрифт, у которого эти глифы есть, тайские знаки — первый, у которого есть
   тайские. Поставив тайский шрифт ПЕРВЫМ, мы отдали ему и латиницу: название
   клуба на тайской странице рисовалось другим шрифтом, чем на английской.
   Владелец потребовал прямо: шрифт названия клуба меняться не должен.
   Поэтому порядок один на все языки, а нелатинские шрифты стоят в хвосте
   набора и подхватываются поглифно. Подмены по языку здесь быть не должно. */

/* Имя собственное держит НАБОР ЛАТИНИЦЫ при любом языке страницы.
   Класс `bb-name` разметка ставит на названия клубов и имена людей. */
.bb-name,
.fnwv5-mc-feat__team > span,
.fnwv5-mc-row__t,
.fnwv5-standing__name {
  font-family: var(--fnwv5-font-heading);
}

/* Page canvas — background = the club's theme_color (--fnwv5-bg), body text auto-contrast
   (--fnwv5-ink). The theme previously had NO body background rule, so the whole page fell
   back to browser-default white regardless of brand (only individual sections were themed;
   the gaps between them and areas like the table heading stayed white). */
html { background: var(--fnwv5-bg); }
body { background: var(--fnwv5-bg); color: var(--fnwv5-ink); }

/* ===================== ANIMATIONS ===================== */

@keyframes fnwv5-subtle-zoom {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

@keyframes fnwv5-move-gradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* Animated club-colour panels (fixtures rows / cards / league table) — stop motion for
   viewers who ask for reduced motion. */
@media (prefers-reduced-motion: reduce) {
  .fnwv5-mc-row, .fnwv5-mc-feat, .fnwv5-fx-card, .fnwv5-ltable-wrap { animation: none; }
}

@keyframes fnwv5-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.9); }
}

@keyframes fnwv5-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes fnwv5-spin {
  to { transform: rotate(360deg); }
}

/* Reveal-on-scroll: initial hidden state; .is-visible toggled by JS (IntersectionObserver). */
.fnwv5-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--fnwv5-ease), transform 0.7s var(--fnwv5-ease);
  will-change: opacity, transform;
}
.fnwv5-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .fnwv5-reveal { opacity: 1; transform: none; transition: none; }
  .fnwv5-anim-zoom, .fnwv5-anim-gradient, .fnwv5-pulse-dot { animation: none !important; }
}

/* ===================== LAYOUT PRIMITIVES ===================== */

.fnwv5-container {
  width: 100%;
  max-width: var(--fnwv5-container);
  margin-inline: auto;
  padding-inline: var(--fnwv5-pad-x);
}
/* Near-full-width variant (Match Centre): small ~1cm side gutters instead of a narrow column. */
.fnwv5-container--wide { max-width: none; padding-inline: clamp(20px, 2vw, 60px); }

.fnwv5-section {
  padding-block: var(--fnwv5-section-y);
}

.fnwv5-grid {
  display: grid;
  gap: var(--fnwv5-gap);
}
.fnwv5-grid--2 { grid-template-columns: repeat(2, 1fr); }
.fnwv5-grid--3 { grid-template-columns: repeat(3, 1fr); }
.fnwv5-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ===================== TYPOGRAPHY ===================== */

.fnwv5-kicker {
  font-family: var(--fnwv5-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fnwv5-secondary);
}

.fnwv5-display {
  font-family: var(--fnwv5-font-display);
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.01em;
  font-size: clamp(2.6rem, 6vw, 5rem);
  margin: 0;
}

.fnwv5-h2 {
  font-family: var(--fnwv5-font-heading);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.05;
  margin: 0;
}

.fnwv5-lead {
  font-family: var(--fnwv5-font-body);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.6;
  color: var(--fnwv5-muted);
}

/* ===================== BUTTONS ===================== */

.fnwv5-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--fnwv5-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.85em 1.8em;
  border-radius: var(--fnwv5-radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s var(--fnwv5-ease), color 0.25s var(--fnwv5-ease),
              transform 0.2s var(--fnwv5-ease), box-shadow 0.25s var(--fnwv5-ease);
}
.fnwv5-btn--primary {
  background: var(--fnwv5-theme);
  color: var(--fnwv5-on-theme);
}
.fnwv5-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--fnwv5-shadow-glow);
}
.fnwv5-btn--ghost {
  background: transparent;
  color: var(--fnwv5-on-shell);
  border-color: rgba(255, 255, 255, 0.35);
}
.fnwv5-btn--ghost:hover {
  background: var(--fnwv5-theme);
  border-color: var(--fnwv5-theme);
  color: var(--fnwv5-on-theme);
}

/* ===================== HERO + WATERMARK ===================== */
/* Wydad heroes use full-bleed media. PT Satun has no video/photo, so we
   place a large, low-opacity club logo as the hero/page background
   (watermark) on a brand-dark shell — per the V3 hosilot-fc.tj approach. */

.fnwv5-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  /* desktop/tablet height, ~1cm shorter from the top (content is bottom-aligned so the
     trim comes off the top). Mobile (≤767px) has its own min-height override below. */
  min-height: clamp(380px, calc(72vh - 40px), 720px);
  overflow: hidden;
  /* animated brand gradient (same as the home community block) instead of flat black */
  background: linear-gradient(115deg, #060606 0%, var(--fnwv5-theme-deep) 34%, var(--fnwv5-secondary) 68%, var(--fnwv5-primary) 100%);
  background-size: 240% 240%;
  animation: fnwv5-move-gradient 16s ease-in-out infinite;
  color: var(--fnwv5-on-shell);
  /* NB: no `isolation: isolate` here — the fixed page-crest (z-index:1) must be
     able to paint above the hero's black background (see .fnwv5-page-watermark). */
}
.fnwv5-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: clamp(40px, 7vh, 90px);
}

/* Watermark logo layer (behind content) */
.fnwv5-watermark {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: clamp(320px, 56vmin, 640px);
  opacity: 0.10;
  filter: grayscale(0.1);
}
.fnwv5-watermark--zoom { animation: fnwv5-subtle-zoom 22s ease-in-out infinite; }

/* Brand scrim so text stays readable over the shell + watermark.
   z-index:0 keeps it below the fixed crest (z-index:1) so the crest stays visible
   on the black hero; hero content (z-index:2) still sits above both. */
.fnwv5-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Dark at TOP (blends into the black nav bar) and BOTTOM (blends into the dark section
     below) so the animated gradient only shows in the middle band → no hard seams. */
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.28) 24%,
    rgba(0, 0, 0, 0.30) 58%,
    rgba(0, 0, 0, 0.88) 100%);
}

/* Floating club crest — fixed at screen centre, z-index:1. Output on ALL pages incl. home
   (header.php). It sits ABOVE section/hero backgrounds (incl. the black hero shell + its
   scrim, z-index:0) but BELOW content blocks (z-index:2, see rule below), so it shows on the
   backgrounds + in the gaps and the blocks pass over it on scroll ("crest floats under the
   blocks"). Uses each club's own logo → works per-site. */
.fnwv5-page-watermark {
  position: fixed;
  left: 50%;
  top: calc(50% - 38px);   /* ~1cm above viewport centre (desktop); mobile overrides below */
  transform: translate(-50%, -50%);
  width: clamp(360px, 58vmin, 680px);
  height: clamp(360px, 58vmin, 680px);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.06;
  pointer-events: none;
  z-index: 1;
  /* mobile: raise the crest's start zone to ~centre of the hero gradient (see @media below) */
}
@media (max-width: 600px) {
  /* keep the floating crest on mobile too (just a touch smaller), same as desktop */
  .fnwv5-page-watermark { display: block; width: clamp(240px, 72vw, 380px); height: clamp(240px, 72vw, 380px); }
}
/* ⛔ ГЕРБ ПРОХОДИТ ПОД БЛОКАМИ — ОТБОР СТРУКТУРНЫЙ, А НЕ ПО СПИСКУ КЛАССОВ.
   Здесь стоял перечень классов карточек V5. Он молча промахнулся мимо ВСЕХ
   восемнадцати баскетбольных блоков (.bb-…) — у них своя разметка, в перечне их
   не было, — и плавающий герб красился ПОВЕРХ строк таблицы (снимок владельца
   08.09.2026). Тот же класс дефекта, что и на стыке полей: белый список не
   жалуется, когда в нём кого-то нет.
   Поэтому поднимаем САМИ СЕКЦИИ страницы (.fnwv5-section — обёртка любого блока
   на любом шаблоне, плюс две секции без этого класса). Блок, который появится в
   теме позже, окажется над гербом сам собой, без правки этого списка.
   Герой НЕ поднимаем: z-index у него не задан (auto), поэтому фиксированный
   герб (z-index:1) остаётся над его фоном — так и должно быть.
   Подвал уже несёт z-index:1 и лежит позже в разметке, поэтому герб проходит и
   под ним. Окна протоколов (.fnwbb-modal, z-index:9999) печатаются на уровне
   <body> и в этот отбор НЕ попадают — иначе секция-контекст прижала бы их.
   ⛔ Темам 1/2/4 баскетбола: поднимать обёртку секции, а не перечень карточек. */
.fnwv5-section,
.fnwv5-home-matches,
.fnwv5-article,
.fnwv5-mcard,
.fnwv5-gradient-block,
.fnwv5-social-cta,
.fnwv5-news-tile,
.fnwv5-news-card,
.fnwv5-feat,
.fnwv5-pcard,
.fnwv5-match-card,
.fnwv5-facts,
.fnwv5-panel,
.fnwv5-table-wrap,
.fnwv5-standings,
.fnwv5-community__card {
  position: relative;
  z-index: 2;
}
/* Single crest: hide the static in-hero copy; the fixed .fnwv5-page-watermark covers all pages. */
.fnwv5-hero .fnwv5-watermark { display: none; }

/* ===================== MATCH CENTRE (fixtures / results / standings) =====================
   Colours use ONLY brand tokens (recolours per club):
   theme(green family) = card/panel surfaces · primary = bright accents (kickers, comp labels,
   countdown, active tab, score/VS) · secondary = date block. No hardcoded hues. */

.fnwv5-mc-tabs { padding-top: clamp(24px, 4vw, 40px); position: relative; z-index: 2; }
.fnwv5-mc-tabs__row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--fnwv5-radius);
  overflow: hidden;
  background: linear-gradient(180deg, var(--fnwv5-theme-dark), var(--fnwv5-theme-deep));
}
.fnwv5-mc-tab {
  text-align: center; padding: 18px 12px;
  font-family: var(--fnwv5-font-heading); text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 700; font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6); text-decoration: none; position: relative;
  border-right: 1px solid rgba(255, 255, 255, 0.10);
  transition: color 0.2s var(--fnwv5-ease), background 0.2s var(--fnwv5-ease);
}
.fnwv5-mc-tab:last-child { border-right: 0; }
.fnwv5-mc-tab:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.fnwv5-mc-tab.is-active { color: #fff; background: rgba(255, 255, 255, 0.06); }
.fnwv5-mc-tab.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--fnwv5-primary);
}

/* Section heads (big, Selangor scale) */
.fnwv5-mc-kicker {
  font-family: var(--fnwv5-font-heading); text-transform: uppercase;
  letter-spacing: 0.24em; font-size: 0.9rem; font-weight: 700;
  color: var(--fnwv5-acc-bg, var(--fnwv5-primary)); text-align: left; margin: 0 0 8px; display: block;
}
.fnwv5-mc-kicker--center { text-align: center; }
.fnwv5-mc-h {
  font-family: var(--fnwv5-font-display); text-transform: uppercase; line-height: 0.98;
  font-size: clamp(2.2rem, 5.5vw, 4rem); text-align: left; margin: 0 0 28px; color: var(--fnwv5-ink);
}
.fnwv5-mc-h--center { text-align: center; }
.fnwv5-mc-head { margin: 0 0 26px; }
.fnwv5-mc-head .fnwv5-mc-h { margin: 0; }
.fnwv5-mc-secgap { margin-top: clamp(52px, 7vw, 90px); }

/* Featured card (NEXT MATCH / LATEST RESULT) */
.fnwv5-mc-feat {
  position: relative; overflow: hidden; z-index: 2;
  border-radius: var(--fnwv5-radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 26px),
    linear-gradient(160deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.42)),
    linear-gradient(135deg, var(--fnwv5-primary-deep), var(--fnwv5-primary) 50%, var(--fnwv5-primary-hi));
  background-size: auto, 100% 100%, 220% 220%;
  animation: fnwv5-move-gradient 18s ease-in-out infinite;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  padding: clamp(26px, 3vw, 44px) clamp(28px, 4vw, 72px); color: #fff;
  max-width: 1080px; margin-inline: auto;
  transition: transform 0.4s var(--fnwv5-ease), box-shadow 0.4s var(--fnwv5-ease), border-color 0.4s var(--fnwv5-ease);
}
.fnwv5-mc-feat__team img { transition: transform 0.45s var(--fnwv5-ease); }
.fnwv5-mc-feat__comp {
  text-align: center; color: var(--fnwv5-acc-brandcard, var(--fnwv5-primary));
  font-family: var(--fnwv5-font-heading); text-transform: uppercase;
  letter-spacing: 0.18em; font-size: clamp(0.95rem, 1.4vw, 1.15rem); font-weight: 700; margin-bottom: clamp(22px, 3vw, 38px);
}
.fnwv5-mc-feat__teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(14px, 3vw, 52px); }
.fnwv5-mc-feat__team { display: flex; flex-direction: row; align-items: center; gap: clamp(14px, 1.6vw, 26px); justify-content: flex-start; min-width: 0; }
.fnwv5-mc-feat__team--away { flex-direction: row-reverse; }
.fnwv5-mc-feat__team img { width: clamp(97px, 10vw, 152px); height: clamp(97px, 10vw, 152px); object-fit: contain; flex-shrink: 0; }
.fnwv5-mc-feat__team > span { font-family: var(--fnwv5-font-display); text-transform: uppercase; font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2.6rem); line-height: 1.02; }
/* Правило сейчас не используется — в шаблоне счёт выводится как .fnwv5-mc-feat__score (белый
   на тёмной подложке, читается). Токен проставлен на случай возврата разметки. */
.fnwv5-mc-feat__vs { font-family: var(--fnwv5-font-display); font-size: clamp(2rem, 3.6vw, 3.2rem); color: var(--fnwv5-primary); }
.fnwv5-mc-feat__score { font-family: var(--fnwv5-font-display); font-size: clamp(2.6rem, 5.5vw, 4.4rem); color: #fff; padding: 6px 28px; border-radius: 14px; background: rgba(0, 0, 0, 0.30); }
.fnwv5-mc-feat__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; margin-top: clamp(24px, 3vw, 40px); color: rgba(255, 255, 255, 0.9); font-size: clamp(1rem, 1.4vw, 1.2rem); }
.fnwv5-mc-feat__meta span { display: inline-flex; align-items: center; gap: 10px; }
.fnwv5-mc-feat__badge { display: inline-block; margin: 20px auto 0; }

/* Upcoming fixture cards — left date column + rich body + VS divider (Selangor-style) */
.fnwv5-fx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--fnwv5-gap); }
.fnwv5-fx-card {
  position: relative; overflow: hidden; z-index: 2; display: grid; grid-template-columns: auto 1fr;
  border-radius: var(--fnwv5-radius); border: 1px solid rgba(255, 255, 255, 0.10); color: #fff;
  background:
    linear-gradient(160deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.46)),
    linear-gradient(135deg, var(--fnwv5-primary-deep), var(--fnwv5-primary) 50%, var(--fnwv5-primary-hi));
  background-size: 100% 100%, 220% 220%;
  animation: fnwv5-move-gradient 17s ease-in-out infinite;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.30);
  transition: transform 0.34s var(--fnwv5-ease), box-shadow 0.34s var(--fnwv5-ease), border-color 0.34s var(--fnwv5-ease);
}
.fnwv5-fx-datecol {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 22px; min-width: 116px; text-align: center;
  background: rgba(0, 0, 0, 0.24); border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.fnwv5-fx-datecol b { font-family: var(--fnwv5-font-display); font-size: 3rem; line-height: 1; }
.fnwv5-fx-datecol .mon { text-transform: uppercase; color: var(--fnwv5-acc-brandcard, var(--fnwv5-primary)); font-family: var(--fnwv5-font-heading); font-weight: 700; letter-spacing: 0.1em; font-size: 1.05rem; margin-top: 6px; }
.fnwv5-fx-datecol .yr { color: rgba(255, 255, 255, 0.55); font-size: 0.85rem; margin-top: 6px; }
.fnwv5-fx-body { padding: 24px 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.fnwv5-fx-comp { display: flex; align-items: center; gap: 10px; color: var(--fnwv5-primary); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.92rem; font-weight: 700; }
.fnwv5-fx-comp svg { width: 20px; height: 20px; fill: var(--fnwv5-primary); flex-shrink: 0; }
.fnwv5-fx-meta { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }
.fnwv5-fx-match { display: flex; flex-direction: column; gap: 12px; margin-top: 2px; }
.fnwv5-fx-team { display: flex; align-items: center; gap: 16px; font-family: var(--fnwv5-font-heading); text-transform: uppercase; font-weight: 700; font-size: 1.35rem; min-width: 0; }
.fnwv5-fx-team img { width: 83px; height: 83px; object-fit: contain; flex-shrink: 0; transition: transform 0.4s var(--fnwv5-ease); }
.fnwv5-fx-team span { overflow: hidden; text-overflow: ellipsis; }
.fnwv5-fx-vsline { display: flex; align-items: center; gap: 16px; color: var(--fnwv5-primary); }
.fnwv5-fx-vsline i { flex: 1; height: 1px; background: rgba(255, 255, 255, 0.15); }
.fnwv5-fx-vsline em { font-style: normal; font-family: var(--fnwv5-font-display); font-size: 1.2rem; letter-spacing: 0.08em; }
.fnwv5-fx-cd { margin-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.10); padding-top: 18px; }
.fnwv5-fx-cd-lbl { text-transform: uppercase; font-size: 0.74rem; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.6); display: block; margin-bottom: 12px; }
.fnwv5-cd { display: flex; gap: 28px; }
.fnwv5-cd > div { text-align: center; }
.fnwv5-cd b { font-family: var(--fnwv5-font-display); font-size: 2.3rem; color: var(--fnwv5-primary); display: block; line-height: 1; }
.fnwv5-cd span { font-size: 0.72rem; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); letter-spacing: 0.06em; }
@media (max-width: 560px) {
  .fnwv5-fx-card { grid-template-columns: 1fr; }
  .fnwv5-fx-datecol { flex-direction: row; gap: 10px; justify-content: flex-start; border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.08); min-width: 0; }
  .fnwv5-fx-datecol b { font-size: 2rem; }
}

/* Month divider — short dash + label + trailing gradient line (Selangor-style) */
.fnwv5-mc-monthhead { display: flex; align-items: center; gap: 16px; margin: 42px 0 18px; color: var(--fnwv5-ink);
  font-family: var(--fnwv5-font-heading); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; font-size: 1.4rem; }
.fnwv5-mc-monthhead::before { content: ""; width: 30px; height: 3px; background: var(--fnwv5-primary); flex-shrink: 0; }
.fnwv5-mc-monthhead::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--fnwv5-primary), var(--fnwv5-line) 55%, transparent); }

/* Match rows (full fixtures / all results): date column + league/time/venue + teams (crests inner) */
.fnwv5-mc-row { position: relative; z-index: 2; display: grid; grid-template-columns: auto minmax(190px, 250px) 1fr; align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--fnwv5-radius-sm); overflow: hidden; margin-bottom: 14px;
  /* same club-colour ramp as the home fixtures block, animated; a dark wash on top keeps
     scores / dates / names readable regardless of how light the club primary is */
  background:
    linear-gradient(160deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.46)),
    linear-gradient(135deg, var(--fnwv5-primary-deep), var(--fnwv5-primary) 50%, var(--fnwv5-primary-hi));
  background-size: 100% 100%, 220% 220%;
  animation: fnwv5-move-gradient 16s ease-in-out infinite;
  color: #fff; box-shadow: 0 16px 38px rgba(0, 0, 0, 0.30);
  transition: transform 0.28s var(--fnwv5-ease), box-shadow 0.28s var(--fnwv5-ease), border-color 0.28s var(--fnwv5-ease); }
/* Sliding accent bar on the left edge (grows in on hover) */
.fnwv5-mc-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--fnwv5-primary); transform: scaleY(0); transform-origin: top; z-index: 3;
  transition: transform 0.3s var(--fnwv5-ease); }
.fnwv5-mc-row__date { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 22px 26px; min-width: 104px; background: rgba(0, 0, 0, 0.26); border-right: 1px solid rgba(255, 255, 255, 0.08); }
.fnwv5-mc-row__date b { font-family: var(--fnwv5-font-display); font-size: 2.1rem; line-height: 1; }
.fnwv5-mc-row__date .mon { color: var(--fnwv5-acc-brandcard, var(--fnwv5-primary)); text-transform: uppercase; font-family: var(--fnwv5-font-heading); font-weight: 700; letter-spacing: 0.1em; font-size: 0.92rem; margin-top: 4px; }
.fnwv5-mc-row__info { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 20px 26px; border-right: 1px solid rgba(255, 255, 255, 0.06); }
.fnwv5-mc-row__info .comp { display: flex; align-items: center; gap: 8px; color: var(--fnwv5-acc-brandcard, var(--fnwv5-primary)); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; font-size: 0.82rem; }
.fnwv5-mc-row__info .comp svg { width: 16px; height: 16px; fill: var(--fnwv5-primary); flex-shrink: 0; }
.fnwv5-mc-row__info .meta { color: rgba(255, 255, 255, 0.72); font-size: 0.85rem; }
.fnwv5-mc-row__fixture { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2.5vw, 44px); padding: 20px clamp(20px, 3vw, 44px); }
.fnwv5-mc-row__t { display: flex; align-items: center; gap: 14px; font-family: var(--fnwv5-font-heading); text-transform: uppercase; font-weight: 700; font-size: 1.2rem; flex: 1; min-width: 0; line-height: 1.12; overflow-wrap: break-word; }
.fnwv5-mc-row__t img { width: 69px; height: 69px; object-fit: contain; flex-shrink: 0; transition: transform 0.32s var(--fnwv5-ease); }
.fnwv5-mc-row__t.home { justify-content: flex-end; text-align: right; }
.fnwv5-mc-row__t.away { justify-content: flex-start; text-align: left; }
/* the club-name span inside the team cell must be allowed to shrink + wrap, else a long
   or space-less (Thai) name overflows its cell and overlaps the date column */
.fnwv5-mc-row__t > span { min-width: 0; overflow-wrap: break-word; }
.fnwv5-mc-row__vs { flex-shrink: 0; font-family: var(--fnwv5-font-display); color: var(--fnwv5-acc-brandcard-data, var(--fnwv5-primary)); font-size: 1.4rem; padding: 6px 18px; border-radius: 10px; background: rgba(0, 0, 0, 0.26); white-space: nowrap; }
@media (max-width: 900px) {
  .fnwv5-fx-grid { grid-template-columns: 1fr; }
  .fnwv5-mc-row { grid-template-columns: auto 1fr; }
  .fnwv5-mc-row__info { display: none; }
  .fnwv5-mc-row__badge { display: none; }
  .fnwv5-mc-row__t { font-size: 1rem; }
  .fnwv5-mc-row__t img { width: 53px; height: 53px; }
}

/* Match Centre — phone layout: compact rows + stacked featured card (no overlaps) */
@media (max-width: 640px) {
  /* Date column keeps a comfortable size (the team name now wraps in its own cell, so the
     date no longer needs to be squeezed to avoid overlap). */
  .fnwv5-mc-row__date { min-width: 66px; padding: 18px 16px; }
  .fnwv5-mc-row__date b { font-size: 2.1rem; }
  .fnwv5-mc-row__date .mon { font-size: 0.82rem; }
  .fnwv5-mc-row__fixture { gap: 8px; padding: 14px 10px; }
  .fnwv5-mc-row__t { font-size: 0.9rem; gap: 8px; }
  .fnwv5-mc-row__t img { width: 40px; height: 40px; }
  .fnwv5-mc-row__vs { font-size: 0.95rem; padding: 5px 10px; }

  /* Featured card (NEXT MATCH / LATEST RESULT): stack team / score / team vertically */
  .fnwv5-mc-feat__teams { grid-template-columns: 1fr; gap: 16px; justify-items: center; }
  .fnwv5-mc-feat__team,
  .fnwv5-mc-feat__team--away { flex-direction: column; text-align: center; gap: 10px; justify-content: center; }
  .fnwv5-mc-feat__team > span { font-size: clamp(1.3rem, 6vw, 1.9rem); }
}
/* Recent-result card = reuses .fnwv5-fx-card, with a score line instead of the VS divider + W/D/L footer */
.fnwv5-fx-score { display: flex; align-items: center; justify-content: center; margin: 2px 0; }
.fnwv5-fx-score span { font-family: var(--fnwv5-font-display); font-size: 2rem; color: var(--fnwv5-primary); padding: 4px 22px; border-radius: 10px; background: rgba(0, 0, 0, 0.28); }
.fnwv5-fx-foot { margin-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.10); padding-top: 16px; display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, 0.7); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; }
/* Fixtures full-list row: kick-off time in the middle, white (no result score) */
.fnwv5-mc-row--fx .fnwv5-mc-row__mid { color: #fff; font-size: 1.1rem; }

/* ===== Match Centre hover motion (Selangor-style; colours from tokens only) ===== */
/* Upcoming / recent cards: lift + primary glow + crest zoom */
.fnwv5-fx-card:hover {
  transform: translateY(-6px);
  border-color: var(--fnwv5-primary);
  box-shadow: var(--fnwv5-shadow), var(--fnwv5-shadow-glow);
}
.fnwv5-fx-card:hover .fnwv5-fx-team img,
.fnwv5-fx-card:hover .fnwv5-fx-score img { transform: scale(1.1); }

/* Full-list rows: slide-in left accent + subtle lift + glow + crest nudge */
.fnwv5-mc-row:hover {
  transform: translateY(-2px);
  border-color: var(--fnwv5-primary);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28), var(--fnwv5-shadow-glow);
}
.fnwv5-mc-row:hover::before { transform: scaleY(1); }
.fnwv5-mc-row:hover .fnwv5-mc-row__t img { transform: scale(1.12); }

/* Featured card: gentle lift + primary rim + crest breathe */
.fnwv5-mc-feat:hover {
  transform: translateY(-4px);
  border-color: var(--fnwv5-primary);
  box-shadow: var(--fnwv5-shadow), var(--fnwv5-shadow-glow);
}
.fnwv5-mc-feat:hover .fnwv5-mc-feat__team img { transform: scale(1.06); }

/* Tab bar: sliding underline reveal for the hovered (non-active) tab */
.fnwv5-mc-tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--fnwv5-primary); transform: scaleX(0); transform-origin: center;
  transition: transform 0.28s var(--fnwv5-ease);
}
.fnwv5-mc-tab:hover::after { transform: scaleX(1); }
.fnwv5-mc-tab.is-active::after { transform: scaleX(1); }

/* ===================== CARDS ===================== */

.fnwv5-card {
  position: relative;
  border-radius: var(--fnwv5-radius);
  overflow: hidden;
  background: var(--fnwv5-secondary);
  box-shadow: var(--fnwv5-shadow-sm);
  transition: transform 0.3s var(--fnwv5-ease), box-shadow 0.3s var(--fnwv5-ease);
}
.fnwv5-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--fnwv5-shadow);
}
.fnwv5-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.fnwv5-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--fnwv5-ease);
}
.fnwv5-card:hover .fnwv5-card__media img { transform: scale(1.06); }
.fnwv5-card__tag {
  display: inline-block;
  font-family: var(--fnwv5-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--fnwv5-on-theme);
  background: var(--fnwv5-theme);
  padding: 0.3em 0.8em;
  border-radius: var(--fnwv5-radius-pill);
}

/* ===================== SOCIAL CTA ("Want to stay updated?") ===================== */

.fnwv5-social-cta {
  position: relative;
  text-align: center;
  color: var(--fnwv5-on-secondary);
  background: var(--fnwv5-secondary);
  padding-block: clamp(56px, 8vw, 110px);
  overflow: hidden;
}
.fnwv5-social-cta__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}
.fnwv5-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 10px;
  border-radius: 14px;
  /* white app-tile so the full-colour brand logos read on any section (yellow CTA / dark footer) */
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  transition: box-shadow 0.25s var(--fnwv5-ease), transform 0.25s var(--fnwv5-ease);
}
.fnwv5-social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}
.fnwv5-social-icon svg { width: 100%; height: 100%; fill: currentColor; }
.fnwv5-social-icon .fnwv5-social-logo { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ===================== "WYDAD TV" → SOCIAL gradient block ===================== */
/* Animated black->red diagonal gradient, repurposed as a "Follow us" feature. */
.fnwv5-gradient-block {
  position: relative;
  border-radius: var(--fnwv5-radius);
  overflow: hidden;
  color: var(--fnwv5-on-theme);
  padding: clamp(40px, 6vw, 80px);
  background: linear-gradient(120deg, var(--fnwv5-secondary-deep) 0%, #1a1a1a 40%, var(--fnwv5-theme) 120%);
  background-size: 200% 200%;
  animation: fnwv5-move-gradient 8s ease-in-out infinite;
}

/* ===================== MARQUEE (sponsor / partner logos) ===================== */

.fnwv5-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.fnwv5-marquee__track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: fnwv5-marquee 28s linear infinite;
}
.fnwv5-marquee:hover .fnwv5-marquee__track { animation-play-state: paused; }

/* ===================== COUNT-UP STATS ===================== */

.fnwv5-stat__num {
  font-family: var(--fnwv5-font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  color: var(--fnwv5-theme);
}
.fnwv5-stat__label {
  font-family: var(--fnwv5-font-body);
  font-weight: 600;
  color: var(--fnwv5-muted);
  margin-top: 6px;
}

/* LIVE pulse dot */
.fnwv5-pulse-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--fnwv5-theme);
  animation: fnwv5-pulse 2s var(--fnwv5-ease) infinite;
}

/* Loading spinner */
.fnwv5-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--fnwv5-line);
  border-top-color: var(--fnwv5-theme);
  border-radius: 50%;
  animation: fnwv5-spin 1s linear infinite;
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 1024px) {
  .fnwv5-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .fnwv5-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .fnwv5-grid--2,
  .fnwv5-grid--3,
  .fnwv5-grid--4 { grid-template-columns: 1fr; }
}

/* ===================== GLOBAL HEADER (Wydad-style) ===================== */

.fnwv5-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--fnwv5-header-h);
  background: var(--fnwv5-shell);
  color: var(--fnwv5-on-shell);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.35s var(--fnwv5-ease);
}
.fnwv5-header.is-hidden { transform: translateY(-100%); }
.fnwv5-header-spacer { height: var(--fnwv5-header-h); }

.fnwv5-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
}

/* Brand */
.fnwv5-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--fnwv5-on-shell);
  flex-shrink: 1;
  min-width: 0;
}
.fnwv5-brand__logo { height: 44px; width: auto; max-width: 64px; object-fit: contain; flex-shrink: 0; }
.fnwv5-brand__text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.fnwv5-brand__name {
  font-family: var(--fnwv5-font-heading);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.02rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.fnwv5-brand__sub {
  font-family: var(--fnwv5-font-body);
  font-size: 0.7rem;
  color: var(--fnwv5-on-shell-muted);
  margin-top: 3px;
}

/* Desktop nav */
.fnwv5-nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.fnwv5-nav__list a {
  position: relative;
  display: inline-block;
  font-family: var(--fnwv5-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--fnwv5-on-shell-muted);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.22s var(--fnwv5-ease);
}
.fnwv5-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--fnwv5-theme);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--fnwv5-ease);
}
.fnwv5-nav__list a:hover,
.fnwv5-nav__list .current-menu-item > a,
.fnwv5-nav__list .current_page_item > a { color: var(--fnwv5-on-shell); }
.fnwv5-nav__list a:hover::after,
.fnwv5-nav__list .current-menu-item > a::after { transform: scaleX(1); }

/* Header right actions */
.fnwv5-header__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.fnwv5-lang { display: flex; align-items: center; gap: 2px; }
.fnwv5-lang__btn {
  font-family: var(--fnwv5-font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--fnwv5-on-shell-muted);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s var(--fnwv5-ease), background 0.2s var(--fnwv5-ease);
}
.fnwv5-lang__btn:hover { color: var(--fnwv5-on-shell); }
.fnwv5-lang__btn.is-active { color: var(--fnwv5-on-theme); background: var(--fnwv5-theme); }

.fnwv5-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--fnwv5-on-shell);
  cursor: pointer;
  border-radius: 10px;
  text-decoration: none;
  transition: color 0.2s var(--fnwv5-ease), background 0.2s var(--fnwv5-ease);
}
.fnwv5-icon-btn:hover { color: var(--fnwv5-theme); background: rgba(255, 255, 255, 0.08); }
.fnwv5-burger { display: none; }

/* Mobile */
@media (max-width: 1024px) {
  .fnwv5-burger { display: inline-grid; }
  .fnwv5-nav {
    position: fixed;
    top: var(--fnwv5-header-h);
    left: 0;
    right: 0;
    background: var(--fnwv5-shell);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    max-height: calc(100dvh - var(--fnwv5-header-h));
    overflow-y: auto;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--fnwv5-ease), transform 0.25s var(--fnwv5-ease);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  }
  .fnwv5-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .fnwv5-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--fnwv5-pad-x) 24px;
  }
  .fnwv5-nav__list a {
    display: block;
    padding: 16px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .fnwv5-nav__list a::after { display: none; }
  body.menu-open { overflow: hidden; }
  .fnwv5-brand__sub { display: none; }
}

/* ===================== GLOBAL FOOTER (Wydad-style) ===================== */

.fnwv5-footer {
  position: relative;
  z-index: 1;
  background: var(--fnwv5-shell);
  color: var(--fnwv5-on-shell);
  padding-block: clamp(48px, 6vw, 80px) 28px;
  /* No top margin: the dark footer sits flush against the preceding section so no
     page-background gap (green band) shows between the block and the footer. */
  margin-top: 0;
}
.fnwv5-footer__top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.fnwv5-footer__brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--fnwv5-secondary);
  font-family: var(--fnwv5-font-heading);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.2rem;
}
.fnwv5-footer__brand-link img { height: 48px; width: auto; max-width: 72px; object-fit: contain; }
.fnwv5-footer__desc {
  margin: 16px 0 0;
  max-width: 42ch;
  color: var(--fnwv5-on-shell-muted);
  font-family: var(--fnwv5-font-body);
  font-size: 0.92rem;
  line-height: 1.55;
}
.fnwv5-footer__social { display: flex; gap: 12px; margin-top: 22px; }

.fnwv5-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.fnwv5-footer__col { display: flex; flex-direction: column; gap: 12px; }
.fnwv5-footer__title {
  margin: 0 0 4px;
  font-family: var(--fnwv5-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--fnwv5-secondary);
}
.fnwv5-footer__col a {
  color: var(--fnwv5-on-shell-muted);
  text-decoration: none;
  font-family: var(--fnwv5-font-body);
  font-size: 0.92rem;
  transition: color 0.2s var(--fnwv5-ease);
}
.fnwv5-footer__col a:hover { color: var(--fnwv5-theme); }

.fnwv5-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 24px;
}
.fnwv5-footer__copy {
  color: var(--fnwv5-on-shell-muted);
  font-family: var(--fnwv5-font-body);
  font-size: 0.82rem;
}
.fnwv5-footer__lang { display: flex; gap: 6px; }
.fnwv5-footer__lang a {
  color: var(--fnwv5-on-shell-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 5px;
}
.fnwv5-footer__lang a.is-active { color: var(--fnwv5-on-theme); background: var(--fnwv5-theme); }
.fnwv5-footer__copy { color: var(--fnwv5-on-shell-muted); font-family: var(--fnwv5-font-body); font-size: 0.82rem; }

@media (max-width: 880px) {
  .fnwv5-footer__top { grid-template-columns: 1fr; gap: 32px; }
  .fnwv5-footer__cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .fnwv5-footer__cols { grid-template-columns: 1fr; }
}

/* ===================== FOOTER FRAME ARRANGEMENTS (1–10) =====================
   One knob (option fnw_footer_frame) rearranges the brand block, social row,
   link columns, bottom bar and the giant club word — independent of the column
   CONTENT knob (fnw_footer_variant). Grid re-flows are desktop-only (≥881px);
   below that every frame collapses to the single unified mobile footer above so
   the mobile experience is consistent. Show/hide toggles (social position, big
   word) apply at every width. Frame 1 = the default (no overrides). */

/* -- toggles that apply at all widths -- */
.fnwv5-footer__social--bottom { display: none; }
.fnwv5-footer[data-footer-frame="5"] .fnwv5-footer__brand .fnwv5-footer__social,
.fnwv5-footer[data-footer-frame="10"] .fnwv5-footer__brand .fnwv5-footer__social { display: none; }
.fnwv5-footer[data-footer-frame="5"] .fnwv5-footer__social--bottom,
.fnwv5-footer[data-footer-frame="10"] .fnwv5-footer__social--bottom { display: flex; margin-top: 0; }
.fnwv5-footer[data-footer-frame="7"] .fnwv5-bigword { display: none; }
.fnwv5-footer[data-footer-frame="6"] { display: flex; flex-direction: column; }
.fnwv5-footer[data-footer-frame="6"] .fnwv5-bigword { order: -1; }
.fnwv5-footer[data-footer-frame="10"] .fnwv5-footer__desc { display: none; }

/* -- desktop grid re-flows -- */
@media (min-width: 881px) {
  /* centred-top families: brand centred over a full-width column row */
  .fnwv5-footer[data-footer-frame="2"] .fnwv5-footer__top,
  .fnwv5-footer[data-footer-frame="4"] .fnwv5-footer__top,
  .fnwv5-footer[data-footer-frame="8"] .fnwv5-footer__top,
  .fnwv5-footer[data-footer-frame="9"] .fnwv5-footer__top {
    grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 34px;
  }
  .fnwv5-footer[data-footer-frame="2"] .fnwv5-footer__brand,
  .fnwv5-footer[data-footer-frame="4"] .fnwv5-footer__brand,
  .fnwv5-footer[data-footer-frame="8"] .fnwv5-footer__brand,
  .fnwv5-footer[data-footer-frame="9"] .fnwv5-footer__brand { text-align: center; }
  .fnwv5-footer[data-footer-frame="2"] .fnwv5-footer__desc,
  .fnwv5-footer[data-footer-frame="4"] .fnwv5-footer__desc,
  .fnwv5-footer[data-footer-frame="8"] .fnwv5-footer__desc,
  .fnwv5-footer[data-footer-frame="9"] .fnwv5-footer__desc { margin-inline: auto; max-width: 52ch; }
  .fnwv5-footer[data-footer-frame="2"] .fnwv5-footer__social,
  .fnwv5-footer[data-footer-frame="4"] .fnwv5-footer__social,
  .fnwv5-footer[data-footer-frame="8"] .fnwv5-footer__social,
  .fnwv5-footer[data-footer-frame="9"] .fnwv5-footer__social { justify-content: center; }
  .fnwv5-footer[data-footer-frame="2"] .fnwv5-footer__cols,
  .fnwv5-footer[data-footer-frame="4"] .fnwv5-footer__cols,
  .fnwv5-footer[data-footer-frame="8"] .fnwv5-footer__cols,
  .fnwv5-footer[data-footer-frame="9"] .fnwv5-footer__cols { width: 100%; }
  /* 4 & 9 also centre the column contents */
  .fnwv5-footer[data-footer-frame="4"] .fnwv5-footer__col,
  .fnwv5-footer[data-footer-frame="9"] .fnwv5-footer__col { align-items: center; text-align: center; }

  /* 3: columns left, brand right */
  .fnwv5-footer[data-footer-frame="3"] .fnwv5-footer__top { grid-template-columns: 2fr 1.2fr; }
  .fnwv5-footer[data-footer-frame="3"] .fnwv5-footer__brand { order: 2; }
  .fnwv5-footer[data-footer-frame="3"] .fnwv5-footer__cols { order: 1; }

  /* 8: brand becomes a centred band with a divider under it */
  .fnwv5-footer[data-footer-frame="8"] .fnwv5-footer__brand {
    width: 100%; border-bottom: 1px solid rgba(255, 255, 255, 0.10); padding-bottom: 28px;
  }

  /* 9: brand stacks (logo over name) */
  .fnwv5-footer[data-footer-frame="9"] .fnwv5-footer__brand-link { flex-direction: column; text-align: center; gap: 10px; }

  /* 10: compact — smaller brand column, vertically centred, merged bottom row */
  .fnwv5-footer[data-footer-frame="10"] .fnwv5-footer__top { grid-template-columns: 0.8fr 2.4fr; align-items: center; gap: 36px; }
}

/* ===================== HOME PAGE ===================== */

/* Hero */
.fnwv5-home-hero__title { margin: 6px 0 0; color: var(--fnwv5-on-shell); }
/* SEO H1 suffix ("Football Club") — smaller tagline line inside the H1, so the big
   brand name stays dominant while the H1 still reads "<Club> Football Club". */
.fnwv5-home-hero__title-fc {
  display: block;
  font-family: var(--fnwv5-font-heading);
  font-size: clamp(0.82rem, 1.5vw, 1.25rem);
  letter-spacing: 0.24em;
  font-weight: 600;
  opacity: 0.72;
  margin-top: 0.55em;
}
.fnwv5-home-hero__lead { color: rgba(255, 255, 255, 0.82); max-width: 56ch; margin-top: 18px; }
.fnwv5-home-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.fnwv5-home-hero__social { display: flex; gap: 12px; margin-top: 28px; }

/* Next-match strip */
.fnwv5-nextmatch {
  background: var(--fnwv5-primary);
  color: var(--fnwv5-on-primary);
}
.fnwv5-nextmatch__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-block: 12px;
}
.fnwv5-nextmatch__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fnwv5-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  font-weight: 700;
}
.fnwv5-nextmatch__label .fnwv5-pulse-dot { background: currentColor; }
.fnwv5-nextmatch__teams { font-family: var(--fnwv5-font-body); font-weight: 700; }
.fnwv5-nextmatch__vs { opacity: 0.7; font-weight: 500; margin: 0 4px; }
.fnwv5-nextmatch__when { font-family: var(--fnwv5-font-body); font-size: 0.9rem; opacity: 0.9; margin-left: auto; }

/* Section heading row */
.fnwv5-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.fnwv5-sec-link {
  font-family: var(--fnwv5-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fnwv5-primary);
  text-decoration: none;
  white-space: nowrap;
}
/* Variant-B (Selangor grid) news heading row — same shape as .fnwv5-sec-head,
   white H2 since the news-grid section sits on the dark page. */
.fnwv5-ng__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(20px, 2.4vw, 34px);
}
.fnwv5-ng__head .fnwv5-h2 { color: var(--fnwv5-ink); }
@media (max-width: 600px) {
  .fnwv5-ng__head { flex-direction: column; align-items: flex-start; gap: 6px; }
}
.fnwv5-sec-link:hover { text-decoration: underline; }

/* News grid: 1 featured + small cards */
.fnwv5-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--fnwv5-gap);
}
.fnwv5-news-card { color: inherit; text-decoration: none; display: flex; flex-direction: column; }
.fnwv5-news-card--featured { grid-column: 1 / -1; }
.fnwv5-news-card--featured .fnwv5-card__media { aspect-ratio: 21 / 9; }
.fnwv5-news-card__body { padding: 18px 20px 22px; }
.fnwv5-news-card__date {
  font-family: var(--fnwv5-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--fnwv5-muted);
}
.fnwv5-news-card__title {
  margin: 8px 0 0;
  font-family: var(--fnwv5-font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--fnwv5-ink);
}
.fnwv5-news-card--featured .fnwv5-news-card__title { font-size: 1.5rem; }

/* Match cards */
.fnwv5-match-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--fnwv5-gap);
}
.fnwv5-match-card {
  background: var(--fnwv5-secondary);
  border: 1px solid var(--fnwv5-line);
  border-radius: var(--fnwv5-radius);
  padding: 20px;
  box-shadow: var(--fnwv5-shadow-sm);
  transition: transform 0.3s var(--fnwv5-ease), box-shadow 0.3s var(--fnwv5-ease);
}
.fnwv5-match-card:hover { transform: translateY(-4px); box-shadow: var(--fnwv5-shadow); }
.fnwv5-match-card__comp {
  font-family: var(--fnwv5-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
  color: var(--fnwv5-muted);
  margin-bottom: 14px;
}
.fnwv5-match-card__teams { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fnwv5-match-team {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 0;
  min-width: 0;
  font-family: var(--fnwv5-font-body);
  font-weight: 700;
  color: var(--fnwv5-ink);
}
.fnwv5-match-team img { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; }
.fnwv5-match-team span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fnwv5-match-team--away { flex-direction: row-reverse; text-align: right; }
.fnwv5-match-card__vs {
  font-family: var(--fnwv5-font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--fnwv5-muted);
  text-transform: uppercase;
  flex-shrink: 0;
}
.fnwv5-match-card__when {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--fnwv5-line);
  font-family: var(--fnwv5-font-body);
  font-size: 0.85rem;
  color: var(--fnwv5-muted);
  text-align: center;
}

/* Season stats row */
.fnwv5-stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(28px, 6vw, 80px);
  text-align: center;
}
.fnwv5-stat { min-width: 120px; }

@media (max-width: 1024px) {
  .fnwv5-news-grid { grid-template-columns: repeat(2, 1fr); }
  .fnwv5-match-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .fnwv5-news-grid { grid-template-columns: 1fr; }
  .fnwv5-match-grid { grid-template-columns: 1fr; }
  .fnwv5-nextmatch__when { margin-left: 0; width: 100%; }
  .fnwv5-sec-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ===================== PAGE HERO (compact, inner pages) ===================== */
.fnwv5-hero--page {
  min-height: clamp(260px, 42vh, 440px);
  align-items: center;
}
.fnwv5-hero--page .fnwv5-hero__content { padding-block: clamp(32px, 6vh, 70px); }

/* Soften the seam between the animated page-hero and the flat page background below.
   The hero's bottom scrim ends near-black (rgba(0,0,0,.88)); the page bg is a lighter
   dark, so the edge steps. We feather it FROM THE BACKGROUND SIDE: a dark→transparent
   overlay at the top of the first block after the inner-page hero, starting as dark as
   the hero bottom and fading down into the natural bg. Sits below content (z-index:2)
   and the floating crest (z-index:1), so it only paints the empty top strip. Home has no
   .fnwv5-hero--page → home is untouched. */
.fnwv5-hero--page + * { position: relative; }
.fnwv5-hero--page + *::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: clamp(90px, 13vh, 180px);
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.80) 0%,
    rgba(0, 0, 0, 0.42) 38%,
    rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Mobile: shrink the hero black band — inner pages ÷2.5, home ÷1.5 (mobile only) */
@media (max-width: 767px) {
  .fnwv5-hero { min-height: clamp(280px, 48vh, 505px); }            /* home: 72vh → 48vh */
  .fnwv5-hero__content { padding-block: clamp(26px, 4.6vh, 60px); }
  .fnwv5-hero--page { min-height: clamp(104px, 17vh, 176px); }      /* inner: 42vh → 17vh */
  .fnwv5-hero--page .fnwv5-hero__content { padding-block: clamp(14px, 2.4vh, 28px); }
  /* crest start zone higher — ~centre of the hero gradient (was viewport centre) */
  .fnwv5-page-watermark { top: 36%; }
}

/* ===================== EMPTY STATE / PAGINATION ===================== */
.fnwv5-empty {
  text-align: center;
  color: var(--fnwv5-muted);
  padding: 60px 0;
  font-family: var(--fnwv5-font-body);
}
.fnwv5-pagination { margin-top: 40px; display: flex; justify-content: center; }
.fnwv5-pagination ul { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; }
.fnwv5-pagination a, .fnwv5-pagination span {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  text-decoration: none;
  font-family: var(--fnwv5-font-heading);
  font-weight: 600;
  color: var(--fnwv5-ink);
  background: var(--fnwv5-surface);
  transition: background 0.2s var(--fnwv5-ease), color 0.2s var(--fnwv5-ease);
}
.fnwv5-pagination a:hover { background: var(--fnwv5-theme); color: var(--fnwv5-on-theme); }
.fnwv5-pagination .current { background: var(--fnwv5-theme); color: var(--fnwv5-on-theme); }

/* ===================== ARTICLE (single news) ===================== */
.fnwv5-article { padding-top: clamp(28px, 4vw, 56px); }
.fnwv5-article__head { max-width: 820px; }
.fnwv5-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--fnwv5-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  color: var(--fnwv5-muted);
  margin-bottom: 16px;
}
.fnwv5-breadcrumb a { color: var(--fnwv5-muted); text-decoration: none; }
.fnwv5-breadcrumb a:hover { color: var(--fnwv5-theme); }
.fnwv5-article__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.fnwv5-article__date { font-family: var(--fnwv5-font-body); font-size: 0.85rem; color: var(--fnwv5-muted); }
.fnwv5-article__title {
  font-family: var(--fnwv5-font-display);
  text-transform: uppercase;
  line-height: 1.02;
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  margin: 0;
  color: var(--fnwv5-ink);
}
.fnwv5-article__hero {
  margin: clamp(24px, 4vw, 44px) 0;
  border-radius: var(--fnwv5-radius);
  overflow: hidden;
  box-shadow: var(--fnwv5-shadow);
}
.fnwv5-article__hero-img { display: block; width: 100%; height: auto; }

/* Prose */
.fnwv5-prose {
  max-width: 760px;
  margin-inline: auto;
  font-family: var(--fnwv5-font-body);
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--fnwv5-ink);
}
.fnwv5-prose > * + * { margin-top: 1.1em; }
.fnwv5-prose h2, .fnwv5-prose h3 {
  font-family: var(--fnwv5-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin-top: 1.6em;
}
.fnwv5-prose h2 { font-size: 1.6rem; }
.fnwv5-prose h3 { font-size: 1.25rem; }
.fnwv5-prose a { color: var(--fnwv5-theme); text-decoration: underline; text-underline-offset: 2px; }
.fnwv5-prose img { max-width: 100%; height: auto; border-radius: var(--fnwv5-radius-sm); margin-block: 1.2em; }
.fnwv5-prose ul, .fnwv5-prose ol { padding-left: 1.4em; }
.fnwv5-prose li + li { margin-top: 0.4em; }
.fnwv5-prose blockquote {
  border-left: 4px solid var(--fnwv5-theme);
  padding-left: 18px;
  color: var(--fnwv5-muted);
  font-style: italic;
}

/* Prev / next */
.fnwv5-article__nav {
  max-width: 760px;
  margin: 48px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--fnwv5-line);
  padding-top: 24px;
}
.fnwv5-article__nav-link { display: flex; flex-direction: column; gap: 4px; text-decoration: none; max-width: 46%; }
.fnwv5-article__nav-link--next { text-align: right; margin-left: auto; }
.fnwv5-article__nav-dir {
  font-family: var(--fnwv5-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  color: var(--fnwv5-theme);
}
.fnwv5-article__nav-title { font-family: var(--fnwv5-font-body); font-weight: 600; color: var(--fnwv5-ink); }

/* ===================== FILTER CHIPS ===================== */
.fnwv5-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.fnwv5-filter__chip {
  font-family: var(--fnwv5-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fnwv5-ink);
  background: var(--fnwv5-surface);
  border: 1px solid var(--fnwv5-line);
  border-radius: var(--fnwv5-radius-pill);
  padding: 9px 18px;
  cursor: pointer;
  transition: background 0.2s var(--fnwv5-ease), color 0.2s var(--fnwv5-ease), border-color 0.2s var(--fnwv5-ease);
}
.fnwv5-filter__chip:hover { border-color: var(--fnwv5-theme); color: var(--fnwv5-theme); }
.fnwv5-filter__chip.is-active {
  background: var(--fnwv5-theme);
  border-color: var(--fnwv5-theme);
  color: var(--fnwv5-on-theme);
}

/* ===================== SQUAD ===================== */
.fnwv5-squad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--fnwv5-gap);
}
/* Player card: non-uniform club-colour background + faint crest watermark,
   a 3D club-kit jersey (with number) instead of a photo, country flag + vertical
   role on the right edge, name bottom-left, white club-logo silhouette bottom-right.
   Hover: jersey lowers, a translucent crest floats in behind, card brightens. */
.fnwv5-player {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--fnwv5-radius);
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(120% 95% at 50% 0%, var(--fnwv5-theme-hi), var(--fnwv5-theme) 48%, var(--fnwv5-theme-deep) 100%);
  box-shadow: var(--fnwv5-shadow-sm);
  transition: transform 0.3s var(--fnwv5-ease), box-shadow 0.3s var(--fnwv5-ease), filter 0.3s var(--fnwv5-ease);
}
.fnwv5-player:hover { transform: translateY(-6px); box-shadow: var(--fnwv5-shadow); filter: brightness(1.07); }
/* faint static crest watermark behind everything */
.fnwv5-player__crest-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-size: 150% auto; background-position: center; background-repeat: no-repeat;
  opacity: 0.07; filter: brightness(0) invert(1);
}
/* translucent crest that floats in on hover, behind the jersey */
.fnwv5-player__hoverlogo {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-size: 80% auto; background-position: center 42%; background-repeat: no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0; transform: scale(0.92);
  transition: opacity 0.45s var(--fnwv5-ease), transform 0.55s var(--fnwv5-ease);
}
.fnwv5-player:hover .fnwv5-player__hoverlogo { opacity: 0.14; transform: scale(1); }
/* the 3D jersey */
.fnwv5-player__jersey {
  position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%);
  width: 80%; z-index: 1;
  transition: transform 0.45s var(--fnwv5-ease);
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.40));
}
.fnwv5-player:hover .fnwv5-player__jersey { transform: translate(-50%, -45%); }
.fnwv5-player__jersey .fnwv5-jersey__svg { width: 100%; height: auto; display: block; }
.fnwv5-jersey__num {
  font-family: var(--fnwv5-font-display);
  font-size: 104px;
  fill: var(--fnwv5-on-theme);
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.18);
  stroke-width: 1px;
}
/* flag top-right */
.fnwv5-player__flag {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  font-size: 1.45rem; line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}
/* vertical role label running down the right edge under the flag */
.fnwv5-player__role {
  position: absolute; top: 50px; right: 14px; z-index: 3;
  writing-mode: vertical-rl;
  font-family: var(--fnwv5-font-heading);
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.6rem; font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}
/* name bottom-left */
.fnwv5-player__name {
  position: absolute; left: 18px; bottom: 16px; z-index: 3;
  font-family: var(--fnwv5-font-heading);
  text-transform: uppercase; font-weight: 700;
  font-size: 1.15rem; line-height: 1.1; color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  max-width: 82%; overflow-wrap: break-word;
}
/* white club-logo silhouette bottom-right */
.fnwv5-player__crest {
  position: absolute; right: 14px; bottom: 14px; z-index: 3;
  width: 34px; height: 34px;
  background-size: contain; background-position: center; background-repeat: no-repeat;
  filter: brightness(0) invert(1); opacity: 0.9;
}
.fnwv5-player--staff { background: radial-gradient(120% 95% at 50% 0%, var(--fnwv5-theme), var(--fnwv5-theme-dark) 55%, var(--fnwv5-theme-deep) 100%); }
/* Coaching-staff card: no photo → a clean profile silhouette in the site colours
   (on-theme mark over the club-colour card), name bottom-left, role down the right edge. */
.fnwv5-player__silhouette {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%);
  width: 60%; z-index: 1; color: var(--fnwv5-on-theme); opacity: 0.92;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.34));
  transition: transform 0.4s var(--fnwv5-ease);
}
.fnwv5-player__silhouette svg { width: 100%; height: auto; display: block; }
.fnwv5-player--staff:hover .fnwv5-player__silhouette { transform: translate(-50%, -54%); }

@media (max-width: 1024px) { .fnwv5-squad-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px)  { .fnwv5-squad-grid { grid-template-columns: repeat(2, 1fr); } .fnwv5-player__name { font-size: 1rem; } }

/* ===================== RESULTS (score + W/D/L) ===================== */
.fnwv5-match-card__comp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.fnwv5-result-badge {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  font-family: var(--fnwv5-font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  color: #fff;
  flex-shrink: 0;
}
.fnwv5-result-badge.is-win  { background: #16a34a; }
.fnwv5-result-badge.is-draw { background: #6b7280; }
.fnwv5-result-badge.is-loss { background: var(--fnwv5-theme); }
.fnwv5-result-score {
  font-family: var(--fnwv5-font-display);
  font-size: 1.25rem;
  color: var(--fnwv5-ink);
  background: var(--fnwv5-surface);
  border-radius: 10px;
  padding: 4px 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ===================== STANDINGS TABLE ===================== */
.fnwv5-table-summary { padding-bottom: 0; }
.fnwv5-table-wrap { overflow-x: auto; border-radius: var(--fnwv5-radius); }
.fnwv5-standings {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  font-family: var(--fnwv5-font-body);
}
.fnwv5-standings thead th {
  font-family: var(--fnwv5-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--fnwv5-muted);
  padding: 6px 12px;
  text-align: left;
  white-space: nowrap;
}
.fnwv5-standings th.is-num, .fnwv5-standings td.is-num { text-align: center; }
.fnwv5-standings th.is-pts, .fnwv5-standings td.is-pts { color: var(--fnwv5-ink); font-weight: 800; }
.fnwv5-standings tbody tr {
  background: var(--fnwv5-secondary);
  box-shadow: var(--fnwv5-shadow-sm);
}
.fnwv5-standings tbody td {
  padding: 14px 12px;
  font-size: 0.92rem;
  color: var(--fnwv5-ink);
  vertical-align: middle;
}
.fnwv5-standings tbody td:first-child { border-radius: 12px 0 0 12px; }
.fnwv5-standings tbody td:last-child  { border-radius: 0 12px 12px 0; }
.fnwv5-standings__rank { font-family: var(--fnwv5-font-display); font-size: 1.05rem; color: var(--fnwv5-muted); }
.fnwv5-standings__team { font-weight: 700; }
.fnwv5-standings__team img { width: 26px; height: 26px; object-fit: contain; vertical-align: middle; margin-right: 10px; }
.fnwv5-standings__team span { vertical-align: middle; }

/* Own club row highlight */
.fnwv5-standings tbody tr.is-club {
  background: linear-gradient(90deg, var(--fnwv5-theme), var(--fnwv5-theme-dark));
  box-shadow: var(--fnwv5-shadow), 0 0 0 1px var(--fnwv5-theme);
}
.fnwv5-standings tbody tr.is-club td { color: var(--fnwv5-on-theme); }
.fnwv5-standings tbody tr.is-club .fnwv5-standings__rank,
.fnwv5-standings tbody tr.is-club.is-pts { color: var(--fnwv5-on-theme); }

@media (max-width: 640px) {
  .fnwv5-standings th.is-opt, .fnwv5-standings td.is-opt { display: none; }
  .fnwv5-standings tbody td { padding: 12px 8px; }
}

/* ===================== STANDING SHOWCASE (own-club hero card) =====================
   Colours from brand tokens only: theme family = card surface, primary = accents. */
.fnwv5-standing {
  position: relative; overflow: hidden; z-index: 2; text-align: center; color: #fff;
  border-radius: var(--fnwv5-radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 3px solid var(--fnwv5-primary);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 26px),
    linear-gradient(160deg, var(--fnwv5-theme-dark), var(--fnwv5-theme-deep));
  padding: clamp(30px, 4vw, 60px) clamp(22px, 4vw, 80px);
  transition: transform 0.4s var(--fnwv5-ease), box-shadow 0.4s var(--fnwv5-ease);
}
.fnwv5-standing:hover { transform: translateY(-4px); box-shadow: var(--fnwv5-shadow), var(--fnwv5-shadow-glow); }
.fnwv5-standing__crest { width: clamp(110px, 11vw, 172px); height: auto; object-fit: contain; margin: 0 auto 18px; display: block;
  transition: transform 0.45s var(--fnwv5-ease); }
.fnwv5-standing:hover .fnwv5-standing__crest { transform: scale(1.06); }
.fnwv5-standing__kicker { font-family: var(--fnwv5-font-heading); text-transform: uppercase; letter-spacing: 0.22em;
  font-weight: 700; font-size: clamp(0.8rem, 1.2vw, 1rem); color: var(--fnwv5-acc-themecard, var(--fnwv5-primary)); margin: 0 0 10px; }
.fnwv5-standing__name { font-family: var(--fnwv5-font-display); text-transform: uppercase; line-height: 0.96;
  font-size: clamp(2.4rem, 6vw, 4.6rem); margin: 0 0 clamp(26px, 3vw, 42px); color: #fff; }
.fnwv5-standing__big { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px);
  max-width: 760px; margin: 0 auto clamp(14px, 2vw, 22px); }
.fnwv5-standing__bigtile { border: 1px solid rgba(255, 255, 255, 0.10); border-radius: var(--fnwv5-radius-sm);
  background: rgba(0, 0, 0, 0.24); padding: clamp(22px, 3vw, 40px) 16px; transition: border-color 0.3s var(--fnwv5-ease); }
.fnwv5-standing__bigtile:hover { border-color: var(--fnwv5-primary); }
.fnwv5-standing__biglbl { font-family: var(--fnwv5-font-heading); text-transform: uppercase; letter-spacing: 0.14em;
  font-weight: 700; font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 10px; }
.fnwv5-standing__bignum { font-family: var(--fnwv5-font-display); font-size: clamp(3rem, 7vw, 5.2rem); line-height: 0.9; color: var(--fnwv5-acc-themecard-data, var(--fnwv5-primary)); }
.fnwv5-standing__tiles { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 16px);
  max-width: 1120px; margin: 0 auto; }
.fnwv5-standing__tile { border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--fnwv5-radius-sm);
  background: rgba(0, 0, 0, 0.18); padding: clamp(14px, 1.6vw, 22px) 8px; transition: border-color 0.3s var(--fnwv5-ease); }
.fnwv5-standing__tile:hover { border-color: var(--fnwv5-primary); }
.fnwv5-standing__tlbl { font-family: var(--fnwv5-font-heading); text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700; font-size: clamp(0.6rem, 0.8vw, 0.72rem); color: rgba(255, 255, 255, 0.55); margin-bottom: 8px; }
.fnwv5-standing__tnum { font-family: var(--fnwv5-font-display); font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1; color: #fff; }
@media (max-width: 900px) { .fnwv5-standing__tiles { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) {
  .fnwv5-standing__tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .fnwv5-standing__tiles .fnwv5-standing__tile:last-child { grid-column: 1 / -1; }
  .fnwv5-standing__tile { padding: clamp(16px, 5vw, 28px) 10px; }
  .fnwv5-standing__tnum { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .fnwv5-standing__bigtile { padding: clamp(24px, 7vw, 40px) 12px; }
  .fnwv5-standing__bignum { font-size: clamp(3.2rem, 16vw, 5rem); }
}

/* ===================== FULL LEAGUE TABLE (Selangor-style rich table) =====================
   ONE continuous striped surface on the wrapper; rows are transparent (no per-row gradient
   boxes → no ripple). Only the own-club band interrupts the pattern (like the reference). */
.fnwv5-ltable-wrap {
  position: relative; z-index: 2; overflow-x: auto; border-radius: var(--fnwv5-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 30px),
    linear-gradient(160deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.44)),
    linear-gradient(135deg, var(--fnwv5-primary-deep), var(--fnwv5-primary) 50%, var(--fnwv5-primary-hi));
  background-size: auto, 100% 100%, 240% 240%;
  animation: fnwv5-move-gradient 20s ease-in-out infinite;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}
.fnwv5-ltable { width: 100%; min-width: 760px; border-collapse: collapse; font-family: var(--fnwv5-font-body); color: #fff; }
.fnwv5-ltable thead th {
  font-family: var(--fnwv5-font-heading); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.9rem; font-weight: 700; color: var(--fnwv5-on-primary);
  padding: 22px 16px; text-align: center; white-space: nowrap;
  background: linear-gradient(180deg, var(--fnwv5-primary-dark), var(--fnwv5-primary-deep));
}
.fnwv5-ltable thead th.is-club-col { text-align: left; }
.fnwv5-ltable tbody tr { background: transparent; transition: background 0.2s var(--fnwv5-ease); }
.fnwv5-ltable tbody tr:hover { background: rgba(255, 255, 255, 0.06); }
.fnwv5-ltable tbody td { padding: 26px 16px; text-align: center; font-size: 1.2rem; vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.fnwv5-ltable tbody tr:last-child td { border-bottom: 0; }
.fnwv5-ltable__rank { font-family: var(--fnwv5-font-display); font-size: 1.6rem; }
.fnwv5-ltable__club { text-align: left; }
.fnwv5-ltable__club span { display: flex; align-items: center; gap: 18px; min-width: 0;
  font-family: var(--fnwv5-font-heading); text-transform: uppercase; font-weight: 700; font-size: 1.4rem;
  overflow-wrap: break-word; }
.fnwv5-ltable__club img { width: 76px; height: 76px; object-fit: contain; flex-shrink: 0; transition: transform 0.3s var(--fnwv5-ease); }
.fnwv5-ltable tbody tr:hover .fnwv5-ltable__club img { transform: scale(1.1); }
.fnwv5-ltable__pts { font-family: var(--fnwv5-font-display); font-size: 1.7rem; color: var(--fnwv5-acc-brandcard-data, var(--fnwv5-primary)); }
/* own club — a BRIGHTER, un-washed club-colour band interrupts the darker body; text uses the
   auto-contrast on-primary token so digits stay readable whether primary is light or dark */
.fnwv5-ltable tbody tr.is-club { background: linear-gradient(160deg, var(--fnwv5-primary-hi), var(--fnwv5-primary)); }
.fnwv5-ltable tbody tr.is-club td { color: var(--fnwv5-on-primary); }
.fnwv5-ltable tbody tr.is-club .fnwv5-ltable__pts,
.fnwv5-ltable tbody tr.is-club .fnwv5-ltable__rank { color: var(--fnwv5-on-primary); }
.fnwv5-ltable tbody tr.is-club td:first-child { box-shadow: inset 5px 0 0 var(--fnwv5-on-primary); }
/* Chevron column — desktop hidden; mobile shows it as the "open detail" affordance */
.fnwv5-ltable__chev { display: none; width: 40px; color: var(--fnwv5-primary); text-align: center; }
.fnwv5-ltable__chev svg { display: inline-block; vertical-align: middle; }
@media (max-width: 700px) {
  .fnwv5-ltable { min-width: 0; }
  .fnwv5-ltable th.is-opt, .fnwv5-ltable td.is-opt { display: none; }
  .fnwv5-ltable__chev { display: table-cell; }
  .fnwv5-ltable tbody tr { cursor: pointer; }
  .fnwv5-ltable tbody td { padding: 18px 8px; font-size: 1.05rem; }
  .fnwv5-ltable td.fnwv5-ltable__club { padding-left: 4px; padding-right: 6px; }
  .fnwv5-ltable__rank { font-size: 1.35rem; }
  .fnwv5-ltable__club span { font-size: 0.98rem; gap: 9px; }
  .fnwv5-ltable__club img { width: 34px; height: 34px; }
  .fnwv5-ltable__pts { font-size: 1.4rem; }
}

/* ===================== LEAGUE-TABLE MOBILE DETAIL SHEET (bottom sheet) ===================== */
.fnwv5-lt-sheet { position: fixed; inset: 0; z-index: 1000; }
.fnwv5-lt-sheet[hidden] { display: none; }
.fnwv5-lt-sheet__bd { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.62);
  opacity: 0; transition: opacity 0.3s var(--fnwv5-ease); }
.fnwv5-lt-sheet.is-open .fnwv5-lt-sheet__bd { opacity: 1; }
.fnwv5-lt-sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto;
  border-radius: var(--fnwv5-radius) var(--fnwv5-radius) 0 0;
  border-top: 3px solid var(--fnwv5-primary);
  background: linear-gradient(160deg, var(--fnwv5-theme-dark), var(--fnwv5-theme-deep));
  transform: translateY(100%); transition: transform 0.34s var(--fnwv5-ease);
  padding-bottom: 24px;
}
.fnwv5-lt-sheet.is-open .fnwv5-lt-sheet__panel { transform: translateY(0); }
.fnwv5-lt-sheet__grip { position: relative; z-index: 4; display: block; width: 60px; height: 5px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.32); margin: 12px auto 0; }
.fnwv5-lt-sheet__x { position: absolute; z-index: 4; top: 14px; right: 16px; width: 44px; height: 44px;
  border: 0; border-radius: 999px; background: rgba(0, 0, 0, 0.3); color: #fff; font-size: 1.6rem;
  line-height: 1; cursor: pointer; transition: background 0.2s var(--fnwv5-ease); }
.fnwv5-lt-sheet__x:hover { background: var(--fnwv5-primary); color: var(--fnwv5-on-primary); }
/* Standing card reused inside the sheet — strip the card chrome, keep the tiles */
.fnwv5-standing--sheet { border: 0; border-bottom: 0; background: transparent; padding: 14px clamp(16px, 5vw, 30px) 8px; }
.fnwv5-standing--sheet:hover { transform: none; box-shadow: none; }
.fnwv5-standing--sheet:hover .fnwv5-standing__crest { transform: none; }

/* ===================== HOME NEWS — VARIANT B (Selangor-style editorial masonry) =========
   Two columns of image-cards (image on top; title + meta BELOW, on the page background — NO
   box) + one tall featured on the right + "View All News". Solid dark section like the ref. */
.fnwv5-home-newsgrid { position: relative; }
/* Match the reference proportions: left area (2 small cards) ≈ featured width → 50/50,
   so the featured is ~2× a small card. Container capped so it isn't over-wide on big screens. */
.fnwv5-home-newsgrid > .fnwv5-container { max-width: 1680px; margin-inline: auto; }
.fnwv5-ng { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 2vw, 36px); align-items: start; position: relative; z-index: 2; }
.fnwv5-ng__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 1.8vw, 32px); align-items: start; }
.fnwv5-ng__col { display: flex; flex-direction: column; gap: clamp(22px, 2.2vw, 36px); }
/* Featured column is sticky: it (and View All News) slide along while the taller left
   masonry scrolls past — matches the reference. top clears the fixed header. */
.fnwv5-ng__feat-wrap { display: flex; flex-direction: column; gap: 14px;
  position: sticky; top: clamp(84px, 9vh, 112px); align-self: start; }

/* shared media (image, or branded gradient + crest) — ANGULAR (sharp corners), zooms on hover */
.fnwv5-ng-media { position: relative; overflow: hidden; border-radius: var(--fnwv5-radius-sm);
  background-size: cover; background-position: center; transition: transform 0.55s var(--fnwv5-ease); }
.fnwv5-ng-media--grad { background: linear-gradient(135deg, var(--fnwv5-theme-hi), var(--fnwv5-theme-deep));
  display: flex; align-items: center; justify-content: center; }
.fnwv5-ng-media--grad::after { content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 22px); }
.fnwv5-ng-media__crest { width: 38%; max-width: 130px; height: auto; opacity: 0.92; position: relative; z-index: 1; }

/* small card — image on top, text below on the page bg (no card box) */
.fnwv5-ng-card { display: block; text-decoration: none; color: #fff; margin: 0; }
/* Reference staircase: left column 16:9, right column taller (4:3) → the two columns
   start aligned at the top and diverge progressively down the page. */
.fnwv5-ng-card__media { aspect-ratio: 16 / 9; }
.fnwv5-ng__col:nth-child(2) .fnwv5-ng-card__media { aspect-ratio: 4 / 3; }
.fnwv5-ng-card__body { padding: 14px 0 0; }
.fnwv5-ng-card__title { font-family: var(--fnwv5-font-heading); text-transform: uppercase; font-weight: 700;
  color: var(--fnwv5-primary);
  font-size: clamp(1rem, 1.15vw, 1.2rem); line-height: 1.18; margin: 0 0 8px; overflow-wrap: break-word; transition: color 0.25s var(--fnwv5-ease); }
.fnwv5-ng-card:hover .fnwv5-ng-card__media { transform: scale(1.05); }
.fnwv5-ng-card:hover .fnwv5-ng-card__title { color: var(--fnwv5-primary); }

/* featured — same editorial style, larger + tall image */
.fnwv5-ng-feat { display: block; text-decoration: none; color: #fff; }
/* Featured = landscape (16:9) like the reference, ~2× a small card; its aspect keeps it
   shorter than the tall left masonry, so it (sticky) has room to slide with View All News. */
.fnwv5-ng-feat__media { border-radius: var(--fnwv5-radius-sm); aspect-ratio: 16 / 9; min-height: 0; }
.fnwv5-ng-feat__body { padding: 16px 0 0; }
.fnwv5-ng-feat__eyebrow { display: block; font-family: var(--fnwv5-font-heading); text-transform: uppercase;
  letter-spacing: 0.14em; font-weight: 700; font-size: 0.8rem; color: rgba(255,255,255,0.72); margin-bottom: 8px; }
.fnwv5-ng-feat__title { font-family: var(--fnwv5-font-display); text-transform: uppercase; line-height: 1.04;
  color: var(--fnwv5-primary);
  font-size: clamp(1.6rem, 2.4vw, 2.5rem); margin: 0 0 10px; overflow-wrap: break-word; transition: color 0.25s var(--fnwv5-ease); }
.fnwv5-ng-feat:hover .fnwv5-ng-feat__media { transform: scale(1.03); }
.fnwv5-ng-feat:hover .fnwv5-ng-feat__title { color: var(--fnwv5-primary); }

/* meta line (date · comments) */
.fnwv5-ng-meta { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.55); font-size: 0.85rem; }
.fnwv5-ng-meta--light { color: rgba(255,255,255,0.6); }

/* view all — bottom-right under the featured */
.fnwv5-ng-viewall { align-self: flex-end; display: inline-flex; align-items: center; gap: 10px; margin-top: 6px;
  color: var(--fnwv5-primary); text-decoration: none; font-family: var(--fnwv5-font-heading);
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; font-size: 1rem;
  transition: gap 0.25s var(--fnwv5-ease); }
.fnwv5-ng-viewall svg { width: 20px; height: 20px; }
.fnwv5-ng-viewall:hover { gap: 16px; }

@media (max-width: 900px) {
  .fnwv5-ng { grid-template-columns: 1fr; }
  /* stacked → featured must NOT be sticky (it would slide over the cards below) */
  .fnwv5-ng__feat-wrap { position: static; order: -1; }
}
@media (max-width: 600px) {
  /* phone: show only the one featured story + View All News (no staircase riding through) */
  .fnwv5-ng__grid { display: none; }
}

/* News ARCHIVE — variant B (reuses the editorial .fnwv5-ng-card): featured banner + grid, boxless */
.fnwv5-ngp { display: flex; flex-direction: column; gap: clamp(26px, 2.6vw, 46px); position: relative; z-index: 2; }
.fnwv5-ngp__feat { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(22px, 2.2vw, 40px);
  align-items: center; text-decoration: none; color: #fff; }
.fnwv5-ngp__feat-media { min-height: clamp(260px, 26vw, 400px); border-radius: var(--fnwv5-radius-sm); }
.fnwv5-ngp__feat-body { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.fnwv5-ngp__feat:hover .fnwv5-ngp__feat-media { transform: scale(1.03); }
.fnwv5-ngp__feat:hover .fnwv5-ng-feat__title { color: var(--fnwv5-primary); }
.fnwv5-ngp__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(240px, 22vw, 300px), 1fr)); gap: clamp(22px, 2.2vw, 36px); }
@media (max-width: 760px) { .fnwv5-ngp__feat { grid-template-columns: 1fr; } .fnwv5-ngp__feat-media { min-height: 220px; } }

/* Home Results block (long rows like /results/) — centred CTA button below the rows */
.fnwv5-home-results__cta { text-align: center; margin-top: clamp(22px, 2.4vw, 36px); }
/* Tighten the gap between the Results CTA and the Table block (desktop + mobile) */
.fnwv5-home-results { padding-bottom: clamp(10px, 1.4vw, 20px); }
.fnwv5-home-table { padding-top: clamp(10px, 1.4vw, 20px); }
/* Desktop only: tighten the gaps News → Matches → Results to the same (ideal) size as
   the Results → Table gap. Mobile (≤900px) keeps its current spacing (it's fine there). */
@media (min-width: 901px) {
  .fnwv5-home-newsgrid, .fnwv5-home-news { padding-block: clamp(10px, 1.4vw, 20px); }
  /* .fnwv5-home-matches padding is overridden in v5-home.css (loads later) */
  /* ×1.5 of the etalon gap so the LATEST RESULTS heading isn't tight to the Matches line */
  .fnwv5-home-results { padding-top: clamp(15px, 2.1vw, 30px); }
  .fnwv5-home-squad { padding-block: clamp(10px, 1.4vw, 20px); }
  /* home squad: 5 cards in one line (scoped — the /squad/ page grid is unchanged) */
  .fnwv5-home-squad .fnwv5-squad-grid { grid-template-columns: repeat(5, 1fr); }
  /* sponsors block took too much vertical space → same tight gap as the rest */
  .fnwv5-sponsors { padding-block: clamp(10px, 1.4vw, 20px); }
}

/* ===================== COMMUNITY / SOCIAL NATION (home, Selangor-style) =====================
   Tabbed social panel: left = tabs + rotating copy + CTA; right = news image per tab
   (brand gradient fallback) + crest + feedback form. Colours from brand tokens only. */
.fnwv5-community { position: relative; overflow: hidden;
  /* Green glow ONLY in the top ~460px (behind the heading), then SOLID black for the rest —
     px stops (not %) so the section bottom is always pure shell regardless of the section's
     height, meeting the black footer with no leftover green band. */
  background: linear-gradient(180deg, var(--fnwv5-theme-deep) 0, var(--fnwv5-shell) 460px, var(--fnwv5-shell) 100%); }
.fnwv5-community__kicker { font-family: var(--fnwv5-font-heading); text-transform: uppercase; letter-spacing: 0.22em;
  font-weight: 700; font-size: clamp(0.85rem, 1.2vw, 1rem); color: rgba(255,255,255,0.72); margin: 0 0 10px; }
.fnwv5-community__title { font-family: var(--fnwv5-font-display); text-transform: uppercase; line-height: 0.92;
  font-size: clamp(2.6rem, 6.5vw, 5.2rem); margin: 0 0 clamp(28px, 4vw, 48px); }
.fnwv5-community__title-hi { color: #fff; }
.fnwv5-community__title-mut { color: rgba(255,255,255,0.34); }

.fnwv5-community__card { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  border-radius: var(--fnwv5-radius); overflow: hidden; border: 1px solid rgba(255,255,255,0.10);
  /* One continuous animated surface across the whole card (blue = secondary, kept
     from the block this replaced) so the static left blends into the animated right. */
  background: linear-gradient(115deg, var(--fnwv5-secondary-deep) 0%, #111 45%, var(--fnwv5-theme) 100%);
  background-size: 240% 240%; animation: fnwv5-move-gradient 16s ease-in-out infinite; min-height: 560px; }

/* Dark readability wash for the text — spans the WHOLE card (not the left column)
   so there is no column-boundary seam; it fades to transparent past the middle so the
   animated surface shows on the right. ------------------------------------------ */
.fnwv5-community__card::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  /* single constant-slope fade (dark left → transparent) so there is no steep midpoint
     that reads as a vertical edge; stays dark enough for the text on the left third. */
  background: linear-gradient(90deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.9) 32%, rgba(0,0,0,0) 92%); }
/* Full-width bottom vignette (helps the feedback form) — on the CARD, not the right column,
   so it never creates a vertical edge at the column boundary. */
.fnwv5-community__card::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 64%, rgba(0,0,0,0.38) 100%); }
.fnwv5-community__left { padding: clamp(28px, 3vw, 56px); display: flex; flex-direction: column;
  position: relative; z-index: 1; }
.fnwv5-community__right { position: relative; z-index: 1; }
.fnwv5-community__tabs { display: flex; flex-wrap: wrap; gap: clamp(18px, 2.5vw, 40px); margin-bottom: clamp(28px, 4vw, 56px); }
.fnwv5-ctab { display: inline-flex; align-items: center; gap: 9px; background: none; border: 0; cursor: pointer;
  padding: 0 0 8px; position: relative; color: rgba(255,255,255,0.55);
  font-family: var(--fnwv5-font-heading); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; font-size: 0.92rem;
  transition: color 0.2s var(--fnwv5-ease); }
.fnwv5-ctab__ico { width: 20px; height: 20px; display: inline-flex; }
.fnwv5-ctab__ico svg { width: 100%; height: 100%; }
.fnwv5-ctab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--fnwv5-primary); transform: scaleX(0); transform-origin: left; transition: transform 0.28s var(--fnwv5-ease); }
.fnwv5-ctab:hover { color: #fff; }
.fnwv5-ctab.is-active { color: #fff; }
.fnwv5-ctab.is-active::after { transform: scaleX(1); }

.fnwv5-community__panels { flex: 1; display: flex; }
.fnwv5-cpanel { display: none; }
.fnwv5-cpanel.is-active { display: flex; flex-direction: column; flex: 1; animation: fnwv5-cfade 0.5s var(--fnwv5-ease) both; }
@keyframes fnwv5-cfade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fnwv5-cpanel__h { font-family: var(--fnwv5-font-display); text-transform: uppercase; line-height: 0.95;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem); color: #fff; margin: 0; }
.fnwv5-cpanel__rule { display: block; width: 70px; height: 3px; background: var(--fnwv5-primary); margin: 22px 0; border-radius: 2px; }
.fnwv5-cpanel__text { color: rgba(255,255,255,0.82); line-height: 1.6; font-size: clamp(0.85rem, 0.95vw, 0.95rem); margin: 0 0 clamp(22px, 2.6vw, 34px); max-width: 46ch; }
.fnwv5-cpanel__cta { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; margin-top: auto;
  background: var(--fnwv5-primary); color: var(--fnwv5-on-primary); text-decoration: none;
  font-family: var(--fnwv5-font-heading); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; font-size: 0.95rem;
  padding: 16px 26px; border-radius: var(--fnwv5-radius-sm); transition: transform 0.25s var(--fnwv5-ease), box-shadow 0.25s var(--fnwv5-ease); }
.fnwv5-cpanel__cta-ico { width: 18px; height: 18px; display: inline-flex; }
.fnwv5-cpanel__cta-ico svg { width: 100%; height: 100%; }
.fnwv5-cpanel__cta-arrow { width: 20px; height: 20px; flex-shrink: 0; display: block; transition: transform 0.25s var(--fnwv5-ease); }
.fnwv5-cpanel__cta:hover { transform: translateY(-2px); box-shadow: var(--fnwv5-shadow-glow); }
.fnwv5-cpanel__cta:hover .fnwv5-cpanel__cta-arrow { transform: translateX(4px); }

.fnwv5-community__dots { display: flex; gap: 10px; margin-top: clamp(18px, 2vw, 26px); }
.fnwv5-cdot { width: 34px; height: 8px; border-radius: 999px; background: rgba(255,255,255,0.18);
  cursor: pointer; transition: background 0.3s var(--fnwv5-ease), width 0.3s var(--fnwv5-ease); }
.fnwv5-cdot.is-active { background: var(--fnwv5-primary); width: 54px; }

/* Right column (media + feedback) --------------------------------------- */
.fnwv5-community__right { position: relative; min-height: 560px; }
.fnwv5-community__media { position: absolute; inset: 0; overflow: hidden; }
.fnwv5-cmedia { position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.6s var(--fnwv5-ease);
  /* fade the image in from the centre so it melts into the shared gradient (no seam) */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 26%); }
.fnwv5-cmedia.is-active { opacity: 1; }
.fnwv5-cmedia--grad { background: transparent; -webkit-mask-image: none; mask-image: none; } /* no image → the card's animated surface shows through */
/* Deprecated: the bottom vignette moved to the full-width card ::after (a right-column-only
   scrim created a vertical seam at the column edge). Kept transparent for compatibility. */
.fnwv5-community__scrim { position: absolute; inset: 0; pointer-events: none; background: transparent; }
.fnwv5-community__crest { position: absolute; top: 22px; right: 24px; width: clamp(52px, 6vw, 84px); height: auto; z-index: 3; }

/* ~30% smaller; transparent fill so the animated surface shows behind it (lime border kept) */
.fnwv5-community__feedback { position: absolute; right: clamp(16px, 2vw, 34px); bottom: clamp(16px, 2vw, 34px);
  left: auto; width: min(66%, 420px); z-index: 3;
  background: transparent;
  border: 1.5px solid var(--fnwv5-primary); border-radius: var(--fnwv5-radius); padding: clamp(13px, 1.4vw, 20px); }
.fnwv5-community__fb-title { font-family: var(--fnwv5-font-display); text-transform: uppercase; letter-spacing: 0.04em;
  font-size: clamp(1rem, 1.5vw, 1.4rem); color: var(--fnwv5-primary); margin: 0; line-height: 1; text-shadow: 0 1px 8px rgba(0,0,0,0.7); }
.fnwv5-community__fb-sub { color: rgba(255,255,255,0.92); font-size: 0.76rem; margin: 6px 0 12px; text-shadow: 0 1px 8px rgba(0,0,0,0.7); }
.fnwv5-community__fb-form { display: grid; gap: 8px; }
.fnwv5-community__fb-email, .fnwv5-community__fb-msg { width: 100%; border: 0; border-radius: var(--fnwv5-radius-sm);
  padding: 9px 12px; font-family: var(--fnwv5-font-body); font-size: 0.85rem; background: #fff; color: #111; resize: vertical; }
.fnwv5-community__fb-btn { border: 0; cursor: pointer; border-radius: var(--fnwv5-radius-sm);
  background: var(--fnwv5-primary); color: var(--fnwv5-on-primary);
  font-family: var(--fnwv5-font-heading); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; font-size: 0.8rem;
  padding: 10px 14px; transition: filter 0.2s var(--fnwv5-ease); }
.fnwv5-community__fb-btn:hover { filter: brightness(1.08); }
.fnwv5-community__fb-btn:disabled { opacity: 0.6; cursor: default; }
.fnwv5-community__fb-msgbox { font-size: 0.85rem; color: rgba(255,255,255,0.85); min-height: 1em; }
.fnwv5-community__fb-msgbox.is-ok { color: var(--fnwv5-primary); }
.fnwv5-community__fb-msgbox.is-error { color: #ff8a8a; }

@media (max-width: 900px) {
  .fnwv5-community__card { grid-template-columns: 1fr; min-height: 0; }
  /* stacked: readability wash goes vertical (top dark for text, clear lower) */
  .fnwv5-community__card::before { background: linear-gradient(180deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 42%, transparent 72%); }
  .fnwv5-community__crest { display: none; }                 /* no crest in this block on mobile */
  .fnwv5-community__right { min-height: 0; }
  .fnwv5-community__media { position: relative; }            /* in flow → no tall reserved area */
  /* form flows right after the content (near the top of the right area), not pinned bottom */
  .fnwv5-community__feedback { position: relative; left: auto; right: auto; bottom: auto; width: auto;
    margin: clamp(16px, 4vw, 28px); }
}
@media (max-width: 560px) {
  .fnwv5-community__left { padding: 22px; }
  .fnwv5-community__tabs { gap: 16px; }
  .fnwv5-ctab__txt { font-size: 0.8rem; }
}

/* ===================== CLUB / ABOUT ===================== */
.fnwv5-club-about {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 48px;
  align-items: start;
}
.fnwv5-club-rich { max-width: none; margin-top: 40px; }

/* Facts card */
.fnwv5-facts {
  background: var(--fnwv5-surface);
  border: 1px solid var(--fnwv5-line);
  border-radius: var(--fnwv5-radius);
  padding: 8px 22px;
}
.fnwv5-facts__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--fnwv5-line);
}
.fnwv5-facts__row:last-child { border-bottom: none; }
.fnwv5-facts__label {
  font-family: var(--fnwv5-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.72rem;
  color: var(--fnwv5-muted);
}
.fnwv5-facts__val { font-family: var(--fnwv5-font-body); font-weight: 700; color: var(--fnwv5-ink); text-align: right; }

/* Stadium photo */
.fnwv5-stadium-photo {
  position: relative;
  aspect-ratio: 21 / 9;
  border-radius: var(--fnwv5-radius);
  background-size: cover;
  background-position: center;
  box-shadow: var(--fnwv5-shadow);
  display: flex;
  align-items: flex-end;
}
.fnwv5-stadium-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.6) 100%);
  border-radius: inherit;
}
.fnwv5-stadium-photo__name {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: var(--fnwv5-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 22px 26px;
}

/* History & achievements timeline (alternating) */
.fnwv5-timeline {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  position: relative;
}
.fnwv5-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--fnwv5-line);
  transform: translateX(-50%);
}
.fnwv5-timeline__item {
  position: relative;
  width: 50%;
  padding: 0 40px 36px 0;
  box-sizing: border-box;
}
.fnwv5-timeline__item:nth-child(even) {
  margin-left: 50%;
  padding: 0 0 36px 40px;
}
.fnwv5-timeline__year {
  position: absolute;
  top: 0;
  font-family: var(--fnwv5-font-display);
  font-size: 1.5rem;
  color: var(--fnwv5-theme);
  background: var(--fnwv5-bg);
  padding: 0 10px;
}
.fnwv5-timeline__item:nth-child(odd) .fnwv5-timeline__year { right: -1px; transform: translateX(50%); }
.fnwv5-timeline__item:nth-child(even) .fnwv5-timeline__year { left: -1px; transform: translateX(-50%); }
.fnwv5-timeline__card {
  background: var(--fnwv5-surface);
  border: 1px solid var(--fnwv5-line);
  border-radius: var(--fnwv5-radius-sm);
  padding: 18px 22px;
  margin-top: 36px;
  box-shadow: var(--fnwv5-shadow-sm);
}
.fnwv5-timeline__title {
  margin: 0 0 6px;
  font-family: var(--fnwv5-font-heading);
  text-transform: uppercase;
  font-size: 1.05rem;
  color: var(--fnwv5-ink);
}
.fnwv5-timeline__desc { margin: 0; font-family: var(--fnwv5-font-body); color: var(--fnwv5-muted); line-height: 1.55; font-size: 0.95rem; }

@media (max-width: 860px) {
  .fnwv5-club-about { grid-template-columns: 1fr; gap: 32px; }
  .fnwv5-timeline::before { left: 16px; }
  .fnwv5-timeline__item,
  .fnwv5-timeline__item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding: 0 0 32px 44px;
  }
  .fnwv5-timeline__item:nth-child(odd) .fnwv5-timeline__year,
  .fnwv5-timeline__item:nth-child(even) .fnwv5-timeline__year {
    left: 16px;
    right: auto;
    transform: translateX(-50%);
  }
}

/* ===================== CONTACTS ===================== */
.fnwv5-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}
.fnwv5-contact-info { display: flex; flex-direction: column; gap: 16px; }
.fnwv5-info-panel {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--fnwv5-surface);
  border: 1px solid var(--fnwv5-line);
  border-radius: var(--fnwv5-radius-sm);
  padding: 20px 22px;
}
.fnwv5-info-panel--social { flex-direction: column; gap: 12px; }
.fnwv5-info-panel__icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--fnwv5-theme-soft);
  color: var(--fnwv5-theme);
  flex-shrink: 0;
}
.fnwv5-info-panel__icon svg { width: 22px; height: 22px; }
.fnwv5-info-panel__label {
  display: block;
  font-family: var(--fnwv5-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
  color: var(--fnwv5-muted);
  margin-bottom: 4px;
}
.fnwv5-info-panel__val { display: block; font-family: var(--fnwv5-font-body); font-weight: 700; color: var(--fnwv5-ink); text-decoration: none; }
a.fnwv5-info-panel__val:hover { color: var(--fnwv5-theme); }
.fnwv5-info-panel__sub { display: block; font-size: 0.88rem; color: var(--fnwv5-muted); margin-top: 2px; }
.fnwv5-contact-soc { display: flex; flex-wrap: wrap; gap: 10px; }
.fnwv5-contact-soc__link {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--fnwv5-primary);
  color: #fff;
  transition: background 0.2s var(--fnwv5-ease), transform 0.2s var(--fnwv5-ease);
}
.fnwv5-contact-soc__link:hover { background: var(--fnwv5-theme); transform: translateY(-3px); }
.fnwv5-contact-soc__link svg { width: 20px; height: 20px; fill: currentColor; }

/* Form */
.fnwv5-form-panel {
  background: var(--fnwv5-secondary);
  border: 1px solid var(--fnwv5-line);
  border-radius: var(--fnwv5-radius);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--fnwv5-shadow-sm);
}
.fnwv5-form { margin-top: 22px; display: flex; flex-direction: column; gap: 16px; }
.fnwv5-field { display: flex; flex-direction: column; gap: 6px; }
.fnwv5-field label {
  font-family: var(--fnwv5-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.72rem;
  color: var(--fnwv5-muted);
}
.fnwv5-field input,
.fnwv5-field textarea {
  width: 100%;
  font-family: var(--fnwv5-font-body);
  font-size: 1rem;
  color: var(--fnwv5-ink);
  background: var(--fnwv5-bg);
  border: 1px solid var(--fnwv5-line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s var(--fnwv5-ease), box-shadow 0.2s var(--fnwv5-ease);
}
.fnwv5-field input:focus,
.fnwv5-field textarea:focus {
  outline: none;
  border-color: var(--fnwv5-theme);
  box-shadow: 0 0 0 3px var(--fnwv5-theme-soft);
}
.fnwv5-form .cfp-submit { align-self: flex-start; margin-top: 4px; }
.fnwv5-form-msg { font-size: 0.9rem; }
.fnwv5-form-msg.is-error { color: var(--fnwv5-theme); }
.fnwv5-form-msg.is-ok { color: #16a34a; }

/* Map */
.fnwv5-map {
  margin-top: 40px;
  border-radius: var(--fnwv5-radius);
  overflow: hidden;
  box-shadow: var(--fnwv5-shadow);
}

@media (max-width: 860px) {
  .fnwv5-contact-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ===================== PARTNERS ===================== */
.fnwv5-partner-logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.fnwv5-partner-logo {
  display: grid;
  place-items: center;
  min-height: 100px;
  padding: 18px;
  background: var(--fnwv5-secondary);
  border: 1px solid var(--fnwv5-line);
  border-radius: var(--fnwv5-radius-sm);
  text-decoration: none;
  color: var(--fnwv5-ink);
  font-family: var(--fnwv5-font-heading);
  font-weight: 700;
  text-transform: uppercase;
}
.fnwv5-partner-logo img { max-width: 100%; max-height: 64px; object-fit: contain; }

.fnwv5-vcard {
  background: var(--fnwv5-surface);
  border: 1px solid var(--fnwv5-line);
  border-radius: var(--fnwv5-radius);
  padding: 28px;
  border-top: 3px solid var(--fnwv5-theme);
}
.fnwv5-vcard__title {
  margin: 0 0 10px;
  font-family: var(--fnwv5-font-heading);
  text-transform: uppercase;
  font-size: 1.1rem;
  color: var(--fnwv5-ink);
}
.fnwv5-vcard__desc { margin: 0; color: var(--fnwv5-muted); font-family: var(--fnwv5-font-body); line-height: 1.6; }

.fnwv5-opp {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px;
  background: var(--fnwv5-secondary);
  border: 1px solid var(--fnwv5-line);
  border-radius: var(--fnwv5-radius-sm);
  font-family: var(--fnwv5-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--fnwv5-ink);
}
.fnwv5-opp__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--fnwv5-theme); flex-shrink: 0; }

/* ===================== LEGAL / GENERIC PAGE ===================== */
.fnwv5-hero--legal { min-height: clamp(200px, 30vh, 320px); }
.fnwv5-page-shortcode { /* legacy data shortcodes rendered inside Wydad container */ }

/* ===================== NO-JS SAFETY ===================== */
/* If v5.js fails/doesn't run, the <html class="no-js"> flag stays and reveal
   blocks must remain visible (otherwise the whole page would render blank). */
.no-js .fnwv5-reveal { opacity: 1 !important; transform: none !important; }

/* ===================== SEARCH BAR ===================== */
.fnwv5-searchbar { display: flex; gap: 10px; margin-top: 22px; max-width: 560px; }
.fnwv5-searchbar input {
  flex: 1;
  font-family: var(--fnwv5-font-body);
  font-size: 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--fnwv5-radius-pill);
  padding: 12px 20px;
}
.fnwv5-searchbar input::placeholder { color: rgba(255, 255, 255, 0.6); }
.fnwv5-searchbar input:focus { outline: none; border-color: var(--fnwv5-theme); }
