/* =========================================================
   UK SPORT NEWS — Floodlight / Matchday
   Fonts: Oswald (display) · Manrope (body) · JetBrains Mono (data)
   Theme: dark default · [data-theme="light"] for day mode
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ============ DARK · Floodlight (default) ============ */
:root {
  --bg-base:         #0A0E1A;
  --bg-surface:      #141B2D;
  --bg-elevated:     #1E2740;
  --bg-overlay:      #2A3450;
  --border:          #2A3450;
  --divider:         #2A3450;

  --pitch:           #1FB573;
  --pitch-deep:      #0E7A4C;
  --pitch-glow:      #4FE3A1;
  --pitch-soft:      rgba(31, 181, 115, 0.12);

  --floodlight:      #FFD60A;
  --floodlight-soft: rgba(255, 214, 10, 0.12);
  --live:            #FF3D6F;
  --info:            #4DA3FF;

  --win:             #00C853;
  --draw:            #FFB300;
  --loss:            #FF4C4C;

  --text-primary:    #F5F7FA;
  --text-secondary:  #8B95A8;
  --text-muted:      #5A6478;

  --shadow-sm:       0 1px 2px rgba(0,0,0,0.3);
  --shadow-md:       0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg:       0 12px 32px rgba(0,0,0,0.5);

  --radius:          14px;
  --radius-sm:       8px;

  /* legacy aliases so existing templates still compile */
  --bg:              var(--bg-base);
  --bg-card:         var(--bg-surface);
  --bg-card-2:       var(--bg-elevated);
  --bg-dark:         var(--bg-overlay);
  --txt:             var(--text-primary);
  --txt-muted:       var(--text-secondary);
  --txt-inv:         var(--text-primary);
  --accent:          var(--pitch);
  --accent-blue:     var(--info);
  --gold:            var(--floodlight);
  --border-dark:     var(--border);
  --radius-lg:       var(--radius);
  --shadow-xl:       var(--shadow-lg);
  --bg-color:        var(--bg-base);
  --bg-card-color:   var(--bg-surface);
  --bg-feat:         var(--bg-overlay);
  --txt-color:       var(--text-primary);
  --tag-color:       var(--text-secondary);
  --border-color:    var(--border);
  --primary:         var(--text-primary);
  --primary-hover:   var(--pitch);
}

/* ============ LIGHT · Matchday ============ */
[data-theme="light"] {
  --bg-base:         #F4F6FA;
  --bg-surface:      #FFFFFF;
  --bg-elevated:     #FFFFFF;
  --bg-overlay:      #EEF1F7;
  --border:          #E4E8F0;
  --divider:         #DDE3ED;

  --pitch:           #0E9F5E;
  --pitch-deep:      #08643B;
  --pitch-glow:      #0E9F5E;
  --pitch-soft:      #D6F2E4;

  --floodlight:      #E5A100;
  --floodlight-soft: #FDF1D0;
  --live:            #E11D48;
  --info:            #2563EB;

  --win:             #16A34A;
  --draw:            #D97706;
  --loss:            #DC2626;

  --text-primary:    #0F172A;
  --text-secondary:  #475569;
  --text-muted:      #94A3B8;

  --shadow-sm:       0 1px 2px rgba(15,23,42,0.04);
  --shadow-md:       0 4px 12px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-lg:       0 12px 32px rgba(15,23,42,0.08), 0 2px 6px rgba(15,23,42,0.04);

  /* legacy aliases */
  --bg:              var(--bg-base);
  --bg-card:         var(--bg-surface);
  --bg-card-2:       var(--bg-elevated);
  --bg-dark:         var(--bg-overlay);
  --txt:             var(--text-primary);
  --txt-muted:       var(--text-secondary);
  --txt-inv:         var(--text-primary);
  --accent:          var(--pitch);
  --accent-blue:     var(--info);
  --gold:            var(--floodlight);
}

/* ================================================================
   RESET
   ================================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s, color 0.2s;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--pitch); }
img { max-width: 100%; display: block; }

/* ================================================================
   CONTAINER
   ================================================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ================================================================
   HEADER
   ================================================================ */
.header {
  background: var(--bg-surface);
  border-bottom: 3px solid var(--pitch);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow-md);
}

.header-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.65rem 0;
}

.header-content > img,
.header-content a > img {
  height: 38px;
  width: auto;
}

.logo {
  font-family: 'Oswald', sans-serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 2px;
  line-height: 1;
}
.logo a { color: var(--text-primary); }

.tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  margin-left: auto;
}

.theme-toggle {
  flex-shrink: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: border-color 0.2s, background 0.2s;
  position: static;
}
.theme-toggle:hover { border-color: var(--pitch); background: var(--pitch-soft); }

/* ================================================================
   CATEGORY NAV STRIP
   ================================================================ */
.cat-strip {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-strip::-webkit-scrollbar { display: none; }

.cat-strip-inner {
  display: flex;
  gap: 0;
  padding: 0;
  white-space: nowrap;
}

.cat-country {
  display: flex;
  align-items: stretch;
  border-right: 3px solid var(--border);
}
.cat-country:last-child { border-right: none; }

.cat-country-label {
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  padding: 0.2rem 0.25rem;
  font-size: 0.48rem;
  font-weight: 900;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--txt-muted);
  background: var(--pitch-soft);
  border-right: 1px solid var(--border);
  white-space: nowrap;
}

.cat-group {
  display: flex;
  align-items: stretch;
  border-right: 2px solid var(--border);
  position: relative;
}
.cat-group:last-child { border-right: none; }

.cat-group-label {
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  font-size: 0.58rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.cat-group--active .cat-group-label { color: var(--pitch); }

.cat-strip a {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.7rem;
  font-size: 0.66rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-secondary);
  border-right: 1px solid var(--border);
  transition: color 0.14s, background 0.14s;
}
/* label is now an <a> — restore its own type size/weight over .cat-strip a */
.cat-strip a.cat-group-label {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  border-right: none;
  padding: 0.55rem 0.5rem;
}
.cat-strip a:hover { color: var(--pitch); background: var(--pitch-soft); }
.cat-strip a.cat-active { color: var(--accent); font-weight: 700; }
.cat-strip a.cat-active:hover { color: var(--pitch); }

/* ---- Hover dropdown ---- */
.cat-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 100%;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-top: 2px solid var(--pitch);
  box-shadow: var(--shadow-md);
  z-index: 300;
}
.cat-group:hover .cat-dropdown { display: flex; }
.cat-dropdown a {
  display: flex;
  border-right: none;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.cat-dropdown a:last-child { border-bottom: none; }

/* ================================================================
   NEWS GRID
   ================================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 1.5rem 0;
  background: var(--border);
}

.news-grid-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  padding: 1rem 0;
}

.news-grid-comp {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: none;
  padding: 0.75rem 0;
}
.news-grid-comp .news-card {
  flex: 0 0 220px;
}
@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; padding: 0.5rem 0; }
}

/* ================================================================
   NEWS CARDS
   ================================================================ */
.news-card {
  background: var(--bg-surface);
  border: none;
  border-radius: 0;
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: background 0.16s;

  opacity: 0;
  animation: cardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.news-card:hover {
  background: var(--bg-elevated);
  box-shadow: none;
  transform: none;
}

/* Left accent sliver → pitch green on hover */
.news-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
  transition: background 0.18s, width 0.18s;
}
.news-card:hover::before {
  background: var(--pitch);
  width: 3px;
}
.news-card::after { display: none; }

/* Featured match card */
.news-card.featured {
  grid-column: 1 / -1;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  padding: 1.2rem 1.6rem;
}
.news-card.featured::before { background: var(--pitch); width: 3px; }
.news-card.featured:hover { background: var(--bg-overlay); }

.news-card.art {
  border-left: 3px solid var(--pitch);
  padding-left: 1.3rem;
}
.news-card.art::before { display: none; }

/* Stagger */
.news-card:nth-child(1)  { animation-delay: 0.03s; }
.news-card:nth-child(2)  { animation-delay: 0.07s; }
.news-card:nth-child(3)  { animation-delay: 0.11s; }
.news-card:nth-child(4)  { animation-delay: 0.15s; }
.news-card:nth-child(5)  { animation-delay: 0.19s; }
.news-card:nth-child(6)  { animation-delay: 0.23s; }
.news-card:nth-child(7)  { animation-delay: 0.27s; }
.news-card:nth-child(8)  { animation-delay: 0.31s; }
.news-card:nth-child(9)  { animation-delay: 0.35s; }
.news-card:nth-child(10) { animation-delay: 0.39s; }
.news-card:nth-child(11) { animation-delay: 0.43s; }
.news-card:nth-child(12) { animation-delay: 0.47s; }
.news-card:nth-child(13) { animation-delay: 0.51s; }
.news-card:nth-child(14) { animation-delay: 0.55s; }
.news-card:nth-child(15) { animation-delay: 0.59s; }
.news-card:nth-child(16) { animation-delay: 0.63s; }
.news-card:nth-child(17) { animation-delay: 0.67s; }
.news-card:nth-child(18) { animation-delay: 0.71s; }
.news-card:nth-child(19) { animation-delay: 0.75s; }
.news-card:nth-child(20) { animation-delay: 0.79s; }

@keyframes cardIn {
  from { opacity: 0; transform: translateX(-14px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ================================================================
   CARD CONTENT
   ================================================================ */
.card-title { margin-bottom: 0.5rem; }

.card-title .news-link {
  font-family: 'Oswald', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-primary);
  display: block;
  letter-spacing: 0.5px;
  transition: color 0.14s;
}
.news-card.featured .card-title .news-link,
.news-card.featured .card-title div {
  color: var(--text-primary);
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.card-title .news-link:hover { color: var(--pitch); }

.card-description {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 0.85rem;
  flex-grow: 1;
  font-family: 'Manrope', sans-serif;
}

/* ================================================================
   TAGS
   ================================================================ */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: auto;
}

.category-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.62rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  background: var(--pitch);
}
.category-tag:hover { opacity: 0.85; }

.topic-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  transition: border-color 0.14s, color 0.14s;
}
.topic-tag:hover {
  border-color: var(--pitch);
  color: var(--pitch);
}

/* Category pills */
.categLink-sport,
.categLink-showbiz,
.categLink-news,
.categLink-tech,
.categLink-money,
.categLink-garden,
.categLink-travel,
.categLink-health,
.categLink-business,
.categLink-culture,
.categLink-environment,
.categLink-politics,
.categLink-science,
.categLink-weather,
.categLink-formula-1 {
  background: var(--pitch);
  color: #fff;
}

/* ================================================================
   MATCH LINKS  (fixture rows inside featured cards)
   ================================================================ */
.matchLink {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.75rem;
  margin: 0.06rem 0;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-left: 2px solid var(--border);
  transition: color 0.14s, border-color 0.14s, background 0.14s;
}
.matchLink:hover {
  color: var(--text-primary);
  border-left-color: var(--pitch);
  background: var(--pitch-soft);
}
.matchLink i {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.3px;
  font-variant-numeric: tabular-nums;
}
.matchLink i sup { font-size: 0.52rem; vertical-align: super; }

/* ================================================================
   ARTICLE PAGE
   ================================================================ */
.art {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 0;
}

.art .card-description {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-primary);
  font-family: 'Manrope', sans-serif;
}

/* ================================================================
   LINKED IMAGE CARDS
   ================================================================ */
.linkImg {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

.imgLink {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.linkImg:hover .imgLink { transform: scale(1.04); }

.imgTxt {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.55rem 0.7rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  color: #fff;
  font-size: 0.7rem;
  line-height: 1.4;
  font-family: 'Manrope', sans-serif;
}

.newsLink {
  display: inline-block;
  color: #fff;
  background: var(--pitch);
  padding: 0.28rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  transition: background 0.14s;
  margin: 0.2rem 0;
}
.newsLink:hover { background: var(--pitch-deep); color: #fff; }
.newsLink::before { content: '→ '; }

.site-time {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-style: normal;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
}
.dataPub { font-weight: 700; color: var(--text-primary); }

/* ================================================================
   TABLE / RESULTS / MATCH page overrides
   ================================================================ */
.section-head h1,
h1, h2 {
  font-family: 'Oswald', sans-serif !important;
  letter-spacing: 1px;
  color: var(--text-primary);
}

/* Standings table */
table { border-collapse: collapse; color: var(--text-primary); }
th { color: var(--text-secondary) !important; border-bottom-color: var(--border) !important; font-family: 'JetBrains Mono', monospace !important; }
td { border-bottom-color: var(--border) !important; color: var(--text-primary); font-variant-numeric: tabular-nums; }
tr:hover td { background: var(--pitch-soft) !important; }

/* Score boxes */
.score-box {
  font-family: 'Oswald', sans-serif !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  background: var(--bg-overlay) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-sm) !important;
  font-variant-numeric: tabular-nums;
}
.score-box.upcoming {
  background: transparent !important;
  border-color: var(--border) !important;
  color: var(--text-muted) !important;
}

/* Form pills — W/D/L with semantic colours */
.form-W { background: var(--win) !important;  color: #fff !important; border-radius: 4px !important; }
.form-D { background: var(--draw) !important; color: #1a1a1a !important; border-radius: 4px !important; }
.form-L { background: var(--loss) !important; color: #fff !important; border-radius: 4px !important; }

/* Stat cards */
.stat-card {
  background: var(--bg-surface) !important;
  border-color: var(--border) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: var(--shadow-sm) !important;
}
.stat-card .val {
  font-family: 'Oswald', sans-serif !important;
  color: var(--pitch) !important;
  font-variant-numeric: tabular-nums;
}
.stat-card .lbl { font-family: 'JetBrains Mono', monospace !important; color: var(--text-secondary) !important; }

/* Round labels */
.round-label {
  color: var(--text-secondary) !important;
  border-bottom-color: var(--border) !important;
  font-family: 'JetBrains Mono', monospace !important;
}

/* Result rows */
.result-row:hover { background: var(--pitch-soft) !important; }
.ht-name a:hover, .at-name a:hover { color: var(--pitch) !important; }

/* Match detail: form & analysis cards */
.form-card, .analysis-card {
  background: var(--bg-surface) !important;
  border-color: var(--border) !important;
  border-radius: var(--radius-sm) !important;
}

/* Match page legacy */
.teamLogo {
  background-color: var(--bg-elevated) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
}
.teamName { font-family: 'Oswald', sans-serif !important; letter-spacing: 1px !important; color: var(--text-primary) !important; }
.forecast {
  background-color: var(--bg-elevated) !important;
  border-left: 3px solid var(--pitch) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-secondary) !important;
}
.aiScore {
  background-color: var(--pitch) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  font-family: 'Oswald', sans-serif !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
}
.time { font-family: 'JetBrains Mono', monospace !important; font-size: 0.85rem !important; color: var(--text-muted) !important; font-variant-numeric: tabular-nums; }
.prevMatches td { border-color: var(--border) !important; color: var(--text-primary) !important; }

/* Zone bar colours */
.zone-promo-auto td:first-child { border-left-color: var(--win) !important; }
.zone-promo-play  td:first-child { border-left-color: var(--info) !important; }
.zone-rel         td:first-child { border-left-color: var(--loss) !important; }

/* Goal difference colours */
.gd-pos { color: var(--win) !important; font-weight: 700; }
.gd-neg { color: var(--loss) !important; font-weight: 700; }

/* ================================================================
   MISC
   ================================================================ */
pre {
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.glass-effect {
  backdrop-filter: blur(8px);
  background: rgba(20, 27, 45, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
[data-theme="light"] .glass-effect { background: rgba(255,255,255,0.85); }

/* ================================================================
   HAMBURGER MENU
   ================================================================ */
.hamburger {
  display: none;
  flex-shrink: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  padding: 0;
  transition: border-color 0.2s, background 0.2s;
}
.hamburger:hover { border-color: var(--pitch); background: var(--pitch-soft); }
.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
  pointer-events: none;
}
.hamburger-icon span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.hamburger--open .hamburger-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger--open .hamburger-icon span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger--open .hamburger-icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  .tagline { display: none; }
  .art { padding: 1.25rem 0; }
  .hamburger { display: flex; }
  .cat-strip {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    border-bottom: none;
  }
  .cat-strip--open {
    position: fixed;
    top: 60px; /* overridden by JS with real header height */
    left: 0;
    right: 0;
    z-index: 199;
    max-height: 70vh;
    overflow-y: auto;
    border-bottom: 1px solid var(--border);
  }
  .cat-strip--open .cat-strip-inner {
    flex-direction: column;
    white-space: normal;
  }
  .cat-strip--open .cat-country {
    flex-direction: column;
    border-right: none;
    border-bottom: 3px solid var(--border);
  }
  .cat-strip--open .cat-country:last-child { border-bottom: none; }
  .cat-strip--open .cat-country-label {
    writing-mode: horizontal-tb;
    transform: none;
    padding: 0.35rem 0.75rem;
    font-size: 0.6rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
    width: 100%;
    box-sizing: border-box;
  }
  .cat-strip--open .cat-group {
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .cat-strip--open .cat-group:last-child { border-bottom: none; }
  .cat-strip--open .cat-group-label { min-width: 110px; }
  /* always show dropdown links inline inside open hamburger */
  .cat-strip--open .cat-dropdown {
    display: flex;
    position: static;
    flex-direction: row;
    border: none;
    border-left: 1px solid var(--border);
    box-shadow: none;
    min-width: 0;
  }
  .cat-strip--open .cat-dropdown a {
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
  .cat-strip--open .cat-dropdown a:last-child { border-right: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 0.85rem; }
  .header-content { padding: 0.5rem 0; }
  .news-card { padding: 1.1rem 1.1rem; }
  .card-title .news-link { font-size: 1.15rem; }
  .card-description { font-size: 0.77rem; }
  .matchLink { font-size: 0.7rem; padding: 0.38rem 0.6rem; }
  .art .card-description { font-size: 0.87rem; }
}

@media (prefers-reduced-motion: reduce) {
  .news-card { animation: none; opacity: 1; transform: none; }
}

/* ================================================================
   PAGE TITLE
   ================================================================ */
.page-title {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 1.25rem 0 0.25rem;
  color: var(--text-primary);
  border-bottom: 2px solid var(--pitch);
  margin-bottom: 0;
}

/* ================================================================
   BREADCRUMB
   ================================================================ */
.breadcrumb {
  background: var(--bg-base);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--pitch); }
.breadcrumb span[aria-current] { color: var(--text-primary); }

/* ================================================================
   ARTICLE DATE / META
   ================================================================ */
.card-date {
  display: block;
  font-size: 0.65rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  margin-top: 0.6rem;
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
}

/* ================================================================
   SHARE STRIP
   ================================================================ */
.share-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}
.share-label {
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.share-btn {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: background 0.14s, border-color 0.14s, color 0.14s;
}
.share-btn:hover { background: var(--pitch); border-color: var(--pitch); color: #fff; }

/* ================================================================
   SEARCH BOX
   ================================================================ */
.search-box { padding: 0.75rem 0 0.25rem; }
.search-input {
  width: 100%;
  max-width: 480px;
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.14s, box-shadow 0.14s;
}
.search-input:focus { border-color: var(--pitch); box-shadow: 0 0 0 3px var(--pitch-soft); }
.search-input::placeholder { color: var(--text-muted); }

/* ================================================================
   PAGINATION
   ================================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 0;
  font-family: 'JetBrains Mono', monospace;
}
.page-btn {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--border);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-sm);
  transition: background 0.14s, border-color 0.14s, color 0.14s;
}
.page-btn:hover { background: var(--pitch); border-color: var(--pitch); color: #fff; }
.page-info { font-size: 0.7rem; color: var(--text-muted); }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--bg-surface);
  border-top: 2px solid var(--pitch);
  padding: 2rem 0 1.5rem;
  margin-top: 3rem;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 0.35rem; }
.footer-brand img { height: 32px; width: auto; opacity: 0.75; }
.footer-brand p { font-size: 0.62rem; color: var(--text-muted); max-width: 220px; font-family: 'Manrope', sans-serif; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; font-size: 0.65rem; transition: color 0.14s; }
.footer-links a:hover { color: var(--pitch); }
.footer-cats { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.footer-copy {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  font-size: 0.62rem;
  color: var(--text-muted);
}

/* ================================================================
   DESIGN SYSTEM COMPONENTS (form pills, live badge, stat bar)
   ================================================================ */

/* Form pill override (matches component reference) */
.form-pill {
  display: inline-block;
  width: 18px; height: 18px;
  border-radius: 4px;
  font: 700 10px/18px 'JetBrains Mono', monospace;
  text-align: center;
  color: #fff;
  margin-right: 3px;
}
.form-pill.w { background: var(--win); }
.form-pill.d { background: var(--draw); color: #1a1a1a; }
.form-pill.l { background: var(--loss); }

/* Live badge */
.badge-live {
  background: var(--live);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font: 700 10px/1 'JetBrains Mono', monospace;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.badge-live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.4s infinite;
}
@keyframes pulse { 50% { opacity: 0.3; } }

/* Stat bar (home vs away) */
.stat-bar {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg-overlay);
}
.stat-bar .home { background: var(--pitch); }
.stat-bar .away { background: var(--floodlight); }

/* ================================================================
   PREDICTION MATCH CARDS  (competition fixtures page)
   ================================================================ */
.news-card.pred-card {
  justify-content: space-between;
  gap: .75rem;
}
.pred-card-date {
  font-size: .72rem;
  color: var(--text-secondary);
  margin-bottom: .35rem;
}
.pred-card-teams {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: .5rem;
}
.pred-card-score {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'Oswald', sans-serif;
  color: var(--pitch);
  letter-spacing: 1px;
}
.pred-card-score .aiScore {
  font-size: 1.4rem !important;
  padding: 2px 10px;
}
.pred-card-label {
  font-size: .65rem;
  color: var(--text-muted);
  margin-top: .25rem;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.pred-btn {
  align-self: flex-start;
  background: var(--pitch);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: .45rem .9rem;
  border-radius: var(--radius-sm);
  transition: background .18s;
  white-space: nowrap;
}
.pred-btn:hover { background: var(--pitch-deep); color: #fff; }

/* Compact fixtures list */
.comp-fixtures-section { margin-top: 1.5rem; }
.comp-fixtures-head {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: .6rem 0 .4rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: .25rem;
}
.comp-fixtures-list { padding: .2rem .5rem; border-radius: 8px; }
.no-fixtures { color: var(--text-muted); padding: 1rem 0; }

/* ================================================================
   SHARED UTILITIES
   ================================================================ */
.accent-link { color: var(--accent); }
.pitch-link  { color: var(--pitch); }
.fw-normal   { font-weight: 400; }
.card-compact { padding: .2rem .5rem; border-radius: 10px; }
.page-note { font-size: .72rem; color: var(--text-muted); padding-bottom: 2rem; margin-top: 1.5rem; }
.comp-card-link { padding: 1rem; display: block; }

/* ================================================================
   COMPETITION FIXTURES HEADER
   ================================================================ */
.comp-header { max-width: 1000px; margin: auto; padding: 1rem; }
.comp-title { font-family: 'Oswald', sans-serif; font-size: 2rem; font-weight: 700; padding: 1rem 0 .5rem; }
.comp-desc { color: var(--text-muted); font-size: .85rem; margin-bottom: 1.5rem; }
.comp-nav-link { color: var(--accent); margin-left: .5rem; }

/* ================================================================
   MATCH DETAIL PAGE
   ================================================================ */
.match-title-sm { font-size: 1.3rem; margin-bottom: .25rem; }
.match-meta { font-size: .78rem; color: var(--text-secondary); margin-bottom: .75rem; font-family: 'JetBrains Mono', monospace; }
.match-center-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 .5rem;
  min-width: 80px;
}
.score-ft-num { font-family: 'Oswald', sans-serif; font-size: 3rem; font-weight: 700; line-height: 1; }
.score-ht     { font-size: .75rem; color: var(--text-muted); margin-top: .3rem; }
.score-ft-label { font-size: .72rem; color: var(--text-muted); margin-top: .15rem; }
.score-vs     { font-family: 'Oswald', sans-serif; font-size: 1.4rem; font-weight: 600; color: var(--text-muted); }
.match-detail { max-width: 1000px; margin: auto; padding: 0 1rem; }
.match-section-h2 { padding: 1rem 0 .5rem; font-family: 'Oswald', sans-serif; font-size: 1.4rem; font-weight: 700; }
.match-section-h2.tight { padding-top: .5rem; }
.form-grid    { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.form-grid.mb-sm { margin-bottom: 1rem; }

/* Form card */
.form-card-padded { padding: 1rem; }
.form-team-name { font-weight: 700; margin-bottom: .5rem; }
.form-pills-row { display: flex; gap: 4px; margin-bottom: .6rem; }
.form-pill-spot {
  display: inline-block;
  width: 22px; height: 22px;
  border-radius: 3px;
  color: #fff;
  font-size: .65rem; font-weight: 700;
  line-height: 22px; text-align: center;
}
.form-pill-spot.W { background: var(--win); }
.form-pill-spot.D { background: var(--draw); color: #1a1a1a; }
.form-pill-spot.L { background: var(--loss); }
.form-stats-text { font-size: .82rem; color: var(--text-muted); }

/* Analysis */
.analysis-list { padding: .5rem 1rem 1rem; }
.analysis-item { padding: .3rem; font-size: 1rem; }

/* Forecast */
.forecast-label { margin: 0 1rem 0 0; }
.forecast-score-text { font-size: 1.2rem; }

/* Next fixtures sidebar */
.next-fixtures-section { padding: 1rem 0; }
.next-fixtures-head {
  padding: 1rem 0 .25rem;
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.head-nav-link { font-size: .75rem; font-family: 'JetBrains Mono', monospace; font-weight: 400; }
.head-nav-link.pitch { color: var(--pitch); }
.head-nav-link.muted { color: var(--text-secondary); }

/* Further reading */
.further-reading-h3 { padding: 1.5rem 0 .5rem; font-family: 'Oswald', sans-serif; font-size: 1.1rem; font-weight: 700; }
.reading-list { padding: 0; margin: 0; list-style: none; }
.reading-list.padded { padding: 2rem; }
.reading-item { padding: .3rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.reading-link { color: var(--text-secondary); }

/* H2H prev matches */
.h2h-block { padding: 1rem 0; }
.h2h-title { font-size: 1.5rem; }

/* ================================================================
   TABLE PAGE
   ================================================================ */
.zone-icon-promo { background: #1B7A4B; }
.zone-icon-play  { background: #005EB8; }
.zone-icon-rel   { background: #C62828; }
.hidden { display: none; }
.tm-played { color: var(--text-muted); font-size: .72rem; }
.upcoming-section { padding: 2rem 0 .5rem; }
.upcoming-head { font-family: 'Oswald', sans-serif; font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }

/* ================================================================
   TEAM PAGE
   ================================================================ */
.team-section { max-width: 1000px; margin: auto; padding: 0 1rem; }
.team-match-header { align-items: center; }
.team-comp-label { font-size: .9rem; padding-bottom: .3rem; }
.team-next-section { padding: 1rem 0; }
.team-next-head { padding: 1rem 0 0; }

/* ================================================================
   PROSE PAGES  (about, privacy)
   ================================================================ */
.prose-page { max-width: 720px; padding: 2rem 0; font-size: .95rem; line-height: 1.85; color: var(--text-primary); }
.prose-page h2 { font-family: 'Oswald', sans-serif; font-size: 1.4rem; letter-spacing: 1px; margin-bottom: .4rem; }

/* ================================================================
   CONTACT PAGE
   ================================================================ */
.contact-wrap { max-width: 560px; padding: 2rem 0; }
.contact-msg { font-family: 'JetBrains Mono', monospace; padding: 1rem; margin-bottom: 1rem; }
.contact-msg-ok  { color: #1B6B3A; border: 1px solid #1B6B3A; }
.contact-msg-err { color: var(--accent); border: 1px solid var(--accent); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-label {
  font-size: .72rem;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}
.form-label .search-input { display: block; margin-top: .3rem; width: 100%; max-width: 100%; }
textarea.search-input { resize: vertical; }
.contact-submit {
  align-self: flex-start;
  padding: .5rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background .18s;
}
.contact-submit:hover { background: var(--pitch-deep); }

/* Primary button */
.btn-primary {
  background: var(--pitch);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: 'Manrope', sans-serif;
  border: none;
  cursor: pointer;
  transition: background 0.18s;
}
.btn-primary:hover { background: var(--pitch-deep); }
[data-theme="light"] .btn-primary { color: #06291A; }
