/* ================================================================
   FOOTBALL PRO — Front-End Design System
   Brand: #0F487E (navy) · #FEBC11 (gold) · White · Black
   ================================================================ */

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

:root {
  --fp-primary:    #0F487E;
  --fp-accent:     #FEBC11;

  /* Core dark surfaces. The whole plugin renders as one dark UI by
     default now — --fp-panel-bg is the single colour every card surface
     (hub cards, tables, results/fixtures, scorers, bracket, match
     detail, live scores, sidebar widgets, and the Hero/Live Center/
     Sports Central modules) is built from, so it can be changed in one
     place: Football Pro → Settings → Panel Background, or per-widget
     from Elementor's Style tab. */
  --fp-panel-bg:   #0B0F14;
  --fp-ink:        #06070A;   /* deeper than panels — outer page-level dark */
  --fp-surface:    var(--fp-panel-bg);
  --fp-surface-2:  #1B1F27;   /* slightly-raised surface: header rows, footers, hover */
  --fp-line:       #4A5568;   /* borders / dividers — a genuine light-gray hairline against the near-black panels, not a barely-visible near-black-on-near-black line */
  --fp-text:       #F4F6F8;   /* primary text on dark surfaces */
  --fp-muted:      #97A0AC;   /* secondary / muted text */
  --fp-hover:      rgba(255,255,255,.05);

  /* Back-compat aliases: every existing component rule was written
     against --fp-white / --fp-gray-*, so pointing those at the dark
     tokens above re-themes the whole plugin without a per-rule rewrite. */
  --fp-white:      var(--fp-surface);
  --fp-gray-100:   var(--fp-surface-2);
  --fp-gray-200:   var(--fp-line);
  --fp-gray-400:   var(--fp-muted);
  --fp-gray-600:   #C3CAD4;
  --fp-gray-800:   var(--fp-text);
  --fp-dark:       #05070B;
  --fp-mid:        #1B3A5C;
  --fp-light:      var(--fp-hover);

  --fp-success:    #22C55E;
  --fp-danger:     #EF4444;
  --fp-orange:     #F59E0B;
  --fp-live:       #FF3B30;
  --fp-radius:     10px;
  --fp-radius-sm:  6px;
  --fp-shadow:     0 4px 24px rgba(0,0,0,.35);
  --fp-shadow-lg:  0 8px 40px rgba(0,0,0,.5);
  --fp-font-head:  'Barlow Condensed', sans-serif;
  --fp-font-body:  'Barlow', sans-serif;
  --fp-transition: .18s cubic-bezier(.4,0,.2,1);

  /* Aliases used by the Hero / Live Center / Sports Central modules. */
  --fp-ink-raised: var(--fp-surface-2);
  --fp-ink-line:   var(--fp-line);
  --fp-ink-text:   var(--fp-text);
  --fp-ink-muted:  var(--fp-muted);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Base ──────────────────────────────────────────────────────── */

.fp-hub,
.fp-hub *,
.fp-table-wrap *,
.fp-results *,
.fp-fixtures *,
.fp-scorers-wrap *,
.fp-bracket *,
.fp-match-detail *,
.fp-livescores *,
.fp-competition-page *,
.fp-match-page *,
.fp-widget-standings,
.fp-widget-standings * {
  font-family: var(--fp-font-body);
}

/* Safety-net text colour: the host theme's own text colour would
   otherwise be inherited into these dark cards (often near-black),
   which is invisible on a dark background. Any element below with its
   own, more specific colour rule still wins over this. */
.fp-hub, .fp-table-wrap, .fp-results, .fp-fixtures, .fp-scorers-wrap,
.fp-bracket, .fp-match-detail, .fp-livescores, .fp-competition-page,
.fp-match-page, .fp-widget-standings,
.fp-hub *, .fp-table-wrap *, .fp-results *, .fp-fixtures *, .fp-scorers-wrap *,
.fp-bracket *, .fp-match-detail *, .fp-livescores *, .fp-competition-page *,
.fp-match-page *, .fp-widget-standings * {
  color: var(--fp-text);
}

/* ================================================================
   HUB — COMPETITIONS GRID
   ================================================================ */

.fp-hub {
  display: grid;
  gap: 20px;
  margin-bottom: 40px;
}
.fp-hub-cols-2 { grid-template-columns: repeat(auto-fill, minmax(340px,1fr)); }
.fp-hub-cols-3 { grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); }
.fp-hub-cols-4 { grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); }

.fp-hub-card {
  background: var(--fp-white);
  border-radius: var(--fp-radius);
  box-shadow: var(--fp-shadow);
  border: 1px solid var(--fp-gray-200);
  overflow: hidden;
  transition: transform var(--fp-transition), box-shadow var(--fp-transition);
}
.fp-hub-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--fp-shadow-lg);
}

.fp-hub-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--fp-primary);
  color: #fff;
  position: relative;
}
.fp-hub-card__header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--fp-accent);
}
.fp-hub-card__logo {
  width: 36px; height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.3));
}
.fp-hub-card__info { flex: 1; min-width: 0; }
.fp-hub-card__title {
  font-family: var(--fp-font-head);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .4px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}
.fp-hub-card__season {
  font-size: 11px;
  color: rgba(255,255,255,.65);
  font-weight: 500;
}

.fp-hub-card__badge {
  font-family: var(--fp-font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(255,255,255,.15);
  color: var(--fp-accent);
  border: 1px solid rgba(254,188,17,.3);
  white-space: nowrap;
}

.fp-hub-card__body { padding: 0; }

.fp-hub-card__footer {
  padding: 12px 18px;
  border-top: 1px solid var(--fp-gray-200);
  background: var(--fp-gray-100);
}
.fp-view-full {
  font-family: var(--fp-font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--fp-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--fp-transition);
}
.fp-view-full:hover { color: var(--fp-accent); }
.fp-view-full .fp-arrow {
  display: inline-block;
  transition: transform var(--fp-transition);
}
.fp-view-full:hover .fp-arrow { transform: translateX(4px); }

/* ================================================================
   TABLE BORDER HARD RESET
   Some themes ship a global `table, th, td { border: 1px solid #fff }`
   -style reset for content tables, which paints visible vertical column
   lines (sometimes literally white) inside any real <table> a plugin
   renders — regardless of what border-collapse/border rules the plugin
   itself sets. This forces every side off except a single horizontal
   row-divider, pinned to our own light-gray token with !important so a
   theme's reset can't repaint it. Applies to every real <table> in the
   plugin (the full League Table and the compact mini-tables used in Hub
   cards and the sidebar Standings widget).
   ================================================================ */

.fp-table, .fp-table th, .fp-table td,
.fp-mini-table, .fp-mini-table th, .fp-mini-table td {
  border-left: 0 !important;
  border-right: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
}
.fp-table thead th, .fp-mini-table thead th {
  border-bottom: 2px solid var(--fp-line) !important;
}
.fp-table tbody tr, .fp-mini-table tbody tr {
  border-bottom: 1px solid var(--fp-line) !important;
}
.fp-table tbody tr:last-child, .fp-mini-table tbody tr:last-child {
  border-bottom: 0 !important;
}

/* ================================================================
   MINI TABLE (used in hub cards + widgets)
   ================================================================ */

.fp-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.fp-mini-table thead tr {
  background: var(--fp-gray-100);
  border-bottom: 2px solid var(--fp-gray-200);
}
.fp-mini-table thead th {
  padding: 7px 8px;
  font-family: var(--fp-font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  color: var(--fp-gray-600);
  text-align: center;
}
.fp-mini-table thead th:nth-child(2) { text-align: left; }
.fp-mini-table tbody tr { border-bottom: 1px solid var(--fp-gray-200); transition: background var(--fp-transition); }
.fp-mini-table tbody tr:last-child { border-bottom: none; }
.fp-mini-table tbody tr:hover { background: var(--fp-light); }
.fp-mini-table td { padding: 8px; text-align: center; vertical-align: middle; }
.fp-mini-table td:nth-child(2) { text-align: left; }

.fp-pos { font-weight: 700; color: var(--fp-gray-400); font-size: 12px; width: 28px; }
.fp-pts { font-weight: 700 !important; color: var(--fp-ink-text) !important; }
.fp-rank-leader .fp-pos { color: var(--fp-primary-light, #6FA8E0); }

.fp-team {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  color: var(--fp-gray-800);
  white-space: nowrap;
}
.fp-team-crest {
  width: 20px; height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Zone colour bars */
.fp-zone-top    td.fp-pos { border-left: 3px solid var(--fp-success) !important; }
.fp-zone-mid    td.fp-pos { border-left: 3px solid var(--fp-orange) !important; }
.fp-zone-bottom td.fp-pos { border-left: 3px solid var(--fp-danger) !important; }
.fp-zone-top    { background: rgba(30,158,78,.04); }
.fp-zone-bottom { background: rgba(214,60,50,.04); }
.fp-zone-top:hover    { background: rgba(30,158,78,.09) !important; }
.fp-zone-bottom:hover { background: rgba(214,60,50,.09) !important; }

/* ================================================================
   FULL STANDINGS TABLE
   ================================================================ */

.fp-table-wrap {
  background: var(--fp-white);
  border-radius: var(--fp-radius);
  box-shadow: var(--fp-shadow);
  border: 1px solid var(--fp-gray-200);
  overflow: hidden;
  margin-bottom: 28px;
}

.fp-table-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: linear-gradient(135deg, var(--fp-dark) 0%, var(--fp-primary) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.fp-table-header::before {
  content: '';
  position: absolute;
  top: -30%; right: -5%;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(254,188,17,.08);
  pointer-events: none;
}
.fp-table-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--fp-accent), transparent);
}

.fp-table-comp-logo {
  width: 44px; height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.3));
}
.fp-table-info { flex: 1; }
.fp-table-title {
  font-family: var(--fp-font-head);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .5px;
  color: #fff;
  margin: 0;
}
.fp-table-season { font-size: 12px; color: rgba(255,255,255,.6); font-weight: 500; }
.fp-table-updated { font-size: 11px; color: rgba(255,255,255,.45); }

/* Group tabs */
.fp-group-tabs {
  display: flex;
  gap: 0;
  background: var(--fp-gray-100);
  border-bottom: 1px solid var(--fp-gray-200);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.fp-group-tab {
  padding: 10px 20px;
  font-family: var(--fp-font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--fp-gray-600);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all var(--fp-transition);
  white-space: nowrap;
  border-right: 1px solid var(--fp-gray-200);
  background: none;
  border-top: none;
  border-left: none;
}
.fp-group-tab.active,
.fp-group-tab:hover { color: var(--fp-primary); border-bottom-color: var(--fp-accent); background: var(--fp-white); }

.fp-group-label {
  font-family: var(--fp-font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .8px;
  color: var(--fp-primary);
  padding: 10px 20px 6px;
  border-bottom: 1px solid var(--fp-gray-200);
  background: var(--fp-gray-100);
  display: flex;
  align-items: center;
  gap: 8px;
}
.fp-group-label::before { content: ''; display: block; width: 3px; height: 14px; background: var(--fp-accent); border-radius: 2px; }

/* Avoid a flash of every group's table before the JS tab-switcher runs */
.fp-table-wrap.fp-tabbed .fp-group-pane { display: none; }
.fp-table-wrap.fp-tabbed .fp-group-pane:first-of-type { display: block; }

.fp-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; position: relative; }

.fp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.fp-table thead th {
  padding: 10px 12px;
  background: var(--fp-gray-100);
  border-bottom: 2px solid var(--fp-gray-200);
  font-family: var(--fp-font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .7px;
  color: var(--fp-gray-600);
  text-align: center;
  white-space: nowrap;
}
.fp-table thead th.fp-th-team { text-align: left; min-width: 140px; }
.fp-table[data-sortable] thead th[data-sort] {
  cursor: pointer;
  user-select: none;
  transition: color var(--fp-transition), background var(--fp-transition);
}
.fp-table[data-sortable] thead th[data-sort]:hover,
.fp-table[data-sortable] thead th[data-sort]:focus-visible { color: var(--fp-primary); background: var(--fp-gray-200); }
.fp-table[data-sortable] thead th[data-sort]:focus-visible { outline: 2px solid var(--fp-primary); outline-offset: -2px; }
.fp-table[data-sortable] thead th[data-sort]::after { content: ''; display: inline-block; width: 0; margin-left: 3px; }
.fp-table[data-sortable] thead th[aria-sort]::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  margin-left: 4px;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  vertical-align: middle;
}
.fp-table[data-sortable] thead th[aria-sort="descending"]::after { border-top: 4px solid var(--fp-primary); }
.fp-table[data-sortable] thead th[aria-sort="ascending"]::after { border-bottom: 4px solid var(--fp-primary); }
.fp-table tbody tr { border-bottom: 1px solid var(--fp-gray-200); transition: background var(--fp-transition); }
.fp-table tbody tr:last-child { border-bottom: none; }
.fp-table tbody tr:hover { background: var(--fp-light); }
.fp-table td { padding: 10px 12px; text-align: center; vertical-align: middle; }
.fp-table td.fp-td-team { text-align: left; }
.fp-table td.fp-td-pos { width: 55px; font-weight: 700; color: var(--fp-gray-400); font-size: 13px; }
.fp-rank-leader td.fp-td-pos { color: var(--fp-primary-light, #6FA8E0); }
.fp-table td.fp-td-pts { font-weight: 800; color: var(--fp-ink-text); font-size: 15px; }
.fp-table td.fp-td-gd { color: var(--fp-gray-600); font-weight: 600; }
.fp-td-gd.pos { color: var(--fp-success); }
.fp-td-gd.neg { color: var(--fp-danger); }
.fp-table td.fp-td-logo { width: 34px; padding-right: 0; }

/* Position number + movement indicator */
.fp-td-pos { display: table-cell; }
.fp-pos-num, .fp-move { display: inline-block; vertical-align: middle; }
.fp-move {
  width: 0; height: 0;
  margin-left: 4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}
.fp-move-up   { border-bottom: 6px solid var(--fp-success); }
.fp-move-down { border-top: 6px solid var(--fp-danger); }
.fp-move-same { width: 8px; height: 2px; margin-left: 4px; background: var(--fp-gray-400); border: none; border-radius: 1px; }

/* Fallback initials crest for teams with no logo */
.fp-crest-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  color: #fff;
  font-family: var(--fp-font-head);
  font-size: 10px; font-weight: 800;
  letter-spacing: .2px;
  flex-shrink: 0;
}

.fp-team-full {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--fp-gray-800);
}
.fp-team-crest-lg {
  width: 26px; height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Zone colour coding (left bar) */
.fp-zone-top    td:first-child { border-left: 4px solid var(--fp-success) !important; }
.fp-zone-mid    td:first-child { border-left: 4px solid var(--fp-orange) !important; }
.fp-zone-bottom td:first-child { border-left: 4px solid var(--fp-danger) !important; }

/* Sticky position + team columns while scrolling horizontally on small screens */
@media (max-width: 768px) {
  .fp-table td.fp-td-pos,
  .fp-table th.fp-th-pos {
    position: sticky; left: 0; z-index: 2;
    background: var(--fp-white);
  }
  .fp-table thead th.fp-th-pos { background: var(--fp-gray-100); z-index: 3; }
  .fp-table td.fp-td-team,
  .fp-table th.fp-th-team {
    position: sticky; left: 55px; z-index: 2;
    background: var(--fp-white);
    box-shadow: 2px 0 6px rgba(0,0,0,.35);
  }
  .fp-table thead th.fp-th-team { background: var(--fp-gray-100); z-index: 3; }
  .fp-zone-top td.fp-td-pos, .fp-zone-top td.fp-td-team { background: rgba(34,197,94,.12); }
  .fp-zone-bottom td.fp-td-pos, .fp-zone-bottom td.fp-td-team { background: rgba(239,68,68,.12); }
  .fp-table tbody tr:hover td.fp-td-pos,
  .fp-table tbody tr:hover td.fp-td-team { background: var(--fp-light); }
}

/* Quick "find a team" search box in the table header */
.fp-table-search { position: relative; margin-left: auto; }
.fp-table-search-icon {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: rgba(255,255,255,.5); pointer-events: none;
}
.fp-table-search-input {
  width: 160px;
  padding: 7px 10px 7px 30px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 12px;
  font-family: var(--fp-font-body);
  transition: width var(--fp-transition), background var(--fp-transition), border-color var(--fp-transition);
}
.fp-table-search-input::placeholder { color: rgba(255,255,255,.55); }
.fp-table-search-input:focus {
  outline: none;
  width: 200px;
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.5);
}
.fp-table-no-results { padding: 18px; text-align: center; color: var(--fp-gray-400); font-size: 13px; font-style: italic; }

/* Screen-reader-only helper text (captions, redundant group labels under tabs) */
.fp-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Table key/legend */
.fp-table-key {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 18px;
  border-top: 1px solid var(--fp-gray-200);
  background: var(--fp-gray-100);
  font-size: 11px;
  color: var(--fp-gray-600);
}
.fp-key-item { display: flex; align-items: center; gap: 5px; }
.fp-key-dot { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.fp-key-dot.top    { background: var(--fp-success); }
.fp-key-dot.mid    { background: var(--fp-orange); }
.fp-key-dot.bottom { background: var(--fp-danger); }

/* Form dots */
.fp-form { display: inline-flex; gap: 3px; align-items: center; }
.fp-form-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 9px; font-weight: 800;
  color: #fff;
  font-family: var(--fp-font-head);
  letter-spacing: 0;
}
.fp-w { background: var(--fp-success); }
.fp-d { background: var(--fp-gray-400); }
.fp-l { background: var(--fp-danger); }

/* ================================================================
   RESULTS & FIXTURES
   ================================================================ */

.fp-results,
.fp-fixtures-wrap {
  background: var(--fp-white);
  border-radius: var(--fp-radius);
  box-shadow: var(--fp-shadow);
  border: 1px solid var(--fp-gray-200);
  overflow: hidden;
  margin-bottom: 28px;
}

.fp-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--fp-dark), var(--fp-primary));
  color: #fff;
}
.fp-section-title {
  font-family: var(--fp-font-head);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .6px;
  color: #fff;
  margin: 0;
}

.fp-round-group { border-bottom: 1px solid var(--fp-gray-200); }
.fp-round-label {
  padding: 8px 20px;
  font-family: var(--fp-font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .8px;
  color: var(--fp-primary);
  background: var(--fp-gray-100);
  border-bottom: 1px solid var(--fp-gray-200);
  border-left: 3px solid var(--fp-accent);
}

.fp-match-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--fp-gray-200);
  transition: background var(--fp-transition);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.fp-match-row:last-child { border-bottom: none; }
.fp-match-row:hover { background: var(--fp-light); }

.fp-match-team {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--fp-gray-800);
}
.fp-match-team.away { flex-direction: row-reverse; text-align: right; }
.fp-match-crest {
  width: 28px; height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}
.fp-match-team-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-match-team.home .fp-match-team-name { text-align: left; }
.fp-match-team.away .fp-match-team-name { text-align: right; }

.fp-match-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 90px;
}
.fp-score {
  font-family: var(--fp-font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--fp-dark);
  letter-spacing: 2px;
  line-height: 1;
}
.fp-score-vs {
  font-family: var(--fp-font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--fp-gray-400);
  letter-spacing: 2px;
}
.fp-match-status {
  font-family: var(--fp-font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  padding: 2px 7px;
  border-radius: 3px;
}
.fp-status-ft       { background: var(--fp-gray-200); color: var(--fp-gray-600); }
.fp-status-live     { background: var(--fp-live); color: #fff; animation: fp-pulse 1.5s infinite; }
.fp-status-ht       { background: var(--fp-orange); color: #fff; }
.fp-status-sch      { background: var(--fp-light); color: var(--fp-primary); font-size: 11px; }
.fp-status-pst      { background: var(--fp-gray-200); color: var(--fp-gray-600); }
.fp-status-canc     { background: var(--fp-danger); color: #fff; }

@keyframes fp-pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .6; }
}

.fp-match-time {
  font-size: 12px;
  color: var(--fp-gray-600);
  font-weight: 500;
}
.fp-match-scorer {
  font-size: 11px;
  color: var(--fp-gray-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

/* Pen score */
.fp-score-pen {
  font-size: 11px;
  color: var(--fp-gray-600);
  letter-spacing: 1px;
}

/* ================================================================
   TOP SCORERS
   ================================================================ */

.fp-scorers-wrap {
  background: var(--fp-white);
  border-radius: var(--fp-radius);
  box-shadow: var(--fp-shadow);
  border: 1px solid var(--fp-gray-200);
  overflow: hidden;
  margin-bottom: 28px;
}

.fp-scorers-list { list-style: none; padding: 0; }
.fp-scorer-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--fp-gray-200);
  transition: background var(--fp-transition);
}
.fp-scorer-row:last-child { border-bottom: none; }
.fp-scorer-row:hover { background: var(--fp-light); }

.fp-scorer-rank {
  font-family: var(--fp-font-head);
  font-size: 16px;
  font-weight: 800;
  color: var(--fp-gray-400);
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.fp-scorer-rank.top3 { color: var(--fp-accent); }

.fp-scorer-photo {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--fp-gray-200);
  border: 2px solid var(--fp-gray-200);
}
.fp-scorer-info { flex: 1; min-width: 0; }
.fp-scorer-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--fp-gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fp-scorer-team {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--fp-gray-600);
}
.fp-scorer-team-logo { width: 14px; height: 14px; object-fit: contain; }

.fp-scorer-stats { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.fp-scorer-stat { display: flex; flex-direction: column; align-items: center; }
.fp-scorer-stat-val {
  font-family: var(--fp-font-head);
  font-size: 20px;
  font-weight: 800;
  color: var(--fp-primary);
  line-height: 1;
}
.fp-scorer-stat-val.goals { color: var(--fp-accent); }
.fp-scorer-stat-lbl { font-size: 9px; letter-spacing: .5px; color: var(--fp-gray-400); font-weight: 600; }

/* ================================================================
   BRACKET / KNOCKOUT
   ================================================================ */

.fp-bracket {
  overflow-x: auto;
  padding-bottom: 20px;
}
.fp-bracket-inner { display: flex; gap: 0; min-width: fit-content; }
.fp-bracket-round {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  min-width: 220px;
  padding: 10px 0;
  position: relative;
}
.fp-bracket-round + .fp-bracket-round { border-left: 2px dashed var(--fp-gray-200); }

.fp-bracket-round-label {
  font-family: var(--fp-font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .8px;
  text-align: center;
  color: var(--fp-primary);
  padding: 8px 14px;
  background: var(--fp-light);
  border-bottom: 2px solid var(--fp-accent);
  margin-bottom: 10px;
}

.fp-bracket-match {
  background: var(--fp-white);
  border: 1px solid var(--fp-gray-200);
  border-radius: var(--fp-radius-sm);
  margin: 6px 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15,72,126,.07);
  transition: box-shadow var(--fp-transition);
}
.fp-bracket-match:hover { box-shadow: var(--fp-shadow); }

.fp-bracket-team {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fp-gray-800);
  border-bottom: 1px solid var(--fp-gray-200);
}
.fp-bracket-team:last-child { border-bottom: none; }
.fp-bracket-team.winner { background: var(--fp-light); color: var(--fp-primary); font-weight: 700; }
.fp-bracket-team img { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.fp-bracket-team-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-bracket-score {
  font-family: var(--fp-font-head);
  font-size: 15px;
  font-weight: 800;
  color: var(--fp-primary);
  min-width: 24px;
  text-align: right;
}
.fp-bracket-score.winner-score { color: var(--fp-accent); }

.fp-bracket-tbd {
  color: var(--fp-gray-400);
  font-style: italic;
  font-weight: 400;
}

/* ================================================================
   MATCH DETAIL PAGE
   ================================================================ */

.fp-match-detail {
  margin-bottom: 32px;
}
.fp-match-hero {
  background: linear-gradient(160deg, var(--fp-dark) 0%, var(--fp-primary) 60%, var(--fp-mid) 100%);
  padding: 40px 28px 32px;
  border-radius: var(--fp-radius);
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}
.fp-match-hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(254,188,17,.06);
  pointer-events: none;
}
.fp-match-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--fp-accent), transparent 60%);
}

.fp-hero-comp {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .8px;
  color: rgba(255,255,255,.6);
}
.fp-hero-comp img { width: 20px; height: 20px; object-fit: contain; }

.fp-hero-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.fp-hero-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.fp-hero-crest {
  width: 72px; height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.4));
}
.fp-hero-team-name {
  font-family: var(--fp-font-head);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .5px;
  color: #fff;
}

.fp-hero-score-block { text-align: center; }
.fp-hero-score {
  font-family: var(--fp-font-head);
  font-size: 52px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #fff;
  line-height: 1;
}
.fp-hero-score-pen { font-size: 14px; color: rgba(255,255,255,.6); margin-top: 4px; }
.fp-hero-status {
  display: inline-block;
  font-family: var(--fp-font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .8px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-top: 8px;
}
.fp-hero-status.live { background: var(--fp-live); color: white; animation: fp-pulse 1.5s infinite; }
.fp-hero-status.ft   { background: rgba(255,255,255,.2); color: white; }
.fp-hero-status.sch  { background: rgba(254,188,17,.2); color: var(--fp-accent); border: 1px solid rgba(254,188,17,.3); }

.fp-hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12px;
  color: rgba(255,255,255,.6);
}
.fp-hero-meta span { display: flex; align-items: center; gap: 4px; }

/* Match tabs */
.fp-match-tabs {
  display: flex;
  background: var(--fp-white);
  border-radius: var(--fp-radius);
  border: 1px solid var(--fp-gray-200);
  overflow: hidden;
  margin-bottom: 16px;
}
.fp-match-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-family: var(--fp-font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--fp-gray-600);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all var(--fp-transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: 1px solid var(--fp-gray-200);
}
.fp-match-tab:last-child { border-right: none; }
.fp-match-tab.active { color: var(--fp-primary); border-bottom-color: var(--fp-accent); background: var(--fp-light); }
.fp-match-tab-pane { display: none; }
.fp-match-tab-pane.active { display: block; }

/* Timeline events */
.fp-timeline {
  background: var(--fp-white);
  border-radius: var(--fp-radius);
  border: 1px solid var(--fp-gray-200);
  overflow: hidden;
  padding: 20px;
}
.fp-timeline-event {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: center;
  margin-bottom: 12px;
}
.fp-timeline-event:last-child { margin-bottom: 0; }
.fp-timeline-home { text-align: right; padding-right: 10px; }
.fp-timeline-away { padding-left: 10px; }
.fp-timeline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
}
.fp-event-bubble {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.fp-ev-goal    { background: rgba(30,158,78,.1); }
.fp-ev-yellow  { background: rgba(232,120,32,.15); }
.fp-ev-red     { background: rgba(214,60,50,.1); }
.fp-ev-sub     { background: rgba(15,72,126,.1); }

.fp-ev-minute {
  font-family: var(--fp-font-head);
  font-size: 11px;
  font-weight: 700;
  color: var(--fp-gray-600);
}
.fp-ev-player { font-size: 13px; font-weight: 600; color: var(--fp-gray-800); }
.fp-ev-detail { font-size: 11px; color: var(--fp-gray-400); }

/* ================================================================
   LIVE SCORES TICKER
   ================================================================ */

.fp-livescores {
  background: var(--fp-white);
  border-radius: var(--fp-radius);
  border: 1px solid var(--fp-gray-200);
  overflow: hidden;
  margin-bottom: 28px;
}
.fp-live-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--fp-dark);
  color: #fff;
}
.fp-live-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--fp-live);
  animation: fp-pulse 1s infinite;
  flex-shrink: 0;
}
.fp-live-title {
  font-family: var(--fp-font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .6px;
}
.fp-live-count {
  margin-left: auto;
  background: var(--fp-live);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

.fp-live-empty {
  padding: 20px;
  text-align: center;
  color: var(--fp-gray-400);
  font-size: 13px;
}

/* ================================================================
   COMPETITION FULL PAGE
   ================================================================ */

.fp-comp-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  font-family: var(--fp-font-body);
}

.fp-comp-hero {
  background: linear-gradient(135deg, var(--fp-dark) 0%, var(--fp-primary) 100%);
  border-radius: var(--fp-radius);
  padding: 30px 28px;
  margin-bottom: 24px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.fp-comp-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--fp-accent);
}
.fp-comp-hero-logo {
  width: 80px; height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.4));
  flex-shrink: 0;
}
.fp-comp-hero-title {
  font-family: var(--fp-font-head);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: .5px;
  margin: 0;
  color: #fff;
}
.fp-comp-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.fp-comp-hero-pill {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.85);
}

.fp-comp-nav {
  display: flex;
  gap: 0;
  background: var(--fp-white);
  border-radius: var(--fp-radius);
  border: 1px solid var(--fp-gray-200);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--fp-shadow);
  overflow-x: auto;
}
.fp-comp-nav-link {
  flex: 1;
  padding: 13px 16px;
  text-align: center;
  font-family: var(--fp-font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--fp-gray-600);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: all var(--fp-transition);
  white-space: nowrap;
  border-right: 1px solid var(--fp-gray-200);
}
.fp-comp-nav-link:last-child { border-right: none; }
.fp-comp-nav-link:hover, .fp-comp-nav-link.active {
  color: var(--fp-primary);
  border-bottom-color: var(--fp-accent);
  background: var(--fp-light);
}

/* ================================================================
   SIDEBAR WIDGETS
   ================================================================ */

.fp-widget-livescores { padding: 8px 0; }
.fp-widget-match {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-size: 13px;
  border-bottom: 1px solid var(--fp-gray-200);
}
.fp-widget-match:last-child { border-bottom: none; }
.fp-wm-score { font-family: var(--fp-font-head); font-weight: 800; font-size: 14px; color: var(--fp-primary); margin: 0 4px; }
.fp-widget-no-live { padding: 12px; text-align: center; color: var(--fp-gray-400); font-size: 13px; }

.fp-widget-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--fp-primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.fp-widget-header img { width: 20px; height: 20px; object-fit: contain; }
.fp-widget-more {
  display: block;
  text-align: center;
  padding: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--fp-primary);
  text-decoration: none;
  border-top: 1px solid var(--fp-gray-200);
}
.fp-widget-more:hover { background: var(--fp-light); }

.fp-widget-nextmatch { padding: 14px; }
.fp-nextm-label { font-size: 10px; font-weight: 700; letter-spacing: .8px; color: var(--fp-gray-400); margin-bottom: 10px; }
.fp-nextm-teams { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fp-nextm-team { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 13px; font-weight: 600; color: var(--fp-gray-800); }
.fp-nextm-team img { width: 40px; height: 40px; object-fit: contain; }
.fp-nextm-vs { font-family: var(--fp-font-head); font-weight: 800; color: var(--fp-gray-400); font-size: 16px; }
.fp-nextm-info { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--fp-gray-600); text-align: center; }

/* ================================================================
   EMPTY / ERROR states
   ================================================================ */

.fp-empty, .fp-no-data {
  padding: 24px;
  text-align: center;
  color: var(--fp-gray-400);
  font-size: 14px;
}
.fp-error { color: var(--fp-danger); padding: 12px; font-size: 13px; }

/* ================================================================
   LOAD MORE BUTTON
   ================================================================ */

.fp-load-more-wrap { text-align: center; padding: 16px; border-top: 1px solid var(--fp-gray-200); }
.fp-load-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  background: var(--fp-primary);
  color: #fff;
  font-family: var(--fp-font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: background var(--fp-transition), transform var(--fp-transition);
}
.fp-load-more:hover { background: var(--fp-accent); color: var(--fp-dark); transform: translateY(-1px); }

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 768px) {
  .fp-hub-cols-2, .fp-hub-cols-3, .fp-hub-cols-4 { grid-template-columns: 1fr; }
  .fp-hero-teams { gap: 10px; }
  .fp-hero-crest { width: 52px; height: 52px; }
  .fp-hero-score { font-size: 36px; }
  .fp-hero-team-name { font-size: 15px; }
  .fp-match-row { grid-template-columns: 1fr 80px 1fr; gap: 8px; padding: 12px 14px; }
  .fp-score { font-size: 18px; }
  .fp-comp-hero { flex-direction: column; text-align: center; padding: 20px; }
  .fp-comp-hero-title { font-size: 24px; }
  .fp-comp-hero-meta { justify-content: center; }
  .fp-hide-sm { display: none !important; }
}
@media (max-width: 480px) {
  .fp-match-crest { width: 22px; height: 22px; }
  .fp-match-team-name { font-size: 12px; }
  .fp-hero-crest { width: 42px; height: 42px; }
  .fp-scorer-photo { width: 32px; height: 32px; }
  .fp-table th, .fp-table td { padding: 7px 7px; font-size: 12px; }
  .fp-hide-xs { display: none !important; }
  .fp-table-header { flex-wrap: wrap; }
  .fp-table-search { flex-basis: 100%; margin-left: 0; }
  .fp-table-search-input, .fp-table-search-input:focus { width: 100%; }
}

/* ================================================================
   (Previously a `prefers-color-scheme: dark` override lived here.
   The plugin now ships dark by default — see the design-token block
   at the top of this file — so that override no longer applies.)
   ================================================================ */

/* ================================================================
   OVERVIEW PAGE LAYOUT
   ================================================================ */

.fp-comp-page {
  max-width: 1140px;
  margin: 0 auto;
  padding: 28px 16px 60px;
  font-family: var(--fp-font-body);
}

.fp-overview-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 22px;
  align-items: start;
}
.fp-overview-main    { min-width: 0; }
.fp-overview-sidebar { min-width: 0; }

@media (max-width: 900px) {
  .fp-overview-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   MATCH ROW WINNER HIGHLIGHT
   ================================================================ */

.fp-winner {
  font-weight: 700 !important;
  color: var(--fp-primary) !important;
}

/* ================================================================
   NO-DATA STATES
   ================================================================ */

.fp-no-data {
  padding: 24px 20px;
  text-align: center;
  color: var(--fp-gray-400);
  font-size: 14px;
  font-style: italic;
}

/* ================================================================
   COMPETITION HUB — CATEGORY FILTER BAR
   ================================================================ */

.fp-hub-wrap {}

.fp-filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.fp-filter-tab {
  padding: 7px 16px;
  font-family: var(--fp-font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  border-radius: 20px;
  border: 2px solid var(--fp-gray-200);
  background: var(--fp-white);
  color: var(--fp-gray-600);
  cursor: pointer;
  transition: all var(--fp-transition);
}
.fp-filter-tab:hover,
.fp-filter-tab.active {
  background: var(--fp-primary);
  border-color: var(--fp-primary);
  color: #fff;
}

/* ================================================================
   BRACKET — ADDITIONAL POLISH
   ================================================================ */

.fp-bracket-wrap {
  background: var(--fp-white);
  border-radius: var(--fp-radius);
  box-shadow: var(--fp-shadow);
  border: 1px solid var(--fp-gray-200);
  overflow: hidden;
  margin-bottom: 28px;
}

/* ================================================================
   COMPETITION HUB CARD — type badge colours
   ================================================================ */

.fp-badge--league     { border-color: rgba(34,197,94,.4);  color: var(--fp-success) !important; }
.fp-badge--cup        { border-color: rgba(239,68,68,.4);  color: var(--fp-danger) !important; }
.fp-badge--tournament { border-color: rgba(254,188,17,.5); color: var(--fp-accent) !important; }
.fp-badge--group_knockout { border-color: rgba(232,120,32,.4); color: var(--fp-orange) !important; }

/* ================================================================
   MATCH STATUS — FT winner bold scores
   ================================================================ */

.fp-match-row .fp-match-team.home .fp-match-team-name.fp-winner,
.fp-match-row .fp-match-team.away .fp-match-team-name.fp-winner {
  font-weight: 700;
  color: var(--fp-dark);
}

/* ================================================================
   SCORERS — rank medal colours
   ================================================================ */

.fp-scorer-rank:nth-child(1),
li:nth-child(1) .fp-scorer-rank { color: #FFD700; }
li:nth-child(2) .fp-scorer-rank { color: #C0C0C0; }
li:nth-child(3) .fp-scorer-rank { color: #CD7F32; }

/* ================================================================
   PRINT STYLES
   ================================================================ */

@media print {
  .fp-comp-nav,
  .fp-comp-hero::after,
  .fp-load-more-wrap { display: none; }
  /* Force a plain light printout regardless of the on-screen dark theme —
     dark backgrounds waste ink and can print illegibly. */
  .fp-hub, .fp-table-wrap, .fp-results, .fp-fixtures-wrap, .fp-scorers-wrap,
  .fp-bracket, .fp-match-detail, .fp-livescores, .fp-competition-page,
  .fp-match-page, .fp-hero, .fp-live-center, .fp-sports-central {
    background: #fff !important;
    color: #1A1A1A !important;
  }
  .fp-hub *, .fp-table-wrap *, .fp-results *, .fp-fixtures-wrap *, .fp-scorers-wrap *,
  .fp-bracket *, .fp-match-detail *, .fp-livescores *, .fp-competition-page *,
  .fp-match-page *, .fp-hero *, .fp-live-center *, .fp-sports-central * {
    background: transparent !important;
    color: #1A1A1A !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  .fp-table-wrap, .fp-results, .fp-fixtures-wrap { box-shadow: none; border: 1px solid #ccc; }
  .fp-match-row:hover { background: transparent; }
}

/* ================================================================
   ACCESSIBILITY — focus rings
   ================================================================ */

.fp-comp-nav-link:focus,
.fp-group-tab:focus,
.fp-match-tab:focus,
.fp-filter-tab:focus,
.fp-load-more:focus,
.fp-view-full:focus {
  outline: 3px solid var(--fp-accent);
  outline-offset: 2px;
}

/* ================================================================
   UTILITY
   ================================================================ */

.fp-text-center { text-align: center; }
.fp-mt-0 { margin-top: 0; }
.fp-mb-16 { margin-bottom: 16px; }

/* ================================================================
   SIDEBAR WIDGET BASE WRAPPER
   ================================================================ */

.fp-widget-standings {
  background: var(--fp-white);
  border: 1px solid var(--fp-gray-200);
  border-radius: var(--fp-radius);
  overflow: hidden;
  font-family: var(--fp-font-body);
}
.widget .fp-widget-standings { margin-bottom: 0; }

/* ================================================================
   DARK MODULES — Match Preview Hero · Live Center · Sports Central
   Self-contained dark cards designed to sit on light OR dark themes
   (they carry their own black/navy background, independent of the
   --fp-white tokens used by the table/results/fixtures components).
   ================================================================ */

:root {
  /* --fp-ink-*/--fp-panel-bg tokens are now defined once, in the main
     design-token block near the top of this file, and shared by every
     component in the plugin. Nothing to redeclare here. */
}

.fp-hero, .fp-live-center, .fp-sports-central,
.fp-hero *, .fp-live-center *, .fp-sports-central * {
  font-family: var(--fp-font-body);
  box-sizing: border-box;
}

/* ── Match Preview Hero ─────────────────────────────────────────── */

.fp-hero {
  position: relative;
  border-radius: var(--fp-radius);
  overflow: hidden;
  background: var(--fp-hero-bg, none) center/cover no-repeat, var(--fp-ink);
  color: var(--fp-ink-text);
  min-height: 460px;
  display: flex;
  margin-bottom: 32px;
}
.fp-hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,12,16,.35) 0%, rgba(10,12,16,.55) 45%, rgba(10,12,16,.94) 100%);
}
.fp-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 40px;
}
.fp-hero__content { max-width: 640px; }
.fp-hero__tags { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.fp-hero__tag {
  background: var(--fp-accent);
  color: var(--fp-ink);
  font-family: var(--fp-font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
}
.fp-hero__category {
  font-family: var(--fp-font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #7FB4E8;
}
.fp-hero__headline {
  font-family: var(--fp-font-head);
  font-weight: 800;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.04;
  margin-bottom: 16px;
  text-wrap: balance;
}
.fp-hero__subtext {
  font-size: 16px;
  line-height: 1.5;
  color: #D7DDE5;
  margin-bottom: 24px;
  max-width: 560px;
}
.fp-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #BFE0FF;
  color: var(--fp-ink);
  font-family: var(--fp-font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: var(--fp-radius-sm);
  transition: transform var(--fp-transition), background var(--fp-transition);
}
.fp-hero__cta:hover { background: #fff; transform: translateY(-1px); }
.fp-hero__cta-icon { font-size: 11px; }

.fp-hero__matchcard {
  background: rgba(20,23,29,.82);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--fp-radius);
  padding: 20px 24px;
  min-width: 300px;
  text-align: center;
}
.fp-hero__countdown-label {
  display: block;
  font-family: var(--fp-font-head);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--fp-ink-muted);
  margin-bottom: 4px;
}
.fp-hero__countdown-clock {
  display: block;
  font-family: var(--fp-font-head);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .04em;
  margin-bottom: 16px;
}
.fp-hero__teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 16px;
}
.fp-hero__team { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fp-hero__crest, .fp-hero__team .fp-crest-fallback {
  width: 48px; height: 48px; border-radius: var(--fp-radius-sm);
  object-fit: contain; background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fp-font-head); font-weight: 700; color: #fff; font-size: 15px;
}
.fp-hero__team-code { font-family: var(--fp-font-head); font-weight: 700; font-size: 15px; }
.fp-hero__vs { font-family: var(--fp-font-head); font-weight: 700; color: var(--fp-ink-muted); }
.fp-hero__reminder {
  width: 100%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--fp-ink-text);
  font-family: var(--fp-font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 12px;
  border-radius: var(--fp-radius-sm);
  cursor: pointer;
  transition: background var(--fp-transition);
}
.fp-hero__reminder:hover { background: rgba(255,255,255,.16); }

@media (max-width: 640px) {
  .fp-hero__inner { padding: 24px; }
  .fp-hero__matchcard { width: 100%; min-width: 0; }
}

/* ── Live Center ─────────────────────────────────────────────────── */

.fp-live-center {
  background: transparent;
  border-radius: var(--fp-radius);
  padding: 28px 0;
  margin-bottom: 32px;
  color: var(--fp-ink-text);
}
.fp-live-center__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fp-font-head);
  font-weight: 700;
  font-size: 26px;
  margin-bottom: 20px;
}
.fp-live-center__pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--fp-accent);
  box-shadow: 0 0 0 0 rgba(254,188,17,.6);
  animation: fp-pulse 1.8s infinite;
}
@keyframes fp-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(254,188,17,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(254,188,17,0); }
  100% { box-shadow: 0 0 0 0 rgba(254,188,17,0); }
}
.fp-live-center__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
  gap: 16px;
}
.fp-live-center__card {
  display: block;
  background: var(--fp-panel-bg);
  border: 1px solid var(--fp-ink-line);
  border-left: 3px solid var(--fp-ink-line);
  border-radius: var(--fp-radius-sm);
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--fp-transition), border-color var(--fp-transition);
}
.fp-live-center__card:hover { transform: translateY(-2px); }
.fp-live-center__card.is-live { border-left-color: var(--fp-live); }
.fp-live-center__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.fp-live-center__comp {
  font-family: var(--fp-font-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--fp-ink-muted);
  text-transform: uppercase;
}
.fp-live-center__status {
  font-family: var(--fp-font-head);
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.fp-live-center__status--live { color: var(--fp-live); }
.fp-live-center__status--ft   { color: var(--fp-ink-muted); }
.fp-live-center__status--pp   { color: var(--fp-orange); }
.fp-live-center__status--upcoming { color: var(--fp-accent); }
.fp-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; display: inline-block;
}
.fp-live-center__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}
.fp-live-center__crest, .fp-live-center__row .fp-crest-fallback {
  width: 22px; height: 22px; border-radius: 5px;
  object-fit: contain; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: #fff;
}
.fp-live-center__name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fp-live-center__score {
  font-family: var(--fp-font-head);
  font-weight: 700;
  font-size: 16px;
  min-width: 18px;
  text-align: right;
}

/* ── Sports Central Container ───────────────────────────────────── */
.fp-sports-central {
  background: transparent;
  padding: 0;
  margin-bottom: 32px;
  color: var(--fp-ink-text, #ffffff);
  box-sizing: border-box;
}

.fp-sports-central__body {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  align-items: stretch;
}

/* ── Panel Cards (Match & Standings) ────────────────────────────── */
.fp-sports-central__match,
.fp-sports-central__standings {
  background: var(--fp-panel-bg, #0b0e14);
  border: 1px solid var(--fp-ink-line, rgba(255, 255, 255, 0.12));
  border-radius: var(--fp-radius, 16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* ── Match Panel ────────────────────────────────────────────────── */
.fp-sports-central__match {
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.fp-sports-central__matchlink {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.fp-sports-central__badge {
  display: inline-block;
  font-family: var(--fp-font-head, system-ui, sans-serif);
  font-weight: 700;
  font-size: 13px;
  color: #000000;
  background: var(--fp-accent, #ffcc00);
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.fp-sports-central__complabel {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--fp-ink-muted, #8b949e);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}

.fp-sports-central__match-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  width: 100%;
}

/* Team Box */
.fp-sports-central__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 120px;
  flex-shrink: 0;
}

.fp-sports-central__crest-box {
  width: 96px;
  height: 96px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.fp-sports-central__matchlink:hover .fp-sports-central__crest-box {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.fp-hero-crest {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.fp-sports-central__team-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--fp-ink-text, #ffffff);
  text-align: center;
  line-height: 1.3;
}

/* Score Display */
.fp-sports-central__scorebox {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 8px;
}

.fp-sports-central__score {
  font-family: var(--fp-font-head, system-ui, sans-serif);
  font-weight: 800;
  font-size: 48px;
  color: #ffffff;
  line-height: 1;
}

.fp-sports-central__dash {
  color: #ffffff;
  font-size: 32px;
  font-weight: 700;
  opacity: 0.8;
  line-height: 1;
}

/* ── Standings Panel ────────────────────────────────────────────── */
.fp-sports-central__standings {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.fp-sports-central__standings-label {
  display: block;
  font-family: var(--fp-font-head, system-ui, sans-serif);
  font-weight: 700;
  font-size: 18px;
  color: var(--fp-ink-text, #ffffff);
  margin-bottom: 20px;
}

.fp-sc-table {
  width: 100%;
}

.fp-sc-row {
  display: grid;
  grid-template-columns: 32px 1fr 40px 50px 40px;
  align-items: center;
  gap: 8px;
}

.fp-sc-head {
  font-family: var(--fp-font-head, system-ui, sans-serif);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fp-ink-muted, #8b949e);
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 4px;
}

.fp-sc-head span:nth-child(n+3) {
  text-align: right;
}

.fp-sc-body .fp-sc-row {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
}

.fp-sc-body .fp-sc-row:last-child {
  border-bottom: none;
}

.fp-sc-pos {
  font-family: var(--fp-font-head, system-ui, sans-serif);
  font-weight: 700;
  color: #ffffff;
}

.fp-sc-club {
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-sc-stat {
  text-align: right;
  color: var(--fp-ink-muted, #8b949e);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.fp-sc-pts {
  text-align: right;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.fp-no-data {
  color: var(--fp-ink-muted, #8b949e);
  font-size: 14px;
  text-align: center;
  margin: auto;
}

/* ── Responsive Breakpoints ─────────────────────────────────────── */
@media (max-width: 868px) {
  .fp-sports-central__body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .fp-sports-central__match {
    padding: 24px 16px;
  }
  
  .fp-sports-central__match-layout {
    gap: 12px;
  }

  .fp-sports-central__team {
    width: 90px;
  }

  .fp-sports-central__crest-box {
    width: 72px;
    height: 72px;
    padding: 10px;
  }

  .fp-sports-central__score {
    font-size: 36px;
  }

  .fp-sports-central__dash {
    font-size: 24px;
  }

  .fp-sports-central__standings {
    padding: 20px 16px;
  }

  .fp-sc-row {
    grid-template-columns: 24px 1fr 32px 42px 32px;
    gap: 4px;
    font-size: 13px;
  }
}