/* FasoFoot front theme — modern layer loaded AFTER main.css (Bootstrap 4 +
   purchased theme, compiled, no SASS source in repo). Additive only: we
   never edit main.css directly, we override/extend on top of it so the
   purchased theme keeps working (mega-menu, carousels, etc.) untouched. */

:root {
  --ff-pitch: #146C32;
  --ff-pitch-dark: #0B4A22;
  --ff-gold: #D9A404;
  --ff-gold-light: #F5D368;

  --ff-ink: #1A2229;
  --ff-ink-soft: #5B6670;

  --ff-bg: #F6F8F7;
  --ff-surface: #FFFFFF;
  --ff-border: #E4E9E6;

  --ff-danger: #D64545;
  --ff-warning: #E8A33D;
  --ff-info: #2E7BB8;
  --ff-success: #1E9E5A;

  /* "Live"/action accent — next match, urgent status, active pagination.
     Matches the admin theme's brand red exactly (#ED0101, sampled from
     the real logo) so the same accent reads consistently site-wide. */
  --ff-live: #ED0101;
  --ff-live-dark: #B80101;

  --ff-radius: 14px;
  --ff-radius-sm: 8px;
  --ff-shadow: 0 2px 10px rgba(20, 40, 30, .06);
  --ff-shadow-hover: 0 10px 24px rgba(20, 40, 30, .12);
  --ff-font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --ff-font-title: 'Poppins', -apple-system, 'Segoe UI', sans-serif;
}

/* ---------------------------------------------------------------- */
/* Typography                                                        */
/* ---------------------------------------------------------------- */

body {
  font-family: var(--ff-font-body);
  color: var(--ff-ink);
  background-color: var(--ff-bg);
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.section-title h1,
.card-title,
.titles h4 {
  font-family: var(--ff-font-title);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ff-ink);
}

a {
  color: var(--ff-pitch);
}

a:hover {
  color: var(--ff-pitch-dark);
}

/* Keyboard-navigation focus ring — branded, visible only for keyboard
   users (mouse/touch clicks don't trigger :focus-visible), since the
   site had zero custom focus styling and relied on unbranded browser
   defaults. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--ff-gold);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- */
/* Hero / section title banner.                                      */
/* Default is now a flat brand gradient — no per-page hero photo, so */
/* pages don't all load the same slide/1.jpg and don't all look      */
/* identical. Views that still set style="background:url(...)" keep  */
/* working: the ::before overlay guarantees the text stays readable. */
/* ---------------------------------------------------------------- */

.section-title {
  position: relative;
  background: linear-gradient(135deg, var(--ff-pitch-dark), var(--ff-pitch) 75%);
  background-size: cover;
  background-position: center;
  padding: 40px 0;
}

/* Overlay only kicks in when a page supplies its own background image
   (inline style adds a second background layer over the gradient). */
.section-title[style*="url"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 74, 34, .55), rgba(11, 74, 34, .85));
}

.section-title .container {
  position: relative;
  z-index: 1;
}

/* Match score header (resultats/show): always a flat panel, never a
   stadium photo behind the numbers. */
.section-title.single-result {
  background: linear-gradient(135deg, var(--ff-pitch-dark), var(--ff-pitch));
}

.section-title.single-result::before {
  display: none;
}

.section-title h1 {
  color: #fff;
  font-weight: 700;
}

.section-title .breadcrumbs a {
  color: var(--ff-gold-light);
}

.section-title .breadcrumbs li {
  color: #fff;
}

/* ---------------------------------------------------------------- */
/* Cards — post-item (news list), panel-box, item-player              */
/* ---------------------------------------------------------------- */

.panel-box,
.post-item,
.item-player {
  background-color: var(--ff-surface);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius);
  box-shadow: var(--ff-shadow);
  transition: box-shadow .2s ease, transform .2s ease;
}

.post-item {
  padding: 16px;
  margin-bottom: 20px;
}

.item-player {
  padding: 16px;
  margin-bottom: 20px;
  text-align: center;
}

.panel-box:hover,
.post-item:hover,
.item-player:hover {
  box-shadow: var(--ff-shadow-hover);
  transform: translateY(-3px);
}

.panel-box .titles,
.post-item .titles {
  border-bottom: 1px solid var(--ff-border);
}

.data-info {
  color: var(--ff-ink-soft);
  font-size: .85rem;
}

/* ---------------------------------------------------------------- */
/* Tag pills — fixes the "tags stacked full-width" bug.               */
/* Root cause: the theme's `.post-item p a { display:block }` rule    */
/* targeted the single "Lire plus [+]" link but also caught any tag   */
/* link placed inside a <p>. Fix is structural: tags now live in a    */
/* dedicated .tag-list container, never inside a <p>, so that rule    */
/* can never apply to them again.                                    */
/* ---------------------------------------------------------------- */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.ff-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background-color: rgba(20, 108, 50, .08);
  color: var(--ff-pitch) !important;
  font-size: .75rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}

.ff-tag:hover {
  background-color: var(--ff-pitch);
  color: #fff !important;
}

/* ---------------------------------------------------------------- */
/* Detail hero — club / player / competition identity block          */
/* ---------------------------------------------------------------- */

.ff-detail-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding: 24px;
  margin-bottom: 24px;
}

.ff-club-badge-lg,
.ff-player-avatar-lg {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ff-club-badge-lg {
  border: 3px solid var(--ff-gold-light);
}

.ff-player-avatar-lg {
  border: 3px solid var(--ff-pitch);
}

.ff-club-badge-lg img,
.ff-player-avatar-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ff-detail-hero-body {
  flex: 1 1 280px;
}

.ff-detail-hero-body h2 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

/* ---------------------------------------------------------------- */
/* Player hero — large portrait photo + identity. Replaces the small */
/* round avatar on the player page. Photo is a swipebox link so it   */
/* opens full-size in a lightbox.                                    */
/* ---------------------------------------------------------------- */

.ff-player-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding: 24px;
  margin-bottom: 24px;
}

.ff-player-hero-photo {
  position: relative;
  flex: 0 0 auto;
  width: 220px;
  max-width: 40vw;
  aspect-ratio: 3 / 4;
  border-radius: var(--ff-radius);
  overflow: hidden;
  background: var(--ff-bg);
  border: 1px solid var(--ff-border);
  display: block;
  padding: 0;
  cursor: zoom-in;
}

.ff-player-hero-photo:focus-visible {
  outline: 3px solid var(--ff-gold);
  outline-offset: 2px;
}

.ff-player-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.ff-player-hero-photo:hover img {
  transform: scale(1.04);
}

.ff-player-hero-zoom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 10px;
  background: linear-gradient(180deg, transparent, rgba(11, 74, 34, .85));
  color: #fff;
  font-family: var(--ff-font-title);
  font-weight: 600;
  font-size: .78rem;
  text-align: center;
  opacity: 0;
  transition: opacity .2s ease;
}

.ff-player-hero-photo:hover .ff-player-hero-zoom,
.ff-player-hero-photo:focus-visible .ff-player-hero-zoom {
  opacity: 1;
}

.ff-player-hero-zoom i {
  margin-right: 4px;
}

.ff-player-hero-body {
  flex: 1 1 280px;
  align-self: center;
}

.ff-player-hero-body h2 {
  margin: 0 0 12px;
  font-size: 1.6rem;
}

@media (max-width: 575.98px) {
  .ff-player-hero {
    gap: 18px;
    justify-content: center;
    text-align: center;
  }

  .ff-player-hero-photo {
    width: 180px;
    max-width: 60vw;
  }

  .ff-player-hero-body {
    flex-basis: 100%;
  }

  .ff-player-hero-body .ff-meta-row {
    justify-content: center;
  }
}

/* "Actualités liées" section on club / player / competition pages.
   Gets a top separator only when it follows other content. */
.ff-related-news {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--ff-border);
}

/* On the division (classement) page it's the first block — no separator,
   tighter top. */
.ff-related-news:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  margin-bottom: 8px;
}

/* Per-season heading in a club's match history. */
.ff-history-season {
  margin: 20px 0 10px;
  font-family: var(--ff-font-title);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ff-ink-soft);
}

.ff-history-season:first-child {
  margin-top: 0;
}

/* Fullscreen photo lightbox (player page). No library. */
.ff-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 74, 34, .92);
}

.ff-lightbox[hidden] {
  display: none;
}

.ff-lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: var(--ff-radius-sm);
  box-shadow: 0 12px 48px rgba(0, 0, 0, .5);
}

.ff-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s ease;
}

.ff-lightbox-close:hover {
  background: rgba(255, 255, 255, .3);
}

/* ---------------------------------------------------------------- */
/* Meta pills row — replaces stacked <p><strong>Label:</strong></p>   */
/* ---------------------------------------------------------------- */

.ff-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ff-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--ff-radius-sm);
  background-color: var(--ff-bg);
  border: 1px solid var(--ff-border);
  font-size: .85rem;
  color: var(--ff-ink);
}

.ff-meta-pill i {
  color: var(--ff-pitch);
}

.ff-meta-pill strong {
  color: var(--ff-ink-soft);
  font-weight: 600;
}

/* ---------------------------------------------------------------- */
/* Division / status pills                                           */
/* ---------------------------------------------------------------- */

.ff-division-pill {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  background-color: var(--ff-pitch);
  color: #fff;
}

.ff-division-pill.ff-dames {
  background-color: var(--ff-gold);
  color: var(--ff-pitch-dark);
}

/* ---------------------------------------------------------------- */
/* Stat grid / tiles — headline numbers (player stats, etc.)          */
/* ---------------------------------------------------------------- */

.ff-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  margin: 16px 0 24px;
}

.ff-stat-tile {
  background-color: var(--ff-surface);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius-sm);
  padding: 14px 10px;
  text-align: center;
}

.ff-stat-tile .ff-stat-value {
  display: block;
  font-family: var(--ff-font-title);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--ff-pitch);
  line-height: 1.1;
}

.ff-stat-tile .ff-stat-label {
  display: block;
  margin-top: 4px;
  font-size: .7rem;
  color: var(--ff-ink-soft);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ---------------------------------------------------------------- */
/* Timeline — club history for a player                               */
/* ---------------------------------------------------------------- */

.ff-timeline {
  border-left: 2px solid var(--ff-border);
  padding-left: 16px;
  margin-left: 4px;
}

.ff-timeline-item {
  position: relative;
  padding-bottom: 14px;
}

.ff-timeline-item::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--ff-pitch);
  border: 2px solid var(--ff-surface);
}

/* Match-event timeline variants (resultats/show "Feuille de match") —
   goal/card/substitution dots colored by event type. */
.ff-timeline-item.ff-timeline-goal::before {
  background-color: var(--ff-pitch);
}

.ff-timeline-item.ff-timeline-card-yellow::before {
  background-color: var(--ff-gold);
}

.ff-timeline-item.ff-timeline-card-red::before {
  background-color: var(--ff-live);
}

.ff-timeline-item.ff-timeline-sub::before {
  background-color: var(--ff-ink-soft);
}

.ff-timeline-item strong {
  color: var(--ff-ink);
}

.ff-timeline-item span {
  display: block;
  color: var(--ff-ink-soft);
  font-size: .8rem;
}

/* ---------------------------------------------------------------- */
/* Section separators — .clear-title accent bar                      */
/* ---------------------------------------------------------------- */

.clear-title {
  border-left: 4px solid var(--ff-gold);
  padding-left: 12px;
  margin: 2.5rem 0 1.25rem;
  font-size: 1.25rem;
}

/* ---------------------------------------------------------------- */
/* Tables (front) — stats, feuille de match, classement, tops         */
/* ---------------------------------------------------------------- */

/* The purchased theme only makes .table-responsive scroll below 991px
   (Bootstrap-3 behaviour), so wide tables (player stats = 9 cols,
   classement = 11) overflow their container unscrollably on laptop /
   tablet widths and get clipped. Restore the Bootstrap-4 behaviour:
   scroll horizontally at every width. */
.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* A min-width so columns stay readable instead of being squeezed;
   below it the wrapper scrolls. */
.table-responsive > .table-striped,
.table-responsive > .result-point {
  min-width: 640px;
}

/* "Compact" tables (player season stats, top scorers / assists): keep
   them from spanning the whole 1300px column, but give them a generous
   width and centre it — full width below the cap. Selector is
   deliberately specific so it wins over `.table-striped { width: 100% }`
   further down. */
.table-responsive.ff-table-compact {
  display: block;
}

.table-responsive.ff-table-compact > .ff-stats-table,
.table-responsive.ff-table-compact > .ff-ranking-table,
.table-responsive.ff-table-compact > .ff-matchlog-table,
.table-responsive.ff-table-compact > .ff-comprecord-table {
  width: 100%;
  min-width: 0;
}

/* Club record per competition. */
.ff-comprecord-table {
  min-width: 640px;
}

.ff-comprecord-table th,
.ff-comprecord-table td {
  padding: 12px 16px;
  vertical-align: middle;
}

.ff-comprecord-table td:first-child .ff-division-pill {
  margin-left: 8px;
  font-size: .68rem;
}

.ff-stats-table th,
.ff-stats-table td {
  white-space: nowrap;
}

/* Player match log — per-match history with a "Décisif" column. */
.ff-matchlog-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.ff-matchlog-count {
  font-size: .8rem;
  color: var(--ff-ink-soft);
  font-weight: 600;
}

.ff-matchlog-table {
  min-width: 620px;
}

.ff-matchlog-table th,
.ff-matchlog-table td {
  padding: 10px 14px;
  vertical-align: middle;
}

.ff-matchlog-table td:first-child a {
  color: var(--ff-ink);
  font-weight: 600;
  white-space: nowrap;
}

.ff-matchlog-table td:first-child a:hover,
.ff-matchlog-opponent:hover {
  color: var(--ff-pitch);
}

.ff-matchlog-opponent {
  color: var(--ff-ink);
  font-weight: 600;
}

/* Whole row links to the match. */
.ff-matchlog-row {
  cursor: pointer;
}

.ff-matchlog-row:hover {
  background-color: rgba(20, 108, 50, .06);
}

/* D / E badge before the opponent name. */
.ff-matchlog-venue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-right: 6px;
  border-radius: 4px;
  background: var(--ff-bg);
  border: 1px solid var(--ff-border);
  font-size: .7rem;
  font-weight: 700;
  color: var(--ff-ink-soft);
}

.ff-matchlog-sub {
  color: var(--ff-ink-soft);
  font-size: .8rem;
}

/* Decisiveness pills — goals, assists, cards in a single match. */
.ff-decisive {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: center;
}

.ff-decisive-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  color: #fff;
}

.ff-decisive-goal {
  background: var(--ff-pitch);
}

.ff-decisive-assist {
  background: var(--ff-info);
}

.ff-decisive-yellow {
  width: 12px;
  min-width: 12px;
  height: 16px;
  border-radius: 2px;
  background: var(--ff-gold);
}

.ff-decisive-red {
  width: 12px;
  min-width: 12px;
  height: 16px;
  border-radius: 2px;
  background: var(--ff-live);
}

/* Player ranking tables (top scorers / assists). */
.ff-ranking-table {
  min-width: 480px;
}

.ff-ranking-table th,
.ff-ranking-table td {
  padding: 12px 20px;
  vertical-align: middle;
}

.ff-ranking-table td:first-child,
.ff-ranking-table th:first-child {
  width: 56px;
  padding-left: 16px;
  padding-right: 16px;
}

.ff-ranking-table td:last-child,
.ff-ranking-table th:last-child {
  width: 140px;
  white-space: nowrap;
}

/* Club column takes the slack so the name column stays tight to the
   player name. */
.ff-ranking-table td:nth-child(3),
.ff-ranking-table th:nth-child(3) {
  width: 40%;
}

.ff-rank-cell {
  font-family: var(--ff-font-title);
  font-weight: 700;
  color: var(--ff-ink-soft);
}

/* Podium accent on the first three rows. */
.ff-ranking-table tbody tr:nth-child(1) .ff-rank-cell { color: var(--ff-gold); }
.ff-ranking-table tbody tr:nth-child(2) .ff-rank-cell,
.ff-ranking-table tbody tr:nth-child(3) .ff-rank-cell { color: var(--ff-pitch); }

.ff-ranking-table td a {
  color: var(--ff-ink);
  font-weight: 600;
}

.ff-ranking-table td a:hover {
  color: var(--ff-pitch);
}

/* Card colour dots used as compact column headers. */
.ff-card-dot {
  display: inline-block;
  width: 12px;
  height: 16px;
  border-radius: 2px;
  vertical-align: middle;
}

.ff-card-yellow {
  background: var(--ff-gold);
}

.ff-card-red {
  background: var(--ff-live);
}


.table-striped,
.result-point {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background-color: var(--ff-surface);
  border-radius: var(--ff-radius-sm);
  overflow: hidden;
}

.table-striped thead th,
.result-point thead th,
.point-table-head th {
  background-color: var(--ff-pitch-dark);
  color: #fff;
  font-family: var(--ff-font-title);
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 12px 14px;
  border: none;
}

.table-striped tbody td,
.result-point tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--ff-border);
  vertical-align: middle;
}

.table-striped tbody tr:nth-child(even),
.result-point tbody tr:nth-child(even) {
  background-color: var(--ff-bg);
}

.table-hover tbody tr:hover,
.result-point tbody tr:hover {
  background-color: rgba(20, 108, 50, .06);
}

/* Standings zone highlighting — top-of-table / bottom-of-table left
   border, the way every real standings page (league site, ESPN,
   Sofascore) marks qualification/relegation zones at a glance. */
.result-point tbody tr.ff-zone-top {
  box-shadow: inset 4px 0 0 var(--ff-pitch);
}

.result-point tbody tr.ff-zone-bottom {
  box-shadow: inset 4px 0 0 var(--ff-live);
}

/* Form guide — last 5 results as W/D/L pills. */
.ff-form-guide {
  display: inline-flex;
  gap: 3px;
}

.ff-form-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: .65rem;
  font-weight: 700;
  color: #fff;
}

.ff-form-V {
  background-color: var(--ff-pitch);
}

.ff-form-N {
  background-color: var(--ff-ink-soft);
}

.ff-form-D {
  background-color: var(--ff-live);
}

/* ------------------------------------------------------------------ */
/* Match list (programme, coupe, résultats index) — one row per game, */
/* centred on the score. Replaces the old 4-column tables / stretched */
/* col-md-4 grid where the score floated far from the teams.          */
/* ------------------------------------------------------------------ */

.ff-match-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.ff-match-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 32px;
  background: var(--ff-surface);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius-sm);
  text-decoration: none;
  color: var(--ff-ink);
  transition: box-shadow .15s ease, border-color .15s ease;
}

a.ff-match-row:hover {
  border-color: var(--ff-pitch);
  box-shadow: var(--ff-shadow);
}

/* Optional cup-round label sits above the row (spans full width). */
.ff-match-row-phase {
  grid-column: 1 / -1;
  font-family: var(--ff-font-title);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ff-ink-soft);
}

.ff-match-row-side {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ff-match-row-home {
  justify-content: flex-end;
  text-align: right;
}

.ff-match-row-away {
  justify-content: flex-start;
  text-align: left;
}

.ff-match-row-name {
  font-family: var(--ff-font-title);
  font-weight: 600;
  font-size: .9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ff-match-row-score {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  font-family: var(--ff-font-title);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ff-ink);
}

.ff-match-row-dash {
  margin: 0 6px;
  color: var(--ff-ink-soft);
}

.ff-match-row-vs {
  font-size: .8rem;
  font-weight: 700;
  color: var(--ff-ink-soft);
  letter-spacing: .05em;
}

.ff-match-row-meta {
  grid-column: 1 / -1;
  text-align: center;
  font-size: .78rem;
  color: var(--ff-ink-soft);
}

.ff-match-row-venue::before {
  content: " - ";
}

@media (max-width: 575.98px) {
  .ff-match-row {
    gap: 8px;
    padding: 10px 12px;
  }

  .ff-match-row-name {
    font-size: .82rem;
  }

  .ff-match-row-side .ff-club-logo {
    display: none; /* keep names readable on very narrow screens */
  }

  .ff-match-row-score {
    min-width: 52px;
    font-size: 1rem;
  }
}

/* ---------------------------------------------------------------- */
/* Empty state — icon + message, replaces plain "Aucun X trouvé" text */
/* on the highest-traffic listing pages.                              */
/* ---------------------------------------------------------------- */

.ff-empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--ff-ink-soft);
}

.ff-empty-state i {
  display: block;
  font-size: 2.5rem;
  color: var(--ff-border);
  margin-bottom: 12px;
}

.ff-empty-state p {
  margin: 0;
  font-size: .95rem;
}

/* Article hero image (actualites/show) — reserves space with
   aspect-ratio so the image loading in doesn't shift the byline/content
   below it (was previously totally unconstrained). */
.ff-article-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--ff-radius-sm);
  background-color: var(--ff-bg);
}

/* ---------------------------------------------------------------- */
/* Match score header (resultats/show, coupe)                        */
/* ---------------------------------------------------------------- */

.single-result .team a {
  color: #fff;
  font-family: var(--ff-font-title);
  font-weight: 600;
}

.single-result .result-match {
  font-family: var(--ff-font-title);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--ff-gold-light);
}

.single-result .result-location li {
  color: rgba(255, 255, 255, .85);
}

.single-result .result-location li a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .4);
  text-underline-offset: 3px;
}

.single-result .result-location li a:hover {
  text-decoration-color: #fff;
}

/* ---------------------------------------------------------------- */
/* Match page (resultats/show) — Résumé / Compos / Stats tabs        */
/* ---------------------------------------------------------------- */

.ff-tab-panel {
  margin-bottom: 24px;
}

/* Count badge inside a tab (club page: Effectif / Historique). */
.ff-tab-count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--ff-border);
  color: var(--ff-ink-soft);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.4;
}

.ff-tabs a.active .ff-tab-count {
  background: rgba(255, 255, 255, .25);
  color: #fff;
}

/* Line-ups */
.ff-lineup-label {
  margin: 14px 0 8px;
  font-family: var(--ff-font-title);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ff-ink-soft);
}

.ff-lineup-label:first-child {
  margin-top: 0;
}

.ff-lineup-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ff-lineup-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--ff-border);
  font-size: .9rem;
}

.ff-lineup-list li:last-child {
  border-bottom: 0;
}

.ff-lineup-num {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--ff-bg);
  border: 1px solid var(--ff-border);
  font-family: var(--ff-font-title);
  font-weight: 700;
  font-size: .75rem;
  color: var(--ff-ink-soft);
}

.ff-lineup-list a {
  color: var(--ff-ink);
  flex: 1 1 auto;
}

.ff-lineup-list a:hover {
  color: var(--ff-pitch);
}

.ff-lineup-off {
  color: var(--ff-live);
  font-size: .75rem;
  white-space: nowrap;
}

.ff-lineup-on {
  color: var(--ff-pitch);
  font-size: .75rem;
  white-space: nowrap;
}

/* Match stats — comparative bars, home value left / away value right. */
.ff-matchstats {
  max-width: 640px;
  margin: 0 auto;
}

.ff-matchstats-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--ff-font-title);
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 12px;
}

.ff-matchstat-row {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.ff-matchstat-val {
  font-family: var(--ff-font-title);
  font-weight: 700;
  font-size: .9rem;
  text-align: center;
}

.ff-matchstat-bar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--ff-border);
}

.ff-matchstat-bar-home {
  background: var(--ff-pitch);
}

.ff-matchstat-bar-away {
  background: var(--ff-gold);
}

.ff-matchstat-label {
  grid-column: 1 / -1;
  text-align: center;
  font-style: normal;
  font-size: .78rem;
  color: var(--ff-ink-soft);
  margin-bottom: 10px;
}

/* ---------------------------------------------------------------- */
/* Buttons                                                            */
/* ---------------------------------------------------------------- */

.btn-primary,
.post-item .btn,
.item-player .btn {
  background-color: var(--ff-pitch);
  border-color: var(--ff-pitch);
  border-radius: var(--ff-radius-sm);
  transition: background-color .15s ease, transform .1s ease;
}

.btn-primary:hover,
.post-item .btn:hover,
.item-player .btn:hover {
  background-color: var(--ff-pitch-dark);
  border-color: var(--ff-pitch-dark);
}

.btn:active {
  transform: scale(.98);
}

/* ================================================================ */
/* HEADER — two clean rows, no mega-menu.                            */
/*   Row 1 (this file's .mainmenu rules): logo + Accueil/Actualités/ */
/*   Contact + global search.                                        */
/*   Row 2 = .ff-division-bar (further down): competition switcher +  */
/*   the active competition's sections.                              */
/* The purchased theme's .sf-menu markup is kept as the shell (it    */
/* carries the sticky plugin + logo responsiveness), but every       */
/* .sf-mega is gone from the markup, so no dropdown JS is involved.  */
/* ================================================================ */

/* Row 1 layout: menu on the left, search pinned right. The theme sizes
   .sf-menu with text-align:right + inline-block <li>; a flex container
   here overrides that cleanly without touching main.css. */
@media (min-width: 992px) {
  .header-2 .mainmenu > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  .header-2 .mainmenu .sf-menu {
    text-align: left;
    flex: 0 1 auto;
  }
}

.mainmenu .sf-menu > li > a {
  font-family: var(--ff-font-title);
  font-weight: 600;
}

.mainmenu .sf-menu > li.current > a,
.mainmenu .sf-menu > li:hover > a {
  color: var(--ff-gold);
}

.mainmenu .sf-menu > li.current > a {
  box-shadow: inset 0 -3px 0 var(--ff-gold);
}

/* Any stray .sf-mega can never open — belt and braces since the
   markup no longer emits one. */
.mainmenu .sf-mega { display: none !important; }

/* Global search box in the header (desktop) — sits to the right of the
   menu inside .mainmenu > .container. */
.ff-header-search {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  background: var(--ff-surface);
  border: 1px solid var(--ff-border);
  border-radius: 999px;
  padding: 3px 3px 3px 16px;
  vertical-align: middle;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.ff-header-search:focus-within {
  border-color: var(--ff-pitch);
  box-shadow: 0 0 0 3px rgba(20, 108, 50, .12);
}

.ff-header-search input {
  border: 0;
  background: transparent;
  outline: 0;
  font-family: var(--ff-font-body);
  font-size: .85rem;
  color: var(--ff-ink);
  width: 170px;
  transition: width .2s ease;
}

.ff-header-search input::placeholder {
  color: var(--ff-ink-soft);
}

.ff-header-search input:focus {
  width: 220px;
}

.ff-header-search button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  background: var(--ff-pitch);
  color: #fff;
  cursor: pointer;
  transition: background-color .15s ease;
}

.ff-header-search button:hover {
  background: var(--ff-pitch-dark);
}

/* The header search follows the desktop menu: hidden once the menu
   collapses to the hamburger (#mobile-nav has its own search field). */
@media (max-width: 1199.98px) {
  .ff-header-search {
    display: none;
  }
}

/* ---------------------------------------------------------------- */
/* Slide-in mobile nav (#mobile-nav)                                 */
/* ---------------------------------------------------------------- */

#mobile-nav a {
  padding: 12px 16px;
  display: block;
  min-height: 44px;
}

#mobile-nav .current > a {
  color: var(--ff-gold);
  font-weight: 700;
}

/* Section labels ("Compétitions", "Le site") between groups. */
#mobile-nav .ff-mnav-heading {
  padding: 14px 16px 4px;
  font-family: var(--ff-font-title);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .5);
}

/* Search field inside the slide-in mobile nav. */
.ff-mobile-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.ff-mobile-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--ff-radius-sm);
  font-size: .9rem;
}

.ff-mobile-search button {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--ff-radius-sm);
  background: var(--ff-pitch);
  color: #fff;
}

footer a {
  color: var(--ff-gold-light);
}

/* Breathing room between page content and the footer. The theme's
   .paddings-mini only gives 30px and .padding-top gives none at the
   bottom, so tables/cards sat right against the footer. */
.content-info {
  padding-bottom: 64px;
}

#footer {
  margin-top: 24px;
}

/* ---------------------------------------------------------------- */
/* Division bar — row 2 of the header. Primary navigation for a      */
/* results site (Flashscore / Sofascore "competition tabs").         */
/*   .ff-division-bar-row (row A): D1 / D2 / D3 / D1 Dames / Coupe    */
/*   .ff-division-bar-sub (row B): sections of the active division,   */
/*   shown only on a division page.                                  */
/* Both rows scroll horizontally on narrow screens.                  */
/* ---------------------------------------------------------------- */

.ff-division-bar {
  position: relative;
  background-color: var(--ff-pitch-dark);
  border-bottom: 3px solid var(--ff-gold);
}

/* Fade hint on the right edge so it's obvious the rows scroll on
   narrow screens. Purely decorative, doesn't catch pointer events. */
.ff-division-bar::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 3px;
  width: 28px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--ff-pitch-dark));
}

@media (min-width: 992px) {
  .ff-division-bar::after { display: none; }
}

.ff-division-bar-row {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.ff-division-bar-row::-webkit-scrollbar {
  display: none;
}

@media (max-width: 575.98px) {
  .ff-division-bar-row a {
    padding: 11px 13px;
    font-size: .8rem;
  }

  .ff-division-bar-sub a {
    padding: 8px 12px;
    font-size: .76rem;
  }
}

.ff-division-bar-row a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  color: rgba(255, 255, 255, .72);
  font-family: var(--ff-font-title);
  font-weight: 600;
  font-size: .82rem;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: color .15s ease, background-color .15s ease;
}

.ff-division-bar-row a:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, .06);
}

.ff-division-bar-row a.active {
  color: #fff;
  border-bottom-color: var(--ff-gold);
}

/* Row B: lighter background, smaller, gold underline for the active
   section, sits above the bar's own gold border. */
.ff-division-bar-sub {
  background-color: rgba(0, 0, 0, .18);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.ff-division-bar-sub a {
  padding: 9px 16px;
  font-size: .78rem;
  font-weight: 600;
}

/* ---------------------------------------------------------------- */
/* Desktop / hamburger breakpoint. The purchased theme flips at      */
/* 1200px; pull it to 992px so tablet-landscape gets the real menu.  */
/* With the mega-menu gone the row is just 3 links + search, so it   */
/* fits easily.                                                      */
/* ---------------------------------------------------------------- */

@media (min-width: 992px) and (max-width: 1199.98px) {
  header .mobile-nav { display: none !important; }
  #mobile-nav { display: none !important; }
  .sticky-wrapper,
  .header-2 .mainmenu { display: block !important; }

  .header-2 .mainmenu .sf-menu { text-align: right; }
  .header-2 .mainmenu .sf-menu > li { float: none; display: inline-block; }
  .header-2 .sf-menu > li > a { font-size: 13px; padding: 0 12px; }

  .ff-header-search { display: inline-flex; margin-left: 12px; }
  .ff-header-search input { width: 140px; }
  .ff-header-search input:focus { width: 160px; }
}

/* ---------------------------------------------------------------- */
/* Responsive polish                                                  */
/* ---------------------------------------------------------------- */

@media (max-width: 991.98px) {
  .ff-news-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .ff-mini-widget-grid {
    grid-template-columns: 1fr;
  }

  .ff-quicknav {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  }
}

@media (max-width: 767px) {
  .ff-detail-hero {
    flex-direction: column;
    text-align: center;
  }

  .ff-meta-row {
    justify-content: center;
  }

  .section-title h1 {
    font-size: 1.5rem;
  }

  .ff-match-strip {
    gap: 16px;
  }

  .ff-match-strip-score {
    font-size: 1.5rem;
    min-width: auto;
  }

  .ff-tabs {
    gap: 6px;
  }

  .ff-tabs a {
    padding: 6px 14px;
    font-size: .8rem;
  }
}

/* ---------------------------------------------------------------- */
/* Pagination — same treatment as the admin theme: compact Bootstrap  */
/* links (see AppServiceProvider, which forces every ->links() call,  */
/* front and admin, onto vendor.pagination.bootstrap-4) with the      */
/* brand red marking the current page.                                */
/* ---------------------------------------------------------------- */

.pagination {
  gap: 4px;
  flex-wrap: wrap;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: var(--ff-radius-sm) !important;
  border: 1px solid var(--ff-border);
  color: var(--ff-ink);
  font-size: .85rem;
  line-height: 1;
}

.page-link:hover {
  background-color: rgba(20, 108, 50, .08);
  color: var(--ff-pitch);
  border-color: var(--ff-pitch);
}

.page-item.active .page-link {
  background-color: var(--ff-live) !important;
  border-color: var(--ff-live) !important;
  color: #fff !important;
}

.page-item.disabled .page-link {
  color: var(--ff-ink-soft);
  background-color: var(--ff-bg);
}

/* ------------------------------------------------------------------ */
/* News card — single card language for every actualité listing        */
/* (home, /actualites, search, filters). Replaces the mix of plain     */
/* Bootstrap .card + custom .post-item that used to coexist on the     */
/* same page.                                                          */
/* ------------------------------------------------------------------ */

.ff-news-card {
  display: flex;
  flex-direction: column;
  background-color: var(--ff-surface);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius);
  box-shadow: var(--ff-shadow);
  overflow: hidden;
  height: 100%;
  transition: box-shadow .2s ease, transform .2s ease;
}

.ff-news-card:hover {
  box-shadow: var(--ff-shadow-hover);
  transform: translateY(-3px);
}

.ff-news-card-imgwrap {
  display: block;
  overflow: hidden;
}

.ff-news-card-img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  background-color: var(--ff-bg);
  transition: transform .3s ease;
}

.ff-news-card-imgwrap:hover .ff-news-card-img {
  transform: scale(1.04);
}

.ff-news-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 16px;
}

.ff-news-card-meta {
  color: var(--ff-ink-soft);
  font-size: .8rem;
  margin-bottom: 6px;
}

.ff-news-card-title {
  font-family: var(--ff-font-title);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.ff-news-card-title a {
  color: var(--ff-ink);
}

.ff-news-card-title a:hover {
  color: var(--ff-pitch);
}

.ff-news-card-excerpt {
  color: var(--ff-ink-soft);
  font-size: .9rem;
  flex: 1 1 auto;
}

.ff-news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  font-size: .8rem;
  color: var(--ff-ink-soft);
}

.ff-news-card-footer .fa-comments {
  color: var(--ff-ink-soft);
  margin-right: 4px;
}

.ff-news-card-comments {
  color: var(--ff-ink-soft);
  white-space: nowrap;
}

.ff-news-card-comments:hover {
  color: var(--ff-pitch);
}

.ff-news-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.ff-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* Denser variant used in the col-lg-9 column of /actualites so the main
   grid fits 3 cards per row there and ends at roughly the same height as
   the "les plus commentées" sidebar. */
.ff-news-grid-dense {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ff-news-grid-dense .ff-news-card-img {
  height: 140px;
}

.ff-news-grid-dense .ff-news-card-body {
  padding: 12px;
}

.ff-news-grid-dense .ff-news-card-title {
  font-size: .95rem;
}

@media (max-width: 991.98px) {
  .ff-news-grid-dense {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .ff-news-grid-dense {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------ */
/* News list — compact "date + headline" rows for the sidebar and     */
/* "en vogue" strips. Replaces bare <p><a> lines.                     */
/* ------------------------------------------------------------------ */

.ff-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ff-news-list li + li {
  border-top: 1px solid var(--ff-border);
}

.ff-news-list a {
  display: block;
  padding: 10px 0;
  color: var(--ff-ink);
  font-size: .88rem;
  line-height: 1.4;
}

.ff-news-list a:hover {
  color: var(--ff-pitch);
}

.ff-news-list-date {
  display: inline-block;
  margin-right: 6px;
  font-weight: 700;
  font-size: .78rem;
  color: var(--ff-ink-soft);
}

/* ------------------------------------------------------------------ */
/* Tabs — replaces the raw <select> ("portfolioFilter") used for       */
/* season/journée/phase switching on classement, programme, resultats, */
/* top-buteurs, passeurs, equipes. Plain <a> links, no JS required.    */
/* ------------------------------------------------------------------ */

.ff-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.ff-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  background-color: var(--ff-surface);
  border: 1px solid var(--ff-border);
  color: var(--ff-ink-soft);
  font-family: var(--ff-font-title);
  font-weight: 600;
  font-size: .85rem;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.ff-tabs a:hover {
  border-color: var(--ff-pitch);
  color: var(--ff-pitch);
}

.ff-tabs a.active {
  background-color: var(--ff-pitch);
  border-color: var(--ff-pitch);
  color: #fff;
}

.ff-tabs-group {
  margin-bottom: 16px;
}

.ff-tabs-group-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ff-ink-soft);
  margin-bottom: 8px;
}

/* ------------------------------------------------------------------ */
/* Period selector (_period_selector.blade.php) — season + optional   */
/* matchday/round. Falls back to plain .ff-tabs pills while the data  */
/* is small; switches to a <select> (season) or a stepper + grid     */
/* (matchday) once past the thresholds.                              */
/* ------------------------------------------------------------------ */

.ff-period {
  margin-bottom: 20px;
}

.ff-period-group {
  margin-bottom: 14px;
}

.ff-period-group:last-child {
  margin-bottom: 0;
}

.ff-period-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ff-ink-soft);
  margin-bottom: 8px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* Season <select> (many seasons) */
.ff-period-select {
  display: inline-flex;
  position: relative;
}

.ff-period-select select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px;
  padding: 8px 40px 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--ff-border);
  background: var(--ff-surface);
  color: var(--ff-ink);
  font-family: var(--ff-font-title);
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
}

.ff-period-select select:hover {
  border-color: var(--ff-pitch);
}

.ff-period-select select:focus-visible {
  outline: 3px solid var(--ff-gold);
  outline-offset: 2px;
}

.ff-period-select::after {
  content: "\f107"; /* fa-angle-down */
  font-family: FontAwesome;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ff-ink-soft);
  pointer-events: none;
}

/* Matchday stepper (‹ [Journée N ▾] ›) */
.ff-period-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ff-period-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ff-border);
  background: var(--ff-surface);
  color: var(--ff-ink);
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.ff-period-step:hover {
  border-color: var(--ff-pitch);
  color: var(--ff-pitch);
}

.ff-period-step.is-disabled {
  color: var(--ff-border);
  cursor: default;
}

/* <details>/<summary> picker — no JS needed */
.ff-period-picker {
  position: relative;
}

.ff-period-picker > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--ff-border);
  background: var(--ff-surface);
  color: var(--ff-ink);
  font-family: var(--ff-font-title);
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  user-select: none;
}

.ff-period-picker > summary::-webkit-details-marker {
  display: none;
}

.ff-period-picker[open] > summary {
  border-color: var(--ff-pitch);
  color: var(--ff-pitch);
}

.ff-period-picker > summary:focus-visible {
  outline: 3px solid var(--ff-gold);
  outline-offset: 2px;
}

.ff-period-grid {
  position: absolute;
  z-index: 30;
  margin-top: 8px;
  padding: 12px;
  min-width: 280px;
  max-width: min(92vw, 380px);
  border-radius: var(--ff-radius);
  background: var(--ff-surface);
  border: 1px solid var(--ff-border);
  box-shadow: var(--ff-shadow-hover);
}

.ff-period-grid-all {
  display: block;
  padding: 8px 10px;
  margin-bottom: 8px;
  border-radius: var(--ff-radius-sm);
  border: 1px solid var(--ff-border);
  text-align: center;
  text-decoration: none;
  color: var(--ff-ink-soft);
  font-family: var(--ff-font-title);
  font-weight: 600;
  font-size: .8rem;
}

.ff-period-grid-all:hover,
.ff-period-grid-all.active {
  background: var(--ff-pitch);
  border-color: var(--ff-pitch);
  color: #fff;
}

.ff-period-grid-cells {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.ff-period-grid-cells a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border-radius: var(--ff-radius-sm);
  border: 1px solid var(--ff-border);
  background: var(--ff-bg);
  color: var(--ff-ink);
  font-family: var(--ff-font-title);
  font-weight: 700;
  font-size: .8rem;
  text-decoration: none;
  transition: background-color .12s ease, color .12s ease, border-color .12s ease;
}

.ff-period-grid-cells a:hover {
  border-color: var(--ff-pitch);
  color: var(--ff-pitch);
}

.ff-period-grid-cells a.active {
  background: var(--ff-pitch);
  border-color: var(--ff-pitch);
  color: #fff;
}

@media (max-width: 400px) {
  .ff-period-grid-cells {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ------------------------------------------------------------------ */
/* Club logo / player avatar — unified media containers for list and   */
/* table contexts (the *-lg variants above are for detail-hero pages   */
/* only). object-fit: contain on logos so crests never get distorted   */
/* or cropped like a photo would be.                                   */
/* ------------------------------------------------------------------ */

.ff-club-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--ff-border);
  overflow: hidden;
  flex: 0 0 auto;
}

.ff-club-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.ff-club-logo.ff-club-logo-sm {
  width: 28px;
  height: 28px;
}

.ff-player-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--ff-pitch);
  flex: 0 0 auto;
}

.ff-player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Whole-card link wrapper (club grid, and anywhere a card should be one
   big tap target). Removes the theme's hover "+" overlay dependency. */
.ff-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.ff-card-link:hover,
.ff-card-link:focus {
  text-decoration: none;
  color: inherit;
}

.ff-card-link .btn {
  pointer-events: none; /* the whole card is the link now */
}

/* Comment author avatar — initial letter on a plain pitch-green circle.
   No image dependency (the previous markup hotlinked an external
   freepik.com URL through asset(), which mangles absolute URLs, and a
   local fallback file that didn't exist either). */
.ff-comment-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--ff-pitch);
  color: #fff;
  font-family: var(--ff-font-title);
  font-weight: 700;
  font-size: 1rem;
}

/* ------------------------------------------------------------------ */
/* Homepage — hero next-match strip, competition quick-nav, mini       */
/* widgets (standings, top scorers). Full-width stacked sections, no   */
/* 3-column blog sidebar, so the identity reads as a sports dashboard  */
/* rather than a news blog.                                            */
/* ------------------------------------------------------------------ */

.ff-home-hero {
  background: linear-gradient(135deg, var(--ff-pitch-dark), var(--ff-pitch) 70%);
  padding: 32px 0;
  color: #fff;
}

.ff-home-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background-color: var(--ff-live);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 16px;
}

.ff-home-hero-label.ff-is-finished {
  background-color: rgba(255, 255, 255, .18);
}

.ff-match-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  text-align: center;
}

.ff-match-strip-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 120px;
}

.ff-match-strip-team .ff-club-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
}

.ff-match-strip-team span {
  font-family: var(--ff-font-title);
  font-weight: 700;
  color: #fff;
}

.ff-match-strip-score {
  font-family: var(--ff-font-title);
  font-weight: 700;
  font-size: 2rem;
  color: var(--ff-gold-light);
  min-width: 100px;
}

.ff-match-strip-meta {
  width: 100%;
  margin-top: 16px;
  color: rgba(255, 255, 255, .8);
  font-size: .85rem;
}

.ff-home-empty {
  text-align: center;
  color: rgba(255, 255, 255, .85);
  padding: 12px 0;
}

.ff-quicknav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.ff-quicknav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px;
  border-radius: var(--ff-radius);
  background-color: var(--ff-surface);
  border: 1px solid var(--ff-border);
  box-shadow: var(--ff-shadow);
  color: var(--ff-ink);
  font-family: var(--ff-font-title);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease, color .15s ease;
}

.ff-quicknav a:hover {
  box-shadow: var(--ff-shadow-hover);
  transform: translateY(-3px);
  color: var(--ff-pitch);
}

.ff-quicknav a i {
  font-size: 1.5rem;
  color: var(--ff-gold);
}

.ff-home-section {
  padding: 32px 0;
}

.ff-home-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ff-home-section-head .clear-title {
  margin: 0;
}

.ff-home-section-head a {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ff-pitch);
}

.ff-mini-widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

/* ================================================================== */
/* Cross-links — player / club links woven through match, log and      */
/* ranking views. Inherit surrounding colour, underline on hover only. */
/* ================================================================== */
.ff-player-link,
.ff-player-card-name,
.ff-inline-club {
  color: inherit;
  text-decoration: none;
  transition: color .12s ease;
}

.ff-player-link:hover,
.ff-player-card-name:hover,
.ff-inline-club:hover {
  color: var(--ff-pitch);
  text-decoration: underline;
}

.ff-inline-club {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ------------------------------------------------------------------ */
/* Classement — matchday history (ChampionshipStats)                  */
/* ------------------------------------------------------------------ */

.ff-standings-caption {
  margin: 0 0 14px;
  color: var(--ff-ink-soft);
}

.ff-section-intro {
  margin: -6px 0 14px;
  color: var(--ff-ink-soft);
  font-size: .92rem;
}

/* Places gained / lost since the previous matchday */
.ff-rank-move {
  display: inline-block;
  margin-left: 4px;
  font-size: .7rem;
  font-weight: 700;
  vertical-align: middle;
}

.ff-rank-up { color: var(--ff-success); }
.ff-rank-down { color: var(--ff-danger); }
.ff-rank-same { color: var(--ff-ink-soft); }

/* Journée par journée */
.ff-timeline-table td,
.ff-timeline-table th {
  vertical-align: middle;
  padding: 8px 10px;
}

.ff-timeline-table tr.ff-timeline-active td {
  background: rgba(217, 164, 4, .14);
}

.ff-timeline-day {
  display: inline-block;
  min-width: 38px;
  padding: 2px 8px;
  border-radius: var(--ff-radius-sm);
  background: var(--ff-pitch);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
}

.ff-timeline-day:hover { background: var(--ff-pitch-dark); }

.ff-timeline-leader {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ff-timeline-leader + .ff-timeline-leader { margin-top: 4px; }

.ff-timeline-group {
  font-size: .72rem;
  font-weight: 700;
  color: var(--ff-ink-soft);
  text-transform: uppercase;
}

.ff-timeline-value {
  margin-left: 4px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--ff-ink);
  white-space: nowrap;
}

/* Évolution du classement — club × matchday rank grid */
.ff-rank-grid {
  border-collapse: separate;
  border-spacing: 3px;
  margin-bottom: 18px;
  font-size: .85rem;
}

.ff-rank-grid th,
.ff-rank-grid td {
  text-align: center;
  min-width: 34px;
  padding: 5px 4px;
  border-radius: 6px;
}

.ff-rank-grid thead th a {
  color: var(--ff-ink-soft);
  font-weight: 700;
}

.ff-rank-grid td {
  background: var(--ff-bg);
  color: var(--ff-ink);
  font-weight: 600;
}

.ff-rank-grid .ff-rank-grid-club {
  text-align: left;
  white-space: nowrap;
  background: var(--ff-surface);
  position: sticky;
  left: 0;
  z-index: 1;
  font-weight: 600;
}

.ff-rank-grid td.ff-rank-1 {
  background: var(--ff-gold);
  color: #fff;
}

.ff-rank-grid td.ff-rank-low {
  background: rgba(214, 69, 69, .16);
  color: var(--ff-danger);
}

.ff-rank-grid .ff-rank-grid-active {
  outline: 2px solid var(--ff-pitch);
  outline-offset: -2px;
}
