/* MTL · Stats LNH — thèmes sombre (défaut) et clair. Couleurs de graphiques : palette validée
   (bleu / orange catégoriels, bleu / rouge divergents), adaptées à chaque thème. */

:root,
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0d0d0d;
  --surface: #1a1a19;
  --surface-2: #232321;
  --surface-3: #2c2c2a;
  --border: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --text-2: #c3c2b7;
  --muted: #898781;
  --grid: #2c2c2a;
  --axis: #383835;
  --link: #86b6ef;
  --accent: #3987e5;
  --s1: #3987e5;
  --s2: #d95926;
  --pos: #3987e5;
  --neg: #e66767;
  --series-muted: #5f5e59;
  --good: #0ca30c;
  --warning: #fab219;
  --critical: #d03b3b;
  --fav-wash: rgba(57, 135, 229, 0.12);
  --hover-wash: rgba(255, 255, 255, 0.04);
  --brand: #af1e2d;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f9f9f7;
  --surface: #fcfcfb;
  --surface-2: #f2f1ee;
  --surface-3: #e8e7e2;
  --border: rgba(11, 11, 11, 0.1);
  --text: #0b0b0b;
  --text-2: #52514e;
  --muted: #6f6d68;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --link: #1c5cab;
  --accent: #2a78d6;
  --s1: #2a78d6;
  --s2: #eb6834;
  --pos: #2a78d6;
  --neg: #e34948;
  --series-muted: #b4b2aa;
  --fav-wash: rgba(42, 120, 214, 0.08);
  --hover-wash: rgba(11, 11, 11, 0.03);
  --shadow: 0 1px 2px rgba(11, 11, 11, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1 {
  font-size: 1.6rem;
  margin: 0 0 2px;
  font-weight: 650;
}

h2 {
  font-size: 1rem;
  margin: 0;
  font-weight: 600;
}

h3 {
  font-size: 0.9rem;
  margin: 0;
}

.muted {
  color: var(--text-2);
}

.small {
  font-size: 0.85em;
}

.strong {
  font-weight: 650;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ## Barre du haut */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  /* Espacements serrés : barre sur une ligne dès 1400 px, y compris avec les libellés français */
  gap: 8px 14px;
  padding: 10px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 650;
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  background: var(--brand);
  color: #fff;
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Menu équipe favorite : bouton + liste avec logos */
.fav-picker {
  position: relative;
}

.fav-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 270px;
  padding: 4px 10px 4px 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.fav-button:hover {
  background: var(--surface-3);
}

.fav-button .fav-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fav-button .caret {
  color: var(--muted);
  font-size: 0.8rem;
}

.fav-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 290px;
  max-height: 70vh;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
  z-index: 40;
}

.fav-list:focus {
  outline: none;
}

.fav-group {
  padding: 8px 8px 4px;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fav-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text);
}

.fav-option:hover,
.fav-option.active {
  background: var(--surface-3);
}

.fav-option[aria-selected='true'] {
  font-weight: 650;
  box-shadow: inset 3px 0 0 var(--accent);
}

.nav {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-2);
  padding: 6px 8px;
  border-radius: 6px;
}

.nav a:hover {
  background: var(--hover-wash);
  color: var(--text);
  text-decoration: none;
}

.nav a.active {
  color: var(--text);
  background: var(--surface-3);
}

/* Recherche, langue et thème : la recherche rétrécit d'abord, puis le groupe passe à la ligne d'un bloc */
.top-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 1 1 260px;
}

.search {
  position: relative;
  flex: 0 1 320px;
  min-width: 0;
}

.search input {
  width: 100%;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
}

.lang-select {
  padding: 6px 8px;
  cursor: pointer;
  font-weight: 600;
}

/* ## Suggestions de recherche */

.suggest {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 440px;
  max-width: 94vw;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
  padding: 6px;
  z-index: 40;
}

.sg-group {
  padding: 8px 8px 4px;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sg-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.sg-item:hover,
.sg-item.active {
  background: var(--surface-3);
}

.sg-icon {
  width: 26px;
  height: 26px;
  flex: none;
  object-fit: contain;
}

.sg-icon.round {
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
}

/* Affiche (deux logos) ou match d'une équipe : les logos se partagent la place de l'icône */
.sg-logos {
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

.sg-logos .logo {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
}

.sg-sub .logo {
  width: 14px;
  height: 14px;
  margin-right: 3px;
}

.result-logos {
  display: inline-flex;
  gap: 2px;
  flex: none;
}

.sg-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  color: var(--text-2);
}

.sg-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sg-label {
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sg-sub {
  color: var(--muted);
  font-size: 0.78rem;
}

/* ## Page de résultats */

.result-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.result-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--text);
}

.result-link:hover {
  background: var(--hover-wash);
  text-decoration: none;
}

.result-link span {
  display: flex;
  flex-direction: column;
}

.result-games {
  display: flex;
  flex-direction: column;
}

.result-game {
  display: grid;
  grid-template-columns: 150px 90px 70px 90px 1fr;
  align-items: center;
  gap: 10px;
  padding: 7px 6px;
  border-bottom: 1px solid var(--grid);
  color: var(--text-2);
}

.result-game:hover {
  background: var(--hover-wash);
  text-decoration: none;
}

.result-game .strong {
  color: var(--text);
}

.rg-score {
  text-align: center;
  font-weight: 650;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.icon-btn {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 6px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 1rem;
}

/* Mode sans spoiler actif */
.icon-btn.btn-on {
  border-color: var(--accent);
  background: var(--fav-wash);
}

.spoiler-score {
  font-size: 1.3rem;
  font-weight: 650;
  color: var(--text-2);
  margin-bottom: 6px;
}

/* ## Connexion (hébergement OVH en accès privé) */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-box {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.auth-box.wide {
  max-width: 780px;
}

.auth-box h2 {
  margin: 18px 0 8px;
}

.auth-box .brand {
  margin-bottom: 18px;
}

.badge.bad {
  border-color: var(--critical);
  color: var(--text);
}

table.diag td {
  white-space: normal;
}

.auth-box h1 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-form label {
  color: var(--text-2);
}

.auth-form input {
  padding: 9px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
}

.auth-form .btn {
  justify-content: center;
  margin-top: 6px;
}

.auth-error {
  margin: 12px 0 0;
  color: var(--neg);
}

code {
  background: var(--surface-2);
  border-radius: 4px;
  padding: 1px 5px;
}

/* ## Structure */

.view {
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 24px 40px;
  transition: opacity 0.15s;
}

.view:focus {
  outline: none;
}

.view.is-refreshing {
  opacity: 0.55;
  pointer-events: none;
}

.footer {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 24px 28px;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.section-title {
  margin: 22px 0 10px;
  font-size: 1.05rem;
  /* Défilement automatique (ex. Prévisions > course aux séries) : titre sous la barre du haut collante */
  scroll-margin-top: 80px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.grid-2 > .card,
.grid-3 > .card {
  margin-bottom: 0;
}

.grid-2,
.grid-3 {
  margin-bottom: 16px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.card-sub {
  margin: -6px 0 10px;
  color: var(--text-2);
  font-size: 0.85rem;
}

.card-note {
  margin: 8px 0 0;
  color: var(--text-2);
  font-size: 0.85rem;
}

.loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  padding: 40px 0;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--surface-3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error-box {
  background: var(--surface);
  border: 1px solid var(--critical);
  border-radius: 10px;
  padding: 16px;
  max-width: 640px;
}

.error-box p {
  margin: 6px 0 12px;
  color: var(--text-2);
}

.notice {
  color: var(--text-2);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}

/* ## Contrôles */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  background: var(--surface-3);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
}

.btn-on {
  border-color: var(--accent);
  color: var(--text);
}

.filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.filters-note {
  margin: 0;
  color: var(--text-2);
  font-size: 0.85rem;
  flex: 1 1 320px;
}

.field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
}

select,
input[type='date'] {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
}

.segmented {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
}

.segmented button {
  border: 0;
  background: transparent;
  color: var(--text-2);
  padding: 5px 11px;
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
}

.segmented button:hover {
  color: var(--text);
}

.segmented button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  font-weight: 600;
}

.check {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--text-2);
  font-size: 0.85rem;
  cursor: pointer;
}

/* ## Tuiles */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}

.tile-label {
  color: var(--text-2);
  font-size: 0.82rem;
}

.tile-value {
  font-size: 1.55rem;
  font-weight: 650;
  margin: 2px 0;
}

.tile-sub {
  color: var(--muted);
  font-size: 0.8rem;
}

/* ## Tableaux */

.table-wrap {
  overflow-x: auto;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

table.data th,
table.data td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--grid);
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
}

table.data thead th {
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--axis);
  user-select: none;
}

table.data tbody th {
  font-weight: 500;
}

table.data th.sortable {
  cursor: pointer;
}

table.data th.sortable:hover {
  color: var(--text);
}

table.data th[aria-sort='ascending']::after {
  content: ' ▲';
  font-size: 0.7em;
}

table.data th[aria-sort='descending']::after {
  content: ' ▼';
  font-size: 0.7em;
}

table.data .num {
  text-align: right;
}

table.data tbody tr:hover {
  background: var(--hover-wash);
}

table.data tr.clickable {
  cursor: pointer;
}

table.data tr.fav {
  background: var(--fav-wash);
}

table.data tr.highlight {
  background: var(--fav-wash);
  font-weight: 600;
}

table.data tr.future td {
  color: var(--text-2);
}

table.data tr.dim td,
table.data tr.dim th {
  color: var(--muted);
}

table.data tr.cutline td,
table.data tr.cutline th {
  border-bottom: 2px solid var(--critical);
}

table.data td.empty {
  color: var(--muted);
  text-align: center;
  padding: 18px;
}

table.data tfoot th,
table.data tfoot td {
  border-top: 1px solid var(--axis);
  border-bottom: 0;
  font-weight: 600;
}

/* Liste des joueurs : initiales A–Z, filtre par nom, case vide à la place de la photo (anciens joueurs) */
.letter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}

.letter-bar button {
  min-width: 32px;
  padding: 5px 7px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text-2);
  font: inherit;
  cursor: pointer;
}

.letter-bar button:hover:not(:disabled) {
  color: var(--text);
}

.letter-bar button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.letter-bar button:disabled {
  opacity: 0.35;
  cursor: default;
}

.text-filter {
  min-width: 220px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
}

.headshot-none {
  display: inline-block;
  flex: none;
}

/* Effectif : attaquants, défenseurs et gardiens dans trois tableaux aux mêmes colonnes. Largeurs fixées
   colonne par colonne (au lieu d'être calculées par chaque tableau) pour qu'elles tombent au même endroit ;
   lieu de naissance : le reste. Largeur minimale : défilement horizontal sur petit écran. */
.roster table.data {
  table-layout: fixed;
  min-width: 920px;
}

.roster table.data th:nth-child(1) {
  width: 56px;
}

.roster table.data th:nth-child(2) {
  width: 26%;
}

.roster table.data th:nth-child(3),
.roster table.data th:nth-child(4) {
  width: 70px;
}

.roster table.data th:nth-child(5),
.roster table.data th:nth-child(6) {
  width: 92px;
}

.roster table.data th:nth-child(7) {
  width: 84px;
}

.roster table.data th:nth-child(8) {
  width: 170px;
}

.roster table.data td {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Blessés : icône après le nom ; nom tronqué au besoin, l'icône reste visible */
.roster .player-link {
  max-width: 100%;
}

.roster .pl-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inj {
  display: inline-flex;
  flex: none;
  color: var(--critical);
  vertical-align: -2px;
  cursor: help;
}

.inj.dtd {
  color: var(--warning);
}

.roster-inj {
  margin: 0 0 10px;
}

/* Feuille de match : gardiens dans le pied du tableau des patineurs, avec un en-tête comme celui
   des colonnes et des lignes ordinaires (pas de total) */
table.data tfoot tr.box-goalie-head th {
  color: var(--text-2);
  font-size: 0.8rem;
  border-bottom: 1px solid var(--axis);
  padding-top: 16px;
}

table.data tfoot tr.box-goalie td {
  font-weight: 400;
  border-top: 0;
  border-bottom: 1px solid var(--grid);
}

table.compact th,
table.compact td {
  padding: 5px 7px;
}

table.compact tbody th {
  white-space: normal;
  min-width: 110px;
}

.vs {
  display: inline-block;
  width: 18px;
  color: var(--muted);
  font-size: 0.85em;
  vertical-align: middle;
}

.route a {
  color: var(--text);
}

/* ## Pastilles */

.chip {
  display: inline-flex;
  justify-content: center;
  min-width: 26px;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}

.chip-win {
  background: #0b7f0b;
}

.chip-loss {
  background: var(--critical);
}

.chip-otl {
  background: var(--warning);
  color: #0b0b0b;
}

.chip-tie {
  background: var(--muted);
}

.chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.chips a:hover {
  text-decoration: none;
}

.badge {
  display: inline-block;
  padding: 0 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.6;
}

.badge.warn {
  border-color: var(--warning);
  color: var(--text);
}

.badge.ok {
  border-color: var(--good);
  color: var(--text);
}

/* ## Logos et photos */

.logo {
  object-fit: contain;
  vertical-align: middle;
}

.logo-xs {
  width: 16px;
  height: 16px;
}

.logo-sm {
  width: 22px;
  height: 22px;
}

.logo-md {
  width: 30px;
  height: 30px;
}

.logo-lg {
  width: 44px;
  height: 44px;
}

.logo-xl {
  width: 76px;
  height: 76px;
}

.headshot-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  object-fit: cover;
}

.headshot-md {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface-2);
  object-fit: cover;
}

.headshot-lg {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  object-fit: cover;
}

.team-link,
.player-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  vertical-align: middle;
}

/* Logo + code ou nom d'équipe dans du texte (sans lien) */
.team-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
  white-space: nowrap;
}

.tile-value .team-label {
  gap: 6px;
}

.tile-value .team-label .logo {
  width: 28px;
  height: 28px;
}

/* Logo introuvable (équipe disparue) : masqué par app.js plutôt qu'une image cassée */
.logo-missing {
  display: none;
}

/* ## Scores */

.date-nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

.week-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 16px;
}

.week-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
}

.week-day strong {
  color: var(--text);
  font-size: 1.05rem;
}

.week-day small {
  font-size: 0.72rem;
}

.week-day.active {
  border-color: var(--accent);
  background: var(--surface-2);
}

.week-day:hover {
  text-decoration: none;
  background: var(--surface-2);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.game-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
}

.game-card:hover {
  text-decoration: none;
  border-color: var(--axis);
  background: var(--surface-2);
}

.game-card.fav {
  border-color: var(--accent);
}

.gc-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-2);
  margin-bottom: 8px;
}

.gc-status.live {
  color: var(--text);
  font-weight: 600;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--critical);
  margin-right: 6px;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}

.gc-team {
  display: grid;
  grid-template-columns: 34px 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  color: var(--text-2);
}

.gc-team.is-winner {
  color: var(--text);
  font-weight: 650;
}

.gc-abbrev {
  color: var(--muted);
  font-size: 0.78rem;
}

.gc-score {
  min-width: 22px;
  text-align: right;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.gc-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--grid);
  color: var(--muted);
  font-size: 0.78rem;
}

.gc-pred {
  color: var(--text-2);
  font-weight: 600;
}

/* ## Équipes */

.division-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}

.division-grid .card {
  margin-bottom: 0;
}

.team-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-tile {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--text);
}

.team-tile .logo {
  grid-row: span 2;
}

.team-tile:hover {
  background: var(--hover-wash);
  text-decoration: none;
}

.team-tile.fav {
  background: var(--fav-wash);
}

.team-tile-name {
  font-weight: 600;
}

.team-tile-rec {
  color: var(--text-2);
  font-size: 0.82rem;
}

.team-head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.team-head-text {
  flex: 1 1 300px;
}

.team-head-text p {
  margin: 0;
}

.team-head-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.tabs a {
  padding: 9px 14px;
  color: var(--text-2);
  white-space: nowrap;
}

.tabs a:hover {
  color: var(--text);
  text-decoration: none;
}

.tabs a.active {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--accent);
  font-weight: 600;
}

.banner-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.next-game,
.form-strip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text);
}

.next-game {
  flex: 1 1 360px;
}

.next-game:hover {
  text-decoration: none;
  border-color: var(--axis);
}

.next-label {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.next-main {
  font-size: 1.05rem;
  font-weight: 600;
}

/* ## Joueur */

.player-head {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.player-head-text {
  flex: 1 1 420px;
}

.player-sub {
  margin: 2px 0 10px;
  color: var(--text-2);
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px 18px;
  margin: 0;
}

.facts dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.facts dd {
  margin: 0;
}

.awards {
  margin: 0;
  padding-left: 18px;
}

.awards li {
  margin: 4px 0;
}

/* ## Match */

.game-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
}

.gh-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-2);
  text-align: center;
}

.gh-team:hover {
  text-decoration: none;
}

.gh-team.is-winner .gh-name {
  color: var(--text);
}

.gh-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-2);
}

.gh-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}

.gh-score {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.1;
}

.gh-dash {
  color: var(--muted);
  margin: 0 12px;
}

.gh-time {
  font-size: 2rem;
  font-weight: 650;
}

.gh-status {
  font-weight: 600;
}

.period-title {
  margin: 12px 0 6px;
  color: var(--text-2);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.events {
  list-style: none;
  margin: 0;
  padding: 0;
}

.events li {
  display: grid;
  grid-template-columns: 48px 26px 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--grid);
}

.ev-time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.ev-main a {
  color: var(--text);
  font-weight: 600;
}

.ev-sub {
  display: block;
  color: var(--text-2);
  font-size: 0.82rem;
}

.ev-sub a {
  font-weight: 400 !important;
  color: var(--text-2) !important;
}

.ev-score {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.video-link {
  font-size: 0.8rem;
  white-space: nowrap;
}

.stars {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.star-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1 1 160px;
  padding: 10px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  text-align: center;
}

.star-card:hover {
  text-decoration: none;
  background: var(--surface-3);
}

.star-rank {
  color: var(--warning);
  letter-spacing: 2px;
}

.series {
  list-style: none;
  margin: 0;
  padding: 0;
}

.series a {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  padding: 6px 4px;
  border-bottom: 1px solid var(--grid);
  color: var(--text);
}

.series li.current a {
  background: var(--fav-wash);
}

/* ## Meneurs */

.leaders {
  list-style: none;
  margin: 0;
  padding: 0;
}

.leaders li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid var(--grid);
}

.leaders li.fav {
  background: var(--fav-wash);
}

.lead-rank {
  width: 20px;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.lead-name {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.lead-name > a:first-child {
  color: var(--text);
  font-weight: 600;
}

.lead-team {
  color: var(--text-2);
  font-size: 0.8rem;
}

.lead-value {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

/* ## Progression */

.progress {
  height: 8px;
  background: var(--surface-3);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.2s;
}

/* ## Graphiques */

.chart-host {
  width: 100%;
}

svg.chart {
  display: block;
  overflow: visible;
}

.chart .grid {
  stroke: var(--grid);
  stroke-width: 1;
}

.chart .axis {
  stroke: var(--axis);
  stroke-width: 1;
}

.chart .tick {
  fill: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.chart .end-label,
.chart .value-label {
  fill: var(--text-2);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.chart .ln {
  fill: none;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.chart .ln.s1 {
  stroke: var(--s1);
}

.chart .ln.s2 {
  stroke: var(--s2);
}

.chart .ln.muted {
  stroke: var(--series-muted);
}

.chart .dot {
  stroke: var(--surface);
  stroke-width: 2;
}

.chart .dot.s1,
.chart .mark.s1 {
  fill: var(--s1);
}

.chart .dot.s2,
.chart .mark.s2 {
  fill: var(--s2);
}

.chart .dot.muted,
.chart .mark.muted {
  fill: var(--series-muted);
}

.chart .mark.pos {
  fill: var(--pos);
}

.chart .mark.neg {
  fill: var(--neg);
}

.chart .bar.hover .mark {
  opacity: 0.75;
}

.chart .crosshair {
  stroke: var(--axis);
  stroke-width: 1;
}

.chart .hit {
  fill: transparent;
}

.chart .hit.clickable {
  cursor: pointer;
}

.chart.map .leg {
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.4;
}

.chart.map .leg.s1 {
  stroke: var(--s1);
}

.chart.map .leg.muted {
  stroke: var(--series-muted);
}

.chart.map .arena {
  fill: var(--axis);
  stroke: var(--surface);
  stroke-width: 2;
}

.chart.map .arena.visited {
  fill: var(--s1);
}

.chart.map .arena.planned {
  fill: var(--series-muted);
}

.chart.map .arena.home {
  fill: var(--text);
}

.chart.map .map-label {
  fill: var(--muted);
  font-size: 10px;
}

.chart.map .map-label.home {
  fill: var(--text);
  font-weight: 700;
  font-size: 11px;
}

.chart.map .map-ring {
  fill: none;
  stroke: var(--text);
  stroke-width: 1.5;
}

/* ## Carte des tirs (patinoire) */

.chart.rink .rink-board {
  fill: var(--surface-2);
  stroke: var(--axis);
  stroke-width: 1.5;
}

.chart.rink .rink-red,
.chart.rink .rink-blue {
  fill: none;
  stroke-width: 1.5;
  opacity: 0.45;
}

.chart.rink .rink-red {
  stroke: var(--critical);
}

.chart.rink .rink-blue {
  stroke: var(--accent);
}

.chart.rink .rink-zone,
.chart.rink .rink-center {
  stroke-width: 3;
}

.chart.rink .rink-dot {
  fill: var(--critical);
  opacity: 0.45;
}

.chart.rink .rink-crease {
  fill: var(--accent);
  fill-opacity: 0.12;
  stroke: var(--critical);
  stroke-opacity: 0.45;
}

.chart.rink .rink-net {
  fill: none;
  stroke: var(--text-2);
}

.chart.rink .shot .mark {
  stroke-width: 1.5;
}

.chart.rink .shot.s1 .mark {
  fill: var(--s1);
  stroke: var(--s1);
}

.chart.rink .shot.s2 .mark {
  fill: var(--s2);
  stroke: var(--s2);
}

.chart.rink .shot.miss .mark {
  fill: none;
}

.chart.rink .shot.block .mark {
  stroke-width: 2;
}

.chart.rink .shot.goal .mark {
  stroke: var(--text);
  stroke-width: 2;
}

.chart.rink .shot.hover .mark {
  stroke: var(--text);
  stroke-width: 2.5;
}

.shotmap {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr);
  gap: 16px;
  align-items: start;
}

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

/* Symboles de la légende de la carte des tirs */
.legend-key.key-dot,
.legend-key.key-ring,
.legend-key.key-goal {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-2);
}

.legend-key.key-ring {
  background: none;
  border: 1.5px solid var(--text-2);
}

.legend-key.key-goal {
  width: 12px;
  height: 12px;
  box-shadow: 0 0 0 1.5px var(--text);
}

.legend-key.key-cross::before {
  content: '×';
  font-weight: 700;
  line-height: 1;
}

.legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  color: var(--text-2);
  font-size: 0.82rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-key.key-rect {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.legend-key.key-line,
.tip-key {
  width: 14px;
  height: 2px;
  border-radius: 1px;
}

.legend-key.s1,
.tip-key.s1 {
  background: var(--s1);
}

.legend-key.s2,
.tip-key.s2 {
  background: var(--s2);
}

.legend-key.muted,
.tip-key.muted {
  background: var(--series-muted);
}

.legend-key.pos {
  background: var(--pos);
}

.legend-key.neg {
  background: var(--neg);
}

.tooltip {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  font-size: 0.82rem;
  max-width: 300px;
}

.tip-title {
  color: var(--text-2);
  margin-bottom: 4px;
}

.tooltip .logo {
  margin-right: 4px;
}

.tip-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tip-row strong {
  font-variant-numeric: tabular-nums;
}

.tip-label {
  color: var(--text-2);
}

/* ## Prévisions */

.pbar {
  display: block;
  width: 100%;
  height: 10px;
}

.pbar .s1 {
  fill: var(--s1);
}

.pbar .s2 {
  fill: var(--s2);
}

.pbar-lg {
  height: 14px;
}

.pred-list {
  display: flex;
  flex-direction: column;
}

.pred-row {
  display: grid;
  grid-template-columns: 56px 150px minmax(120px, 1fr) 150px minmax(180px, 260px);
  align-items: center;
  gap: 12px;
  padding: 8px 6px;
  border-bottom: 1px solid var(--grid);
  color: var(--text);
}

.pred-row:hover {
  background: var(--hover-wash);
  text-decoration: none;
}

.pred-row.fav {
  background: var(--fav-wash);
}

.pred-time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.pred-side {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
}

.pred-side.home {
  justify-content: flex-end;
}

.pred-side.is-fav {
  color: var(--text);
  font-weight: 650;
}

.pred-pct {
  font-variant-numeric: tabular-nums;
  min-width: 38px;
}

.pred-side.home .pred-pct {
  text-align: right;
}

/* Libellé de confiance dans une colonne de largeur fixe, badges empilés à droite : alignés d'une ligne à l'autre */
.pred-notes {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  font-size: 0.8rem;
}

.pred-conf {
  white-space: nowrap;
}

.pred-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.pred-badges .badge {
  white-space: nowrap;
}

.pred-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin: 4px 0 10px;
}

.ph-team {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ph-abbrev {
  color: var(--text-2);
  font-weight: 600;
}

.ph-pct {
  font-size: 1.8rem;
  font-weight: 650;
  color: var(--text-2);
}

.ph-pct.is-fav {
  color: var(--text);
}

.pred-verdict {
  margin: 0 0 12px;
}

.pred-grid {
  margin-bottom: 0;
}

.pred-abs h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 6px;
  font-size: 0.85rem;
  color: var(--text-2);
}

.absences {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}

.absences li {
  display: grid;
  /* Statut et impact en colonnes de largeur fixe (et non « auto » ligne par ligne) : alignés d'un joueur
     à l'autre et entre les deux équipes */
  grid-template-columns: minmax(0, 1fr) 128px 118px;
  grid-template-areas: 'name status impact' 'sub sub impact';
  column-gap: 8px;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid var(--grid);
}

.abs-name {
  grid-area: name;
}

.abs-name a {
  color: var(--text);
  font-weight: 600;
}

.absences .badge {
  grid-area: status;
  justify-self: end;
}

.abs-sub {
  grid-area: sub;
}

.abs-impact {
  grid-area: impact;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

@media (max-width: 560px) {
  /* Téléphone : statut sous le nom, impact à droite */
  .absences li {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'name impact' 'status impact' 'sub sub';
    row-gap: 2px;
  }

  .absences .badge {
    justify-self: start;
  }
}

.method {
  margin: 0;
  padding-left: 18px;
  color: var(--text-2);
}

.method li {
  margin: 6px 0;
}

.method strong {
  color: var(--text);
}

.method-box {
  margin-top: 12px;
}

.method-box summary {
  cursor: pointer;
  color: var(--link);
}

/* ## Vidéos du match (résumé, match condensé) */

.game-videos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--grid);
}

.gv-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.gv-link {
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.gv-link:hover {
  background: var(--hover-wash);
  text-decoration: none;
}

/* ## Coupe Stanley */

.sc-banner {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 0 16px;
}

.sc-champion {
  display: flex;
  align-items: center;
  gap: 18px;
}

.sc-champion-name {
  font-size: 1.4rem;
  font-weight: 650;
  margin: 2px 0;
}

.sc-champion-name a {
  color: var(--text);
}

/* Une colonne par tour ; les séries d'un tour se centrent entre celles du tour précédent */
.sc-bracket {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.sc-round {
  display: flex;
  flex-direction: column;
}

.sc-round-title {
  margin: 0 0 8px;
  min-height: 2.6em;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sc-round-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 10px;
}

.sc-series {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
}

a.sc-series:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.sc-series.is-current {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.sc-series.is-placeholder,
.sc-series.is-projected {
  border-style: dashed;
}

.sc-series.is-placeholder {
  background: transparent;
}

.sc-caption {
  color: var(--muted);
  font-size: 0.72rem;
}

.sc-team {
  display: grid;
  grid-template-columns: 2.4em 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  border-radius: 4px;
}

.sc-team .logo,
.sc-logo {
  width: 20px;
  height: 20px;
}

.sc-seed {
  color: var(--muted);
  font-size: 0.7rem;
}

.sc-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sc-name small {
  color: var(--muted);
  font-weight: 400;
}

.sc-wins {
  min-width: 1ch;
  text-align: right;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.sc-team.is-winner {
  font-weight: 650;
}

.sc-team.is-loser {
  color: var(--muted);
}

.sc-team.fav {
  background: var(--fav-wash);
}

.sc-team.tbd .sc-name {
  color: var(--muted);
  font-style: italic;
}

.sc-palmares {
  align-items: start;
}

.team-link .sc-logo {
  display: inline-block;
}

/* ## Petits écrans */

@media (max-width: 860px) {
  .topbar {
    padding: 10px 14px;
    gap: 10px;
  }

  .top-tools {
    flex-basis: 100%;
    gap: 10px;
  }

  .search {
    flex: 1 1 auto;
  }

  .suggest {
    left: 0;
    right: auto;
  }

  .view {
    padding: 14px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .game-head {
    grid-template-columns: 1fr;
  }

  .events li {
    grid-template-columns: 44px 24px 1fr auto;
  }

  .video-link {
    display: none;
  }

  .pred-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .pred-side.home {
    justify-content: flex-start;
  }

  /* Carte de prévision : les deux équipes sur une ligne, la barre de probabilité pleine largeur en dessous */
  .pred-hero {
    grid-template-columns: 1fr 1fr;
  }

  .pred-hero > .pbar {
    grid-column: 1 / -1;
    order: 1;
  }

  .pred-hero > .ph-team:last-child {
    justify-content: flex-end;
  }
}

.lang-switch {
  margin: 16px 0 0;
  text-align: right;
  font-size: 0.85rem;
}

/* ## Actualités (NHL.com) : grille d'articles, vignette 16:9, résumé sur 3 lignes */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.news-card.fav {
  border-color: var(--accent);
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 18px;
  font-size: 0.8rem;
  color: var(--text-2);
}

.news-teams {
  display: inline-flex;
  gap: 6px;
}

.news-link {
  display: block;
  color: var(--text);
}

.news-link:hover {
  text-decoration: none;
}

.news-link:hover .news-title {
  color: var(--link);
}

.news-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  background: var(--surface-2);
}

.news-title {
  margin: 10px 0 0;
  font-size: 0.98rem;
  line-height: 1.3;
}

.news-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  margin: 6px 0 0;
  color: var(--text-2);
  font-size: 0.85rem;
}

.news-players {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--text-2);
}

/* Mode sans spoiler : emplacement de la vignette, article dévoilé à la demande */
.news-mask {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  aspect-ratio: 16 / 9;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 6px;
  color: var(--text-2);
  font-size: 0.85rem;
}

.news-mask p {
  margin: 0;
}

.news-mask-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ## Comparateur de joueurs : fiches côte à côte (liseré à la couleur de chaque joueur), recherche */

.btn-sm {
  padding: 2px 8px;
  font-size: 0.8rem;
}

.cmp-players {
  align-items: start;
}

.cmp-player.s1 {
  box-shadow: inset 0 3px 0 var(--s1), var(--shadow);
}

.cmp-player.s2 {
  box-shadow: inset 0 3px 0 var(--s2), var(--shadow);
}

.cmp-player-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.cmp-player-head > div {
  flex: 1;
  min-width: 0;
}

.cmp-player-head p {
  margin: 2px 0 0;
}

.cmp-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cmp-search {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
}

.cmp-results {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.cmp-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.cmp-pick:hover,
.cmp-pick:focus-visible {
  background: var(--hover-wash);
}

.cmp-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cmp-name .legend-key {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.cmp-table th[scope='row'] {
  font-weight: 400;
}
