/* ============================================================
   live.css – Dashboard sports en direct v2
   Dépend de main.css (variables, reset, topbar, sidebar, bottom-nav)
   ============================================================ */

/* ─── Layout principal ──────────────────────────────────────── */
.sports-main {
  flex: 1;
  min-width: 0;
  padding: 24px 16px 120px;
  max-width: none;
}

/* ─── En-tête page ───────────────────────────────────────────── */
.sports-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.sports-page-title {
  font-family: 'Poppins', sans-serif;
  font-size: 26px; font-weight: 800;
  color: var(--text-1); margin-bottom: 4px;
}
.sports-page-subtitle { font-size: 13px; color: var(--text-4); line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════════
   SÉLECTEUR SPORT
═══════════════════════════════════════════════════════════════ */
.sport-selector-section { margin-bottom: 24px; }

.sport-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.sport-pills::-webkit-scrollbar { display: none; }

.sport-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-3);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  position: relative;
  flex-shrink: 0;
}
.sport-pill:hover { border-color: var(--sport-color, var(--primary)); color: var(--text-1); }
.sport-pill.active {
  border-color: var(--sport-color, var(--primary));
  background: color-mix(in srgb, var(--sport-color, var(--primary)) 12%, var(--bg-card));
  color: var(--text-1);
}
.sport-pill-icon { font-size: 16px; line-height: 1; }
.sport-pill-label { font-size: 12px; }
.sport-pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  animation: pulse-live 1.5s infinite;
}

/* Skeleton pills */
.sport-pill-skeleton {
  display: inline-block; width: 90px; height: 36px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--bg-2) 25%, var(--bg-card-hover) 50%, var(--bg-2) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
  flex-shrink: 0;
}

@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
@keyframes pulse-live { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.4)} }

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD LIVE
═══════════════════════════════════════════════════════════════ */

/* ─── Barre de contrôles ─────────────────────────────────────── */
.live-controls-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.live-controls-left {
  width: 100%;
  overflow: hidden;
}

/* Date strip */
.live-date-strip {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
}
.live-date-strip::-webkit-scrollbar { display: none; }

.date-pill {
  padding: 6px 14px; border-radius: var(--radius-full);
  border: 1.5px solid var(--border); background: var(--bg-2);
  color: var(--text-3); font-size: 12px; font-weight: 600;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.date-pill:hover { border-color: var(--primary); color: var(--primary); }
.date-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Bouton favoris */
.btn-edit-favs {
  padding: 7px 14px; border-radius: var(--radius-full);
  border: 1.5px solid var(--border); background: var(--bg-2);
  color: var(--text-3); font-size: 12px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: border-color var(--transition), color var(--transition);
}
.btn-edit-favs:hover { border-color: #eab308; color: #eab308; }

/* ─── Barre recherche ────────────────────────────────────────── */
.live-search-wrap {
  position: relative; margin-bottom: 14px;
}
.live-search-input {
  width: 100%; background: var(--bg-2);
  border: 1.5px solid var(--border); border-radius: var(--radius-full);
  color: var(--text-1); font-size: 14px;
  padding: 10px 40px 10px 16px; outline: none;
  transition: border-color var(--transition); box-sizing: border-box;
}
.live-search-input:focus { border-color: var(--primary); }
.live-search-input::placeholder { color: var(--text-4); }
.live-search-icon {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: 16px; pointer-events: none;
}

/* ─── Onglets principaux ─────────────────────────────────────── */
.live-main-tabs {
  display: flex; gap: 2px;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: 20px; overflow-x: auto; scrollbar-width: none;
}
.live-main-tabs::-webkit-scrollbar { display: none; }

.live-main-tab {
  padding: 10px 18px; font-size: 13px; font-weight: 600;
  color: var(--text-3); background: none; border: none;
  border-bottom: 2.5px solid transparent; cursor: pointer;
  white-space: nowrap; margin-bottom: -1.5px;
  transition: color var(--transition), border-color var(--transition);
  font-family: inherit;
}
.live-main-tab:hover { color: var(--text-1); }
.live-main-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ─── Loading / Empty ────────────────────────────────────────── */
.dash-loading {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 40px; color: var(--text-4); font-size: 14px;
}
.dash-spinner {
  width: 32px; height: 32px; border: 3px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to{transform:rotate(360deg)} }

.empty-state {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 36px 20px; color: var(--text-4);
  text-align: center; font-size: 13px;
}
.empty-state-icon { font-size: 32px; opacity: .5; }

.no-live-panel {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 40px 20px; color: var(--text-4); text-align: center;
}
.no-live-icon  { font-size: 40px; opacity: .6; }
.no-live-title { font-size: 15px; font-weight: 700; color: var(--text-2); }
.no-live-text  { font-size: 13px; line-height: 1.6; max-width: 320px; }

/* ═══════════════════════════════════════════════════════════════
   SPOTLIGHT – Favoris en direct
═══════════════════════════════════════════════════════════════ */
.spotlight-section {
  margin-bottom: 24px;
  padding: 14px 14px 6px;
  background: linear-gradient(135deg, rgba(234,179,8,.07), rgba(249,115,22,.07));
  border: 1.5px solid rgba(234,179,8,.28);
  border-radius: var(--radius-lg);
}
.spotlight-label {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .07em; color: #eab308;
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.spotlight-section .match-card {
  border-color: rgba(234,179,8,.18);
  background: var(--bg-card);
}
.spotlight-section .match-card:hover {
  border-color: rgba(234,179,8,.4);
}

/* Ligue avec match favori en direct */
.league-group-fav-live > .matches-league-header {
  border-bottom-color: rgba(234,179,8,.3);
}
.league-group-fav-live > .matches-league-header .league-header-name {
  color: var(--text-1);
}

/* Ligue favorite (badge étoile) */
.matches-league-header .fav-star {
  margin-left: 4px; font-size: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   LISTE MATCHS
═══════════════════════════════════════════════════════════════ */
.matches-league-group { margin-bottom: 24px; }

.matches-league-header {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0 10px; border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 8px;
}
.league-header-logo { width: 20px; height: 20px; object-fit: contain; }
.league-header-name {
  font-size: 12px; font-weight: 700; color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.league-header-country { font-size: 11px; color: var(--text-4); }

/* Nom cliquable */
.link-clickable { cursor: pointer; }
.link-clickable:hover { text-decoration: underline; opacity: .8; }

/* ─── Carte match ────────────────────────────────────────────── */
.match-card {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--bg-2); padding: 14px 16px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  margin-bottom: 8px;
}
.match-card:hover { border-color: rgba(255,255,255,.12); background: var(--bg-card-hover); }
.match-card.match-fav { border-color: rgba(234,179,8,.3); }

.match-meta-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px; margin-bottom: 10px; flex-wrap: wrap;
}
.match-meta-left  { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.match-meta-right { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.fav-star { font-size: 13px; }

/* Badges statut */
.badge-live {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--success); background: var(--success-glow);
  border: 1px solid rgba(16,185,129,.25); padding: 2px 7px; border-radius: var(--radius-full);
}
.badge-live::before {
  content:''; width:6px; height:6px; border-radius:50%; background: var(--success);
  animation: pulse-live 1.2s infinite;
}
.badge-finished {
  font-size: 10px; font-weight: 700; color: var(--text-4);
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 2px 7px; border-radius: var(--radius-full);
  text-transform: uppercase; letter-spacing: .06em;
}
.badge-upcoming {
  font-size: 10px; font-weight: 700; color: var(--primary);
  background: var(--primary-glow); border: 1px solid rgba(249,115,22,.2);
  padding: 2px 7px; border-radius: var(--radius-full);
}
.match-round { font-size: 11px; color: var(--text-4); }

/* Équipes */
.match-teams {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 12px;
}
.match-team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.match-team.team-away { flex-direction: row-reverse; text-align: right; }
.team-logo { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; border-radius: 4px; }
.team-logo-placeholder {
  width: 28px; height: 28px; border-radius: 4px; background: var(--bg-0);
  border: 1px solid var(--border); display: flex; align-items: center;
  justify-content: center; font-size: 14px; flex-shrink: 0;
}
.team-name {
  font-size: 13px; font-weight: 600; color: var(--text-1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.match-team.fav-team .team-name { color: #eab308; }

.match-score {
  display: flex; align-items: center; gap: 6px;
  font-family: 'Poppins', sans-serif; font-size: 20px; font-weight: 800;
  color: var(--text-1); white-space: nowrap;
}
.score-sep { font-size: 14px; color: var(--text-4); font-weight: 400; }

/* ═══════════════════════════════════════════════════════════════
   RECHERCHE GLOBALE – suggestions dropdown
═══════════════════════════════════════════════════════════════ */
.live-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  z-index: 100;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
  max-height: 340px;
  overflow-y: auto;
}
.search-sugg-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--border-subtle);
}
.search-sugg-item:last-child { border-bottom: none; }
.search-sugg-item:hover { background: var(--bg-2); }
.search-sugg-icon {
  width: 26px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.search-sugg-text { flex: 1; min-width: 0; }
.search-sugg-name {
  font-size: 13px; font-weight: 600; color: var(--text-1);
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.search-sugg-sub  { font-size: 11px; color: var(--text-4); display: block; margin-top: 1px; }
.search-sugg-type {
  font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: var(--radius-full); flex-shrink: 0; text-transform: uppercase; letter-spacing: .05em;
}
.search-sugg-type-league { background: var(--primary-glow);          color: var(--primary); }
.search-sugg-type-team   { background: rgba(59,130,246,.12);          color: #3b82f6; }
.search-sugg-type-player { background: rgba(16,185,129,.12);          color: var(--success); }
.search-sugg-loading, .search-sugg-empty {
  padding: 14px; color: var(--text-4); font-size: 13px; text-align: center;
}

/* Bandeau résultat de recherche ligue */
.search-result-header {
  font-size: 13px; font-weight: 700; color: var(--text-2);
  padding: 6px 0 14px; border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}

/* ─── Détail joueur ──────────────────────────────────────────── */
.player-detail-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.player-detail-photo {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════
   CLASSEMENT
═══════════════════════════════════════════════════════════════ */
.standings-leagues-grid {
  display: flex; flex-direction: column; gap: 8px;
}
.standings-league-card {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius-md); background: var(--bg-2);
  transition: border-color var(--transition), background var(--transition);
}
.standings-league-card:hover { border-color: rgba(255,255,255,.12); background: var(--bg-card-hover); }
.standings-league-flag { font-size: 20px; }
.standings-league-name { flex: 1; font-size: 14px; font-weight: 600; color: var(--text-1); }
.standings-league-arrow { color: var(--text-4); font-size: 14px; margin-left: auto; }

/* Table classement */
.standings-table-scroll { overflow-x: auto; }
.standings-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.standings-table th {
  text-align: left; font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-4); padding: 6px 8px;
  border-bottom: 1px solid var(--border);
}
.standings-table th.center { text-align: center; }
.standings-table td {
  padding: 10px 8px; color: var(--text-2);
  border-bottom: 1px solid var(--border-subtle); vertical-align: middle;
}
.standings-table tr:last-child td { border-bottom: none; }
.standings-table tr:hover td { background: var(--bg-2); }
.rank-num { font-weight: 700; color: var(--text-3); font-size: 12px; width: 24px; text-align: center; }
.standings-team { display: flex; align-items: center; gap: 8px; }
.standings-logo { width: 22px; height: 22px; object-fit: contain; }
.standings-name {
  font-weight: 600; color: var(--text-1); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 140px;
}
.standings-pts { font-weight: 800; color: var(--text-1); text-align: center; }
.standings-center { text-align: center; color: var(--text-3); }
.diff-pos { color: var(--success); }
.diff-neg { color: var(--error); }

/* Forme */
.form-dots { display: flex; gap: 3px; justify-content: center; }
.form-dot { width: 8px; height: 8px; border-radius: 50%; }
.form-dot.W { background: var(--success); }
.form-dot.D { background: var(--warning, #f59e0b); }
.form-dot.L { background: var(--error); }

/* Sub-tabs classement */
.standings-sub-tabs {
  display: flex; gap: 4px; margin-bottom: 14px;
  border-bottom: 1px solid var(--border); padding-bottom: 0;
}
.standings-sub-tab {
  padding: 7px 16px; font-size: 12px; font-weight: 600;
  color: var(--text-4); background: none; border: none;
  border-bottom: 2px solid transparent; cursor: pointer;
  margin-bottom: -1px; font-family: inherit;
  transition: color var(--transition), border-color var(--transition);
}
.standings-sub-tab:hover { color: var(--text-2); }
.standings-sub-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Légende zones */
.standings-legend {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 14px; padding: 12px;
  background: var(--bg-2); border-radius: var(--radius-md);
}
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.legend-dot  { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }

.standings-row-clickable { cursor: pointer; }

/* ═══════════════════════════════════════════════════════════════
   MODALS
═══════════════════════════════════════════════════════════════ */
.match-modal-overlay,
.team-modal-overlay,
.league-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; backdrop-filter: blur(4px);
}
.match-modal {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius-xl); width: 100%; max-width: 600px;
  max-height: 92vh; overflow-y: auto; position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
}
.match-modal-close {
  position: sticky; top: 0; float: right;
  margin: 12px 12px 0 0; background: var(--bg-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-3); font-size: 16px; width: 32px; height: 32px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  z-index: 10; transition: color var(--transition);
}
.match-modal-close:hover { color: var(--text-1); }
.match-modal-body { padding: 16px 20px 24px; clear: both; }

/* Entête ligue */
.modal-league-header {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-4); margin-bottom: 6px;
}
.modal-datetime { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.modal-date-str { font-size: 13px; color: var(--text-3); text-transform: capitalize; }
.modal-venue    { font-size: 12px; color: var(--text-4); }

/* Scoreboard */
.modal-scoreboard {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 12px; margin-bottom: 20px;
  padding: 16px; background: var(--bg-2);
  border-radius: var(--radius-lg); border: 1px solid var(--border);
}
.modal-team-col {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; text-align: center;
}
.modal-team-logo  { width: 48px; height: 48px; object-fit: contain; }
.modal-team-name  { font-size: 13px; font-weight: 700; color: var(--text-1); line-height: 1.3; }
.modal-score-col  { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.modal-score-main {
  font-family: 'Poppins', sans-serif; font-size: 28px; font-weight: 900;
  color: var(--text-1); white-space: nowrap; line-height: 1;
}
.modal-ht { font-size: 11px; color: var(--text-4); text-align: center; }

/* Onglets modal */
.modal-tabs {
  display: flex; gap: 4px; border-bottom: 1.5px solid var(--border);
  margin-bottom: 16px; overflow-x: auto; scrollbar-width: none;
}
.modal-tabs::-webkit-scrollbar { display: none; }
.modal-tab-btn {
  background: none; border: none; color: var(--text-4);
  font-size: 13px; font-weight: 600; padding: 8px 12px;
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1.5px; transition: all var(--transition);
  font-family: inherit; white-space: nowrap; flex-shrink: 0;
}
.modal-tab-btn:hover { color: var(--text-2); }
.modal-tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.modal-tab-panel { min-height: 80px; }

/* ─── Section titles ─────────────────────────────────────────── */
.tab-section-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-4);
  margin-bottom: 10px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}

/* ─── Événements match ───────────────────────────────────────── */
.match-events-list { display: flex; flex-direction: column; }

.events-header {
  display: grid; grid-template-columns: 1fr 44px 1fr;
  gap: 6px; padding: 0 0 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.events-team-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--text-4);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.match-event {
  display: grid; grid-template-columns: 1fr 44px 1fr;
  align-items: center; gap: 6px;
  padding: 6px 0; border-bottom: 1px solid var(--border-subtle);
}
.match-event:last-child { border-bottom: none; }

/* Colonne domicile – contenu aligné à droite */
.event-col-home {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 6px; min-width: 0;
}
/* Colonne extérieur – contenu aligné à gauche */
.event-col-away {
  display: flex; align-items: center; justify-content: flex-start;
  gap: 6px; min-width: 0;
}

.event-time-badge {
  font-family: 'Poppins', sans-serif; font-size: 11px; font-weight: 800;
  color: var(--text-1); background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 2px 4px;
  width: 44px; text-align: center; flex-shrink: 0;
}
.event-icon-wrap { font-size: 15px; flex-shrink: 0; line-height: 1; }

.event-info-home { text-align: right; min-width: 0; }
.event-info-away { text-align: left;  min-width: 0; }
.event-player {
  font-size: 12px; font-weight: 600; color: var(--text-1);
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.event-player-link {
  cursor: pointer;
  transition: color var(--transition);
}
.event-player-link:hover { color: var(--primary); text-decoration: underline; }
.event-detail-sub {
  display: block; font-size: 10px; color: var(--text-4);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.no-data-msg { text-align: center; color: var(--text-4); font-size: 13px; padding: 24px 0; }

/* ─── Infos match ────────────────────────────────────────────── */
.match-info-grid {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.info-item {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 10px 14px; min-width: 120px;
}
.info-lbl { font-size: 10px; color: var(--text-4); text-transform: uppercase; letter-spacing: .05em; }
.info-val  { font-size: 13px; font-weight: 600; color: var(--text-1); }

/* ─── Pronostics ─────────────────────────────────────────────── */
.pronos-container { padding: 4px 0 12px; }
.pronos-options   { display: flex; gap: 8px; margin-bottom: 8px; }
.prono-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 8px; border-radius: var(--radius-md);
  border: 1.5px solid var(--border); background: var(--bg-2);
  cursor: pointer; transition: border-color var(--transition), background var(--transition);
}
.prono-btn:hover { border-color: var(--primary); }
.prono-btn.selected { border-color: var(--primary); background: var(--primary-glow); }
.prono-label { font-size: 11px; font-weight: 600; color: var(--text-2); text-align: center; }
.prono-pct   { font-family: 'Poppins', sans-serif; font-size: 18px; font-weight: 800; color: var(--text-1); }
.prono-bar   { width: 100%; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.prono-fill  { height: 100%; background: var(--primary); border-radius: 2px; transition: width .4s; }
.pronos-total { font-size: 12px; color: var(--text-4); text-align: center; }

/* ─── Articles mini ──────────────────────────────────────────── */
.article-mini {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-md); background: var(--bg-2);
  transition: border-color var(--transition); text-decoration: none; color: inherit;
  margin-bottom: 8px;
}
.article-mini:hover { border-color: rgba(255,255,255,.1); }
.article-mini-img   { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.article-mini-title { font-size: 13px; font-weight: 600; color: var(--text-1); line-height: 1.4; margin-bottom: 4px; }
.article-mini-meta  { font-size: 11px; color: var(--text-4); }
.article-mini--masked {
  position: relative;
  overflow: hidden;
}
.article-mini--masked .article-mini-img {
  filter: blur(5px);
  transform: scale(1.05);
}
.article-mini--masked .article-mini-title {
  filter: blur(3px);
  opacity: .55;
  user-select: none;
}
.article-mini--masked .article-mini-meta {
  opacity: .75;
}
.article-mini-mask-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15,15,20,.84);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

/* ─── Terrain de football ────────────────────────────────────── */
.formation-labels { display: flex; justify-content: space-between; margin-bottom: 10px; }
.formation-badge {
  font-size: 11px; font-weight: 700; color: var(--text-3);
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-full); padding: 3px 10px;
}
.formation-badge-home {
  color: #dbeafe;
  background: rgba(21,101,192,.18);
  border-color: rgba(147,197,253,.3);
}
.formation-badge-away {
  color: #fee2e2;
  background: rgba(198,40,40,.18);
  border-color: rgba(252,165,165,.3);
}
.football-pitch { width: 100%; margin-bottom: 20px; }
.pitch-field {
  position: relative; width: 100%; padding-top: 140%;
  background: repeating-linear-gradient(0deg,rgba(0,0,0,.04) 0,rgba(0,0,0,.04) 1px,transparent 1px,transparent 28px), #2d7d32;
  border-radius: 8px; border: 2px solid rgba(255,255,255,.3); overflow: hidden;
}
.pitch-half-tint {
  position:absolute; left:0; right:0; height:50%; pointer-events:none; z-index:0;
}
.pitch-half-tint-top {
  top:0;
  background: linear-gradient(180deg, rgba(198,40,40,.14), rgba(198,40,40,.04));
}
.pitch-half-tint-bottom {
  bottom:0;
  background: linear-gradient(0deg, rgba(21,101,192,.14), rgba(21,101,192,.04));
}
.pitch-team-label {
  position:absolute; left:10px; z-index:2;
  font-size:10px; font-weight:800; letter-spacing:.06em; text-transform:uppercase;
  color:#fff; background:rgba(10,10,10,.28); border:1px solid rgba(255,255,255,.22);
  border-radius:999px; padding:4px 8px; text-shadow:0 1px 3px rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
}
.pitch-team-label-top { top:10px; }
.pitch-team-label-bottom { bottom:10px; }
.pitch-line.pitch-half {
  position: absolute; top:50%; left:0; right:0; height:1.5px;
  background: rgba(255,255,255,.5); transform: translateY(-50%);
}
.pitch-circle {
  position: absolute; top:50%; left:50%; width:18%; padding-top:18%;
  border: 1.5px solid rgba(255,255,255,.5); border-radius:50%;
  transform: translate(-50%,-50%);
}
.pitch-box { position:absolute; left:20%; right:20%; height:18%; border:1.5px solid rgba(255,255,255,.5); }
.pitch-box-top    { top:0; border-top:none; }
.pitch-box-bottom { bottom:0; border-bottom:none; }
.pitch-small-box  { position:absolute; left:33%; right:33%; height:7%; border:1.5px solid rgba(255,255,255,.5); }
.pitch-small-box.pitch-small-top    { top:0; border-top:none; }
.pitch-small-box.pitch-small-bottom { bottom:0; border-bottom:none; }
.pitch-player {
  position:absolute; transform:translate(-50%,-50%);
  display:flex; flex-direction:column; align-items:center; gap:3px;
  pointer-events:auto; background:none; border:none; padding:0; cursor:pointer; z-index:3;
}
.pitch-pname {
  font-size:8px; font-weight:600; color:#fff;
  text-shadow:0 1px 3px rgba(0,0,0,.8); white-space:nowrap;
  max-width:62px; overflow:hidden; text-overflow:ellipsis; text-align:center;
}
.pitch-avatar-wrap {
  width:24px; height:24px; border-radius:50%; overflow:hidden;
  border:1.5px solid rgba(255,255,255,.78); box-shadow:0 2px 8px rgba(0,0,0,.28);
  display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,.22);
}
.pitch-avatar {
  width:100%; height:100%; object-fit:cover; display:block;
}
.pitch-avatar-fallback {
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:11px; line-height:1;
}
.pitch-sub-badge {
  display:inline-flex; align-items:center; justify-content:center;
  font-size:10px; line-height:1; margin-left:3px; vertical-align:middle;
}
.pitch-number { font-weight:800; }
.pitch-name { display:inline; }
.player-home .pitch-pname { color: #dbeafe; }
.player-away .pitch-pname { color: #fee2e2; }
.player-home .pitch-name { color: #dbeafe; }
.player-away .pitch-name { color: #fee2e2; }
.player-home .pitch-avatar-wrap { box-shadow:0 0 0 1px rgba(21,101,192,.45), 0 2px 8px rgba(0,0,0,.28); }
.player-away .pitch-avatar-wrap { box-shadow:0 0 0 1px rgba(198,40,40,.45), 0 2px 8px rgba(0,0,0,.28); }
.pitch-player:focus-visible .pitch-avatar-wrap,
.pitch-player:hover .pitch-avatar-wrap { transform:scale(1.06); }
.pitch-player:focus-visible { outline:none; }

/* Remplaçants */
.bench-section  { margin-top: 4px; }
.coach-lists    { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:4px; }
.bench-title    { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--text-4); margin-bottom:8px; }
.bench-lists    { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.bench-team-name{ font-size:11px; font-weight:700; color:var(--text-3); margin-bottom:4px; }
.bench-subsection-title { margin-top:10px; }
.coach-card {
  width:100%; display:flex; align-items:center; gap:10px;
  padding:8px 10px; margin-bottom:4px; background:var(--bg-2);
  border:1px solid var(--border); border-radius:10px; text-align:left; cursor:pointer;
}
.coach-card:hover { border-color:rgba(255,255,255,.18); }
.coach-card:focus-visible { outline:none; border-color:rgba(255,255,255,.28); }
.coach-avatar-wrap {
  width:32px; height:32px; border-radius:50%; overflow:hidden;
  border:1.5px solid rgba(255,255,255,.78); display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,.18); flex-shrink:0;
}
.coach-avatar { width:100%; height:100%; object-fit:cover; display:block; }
.coach-avatar-fallback {
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:15px; line-height:1;
}
.coach-text { min-width:0; display:flex; flex-direction:column; gap:2px; }
.coach-name {
  min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  font-weight:700; font-size:12px;
}
.coach-meta {
  min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  font-size:11px; color:var(--text-4);
}
.bench-player {
  width:100%; display:flex; align-items:center; gap:8px;
  font-size:12px; color:var(--text-4); padding:6px 8px; margin-bottom:4px;
  background:var(--bg-2); border:1px solid var(--border); border-radius:10px;
  text-align:left; cursor:pointer;
}
.bench-player-empty {
  display:block; background:transparent; border:none; padding:2px 0; margin-bottom:0; cursor:default;
}
.bench-player-avatar-wrap {
  width:26px; height:26px; border-radius:50%; overflow:hidden;
  border:1.5px solid rgba(255,255,255,.78); display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,.18); flex-shrink:0;
}
.bench-player-avatar { width:100%; height:100%; object-fit:cover; display:block; }
.bench-player-avatar-fallback {
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:11px; line-height:1;
}
.bench-player-text {
  min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:2px;
}
.bench-player-main {
  min-width:0; display:flex; align-items:center; gap:6px;
}
.bench-player-number { font-weight:800; }
.bench-player-name {
  min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-weight:600;
}
.bench-player-submeta {
  font-size:11px; color:var(--text-4);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%;
}
.bench-player-home .bench-player-name,
.bench-player-home .bench-player-number { color:#dbeafe; }
.bench-player-away .bench-player-name,
.bench-player-away .bench-player-number { color:#fee2e2; }
.bench-player-home .bench-player-avatar-wrap { box-shadow:0 0 0 1px rgba(21,101,192,.45), 0 2px 8px rgba(0,0,0,.18); }
.bench-player-away .bench-player-avatar-wrap { box-shadow:0 0 0 1px rgba(198,40,40,.45), 0 2px 8px rgba(0,0,0,.18); }
.bench-player:hover { border-color:rgba(255,255,255,.18); }
.bench-player:focus-visible { outline:none; border-color:rgba(255,255,255,.28); }

/* ─── Stats match ────────────────────────────────────────────── */
.stats-teams-header {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 8px; margin-bottom: 12px; font-size: 12px; font-weight: 700;
}
.stat-team-home { color: #1565c0; text-align: left; }
.stat-team-away { color: #c62828; text-align: right; }
.stats-list { display: flex; flex-direction: column; gap: 10px; }
.stat-row   { display: flex; align-items: center; gap: 8px; }
.stat-val-home { font-size: 13px; font-weight: 700; color: var(--text-1); min-width: 36px; text-align: right; }
.stat-val-away { font-size: 13px; font-weight: 700; color: var(--text-1); min-width: 36px; }
.stat-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.stat-label    { font-size: 11px; color: var(--text-4); text-align: center; white-space: nowrap; }
.stat-bar-home {
  height: 4px; border-radius: 2px 0 0 2px; background: #1565c0;
  align-self: flex-end; max-width: 50%;
}
.stat-bar-away {
  height: 4px; border-radius: 0 2px 2px 0; background: #c62828;
  align-self: flex-start; max-width: 50%;
}

/* ─── F à F ──────────────────────────────────────────────────── */
.faf-container { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.faf-team-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.faf-team-name   { font-size: 13px; font-weight: 700; color: var(--text-1); }
.faf-match-row {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 0; border-bottom: 1px solid var(--border-subtle); font-size: 12px;
}
.faf-date   { color: var(--text-4); min-width: 50px; font-size: 11px; }
.faf-opp    { flex: 1; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.faf-score  { font-weight: 700; }
.faf-result { font-size: 11px; font-weight: 700; min-width: 18px; text-align: right; }

/* ─── Chat match ─────────────────────────────────────────────── */
.chat-container { display: flex; flex-direction: column; height: 400px; }
.chat-messages {
  flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px;
  padding: 8px 0; scrollbar-width: thin;
}
.chat-empty { color: var(--text-4); font-size: 13px; text-align: center; padding: 40px 0; }
.chat-msg    { display: flex; align-items: flex-end; gap: 8px; }
.chat-msg-me { flex-direction: row-reverse; }
.chat-avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--bg-card-hover);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--text-2); flex-shrink: 0;
}
.chat-bubble-wrap  { display: flex; flex-direction: column; gap: 2px; max-width: 75%; }
.chat-username     { font-size: 11px; color: var(--text-4); padding: 0 4px; }
.chat-bubble {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 12px 12px 12px 4px; padding: 8px 12px;
  font-size: 13px; color: var(--text-1); word-break: break-word; line-height: 1.4;
}
.chat-msg-me .chat-bubble {
  background: var(--primary-glow); border-color: rgba(249,115,22,.2);
  border-radius: 12px 12px 4px 12px;
}
.chat-time { font-size: 10px; color: var(--text-4); padding: 0 4px; align-self: flex-end; }
.chat-input-wrap {
  display: flex; gap: 8px; padding-top: 12px;
  border-top: 1px solid var(--border); flex-shrink: 0;
}
.chat-input {
  flex: 1; background: var(--bg-2); border: 1.5px solid var(--border);
  border-radius: var(--radius-full); color: var(--text-1); font-size: 14px;
  padding: 9px 14px; outline: none; transition: border-color var(--transition);
  font-family: inherit;
}
.chat-input:focus { border-color: var(--primary); }
.chat-send-btn {
  padding: 9px 16px; border-radius: var(--radius-full);
  background: var(--primary); border: none; color: #fff;
  font-size: 16px; font-weight: 700; cursor: pointer;
  transition: opacity .2s; flex-shrink: 0;
}
.chat-send-btn:hover { opacity: .85; }

/* ─── Détail équipe ──────────────────────────────────────────── */
.team-detail-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.team-detail-logo  { width: 60px; height: 60px; object-fit: contain; flex-shrink: 0; }
.team-detail-name  { font-family:'Poppins',sans-serif; font-size:20px; font-weight:800; color:var(--text-1); margin-bottom:4px; }
.team-detail-league{ font-size:13px; color:var(--text-4); }
.team-stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:16px; }
.team-stat-block { background:var(--bg-2); border:1px solid var(--border); border-radius:var(--radius-md); padding:12px 8px; text-align:center; }
.team-stat-val   { font-family:'Poppins',sans-serif; font-size:20px; font-weight:800; color:var(--text-1); line-height:1; margin-bottom:4px; }
.team-stat-lbl   { font-size:10px; color:var(--text-4); text-transform:uppercase; letter-spacing:.04em; }
.team-home-away  { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:16px; }
.home-away-block { background:var(--bg-2); border:1px solid var(--border); border-radius:var(--radius-md); padding:12px 14px; }
.home-away-label { font-size:12px; font-weight:700; color:var(--text-3); margin-bottom:4px; }
.home-away-record{ font-size:14px; font-weight:700; color:var(--text-1); }
.team-form-section,.team-recent-section { margin-bottom:16px; }
.team-section-title { font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--text-4); margin-bottom:10px; }

/* ═══════════════════════════════════════════════════════════════
   MODAL FAVORIS
═══════════════════════════════════════════════════════════════ */
.fav-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; backdrop-filter: blur(6px);
}
.fav-modal {
  position: relative; background: var(--bg-1);
  border: 1.5px solid var(--border); border-radius: var(--radius-xl);
  padding: 24px 24px 20px; width: 100%; max-width: 480px; max-height: 90vh;
  overflow-y: auto; animation: slideUp .2s ease;
}
@keyframes slideUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }

.fav-modal-close {
  position: absolute; top: 14px; right: 16px; font-size: 16px;
  color: var(--text-4); background: none; border: none; cursor: pointer; line-height: 1;
}
.fav-modal-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.fav-modal-icon  { font-size: 32px; line-height: 1; }
.fav-modal-title { font-family:'Poppins',sans-serif; font-size:18px; font-weight:800; color:var(--text-1); margin-bottom:3px; }
.fav-modal-sub   { font-size:12px; color:var(--text-4); }

/* Steps indicator */
.fav-steps { display:flex; align-items:center; gap:0; margin-bottom:20px; }
.fav-step {
  width:28px; height:28px; border-radius:50%; border:2px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:700; color:var(--text-4); flex-shrink:0;
  transition:all .2s;
}
.fav-step.active    { border-color:var(--primary); color:var(--primary); background:var(--primary-glow); }
.fav-step.completed { border-color:var(--success); color:#fff; background:var(--success); }
.fav-step-line { flex:1; height:2px; background:var(--border); margin:0 4px; }

/* Step content */
.fav-step-header { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.fav-step-icon   { font-size:24px; line-height:1; }
.fav-step-title  { font-size:14px; font-weight:700; color:var(--text-1); }
.fav-step-sub    { font-size:12px; color:var(--text-4); }

/* Search dans modal */
.fav-search-wrap { position:relative; margin-bottom:12px; }
.fav-search-input {
  width:100%; background:var(--bg-2); border:1.5px solid var(--border);
  border-radius:var(--radius-full); color:var(--text-1); font-size:14px;
  padding:9px 14px; outline:none; transition:border-color var(--transition);
  box-sizing:border-box; font-family:inherit;
}
.fav-search-input:focus { border-color:var(--primary); }
.fav-suggestions {
  background:var(--bg-card); border:1.5px solid var(--border);
  border-radius:var(--radius-md); overflow:hidden;
  max-height:220px; overflow-y:auto; margin-top:4px;
}
.fav-sugg-item {
  display:flex; align-items:center; gap:8px; padding:9px 12px;
  cursor:pointer; font-size:13px; color:var(--text-2);
  transition:background var(--transition); flex-wrap:nowrap;
}
.fav-sugg-item:hover { background:var(--bg-2); }
.fav-sugg-item span:first-of-type { flex:1; }
.fav-add-btn {
  background:var(--primary-glow); border:1px solid rgba(249,115,22,.3);
  color:var(--primary); border-radius:var(--radius-sm); padding:2px 8px;
  font-size:14px; font-weight:700; cursor:pointer; flex-shrink:0;
}
.fav-sugg-hint  { padding:12px 14px; color:var(--text-4); font-size:13px; text-align:center; }
.fav-sugg-limit { padding:12px 14px; color:var(--warning,#f59e0b); font-size:13px; text-align:center; }

/* Selected list */
.fav-selected-list { display:flex; flex-direction:column; gap:6px; margin-bottom:12px; }
.fav-selected-item {
  display:flex; align-items:center; gap:8px; padding:8px 12px;
  background:var(--bg-2); border:1px solid var(--border);
  border-radius:var(--radius-md); font-size:13px; color:var(--text-1);
}
.fav-selected-item span { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fav-remove-btn {
  background:none; border:none; color:var(--text-4); cursor:pointer;
  font-size:14px; flex-shrink:0; padding:2px 4px;
  transition:color var(--transition);
}
.fav-remove-btn:hover { color:var(--error); }
.fav-hint { font-size:12px; color:var(--text-4); text-align:center; padding:8px 0; }

/* Boutons navigation modal */
.fav-nav { display:flex; justify-content:flex-end; gap:8px; margin-top:16px; padding-top:16px; border-top:1px solid var(--border); }
.btn-fav-back {
  padding:9px 18px; border-radius:var(--radius-full);
  border:1.5px solid var(--border); background:transparent;
  color:var(--text-3); font-size:13px; font-weight:600; cursor:pointer;
  font-family:inherit;
}
.btn-fav-back:hover { border-color:var(--primary); color:var(--primary); }
.btn-fav-next, .btn-fav-save {
  padding:9px 20px; border-radius:var(--radius-full);
  background:var(--primary); border:none; color:#fff;
  font-size:13px; font-weight:700; cursor:pointer; font-family:inherit;
  transition:opacity .2s;
}
.btn-fav-next:hover, .btn-fav-save:hover { opacity:.85; }

/* ─── Modal upgrade ──────────────────────────────────────────── */
.upgrade-overlay {
  position:fixed; inset:0; background:rgba(0,0,0,.7); z-index:9999;
  display:flex; align-items:center; justify-content:center; padding:24px; backdrop-filter:blur(6px);
}
.upgrade-modal {
  position:relative; background:var(--bg-1); border:1.5px solid rgba(249,115,22,.3);
  border-radius:var(--radius-xl); padding:36px 32px; max-width:380px; width:100%;
  text-align:center; animation:slideUp .2s ease;
}
.upgrade-close { position:absolute; top:14px; right:16px; font-size:16px; color:var(--text-4); background:none; border:none; cursor:pointer; }
.upgrade-emoji { font-size:48px; margin-bottom:12px; }
.upgrade-title { font-family:'Poppins',sans-serif; font-size:22px; font-weight:800; color:var(--text-1); margin-bottom:10px; }
.upgrade-text  { font-size:14px; color:var(--text-3); line-height:1.6; margin-bottom:20px; }
.upgrade-perks { display:flex; flex-direction:column; gap:6px; margin-bottom:24px; text-align:left; }
.upgrade-perk  { font-size:13px; font-weight:600; color:var(--text-2); }
.upgrade-cta   {
  display:block; background:linear-gradient(135deg,var(--primary),var(--primary-light));
  color:#fff; font-size:14px; font-weight:700; padding:14px 24px;
  border-radius:var(--radius-full); transition:opacity .2s; text-decoration:none;
}
.upgrade-cta:hover { opacity:.9; }

/* ═══════════════════════════════════════════════════════════════
   MODAL JOUEUR – Infos personnelles
═══════════════════════════════════════════════════════════════ */
.player-info-section,
.player-career-section,
.player-clubs-section {
  margin-bottom: 20px;
}

.player-info-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 10px;
}

.player-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.player-info-row:last-child { border-bottom: none; }
.player-info-row:nth-child(even) { background: var(--bg-1); }
.player-info-grid .bench-player-empty {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:12px 14px;
  margin:0;
  background:var(--bg-card);
  border:none;
  color:var(--text-4);
  font-size:13px;
  font-weight:500;
  text-align:center;
}

.player-info-lbl  { font-size: 13px; color: var(--text-3); font-weight: 500; }
.player-info-val  { font-size: 13px; color: var(--text-1); font-weight: 600; text-align: right; }

/* Switch stats joueur */
.player-stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.player-stats-switch {
  display: flex;
  background: var(--bg-2);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.player-stats-btn {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.player-stats-btn.active {
  background: var(--primary);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   MODAL JOUEUR – Parcours / historique clubs
═══════════════════════════════════════════════════════════════ */
.career-club {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 10px;
}

.career-club-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.career-club-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
}
.career-seasons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
}
.career-season-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--primary) 10%, var(--bg-1));
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.career-league {
  border-top: 1px solid var(--border);
}
.career-league:first-of-type { border-top: none; }

.career-league-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: color-mix(in srgb, var(--primary) 6%, var(--bg-card));
}
.career-league-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .4px;
}

.career-season-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.career-season-table th,
.career-season-table td {
  padding: 6px 10px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.career-season-table thead th {
  background: var(--bg-1);
  color: var(--text-4);
  font-weight: 600;
  font-size: 11px;
}
.career-season-table tbody tr:last-child td { border-bottom: none; }
.career-season-table tbody tr:hover { background: color-mix(in srgb, var(--primary) 4%, transparent); }

.season-label {
  font-weight: 700;
  color: var(--text-1);
  text-align: left !important;
  padding-left: 14px !important;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════
   MODAL STADE / VILLE
═══════════════════════════════════════════════════════════════ */
.venue-modal-header {
  font-family: 'Poppins', sans-serif;
  font-size: 17px; font-weight: 800; color: var(--text-1);
  margin-bottom: 16px;
}

.venue-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
  margin-bottom: 14px;
}
.venue-card:last-child { margin-bottom: 0; }

.venue-img {
  width: 100%; height: 160px;
  object-fit: cover; display: block;
}

.venue-card-body { padding: 14px 16px; }

.venue-name {
  font-size: 15px; font-weight: 700; color: var(--text-1);
  margin-bottom: 8px;
}

.venue-meta-row { margin-bottom: 4px; }
.venue-meta-item { font-size: 13px; color: var(--text-3); }
.venue-address   { font-size: 12px; color: var(--text-4); }

.venue-stats-row {
  display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap;
}
.venue-stat {
  flex: 1; min-width: 120px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 10px 12px;
  display: flex; flex-direction: column; gap: 3px;
}
.venue-stat-val { font-size: 13px; font-weight: 700; color: var(--text-1); }
.venue-stat-lbl { font-size: 10px; color: var(--text-4); text-transform: uppercase; letter-spacing: .04em; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width:800px) {
  .standings-name { max-width:100px; }
  .faf-container  { grid-template-columns:1fr; }
}

@media (max-width:600px) {
  .sports-main { padding:16px 12px 100px; }
  .sports-page-title { font-size:21px; }
  .match-score { font-size:16px; }
  .standings-name { max-width:80px; }
  .standings-table th:nth-child(n+7),
  .standings-table td:nth-child(n+7) { display:none; }
  .modal-scoreboard { gap:8px; }
  .modal-score-main { font-size:22px; }
  .pitch-avatar-wrap { width:20px; height:20px; }
  .pitch-avatar-fallback { font-size:9px; }
  .pitch-pname { font-size:7px; }
  .pronos-options { flex-direction:column; }
  .faf-match-row  { flex-wrap:wrap; }
  .chat-container { height:320px; }
  .team-stats-grid{ grid-template-columns:repeat(2,1fr); }
}

@media (max-width:420px) {
  .modal-tabs { gap:0; }
  .modal-tab-btn { padding:8px 8px; font-size:11px; }
}

.coach-card-home .coach-name { color:#dbeafe; }
.coach-card-away .coach-name { color:#fee2e2; }
.coach-card-home .coach-avatar-wrap { box-shadow:0 0 0 1px rgba(21,101,192,.45), 0 2px 8px rgba(0,0,0,.18); }
.coach-card-away .coach-avatar-wrap { box-shadow:0 0 0 1px rgba(198,40,40,.45), 0 2px 8px rgba(0,0,0,.18); }
.coach-detail-fallback {
  background:var(--bg-2); border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-size:28px;
}

@media (max-width:700px) {
  .coach-lists,
  .bench-lists { grid-template-columns:1fr; }
}
