/* PrineFans — style.css
   EPL-inspired: deep purple (#37003c) · mint green (#00ff85) · hot pink (#e90052)
   Icons: Lucide (data-lucide attrs, initialised via app.js)
*/
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,400;0,600;0,700;0,800;1,700&family=Barlow:wght@300;400;500;600&display=swap');

/* ═══════════════════════════════════════════
   TOKENS
═══════════════════════════════════════════ */
:root {
  /* Surfaces — EPL deep-purple dark */
  --bg:          #0d0a12;
  --surface:     #1c0e24;
  --surface2:    #250f30;
  --border:      #3a1a45;
  --border2:     #4d2460;

  /* Accent — EPL mint green */
  --accent:      #00ff85;
  --accent-fg:   #0d0a12;
  --accent-dim:  rgba(0,255,133,.10);
  --accent-dim2: rgba(0,255,133,.18);

  /* Semantic — EPL pink for live */
  --live:        #e90052;
  --live-dim:    rgba(233,0,82,.14);
  --win:         #00c567;
  --draw:        #f0a500;
  --blue:        #5b9cf6;

  /* Text */
  --text:        #f0ecf5;
  --subtle:      #a08cb5;
  --muted:       #5a3f6e;

  /* Typography */
  --ff-display:  'Barlow Condensed', sans-serif;
  --ff-body:     'Barlow', sans-serif;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-full: 999px;

  /* Shadows */
  --sh-sm: 0 1px 4px rgba(0,0,0,.5);
  --sh-md: 0 4px 18px rgba(0,0,0,.55);
  --sh-lg: 0 8px 32px rgba(0,0,0,.6);
}

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  background: var(--bg);
  background-image: radial-gradient(ellipse 100% 40% at 50% 0%, rgba(55,0,60,.35) 0%, transparent 60%);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}
a    { color: inherit; text-decoration: none; }
img  { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ═══════════════════════════════════════════
   LAYOUT HELPERS
═══════════════════════════════════════════ */
.container    { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.main-layout  { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.grid-2       { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.grid-3       { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.grid-4       { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.flex-center  { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
.site-header {
  background: #37003c;
  border-bottom: 3px solid var(--accent);
  position: sticky; top: 0; z-index: 200;
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  padding: 0 20px; height: 62px;
  max-width: 1240px; margin: 0 auto;
}
.logo {
  font-family: var(--ff-display);
  font-size: 28px; font-weight: 800;
  color: #fff; letter-spacing: .5px;
  flex-shrink: 0;
}
.logo span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav a {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; color: rgba(255,255,255,.65);
  letter-spacing: .02em;
}
.nav a svg { width: 15px; height: 15px; flex-shrink: 0; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a.active { color: var(--accent); }
.nav a.active svg { stroke: var(--accent); }

.live-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--live); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: var(--r-full); letter-spacing: .06em;
  animation: pulse-live 1.8s infinite;
}
.live-pill svg { width: 10px; height: 10px; }
@keyframes pulse-live { 0%,100%{opacity:1} 50%{opacity:.65} }

.header-actions {
  display: flex; align-items: center; gap: 6px; margin-left: auto;
}
.icon-btn {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.icon-btn svg { width: 18px; height: 18px; }

.search-wrap {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-sm); padding: 0 12px;
  height: 36px; width: 180px;
}
.search-wrap svg { width: 15px; height: 15px; color: rgba(255,255,255,.45); flex-shrink: 0; }
.search-wrap input {
  background: none; border: none; outline: none;
  font: inherit; font-size: 13px; color: #fff;
  width: 100%;
}
.search-wrap input::placeholder { color: rgba(255,255,255,.35); }
.search-wrap:focus-within { border-color: var(--accent); }

.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface2); border: 2px solid var(--border2);
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-weight: 700; font-size: 14px;
  color: var(--subtle);
}

/* ═══════════════════════════════════════════
   COMPETITION STRIP
═══════════════════════════════════════════ */
.comp-strip {
  background: #2d0038;
  border-bottom: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}
.comp-strip-inner {
  display: flex; align-items: center; gap: 6px;
  padding: 0 20px; height: 48px;
  max-width: 1240px; margin: 0 auto;
  overflow-x: auto; scrollbar-width: none;
}
.comp-strip-inner::-webkit-scrollbar { display: none; }
.comp-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 14px; border-radius: var(--r-full);
  font-size: 13px; font-weight: 600; white-space: nowrap;
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.55); flex-shrink: 0;
  transition: border-color .15s, color .15s, background .15s;
}
.comp-pill:hover { color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.06); }
.comp-pill.active {
  background: var(--accent); color: var(--accent-fg);
  border-color: var(--accent); font-weight: 700;
}
.comp-pill img { width: 18px; height: 18px; object-fit: contain; border-radius: 2px; }

.strip-chevron {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--border); color: var(--subtle);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color .15s, color .15s;
}
.strip-chevron:hover { border-color: var(--border2); color: var(--text); }
.strip-chevron svg { width: 14px; height: 14px; }

/* ═══════════════════════════════════════════
   LIVE TICKER
═══════════════════════════════════════════ */
.ticker {
  background: var(--accent); color: var(--accent-fg);
  font-size: 12px; font-weight: 600;
  overflow: hidden; white-space: nowrap; padding: 5px 0;
}
.ticker-inner { display: inline-block; animation: ticker-scroll 50s linear infinite; padding: 0 20px; }
@keyframes ticker-scroll { from{transform:translateX(100vw)} to{transform:translateX(-100%)} }

/* ═══════════════════════════════════════════
   HERO — FEATURED MATCH
═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 420px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  display: flex;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at -5% 50%, rgba(0,255,133,.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 70% at 105% 50%, rgba(233,0,82,.07) 0%, transparent 70%),
    linear-gradient(135deg, #0d0a12 0%, #1c0e24 100%);
}
.hero-bg-crest {
  position: absolute; right: 320px; top: -30px;
  width: 520px; height: 520px;
  opacity: .04;
  pointer-events: none;
}
.hero-bg-crest svg { width: 100%; height: 100%; }

.hero-content {
  position: relative; z-index: 1;
  flex: 1; padding: 36px 40px;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-comp-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--subtle);
  letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-comp-label svg { width: 14px; height: 14px; }
.hero-headline {
  font-family: var(--ff-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800; line-height: 1.05;
  color: #fff; margin-bottom: 28px; max-width: 500px;
}
.hero-headline em { color: var(--accent); font-style: normal; }

.hero-match {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 16px 20px; max-width: 460px;
}
.hero-team {
  display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1;
}
.hero-crest {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface2); border: 2px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-weight: 700; font-size: 13px;
  color: var(--subtle); overflow: hidden;
}
.hero-crest img { width: 100%; height: 100%; object-fit: cover; }
.hero-team-name { font-size: 13px; font-weight: 600; text-align: center; }
.hero-scorer { font-size: 11px; color: var(--subtle); text-align: center; }
.hero-score-block { text-align: center; }
.hero-score {
  font-family: var(--ff-display);
  font-size: 52px; font-weight: 800;
  color: #fff; line-height: 1;
  letter-spacing: -1px;
}
.hero-vs {
  font-family: var(--ff-display);
  font-size: 26px; font-weight: 600;
  color: var(--muted);
}
.hero-status-row {
  display: flex; align-items: center; gap: 8px;
  justify-content: center; margin-top: 6px;
}
.hero-minute {
  background: var(--accent); color: var(--accent-fg);
  font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: var(--r-full);
}
.hero-venue { font-size: 11px; color: var(--subtle); display: flex; align-items: center; gap: 4px; }
.hero-venue svg { width: 11px; height: 11px; }

/* Hero right panel */
.hero-panel {
  width: 280px; flex-shrink: 0;
  background: rgba(0,0,0,.25);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.hero-panel-tabs {
  display: flex; flex-direction: column; gap: 1px;
  padding: 16px 12px 8px;
}
.hero-panel-tab {
  padding: 11px 14px; border-radius: var(--r-md);
  font-size: 13px; font-weight: 500; color: var(--subtle);
  transition: background .15s, color .15s;
  border: 1px solid transparent;
  text-align: left;
}
.hero-panel-tab.active {
  background: var(--accent); color: var(--accent-fg);
  font-weight: 600; border-color: var(--accent);
}
.hero-panel-tab:hover:not(.active) { background: var(--surface2); color: var(--text); }

.hero-stats { padding: 12px 16px 16px; flex: 1; }
.hero-stats-teams {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.hero-stats-crest {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-size: 10px; font-weight: 700; color: var(--subtle);
}
.stat-row {
  display: grid; grid-template-columns: 36px 1fr 36px;
  gap: 8px; align-items: center; margin-bottom: 11px;
}
.stat-val { font-size: 13px; font-weight: 700; text-align: center; }
.stat-val.home { color: var(--accent); }
.stat-val.away { color: var(--blue); }

/* ── Match page live stat bars ─────────────────────────── */
.stat-bar-row {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
}
.stat-bar-val {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  text-align: left;
  white-space: nowrap;
}
.stat-bar-centre { display: flex; flex-direction: column; gap: 4px; }
.stat-bar-track {
  display: flex;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--border);
}
.stat-bar-fill     { height: 100%; transition: width .5s ease; }
.stat-bar-home     { background: var(--accent); border-radius: 999px 0 0 999px; }
.stat-bar-away     { background: var(--blue);   border-radius: 0 999px 999px 0; }
.stat-bar-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--subtle);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.stat-label-center {
  text-align: center; font-size: 10px; color: var(--subtle);
  line-height: 1.2; margin-bottom: 4px;
}
.stat-bars { display: flex; gap: 2px; height: 4px; border-radius: var(--r-full); overflow: hidden; background: var(--border); }
.stat-bars .home-bar { background: var(--accent); }
.stat-bars .away-bar { background: var(--blue); flex: 1; }

/* ── Stats panel (live + finished match page) ──────────── */
.stats-header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.stats-team-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text); }
.stats-team-label.away { justify-content: flex-end; }
.stat-group-label { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.stat-bar-wrap { display: flex; height: 5px; border-radius: 999px; overflow: hidden; background: var(--border); margin-bottom: 2px; }
.stat-bar-h { background: var(--accent); border-radius: 999px 0 0 999px; transition: width .5s; }
.stat-bar-a { background: var(--pl-pink,#e90052); border-radius: 0 999px 999px 0; transition: width .5s; }
.stat-name { font-size: 10px; font-weight: 600; text-align: center; color: var(--subtle); text-transform: uppercase; letter-spacing: .04em; }
.poss-label { font-size: 10px; font-weight: 700; text-align: center; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 5px; }
.poss-bar { display: flex; height: 24px; border-radius: 6px; overflow: hidden; margin-bottom: 6px; }
.poss-h { background: var(--accent); color: #000; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; min-width: 28px; transition: width .5s; }
.poss-a { background: var(--pl-pink,#e90052); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; min-width: 28px; transition: width .5s; }

/* ═══════════════════════════════════════════
   CARDS — BASE
═══════════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.card-header-title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--ff-display); font-size: 15px;
  font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  color: var(--text);
}
.card-header-title svg { width: 16px; height: 16px; color: var(--accent); }
.card-body { padding: 18px; }

/* ═══════════════════════════════════════════
   MATCH CARDS
═══════════════════════════════════════════ */
.match-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  display: block;
  transition: border-color .15s;
}
.match-card:hover { border-color: var(--border2); }

.match-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.match-comp {
  font-size: 11px; font-weight: 600; color: var(--subtle);
  letter-spacing: .05em; text-transform: uppercase;
  display: flex; align-items: center; gap: 5px;
}
.match-comp svg { width: 11px; height: 11px; }

.status-badge {
  font-size: 11px; font-weight: 700; padding: 3px 8px;
  border-radius: var(--r-full); letter-spacing: .04em;
}
.status-badge.live  { background: var(--live-dim); color: var(--live); }
.status-badge.ft    { background: rgba(39,174,96,.12); color: var(--win); }
.status-badge.ns    { color: var(--subtle); }

.data-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.data-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  color: var(--subtle);
  background: rgba(255,255,255,.72);
}

.data-chip svg {
  width: 12px;
  height: 12px;
}

.data-chip.synced {
  color: var(--blue);
  border-color: rgba(59,130,246,.25);
  background: rgba(59,130,246,.1);
}

.data-chip.ready {
  color: var(--win);
  border-color: rgba(39,174,96,.25);
  background: rgba(39,174,96,.1);
}

.data-chip.pending {
  color: var(--muted);
  background: rgba(148,163,184,.12);
}

.data-chip.media {
  color: var(--accent);
  border-color: var(--accent-dim2);
  background: var(--accent-dim);
}

.match-teams {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 12px;
}
.team-side { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.team-crest {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface2); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-size: 12px; font-weight: 700; color: var(--subtle);
  overflow: hidden; flex-shrink: 0;
}
.team-crest img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-size: 12px; font-weight: 600; text-align: center; line-height: 1.3; }

.match-score {
  font-family: var(--ff-display);
  font-size: 34px; font-weight: 800;
  color: #fff; min-width: 70px; text-align: center; line-height: 1;
}
.match-vs {
  font-family: var(--ff-display);
  font-size: 18px; font-weight: 600; color: var(--muted);
}

.match-card-foot {
  padding-top: 12px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--subtle);
}
.match-venue-row { display: flex; align-items: center; gap: 5px; color: var(--subtle); text-decoration: none; min-width: 0; overflow: hidden; }
.match-venue-row svg { width: 11px; height: 11px; flex-shrink: 0; }
.match-venue-link { border-radius: 4px; padding: 2px 5px 2px 3px; margin: -2px -5px -2px -3px; transition: background .15s, color .15s; }
.match-venue-link:hover { background: rgba(55,0,60,.07); color: var(--pl-purple); }
.match-venue-link:hover svg { color: var(--pl-purple); }
.match-venue-row .venue-name { font-size: 11px; font-weight: 600; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.match-venue-row .venue-city { font-size: 10px; color: var(--muted); white-space: nowrap; }
.match-venue-row .venue-city::before { content: '·'; margin-right: 3px; }
.match-ai-link { color: var(--accent); font-weight: 600; display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.match-ai-link svg { width: 11px; height: 11px; }

/* ═══════════════════════════════════════════
   HOME LIVE CARDS (real-time match display)
═══════════════════════════════════════════ */
.home-live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.home-live-card {
  background: linear-gradient(140deg, #1a0538 0%, #2d0a5e 100%);
  border: 1px solid rgba(124,58,237,.35);
  border-radius: var(--r-lg);
  padding: 20px;
  display: block;
  color: #fff;
  text-decoration: none;
  transition: border-color .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(124,58,237,.12);
}
.home-live-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124,58,237,.25);
}

.hlc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--live);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}

.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--live);
  animation: live-pulse 1.4s ease infinite;
  flex-shrink: 0;
}
.live-dot.paused { background: #f59e0b; animation: none; }
@keyframes live-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.8); }
}

.hlc-stage {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
}

.hlc-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.hlc-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.hlc-crest {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.hlc-crest img { width: 100%; height: 100%; object-fit: cover; }
.hlc-crest .crest-tla {
  font-family: var(--ff-display);
  font-size: 13px; font-weight: 800; color: rgba(255,255,255,.7);
}

.hlc-name {
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: rgba(255,255,255,.9);
  line-height: 1.25;
  word-break: break-word;
}

.hlc-score {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.hlc-score-h, .hlc-score-a {
  font-family: var(--ff-display);
  font-size: 44px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  min-width: 34px;
  text-align: center;
  transition: color .3s;
}
.hlc-score-sep {
  font-family: var(--ff-display);
  font-size: 26px;
  font-weight: 300;
  color: rgba(255,255,255,.35);
}

.hlc-venue {
  font-size: 11px;
  color: rgba(255,255,255,.4);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
}
.hlc-venue svg { width: 11px; height: 11px; flex-shrink: 0; }

.hlc-stats {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 12px;
  min-height: 24px;
}

.hlc-stats-loading {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hlc-stats-loading svg { width: 12px; height: 12px; animation: hlc-spin .8s linear infinite; }
@keyframes hlc-spin { to { transform: rotate(360deg); } }

.hlc-stats-link {
  font-size: 12px;
  color: rgba(196,181,253,.9);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}
.hlc-stats-link:hover { color: #fff; }
.hlc-stats-link svg { width: 13px; height: 13px; }

.hlc-stat-row {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  grid-template-areas: "hv bar av" "lbl lbl lbl";
  align-items: center;
  gap: 3px 8px;
  margin-bottom: 9px;
}
.hlc-stat-val        { font-size: 12px; font-weight: 800; color: #fff; text-align: right; grid-area: hv; }
.hlc-stat-val.away   { text-align: left; grid-area: av; }
.hlc-stat-bar        { grid-area: bar; display: flex; height: 5px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.1); }
.hlc-stat-fill       { height: 100%; transition: width .6s ease; }
.hlc-stat-fill.home  { background: var(--accent); border-radius: 999px 0 0 999px; }
.hlc-stat-fill.away  { background: rgba(255,255,255,.35); border-radius: 0 999px 999px 0; }
.hlc-stat-label      { grid-area: lbl; font-size: 10px; font-weight: 600; color: rgba(255,255,255,.35); text-align: center; text-transform: uppercase; letter-spacing: .05em; }

/* ═══════════════════════════════════════════
   BOTTOM MATCH STRIP
═══════════════════════════════════════════ */
.match-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
.match-strip-inner {
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px; max-width: 1240px; margin: 0 auto;
  overflow-x: auto; scrollbar-width: none;
}
.match-strip-inner::-webkit-scrollbar { display: none; }
.strip-nav {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border); color: var(--subtle);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: border-color .15s, color .15s;
}
.strip-nav:hover { border-color: var(--border2); color: var(--text); }
.strip-nav svg { width: 14px; height: 14px; }

.strip-card {
  flex-shrink: 0; width: 180px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 12px 14px;
  transition: border-color .15s;
  cursor: pointer;
}
.strip-card:hover { border-color: var(--border2); }
.strip-card.active {
  background: var(--accent); border-color: var(--accent);
}
.strip-card.active .strip-status { color: var(--accent-fg); opacity: .7; }
.strip-card.active .strip-teams  { color: var(--accent-fg); }
.strip-card.active .strip-score  { color: var(--accent-fg); }
.strip-status { font-size: 10px; font-weight: 600; color: var(--subtle); margin-bottom: 8px; letter-spacing: .05em; text-transform: uppercase; }
.strip-teams  { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.strip-team-block { display: flex; align-items: center; gap: 6px; flex: 1; }
.strip-team-block.away { flex-direction: row-reverse; }
.strip-mini-crest {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--border2); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-size: 9px; font-weight: 700; color: var(--subtle);
  flex-shrink: 0; overflow: hidden;
}
.strip-mini-crest img { width: 100%; height: 100%; object-fit: cover; }
.strip-team-name { font-size: 11px; font-weight: 600; }
.strip-score {
  font-family: var(--ff-display); font-size: 18px; font-weight: 800;
  color: #fff; white-space: nowrap;
}

/* Match strip drag cursor */
.match-strip-inner.is-dragging { cursor: grabbing; -webkit-user-select: none; user-select: none; }
.match-strip-inner:not(.is-dragging) { cursor: grab; }

/* Live tab fallback banner */
.live-fallback-banner {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, #1a0538, #37003c);
  border: 1px solid rgba(0,255,133,.25); border-radius: var(--r-lg);
  padding: 16px 20px; margin-bottom: 20px; color: #fff;
}
.live-fallback-icon { color: var(--live); flex-shrink: 0; }
.live-fallback-icon svg { width: 22px; height: 22px; }
.live-fallback-title { font-weight: 700; font-size: 14px; margin-bottom: 3px; }
.live-fallback-sub   { font-size: 12px; color: rgba(255,255,255,.7); }
.live-fallback-banner .btn { margin-left: auto; flex-shrink: 0; color: #fff; border-color: rgba(255,255,255,.3); }

/* ═══════════════════════════════════════════
   SECTION HEADING
═══════════════════════════════════════════ */
.section-heading {
  font-family: var(--ff-display);
  font-size: 20px; font-weight: 800;
  letter-spacing: .4px; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
  color: var(--text);
}
.section-heading svg { width: 18px; height: 18px; color: var(--accent); }
.section-heading::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.section-heading a {
  font-family: var(--ff-body); font-size: 13px; font-weight: 500;
  color: var(--subtle); margin-left: auto;
}
.section-heading a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════
   TABS
═══════════════════════════════════════════ */
.tabs {
  display: flex; gap: 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px; overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px; font-size: 14px; font-weight: 500;
  color: var(--subtle); border-bottom: 2px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.tab svg { width: 14px; height: 14px; }
.tab:hover  { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ═══════════════════════════════════════════
   TABLE
═══════════════════════════════════════════ */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
  text-align: left; padding: 8px 12px;
  font-size: 10px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.data-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); }
.data-table tr:last-child td { border-bottom: none; }
.data-table .pos-highlight td:first-child { color: var(--accent); font-weight: 700; }

/* ═══════════════════════════════════════════
   PREDICTION BAR
═══════════════════════════════════════════ */
.prediction-bar { margin: 14px 0; }
.pred-labels {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--subtle); margin-bottom: 6px;
}
.pred-pcts {
  display: flex; justify-content: space-between;
  font-size: 13px; font-weight: 700; margin-bottom: 8px;
}
.pred-pcts .home { color: var(--accent); }
.pred-pcts .draw { color: var(--draw); }
.pred-pcts .away { color: var(--blue); }
.pred-track {
  height: 7px; background: var(--border);
  border-radius: var(--r-full); overflow: hidden; display: flex;
}
.pred-track .home { background: var(--accent); }
.pred-track .draw { background: var(--draw); }
.pred-track .away { background: var(--blue); flex: 1; }

/* ═══════════════════════════════════════════
   AI BADGE
═══════════════════════════════════════════ */
.ai-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--accent-dim); border: 1px solid var(--accent-dim2);
  color: var(--accent); font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: var(--r-full);
}
.ai-badge svg { width: 11px; height: 11px; }

/* ═══════════════════════════════════════════
   TEAM CARD (Goeveni-inspired)
═══════════════════════════════════════════ */
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .15s;
}
.team-card:hover { border-color: var(--border2); }
.team-card-cover {
  height: 100px; position: relative;
  background: linear-gradient(135deg, #37003c, #55006b);
}
.team-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.team-card-body { padding: 42px 16px 16px; position: relative; }
.team-card-crest {
  position: absolute; top: -28px; left: 16px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--surface2); border: 3px solid var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-size: 14px; font-weight: 700; color: var(--subtle);
  overflow: hidden;
}
.team-card-crest img { width: 100%; height: 100%; object-fit: cover; }
.team-card-name { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.team-card-meta { font-size: 12px; color: var(--subtle); display: flex; align-items: center; gap: 4px; }
.team-card-meta svg { width: 11px; height: 11px; }
.team-card-stats {
  display: flex; gap: 16px; margin-top: 12px;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.team-stat { text-align: center; }
.team-stat-val { font-family: var(--ff-display); font-size: 20px; font-weight: 700; color: var(--text); }
.team-stat-lbl { font-size: 10px; color: var(--subtle); text-transform: uppercase; letter-spacing: .05em; }
.team-card-actions { display: flex; gap: 8px; margin-top: 12px; }

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600; border: none; cursor: pointer;
  transition: opacity .15s;
}
.btn:hover { opacity: .88; }
.btn svg { width: 14px; height: 14px; }
.btn-accent  { background: var(--accent); color: var(--accent-fg); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--border2); }
.btn-ghost   { background: var(--surface2); color: var(--subtle); }
.btn-sm      { padding: 6px 14px; font-size: 12px; }
.btn-full    { width: 100%; }

/* ═══════════════════════════════════════════
   SIDEBAR / WIDGETS
═══════════════════════════════════════════ */
.sidebar-widget { margin-bottom: 20px; }
.standings-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.standings-row:last-child { border-bottom: none; }
.standings-pos { width: 20px; color: var(--muted); font-size: 12px; text-align: center; }
.standings-crest {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface2); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-size: 9px; font-weight: 700; color: var(--subtle);
  flex-shrink: 0; overflow: hidden;
}
.standings-crest img { width: 100%; height: 100%; object-fit: cover; }
.standings-team { flex: 1; font-weight: 500; }
.standings-gp   { color: var(--subtle); font-size: 12px; min-width: 28px; text-align: center; }
.standings-pts  { font-weight: 700; color: var(--accent); min-width: 28px; text-align: right; }

.scorer-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.scorer-row:last-child { border-bottom: none; }
.scorer-rank { width: 20px; color: var(--muted); font-size: 12px; text-align: center; }
.scorer-name { flex: 1; font-weight: 500; }
.scorer-team { font-size: 11px; color: var(--subtle); }
.scorer-goals {
  display: flex; align-items: center; gap: 5px;
  font-weight: 700; color: var(--accent);
}
.scorer-goals svg { width: 12px; height: 12px; }

/* ═══════════════════════════════════════════
   AD SLOTS
═══════════════════════════════════════════ */
.ad-slot {
  background: var(--surface); border: 1px dashed var(--border);
  border-radius: var(--r-md); min-height: 90px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ad-slot img { width: 100%; height: auto; display: block; }
.ad-slot-banner  { width: 100%; min-height: 90px; max-height: 120px; border-radius: 0; border-left: 0; border-right: 0; }
.ad-slot-infeed  { width: 100%; min-height: 90px; }
.ad-slot-footer  { width: 100%; min-height: 90px; max-height: 150px; }

/* ═══════════════════════════════════════════
   PARTNER STRIP
═══════════════════════════════════════════ */
.partner-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.partner-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 7px 14px;
  font-size: 12px; color: var(--subtle);
  transition: border-color .15s, color .15s;
}
.partner-link svg { width: 12px; height: 12px; }
.partner-link:hover { border-color: var(--border2); color: var(--text); }

/* ═══════════════════════════════════════════
   HIGHLIGHTS
═══════════════════════════════════════════ */
.highlights-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 12px; }
.highlight-thumb {
  border-radius: var(--r-md); overflow: hidden;
  position: relative; cursor: pointer;
  aspect-ratio: 16/9; background: var(--border);
}
.highlight-thumb img { width: 100%; height: 100%; object-fit: cover; }
.highlight-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.45);
}
.highlight-play svg { width: 40px; height: 40px; color: #fff; opacity: .85; }
.highlight-title { font-size: 12px; margin-top: 6px; color: var(--subtle); }

/* ═══════════════════════════════════════════
   VENUE CARD
═══════════════════════════════════════════ */
.venue-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.venue-banner {
  height: 180px; background: linear-gradient(135deg, #37003c, #55006b, #2d0038);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.venue-banner img { width: 100%; height: 100%; object-fit: cover; }
.venue-banner-label {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,15,30,.8) 0%, transparent 50%);
}
.venue-info { padding: 16px 18px; }
.venue-name { font-family: var(--ff-display); font-size: 20px; font-weight: 700; }
.venue-detail { font-size: 13px; color: var(--subtle); margin-top: 4px; display: flex; align-items: center; gap: 5px; }
.venue-detail svg { width: 13px; height: 13px; }

/* ═══════════════════════════════════════════
   FORMS & ADMIN
═══════════════════════════════════════════ */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--subtle); }
.form-control {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 9px 12px;
  color: var(--text); font: inherit; font-size: 14px;
  transition: border-color .15s;
}
.form-control:focus { outline: none; border-color: var(--border2); }
.alert { padding: 12px 16px; border-radius: var(--r-sm); font-size: 14px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.alert svg { width: 15px; height: 15px; flex-shrink: 0; }
.alert-success { background: rgba(39,174,96,.1); border: 1px solid rgba(39,174,96,.3); color: var(--win); }
.alert-danger  { background: rgba(233,0,82,.1); border: 1px solid rgba(233,0,82,.3); color: var(--live); }

.admin-sidebar {
  width: 220px; background: var(--surface);
  border-right: 1px solid var(--border);
  min-height: 100vh; position: fixed; top: 0; left: 0; padding: 20px 0;
}
.admin-content { margin-left: 220px; padding: 30px; min-height: 100vh; }
.admin-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; color: var(--subtle); font-size: 14px;
  transition: background .15s, color .15s; border-left: 2px solid transparent;
}
.admin-nav-link svg { width: 16px; height: 16px; }
.admin-nav-link:hover { background: var(--surface2); color: var(--text); }
.admin-nav-link.active { color: var(--accent); border-left-color: var(--accent); background: var(--accent-dim); }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px; margin-top: 60px;
  font-size: 13px; color: var(--muted);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-brand-desc { font-size: 13px; line-height: 1.7; color: var(--subtle); margin-top: 12px; max-width: 280px; }
.footer-col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--subtle); margin-bottom: 14px;
}
.footer-col a { display: block; color: var(--muted); margin-bottom: 9px; transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-divider { border: none; border-top: 1px solid var(--border); margin-bottom: 20px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--muted); gap: 20px; flex-wrap: wrap;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .main-layout  { grid-template-columns: 1fr; }
  .hero         { flex-direction: column; }
  .hero-panel   { width: 100%; border-left: none; border-top: 1px solid var(--border); }
  .hero-panel-tabs { flex-direction: row; padding: 12px; }
  .hero-panel-tab { flex: 1; text-align: center; }
  .hero-stats   { display: none; }
  .page-hero-stats { gap: 20px; }
}
@media (max-width: 860px) {
  .grid-3          { grid-template-columns: 1fr 1fr; }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
  .hero-content    { padding: 24px 20px; }
  .countdown-units { gap: 0; }
  .countdown-unit  { padding: 16px 18px; }
  .match-list-row  { grid-template-columns: 1fr 90px 1fr; gap: 6px; }
  .match-list-home,
  .match-list-away { min-width: 0; gap: 6px; }
  .fixture-day-header { flex-wrap: wrap; gap: 6px; }
  .pred-card-teams { gap: 8px; }
  .pred-crest      { width: 40px; height: 40px; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav a span      { display: none; }
  .search-wrap     { display: none; }
  .footer-grid     { grid-template-columns: 1fr; }
  .header-inner    { gap: 10px; }
  .countdown-units { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 320px; margin-inline: auto; border-radius: var(--r-lg); }
  .countdown-unit  { padding: 16px 12px; border-right: none; border-bottom: 1px solid var(--border); }
  .countdown-unit:nth-child(odd) { border-right: 1px solid var(--border); }
  .countdown-unit:nth-child(3),
  .countdown-unit:nth-child(4)   { border-bottom: none; }
  .countdown-number { font-size: clamp(30px, 10vw, 52px); }
  .page-hero h1    { font-size: clamp(22px, 6vw, 36px); }
  .page-hero-stats { gap: 16px; flex-wrap: wrap; }
  .page-hero-stat-val { font-size: 24px; }
  .hero-match      { gap: 8px; }
  .hero-crest      { width: 64px; height: 64px; }
  .hero-score      { font-size: 32px; }
  .filter-bar      { gap: 6px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .filter-pill     { font-size: 12px; padding: 6px 12px; white-space: nowrap; flex-shrink: 0; }
  .match-list-row  { grid-template-columns: 1fr 80px 1fr; padding: 10px 12px; }
  .match-list-team { font-size: 12px; }
  .match-list-crest { width: 26px; height: 26px; }
  .match-list-score { font-size: 18px; }
  .section-heading { font-size: 16px; }
  .cd-host-nations { gap: 10px; flex-wrap: wrap; justify-content: center; }
  .cd-host-flag    { width: 26px; height: 18px; }
  .cd-progress-wrap { padding: 0 20px; }
}

/* ═══════════════════════════════════════════
   COUNTDOWN SECTION
═══════════════════════════════════════════ */
@keyframes cd-pulse {
  0%, 100% { text-shadow: 0 0 10px rgba(0,255,133,.4), 0 0 30px rgba(0,255,133,.15); }
  50%       { text-shadow: 0 0 18px rgba(0,255,133,.7), 0 0 50px rgba(0,255,133,.25); }
}
@keyframes cd-tick {
  0%   { transform: scaleY(1.06); }
  100% { transform: scaleY(1); }
}
.countdown-section {
  background: linear-gradient(160deg, #1a0820 0%, #220a2c 40%, #190720 100%);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.countdown-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 120% at 50% 110%, rgba(0,255,133,.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(55,0,60,.25) 0%, transparent 55%),
    radial-gradient(ellipse 40% 60% at 80% 80%, rgba(233,0,82,.05) 0%, transparent 55%);
  pointer-events: none;
}
.countdown-section::after {
  content: '';
  position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 600px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,255,133,.25), transparent);
}
.countdown-label-top {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
  background: var(--accent-dim); border: 1px solid var(--accent-dim2);
  padding: 5px 14px; border-radius: var(--r-full);
}
.countdown-label-top svg { width: 13px; height: 13px; }
.countdown-heading {
  font-family: var(--ff-display);
  font-size: clamp(22px, 3.5vw, 38px);
  font-weight: 800; color: #fff;
  margin-bottom: 32px; line-height: 1.1;
}
.countdown-heading span { color: var(--accent); }
.countdown-units {
  display: inline-flex; align-items: stretch; gap: 0;
  background: rgba(37,15,48,.85); border: 1px solid var(--border2);
  border-radius: var(--r-xl); overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 8px 40px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
.countdown-unit {
  padding: 24px 32px; text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
}
.countdown-unit:last-child { border-right: none; }
.countdown-unit::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,255,133,.3), transparent);
}
.countdown-number {
  font-family: var(--ff-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800; color: var(--accent);
  line-height: 1; display: block;
  min-width: 2ch; letter-spacing: -2px;
  animation: cd-pulse 2s ease-in-out infinite;
}
.countdown-number.ticking { animation: cd-tick .12s ease-out, cd-pulse 2s ease-in-out infinite; }
.countdown-unit-label {
  font-size: 10px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .14em;
  display: block; margin-top: 8px;
}
.countdown-sub {
  font-size: 13px; color: var(--subtle);
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.countdown-sub svg { width: 13px; height: 13px; }
.countdown-sub-dot { color: var(--border2); }

/* Host nations flags row */
.cd-host-nations {
  display: inline-flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  border-radius: var(--r-full); padding: 8px 20px;
  font-size: 12px; color: var(--muted);
}
.cd-host-nations-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
}
.cd-host-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--subtle);
}
.cd-host-flag {
  width: 26px; height: 18px; border-radius: 2px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.1); flex-shrink: 0;
}
.cd-host-flag img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Progress bar */
.cd-progress-wrap {
  max-width: 420px; margin: 20px auto 0;
}
.cd-progress-label {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--muted); margin-bottom: 6px;
}
.cd-progress-track {
  height: 4px; background: var(--border); border-radius: var(--r-full); overflow: hidden;
}
.cd-progress-fill {
  height: 100%; border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--accent) 0%, rgba(0,255,133,.5) 100%);
  transition: width 1s ease;
}

.wc-live-banner {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--accent); color: var(--accent-fg);
  border-radius: var(--r-lg); padding: 16px 28px;
  font-size: 15px; font-weight: 600;
  flex-wrap: wrap; justify-content: center;
}
.wc-live-banner svg { width: 20px; height: 20px; }

/* ═══════════════════════════════════════════
   FIXTURES PAGE — date group + filter pills
═══════════════════════════════════════════ */
.fixture-day { margin-bottom: 28px; }
.fixture-day-header {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; margin-bottom: 12px;
}
.fixture-day-date {
  font-family: var(--ff-display);
  font-size: 17px; font-weight: 700; color: var(--text);
}
.fixture-day-line { flex: 1; height: 1px; background: var(--border); }
.fixture-day-count {
  font-size: 11px; color: var(--muted); font-weight: 600;
  background: var(--surface2); padding: 3px 10px; border-radius: var(--r-full);
}

.filter-bar {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 24px;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: var(--r-full);
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--border); color: var(--subtle);
  transition: border-color .15s, color .15s, background .15s;
  white-space: nowrap;
}
.filter-pill:hover { color: var(--text); border-color: var(--border2); }
.filter-pill.active {
  background: var(--accent); color: var(--accent-fg);
  border-color: var(--accent); font-weight: 600;
}
.filter-pill svg { width: 13px; height: 13px; }

.match-list-row {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px 18px;
  display: grid; grid-template-columns: 1fr 100px 1fr;
  align-items: center; gap: 8px; margin-bottom: 8px;
  transition: border-color .15s;
}
.match-list-row:hover { border-color: var(--border2); }
.match-list-home { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.match-list-away { display: flex; align-items: center; gap: 10px; }
.match-list-team { font-size: 14px; font-weight: 600; }
.match-list-score {
  text-align: center;
  font-family: var(--ff-display); font-size: 22px; font-weight: 800; color: #fff;
}
.match-list-vs {
  text-align: center;
  font-size: 13px; color: var(--muted); font-weight: 600;
}
.match-list-time {
  text-align: center; font-size: 12px; font-weight: 600; color: var(--subtle);
}
.match-list-crest {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface2); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-size: 10px; font-weight: 700; color: var(--subtle);
  overflow: hidden; flex-shrink: 0;
}
.match-list-crest img { width: 100%; height: 100%; object-fit: cover; }
.match-list-meta {
  grid-column: 1/-1; border-top: 1px solid var(--border);
  padding-top: 8px; margin-top: 4px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--muted);
}
.match-list-meta a { color: var(--accent); font-weight: 600; }

/* ═══════════════════════════════════════════
   TEAM / FLAG
═══════════════════════════════════════════ */
.flag-img {
  width: 20px; height: 13px; border-radius: 2px;
  object-fit: cover; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.08);
}
.flag-img-lg {
  width: 32px; height: 21px; border-radius: 3px;
  object-fit: cover; border: 1px solid rgba(255,255,255,.1);
}

/* ═══════════════════════════════════════════
   FIXTURE CARDS (modern redesign)
═══════════════════════════════════════════ */
.fx-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 860px) { .fx-grid { grid-template-columns: 1fr; } }

.fx-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  color: inherit; text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.fx-card:hover {
  border-color: var(--border2);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}

.fx-card-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.fx-stage {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; color: var(--subtle);
  text-transform: uppercase; letter-spacing: .07em;
}
.fx-stage svg { width: 11px; height: 11px; color: var(--accent); }

.fx-card-body {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  padding: 20px 14px 16px;
  gap: 10px;
  flex: 1;
}

.fx-team {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
}

.fx-crest-wrap {
  position: relative; width: 52px; height: 52px;
}
.fx-crest {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface2); border: 2px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-size: 13px; font-weight: 700; color: var(--subtle);
  overflow: hidden;
}
.fx-crest img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 4px; }
.fx-flag-badge {
  position: absolute; bottom: -2px; right: -4px;
  width: 20px; height: 13px;
  border-radius: 2px; overflow: hidden;
  border: 1px solid var(--surface);
  flex-shrink: 0;
}
.fx-flag-badge img { width: 100%; height: 100%; object-fit: cover; display: block; }

.fx-name {
  font-size: 13px; font-weight: 600;
  text-align: center; line-height: 1.3;
  color: var(--text);
}

.fx-centre { text-align: center; }
.fx-score {
  font-family: var(--ff-display);
  font-size: 30px; font-weight: 800;
  color: #fff; line-height: 1;
  letter-spacing: -1px;
}
.fx-time {
  font-family: var(--ff-display);
  font-size: 22px; font-weight: 700;
  color: var(--text); line-height: 1;
}
.fx-vs {
  font-family: var(--ff-display);
  font-size: 15px; font-weight: 600; color: var(--muted);
}
.fx-sub {
  font-size: 11px; color: var(--subtle); font-weight: 600; margin-top: 5px;
}

.fx-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: rgba(28,7,36,.5);
}
.fx-venue {
  font-size: 11px; color: var(--muted);
  display: flex; align-items: center; gap: 4px;
  overflow: hidden; flex: 1; text-decoration: none; min-width: 0;
  border-radius: 4px; padding: 2px 4px; margin: -2px -4px; transition: background .15s, color .15s;
}
.fx-venue svg { width: 11px; height: 11px; flex-shrink: 0; }
a.fx-venue:hover { background: rgba(0,255,133,.07); color: var(--accent); }
a.fx-venue:hover svg { color: var(--accent); }
.fx-venue .venue-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: inherit; }
.fx-venue .venue-city { font-size: 10px; white-space: nowrap; flex-shrink: 0; }
.fx-venue .venue-city::before { content: '·'; margin-right: 3px; }
.fx-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* skeleton for fx-card */
.fx-skel-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
}
.fx-skel-top  { padding: 10px 14px; background: var(--surface2); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; }
.fx-skel-body { display: grid; grid-template-columns: 1fr 80px 1fr; align-items: center; gap: 10px; padding: 20px 14px 16px; }
.fx-skel-team { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.fx-skel-foot { padding: 10px 14px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 8px; background: rgba(28,7,36,.5); }

.group-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-dim); border: 1px solid var(--accent-dim2);
  font-family: var(--ff-display); font-size: 13px; font-weight: 700; color: var(--accent);
  flex-shrink: 0;
}

.team-flag-crest {
  position: relative; width: 64px; height: 64px; flex-shrink: 0;
}
.team-flag-crest .crest {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--surface2); border: 2px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.team-flag-crest .crest img { width: 100%; height: 100%; object-fit: cover; }
.team-flag-crest .flag-badge {
  position: absolute; bottom: -2px; right: -4px;
  width: 24px; height: 16px; border-radius: 2px; overflow: hidden;
  border: 1px solid var(--surface);
}
.team-flag-crest .flag-badge img { width: 100%; height: 100%; object-fit: cover; }

/* ═══════════════════════════════════════════
   PAGE HERO (used on teams, venues, predictions, etc.)
═══════════════════════════════════════════ */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 40px 0; position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 100% at 0% 50%, rgba(0,255,133,.05) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 20px;
  position: relative; z-index: 1;
}
.page-hero-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.page-hero-label svg { width: 13px; height: 13px; }
.page-hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(28px, 4vw, 48px); font-weight: 800; color: #fff; line-height: 1.05;
  margin-bottom: 10px;
}
.page-hero p {
  font-size: 15px; color: var(--subtle); max-width: 560px; line-height: 1.6;
}
.page-hero-stats {
  display: flex; gap: 32px; margin-top: 24px;
}
.page-hero-stat-val {
  font-family: var(--ff-display); font-size: 32px; font-weight: 800; color: var(--accent);
}
.page-hero-stat-lbl { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ═══════════════════════════════════════════
   VENUE DETAILS (venue.php)
═══════════════════════════════════════════ */
.venue-detail-hero {
  height: 260px;
  background: linear-gradient(135deg, #37003c 0%, #55006b 50%, #2d0038 100%);
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
}
.venue-detail-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,15,30,.9) 0%, rgba(11,15,30,.3) 60%, transparent 100%);
}
.venue-detail-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.venue-detail-hero-content {
  position: relative; z-index: 1;
  padding: 24px 32px; width: 100%;
}
.venue-capacity-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,255,133,.15); border: 1px solid rgba(0,255,133,.25);
  color: var(--accent); font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: var(--r-full);
  margin-bottom: 10px;
}

/* ═══════════════════════════════════════════
   PREDICTION CARDS (predictions.php)
═══════════════════════════════════════════ */
.pred-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color .15s;
}
.pred-card:hover { border-color: var(--border2); }
.pred-card-head {
  padding: 16px 18px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
}
.pred-card-teams {
  padding: 16px 18px;
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
}
.pred-team { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.pred-crest {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface2); border: 2px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-size: 12px; font-weight: 700; color: var(--subtle);
  overflow: hidden;
}
.pred-crest img { width: 100%; height: 100%; object-fit: cover; }
.pred-team-name { font-size: 13px; font-weight: 600; text-align: center; }
.pred-vs { font-family: var(--ff-display); font-size: 20px; font-weight: 700; color: var(--muted); }
.pred-bar-section { padding: 0 18px 16px; }
.pred-score-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--accent-dim); border: 1px solid var(--accent-dim2);
  color: var(--accent); font-family: var(--ff-display);
  font-size: 16px; font-weight: 700; padding: 4px 14px;
  border-radius: var(--r-full); margin-bottom: 12px;
}
.pred-card-foot {
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px;
}

/* ═══════════════════════════════════════════
   CMS CONTENT (about, privacy, disclaimer)
═══════════════════════════════════════════ */
.cms-content {
  font-size: 15px; line-height: 1.8; color: var(--text);
  max-width: 760px;
}
.cms-content h2 {
  font-family: var(--ff-display); font-size: 28px; font-weight: 800;
  color: #fff; margin: 0 0 16px;
}
.cms-content h3 {
  font-family: var(--ff-display); font-size: 20px; font-weight: 700;
  color: var(--text); margin: 28px 0 10px;
}
.cms-content p { margin-bottom: 14px; color: var(--subtle); }
.cms-content ul {
  list-style: none; padding: 0; margin-bottom: 14px;
}
.cms-content ul li {
  padding: 5px 0 5px 20px; position: relative; color: var(--subtle);
}
.cms-content ul li::before {
  content: '';
  position: absolute; left: 0; top: 14px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}
.cms-content em { color: var(--muted); font-style: normal; font-size: 13px; }

/* ═══════════════════════════════════════════
   ADMIN FORM EXTRAS (textarea, select)
═══════════════════════════════════════════ */
.form-control-textarea {
  min-height: 220px; resize: vertical;
  font-family: var(--ff-body); line-height: 1.6;
}
.form-select {
  width: 100%; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 9px 12px; color: var(--text); font: inherit; font-size: 14px;
  transition: border-color .15s; appearance: none;
}
.form-select:focus { outline: none; border-color: var(--border2); }

/* ═══════════════════════════════════════════
   TEAM PROFILE (team.php)
═══════════════════════════════════════════ */
.team-hero {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 36px 0; position: relative; overflow: hidden;
}
.team-hero-cover {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #37003c 0%, #55006b 100%);
}
.team-hero-cover-crest {
  position: absolute; right: -40px; top: -60px;
  width: 380px; height: 380px; opacity: .04;
  pointer-events: none;
}
.team-hero-cover-crest img { width: 100%; height: 100%; object-fit: contain; }
.team-hero-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 20px;
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 28px;
}
.team-hero-crest-wrap {
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--surface2); border: 3px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.team-hero-crest-wrap img { width: 100%; height: 100%; object-fit: cover; }
.team-hero-info { flex: 1; }
.team-hero-name {
  font-family: var(--ff-display);
  font-size: clamp(28px, 5vw, 52px); font-weight: 800; color: #fff; line-height: 1;
  margin-bottom: 8px;
}
.team-hero-meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.team-hero-meta-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--subtle);
}
.team-hero-meta-item svg { width: 13px; height: 13px; }

/* ═══════════════════════════════════════════
   WEATHER WIDGET
═══════════════════════════════════════════ */
.weather-widget {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--surface2);
  border: 1px solid var(--border); border-radius: var(--r-md);
}
.weather-temp {
  font-family: var(--ff-display); font-size: 36px; font-weight: 800; color: var(--text);
}
.weather-icon { font-size: 32px; }
.weather-detail { flex: 1; }
.weather-desc { font-size: 13px; color: var(--subtle); text-transform: capitalize; }
.weather-location { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ═══════════════════════════════════════════
   SKELETON LOADING
═══════════════════════════════════════════ */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
.skel {
  background: linear-gradient(90deg, var(--surface2) 25%, var(--border) 50%, var(--surface2) 75%);
  background-size: 800px 100%;
  animation: shimmer .9s ease-in-out infinite;
  border-radius: 4px;
}
.skel-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 16px; min-height: 148px;
  display: flex; flex-direction: column; gap: 14px;
}
.skel-line  { height: 12px; }
.skel-circle { border-radius: 50%; }
.skel-teams  { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.skel-team   { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* Content fade-in when data replaces skeleton */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.loaded {
  animation: fadeUp .3s ease both;
}

/* Error / empty state block */
.fetch-error {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 40px 24px; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); color: var(--subtle);
}
.fetch-error svg { color: var(--muted); width: 36px; height: 36px; }
.fetch-error p   { font-size: 14px; line-height: 1.5; margin: 0; }
.fetch-error button {
  margin-top: 4px; padding: 8px 20px; font-size: 13px; font-weight: 600;
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: var(--r-full); color: var(--fg); cursor: pointer;
  transition: border-color .15s, color .15s;
}
.fetch-error button:hover { border-color: var(--accent); color: var(--accent); }

/* ═══════════════════════════════════════════
   LIVESCORE-STYLE APP LAYOUT
═══════════════════════════════════════════ */

/* WC mini countdown bar (slim strip) */
.wc-mini-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 7px 20px;
  display: flex; align-items: center; justify-content: center;
  gap: 10px; font-size: 13px; color: var(--subtle); flex-wrap: wrap;
}
.wc-mini-bar strong { color: var(--accent); font-family: var(--ff-display); font-size: 17px; font-weight: 800; }
.wc-mini-bar .wc-sep { color: var(--border2); }
.wc-mini-bar svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }
.wc-mini-bar .wc-hms {
  font-family: var(--ff-display); font-size: 15px; font-weight: 700; color: var(--text);
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 2px 10px; letter-spacing: 1px;
}

/* Full-width app wrapper — replaces .container on LS pages */
.lf-page {
  display: flex;
  min-height: calc(100vh - 62px);
  max-width: 1240px;
  margin: 0 auto;
}

/* Left sidebar */
.lf-sidebar {
  width: 220px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: 12px 0 40px;
  position: sticky; top: 62px;
  height: calc(100vh - 62px);
  overflow-y: auto;
  scrollbar-width: none;
}
.lf-sidebar::-webkit-scrollbar { display: none; }

.lf-side-label {
  padding: 14px 14px 6px;
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.lf-live-row {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; margin: 2px 8px;
  border-radius: var(--r-md);
  font-size: 13px; font-weight: 600; color: var(--subtle);
  transition: background .12s, color .12s;
}
.lf-live-row:hover, .lf-live-row.has-live:hover { background: var(--surface2); }
.lf-live-row.has-live { color: var(--live); }
.lf-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--muted); flex-shrink: 0; transition: background .2s;
}
.lf-live-row.has-live .lf-live-dot {
  background: var(--live);
  box-shadow: 0 0 6px rgba(233,0,82,.55);
  animation: pulse-live 1.6s ease-in-out infinite;
}
.lf-live-count {
  margin-left: auto; font-size: 11px; font-weight: 700;
  background: var(--live); color: #fff;
  border-radius: var(--r-full); padding: 1px 7px;
}
.lf-comp-list { padding: 2px 8px 8px; }
.lf-comp-link {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 8px; border-radius: var(--r-md);
  font-size: 13px; font-weight: 500; color: var(--subtle);
  transition: background .12s, color .12s;
}
.lf-comp-link:hover { background: var(--surface2); color: var(--text); }
.lf-comp-link.active { background: var(--accent-dim); color: var(--accent); font-weight: 600; }
.lf-comp-icon {
  width: 18px; height: 13px; border-radius: 2px;
  object-fit: cover; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.08);
}
.lf-comp-icon-lg { width: 18px; height: 18px; border-radius: 3px; object-fit: cover; flex-shrink: 0; }
.lf-comp-icon-svg { width: 16px; height: 16px; flex-shrink: 0; color: currentColor; }
.lf-comp-label { flex: 1; }
.lf-comp-count {
  font-size: 10px; font-weight: 700; color: var(--muted);
  background: var(--surface2); padding: 1px 6px; border-radius: var(--r-full);
}
.lf-comp-link.active .lf-comp-count { background: var(--accent-dim2); color: var(--accent); }
.lf-side-divider { height: 1px; background: var(--border); margin: 8px 12px; }

/* Main content column */
.lf-main {
  flex: 1; min-width: 0;
  padding-bottom: 60px;
}

/* Date strip */
.lf-date-strip {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  overflow-x: auto; scrollbar-width: none;
  position: sticky; top: 62px; z-index: 5;
}
.lf-date-strip::-webkit-scrollbar { display: none; }
.lf-date-btn {
  width: 30px; height: 30px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); color: var(--subtle); flex-shrink: 0;
  transition: background .1s, color .1s;
}
.lf-date-btn:hover { background: var(--surface2); color: var(--text); }
.lf-date-btn svg { width: 14px; height: 14px; }
.lf-date-pill {
  padding: 5px 14px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 600; color: var(--subtle);
  border: 1px solid transparent; white-space: nowrap; flex-shrink: 0;
  transition: all .12s;
}
.lf-date-pill:hover { background: var(--surface2); color: var(--text); }
.lf-date-pill.active { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.lf-date-separator { color: var(--border2); font-size: 13px; flex: 1; text-align: center; }

/* Competition section groups */
.lf-section { border-bottom: 1px solid var(--border); }
.lf-section-head {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  background: rgba(28,7,36,.97);
  border-bottom: 1px solid var(--border);
  font-size: 12px; font-weight: 700; color: var(--text);
  position: sticky; top: 112px; z-index: 4;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lf-section-head--live { color: var(--live); background: rgba(233,0,82,.04); }
.lf-section-head--results { color: var(--win); }
.lf-sh-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--live); flex-shrink: 0;
  box-shadow: 0 0 5px rgba(233,0,82,.6);
  animation: pulse-live 1.6s ease-in-out infinite;
}
.lf-section-icon {
  width: 18px; height: 13px; border-radius: 2px; object-fit: cover;
  border: 1px solid rgba(255,255,255,.08); flex-shrink: 0;
}
.lf-section-title { flex: 1; }
.lf-section-link {
  font-size: 11px; color: var(--accent);
  padding: 2px 8px; border-radius: var(--r-full);
  background: var(--accent-dim);
}
.lf-section-link:hover { background: var(--accent-dim2); }

/* ─── Compact match row ─── */
.lf-match {
  display: grid;
  grid-template-columns: 52px 1fr 72px 1fr 32px;
  align-items: center;
  min-height: 46px;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(36,46,69,.5);
  transition: background .1s;
  color: inherit;
}
.lf-match:hover { background: rgba(55,0,60,.35); }
.lf-match:last-child { border-bottom: none; }
.lf-match-time {
  font-size: 12px; font-weight: 600; color: var(--muted);
  text-align: center; line-height: 1.3;
}
.lf-match-time.live  { color: var(--live); }
.lf-match-time.ft    { color: var(--subtle); font-weight: 500; }
.lf-match-home {
  display: flex; align-items: center; gap: 7px;
  justify-content: flex-end; overflow: hidden;
}
.lf-match-away {
  display: flex; align-items: center; gap: 7px;
  overflow: hidden;
}
.lf-match-tname {
  font-size: 13px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lf-match-crest {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; font-size: 8px; font-weight: 700;
  color: var(--muted); flex-shrink: 0;
}
.lf-match-crest img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lf-match-score {
  text-align: center;
  font-family: var(--ff-display); font-size: 15px; font-weight: 800; color: #fff;
}
.lf-match-score.live { color: var(--live); }
.lf-match-score .vs-text {
  font-family: var(--ff-body); font-size: 11px; font-weight: 500; color: var(--muted);
}
.lf-match-actions {
  display: flex; align-items: center; justify-content: center;
}
.lf-match-actions svg { width: 14px; height: 14px; color: var(--border2); }
.lf-match:hover .lf-match-actions svg { color: var(--subtle); }

/* Sidebar countdown widget */
.lf-cd-widget {
  margin: 8px; border-radius: var(--r-md);
  background: var(--accent-dim); border: 1px solid var(--accent-dim2);
  padding: 12px 10px; text-align: center;
}
.lf-cd-title {
  font-size: 9px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.lf-cd-nums {
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.lf-cd-unit {
  flex: 1; text-align: center;
}
.lf-cd-num {
  display: block; font-family: var(--ff-display);
  font-size: 22px; font-weight: 800; color: var(--accent); line-height: 1;
}
.lf-cd-lbl {
  display: block; font-size: 8px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: rgba(0,255,133,.55);
  margin-top: 2px;
}
.lf-cd-sep { font-size: 20px; font-weight: 800; color: rgba(0,255,133,.4); padding-bottom: 6px; }

/* Mobile: sidebar slide-in */
.lf-sidebar-toggle {
  display: none;
  align-items: center; gap: 8px;
  padding: 8px 16px;
  background: var(--surface); border-bottom: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--subtle);
}
.lf-sidebar-toggle svg { width: 16px; height: 16px; }

/* Responsive */
@media (max-width: 920px) {
  .lf-sidebar { width: 180px; }
  .lf-match { grid-template-columns: 44px 1fr 64px 1fr 28px; padding: 7px 12px; }
  .lf-match-tname { font-size: 12px; }
}
@media (max-width: 680px) {
  .lf-page { flex-direction: column; }
  .lf-sidebar {
    display: none; width: 100%; height: auto;
    position: static; border-right: none; border-bottom: 1px solid var(--border);
    flex-direction: row; padding: 0;
    max-height: none; overflow: visible;
  }
  .lf-sidebar.open { display: flex; flex-wrap: wrap; }
  .lf-sidebar-toggle { display: flex; }
  .lf-main { width: 100%; }
  .lf-match { grid-template-columns: 38px 1fr 58px 1fr 24px; padding: 7px 10px; }
  .lf-match-tname { font-size: 11px; }
  .lf-match-crest { width: 18px; height: 18px; }
  .lf-match-score { font-size: 13px; }
  .wc-mini-bar { font-size: 11px; padding: 6px 12px; gap: 7px; }
  .lf-date-strip { top: 62px; padding: 8px 12px; }
  .lf-section-head { top: 108px; }
}

/* ═══════════════════════════════════════════
   ENHANCED ANIMATIONS — EPL feel
═══════════════════════════════════════════ */

/* ── Keyframes ── */
@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-14px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleReveal {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes livePing {
  0%   { transform: scale(1);   opacity: .55; }
  70%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}
@keyframes shimmerBtn {
  from { transform: translateX(-100%); }
  to   { transform: translateX(200%); }
}
@keyframes gradientPan {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes borderPulse {
  0%, 100% { border-color: var(--border); }
  50%       { border-color: var(--accent-dim2); }
}
@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}
@keyframes scoreFlip {
  0%   { transform: rotateX(90deg); opacity: 0; }
  100% { transform: rotateX(0deg);  opacity: 1; }
}
@keyframes accentBarIn {
  from { transform: scaleX(0); transform-origin: left; }
  to   { transform: scaleX(1); transform-origin: left; }
}

/* ── Static header gradient (no continuous animation — faster) ── */
.site-header {
  background: linear-gradient(270deg, #37003c 0%, #55006b 50%, #37003c 100%);
  box-shadow: 0 3px 24px rgba(233,0,82,.18);
}

/* ── Live pill — ping ring ── */
.live-pill {
  position: relative;
  isolation: isolate;
}
.live-pill::before {
  content: '';
  position: absolute; inset: -2px;
  border-radius: inherit;
  background: var(--live);
  opacity: 0;
  animation: livePing 1.8s ease-out infinite;
  z-index: -1;
}

/* ── fx-card — single fast fade-in, no stagger ── */
.fx-grid .fx-card {
  animation: slideUpFade .2s ease both;
}
.fx-card:hover {
  border-color: var(--accent-dim2);
  box-shadow: 0 0 0 1px var(--accent-dim2), var(--sh-lg);
  transform: translateY(-3px);
}
.fx-card:hover .fx-crest {
  border-color: var(--accent);
  transition: border-color .2s;
}

/* ── Match cards (home page grid) ── */
.match-card {
  animation: scaleReveal .3s ease both;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.match-card:hover {
  border-color: var(--accent-dim2);
  box-shadow: 0 0 0 1px var(--accent-dim2), var(--sh-md);
  transform: translateY(-2px);
}

/* ── Accent btn — shimmer on hover ── */
.btn-accent {
  position: relative; overflow: hidden;
}
.btn-accent::after {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  transform: translateX(-200%);
  pointer-events: none;
}
.btn-accent:hover::after {
  animation: shimmerBtn .55s ease forwards;
}

/* ── Countdown numbers — enhanced glow ── */
@keyframes cd-pulse {
  0%, 100% {
    text-shadow:
      0 0 10px rgba(0,255,133,.45),
      0 0 30px rgba(0,255,133,.2),
      0 0 60px rgba(0,255,133,.08);
  }
  50% {
    text-shadow:
      0 0 18px rgba(0,255,133,.8),
      0 0 50px rgba(0,255,133,.35),
      0 0 90px rgba(0,255,133,.15);
  }
}

/* ── Section headings — slide in ── */
.section-heading {
  animation: slideInLeft .3s ease both;
}

/* ── .loaded (JS data replacement) ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.loaded { animation: fadeUp .2s ease both; }

/* ── Sidebar widgets ── */
.sidebar-widget {
  animation: slideUpFade .2s ease both;
}
.card:hover {
  border-color: var(--border2);
  transition: border-color .2s;
}

/* ── Accent underline on active nav ── */
.nav a.active {
  position: relative;
}
.nav a.active::after {
  content: '';
  position: absolute; bottom: -4px; left: 12px; right: 12px;
  height: 2px; border-radius: var(--r-full);
  background: var(--accent);
  animation: accentBarIn .25s ease both;
}

/* ── filter-pill active underline ── */
.filter-pill {
  transition: border-color .15s, color .15s, background .15s, transform .15s;
}
.filter-pill:hover { transform: translateY(-1px); }

/* ── Crest images — subtle float on card hover ── */
.fx-card:hover .fx-crest-wrap {
  animation: floatUp 1.8s ease-in-out infinite;
}

/* ── Status badge live — pulse border ── */
.status-badge.live {
  animation: borderPulse 1.6s ease-in-out infinite;
}

/* ── Score in fx-card — flip in when data loads ── */
.fx-score, .fx-time {
  animation: scoreFlip .3s ease both;
}

/* ── Skeleton shimmer — faster & slightly purple-tinted ── */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}
.skel {
  background: linear-gradient(
    90deg,
    var(--surface2) 25%,
    var(--border)   50%,
    var(--surface2) 75%
  );
  background-size: 1200px 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}

/* ── Page hero — EPL style ── */
.page-hero {
  background: linear-gradient(135deg, #37003c 0%, #1c0e24 100%);
}
.page-hero::before {
  background:
    radial-gradient(ellipse 80% 100% at 0% 50%, rgba(0,255,133,.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 100% 50%, rgba(233,0,82,.06) 0%, transparent 60%);
}

/* ── Accent progress bar ── */
.cd-progress-fill {
  background: linear-gradient(90deg, var(--accent) 0%, rgba(0,255,133,.55) 100%);
  animation: none; /* width set inline by PHP */
}

/* ── WC live banner float ── */
.wc-live-banner {
  animation: floatUp 3s ease-in-out infinite;
}

/* ── Reduce motion — respect accessibility ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ═══════════════════════════════════════════
   LEGACY ALIASES — admin pages (keep until admin is restyled)
═══════════════════════════════════════════ */
:root {
  --pitch-dark:    var(--bg);
  --pitch-navy:    var(--surface);
  --pitch-card:    var(--surface);
  --pitch-border:  var(--border);
  --pitch-green:   var(--accent);
  --pitch-green2:  var(--accent);
  --pitch-blue:    var(--blue);
  --pitch-amber:   var(--draw);
  --pitch-red:     var(--live);
  --pitch-muted:   var(--muted);
  --pitch-text:    var(--text);
  --pitch-subtle:  var(--subtle);
  --font-display:  var(--ff-display);
  --font-body:     var(--ff-body);
  --radius:        var(--r-sm);
  --radius-lg:     var(--r-lg);
}

/* =============================================================================
   2026 UI polish pass
   EPL-inspired, but branded for PrineFans: bold purple navigation, mint actions,
   white content surfaces, compact match data, and responsive app-like behavior.
============================================================================= */
:root {
  --pl-purple: #37003c;
  --pl-purple-2: #25002b;
  --pl-purple-3: #5f0f73;
  --pl-mint: #00ff85;
  --pl-pink: #e90052;
  --pl-cyan: #04f5ff;
  --pl-yellow: #ebff00;
  --page-bg: #f4f2f7;
  --panel: #ffffff;
  --panel-soft: #fbfaff;
  --line: #e5deea;
  --ink: #24112d;
  --ink-soft: #695772;
  --ink-faint: #8d7d96;
  --focus-ring: 0 0 0 3px rgba(0, 255, 133, .35);

  --bg: var(--page-bg);
  --surface: var(--panel);
  --surface2: var(--panel-soft);
  --border: var(--line);
  --border2: #d2c5dc;
  --accent: var(--pl-mint);
  --accent-fg: var(--pl-purple);
  --accent-dim: rgba(0, 255, 133, .16);
  --accent-dim2: rgba(0, 255, 133, .28);
  --live: var(--pl-pink);
  --live-dim: rgba(233, 0, 82, .1);
  --text: var(--ink);
  --subtle: var(--ink-soft);
  --muted: var(--ink-faint);
  --blue: #2187ff;
  --r-md: 8px;
  --r-lg: 8px;
  --r-xl: 10px;
  --sh-sm: 0 1px 2px rgba(55, 0, 60, .08);
  --sh-md: 0 10px 24px rgba(55, 0, 60, .12);
  --sh-lg: 0 18px 44px rgba(55, 0, 60, .18);
}

html { background: var(--page-bg); }
body {
  background:
    linear-gradient(180deg, rgba(55, 0, 60, .08) 0, rgba(244, 242, 247, 0) 360px),
    var(--page-bg);
  color: var(--ink);
  overflow-x: hidden;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.container { max-width: 1280px; padding-inline: 24px; }
.main-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}
.grid-2,
.grid-3,
.grid-4 { align-items: stretch; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.site-header {
  background:
    linear-gradient(90deg, var(--pl-purple) 0%, var(--pl-purple-2) 45%, var(--pl-purple) 100%);
  border-bottom: 4px solid var(--pl-mint);
  animation: none;
  box-shadow: 0 8px 28px rgba(55, 0, 60, .24);
}
.header-inner {
  height: 68px;
  gap: 18px;
  padding-inline: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: max-content;
  font-size: 30px;
  letter-spacing: 0;
  line-height: 1;
}
.logo::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--pl-purple) 0 31%, transparent 32%),
    conic-gradient(from 0deg, var(--pl-mint), var(--pl-cyan), var(--pl-pink), var(--pl-yellow), var(--pl-mint));
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .18);
}
.logo span { color: var(--pl-mint); }

.nav {
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  height: 42px;
  padding: 0 12px;
  border-radius: 6px;
  color: rgba(255, 255, 255, .78);
  white-space: nowrap;
  letter-spacing: 0;
}
.nav a:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}
.nav a.active {
  background: #fff;
  color: var(--pl-purple);
}
.nav a.active svg { stroke: var(--pl-purple); }
.nav a.active::after { display: none; }
.live-pill {
  background: var(--pl-pink);
  color: #fff;
  border-radius: 4px;
}

.header-actions { gap: 8px; }
.search-wrap {
  width: min(240px, 22vw);
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .12);
  border-radius: 6px;
}
.search-wrap input { color: #fff; }
.search-wrap:focus-within {
  border-color: var(--pl-mint);
  box-shadow: var(--focus-ring);
}
.icon-btn {
  height: 40px;
  width: 40px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
}
.avatar {
  border-radius: 6px;
  border-color: rgba(255, 255, 255, .22);
  background: var(--pl-mint);
  color: var(--pl-purple);
}

.comp-strip {
  position: sticky;
  top: 68px;
  z-index: 150;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(55, 0, 60, .06);
}
.comp-strip-inner {
  height: 50px;
  padding-inline: 24px;
}
.comp-pill {
  height: 34px;
  border-radius: 4px;
  border-color: transparent;
  color: var(--ink-soft);
  background: transparent;
  font-weight: 700;
}
.comp-pill:hover {
  color: var(--pl-purple);
  background: rgba(55, 0, 60, .06);
}
.comp-pill.active {
  color: var(--pl-purple);
  background: var(--pl-mint);
  border-color: var(--pl-mint);
}
.strip-chevron {
  border-radius: 4px;
  border-color: var(--line);
  color: var(--ink-soft);
  background: #fff;
}

.ticker {
  background: var(--pl-mint);
  color: var(--pl-purple);
  font-weight: 800;
}

.hero {
  min-height: 500px;
  background:
    linear-gradient(120deg, rgba(55, 0, 60, .96), rgba(55, 0, 60, .82)),
    url("https://images.unsplash.com/photo-1522778119026-d647f0596c20?auto=format&fit=crop&w=1800&q=80") center/cover;
  border-bottom: 0;
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 11px;
  background: linear-gradient(90deg, var(--pl-mint), var(--pl-cyan), var(--pl-pink), var(--pl-yellow));
}
.hero-bg { display: none; }
.hero-content { padding: clamp(32px, 6vw, 74px); }
.hero-comp-label {
  color: var(--pl-mint);
  font-weight: 800;
}
.hero-headline {
  max-width: 760px;
  font-size: clamp(44px, 6vw, 82px);
  letter-spacing: 0;
  text-wrap: balance;
}
.hero-headline em {
  color: var(--pl-mint);
  text-shadow: 0 0 26px rgba(0, 255, 133, .25);
}
.hero-match {
  width: min(100%, 640px);
  max-width: none;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 20px 45px rgba(0, 0, 0, .22);
  backdrop-filter: blur(12px);
}
.hero-crest,
.hero-stats-crest {
  background: #fff;
  border-color: rgba(255, 255, 255, .48);
  color: var(--pl-purple);
}
.hero-team-name,
.hero-score { color: #fff; }
.hero-vs,
.hero-venue,
.hero-scorer { color: rgba(255, 255, 255, .72); }
.hero-panel {
  width: 320px;
  background: rgba(37, 0, 43, .72);
  border-left: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(12px);
}
.hero-panel-tab {
  border-radius: 6px;
  color: rgba(255, 255, 255, .76);
}
.hero-panel-tab.active {
  color: var(--pl-purple);
  background: var(--pl-mint);
}
.hero-panel-tab:hover:not(.active) {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.countdown-section {
  margin: 0;
  padding: 34px 24px;
  background:
    linear-gradient(90deg, #fff 0%, #fff 62%, rgba(0, 255, 133, .22) 62%, rgba(4, 245, 255, .16) 100%);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.countdown-label-top,
.countdown-heading,
.countdown-number {
  color: var(--pl-purple);
  letter-spacing: 0;
}
.countdown-label-top svg,
.countdown-sub svg { color: var(--pl-pink); }
.countdown-units { gap: 10px; }
.countdown-unit {
  min-width: 110px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--sh-sm);
}
.countdown-unit-label,
.countdown-sub,
.cd-progress-label { color: var(--ink-soft); }
.cd-progress-track {
  height: 10px;
  background: #e9e2ee;
}
.cd-progress-fill {
  background: linear-gradient(90deg, var(--pl-pink), var(--pl-mint));
}
.cd-host-item {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(55, 0, 60, .98), rgba(55, 0, 60, .7)),
    url("https://images.unsplash.com/photo-1518604666860-9ed391f76460?auto=format&fit=crop&w=1800&q=80") center/cover;
  border-bottom: 10px solid transparent;
  border-image: linear-gradient(90deg, var(--pl-mint), var(--pl-cyan), var(--pl-pink), var(--pl-yellow)) 1;
}
.page-hero::before {
  background:
    linear-gradient(90deg, rgba(0, 255, 133, .1), transparent 36%),
    radial-gradient(circle at 92% 20%, rgba(235, 255, 0, .2), transparent 22%);
}
.page-hero-inner {
  max-width: 1280px;
  padding: clamp(42px, 7vw, 76px) 24px;
}
.page-hero-label {
  color: var(--pl-mint);
  font-weight: 800;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing: 0;
  text-wrap: balance;
}
.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, .78);
}
.page-hero-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.page-hero-stats > div {
  min-width: 132px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px);
}
.page-hero-stat-val { color: var(--pl-mint); }
.page-hero-stat-lbl { color: rgba(255, 255, 255, .72); }

.section-heading {
  color: var(--pl-purple);
  font-size: 25px;
  letter-spacing: 0;
  border-bottom: 3px solid var(--pl-purple);
  padding-bottom: 10px;
  margin-bottom: 18px;
}
.section-heading svg { color: var(--pl-pink); }
.section-heading a {
  color: var(--pl-purple);
  background: var(--pl-mint);
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 12px;
  font-family: var(--ff-body);
}

.card,
.match-card,
.pred-card,
.team-card,
.venue-card,
.fx-card,
.fx-skel-card,
.skel-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--sh-sm);
}
.card:hover,
.match-card:hover,
.pred-card:hover,
.team-card:hover,
.venue-card:hover,
.fx-card:hover {
  border-color: #c9b7d4;
  box-shadow: var(--sh-md);
}
.card-header {
  min-height: 52px;
  border-bottom-color: var(--line);
  background: linear-gradient(180deg, #fff, #fbfaff);
}
.card-header-title {
  color: var(--pl-purple);
  letter-spacing: 0;
}
.card-header-title svg { color: var(--pl-pink); }

.btn,
.filter-pill,
.partner-link,
.tab {
  border-radius: 6px;
  min-height: 38px;
  font-weight: 800;
}
.btn-accent,
.filter-pill.active,
.tab.active {
  background: var(--pl-mint);
  border-color: var(--pl-mint);
  color: var(--pl-purple);
}
.btn-accent:hover,
.filter-pill.active:hover,
.tab.active:hover {
  background: #49ffa8;
  color: var(--pl-purple);
}
.btn-outline,
.btn-ghost,
.filter-pill,
.tab {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--pl-purple);
}
.btn-outline:hover,
.btn-ghost:hover,
.filter-pill:hover,
.tab:hover {
  border-color: var(--pl-purple);
  background: rgba(55, 0, 60, .06);
}
.filter-bar,
.tabs {
  gap: 8px;
  flex-wrap: wrap;
}

.match-card {
  padding: 16px;
  color: var(--ink);
}
.match-card:hover,
.fx-card:hover {
  transform: translateY(-3px);
}
.match-comp,
.fx-stage {
  color: var(--pl-purple);
  font-weight: 800;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 4px;
  padding: 4px 8px;
}
.status-badge.live {
  background: var(--live);
  color: #fff;
  animation: none;
}
.status-badge.ft {
  background: rgba(0, 126, 67, .1);
  color: #007e43;
}
.status-badge.ns {
  background: rgba(55, 0, 60, .08);
  color: var(--ink-soft);
}
.team-crest,
.pred-crest,
.fx-crest,
.match-list-crest,
.standings-crest,
.team-card-crest {
  background: #fff;
  border-color: var(--line);
  color: var(--pl-purple);
  box-shadow: 0 3px 10px rgba(55, 0, 60, .08);
}
.team-name,
.pred-team-name,
.fx-name,
.match-list-team,
.standings-team,
.team-card-name {
  color: var(--ink);
  overflow-wrap: anywhere;
}
.match-score,
.fx-score,
.fx-time,
.match-list-score {
  color: var(--pl-purple);
  letter-spacing: 0;
}
.match-vs,
.pred-vs {
  color: var(--pl-pink);
}
.match-card-foot,
.pred-card-foot,
.fx-card-foot {
  border-top-color: var(--line);
  color: var(--ink-soft);
}
.match-ai-link,
.ai-badge {
  color: var(--pl-purple);
  background: var(--accent-dim);
  border-radius: 4px;
  font-weight: 800;
}

.fixture-day { margin-bottom: 26px; }
.fixture-day-header {
  align-items: center;
  margin-bottom: 12px;
}
.fixture-day-date {
  color: var(--pl-purple);
  font-size: 18px;
  font-weight: 800;
}
.fixture-day-line { background: var(--line); }
.fixture-day-count {
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
}
.fx-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.fx-card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  overflow: hidden;
}
.fx-card-top,
.pred-card-head {
  background: linear-gradient(180deg, #fff, #fbfaff);
  border-bottom: 1px solid var(--line);
}
.fx-card-body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr);
  align-items: center;
}
.fx-team,
.pred-team {
  min-width: 0;
}
.fx-name,
.pred-team-name {
  display: block;
  max-width: 100%;
  text-align: center;
  line-height: 1.25;
}
.fx-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.fx-venue {
  min-width: 0;
  overflow: hidden;
}
a.fx-venue:hover { background: rgba(55,0,60,.06); color: var(--pl-purple); }

.pred-card {
  overflow: hidden;
}
.pred-card-teams {
  min-height: 144px;
}
.pred-track {
  background: #ece5f1;
}
.pred-track .home { background: var(--pl-mint); }
.pred-track .draw { background: var(--pl-yellow); }
.pred-track .away { background: var(--pl-pink); }
.pred-pcts .home,
.pred-labels span:first-child { color: #008f4e; }
.pred-pcts .draw,
.pred-labels span:nth-child(2) { color: #8d7900; }
.pred-pcts .away,
.pred-labels span:last-child { color: var(--pl-pink); }

.team-card,
.venue-card {
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.team-card:hover,
.venue-card:hover { transform: translateY(-3px); }
.team-card-cover,
.venue-banner {
  background: linear-gradient(135deg, var(--pl-purple), var(--pl-purple-3));
}
.group-badge {
  background: var(--pl-mint);
  color: var(--pl-purple);
  border-radius: 4px;
  font-weight: 900;
}
.team-card-stats,
.team-stat,
.venue-detail {
  border-color: var(--line);
}
.team-stat-val,
.venue-name { color: var(--pl-purple); }

.team-hero,
.venue-detail-hero {
  background:
    linear-gradient(115deg, rgba(55, 0, 60, .94), rgba(55, 0, 60, .7)),
    url("https://images.unsplash.com/photo-1556056504-5c7696c4c28d?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: #fff;
}
.team-hero-name,
.venue-detail-hero h1 { color: #fff; }
.team-hero-meta,
.venue-detail-hero p { color: rgba(255, 255, 255, .78); }
.tabs {
  border-bottom: 1px solid var(--line);
}

.match-list-row {
  grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--sh-sm);
}
.match-list-row:hover {
  border-color: #c9b7d4;
  box-shadow: var(--sh-md);
}
.match-list-home,
.match-list-away {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.match-list-home { justify-content: flex-end; }
.match-list-away { justify-content: flex-start; }
.match-list-meta {
  color: var(--ink-soft);
  text-align: right;
}

.standings-row {
  grid-template-columns: 26px 30px minmax(0, 1fr) 34px 34px;
  color: var(--ink);
}
.standings-pos,
.standings-gp { color: var(--ink-soft); }
.standings-pts {
  color: var(--pl-purple);
  font-weight: 900;
}

.partner-strip { gap: 10px; }
.partner-link {
  color: var(--pl-purple);
  background: rgba(55, 0, 60, .05);
  border: 1px solid var(--line);
}
.partner-link:hover {
  background: var(--pl-mint);
  border-color: var(--pl-mint);
}

.site-footer {
  background: var(--pl-purple);
  color: rgba(255, 255, 255, .78);
  border-top: 6px solid var(--pl-mint);
}
.site-footer .logo,
.site-footer h4 { color: #fff; }
.site-footer a:hover { color: var(--pl-mint); }
.footer-divider { border-color: rgba(255, 255, 255, .14); }
.footer-bottom { color: rgba(255, 255, 255, .58); }

.ad-slot,
.fetch-error {
  border: 1px dashed #d4c7de;
  background: rgba(255, 255, 255, .62);
  color: var(--ink-soft);
}
.skel {
  background: linear-gradient(90deg, #ece5f1 25%, #f9f6fc 50%, #ece5f1 75%);
  background-size: 1200px 100%;
}

.match-strip {
  background: rgba(255, 255, 255, .94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.strip-card {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.strip-card.active {
  border-color: var(--pl-mint);
  box-shadow: 0 0 0 2px rgba(0, 255, 133, .28);
}
.strip-status { color: var(--pl-pink); }
.strip-score { color: var(--pl-purple); }

@media (max-width: 1120px) {
  .header-actions .icon-btn,
  .header-actions .avatar { display: none; }
  .search-wrap { width: 190px; }
  .main-layout { grid-template-columns: minmax(0, 1fr); }
  .main-layout > aside {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .header-inner {
    height: auto;
    min-height: 66px;
    flex-wrap: wrap;
    padding-block: 10px;
  }
  .site-header { position: relative; }
  .comp-strip {
    top: 0;
    position: sticky;
  }
  .nav {
    order: 3;
    flex-basis: 100%;
    padding-bottom: 2px;
  }
  .search-wrap { width: min(260px, 42vw); }
  .hero {
    min-height: 0;
    flex-direction: column;
  }
  .hero-panel {
    width: 100%;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
  }
  .hero-panel-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .hero-panel-tab { text-align: center; }
  .grid-3,
  .fx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .container { padding-inline: 16px; }
  .header-inner { padding-inline: 16px; }
  .logo { font-size: 26px; }
  .search-wrap { display: none; }
  .nav a {
    flex: 0 0 auto;
    padding-inline: 10px;
  }
  .nav a span:not(.live-pill) { display: none; }
  .nav a svg { width: 19px; height: 19px; }
  .nav a .live-pill {
    display: inline-flex;
    width: 38px;
    height: 38px;
    justify-content: center;
    padding: 0;
    font-size: 0;
  }
  .nav a .live-pill svg {
    width: 18px;
    height: 18px;
  }
  .comp-strip-inner { padding-inline: 12px; }
  .strip-chevron { display: none; }
  .hero-content { padding: 34px 16px 40px; }
  .hero-headline { font-size: clamp(38px, 13vw, 54px); }
  .hero-match {
    padding: 14px;
    gap: 8px;
  }
  .hero-crest { width: 50px; height: 50px; }
  .hero-score { font-size: 40px; }
  .hero-panel-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .countdown-section {
    padding: 26px 16px;
    background: #fff;
  }
  .countdown-units {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .countdown-unit { min-width: 0; }
  .page-hero-inner { padding-inline: 16px; }
  .page-hero h1 { font-size: clamp(36px, 12vw, 52px); }
  .page-hero-stats > div { flex: 1 1 130px; }
  .grid-2,
  .grid-3,
  .grid-4,
  .fx-grid,
  .main-layout > aside { grid-template-columns: 1fr; }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .match-card,
  .pred-card,
  .card-body { padding: 14px; }
  .fx-card-body {
    grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr);
    padding: 14px 10px;
  }
  .fx-crest,
  .pred-crest { width: 46px; height: 46px; }
  .fx-actions .btn-ghost { display: none; }
  .match-list-row {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .match-list-home,
  .match-list-away,
  .match-list-meta {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 460px) {
  body { font-size: 14px; }
  .hero-match,
  .match-teams,
  .pred-card-teams {
    grid-template-columns: 1fr;
  }
  .match-teams,
  .pred-card-teams {
    display: grid;
  }
  .team-side,
  .pred-team {
    flex-direction: row;
    justify-content: center;
  }
  .match-score,
  .pred-vs {
    order: 2;
    margin-block: 8px;
  }
  .match-card-foot,
  .pred-card-foot,
  .fx-card-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .fx-actions { justify-content: stretch; }
  .fx-actions .btn { flex: 1; justify-content: center; }
}

/* =============================================================================
   New feature styles — cookie consent, notifications, highlights, news, auth
============================================================================= */

/* ─── Cookie consent banner ─── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--pl-purple);
  color: rgba(255, 255, 255, .92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  box-shadow: 0 -6px 28px rgba(55, 0, 60, .36);
  border-top: 3px solid var(--pl-mint);
  animation: cookieSlideUp .32s ease;
}
.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1200px;
  width: 100%;
}
.cookie-icon { flex-shrink: 0; color: var(--pl-mint); }
.cookie-text { flex: 1; font-size: 14px; line-height: 1.55; min-width: 180px; }
.cookie-text a { color: var(--pl-mint); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
@keyframes cookieSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes slideDown {
  from { transform: translateY(0);    opacity: 1; }
  to   { transform: translateY(100%); opacity: 0; }
}

/* ─── Notification bell badge ─── */
.notif-bell-wrap {
  position: relative;
  display: inline-flex;
}
.notif-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 9px;
  height: 9px;
  background: var(--pl-pink);
  border-radius: 50%;
  border: 2px solid var(--pl-purple);
  animation: badgePulse 1.6s ease infinite;
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1);   box-shadow: 0 0 0 0 rgba(233, 0, 82, .5); }
  50%       { transform: scale(1.3); box-shadow: 0 0 0 4px rgba(233, 0, 82, 0); }
}
.notif-toast {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 8888;
  background: var(--pl-purple);
  color: #fff;
  padding: 14px 18px;
  border-radius: 8px;
  border-left: 4px solid var(--pl-mint);
  box-shadow: var(--sh-lg);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn .3s ease;
  max-width: 320px;
}
@keyframes toastIn { from { transform: translateX(120%); } to { transform: translateX(0); } }
.notif-toast-close { cursor: pointer; color: rgba(255, 255, 255, .6); margin-left: auto; flex-shrink: 0; }

/* ─── Highlights / YouTube page ─── */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.highlight-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--sh-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.highlight-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: #c9b7d4;
}
.highlight-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.highlight-thumb img { width: 100%; height: 100%; object-fit: cover; }
.highlight-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(55, 0, 60, .46);
  color: #fff;
  opacity: 0;
  transition: opacity .22s;
}
.highlight-card:hover .highlight-play { opacity: 1; }
.highlight-play svg { width: 48px; height: 48px; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .6)); }
.highlight-body { padding: 14px; flex: 1; }
.highlight-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.highlight-meta {
  font-size: 12px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.highlight-channel { color: var(--pl-pink); font-weight: 700; }
.yt-embed-wrap { aspect-ratio: 16 / 9; background: #000; }
.yt-embed-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ─── News page ─── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.news-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--sh-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: #c9b7d4;
}
.news-card-featured {
  grid-column: 1 / -1;
  flex-direction: row;
}
.news-card-featured .news-thumb { flex: 0 0 320px; aspect-ratio: auto; height: 220px; }
.news-thumb {
  position: relative;
  aspect-ratio: 16 / 8;
  background: linear-gradient(135deg, var(--pl-purple), var(--pl-purple-3));
  overflow: hidden;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .28);
}
.news-thumb-placeholder svg { width: 44px; height: 44px; }
.news-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.news-source {
  font-size: 11px;
  font-weight: 800;
  color: var(--pl-pink);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.news-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.44;
  margin-bottom: 6px;
}
.news-card-featured .news-title { font-size: 18px; }
.news-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.news-date { font-size: 11px; color: var(--muted); margin-top: 8px; }
.news-filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }

/* ─── Auth / user account pages ─── */
.auth-wrap {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}
.auth-card { width: 100%; max-width: 440px; }
.auth-logo { font-size: 34px; margin-bottom: 8px; display: block; text-align: center; }
.auth-subtitle { color: var(--subtle); font-size: 13px; text-align: center; margin-bottom: 28px; }
.auth-divider {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin: 20px 0;
  position: relative;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 44%;
  height: 1px;
  background: var(--line);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

/* ─── Responsive overrides for new features ─── */
@media (max-width: 920px) {
  .highlight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-card-featured { flex-direction: column; }
  .news-card-featured .news-thumb { flex: none; height: auto; aspect-ratio: 16 / 8; }
}
@media (max-width: 720px) {
  .highlight-grid,
  .news-grid { grid-template-columns: 1fr; }
  .cookie-banner { padding: 14px 16px; }
  .cookie-banner-inner { gap: 12px; }
  .cookie-text { font-size: 13px; }
}

/* ─── WC HISTORICAL FACTS SCROLL ─────────────────────────────────────────── */
.wc-facts-section {
  background: linear-gradient(135deg, #1a0a2e 0%, #0f1729 100%);
  padding: 36px 0 40px;
  overflow: hidden;
}
.wc-facts-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 0 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--pl-purple) transparent;
}
.wc-facts-scroll::-webkit-scrollbar { height: 4px; }
.wc-facts-scroll::-webkit-scrollbar-track { background: transparent; }
.wc-facts-scroll::-webkit-scrollbar-thumb { background: var(--pl-purple); border-radius: 2px; }

.wc-fact-card {
  flex: 0 0 240px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 20px 18px 18px;
  scroll-snap-align: start;
  transition: transform .2s, border-color .2s;
}
.wc-fact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0,255,133,0.35);
}
.wc-fact-card.wc-fact-gold {
  border-color: rgba(255,193,7,0.3);
  background: rgba(255,193,7,0.07);
}
.wc-fact-card.wc-fact-blue {
  border-color: rgba(0,150,255,0.3);
  background: rgba(0,150,255,0.07);
}
.wc-fact-year {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.wc-fact-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 10px;
}
.wc-fact-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
  font-family: var(--ff-display);
}
.wc-fact-body {
  font-size: 12.5px;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
}

/* ─── H2H FIXTURE PANEL ──────────────────────────────────────────────────── */
.fx-card-wrap { position: relative; }
.h2h-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 8px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--r-md) var(--r-md);
  color: var(--subtle);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.h2h-toggle-btn:hover, .h2h-toggle-btn[aria-expanded=true] {
  background: var(--accent-dim);
  color: var(--accent);
}
.h2h-toggle-btn i { width: 13px; height: 13px; }
.h2h-panel {
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--r-md) var(--r-md);
  background: var(--surface);
  padding: 16px;
  overflow: hidden;
}
.h2h-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding: 8px 0;
}
.h2h-empty { font-size: 13px; color: var(--muted); padding: 4px 0; }
.h2h-summary {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.h2h-box {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  border-radius: var(--r-sm);
  background: var(--bg);
}
.h2h-num { font-size: 22px; font-weight: 800; }
.h2h-lbl { font-size: 10px; color: var(--muted); margin-top: 2px; }
.h2h-home .h2h-num { color: var(--blue); }
.h2h-draw .h2h-num { color: var(--draw); }
.h2h-away .h2h-num { color: var(--live); }
.h2h-history { display: grid; gap: 8px; }
.h2h-row {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
}
.h2h-meta { font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.h2h-comp { font-style: italic; }
.h2h-matchup { font-size: 13px; color: var(--ink); }
.h2h-matchup strong { color: var(--accent); margin: 0 4px; }
.h2h-alltime { margin-bottom: 16px; }
.h2h-alltime-label { font-size: 11px; font-weight: 700; color: var(--subtle); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.h2h-alltime-sublabel { font-size: 11px; font-weight: 700; color: var(--subtle); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.h2h-notable { font-size: 12px; color: var(--subtle); font-style: italic; line-height: 1.5; margin-bottom: 12px; padding: 10px 12px; background: var(--bg); border-left: 3px solid var(--accent); border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* ═══════════════════════════════════════════════════════════
   NOTIFICATION + CHAT BAR
   ═══════════════════════════════════════════════════════════ */
.notif-chat-bar {
  background: #1a0024;
  border-bottom: 1px solid rgba(255,255,255,.06);
  width: 100%;
  z-index: 200;
}
.notif-chat-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.notif-bar-left { flex: 1; overflow: hidden; }
.notif-bar-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif-bar-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.75)}
}
.notif-bar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.notif-bar-support-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 20px;
  border: 1px solid rgba(233,0,82,.35);
  background: rgba(233,0,82,.08);
  color: #ff4d88; font-size: 12px; font-weight: 700;
  cursor: pointer; transition: background .2s;
}
.notif-bar-support-btn:hover { background: rgba(233,0,82,.18); }
.notif-bar-chat-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 20px;
  border: 1px solid rgba(0,255,133,.35);
  background: rgba(0,255,133,.08);
  color: var(--accent); font-size: 12px; font-weight: 700;
  cursor: pointer; transition: background .2s; position: relative;
}
.notif-bar-chat-btn:hover { background: rgba(0,255,133,.18); }
.notif-bar-chat-badge {
  display: flex; align-items: center; justify-content: center;
  background: var(--live); color: #fff;
  font-size: 10px; font-weight: 800;
  min-width: 16px; height: 16px; border-radius: 10px;
  padding: 0 3px; margin-left: 2px;
}
.notif-bar-bell {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
  background: transparent; color: rgba(255,255,255,.5);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  position: relative; transition: color .2s, border-color .2s;
}
.notif-bar-bell:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.notif-bar-bell-dot {
  position: absolute; top: 3px; right: 3px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--live); border: 1px solid #1a0024;
}

/* ═══════════════════════════════════════════════════════════
   USER PILL (header logged-in state)
   ═══════════════════════════════════════════════════════════ */
.user-pill {
  display: flex; align-items: center; gap: 7px;
  padding: 4px 10px 4px 4px; border-radius: 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  cursor: default; max-width: 160px;
}
.user-pill-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.user-pill-name {
  font-size: 12px; font-weight: 700; color: rgba(255,255,255,.9);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.user-pill-badge { font-size: 14px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   CHAT FAB (mobile floating button)
   ═══════════════════════════════════════════════════════════ */
.chat-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 3000;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--pl-purple); color: var(--accent);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(55,0,60,.5);
  transition: transform .2s, box-shadow .2s;
}
.chat-fab svg { width: 24px; height: 24px; }
.chat-fab:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(55,0,60,.7); }
.chat-fab.hidden { display: none; }
.chat-fab-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; border-radius: 10px;
  background: var(--live); color: #fff;
  font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; border: 2px solid var(--bg);
}

/* ═══════════════════════════════════════════════════════════
   CHAT DRAWER
   ═══════════════════════════════════════════════════════════ */
.chat-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 2990;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.chat-drawer {
  position: fixed; bottom: 0; right: 0; z-index: 3001;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 40px rgba(0,0,0,.35);
  width: 100%; max-width: 420px;
  height: 70vh; max-height: 640px;
}
@media (min-width: 768px) {
  .chat-drawer {
    bottom: 88px; right: 24px;
    border-radius: 16px; height: 540px; width: 370px;
    max-width: 370px;
  }
  /* Keep FAB visible on desktop — sits above it */
  .chat-fab { bottom: 24px; right: 24px; }
}
/* Fullscreen mode */
.chat-drawer.chat-fullscreen {
  bottom: 0 !important; right: 0 !important;
  width: 100% !important; max-width: 100% !important;
  height: 100vh !important; max-height: 100vh !important;
  border-radius: 0 !important;
  z-index: 99999;
}
.chat-drawer.chat-fullscreen .chat-hd { border-radius: 0; }
.chat-drawer-inner {
  display: flex; flex-direction: column;
  height: 100%; overflow: hidden; border-radius: inherit;
}
.chat-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: var(--pl-purple);
  border-radius: 16px 16px 0 0; flex-shrink: 0;
}
.chat-hd-left { display: flex; align-items: center; gap: 10px; }
.chat-hd-icon { font-size: 22px; }
.chat-hd-title { font-size: 15px; font-weight: 800; color: #fff; }
.chat-hd-sub { font-size: 11px; color: rgba(255,255,255,.6); margin-top: 1px; }
.chat-close-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: none; color: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.chat-close-btn svg { width: 16px; height: 16px; }
.chat-close-btn:hover { background: rgba(255,255,255,.2); }
.chat-login-prompt {
  flex-direction: column; align-items: center;
  text-align: center; padding: 32px 24px; flex: 1;
}
.chat-messages {
  flex: 1; overflow-y: auto; padding: 12px;
  display: flex; flex-direction: column; gap: 10px;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }
.chat-loading {
  display: flex; gap: 6px; align-items: center;
  justify-content: center; padding: 24px;
}
.chat-loading-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--muted);
  animation: chat-bounce .9s ease-in-out infinite;
}
.chat-loading-dot:nth-child(2){animation-delay:.15s}
.chat-loading-dot:nth-child(3){animation-delay:.3s}
@keyframes chat-bounce{0%,80%,100%{transform:scale(.8);opacity:.5}40%{transform:scale(1);opacity:1}}
.chat-msg {
  display: flex; align-items: flex-start; gap: 8px;
  animation: chat-slide-in .2s ease;
}
@keyframes chat-slide-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.chat-msg-mine { flex-direction: row-reverse; }
.chat-msg-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff;
}
.chat-msg-body-wrap { max-width: 75%; }
.chat-msg-meta {
  display: flex; align-items: center; gap: 5px;
  margin-bottom: 4px; flex-wrap: wrap;
}
.chat-msg-mine .chat-msg-meta { justify-content: flex-end; }
.chat-msg-name { font-size: 12px; font-weight: 700; color: var(--ink); }
.chat-msg-flag { font-size: 10px; color: var(--muted); }
.chat-msg-badge { font-size: 12px; }
.chat-msg-time { font-size: 10px; color: var(--muted); }
.chat-msg-text {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 0 12px 12px 12px;
  padding: 8px 12px; font-size: 13px; color: var(--ink);
  line-height: 1.5; word-break: break-word;
}
.chat-msg-mine .chat-msg-text {
  background: var(--pl-purple); border-color: var(--pl-purple); color: #fff;
  border-radius: 12px 0 12px 12px;
}
.chat-msg-img img {
  max-width: 200px; border-radius: 8px;
  cursor: zoom-in; border: 1px solid var(--line);
}
.chat-msg-gift {
  display: flex; align-items: center; gap: 8px;
  background: rgba(0,255,133,.06);
  border: 1px solid rgba(0,255,133,.25);
  border-radius: 12px; padding: 8px 14px;
}
.chat-gift-emoji-big { font-size: 28px; }
.chat-msg-gift-label { font-size: 13px; font-weight: 700; color: var(--accent); }
.chat-input-bar {
  border-top: 1px solid var(--line); padding: 8px;
  display: flex; flex-direction: column; gap: 6px; flex-shrink: 0;
}
.chat-input-row { display: flex; align-items: center; gap: 6px; }
.chat-text-input {
  flex: 1; border: 1px solid var(--line); border-radius: 20px;
  padding: 8px 14px; font-size: 13px;
  background: var(--bg); color: var(--ink); outline: none;
}
.chat-text-input:focus { border-color: var(--pl-purple); }
.chat-send-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #000; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: transform .15s;
}
.chat-send-btn:hover { transform: scale(1.08); }
.chat-action-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg);
  color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: border-color .15s, color .15s;
}
.chat-action-btn:hover { border-color: var(--pl-purple); color: var(--pl-purple); }
.chat-gift-tray {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px; display: flex;
}
.chat-gift-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 6px; width: 100%;
}
.chat-gift-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 4px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--surface);
  cursor: pointer; transition: border-color .15s, transform .15s;
}
.chat-gift-item:hover { border-color: var(--accent); transform: scale(1.05); }
.chat-gift-emoji { font-size: 20px; }
.chat-gift-label { font-size: 9px; color: var(--muted); }

/* ═══════════════════════════════════════════════════════════
   GAMIFICATION BADGE DISPLAY
   ═══════════════════════════════════════════════════════════ */
.badge-level-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border: 1px solid var(--line);
  border-radius: var(--r-md); background: var(--surface);
}
.badge-level-item.active {
  border-color: var(--accent); background: rgba(0,255,133,.05);
}
.badge-icon-big { font-size: 28px; flex-shrink: 0; }
.badge-level-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.badge-level-desc { font-size: 12px; color: var(--subtle); margin-top: 2px; }
.badge-level-threshold { font-size: 11px; color: var(--muted); margin-top: 4px; }
.badge-active-tag {
  font-size: 10px; font-weight: 700; color: #000;
  background: var(--accent); border-radius: 12px;
  padding: 2px 8px; flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   HEADER USER DROPDOWN
   ═══════════════════════════════════════════════════════════ */
.user-dropdown-wrap { position: relative; }
.user-pill {
  background: none;
  border: 1px solid rgba(255,255,255,.15);
  cursor: pointer;
}
.user-pill:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.05); }
.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: 0 8px 32px rgba(0,0,0,.25);
  min-width: 220px; z-index: 9999; overflow: hidden;
  animation: dropdown-in .15s ease;
}
@keyframes dropdown-in { from{opacity:0;transform:translateY(-6px)} to{opacity:1;transform:none} }
.user-dropdown-header {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.user-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; font-size: 13px; color: var(--ink);
  text-decoration: none; transition: background .15s;
}
.user-dropdown-item:hover { background: var(--bg); color: var(--accent); }
.user-dropdown-item i, .user-dropdown-item [data-lucide] { width: 15px; height: 15px; }
.user-dropdown-divider { border-top: 1px solid var(--line); margin: 0; }
.user-dropdown-danger { color: var(--live) !important; }
.user-dropdown-danger:hover { background: rgba(233,0,82,.06) !important; }
.header-signin-btn { display: none; }
@media (min-width: 640px) { .header-signin-btn { display: inline-flex; } }

/* ═══════════════════════════════════════════════════════════
   GAMIFICATION BADGE CARDS — visual design
   ═══════════════════════════════════════════════════════════ */
.pf-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  font-size: 22px; font-weight: 900;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
  position: relative; flex-shrink: 0;
}
.pf-badge::after {
  content: ''; position: absolute; inset: 3px;
  border-radius: 50%; border: 2px solid rgba(255,255,255,.25);
}
.pf-badge-sm { width: 32px; height: 32px; font-size: 15px; }
.pf-badge-lg { width: 64px; height: 64px; font-size: 30px; }
.badge-lv1  { background: linear-gradient(135deg,#4a5568,#718096); }
.badge-lv2  { background: linear-gradient(135deg,#2b6cb0,#3182ce); }
.badge-lv3  { background: linear-gradient(135deg,#276749,#38a169); }
.badge-lv4  { background: linear-gradient(135deg,#c05621,#ed8936); }
.badge-lv5  { background: linear-gradient(135deg,#9b2c2c,#e53e3e); }
.badge-lv6  { background: linear-gradient(135deg,#553c9a,#805ad5); }
.badge-lv7  { background: linear-gradient(135deg,#1a365d,#2b6cb0); }
.badge-lv8  { background: linear-gradient(135deg,#744210,#d69e2e); }
.badge-lv9  { background: linear-gradient(135deg,#652b19,#c05621); }
.badge-lv10 { background: linear-gradient(135deg,#1a202c,#00ff85); color: #000; }

/* ═══════════════════════════════════════════════════════════
   WC FACTS CAROUSEL — one full-width card per view
   ═══════════════════════════════════════════════════════════ */
.facts-carousel-section {
  position: relative; padding: 0 0 24px;
}
.facts-carousel-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; padding: 0 2px;
}
.facts-carousel-nav-btns { display: flex; gap: 8px; }
.facts-carousel-track-wrap {
  overflow: hidden; cursor: grab; -webkit-user-select: none; user-select: none;
  border-radius: 16px;
}
.facts-carousel-track-wrap:active { cursor: grabbing; }
.facts-carousel-track {
  display: flex; gap: 0;
  transition: transform .48s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
}

/* ── Single full-width slide card ── */
.facts-slide-card {
  flex: 0 0 100%; width: 100%;
  min-height: 260px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: 0 6px 32px rgba(0,0,0,.28);
}
/* Theme gradients */
.facts-slide-card.gold   { background: linear-gradient(150deg, #5a3e00 0%, #996900 40%, #c9920a 70%, #e8b422 100%); }
.facts-slide-card.blue   { background: linear-gradient(150deg, #06133a 0%, #0f2458 40%, #1a3d99 70%, #2255cc 100%); }
.facts-slide-card.purple { background: linear-gradient(150deg, #1f0024 0%, #3d0048 40%, #6a0080 70%, #9b00cc 100%); }
.facts-slide-card.red    { background: linear-gradient(150deg, #3d0000 0%, #6e0a0a 40%, #a01515 70%, #cc2020 100%); }
.facts-slide-card.green  { background: linear-gradient(150deg, #032b1e 0%, #054a33 40%, #0a7550 70%, #0ea468 100%); }
.facts-slide-card.teal   { background: linear-gradient(150deg, #012a2a 0%, #034747 40%, #0a7272 70%, #0fa0a0 100%); }
.facts-slide-card.orange { background: linear-gradient(150deg, #3d1900 0%, #7a3200 40%, #b85000 70%, #e06c00 100%); }

/* Flag texture — background image blended in */
.facts-slide-flag-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .10; mix-blend-mode: luminosity;
  pointer-events: none;
}

/* Large watermark year number */
.facts-slide-year-wm {
  position: absolute; right: -8px; bottom: -12px;
  font-family: var(--ff-display); font-size: clamp(80px, 14vw, 140px);
  font-weight: 900; line-height: 1; color: rgba(255,255,255,.07);
  pointer-events: none; -webkit-user-select: none; user-select: none; letter-spacing: -.04em;
}

/* Main content layer */
.facts-slide-content {
  position: relative; z-index: 2;
  padding: clamp(20px, 3vw, 32px) clamp(20px, 4vw, 36px);
  display: flex; flex-direction: column; gap: 10px;
}

/* Top meta row */
.facts-slide-top {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.facts-slide-flag-chip {
  width: 36px; height: 24px; border-radius: 3px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.4); flex-shrink: 0;
}
.facts-slide-flag-chip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.facts-slide-year-badge {
  font-size: 11px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.7);
  background: rgba(0,0,0,.25); padding: 3px 9px; border-radius: 20px;
}
.facts-slide-icon-top { font-size: 22px; margin-left: auto; }

/* Title & body */
.facts-slide-title {
  font-family: var(--ff-display); font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 800; color: #fff; line-height: 1.15; margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.facts-slide-body {
  font-size: clamp(13px, 1.8vw, 15px); color: rgba(255,255,255,.82);
  line-height: 1.6; max-width: 680px;
}

/* Footer row */
.facts-slide-footer {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 2px;
}
.facts-slide-stat {
  display: flex; align-items: baseline; gap: 6px;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.15);
  padding: 5px 13px; border-radius: 20px;
}
.facts-slide-stat-val {
  font-family: var(--ff-display); font-size: 16px; font-weight: 800; color: #fff;
}
.facts-slide-stat-lbl {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: rgba(255,255,255,.55);
}
.facts-slide-nation {
  font-size: 12px; font-weight: 700; color: rgba(255,255,255,.65);
  padding: 5px 11px; border-radius: 20px;
  background: rgba(255,255,255,.1);
}

/* Dots */
.facts-carousel-dots {
  display: flex; justify-content: center; gap: 5px; margin-top: 12px;
}
.facts-carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--line); border: none; cursor: pointer; padding: 0;
  transition: background .2s, transform .2s, width .2s;
}
.facts-carousel-dot.active {
  background: var(--accent); transform: scale(1.25); width: 20px; border-radius: 4px;
}

/* Nav buttons (now inside the header, not absolutely positioned) */
.facts-carousel-nav {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); cursor: pointer; display: flex; align-items: center;
  justify-content: center; font-size: 20px; line-height: 1;
  transition: background .15s, border-color .15s;
}
.facts-carousel-nav:hover { background: var(--accent); border-color: var(--accent); color: #000; }

/* ═══════════════════════════════════════════════════════════
   HEAD-TO-HEAD STYLES
   ═══════════════════════════════════════════════════════════ */
.h2h-teams-label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; font-weight: 700; margin-bottom: 6px;
  color: var(--subtle);
}
.h2h-bar {
  display: flex; height: 8px; border-radius: 4px; overflow: hidden;
  background: var(--bg); gap: 2px; margin-bottom: 8px;
}
.h2h-bar-home { background: var(--blue); border-radius: 4px 0 0 4px; min-width: 4px; }
.h2h-bar-draw { background: var(--draw); min-width: 4px; }
.h2h-bar-away { background: var(--live); border-radius: 0 4px 4px 0; flex: 1; min-width: 4px; }
.h2h-counts {
  display: flex; justify-content: space-between; margin-bottom: 14px;
}
.h2h-count { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.h2h-count-num { font-family: var(--ff-display); font-size: 22px; font-weight: 800; line-height: 1; }
.h2h-count-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.h2h-count-home .h2h-count-num { color: var(--blue); }
.h2h-count-draw .h2h-count-num { color: var(--draw); }
.h2h-count-away .h2h-count-num { color: var(--live); }
.h2h-notable {
  display: flex; gap: 8px; align-items: flex-start;
  background: var(--bg); border-left: 3px solid var(--accent);
  padding: 10px 12px; border-radius: 0 6px 6px 0;
  font-size: 12px; color: var(--subtle); line-height: 1.5;
  margin-bottom: 4px;
}
.h2h-match-row {
  display: grid; grid-template-columns: 36px 1fr auto 10px;
  gap: 8px; align-items: center; padding: 7px 10px;
  border-radius: 6px; background: var(--bg);
  font-size: 12px;
}
.h2h-match-year { font-weight: 800; color: var(--ink); font-size: 12px; }
.h2h-match-comp { color: var(--subtle); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2h-match-score { font-weight: 700; color: var(--ink); white-space: nowrap; }
.h2h-match-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   TEAM HISTORY CARD (match.php sidebar)
   ═══════════════════════════════════════════════════════════ */
.team-hist-card {
  background: var(--bg); border-radius: var(--r-md);
  padding: 14px; border: 1px solid var(--line);
}
.team-hist-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.team-hist-crest {
  width: 36px; height: 36px; object-fit: contain; flex-shrink: 0;
}
.team-hist-name { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.team-hist-sub { font-size: 11px; color: var(--muted); }
.team-hist-icon { margin-left: auto; font-size: 22px; }
.team-hist-stats {
  display: flex; gap: 10px; margin-bottom: 8px;
}
.team-hist-stat {
  flex: 1; background: var(--surface); border-radius: var(--r-sm);
  padding: 8px 10px; display: flex; flex-direction: column; gap: 3px;
}
.team-hist-stat-val {
  font-family: var(--ff-display); font-size: 15px; font-weight: 800; color: var(--ink);
  line-height: 1;
}
.team-hist-stat-val.gold { color: #c9920a; }
.team-hist-stat-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.team-hist-fact {
  font-size: 12px; color: var(--subtle); line-height: 1.5;
  border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════
   GIF PICKER
   ═══════════════════════════════════════════════════════════ */
.chat-gif-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 4px; width: 100%;
}
.chat-gif-item {
  border: none; background: none; padding: 0;
  cursor: pointer; border-radius: 6px; overflow: hidden;
  aspect-ratio: 1; transition: transform .15s;
}
.chat-gif-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.chat-gif-item:hover { transform: scale(1.04); }
.chat-msg-gif img { max-width: 220px; border-radius: 8px; display: block; }

/* ═══════════════════════════════════════════════════════════
   PRINEFANS MATCH BRIEF SECTION
   ═══════════════════════════════════════════════════════════ */
.pf-brief-section { margin-bottom: 28px; }
.pf-brief-section-hd {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 2px solid var(--pl-purple);
}
.pf-brief-section-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, var(--pl-purple), var(--pl-pink));
  color: #fff; border-radius: 20px;
  padding: 4px 12px; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
}
.pf-brief-section-sub { font-size: 12px; color: var(--muted); margin-left: auto; }
.pf-brief-card {
  border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; margin-bottom: 20px;
  background: var(--panel);
}
.pf-brief-match-hd {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  background: linear-gradient(135deg, #1a0538 0%, #37003c 60%, #200050 100%);
  padding: 14px 18px;
}
.pf-brief-teams {
  display: flex; align-items: center; gap: 10px; flex: 1;
}
.pf-brief-team { font-size: 15px; font-weight: 800; color: #fff; }
.pf-brief-score {
  background: rgba(255,255,255,.15); border-radius: 8px;
  padding: 4px 12px; font-size: 18px; font-weight: 900;
  color: #00ff85; letter-spacing: 2px; min-width: 60px; text-align: center;
}
.pf-brief-vs { font-size: 12px; color: rgba(255,255,255,.5); font-weight: 600; }
.pf-brief-meta {
  font-size: 11px; color: rgba(255,255,255,.6);
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
}
.pf-brief-stage {
  background: rgba(255,255,255,.1); border-radius: 20px;
  padding: 2px 8px; font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,.8); text-transform: uppercase;
}
.pf-brief-articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0;
}
.pf-brief-article {
  display: flex; flex-direction: column;
  border-right: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: background .15s;
}
.pf-brief-article:last-child { border-right: none; }
.pf-brief-article:hover { background: var(--hover); }
.pf-brief-article-img {
  aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--bg);
  flex-shrink: 0;
}
.pf-brief-article-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .3s;
}
.pf-brief-article:hover .pf-brief-article-img img { transform: scale(1.04); }
.pf-brief-article-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a0538, #37003c);
  color: rgba(255,255,255,.15); font-size: 28px;
}
.pf-brief-article-body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.pf-brief-article-source {
  font-size: 10px; font-weight: 700; color: var(--pl-pink);
  text-transform: uppercase; letter-spacing: .05em;
}
.pf-brief-article-title {
  font-size: 13px; font-weight: 700; color: var(--ink);
  line-height: 1.4; display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pf-brief-article-date { font-size: 11px; color: var(--muted); margin-top: auto; }
.pf-brief-empty {
  padding: 32px; text-align: center;
  color: var(--muted); font-size: 13px;
}
@media (max-width: 720px) {
  .pf-brief-articles { grid-template-columns: repeat(2, 1fr); }
  .pf-brief-article { border-right: none; border-bottom: 1px solid var(--line); }
  .pf-brief-article:last-child { border-bottom: none; }
  .pf-brief-teams { flex-wrap: wrap; }
}

/* System / join notification messages */
.chat-msg-system {
  display: flex; justify-content: center;
  padding: 4px 12px; margin: 4px 0;
}
.chat-msg-system span {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   LEVEL-UP CELEBRATION OVERLAY
   ═══════════════════════════════════════════════════════════ */
.levelup-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .3s ease;
}
.levelup-card {
  position: relative; overflow: hidden;
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: 20px;
  padding: 40px 36px 32px;
  max-width: 340px; width: 90%;
  display: flex; flex-direction: column; align-items: center;
  gap: 6px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5), 0 0 40px rgba(0,255,133,.25);
  animation: popIn .4s cubic-bezier(.34,1.56,.64,1);
}
.levelup-confetti {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.confetti-dot {
  position: absolute; top: -10px;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  0%   { transform: translateY(0) rotate(0deg);   opacity: 1; }
  100% { transform: translateY(380px) rotate(360deg); opacity: 0; }
}
.levelup-icon   { font-size: 56px; line-height: 1; margin-bottom: 4px; }
.levelup-title  {
  font-family: var(--ff-display); font-size: 26px; font-weight: 900;
  color: var(--ink); letter-spacing: -.02em;
}
.levelup-badge-name {
  font-size: 17px; font-weight: 800; letter-spacing: .02em;
}
.levelup-desc   { font-size: 13px; color: var(--subtle); text-align: center; line-height: 1.5; }
.levelup-level  {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted); margin-top: 4px;
}
@keyframes popIn {
  from { transform: scale(.5); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════
   PWA INSTALL
   ═══════════════════════════════════════════════════════════ */
@keyframes slideUpIn {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
#pwa-install-fab {
  display: none; /* JS shows this as flex */
}
#pwa-install-fab:hover { filter: brightness(1.1); }
@media (min-width: 768px) {
  #pwa-install-fab { display: none !important; } /* desktop never shows FAB */
}

/* ═══════════════════════════════════════════════════════════
   LIVE CHAT — new elements
   ═══════════════════════════════════════════════════════════ */

/* Pulsing red live dot in header */
.chat-live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #ef4444; flex-shrink: 0;
  animation: live-pulse 1.6s ease-in-out infinite;
}
.chat-live-dot-fab {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #ef4444; border: 1px solid rgba(0,0,0,.3);
  animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(1.35); }
}

/* "Messages disappear after 24 hours" banner */
.chat-ttl-banner {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 14px; font-size: 10px; color: var(--muted);
  background: rgba(255,255,255,.03); border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

/* Emoji picker tray */
.chat-emoji-tray {
  display: none; padding: 8px 10px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}
.chat-emoji-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px;
  max-height: 130px; overflow-y: auto;
}
.chat-emoji-item {
  background: none; border: none; cursor: pointer; font-size: 20px;
  padding: 4px; border-radius: 6px; line-height: 1;
  transition: background .12s;
}
.chat-emoji-item:hover { background: rgba(255,255,255,.1); }

/* Boost button */
.chat-boost-btn {
  color: var(--pl-pink) !important;
  position: relative;
}
.chat-boost-btn:hover svg { filter: drop-shadow(0 0 4px var(--pl-pink)); }
.chat-boost-btn:disabled { opacity: .35; cursor: not-allowed; }

/* ═══════════════════════════════════════════════════════════
   SOCIAL BUZZ CAROUSEL — news.php
   ═══════════════════════════════════════════════════════════ */
.social-buzz-section {
  margin-bottom: 28px;
}
.social-buzz-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; flex-wrap: wrap; gap: 4px;
}
.social-buzz-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 800; color: var(--accent);
  text-transform: uppercase; letter-spacing: .04em;
}
.social-buzz-sub {
  font-size: 12px; color: var(--muted);
}
.social-carousel-track {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; padding-bottom: 4px;
  scrollbar-width: none;
}
.social-carousel-track::-webkit-scrollbar { display: none; }
.social-carousel-track.is-dragging { cursor: grabbing; -webkit-user-select: none; user-select: none; scroll-snap-type: none; }
.social-carousel-track:not(.is-dragging) { cursor: grab; }
.social-card {
  flex: 0 0 240px; scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column;
  text-decoration: none; color: inherit; transition: transform .15s, border-color .15s;
}
.social-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.social-card-skel { flex: 0 0 240px; scroll-snap-align: start; border-radius: 12px; padding: 12px; }
.social-card-img { height: 120px; overflow: hidden; flex-shrink: 0; }
.social-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.social-card-source {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 12px 4px; font-size: 11px; font-weight: 700;
  color: var(--accent); text-transform: uppercase; letter-spacing: .04em;
}
.social-card-src-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0;
}
.social-card-title {
  padding: 0 12px 6px; font-size: 13px; font-weight: 700; color: var(--ink);
  line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.social-card-desc {
  padding: 0 12px 6px; font-size: 11px; color: var(--muted); line-height: 1.4;
}
.social-card-meta {
  padding: 0 12px 12px; font-size: 11px; color: var(--muted); margin-top: auto;
}
.social-carousel-dots {
  display: flex; gap: 6px; justify-content: center; margin-top: 10px;
}
.social-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--line);
  border: none; cursor: pointer; padding: 0; transition: background .15s, transform .15s;
}
.social-dot.active { background: var(--accent); transform: scale(1.4); }

/* ── Beat AI CTA on match cards ─────────────────────────────────── */
.bta-card-cta {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 12px; margin: 4px 0 0;
  background: rgba(0,255,153,.08); border: 1px solid rgba(0,255,153,.25);
  border-radius: 0 0 12px 12px; color: #00FF99;
  font-size: 11px; font-weight: 800; text-decoration: none;
  letter-spacing: .4px; transition: background .18s, border-color .18s;
}
.bta-card-cta:hover { background: rgba(0,255,153,.16); border-color: #00FF99; }
.bta-card-cta svg  { width: 12px; height: 12px; flex-shrink: 0; }

.bta-fx-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; margin: 0;
  background: linear-gradient(90deg, rgba(0,255,153,.07), rgba(0,255,153,.04));
  border: 1px solid rgba(0,255,153,.2); border-top: none;
  border-radius: 0 0 14px 14px; color: #00FF99;
  font-size: 12px; font-weight: 800; text-decoration: none;
  letter-spacing: .3px; transition: background .18s, border-color .18s;
}
.bta-fx-cta:hover { background: rgba(0,255,153,.12); border-color: rgba(0,255,153,.45); }
.bta-fx-cta svg  { width: 13px; height: 13px; flex-shrink: 0; }

/* ── Match card wrapper (needed for BTA CTA to merge visually) ── */
.match-card-wrap { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; }
.match-card--has-cta { border-radius: 14px 14px 0 0; }
