/* Hero match cards + nav bar visibility, BOTH light and dark mode.
   Loaded LAST on the homepage, so these beat the earlier layers that
   disagreed with each other: hero-glass-fix (translucent glass), 
   amsal-audit-fix (light mode: white cards + dark text) and
   amsal-design (navy nav bar in both themes).
   Rule: hero cards are SOLID dark in both modes (the hero photo is dark
   in both modes), so all card text is white/gold in both modes. No card
   text colour may depend on the page theme any more. */
html[data-theme="light"] body.glass-home .hero-match-deck .hero-club-card,
html[data-theme="light"] body.glass-home .hero-match-deck .hero-cup-card,
html[data-theme="dark"] body.glass-home .hero-match-deck .hero-club-card,
html[data-theme="dark"] body.glass-home .hero-match-deck .hero-cup-card,
body.glass-home .hero-match-deck .hero-club-card,
body.glass-home .hero-match-deck .hero-cup-card {
  background: #0a1f15 !important;
  background-image: linear-gradient(140deg, #0e2a1c, #081712) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
}
html[data-theme="light"] body.glass-home .hero-match-deck .tp-team span,
html[data-theme="dark"] body.glass-home .hero-match-deck .tp-team span,
body.glass-home .hero-match-deck .tp-team span {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
}
html[data-theme="light"] body.glass-home .hero-match-deck .tp-featured-label,
html[data-theme="light"] body.glass-home .hero-match-deck .tp-featured-label-cup,
html[data-theme="dark"] body.glass-home .hero-match-deck .tp-featured-label,
html[data-theme="dark"] body.glass-home .hero-match-deck .tp-featured-label-cup,
body.glass-home .hero-match-deck .tp-featured-label,
body.glass-home .hero-match-deck .tp-featured-label-cup {
  color: #fdc52c !important;
}
html[data-theme="light"] body.glass-home .hero-match-deck .tp-vs,
html[data-theme="light"] body.glass-home .hero-match-deck .tp-vs span,
html[data-theme="light"] body.glass-home .hero-match-deck .tp-vs .tp-score,
html[data-theme="dark"] body.glass-home .hero-match-deck .tp-vs,
html[data-theme="dark"] body.glass-home .hero-match-deck .tp-vs span,
html[data-theme="dark"] body.glass-home .hero-match-deck .tp-vs .tp-score,
body.glass-home .hero-match-deck .tp-vs,
body.glass-home .hero-match-deck .tp-vs span,
body.glass-home .hero-match-deck .tp-vs .tp-score {
  color: #f2c230 !important;
}
html[data-theme="light"] body.glass-home .hero-match-deck .tp-featured-foot span,
html[data-theme="dark"] body.glass-home .hero-match-deck .tp-featured-foot span,
body.glass-home .hero-match-deck .tp-featured-foot span {
  color: #eef4ee !important;
}
html[data-theme="light"] body.glass-home .hero-match-deck .tp-featured-foot span:last-child,
html[data-theme="dark"] body.glass-home .hero-match-deck .tp-featured-foot span:last-child,
body.glass-home .hero-match-deck .tp-featured-foot span:last-child {
  color: #cdd9d0 !important;
}
/* Nav bar: white in light mode, pure black in dark mode. */
html[data-theme="light"] body .navbar,
body .navbar {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
}
html[data-theme="light"] body.glass-home .navbar .club-title-white,
body .navbar .club-title-white {
  color: #14281e !important;
  -webkit-text-fill-color: #14281e !important;
}
html[data-theme="light"] body .navbar .nav-links a,
html[data-theme="light"] body .navbar .nav-links a span,
body .navbar .nav-links a,
body .navbar .nav-links a span {
  color: #14281e !important;
}
/* Light-mode nav ICONS: the design layer forces every nav icon gold
   (amsal-design.css), which is unreadable on this white bar — gold on
   white was exactly the washed-out look in the screenshot. Icons match
   the dark link text here; hover/active get the readable Barça blue.
   Scoped to :not(.active) so the navy mobile drawer keeps its white/gold
   links untouched. */
html[data-theme="light"] body .navbar .nav-links:not(.active) a i {
  color: #14281e !important;
}
html[data-theme="light"] body .navbar .nav-links:not(.active) a:hover i,
html[data-theme="light"] body .navbar .nav-links:not(.active) a.active i {
  color: #154284 !important;
}
/* Light-mode nav TEXT: the design layer forces glass-home link text white
   in BOTH themes (amsal-design.css, to beat the glass layer), which is
   white-on-white on this white bar — the text is there, just invisible,
   and on hover it sat on a near-white pill. These selectors outrank that
   rule (extra :not(.active) class) and are scoped off the drawer, so the
   navy mobile drawer keeps its white text untouched. Hover/active get a
   dark tint pill and readable blue text instead of white-on-white. */
html[data-theme="light"] body.glass-home .navbar .nav-links:not(.active) a span,
html[data-theme="light"] body .navbar .nav-links:not(.active) a span {
  color: #14281e !important;
}
html[data-theme="light"] body.glass-home .navbar .nav-links:not(.active) a:hover span,
html[data-theme="light"] body.glass-home .navbar .nav-links:not(.active) a.active span,
html[data-theme="light"] body .navbar .nav-links:not(.active) a:hover span,
html[data-theme="light"] body .navbar .nav-links:not(.active) a.active span {
  color: #154284 !important;
}
html[data-theme="light"] body .navbar .nav-links:not(.active) a:hover,
html[data-theme="light"] body .navbar .nav-links:not(.active) a.active {
  color: #14281e !important;
  background: rgba(20, 40, 30, 0.08) !important;
}
html[data-theme="light"] body .navbar .theme-toggle-btn,
html[data-theme="light"] body .navbar .menu-toggle,
body .navbar .theme-toggle-btn,
body .navbar .menu-toggle {
  color: #14281e !important;
  background: #f1f4ef !important;
  border-color: #dbe3dd !important;
}
html[data-theme="dark"] body .navbar {
  background: #000000 !important;
  border-bottom: 1px solid #222222 !important;
}
html[data-theme="dark"] body.glass-home .navbar .club-title-white {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
html[data-theme="dark"] body .navbar .nav-links a,
html[data-theme="dark"] body .navbar .nav-links a span {
  color: #ffffff !important;
}
html[data-theme="dark"] body .navbar .theme-toggle-btn,
html[data-theme="dark"] body .navbar .menu-toggle {
  color: #ffffff !important;
  background: #111111 !important;
  border-color: #222222 !important;
}

/* Pure AMOLED black theme in dark mode (user order 2026-11-03).
   Page backgrounds go to true #000, surfaces to near-black #0d0d0d,
   so OLED pixels turn off instead of showing dark green/navy. */
html[data-theme="dark"] {
  --bg: #000000;
  --surface: #0d0d0d;
  --surface-solid: #0d0d0d;
  --surface-2: #111111;
  --surface-3: #111111;
  --surface-card: #0d0d0d;
  --nav-bg: #000000;
  --footer-bg: #000000;
  --hero-a: #000000;
  --hero-b: #000000;
  --brand: #000000;
  --brand-2: #0d0d0d;
  --fcb-canvas: #000000;
  --fcb-canvas-2: #0d0d0d;
  --fcb-surface: #111111;
  --fcb-surface-2: #111111;
}
html[data-theme="dark"] body,
html[data-theme="dark"] .tp-section,
html[data-theme="dark"] .tp-section-alt,
html[data-theme="dark"] main,
html[data-theme="dark"] .footer {
  background: #000000 !important;
}
html[data-theme="dark"] body.glass-home .hero-match-deck .hero-club-card,
html[data-theme="dark"] body.glass-home .hero-match-deck .hero-cup-card {
  background: #000000 !important;
  background-image: none !important;
}
html[data-theme="dark"] .board-container {
  --bar: #000000;
  --bar-line: #222222;
  --turf-a: #000000;
  --turf-b: #0a0a0a;
  --card: #111111;
  --card-line: #222222;
}
html[data-theme="dark"] .board-stage {
  background: #000000 !important;
}
/* Footer "Register yourself as a player" button. */
.footer-register-btn{display:inline-block;background:#f2c230;color:#0a1f15 !important;font-weight:800;padding:11px 20px;border-radius:999px;text-decoration:none}
.footer-register-btn:hover{background:#ffd94d}

/* Light mode, 2026-11-04 (user phone screenshot): hero match cards must
   actually look like light mode — white cards, dark text, soft shadow —
   instead of the solid dark green used in both modes before. Dark mode
   is untouched (still solid dark / AMOLED black above). */
html[data-theme="light"] body.glass-home .hero-match-deck .hero-club-card,
html[data-theme="light"] body.glass-home .hero-match-deck .hero-cup-card {
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 30px rgba(20, 40, 30, 0.12) !important;
  color: #14281e !important;
}
html[data-theme="light"] body.glass-home .hero-match-deck .tp-team span {
  color: #14281e !important;
  text-shadow: none !important;
}
html[data-theme="light"] body.glass-home .hero-match-deck .tp-featured-label,
html[data-theme="light"] body.glass-home .hero-match-deck .tp-featured-label-cup {
  color: #12402a !important;
}
html[data-theme="light"] body.glass-home .hero-match-deck .tp-vs,
html[data-theme="light"] body.glass-home .hero-match-deck .tp-vs span,
html[data-theme="light"] body.glass-home .hero-match-deck .tp-vs .tp-score {
  color: #154284 !important;
  text-shadow: none !important;
}
html[data-theme="light"] body.glass-home .hero-match-deck .tp-featured-foot span {
  color: #475569 !important;
}
html[data-theme="light"] body.glass-home .hero-match-deck .tp-featured-foot span:last-child {
  color: #64748b !important;
}
html[data-theme="light"] body.glass-home .hero-match-deck .tp-featured-foot span {
  text-shadow: none !important;
}
/* Register CTA banner: amsal-design.css forces every h2 dark with
   !important, which beat the section's inline white (that's why the
   banner heading stayed dark-on-dark in the screenshot even after the
   2026-11-04 inline fix). These selectors outrank it in both themes. */
body #register-cta h2,
html[data-theme="light"] body #register-cta h2,
html[data-theme="dark"] body #register-cta h2 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: clamp(22px, 5vw, 30px) !important;
  line-height: 1.2 !important;
  text-shadow: none !important;
}
body #register-cta p,
html[data-theme="light"] body #register-cta p,
html[data-theme="dark"] body #register-cta p {
  color: #d7e8d7 !important;
}
body #register-cta span,
html[data-theme="light"] body #register-cta span,
html[data-theme="dark"] body #register-cta span {
  color: #eef4ee !important;
}

/* Hero card revamp, 2026-11-04 (user: cards are almost invisible).
   Root cause: the cards were the same dark green as the dark hero
   behind them, so their edges disappeared. New rule for BOTH modes:
   a card must be a clearly different surface from the hero, with a
   gold top accent, a visible border and a real shadow. */
html[data-theme="light"] body.glass-home .hero-match-deck .hero-club-card,
html[data-theme="light"] body.glass-home .hero-match-deck .hero-cup-card {
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid #cbd5e1 !important;
  border-top: 4px solid #f2c230 !important;
  box-shadow: 0 14px 34px rgba(20, 40, 30, 0.22) !important;
  color: #14281e !important;
}
html[data-theme="dark"] body.glass-home .hero-match-deck .hero-club-card,
html[data-theme="dark"] body.glass-home .hero-match-deck .hero-cup-card {
  background: #1e2422 !important;
  background-image: linear-gradient(140deg, #242b29, #161c1a) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-top: 4px solid #f2c230 !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55) !important;
  color: #ffffff !important;
}
html[data-theme="dark"] body.glass-home .hero-match-deck .tp-team span {
  color: #ffffff !important;
  text-shadow: none !important;
}
html[data-theme="dark"] body.glass-home .hero-match-deck .tp-featured-label,
html[data-theme="dark"] body.glass-home .hero-match-deck .tp-featured-label-cup {
  color: #f2c230 !important;
}
html[data-theme="dark"] body.glass-home .hero-match-deck .tp-vs,
html[data-theme="dark"] body.glass-home .hero-match-deck .tp-vs span,
html[data-theme="dark"] body.glass-home .hero-match-deck .tp-vs .tp-score {
  color: #f2c230 !important;
  text-shadow: none !important;
}
html[data-theme="dark"] body.glass-home .hero-match-deck .tp-featured-foot span {
  color: #eef4ee !important;
}
html[data-theme="dark"] body.glass-home .hero-match-deck .tp-featured-foot span:last-child {
  color: #cdd9d0 !important;
}

/* Compact on phones: slightly smaller everywhere, tighter spacing. */
@media (max-width: 600px) {
  body.glass-home .hero-match-deck { gap: 10px !important; }
  body.glass-home .hero-match-deck .glass-card,
  body.glass-home .hero-match-deck .hero-club-card,
  body.glass-home .hero-match-deck .hero-cup-card {
    padding: 12px 14px !important;
    border-radius: 16px !important;
  }
  body.glass-home .hero-match-deck .tp-team img,
  body.glass-home .hero-match-deck .tp-team .team-initial {
    width: 32px !important;
    height: 32px !important;
    font-size: 15px !important;
    margin-bottom: 3px !important;
  }
  body.glass-home .hero-match-deck .tp-team span { font-size: 13px !important; }
  body.glass-home .hero-match-deck .tp-matchup { gap: 6px !important; padding: 4px 0 0 !important; }
  body.glass-home .hero-match-deck .tp-vs { min-width: 40px !important; }
  body.glass-home .hero-match-deck .tp-vs span { font-size: 12px !important; }
  body.glass-home .hero-match-deck .tp-vs .tp-score { font-size: 18px !important; }
  body.glass-home .hero-match-deck .tp-featured-label,
  body.glass-home .hero-match-deck .tp-featured-label-cup { font-size: 10px !important; margin-bottom: 6px !important; }
  body.glass-home .hero-match-deck .glass-pill { font-size: 10px !important; padding: 2px 8px !important; margin-bottom: 6px !important; }
  body.glass-home .hero-match-deck .tp-featured-foot { font-size: 11px !important; margin-top: 4px !important; }
}

/* Light mode, 2026-11-04 (user direction, supersedes the v6/v7 white
   cards): hero cards STAY dark green, but every bit of text on them
   is white or gold — the old light-mode rules in amsal-audit-fix.css
   turned team/label/VS/foot text dark navy on the dark card, which is
   why nothing was readable. These card-scoped selectors outrank those
   plain team/label rules, in both the club and cup cards. */
html[data-theme="light"] body.glass-home .hero-match-deck .hero-club-card,
html[data-theme="light"] body.glass-home .hero-match-deck .hero-cup-card {
  background: #0a1f15 !important;
  background-image: linear-gradient(140deg, #0e2a1c, #081712) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-top: 4px solid #f2c230 !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35) !important;
  color: #ffffff !important;
}
html[data-theme="light"] body.glass-home .hero-match-deck .hero-club-card .tp-team span,
html[data-theme="light"] body.glass-home .hero-match-deck .hero-cup-card .tp-team span {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
}
html[data-theme="light"] body.glass-home .hero-match-deck .hero-club-card .tp-featured-label,
html[data-theme="light"] body.glass-home .hero-match-deck .hero-cup-card .tp-featured-label,
html[data-theme="light"] body.glass-home .hero-match-deck .hero-club-card .tp-featured-label-cup,
html[data-theme="light"] body.glass-home .hero-match-deck .hero-cup-card .tp-featured-label-cup {
  color: #f2c230 !important;
  -webkit-text-fill-color: #f2c230 !important;
}
html[data-theme="light"] body.glass-home .hero-match-deck .hero-club-card .tp-vs,
html[data-theme="light"] body.glass-home .hero-match-deck .hero-cup-card .tp-vs,
html[data-theme="light"] body.glass-home .hero-match-deck .hero-club-card .tp-vs span,
html[data-theme="light"] body.glass-home .hero-match-deck .hero-cup-card .tp-vs span,
html[data-theme="light"] body.glass-home .hero-match-deck .hero-club-card .tp-vs .tp-score,
html[data-theme="light"] body.glass-home .hero-match-deck .hero-cup-card .tp-vs .tp-score {
  color: #f2c230 !important;
  -webkit-text-fill-color: #f2c230 !important;
  text-shadow: none !important;
}
html[data-theme="light"] body.glass-home .hero-match-deck .hero-club-card .tp-featured-foot span,
html[data-theme="light"] body.glass-home .hero-match-deck .hero-cup-card .tp-featured-foot span {
  color: #eef4ee !important;
  -webkit-text-fill-color: #eef4ee !important;
}
html[data-theme="light"] body.glass-home .hero-match-deck .hero-club-card .tp-featured-foot span:last-child,
html[data-theme="light"] body.glass-home .hero-match-deck .hero-cup-card .tp-featured-foot span:last-child {
  color: #cdd9d0 !important;
  -webkit-text-fill-color: #cdd9d0 !important;
}
/* Register green section, light mode: every word white except the
   gold Log in link and the gold button (unchanged, already readable). */
html[data-theme="light"] body #register-cta,
html[data-theme="light"] body #register-cta h2,
html[data-theme="light"] body #register-cta p,
html[data-theme="light"] body #register-cta span {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
html[data-theme="light"] body #register-cta p {
  color: #d7e8d7 !important;
  -webkit-text-fill-color: #d7e8d7 !important;
}
html[data-theme="light"] body #register-cta a[href="/login"] {
  color: #f2c230 !important;
  -webkit-text-fill-color: #f2c230 !important;
}

/* Hero cards 80% transparent, 2026-11-04 (user): only the card
   BACKGROUND goes translucent (alpha 0.20), so the hero photo shows
   through like glass. Text is NOT made transparent — team names,
   labels, VS and foot text stay full white/gold, and a backdrop blur
   keeps them readable over the photo. Applies in both modes. */
html[data-theme="light"] body.glass-home .hero-match-deck .hero-club-card,
html[data-theme="light"] body.glass-home .hero-match-deck .hero-cup-card,
html[data-theme="dark"] body.glass-home .hero-match-deck .hero-club-card,
html[data-theme="dark"] body.glass-home .hero-match-deck .hero-cup-card {
  background: rgba(10, 31, 21, 0.20) !important;
  background-image: none !important;
  -webkit-backdrop-filter: blur(14px) saturate(140%) !important;
  backdrop-filter: blur(14px) saturate(140%) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-top: 4px solid #f2c230 !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.30) !important;
}

/* Live timer in the centre, red with a pulsing dot (2026-11-04):
   the gold VS colour rules would otherwise paint the timer gold, so
   force .tp-live red here, in hero cards and in fixture rows, in
   both modes. .tp-live::before (club-design.css) is the red dot. */
html[data-theme="light"] body.glass-home .hero-match-deck .tp-vs .tp-live,
html[data-theme="dark"] body.glass-home .hero-match-deck .tp-vs .tp-live,
html[data-theme="light"] body.glass-home .glass-fixture .vs .tp-live,
html[data-theme="dark"] body.glass-home .glass-fixture .vs .tp-live {
  color: #ef4444 !important;
  -webkit-text-fill-color: #ef4444 !important;
  font-weight: 800 !important;
}
html[data-theme="light"] body.glass-home .hero-match-deck .tp-vs .tp-live .live-clock,
html[data-theme="dark"] body.glass-home .hero-match-deck .tp-vs .tp-live .live-clock,
html[data-theme="light"] body.glass-home .glass-fixture .vs .tp-live .live-clock,
html[data-theme="dark"] body.glass-home .glass-fixture .vs .tp-live .live-clock {
  color: #ef4444 !important;
  -webkit-text-fill-color: #ef4444 !important;
}

/* Hero cards, truly see-through (2026-11-04, user: v9 still looked
   solid on his phone): the v9 blur softened the photo behind the
   card into a flat dark wash, so it read as solid. Drop the blur and
   drop the dark green to 12% — the photo now shows through sharply.
   Team names keep a shadow so white text stays readable over it. */
html[data-theme="light"] body.glass-home .hero-match-deck .hero-club-card.tp-featured,
html[data-theme="light"] body.glass-home .hero-match-deck .hero-cup-card.tp-featured,
html[data-theme="dark"] body.glass-home .hero-match-deck .hero-club-card.tp-featured,
html[data-theme="dark"] body.glass-home .hero-match-deck .hero-cup-card.tp-featured {
  background: rgba(10, 31, 21, 0.12) !important;
  background-image: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  border-top: 4px solid #f2c230 !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.30) !important;
}
html[data-theme="light"] body.glass-home .hero-match-deck .tp-team span,
html[data-theme="dark"] body.glass-home .hero-match-deck .tp-team span {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75) !important;
}

/* Live half label (2026-11-04, user): the timer shows 1H/2H next to
   the clock in every place it appears. It sits outside .live-clock
   so the 1-second tick never overwrites it. */
.tp-live .live-half, .live-half {
  color: #ef4444 !important;
  -webkit-text-fill-color: #ef4444 !important;
  font-weight: 800 !important;
  margin-left: 4px;
}
