/* ===================================
   FOOT HOLICS — Main Stylesheet
   Liquid Glass (iOS 26) Design
   =================================== */

/* ═══════════════════════════════════════════════════════════
   LOCAL FONTS
   ─────────────────────────────────────────────────────────
   Clash Display     — hero h1/h2, site logo
   Plus Jakarta Sans — h3/h4, nav, buttons, card titles
   Space Grotesk     — eyebrow labels, badges, table heads
   Khand             — sport text: team names, match rows
   Satoshi           — body copy, descriptions, paragraphs
   Bebas Neue        — large display numbers only
   ═══════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Clash Display';
  src: url('../fonts/ClashDisplay-Variable.woff2') format('woff2');
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Clash Display';
  src: url('../fonts/ClashDisplay-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/PlusJakartaSans-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Khand';
  src: url('../fonts/Khand-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-Variable.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bebas Neue';
  src: url('../fonts/BebasNeue-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ═══════════════════════════════════════════════════════════
   DESIGN SYSTEM — Token Definitions
   Foot Holics v2 Design System
   ═══════════════════════════════════════════════════════════ */
:root {

  /* ── Surfaces ────────────────────────────────────────────── */
  --surface-bg:  #060f1e;                    /* page background — deeper navy */
  --surface-1:   #0c2038;                    /* raised panels */
  --surface-2:   rgba(255, 255, 255, 0.07);  /* glass surfaces */

  /* backwards-compat aliases (used throughout existing code) */
  --bg:    var(--surface-bg);
  --panel: var(--surface-1);
  --glass: var(--surface-2);

  /* ── Glass borders / highlights ──────────────────────────── */
  --glass-border:    rgba(255, 255, 255, 0.10);
  --glass-highlight: rgba(255, 255, 255, 0.18);

  /* ── Accent ──────────────────────────────────────────────── */
  --accent:        #D4AF37;
  --accent-2:      #7DE3E3;
  --accent-dim:    rgba(212, 175, 55, 0.10);
  --accent-border: rgba(212, 175, 55, 0.28);
  --accent-hover:  rgba(212, 175, 55, 0.50);

  /* ── Text ────────────────────────────────────────────────── */
  --text:     #F2F6FF;   /* primary — headings, body copy */
  --muted:    #A8B8CC;   /* secondary — captions, descriptions */
  --text-dim: #7A8FA8;   /* tertiary — timestamps, fine print */

  /* ── Semantic colors ─────────────────────────────────────── */
  --color-live:    #ef4444;
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-info:    #3b82f6;

  /* Theme Support (legacy) */
  --theme-bg:    var(--bg);
  --theme-panel: var(--panel);
  --theme-text:  var(--text);

  /* ── Radius ──────────────────────────────────────────────── */
  --radius-xs:   6px;
  --radius-sm:  12px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-full: 9999px;

  /* ── Shadows ─────────────────────────────────────────────── */
  --shadow-sm:  0 2px  8px rgba(1, 4, 16, 0.45);
  --shadow-md:  0 8px 24px rgba(1, 4, 16, 0.55);
  --shadow-lg:  0 12px 40px rgba(1, 4, 16, 0.65),
                inset 0 1px 0 rgba(255, 255, 255, 0.10),
                inset 0 -1px 0 rgba(0, 0, 0, 0.08);
  --shadow-xl:  0 20px 60px rgba(1, 4, 16, 0.75),
                inset 0 1px 0 rgba(255, 255, 255, 0.13),
                inset 0 -1px 0 rgba(0, 0, 0, 0.10);

  /* backwards-compat aliases */
  --card-shadow:       var(--shadow-lg);
  --card-shadow-hover: var(--shadow-xl);

  /* ── Spacing ─────────────────────────────────────────────── */
  --space-0-5: 4px;
  --space-1:   8px;
  --space-2:  16px;
  --space-3:  24px;
  --space-4:  32px;
  --space-5:  48px;
  --space-6:  64px;
  --space-7:  80px;
  --space-8:  96px;
  /* Fluid section gap — responsive vertical rhythm */
  --space-section: clamp(2.5rem, 5vw, 4rem);

  /* ── Layout ──────────────────────────────────────────────── */
  --container-max: 1280px;
  --container-pad: var(--space-2);   /* 16px default; 24px at ≤1024px via MQ */
  --header-h:      68px;             /* sticky header height */
  --sidebar-top:   100px;            /* sticky sidebar offset (header + buffer) */

  /* ── Typography: Families ────────────────────────────────── */
  --font-body:    'Satoshi', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Clash Display', 'SF Pro Display', 'Helvetica Neue', system-ui, sans-serif;
  --font-ui:      'Plus Jakarta Sans', 'Satoshi', system-ui, sans-serif;
  --font-label:   'Space Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-sport:   'Khand', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-display: 'Bebas Neue', 'Impact', 'Arial Narrow', sans-serif;

  /* ── Typography: Scale (mobile-first, 16px base) ────────── */
  --text-xs:   0.72rem;    /* ~11.5px — timestamps, badge labels */
  --text-sm:   0.82rem;    /* ~13px   — captions, metadata */
  --text-base: 1rem;       /*  16px   — body copy */
  --text-md:   1.125rem;   /*  18px   — lead / emphasis */
  --text-lg:   1.25rem;    /*  20px   — card titles */
  --text-xl:   1.5rem;     /*  24px   — section titles */
  --text-2xl:  1.875rem;   /*  30px   — page headings */
  --text-3xl:  2.25rem;    /*  36px   — hero sub-headings */
  --text-4xl:  3rem;       /*  48px   — hero titles */

  /* ── Typography: Line heights ────────────────────────────── */
  --leading-tight:   1.15;
  --leading-snug:    1.35;
  --leading-normal:  1.60;
  --leading-relaxed: 1.75;

  /* ── Typography: Weights ─────────────────────────────────── */
  --weight-normal:   400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* ── Transitions ─────────────────────────────────────────── */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* ── Z-index scale ───────────────────────────────────────── */
  --z-base:     1;
  --z-raised:   10;
  --z-dropdown: 100;
  --z-sticky:   1000;
  --z-overlay:  9000;
  --z-modal:    99999;
}

/* === Reset & Base === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1;
  /* Stops flex/grid children from pushing past the viewport width */
  overflow-x: clip;
  /* Ambient glow via pseudo-element below */
  isolation: isolate;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 10% 0%, rgba(212, 175, 55, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 70% 45% at 90% 100%, rgba(125, 227, 227, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse 100% 80% at 50% 50%, rgba(6, 15, 30, 1) 0%, rgba(6, 15, 30, 0) 100%);
}

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

a {
  color: var(--accent);
  text-decoration: none;
  /* explicit properties only — prevents outline from being transition-animated */
  transition: color var(--transition-base), opacity var(--transition-base);
}

a:hover {
  color: var(--accent-2);
}

/* === Typography === */
h1, h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

h3, h4, h5, h6 {
  font-family: var(--font-ui);
  font-weight: 600;
  line-height: var(--leading-snug);
  margin-bottom: var(--space-2);
  letter-spacing: -0.005em;
}

h1 {
  font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
}

h2 {
  font-size: clamp(var(--text-xl), 4vw, var(--text-3xl));
}

h3 {
  font-size: clamp(var(--text-lg), 3vw, var(--text-2xl));
}

h4 { font-size: clamp(var(--text-base), 2.5vw, var(--text-lg)); }
h5 { font-size: var(--text-base); }
h6 { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.06em; }

p {
  margin-bottom: var(--space-2);
  color: var(--muted);
}

/* === Layout Container === */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--space-2);
}

/* === Header & Navigation === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 12, 24, 0.82);
  backdrop-filter: blur(48px) saturate(200%);
  -webkit-backdrop-filter: blur(48px) saturate(200%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 32px rgba(0, 0, 0, 0.45);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
  padding: var(--space-1) 0;
  background: rgba(5, 12, 24, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  padding: var(--space-2) 0;
  gap: var(--space-2);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  transition: transform 0.3s ease;
  flex: none;
}

.logo:hover {
  transform: scale(1.04);
  color: var(--accent);
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25), 0 4px 12px rgba(212, 175, 55, 0.35);
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex: 1;
  margin: 0;
}

.primary-nav a {
  font-family: var(--font-ui);
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  padding: var(--space-1) 10px;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  position: relative;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--accent);
  background: rgba(212, 175, 55, 0.09);
}

.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.primary-nav a:hover::after {
  width: 80%;
}

/* World Cup nav link — bold weight only; colour follows standard active/hover rule */
.primary-nav .nav-wc-link {
  font-weight: var(--weight-semibold);
}

/* === CTA Buttons === */
.cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 10px 20px;
  border-radius: 24px;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #D4AF37 0%, #B8942E 60%, #7DE3E3 100%);
  color: #030c1a;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35), inset 0 1px 0 rgba(255,255,255,0.20);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.55), inset 0 1px 0 rgba(255,255,255,0.25);
}

.btn-secondary {
  background: rgba(212, 175, 55, 0.07);
  color: var(--accent);
  border: 1.5px solid rgba(212, 175, 55, 0.40);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--accent);
  color: #030c1a;
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.40);
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* === Mobile Menu === */
.mobile-menu-btn {
  display: none;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text);
  padding: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* Stays above the overlay (header z-index: 1000) */
  position: relative;
  z-index: 1001;
}

/* ── MOBILE NAV OVERLAY ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .primary-nav,
  .cta-group {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
    margin-left: auto;
  }

  /* Full-screen overlay panel for nav links */
  .primary-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* sits just below the sticky header (z-index: 1000) */
    z-index: 998;
    background: rgba(4, 10, 22, 0.96);
    backdrop-filter: blur(40px) saturate(160%);
    -webkit-backdrop-filter: blur(40px) saturate(160%);
    /* top padding clears the header; bottom padding clears the CTA bar */
    padding: 5rem var(--space-3) 7rem;
    gap: 4px;
    overflow-y: auto;
    align-items: stretch;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .primary-nav.mobile-open a {
    font-size: 1rem;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid var(--glass-border);
    text-align: left;
    color: var(--text);
  }

  .primary-nav.mobile-open a:last-child {
    border-bottom: none;
  }

  /* Suppress the desktop underline pseudo-element inside the overlay */
  .primary-nav.mobile-open a::after {
    display: none;
  }

  .primary-nav.mobile-open a:hover,
  .primary-nav.mobile-open a.active {
    background: var(--glass);
    color: var(--accent);
  }

  /* CTA buttons fixed at the bottom of the screen, above the overlay */
  .cta-group.mobile-open {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    flex-direction: row;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: rgba(6, 14, 28, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(40px) saturate(160%);
    -webkit-backdrop-filter: blur(40px) saturate(160%);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
  }

  .cta-group.mobile-open .btn {
    flex: 1;
    justify-content: center;
    text-align: center;
  }
}

/* ── Body-level Mobile Overlay ─────────────────────────────────────────────
   These elements are appended directly to <body> by main.js so position:fixed
   + z-index operate in the root stacking context — no parent stacking context
   can interfere.  Desktop: overlay is never opened (hamburger is hidden), but
   we also guard with a min-width rule for safety.
   ──────────────────────────────────────────────────────────────────────────── */

/* When menu is open, pin the header to the viewport top.
   position:sticky loses its screen position when body overflow:hidden is applied
   on mobile browsers — switching to fixed guarantees the header + ✕ button
   are always visible regardless of how far the user has scrolled. */
.site-header.menu-open {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9002;
}

#mob-nav-overlay,
#mob-cta-bar {
  display: none;
}

/* ── PREMIUM MOBILE / TABLET NAV DRAWER (≤ 1024 px) ────────────────────── */
@media (max-width: 1024px) {
  #mob-nav-overlay.is-open {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 9000;
    flex-direction: column;
    background: rgba(3, 7, 18, 0.97);
    backdrop-filter: blur(56px) saturate(180%);
    -webkit-backdrop-filter: blur(56px) saturate(180%);
    padding: 5.5rem 20px 8.5rem;
    gap: 10px;
    overflow-y: auto;
    align-items: stretch;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  /* ── Card items ── */
  .mob-nav-item {
    display: flex !important;
    align-items: center;
    gap: 16px;
    padding: 0 20px;
    height: 72px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  }

  .mob-nav-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0%, transparent 55%);
    pointer-events: none;
  }

  .mob-nav-item:hover {
    background: rgba(212, 175, 55, 0.10);
    border-color: rgba(212, 175, 55, 0.25);
    color: var(--accent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
  }

  .mob-nav-item.active {
    background: rgba(212, 175, 55, 0.11);
    border-color: rgba(212, 175, 55, 0.28);
    color: var(--accent);
  }

  .mob-nav-item.mob-nav-wc {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.07);
  }

  /* ── Icon box ── */
  .mob-nav-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.45);
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  }

  .mob-nav-item.active .mob-nav-icon-box,
  .mob-nav-item:hover .mob-nav-icon-box {
    background: rgba(212, 175, 55, 0.18);
    border-color: rgba(212, 175, 55, 0.32);
    color: var(--accent);
  }

  .mob-nav-item.mob-nav-wc .mob-nav-icon-box {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.10);
  }

  /* ── Label ── */
  .mob-nav-label {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.01em;
    line-height: 1;
  }

  /* ── Chevron ── */
  .mob-nav-chevron {
    font-size: 0.65rem;
    opacity: 0.28;
    transition: opacity 0.18s, transform 0.18s;
  }

  .mob-nav-item:hover .mob-nav-chevron,
  .mob-nav-item.active .mob-nav-chevron {
    opacity: 0.60;
    transform: translateX(3px);
  }

  /* ── CTA bar ── */
  #mob-cta-bar.is-open {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9001;
    flex-direction: row;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(3, 7, 18, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(40px) saturate(160%);
    -webkit-backdrop-filter: blur(40px) saturate(160%);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.40);
  }

  #mob-cta-bar .btn {
    flex: 1;
    justify-content: center;
    text-align: center;
    min-height: 44px;
  }
}

/* === Hero Section === */
.hero {
  position: relative;
  padding: var(--space-5) 0;
  overflow: visible;
  background: linear-gradient(160deg, rgba(8, 18, 38, 0.95) 0%, rgba(6, 15, 30, 1) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 30%, rgba(212, 175, 55, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 80%, rgba(125, 227, 227, 0.06) 0%, transparent 50%);
  pointer-events: none;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-tagline {
  font-size: 1.125rem;
  color: var(--accent);
  font-weight: var(--weight-semibold);
  letter-spacing: 2px;
  margin-bottom: var(--space-2);
  text-transform: uppercase;
}

@media (max-width: 480px) {
  .hero-tagline {
    font-size: var(--text-sm);
    letter-spacing: 0.06em;
  }
}

.hero-title {
  margin-bottom: var(--space-3);
  color: var(--text);
}

.hero-description {
  font-size: 1.125rem;
  margin-bottom: var(--space-4);
}

/* === Search Box === */
.search-box {
  max-width: 600px;
  margin: 0 auto var(--space-3);
  position: relative;
}

.search-input {
  width: 100%;
  padding: var(--space-2) var(--space-5) var(--space-2) var(--space-2);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  color: var(--text);
  font-size: 1rem;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  transition: all 0.28s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 4px 16px rgba(0,0,0,0.25);
}

.search-input:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.14), inset 0 1px 0 rgba(255,255,255,0.10);
  background: rgba(255, 255, 255, 0.09);
}

.search-input::placeholder {
  color: var(--muted);
}

.search-btn {
  position: absolute;
  right: var(--space-1);
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.search-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* 44px minimum touch target on mobile */
@media (max-width: 768px) {
  .search-btn {
    width: 44px;
    height: 44px;
  }
}

/* === Glass Card === */
.glass-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.50),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.8) 50%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.60),
    0 0 0 1px rgba(212, 175, 55, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08);
  border-color: rgba(212, 175, 55, 0.22);
}

.glass-card:hover::before {
  opacity: 1;
}

/* === Match Cards === */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.match-card {
  position: relative;
  overflow: hidden;
}

.match-poster {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
  filter: brightness(0.7);
  transition: all 0.3s ease;
}

.match-card:hover .match-poster {
  filter: brightness(1);
  transform: scale(1.05);
}

.match-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
  gap: var(--space-2);
}

.match-title {
  font-family: var(--font-ui);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.league-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 16px;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.league-badge.premier-league {
  background: #3d195b;
}

.league-badge.laliga {
  background: #ee8707;
}

.league-badge.serie-a {
  background: #024494;
}

.league-badge.bundesliga {
  background: #d20515;
}

.league-badge.champions-league {
  background: #00336a;
}

.league-badge.ligue-1 {
  background: #002395;
}

.league-badge.wc {
  background: #1a6b3c;
}

.league-badge.nationals {
  background: #00A651;
}

.match-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  font-size: 0.875rem;
  color: var(--muted);
}

.match-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.match-excerpt {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: var(--space-2);
}

/* Make entire card clickable */
.match-card {
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.match-card:hover {
  transform: translateY(-8px) scale(1.02);
}

/* Premium Clean White Glass Button */
.match-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.match-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%);
  border-radius: 16px;
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.match-link::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  pointer-events: none;
  border-radius: 50%;
}

.match-link:hover {
  gap: 12px;
  transform: translateY(-2px) scale(1.03);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.25);
}

.match-link:hover::before {
  opacity: 1;
}

.match-link:hover::after {
  width: 200%;
  height: 200%;
}

.match-link:active {
  transform: translateY(0) scale(0.98);
}

/* === Live Badge === */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #dc2626;
  color: white;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  animation: pulse 2s ease-in-out infinite;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(220, 38, 38, 0);
  }
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* === Sidebar === */
.sidebar {
  background: linear-gradient(145deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  position: sticky;
  top: var(--sidebar-top);
  box-shadow: 0 8px 32px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,255,255,0.12);
}

.sidebar-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: var(--space-1);
}

.sidebar-list {
  list-style: none;
}

.sidebar-list li {
  margin-bottom: var(--space-1);
}

.sidebar-list a {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1);
  color: var(--muted);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.sidebar-list a:hover,
.sidebar-list a.active {
  color: var(--accent);
  background: var(--glass);
  transform: translateX(4px);
}

/* === Footer === */
.site-footer {
  margin-top: var(--space-5);
  padding: var(--space-4) 0 var(--space-2);
  background: rgba(4, 10, 22, 0.95);
  border-top: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(212,175,55,0.4) 50%, transparent 100%);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.footer-section h4 {
  color: var(--accent);
  margin-bottom: var(--space-2);
  font-size: 1rem;
}

.footer-section p,
.footer-section a {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-1);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-3);
  border-top: 1px solid var(--glass-border);
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-credits {
  margin-top: var(--space-2);
  color: var(--muted);
}

.footer-credits a {
  color: var(--accent);
}

/* === Disclaimer Box === */
.disclaimer {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  margin: var(--space-4) 0;
}

.disclaimer-title {
  color: #fca5a5;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.disclaimer p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* === Breadcrumbs === */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
  font-size: 0.875rem;
  color: var(--muted);
  flex-wrap: wrap;
}

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

.breadcrumbs a:hover {
  color: var(--accent);
}

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

/* === Pagination === */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  margin: var(--space-4) 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-2);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: var(--text);
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
}

.pagination .active {
  background: var(--accent);
  color: var(--bg);
}

/* === Event Detail Page === */
.event-hero {
  position: relative;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.event-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) brightness(0.4);
}

.event-hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-4);
  background: linear-gradient(to top, rgba(7, 20, 40, 0.9) 0%, transparent 100%);
}

.event-title {
  font-size: 2.5rem;
  margin-bottom: var(--space-2);
}

.event-meta-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* === Teams Block === */
.teams-block {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: var(--space-4);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
  backdrop-filter: blur(6px);
}

.team {
  text-align: center;
}

.team-crest {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-2);
  background: var(--glass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.team-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text);
}

.vs {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 700;
}

/* === Broadcast Table === */
.broadcast-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-4);
}

.broadcast-table th,
.broadcast-table td {
  padding: var(--space-2);
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.broadcast-table th {
  background: var(--glass);
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.broadcast-table td {
  color: var(--muted);
}

.broadcast-table tr:hover {
  background: var(--glass);
}

/* === Stream Links === */
.stream-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.stream-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stream-link-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transition: left 0.6s ease;
}

.stream-link-card:hover::before {
  left: 100%;
}

.stream-link-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.stream-link-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.stream-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.quality-badge,
.lang-badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.quality-badge.hd {
  background: #10b981;
  color: white;
}

.quality-badge.sd {
  background: #6b7280;
  color: white;
}

.lang-badge {
  background: var(--accent-2);
  color: var(--bg);
}

/* === Player Page === */
.player-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--space-3);
}

.player-header {
  text-align: center;
  margin-bottom: var(--space-3);
}

.player-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: visible; /* Changed from hidden to visible */
  margin-bottom: var(--space-3);
  box-shadow: var(--card-shadow);
}

.player-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: auto; /* Ensure iframe is interactive */
  /* Add slight padding to prevent covering controls */
  transform: scale(0.98);
  transform-origin: center;
}

.player-alert {
  background: rgba(234, 179, 8, 0.2);
  border: 1px solid rgba(234, 179, 8, 0.5);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  text-align: center;
  margin-bottom: var(--space-3);
  color: #fde047;
}

.alternate-links {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
}

/* === Utility Classes === */
.text-center {
  text-align: center;
}

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

.text-accent {
  color: var(--accent);
}

.mb-2 {
  margin-bottom: var(--space-2);
}

.mb-3 {
  margin-bottom: var(--space-3);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mt-4 {
  margin-top: var(--space-4);
}

/* === Animations === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* === Accessibility === */

/* Skip to main content — visible only on keyboard focus */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: var(--space-1) var(--space-2);
  background: var(--accent);
  color: var(--bg);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  z-index: var(--z-modal);
  border-radius: 0 0 var(--radius-xs) 0;
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus ring — explicit outline only, no transition animation */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  /* Prevent transition-all on parent elements from animating the focus ring */
  transition: outline-offset var(--transition-fast);
}

/* === Responsive Design === */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--space-3);
  }

  .matches-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* ── Logo ── */
  .logo {
    font-size: 1.375rem;
  }
  .logo-icon {
    width: 30px;
    height: 30px;
  }

  .hero {
    padding: var(--space-4) 0;
  }

  .event-hero {
    height: 300px;
  }

  .event-title {
    font-size: 1.75rem;
  }

  .teams-block {
    flex-direction: column;
    gap: var(--space-3);
  }

  .vs {
    transform: none;
    font-size: 1.25rem;
    margin: var(--space-2) 0;
  }

  .broadcast-table {
    font-size: 0.875rem;
  }

  .broadcast-table th,
  .broadcast-table td {
    padding: var(--space-1);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }

  /* About blurb spans the full width on tablet */
  .footer-section:first-child {
    grid-column: 1 / -1;
  }

  /* ── Hero CTA: stack buttons on tablet and below ── */
  .hero-content .cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
  }
  .hero-content .cta-group .btn {
    justify-content: center;
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .matches-grid {
    grid-template-columns: 1fr;
  }

  .stream-links {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   TELEGRAM POPUP MODAL
   =================================== */

.telegram-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 20, 40, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.telegram-popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.telegram-popup {
  position: relative;
  max-width: 400px;
  width: 100%;
  background: linear-gradient(135deg,
              rgba(15, 42, 68, 0.95) 0%,
              rgba(15, 42, 68, 0.85) 100%);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-radius: 24px;
  padding: var(--space-3);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px var(--glass-border),
    inset 0 1px 0 0 var(--glass-highlight);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.telegram-popup-overlay.show .telegram-popup {
  transform: scale(1) translateY(0);
}

.telegram-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  font-size: 18px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.telegram-popup-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg) scale(1.1);
}

.telegram-popup-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-2);
  background: linear-gradient(135deg, #229ED9 0%, #1E88E5 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 10px 30px rgba(34, 158, 217, 0.4);
  animation: popupIconFloat 3s ease-in-out infinite;
}

@keyframes popupIconFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.telegram-popup-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text);
  text-align: center;
  margin-bottom: var(--space-1);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.telegram-popup-description {
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: var(--space-2);
}

.telegram-popup-benefits {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: var(--space-2);
  margin-bottom: var(--space-2);
}

.telegram-popup-benefits ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.telegram-popup-benefits li {
  color: var(--text);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.85rem;
}

.telegram-popup-benefits li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(125, 227, 227, 0.2);
  border-radius: 50%;
  color: var(--accent-2);
  font-weight: bold;
  flex-shrink: 0;
  font-size: 12px;
}

.telegram-popup-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.telegram-popup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 12px 24px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.telegram-popup-btn-primary {
  background: linear-gradient(135deg, #229ED9 0%, #1E88E5 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(34, 158, 217, 0.4);
}

.telegram-popup-btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(34, 158, 217, 0.6);
}

.telegram-popup-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.telegram-popup-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.telegram-icon-svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Enhanced Liquid Glass Effects — Premium Multi-Layer Glass */

.glass-card,
.match-card,
.sidebar,
.player-container,
.player-alert {
  background: linear-gradient(145deg,
              rgba(255, 255, 255, 0.07) 0%,
              rgba(255, 255, 255, 0.03) 100%);
  backdrop-filter: blur(32px) saturate(170%);
  -webkit-backdrop-filter: blur(32px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.50),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.match-card:hover {
  background: linear-gradient(145deg,
              rgba(255, 255, 255, 0.10) 0%,
              rgba(255, 255, 255, 0.05) 100%);
  border-color: rgba(212, 175, 55, 0.25);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.60),
    0 0 0 1px rgba(212, 175, 55, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

/* Header glass override (already set above, but kept for specificity) */
.site-header {
  backdrop-filter: blur(48px) saturate(200%);
  -webkit-backdrop-filter: blur(48px) saturate(200%);
}

@media (max-width: 768px) {
  .telegram-popup {
    padding: var(--space-2);
    border-radius: 20px;
    max-width: 90%;
  }

  .telegram-popup-title {
    font-size: 1.25rem;
  }

  .telegram-popup-icon {
    width: 50px;
    height: 50px;
    font-size: 26px;
  }

  .telegram-popup-description {
    font-size: 0.85rem;
  }

  .telegram-popup-benefits li {
    font-size: 0.8rem;
  }

  .telegram-popup-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* ===================================
   COOKIE CONSENT BANNER
   =================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: rgba(7, 20, 40, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--glass-border);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.4);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-text {
  flex: 1;
  min-width: 220px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.cookie-banner-text strong {
  color: var(--text);
  font-weight: 600;
}

.cookie-banner-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-btn-accept {
  padding: 0.6rem 1.4rem;
  background: var(--accent);
  color: #071428;
  border: none;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}

.cookie-btn-accept:hover {
  opacity: 0.9;
  transform: scale(1.03);
}

.cookie-btn-decline {
  padding: 0.6rem 1.2rem;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.cookie-btn-decline:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.3);
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .cookie-banner-actions {
    width: 100%;
  }
  .cookie-btn-accept,
  .cookie-btn-decline {
    flex: 1;
    text-align: center;
  }
}

/* ===================================
   SEARCH DROPDOWN
   =================================== */

.search-box {
  position: relative;
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(10, 24, 48, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  z-index: 9999;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  max-height: 420px;
  overflow-y: auto;
  display: none;
  color: #F5F7FA;
}

.search-results-dropdown.open {
  display: block;
  animation: fadeInUp 0.2s ease-out;
}

.search-result-group-label {
  padding: 0.6rem 1rem 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border-top: 1px solid var(--glass-border);
}

.search-result-group-label:first-child {
  border-top: none;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.7rem 1rem;
  text-decoration: none;
  color: #F5F7FA;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.search-result-item:hover,
.search-result-item.focused {
  background: var(--glass);
}

.search-result-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--glass);
}

.search-result-thumb-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #F5F7FA;
  margin-bottom: 2px;
}

.search-result-meta {
  font-size: 0.75rem;
  color: var(--muted);
}

.search-result-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(212,175,55,0.15);
  color: var(--accent);
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.search-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

.search-loading {
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

/* scrollbar in dropdown */
.search-results-dropdown::-webkit-scrollbar { width: 4px; }
.search-results-dropdown::-webkit-scrollbar-track { background: transparent; }
.search-results-dropdown::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 4px; }

/* ===================================
   BACKGROUND GRADIENTS (static — animated version removed for perf)
   =================================== */

body {
  background: #060f1e;
}

/* @keyframes gradientShift retained for potential opt-in use */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

.hero {
  background: transparent; /* ambient gradient comes from body::before */
  position: relative;
  overflow: visible;
}

/* ===================================
   DARK / LIGHT THEME TOGGLE
   =================================== */

/* ═══════════════════════════════════════════════════════════════════════════
   PREMIUM LIGHT MODE — Complete independent design system
   Reference: Apple, Linear, Stripe, Framer, Vercel
   Brand:     Gold accent — #B8962E (richer saturation on light surfaces)
   Base:      Warm off-white #F5F3EF with tonal elevation layers
   Shadows:   Warm-tinted, not cold grey lifted from dark mode
   Glass:     Translucent white with strong inner top highlights
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Token Overrides ────────────────────────────────────────────────────── */
[data-theme="light"] {
  /* Surfaces */
  --bg:        #F5F3EF;
  --panel:     #FFFFFF;
  --glass:     rgba(255,255,255,0.78);
  --surface-1: #FFFFFF;
  --surface-2: rgba(0,0,0,0.03);

  /* Glass edges */
  --glass-border:    rgba(0,0,0,0.07);
  --glass-highlight: rgba(255,255,255,0.96);

  /* Brand accent — richer gold for light backgrounds (contrast ≥ 4.5:1) */
  --accent:        #B8962E;
  --accent-2:      #8B6914;
  --accent-dim:    rgba(184,150,46,0.10);
  --accent-border: rgba(184,150,46,0.25);
  --accent-hover:  rgba(184,150,46,0.45);

  /* Typography — warm near-black, not cold slate */
  --text:     #0C0C0C;
  --muted:    #6B6868;
  --text-dim: #9A9898;

  /* Elevation shadows — warm-tinted (independent from dark mode) */
  --shadow-sm: 0 2px  8px rgba(15,10,5,0.08), 0 1px 2px rgba(15,10,5,0.04);
  --shadow-md: 0 4px 16px rgba(15,10,5,0.10), 0 2px 4px rgba(15,10,5,0.05);
  --shadow-lg: 0 8px 32px rgba(15,10,5,0.12), 0 4px 8px rgba(15,10,5,0.06),
               inset 0 1px 0 rgba(255,255,255,0.95);
  --shadow-xl: 0 16px 48px rgba(15,10,5,0.14), 0 8px 16px rgba(15,10,5,0.07),
               inset 0 1px 0 rgba(255,255,255,0.95);
  --card-shadow:       var(--shadow-md);
  --card-shadow-hover: var(--shadow-lg);
}

/* ── Page Background — warm editorial with brand halo ───────────────────── */
[data-theme="light"] body {
  background-color: #F5F3EF;
  /* Subtle gold ambient gradient — brand presence without being distracting */
  background-image:
    radial-gradient(ellipse 160% 50% at 50% -5%, rgba(212,175,55,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 70%  50% at 95% 95%, rgba(212,175,55,0.04) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Suppress dark-mode ambient glow pseudo-element */
[data-theme="light"] body::before { display: none; }

/* ── Header — premium frosted warm-white glass ──────────────────────────── */
[data-theme="light"] .site-header {
  background: rgba(249,248,245,0.92);
  backdrop-filter: blur(48px) saturate(200%) brightness(1.02);
  -webkit-backdrop-filter: blur(48px) saturate(200%) brightness(1.02);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.80),
    0 4px 20px rgba(15,10,5,0.09),
    0 1px 3px rgba(15,10,5,0.04);
}

[data-theme="light"] .site-header.scrolled {
  background: rgba(249,248,245,0.97);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.80),
    0 6px 28px rgba(15,10,5,0.12),
    0 2px 4px rgba(15,10,5,0.05);
}

/* ── Desktop Navigation ──────────────────────────────────────────────────── */
[data-theme="light"] .primary-nav a {
  color: #2A2A2A;
}

[data-theme="light"] .primary-nav a:hover,
[data-theme="light"] .primary-nav a.active {
  color: #B8962E;
  background: rgba(184,150,46,0.09);
}

[data-theme="light"] .primary-nav a::after { background: #B8962E; }

/* ── CTA Buttons — gold brand ───────────────────────────────────────────── */
[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #C9A227 0%, #B08020 100%);
  color: #FFFFFF;
  border: 1px solid rgba(160,115,15,0.28);
  box-shadow: 0 3px 12px rgba(176,128,32,0.32), 0 1px 2px rgba(15,10,5,0.08);
}

[data-theme="light"] .btn-primary:hover {
  background: linear-gradient(135deg, #D4AF37 0%, #C9A227 100%);
  box-shadow: 0 5px 20px rgba(176,128,32,0.42), 0 2px 4px rgba(15,10,5,0.10);
}

[data-theme="light"] .btn-secondary {
  background: transparent;
  border: 1.5px solid rgba(0,0,0,0.18);
  color: #0C0C0C;
}

[data-theme="light"] .btn-secondary:hover {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.28);
}

/* ── Glass Cards + Elevated Surfaces ────────────────────────────────────── */
[data-theme="light"] .glass-card,
[data-theme="light"] .match-card,
[data-theme="light"] .player-container,
[data-theme="light"] .player-alert {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.90);
  box-shadow:
    0 4px 16px rgba(15,10,5,0.09),
    0 1px 3px rgba(15,10,5,0.05),
    inset 0 1px 0 rgba(255,255,255,1);
}

[data-theme="light"] .glass-card:hover,
[data-theme="light"] .match-card:hover {
  border-color: rgba(184,150,46,0.22);
  box-shadow:
    0 8px 28px rgba(15,10,5,0.12),
    0 2px 6px rgba(15,10,5,0.06),
    inset 0 1px 0 rgba(255,255,255,1);
}

/* ── Match Stream Link — gold brand ─────────────────────────────────────── */
[data-theme="light"] .match-link {
  background: rgba(184,150,46,0.09);
  border-color: rgba(184,150,46,0.25);
  color: #8B6914;
}

[data-theme="light"] .match-link:hover {
  background: rgba(184,150,46,0.17);
  border-color: rgba(184,150,46,0.42);
  color: #6B4D08;
}

/* ── Hero + Page Hero ────────────────────────────────────────────────────── */
[data-theme="light"] .hero        { background: transparent; }
[data-theme="light"] .page-hero   { background: transparent; }
[data-theme="light"] .page-hero-title { color: #0C0C0C; }
[data-theme="light"] .page-hero-sub   { color: #6B6868; }

/* ── Breadcrumbs ─────────────────────────────────────────────────────────── */
[data-theme="light"] .breadcrumbs a         { color: #6B6868; }
[data-theme="light"] .breadcrumbs a:hover   { color: #B8962E; }
[data-theme="light"] .breadcrumb-separator  { color: #9A9898; }

/* ── League Badges ───────────────────────────────────────────────────────── */
[data-theme="light"] .league-badge { color: #FFFFFF; font-weight: 600; }

/* ── Tab Nav ─────────────────────────────────────────────────────────────── */
[data-theme="light"] .tab-nav {
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.08);
}

[data-theme="light"] .tab-btn {
  color: #6B6868;
  background: transparent;
}

[data-theme="light"] .tab-btn:hover {
  background: rgba(0,0,0,0.05);
  color: #0C0C0C;
}

[data-theme="light"] .tab-btn.active {
  background: #FFFFFF;
  color: #8B6914;
  border: 1.5px solid rgba(184,150,46,0.28);
  box-shadow: 0 2px 8px rgba(15,10,5,0.09), 0 1px 2px rgba(15,10,5,0.04);
}

/* ── Fixture Cards ───────────────────────────────────────────────────────── */
[data-theme="light"] .fixture-card {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 8px rgba(15,10,5,0.07), 0 1px 2px rgba(15,10,5,0.03);
}

[data-theme="light"] .fixture-card:hover {
  border-color: rgba(184,150,46,0.28);
  box-shadow: 0 6px 20px rgba(15,10,5,0.11), 0 2px 4px rgba(15,10,5,0.05);
  background: #FFFFFF;
}

[data-theme="light"] .fixtures-day-header {
  color: #0C0C0C;
  border-bottom-color: rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.03);
}

[data-theme="light"] .fixture-team-name { color: #1A1A1A; }
[data-theme="light"] .fixture-time      { color: #B8962E; }
[data-theme="light"] .fixture-score     { color: #0C0C0C; }
[data-theme="light"] .fixture-status    { color: #6B6868; }

[data-theme="light"] .fixture-league-tag {
  background: rgba(0,0,0,0.06);
  color: #3A3A3C;
}

/* ── Standings Table ─────────────────────────────────────────────────────── */
[data-theme="light"] .standings-table-wrapper,
[data-theme="light"] .standings-wrapper {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 12px rgba(15,10,5,0.08);
  border-radius: var(--radius-md);
}

[data-theme="light"] .standings-table th {
  background: #F0EDE7;
  color: #0C0C0C;
  border-bottom: 2px solid rgba(0,0,0,0.10);
}

[data-theme="light"] .standings-table td {
  color: #1A1A1A;
  border-bottom-color: rgba(0,0,0,0.05);
}

[data-theme="light"] .standings-table tr:hover td {
  background: rgba(184,150,46,0.05);
}

[data-theme="light"] .standings-table .highlight td {
  background: rgba(184,150,46,0.08);
}

/* ── News / Article Cards ────────────────────────────────────────────────── */
[data-theme="light"] .news-card,
[data-theme="light"] .article-card,
[data-theme="light"] .rel-card {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 10px rgba(15,10,5,0.07), 0 1px 2px rgba(15,10,5,0.03);
}

[data-theme="light"] .news-card:hover,
[data-theme="light"] .article-card:hover,
[data-theme="light"] .rel-card:hover {
  border-color: rgba(0,0,0,0.12);
  box-shadow: 0 8px 28px rgba(15,10,5,0.12), 0 2px 6px rgba(15,10,5,0.05);
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
[data-theme="light"] .sidebar {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.08) !important;
  box-shadow: 0 2px 12px rgba(15,10,5,0.07);
}

[data-theme="light"] .sidebar-title {
  color: #0C0C0C;
  border-bottom-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .sidebar-list a { color: #3A3A3C; }

[data-theme="light"] .sidebar-list a:hover,
[data-theme="light"] .sidebar-list a.active {
  color: #B8962E;
  background: rgba(184,150,46,0.07);
}

/* ── Theme Toggle ────────────────────────────────────────────────────────── */
[data-theme="light"] .theme-toggle {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 4px 16px rgba(15,10,5,0.12), 0 1px 3px rgba(15,10,5,0.06);
  color: #B8962E;
}

[data-theme="light"] .theme-toggle:hover {
  box-shadow: 0 8px 28px rgba(184,150,46,0.30), 0 2px 6px rgba(15,10,5,0.08);
}

/* ── Scrollbars ──────────────────────────────────────────────────────────── */
[data-theme="light"] ::-webkit-scrollbar-track { background: #F5F3EF; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.18); border-radius: 99px; }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.30); }

/* ── Search — gold brand focus ───────────────────────────────────────────── */
[data-theme="light"] .search-input {
  background: rgba(255,255,255,0.90);
  border-color: rgba(0,0,0,0.14);
  color: #0C0C0C;
  box-shadow: 0 2px 8px rgba(15,10,5,0.06);
}

[data-theme="light"] .search-input::placeholder { color: #9A9898; }

[data-theme="light"] .search-input:focus {
  border-color: #B8962E;
  box-shadow: 0 0 0 3px rgba(184,150,46,0.18), 0 2px 8px rgba(15,10,5,0.06);
  background: #FFFFFF;
}

[data-theme="light"] .search-btn              { background: #B8962E; }
[data-theme="light"] .search-btn:hover        { background: #C9A227; }

[data-theme="light"] .search-results-dropdown {
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 16px 48px rgba(15,10,5,0.15), 0 4px 12px rgba(15,10,5,0.08);
}

[data-theme="light"] .search-result-group-label {
  color: #B8962E;
  border-top-color: rgba(0,0,0,0.06);
}

[data-theme="light"] .search-result-item { color: #0C0C0C; }

[data-theme="light"] .search-result-item:hover,
[data-theme="light"] .search-result-item.focused { background: rgba(184,150,46,0.07); }

[data-theme="light"] .search-result-thumb-placeholder { background: rgba(184,150,46,0.10); }
[data-theme="light"] .search-result-title             { color: #0C0C0C; }
[data-theme="light"] .search-result-meta              { color: #6B6868; }

[data-theme="light"] .search-result-badge {
  background: rgba(184,150,46,0.12);
  color: #8B6914;
}

[data-theme="light"] .search-empty,
[data-theme="light"] .search-loading { color: #6B6868; }

[data-theme="light"] .search-results-dropdown::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.18);
}

.theme-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  color: var(--accent);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 12px 48px rgba(212, 175, 55, 0.4);
}

.theme-toggle:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .theme-toggle {
    bottom: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
}

/* ===================================
   BLUR TEXT EFFECTS (LiquidEther-inspired)
   =================================== */

.blur-text {
  position: relative;
  color: var(--text);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.blur-text::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  filter: blur(12px);
  opacity: 0.7;
  animation: blurPulse 3s ease-in-out infinite;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes blurPulse {
  0%, 100% {
    filter: blur(12px);
    opacity: 0.7;
  }
  50% {
    filter: blur(8px);
    opacity: 0.9;
  }
}

/* Hero title clean design */
.hero-title {
  position: relative;
}

/* ===================================
   THREE.JS CANVAS CONTAINER
   =================================== */

#three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45; /* slightly more visible against the deeper bg */
}

.hero,
main {
  position: relative;
  z-index: 1;
}

/* ===================================
   OTHERS LEAGUE BADGE
   =================================== */

.league-badge.others {
  background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* ===================================
   ENHANCED CARD INTERACTIONS
   =================================== */

.match-card {
  overflow: hidden;
}

.match-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle,
    rgba(212, 175, 55, 0.1) 0%,
    transparent 60%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.match-card:hover::before {
  opacity: 1;
  animation: cardGlowPulse 2s ease-in-out infinite;
}

@keyframes cardGlowPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* Prevent button from catching all clicks */
.match-link {
  pointer-events: none;
}

.match-link:hover {
  pointer-events: auto;
}

/* ===================================
   NEW CONTENT SECTIONS
   News · Standings · Fixtures · About
   =================================== */

/* === Page Hero (inner pages) === */
.page-hero {
  padding: var(--space-4) 0 var(--space-3);
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 70% 60% at 85% 50%, rgba(212, 175, 55, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 5% 50%, rgba(125, 227, 227, 0.04) 0%, transparent 55%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: var(--text);
  margin-bottom: 0.5rem;
}

.page-hero-sub {
  color: var(--muted);
  font-size: 1rem;
}

/* === Section Label === */
.section-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.section-label h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 0;
  color: var(--text);
}

.section-label .see-all {
  margin-left: auto;
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.section-label .see-all:hover {
  color: var(--accent-2);
}

/* === Tab Navigation === */
.tab-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 6px;
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09), 0 4px 16px rgba(0,0,0,0.25);
}

.tab-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  font-family: var(--font-body);
}

.tab-btn:hover {
  color: var(--text);
  background: var(--glass);
}

.tab-btn.active {
  background: var(--accent);
  color: #030c1a;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.40);
}

/* === News Grid === */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-3);
}

.news-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.10);
}

.news-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.28);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(212, 175, 55, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.14);
}

.news-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--panel);
  display: block;
}

.news-card-img-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--panel) 0%, var(--glass) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--muted);
}

.news-card-body {
  padding: var(--space-2);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-1);
}

.news-cat-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 2px 8px;
  border-radius: 20px;
}

.news-date {
  font-size: 0.75rem;
  color: var(--muted);
}

.news-card-title {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: var(--space-1);
}

.news-card-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-link {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

.news-card-link:hover {
  gap: 8px;
  color: var(--accent-2);
}

/* === News Feature (large top card) === */
.news-feature {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-3);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 280px;
  transition: all 0.3s ease;
}

.news-feature:hover {
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: var(--card-shadow-hover);
}

.news-feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-feature-body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-feature-cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: var(--space-1);
}

.news-feature-title {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: var(--text);
  line-height: 1.3;
  margin-bottom: var(--space-2);
}

.news-feature-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--space-3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 640px) {
  .news-feature {
    grid-template-columns: 1fr;
  }
  .news-feature-img {
    height: 200px;
  }
}

/* === Editorial Writers Section (news.html) === */
.ew-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.ew-hero {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: border-color 0.2s, transform 0.2s;
  background: var(--glass);
}

.ew-hero:hover {
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateY(-3px);
}

.ew-hero-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 340px;
}

.ew-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ew-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.4) 55%, rgba(0,0,0,0.08) 100%);
}

.ew-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.5rem 1.4rem;
}

.ew-hero-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.ew-hero-excerpt {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ew-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ew-side-card {
  display: flex;
  gap: 1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
  flex: 1;
}

.ew-side-card:hover {
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateY(-3px);
}

.ew-side-img-wrap {
  flex-shrink: 0;
  width: 130px;
  min-height: 120px;
  overflow: hidden;
  background: var(--panel);
  position: relative;
}

.ew-side-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

.ew-side-body {
  padding: 1rem 1rem 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  overflow: hidden;
}

.ew-side-title {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ew-side-excerpt {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.ew-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.ew-author {
  color: var(--accent);
  font-weight: 600;
}

.ew-dot {
  opacity: 0.5;
}

@media (max-width: 840px) {
  .ew-layout {
    grid-template-columns: 1fr;
  }
  .ew-hero-img-wrap {
    min-height: 260px;
  }
}

@media (max-width: 480px) {
  .ew-side-img-wrap {
    width: 100px;
  }
  .ew-hero-img-wrap {
    min-height: 220px;
  }
  .ew-hero-title {
    font-size: 1.05rem;
  }
}

/* === Standings Table === */
.standings-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09), 0 8px 32px rgba(0,0,0,0.35);
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.standings-table thead tr {
  background: rgba(212, 175, 55, 0.08);
  border-bottom: 2px solid var(--accent);
}

.standings-table th {
  padding: 12px 10px;
  color: var(--accent);
  font-weight: 700;
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

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

.standings-table td {
  padding: 10px;
  color: var(--muted);
  text-align: center;
  border-bottom: 1px solid var(--glass-border);
  white-space: nowrap;
}

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

.standings-table tr:last-child td {
  border-bottom: none;
}

.standings-table tr:hover td {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.st-pos {
  font-weight: 700;
  color: var(--text);
  width: 36px;
}

.st-pos.champions { color: #22c55e; }
.st-pos.europa { color: #f59e0b; }
.st-pos.relegation { color: #ef4444; }

.st-team-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
}

.st-team-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.st-team-name {
  font-family: var(--font-sport);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  font-size: 0.93rem;
}

.st-pts {
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
}

.st-gd.positive { color: #22c55e; }
.st-gd.negative { color: #ef4444; }

/* === Fixtures List === */
.fixtures-day {
  margin-bottom: var(--space-3);
}

.fixtures-day-header {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 0;
  margin-bottom: var(--space-1);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.fixture-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09);
}

.fixture-card:hover {
  border-color: rgba(212, 175, 55, 0.28);
  background: linear-gradient(145deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.04) 100%);
  transform: translateX(3px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.12);
}

.fixture-league-dot {
  width: 4px;
  height: 40px;
  border-radius: 4px;
  flex-shrink: 0;
}

.fixture-time {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text);
  min-width: 50px;
  text-align: center;
}

.fixture-teams {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fixture-team-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fixture-team-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.fixture-team-name {
  font-family: var(--font-sport);
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 0.93rem;
  color: var(--text);
}

.fixture-score {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  min-width: 40px;
  text-align: center;
}

.fixture-status {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
  min-width: 80px;
}

.fixture-status.live {
  color: #ef4444;
  font-weight: 700;
}

.fixture-league-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2px 8px;
  text-align: right;
  white-space: nowrap;
  display: none;
}

@media (min-width: 640px) {
  .fixture-league-tag { display: block; }
}

/* === Fixtures Page Layout === */
.fixtures-sidebar {
  position: sticky;
  top: 100px;
}

.fixtures-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .fixtures-layout {
    grid-template-columns: 1fr;
  }
  .fixtures-layout > section {
    min-width: 0;
  }
  .fixtures-layout .sidebar {
    display: none;
  }
}

/* === World Cup Fixtures Banner === */
.wc-fixtures-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  margin: 1.25rem 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212,175,55,0.12) 0%, rgba(212,175,55,0.04) 100%);
  border: 1px solid rgba(212,175,55,0.30);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.wc-fixtures-banner:hover {
  background: linear-gradient(135deg, rgba(212,175,55,0.20) 0%, rgba(212,175,55,0.08) 100%);
  border-color: rgba(212,175,55,0.50);
  transform: translateY(-1px);
}

.wc-banner-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}

.wc-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wc-banner-text strong {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

.wc-banner-text span {
  font-size: 0.83rem;
  color: var(--muted);
}

.wc-banner-cta {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(212,175,55,0.15);
  border: 1px solid rgba(212,175,55,0.35);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-ui);
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.wc-fixtures-banner:hover .wc-banner-cta {
  background: rgba(212,175,55,0.28);
  border-color: rgba(212,175,55,0.60);
}

[data-theme="light"] .wc-fixtures-banner {
  background: linear-gradient(135deg, rgba(184,150,46,0.09) 0%, rgba(184,150,46,0.03) 100%);
  border-color: rgba(184,150,46,0.25);
  box-shadow: 0 2px 10px rgba(15,10,5,0.07);
}

[data-theme="light"] .wc-fixtures-banner:hover {
  background: linear-gradient(135deg, rgba(184,150,46,0.16) 0%, rgba(184,150,46,0.07) 100%);
  border-color: rgba(184,150,46,0.40);
}

[data-theme="light"] .wc-banner-text strong { color: #8B6914; }

[data-theme="light"] .wc-banner-cta {
  background: rgba(184,150,46,0.12);
  border-color: rgba(184,150,46,0.28);
  color: #8B6914;
}

[data-theme="light"] .wc-fixtures-banner:hover .wc-banner-cta {
  background: rgba(184,150,46,0.22);
  border-color: rgba(184,150,46,0.48);
}

/* === Loading State === */
.content-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  color: var(--muted);
  gap: var(--space-2);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.content-error {
  padding: var(--space-4);
  text-align: center;
  color: var(--muted);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
}

/* === Mini Standings Widget (sidebar) === */
.mini-standings {
  margin-top: var(--space-3);
}

.mini-standings-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.8rem;
}

.mini-standings-row:last-child {
  border-bottom: none;
}

.mini-pos {
  font-weight: 700;
  color: var(--text);
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.mini-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.mini-team {
  flex: 1;
  color: var(--muted);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-pts {
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HOMEPAGE REDESIGN — Editorial layout
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Compact editorial hero ─────────────────────────────────────────────── */
.hero--compact {
  padding: 3rem 0 3.5rem;
}

@media (max-width: 768px) {
  .hero--compact {
    padding: 1.75rem 0 2rem;
  }
}

@media (max-width: 480px) {
  .hero--compact {
    padding: 1.25rem 0 1.5rem;
  }
}

.hero-editorial-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.75rem;
}

.hero-editorial-copy {
  max-width: 600px;
}

.hero-editorial-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin: 0.5rem 0 0;
  color: var(--text);
}

.hero-editorial-search {
  width: 100%;
  max-width: 540px;
}

/* ── Section common helpers ─────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  gap: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--text);
  margin: 0 0 0.25rem;
}

.section-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.see-all-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.85;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.see-all-link:hover { opacity: 1; }

.section-header--center {
  justify-content: center;
  text-align: center;
}

/* ── Section eyebrow (Latest pill + line) ───────────────────────────────── */
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.eyebrow-pill {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(212, 175, 55, 0.09);
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 100px;
  padding: 3px 11px;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(212,175,55,0.12);
}

.eyebrow-line {
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}

/* ── Featured Article Card ──────────────────────────────────────────────── */
.featured-section {
  padding: 3rem 0 0;
}

/* Reserve space before JS loads the article — prevents CLS */
#featuredArticle {
  min-height: 420px;
}

@media (max-width: 768px) {
  #featuredArticle {
    min-height: 360px;
  }
}

@media (max-width: 480px) {
  #featuredArticle {
    min-height: 300px;
  }
}

.featured-card-skeleton {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.featured-card-inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  text-decoration: none;
  min-height: 420px;
  transition: border-color 0.28s ease, box-shadow 0.28s ease;
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.featured-card-inner:hover {
  border-color: rgba(212, 175, 55, 0.38);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(212, 175, 55, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.featured-card-img {
  overflow: hidden;
  position: relative;
}

.featured-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.featured-card-inner:hover .featured-card-img img {
  transform: scale(1.04);
}

.featured-card-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--panel), var(--glass));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--muted);
}

.featured-card-body {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.featured-card-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 4px;
  padding: 3px 9px;
  align-self: flex-start;
}

.featured-card-title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  line-height: 1.3;
  color: var(--text);
  margin: 0;
}

.featured-card-excerpt {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  flex: 1;
}

.featured-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}

.featured-card-date {
  font-size: 0.78rem;
  color: var(--muted);
}

.featured-card-cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  transition: letter-spacing 0.2s;
}

.featured-card-inner:hover .featured-card-cta {
  letter-spacing: 0.06em;
}

@media (max-width: 768px) {
  .featured-card-inner {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .featured-card-img {
    height: auto;
    aspect-ratio: 16 / 9;  /* proportional across all mobile widths */
  }

  .featured-card-body {
    padding: 1.25rem 1.25rem 1.5rem;
    gap: 0.75rem;
  }

  .featured-card-excerpt {
    -webkit-line-clamp: 3;
  }
}

@media (max-width: 480px) {
  .featured-card-body {
    padding: 1rem 1rem 1.25rem;
  }
}

/* ── Latest Articles Section ────────────────────────────────────────────── */
.latest-section {
  padding: 3.5rem 0 0;
}

/* ── What We Cover ──────────────────────────────────────────────────────── */
.covers-section {
  margin-top: 4rem;
  padding: 4rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(212,175,55,0.025) 50%, transparent 100%);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}

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

.cover-item {
  background: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09), 0 4px 16px rgba(0,0,0,0.25);
}

.cover-item:hover {
  border-color: rgba(212, 175, 55, 0.32);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,255,255,0.12);
}

.cover-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  font-size: 1.3rem;
  color: var(--accent);
  transition: background 0.2s, border-color 0.2s;
}

.cover-item:hover .cover-icon-wrap {
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.4);
}

.cover-item h3 {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.cover-item p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 900px) {
  .covers-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  /* Keep 2-col — stacking 4 items vertically causes scroll fatigue */
  .covers-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .cover-item { padding: 1.25rem 1rem; }
  .cover-icon-wrap { width: 44px; height: 44px; font-size: 1.1rem; }
}

@media (max-width: 360px) {
  /* Very small screens: single column */
  .covers-grid { grid-template-columns: 1fr; }
  .cover-item { padding: 1.25rem 1.25rem; }
  .cover-icon-wrap { width: 48px; height: 48px; }
}

/* ── Explore by League ──────────────────────────────────────────────────── */
.leagues-section {
  padding: 3.5rem 0 0;
}

.leagues-section .section-header {
  margin-bottom: 1.25rem;
}

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

.league-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem 1rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09), 0 2px 12px rgba(0,0,0,0.25);
}

.league-card-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.league-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.league-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--lc-color, var(--accent));
  border-radius: 0;
}

.league-card:hover {
  border-color: rgba(212, 175, 55, 0.30);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,255,255,0.12);
}

.league-card-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.league-card-sub {
  font-size: 0.72rem;
  color: var(--muted);
}

@media (max-width: 700px) {
  .leagues-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  .leagues-grid { grid-template-columns: 1fr; }
}

/* ── Quick Tools ────────────────────────────────────────────────────────── */
.tools-section {
  padding: 3.5rem 0 4.5rem;
}

.tools-section .section-header {
  margin-bottom: 1.25rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 4px 18px rgba(0,0,0,0.28);
}

.tool-card:hover {
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.45), 0 0 0 1px rgba(212,175,55,0.15), inset 0 1px 0 rgba(255,255,255,0.13);
}

.tool-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.tool-card:hover .tool-icon-wrap {
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.4);
}

.tool-card-body { flex: 1; }

.tool-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.25rem;
}

.tool-card-body p {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}

.tool-arrow {
  font-size: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.tool-card:hover .tool-arrow { transform: translateX(4px); }

@media (max-width: 540px) {
  .tools-grid { grid-template-columns: 1fr; }
}

/* === Home News Widget === */
.home-news-section {
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.025) 50%, transparent 100%);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: var(--space-5) 0;
  margin: var(--space-4) 0;
}

.home-news-widget {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.home-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.home-news-grid .news-card-img,
.home-news-grid .news-card-img-placeholder {
  height: 165px;
}

@media (max-width: 900px) {
  .home-news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .home-news-grid { grid-template-columns: 1fr; }
}

/* === More Articles (Related) Section === */
.more-articles-section {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--glass-border);
}

.more-articles-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: var(--space-2);
}

.more-articles-title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  color: var(--text);
  margin: 0;
  position: relative;
  padding-bottom: 0.6rem;
}

.more-articles-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.more-articles-view-all {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.03em;
  white-space: nowrap;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.more-articles-view-all:hover { opacity: 1; }

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

@media (max-width: 900px) {
  .rel-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .rel-grid { grid-template-columns: 1fr; }
}

/* Individual card */
.rel-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.10);
}

.rel-card:hover {
  transform: translateY(-7px);
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(212, 175, 55, 0.22),
    inset 0 1px 0 rgba(255,255,255,0.14);
}

/* Coloured league-branded thumbnail */
.rel-card-thumb {
  position: relative;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.rel-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
}

.rel-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.rel-card:hover .rel-card-thumb img {
  transform: scale(1.05);
}

.rel-card-thumb-icon {
  font-size: 3rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

/* Content area */
.rel-card-body {
  padding: 1.1rem 1.2rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.rel-card-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 4px;
  padding: 2px 7px;
  align-self: flex-start;
  line-height: 1.6;
}

.rel-card-title {
  font-family: var(--font-ui);
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.rel-card-excerpt {
  font-size: 0.77rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.rel-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid var(--glass-border);
}

.rel-card-date {
  font-size: 0.72rem;
  color: var(--muted);
}

.rel-card-read {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: gap 0.18s;
}

.rel-card:hover .rel-card-read { gap: 6px; }

/* === About Page === */
.about-section {
  max-width: 900px;
  margin: var(--space-4) auto;
}

.about-hero-block {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  margin-bottom: var(--space-4);
  position: relative;
  overflow: hidden;
}

.about-hero-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.about-icon {
  font-size: 3rem;
  margin-bottom: var(--space-2);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.about-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 4px 20px rgba(0,0,0,0.30);
}

.about-card:hover {
  border-color: rgba(212, 175, 55, 0.28);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.13);
}

.about-card-icon {
  font-size: 1.75rem;
  margin-bottom: var(--space-1);
}

.about-card h3 {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: var(--space-1);
}

.about-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.leagues-coverage {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  margin-bottom: var(--space-4);
}

.leagues-coverage h2 {
  color: var(--text);
  margin-bottom: var(--space-3);
  font-size: 1.5rem;
}

.league-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.league-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--panel);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 500;
}

.league-pill img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* === Contact page === */
.contact-form {
  background: linear-gradient(145deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  box-shadow: 0 12px 48px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.11);
}

.form-group {
  margin-bottom: var(--space-3);
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  outline: none;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.20);
}

.form-input:focus,
.form-textarea:focus {
  border-color: rgba(212,175,55,0.55);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.12), inset 0 1px 4px rgba(0,0,0,0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--muted);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

/* === Live Score Widget === */
.live-score-widget {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
  backdrop-filter: blur(6px);
  text-align: center;
  transition: border-color 0.3s;
}

.live-score-widget.is-live {
  border-color: rgba(220, 38, 38, 0.5);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.1);
}

.live-score-widget.is-finished {
  border-color: rgba(34, 197, 94, 0.3);
}

.ls-status-bar {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ls-status-bar.live-status { color: #ef4444; }
.ls-status-bar.finished-status { color: #22c55e; }
.ls-status-bar.upcoming-status { color: var(--accent); }

.ls-scoreboard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.ls-team-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 80px;
}

.ls-team-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.ls-team-name {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  max-width: 100px;
  text-align: center;
}

.ls-score-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ls-score-display {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ls-score {
  font-size: 2.75rem;
  font-weight: 400;
  color: var(--text);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  line-height: 1;
  min-width: 44px;
  text-align: center;
}

.ls-score-sep {
  font-size: 1.5rem;
  color: var(--muted);
  font-weight: 300;
}

.ls-minute {
  font-size: 0.8rem;
  color: #ef4444;
  font-weight: 700;
}

.ls-countdown {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
  margin: 4px 0;
}

.ls-kickoff-time {
  font-size: 0.8rem;
  color: var(--muted);
}

.ls-events {
  margin-top: var(--space-2);
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: 0.78rem;
  color: var(--muted);
  text-align: left;
}

.ls-events-side {
  flex: 1;
}

.ls-events-side.away { text-align: right; }

.ls-goal-event {
  display: block;
  line-height: 1.6;
}

.ls-goal-event .scorer { font-weight: 600; color: var(--text); }
.ls-goal-event .minute { color: var(--accent); }

.ls-powered {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: var(--space-2);
  opacity: 0.6;
}

/* === Responsive tweaks for new sections === */
@media (max-width: 1024px) {
  /* Tab nav: 2-column grid, no horizontal scroll, buttons wrap cleanly */
  .tab-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    overflow: visible;
    flex-wrap: unset;
    padding: 2px 0;
  }
  .tab-btn {
    flex-shrink: unset;
    padding: 10px 8px;
    font-size: 0.78rem;
    text-align: center;
    justify-content: center;
    width: 100%;
  }

  .fixture-card {
    flex-wrap: wrap;
    gap: 8px;
  }
  .fixture-time {
    min-width: 40px;
  }
  .fixture-status {
    min-width: 60px;
    font-size: 0.7rem;
  }

  .standings-table th,
  .standings-table td {
    padding: 8px 6px;
    font-size: 0.8rem;
  }

  .news-feature {
    grid-template-columns: 1fr;
  }

  /* Page hero inner pages */
  .page-hero {
    padding: var(--space-3) 0 var(--space-2);
  }
  .page-hero-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
}

/* === Extra-small screens (320–400px) === */
@media (max-width: 400px) {
  .container {
    padding: 0 12px;
  }
  .logo {
    font-size: 1.2rem;
  }
  .logo-icon {
    width: 26px;
    height: 26px;
  }
  .btn {
    padding: 9px 14px;
    font-size: 0.82rem;
  }
  .tab-btn {
    padding: 7px 10px;
    font-size: 0.75rem;
  }
  .fixture-status {
    display: none; /* too cramped at 320px; time + score carry meaning */
  }
  .fixture-score {
    min-width: 30px;
    font-size: 0.95rem;
  }
  .fixture-team-name {
    font-size: 0.8rem;
  }
  /* Standings: hide GF/GA columns — scroll still available */
  .standings-table .st-hide-xs {
    display: none;
  }
  /* Hero search: right-padding accommodates 44px button */
  .search-input {
    padding-right: 54px;
  }
  /* Footer: single column on 320px */
  .footer-content {
    grid-template-columns: 1fr;
  }
  .footer-section:first-child {
    grid-column: auto;
  }
}

/* === World Cup countdown — tighten at very small widths === */
@media (max-width: 360px) {
  .wc-bc-num  { font-size: 1.1rem; }
  .wc-bc-unit { padding: 4px 7px; }
  .wc-bc-sep  { font-size: 1.1rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PHASE 4 — DESKTOP EXPERIENCE REBUILD
   min-width rules — these never affect mobile viewports
   Breakpoints: 769  | 1024 | 1280 | 1440 | 1600 | 1920
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 769px+: Hero becomes horizontal (copy left, search right) ─────────── */
@media (min-width: 769px) {
  .hero-editorial-bar {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: clamp(1.5rem, 3vw, 3rem);
    justify-content: space-between;
  }

  .hero-editorial-copy {
    flex: 1;
    min-width: 0;
  }

  /* Anchor search to the right; remove the mobile auto-centering margin */
  .hero-editorial-search {
    flex: 0 0 min(44%, 460px);
    margin: 0;
  }
}

/* ── 1024px+: Core desktop — spacing, sizing, rhythm ───────────────────── */
@media (min-width: 1024px) {
  /* Header: slightly more height, bigger logo */
  .header-inner { padding: 1.1rem 0; }
  .logo { font-size: 1.875rem; }
  .logo-icon { width: 38px; height: 38px; }

  /* Hero: taller, larger headline */
  .hero--compact { padding: 4rem 0 4.5rem; }
  .hero-editorial-title { font-size: clamp(2.1rem, 3vw, 2.8rem); }

  /* Featured article: taller, more generous body padding */
  #featuredArticle       { min-height: 480px; }
  .featured-card-inner   { min-height: 480px; }
  .featured-card-body    { padding: 3rem 2.5rem; }
  .featured-card-title   { font-size: clamp(1.5rem, 2vw, 2rem); }
  .featured-card-excerpt { font-size: 0.92rem; -webkit-line-clamp: 5; }

  /* Rel-cards: richer thumbnails */
  .rel-card-thumb  { height: 155px; }
  .rel-card-title  { font-size: 1rem; }

  /* Section headings */
  .section-title { font-size: 1.75rem; }
  .section-sub   { font-size: 0.875rem; }

  /* Section vertical rhythm */
  .featured-section { padding-top: 3.5rem; }
  .latest-section   { padding-top: 4.5rem; }
  .covers-section   { margin-top: 5rem; padding: 5rem 0; }
  .leagues-section  { padding-top: 4.5rem; }
  .tools-section    { padding: 4.5rem 0 6rem; }

  /* Tool cards: bigger icons, more padding */
  .tool-card       { padding: 1.75rem 2rem; }
  .tool-icon-wrap  { width: 56px; height: 56px; font-size: 1.4rem; }
  .tool-card-body h3 { font-size: 1.1rem; }

  /* League cards: slightly larger logos */
  .league-card-logo { width: 44px; height: 44px; }

  /* Cover items: larger icons on desktop */
  .cover-icon-wrap { width: 60px; height: 60px; font-size: 1.4rem; }
  .cover-item h3   { font-size: 1.05rem; }

  /* News cards: taller images at desktop */
  .news-card-img,
  .news-card-img-placeholder { height: 200px; }

  /* Home news widget thumbnails: proportionally taller */
  .home-news-grid .news-card-img,
  .home-news-grid .news-card-img-placeholder { height: 175px; }
}

/* ── 1280px+: Full-width enhancement ────────────────────────────────────── */
@media (min-width: 1280px) {
  /* Featured: editorial scale */
  #featuredArticle     { min-height: 520px; }
  .featured-card-inner { min-height: 520px; }

  /* Leagues: all 6 in a single row — horizontal league selector bar */
  .leagues-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
  }

  /* Cards become vertical (logo stacked above name) */
  .league-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 1.1rem 1rem 1.1rem 1.5rem;
  }

  .league-card-info { gap: 0.2rem; }
}

/* ── 1440px+: Wider container, proportionally larger cards ─────────────── */
@media (min-width: 1440px) {
  :root { --container-max: 1360px; }

  #featuredArticle     { min-height: 540px; }
  .featured-card-inner { min-height: 540px; }
  .featured-card-body  { padding: 3.5rem 3rem; }

  .rel-card-thumb  { height: 165px; }
  .league-card-logo { width: 48px; height: 48px; }
}

/* ── 1600px+: Ultra-wide — expand further, increase type scale ─────────── */
@media (min-width: 1600px) {
  :root { --container-max: 1480px; }

  .hero--compact         { padding: 5rem 0 5.5rem; }
  .hero-editorial-title  { font-size: 3.25rem; }

  #featuredArticle       { min-height: 580px; }
  .featured-card-inner   { min-height: 580px; }
  .featured-card-title   { font-size: 2.1rem; }
  .featured-card-body    { padding: 4rem 3rem; }

  .section-title { font-size: 2rem; }
  .rel-card-thumb { height: 175px; }
}

/* ── 1920px+: Maximum scale for 4K / large monitors ────────────────────── */
@media (min-width: 1920px) {
  :root { --container-max: 1680px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PHASE 5 — MOBILE BOTTOM NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════ */

#bottom-nav { display: none; }

@media (max-width: 1024px) {
  #bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 8999;
    background: rgba(4, 10, 22, 0.95);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 -1px 0 rgba(255,255,255,0.05), 0 -8px 32px rgba(0, 0, 0, 0.50);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 4px;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;
    min-height: 56px;
    transition: color var(--transition-fast);
    position: relative;
  }
  .bottom-nav-item:hover { color: var(--text); }
  .bottom-nav-item.active { color: var(--accent); }
  .bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    width: 60%;
    height: 2px;
    background: var(--accent);
    border-radius: 0 0 2px 2px;
  }
  .bottom-nav-icon { font-size: 1.15rem; line-height: 1; }
  .bottom-nav-item.bottom-nav-wc { color: var(--accent); }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  .theme-toggle { bottom: calc(56px + 1rem + env(safe-area-inset-bottom, 0px)); }
}

.site-header.menu-open ~ #bottom-nav { display: none !important; }

[data-theme="light"] #bottom-nav {
  background: rgba(255,255,255,0.96);
  border-top: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 -4px 24px rgba(15,10,5,0.10), 0 -1px 3px rgba(15,10,5,0.05);
}

[data-theme="light"] .bottom-nav-item               { color: #6B6868; }
[data-theme="light"] .bottom-nav-item:hover         { color: #0C0C0C; }
[data-theme="light"] .bottom-nav-item.active        { color: #B8962E; }
[data-theme="light"] .bottom-nav-item.active::before{ background: #B8962E; }
[data-theme="light"] .bottom-nav-item.bottom-nav-wc { color: #6B6868; }

/* ═══════════════════════════════════════════════════════════════════════════
   PREMIUM GLOBAL POLISH
   ═══════════════════════════════════════════════════════════════════════════ */

/* Custom scrollbar — dark theme */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.25);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(212, 175, 55, 0.45); }
* { scrollbar-width: thin; scrollbar-color: rgba(212, 175, 55, 0.25) transparent; }

/* Image placeholders — premium gradient */
.news-card-img-placeholder,
.featured-card-img-placeholder {
  background: linear-gradient(135deg, rgba(12, 32, 56, 1) 0%, rgba(20, 48, 80, 1) 100%);
}

/* Subtle separator line accent */
.footer-bottom {
  position: relative;
}
.footer-bottom::before {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 0 auto var(--space-2);
  border-radius: 2px;
  opacity: 0.6;
}

/* Live score widget glass upgrade */
.live-score-widget {
  background: linear-gradient(145deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.09);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: 0 8px 32px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,255,255,0.10);
}

/* Telegram popup overlay backdrop upgrade */
.telegram-popup-overlay {
  background: rgba(4, 10, 22, 0.88);
}

/* Mobile menu button — premium glass */
.mobile-menu-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}
.mobile-menu-btn:hover {
  background: rgba(212,175,55,0.12);
  border-color: rgba(212,175,55,0.30);
}

/* ── Premium Mobile / Tablet Nav Drawer — Light Mode ────────────────────── */
[data-theme="light"] #mob-nav-overlay.is-open {
  background: rgba(245,243,239,0.97);
  backdrop-filter: blur(56px) saturate(200%);
  -webkit-backdrop-filter: blur(56px) saturate(200%);
}

[data-theme="light"] #mob-cta-bar.is-open {
  background: rgba(255,255,255,0.97);
  border-top: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 -4px 20px rgba(15,10,5,0.09);
}

[data-theme="light"] .mob-nav-item {
  background: rgba(255,255,255,0.80);
  border: 1px solid rgba(0,0,0,0.08);
  color: #1A1A1A;
  box-shadow: 0 1px 3px rgba(15,10,5,0.06);
}

[data-theme="light"] .mob-nav-item:hover {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.12);
  box-shadow: 0 4px 14px rgba(15,10,5,0.10);
  color: #0C0C0C;
}

[data-theme="light"] .mob-nav-item.active {
  background: rgba(184,150,46,0.09);
  border-color: rgba(184,150,46,0.28);
  color: #8B6914;
  box-shadow: none;
}

[data-theme="light"] .mob-nav-icon-box {
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.09);
  color: #3A3A3C;
}

[data-theme="light"] .mob-nav-item.active .mob-nav-icon-box {
  background: rgba(184,150,46,0.12);
  border-color: rgba(184,150,46,0.28);
  color: #8B6914;
}

[data-theme="light"] .mob-nav-chevron { color: rgba(0,0,0,0.28); }

/* Cookie banner glass upgrade */
.cookie-banner {
  background: rgba(4, 10, 22, 0.97);
  border-top: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  box-shadow: 0 -8px 48px rgba(0,0,0,0.55);
}

/* Section titles — gradient accent underline on hover */
.section-title {
  position: relative;
  display: inline-block;
}

/* Spinner — gold accent */
.spinner {
  border-color: rgba(212, 175, 55, 0.15);
  border-top-color: var(--accent);
}

/* League badge — enhanced box-shadow glow */
.league-badge {
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

/* News feature card glass */
.news-feature {
  background: linear-gradient(145deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 8px 32px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,255,255,0.10);
}
.news-feature:hover {
  border-color: rgba(212,175,55,0.28);
  box-shadow: 0 20px 56px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.14);
}

/* EW side card glass */
.ew-hero,
.ew-side-card {
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

/* About hero block glass */
.about-hero-block {
  background: linear-gradient(145deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 12px 48px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.11);
}

/* Premium accent text gradient — use on key hero words */
.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
