/* ==========================================================================
   6 Mans / 4 Mans : pages publiques (classement, serveur, matchs, joueur),
   espace staff (arbitrage) et administration d'un serveur.
   Même charte que le reste du site : graphite, accent cobalt unique, Satoshi.
   Seules exceptions de couleur : les médailles du podium (argent, bronze) et
   les états (victoire, défaite, litige).
   ========================================================================== */

:root {
  --sm-argent: #b9c2d0;
  --sm-bronze: #c8895a;
  --sm-ligne: rgba(255, 255, 255, 0.06);
}

/* --- Mise en page ------------------------------------------------------- */
.sm-page { width: 100%; max-width: 1240px; margin: 0 auto; padding: 2.4rem 1.5rem 4rem; }
.sm-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.sm-tete-titre { display: flex; align-items: center; gap: 0.9rem; min-width: 0; }
.sm-tete h1 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; margin: 0; }
.sm-tete-sous { color: var(--text-muted); margin: 0.45rem 0 0; font-size: 0.95rem; }
.sm-tete-actions { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.sm-icone-serveur { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--bg-card); border: 1px solid var(--border-strong); overflow: hidden; display: grid; place-items: center; color: var(--accent-text); font-weight: 800; font-size: 1.2rem; }
.sm-icone-serveur img { width: 100%; height: 100%; object-fit: cover; }

.sm-grille { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.25rem; align-items: start; }
.sm-grille-large { grid-template-columns: minmax(0, 1fr) 380px; }
.sm-colonne { display: grid; gap: 1.25rem; min-width: 0; }
@media (max-width: 1080px) { .sm-grille, .sm-grille-large { grid-template-columns: 1fr; } }

.sm-carte { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow-card); min-width: 0; }
.sm-carte-titre { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin: 0 0 1rem; }
.sm-carte-titre h2, .sm-carte-titre h3 { margin: 0; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.sm-carte-titre .sm-meta { color: var(--text-muted); font-size: 0.82rem; }
.sm-carte.is-accent { border-color: var(--border-active); background: linear-gradient(180deg, rgba(47, 107, 255, 0.07), transparent 60%), var(--bg-card); }
.sm-carte.is-danger { border-color: rgba(239, 93, 108, 0.35); }
.sm-carte-pied { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--sm-ligne); color: var(--text-muted); font-size: 0.82rem; }

.sm-surtitre { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.45rem; }
.sm-muet { color: var(--text-muted); }
.sm-vide { color: var(--text-muted); font-size: 0.9rem; padding: 1.2rem 0; text-align: center; }

/* Sélecteurs « JEU » / « PÉRIODE » des maquettes */
.sm-filtres { display: flex; align-items: center; gap: 0.8rem 1.2rem; flex-wrap: wrap; }
.sm-filtre { display: flex; align-items: center; gap: 0.7rem; }
.sm-filtre label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin: 0; }
.sm-filtre select { width: auto; min-width: 11rem; padding: 0.7rem 2.4rem 0.7rem 0.95rem; border-radius: var(--radius-sm); background-color: var(--bg-card); }

/* --- Badges et pastilles ------------------------------------------------- */
.sm-badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.22rem 0.6rem; border-radius: 999px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; border: 1px solid transparent; }
.sm-badge.is-accent { color: var(--accent-text); background: var(--accent-soft); border-color: rgba(47, 107, 255, 0.35); }
.sm-badge.is-ok { color: var(--success); background: rgba(63, 191, 135, 0.12); border-color: rgba(63, 191, 135, 0.3); }
.sm-badge.is-litige { color: var(--warning); background: rgba(233, 162, 59, 0.12); border-color: rgba(233, 162, 59, 0.4); }
.sm-badge.is-danger { color: var(--danger); background: rgba(239, 93, 108, 0.12); border-color: rgba(239, 93, 108, 0.35); }
.sm-badge.is-neutre { color: var(--text-muted); background: rgba(255, 255, 255, 0.04); border-color: var(--border-strong); }
.sm-badge.is-grand { padding: 0.5rem 0.9rem; font-size: 0.78rem; border-radius: var(--radius-sm); }
.sm-toi { display: inline-block; padding: 0.08rem 0.42rem; border-radius: 6px; background: var(--blue); color: #fff; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 2px; }
.sm-vert { color: var(--success); }
.sm-rouge { color: var(--danger); }
.sm-orange { color: var(--warning); }

/* --- Avatars ------------------------------------------------------------- */
.sm-avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #1b2230; border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; color: var(--accent-text); font-size: 0.78rem; font-weight: 700; }
.sm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sm-avatar.is-grand { width: 46px; height: 46px; font-size: 1rem; }
.sm-avatar.is-xl { width: 84px; height: 84px; font-size: 1.8rem; border-width: 3px; border-color: var(--bg); }
.sm-joueur { display: flex; align-items: center; gap: 0.75rem; min-width: 0; color: var(--text); }
.sm-joueur:hover { color: var(--text); }
.sm-joueur b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.sm-joueur:hover b { color: var(--accent-text); }

/* --- Podium -------------------------------------------------------------- */
.sm-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.sm-podium-carte { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 1.15rem 1.3rem; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); color: var(--text); transition: border-color 200ms var(--ease), transform 200ms var(--ease); }
.sm-podium-carte:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-2px); }
.sm-podium-carte.is-1 { border-color: var(--border-active); background: linear-gradient(135deg, rgba(47, 107, 255, 0.12), transparent 55%), var(--bg-card); }
.sm-podium-rang { font-size: 2.1rem; font-weight: 800; line-height: 1; width: 1.6ch; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.is-1 .sm-podium-rang { color: var(--blue); }
.is-2 .sm-podium-rang { color: var(--sm-argent); }
.is-3 .sm-podium-rang { color: var(--sm-bronze); }
.sm-podium-nom { min-width: 0; }
.sm-podium-nom b { display: block; font-size: 1.08rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-podium-nom span { color: var(--text-muted); font-size: 0.8rem; }
.sm-podium-mmr { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .sm-podium { grid-template-columns: 1fr; }
  .sm-podium-carte { padding: 0.9rem 1rem; }
}

/* --- Tableau de classement ------------------------------------------------ */
.sm-tableau-zone { overflow-x: auto; margin: 0 -0.4rem; }
.sm-tableau { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 560px; }
.sm-tableau th { text-align: left; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); padding: 0 0.9rem 0.85rem; border-bottom: 1px solid var(--sm-ligne); background: none; }
.sm-tableau td { padding: 0.85rem 0.9rem; border-bottom: 1px solid var(--sm-ligne); font-variant-numeric: tabular-nums; }
.sm-tableau tbody tr { transition: background 160ms var(--ease); }
.sm-tableau tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.sm-tableau tbody tr:last-child td { border-bottom: 0; }
.sm-tableau .sm-rang { width: 3.5rem; font-weight: 800; }
.sm-tableau .sm-mmr { font-weight: 800; }
.sm-tableau .sm-num { color: var(--text-muted); }
.sm-tableau tr.is-moi td { background: rgba(47, 107, 255, 0.09); }
.sm-tableau tr.is-moi td:first-child { border-radius: 10px 0 0 10px; color: var(--accent-text); }
.sm-tableau tr.is-moi td:last-child { border-radius: 0 10px 10px 0; }
.sm-tableau-pied { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.1rem; color: var(--text-muted); font-size: 0.82rem; }
.sm-pagination { display: flex; gap: 0.5rem; }
.sm-pagination .is-off { opacity: 0.4; pointer-events: none; }

/* --- Listes compactes (derniers matchs, litiges) -------------------------- */
.sm-liste { display: grid; }
.sm-liste-ligne { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.7rem 0; border-bottom: 1px solid var(--sm-ligne); color: var(--text); font-size: 0.9rem; }
.sm-liste-ligne:last-child { border-bottom: 0; padding-bottom: 0; }
.sm-liste-ligne:first-child { padding-top: 0; }
a.sm-liste-ligne:hover { color: var(--text); }
a.sm-liste-ligne:hover b { color: var(--accent-text); }
.sm-liste-ligne b { font-weight: 600; }
.sm-liste-ligne small { color: var(--text-muted); font-size: 0.78rem; white-space: nowrap; }
.sm-liste-carte { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.85rem 1rem; border-radius: var(--radius-sm); background: var(--bg-secondary); border: 1px solid var(--border); color: var(--text); transition: border-color 160ms var(--ease); }
.sm-liste-carte + .sm-liste-carte { margin-top: 0.6rem; }
a.sm-liste-carte:hover { color: var(--text); border-color: var(--border-strong); }

/* --- Progression (barres sur 7 jours) ------------------------------------- */
.sm-progression-valeur { display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap; }
.sm-progression-valeur strong { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sm-barres { display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 0.4rem; height: 84px; margin-top: 1.1rem; }
.sm-barre { border-radius: 4px 4px 2px 2px; background: #1e2738; min-height: 6px; transform-origin: bottom; animation: sm-pousse 600ms var(--ease) backwards; }
.sm-barre.is-recente { background: var(--blue); }
.sm-barres .sm-barre:nth-child(2) { animation-delay: 40ms; }
.sm-barres .sm-barre:nth-child(3) { animation-delay: 80ms; }
.sm-barres .sm-barre:nth-child(4) { animation-delay: 120ms; }
.sm-barres .sm-barre:nth-child(5) { animation-delay: 160ms; }
.sm-barres .sm-barre:nth-child(6) { animation-delay: 200ms; }
.sm-barres .sm-barre:nth-child(7) { animation-delay: 240ms; }
@keyframes sm-pousse { from { transform: scaleY(0.15); opacity: 0; } }

/* --- Chiffres clés (tuiles) ----------------------------------------------- */
.sm-tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.sm-tuile { padding: 1.15rem 1.3rem; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); color: var(--text); }
a.sm-tuile:hover { color: var(--text); border-color: var(--border-strong); }
.sm-tuile strong { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.sm-tuile span { color: var(--text-muted); font-size: 0.88rem; }
.sm-tuile.is-danger { border-color: rgba(239, 93, 108, 0.35); }
.sm-tuile.is-danger strong { color: var(--danger); }

/* --- Cartes d'équipe (match, arbitrage) ----------------------------------- */
.sm-equipes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-bottom: 1.25rem; }
@media (max-width: 760px) { .sm-equipes { grid-template-columns: 1fr; } }
.sm-equipe-ligne { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.75rem 0; border-bottom: 1px solid var(--sm-ligne); }
.sm-equipe-ligne:last-of-type { border-bottom: 0; }
.sm-equipe-ligne .sm-mmr { font-weight: 800; font-variant-numeric: tabular-nums; }
.sm-capitaine { color: var(--text-muted); font-size: 0.75rem; margin-left: 0.35rem; font-weight: 500; }
.sm-delta { font-weight: 700; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.sm-declaration { margin-top: 0.9rem; padding: 0.8rem 1rem; border-radius: var(--radius-sm); background: var(--bg-secondary); border: 1px solid var(--border); font-size: 0.9rem; }
.sm-declaration.is-conteste { background: rgba(239, 93, 108, 0.1); border-color: rgba(239, 93, 108, 0.32); }
.sm-declaration b { font-weight: 700; }

/* --- Fil du match --------------------------------------------------------- */
.sm-pieces { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.8rem; margin-bottom: 1.1rem; }
.sm-piece { display: grid; place-items: center; min-height: 118px; padding: 0.8rem; border-radius: var(--radius-sm); border: 1px dashed var(--border-strong); background: var(--bg-secondary); color: var(--text-muted); font-size: 0.78rem; text-align: center; overflow: hidden; }
.sm-piece img { max-width: 100%; max-height: 160px; border-radius: 6px; }
a.sm-piece:hover { border-color: var(--border-active); color: var(--accent-text); }
.sm-fil { list-style: none; margin: 0; padding: 1rem 0 0; border-top: 1px solid var(--sm-ligne); display: grid; gap: 0.15rem; }
.sm-fil li { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: 1rem; padding: 0.45rem 0; font-size: 0.9rem; }
.sm-fil time { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.sm-fil li.is-litige { color: #f3939e; }
.sm-fil li.is-litige time { color: #f3939e; }
.sm-fil li.is-decision { color: var(--success); }

/* --- Panneau d'arbitrage --------------------------------------------------- */
.sm-arbitrage { position: sticky; top: calc(var(--topbar-height, 60px) + 1rem); }
.sm-arbitrage p.sm-muet { margin: -0.4rem 0 1.2rem; font-size: 0.88rem; line-height: 1.55; }
.sm-choix { display: grid; gap: 0.45rem; margin-bottom: 1.2rem; }
.sm-choix label { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.75rem; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; font-weight: 500; margin: 0; transition: background 160ms var(--ease), border-color 160ms var(--ease); }
.sm-choix label:hover { background: rgba(255, 255, 255, 0.03); }
.sm-choix input { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; flex: none; }
.sm-choix label:has(input:checked) { border-color: var(--border-active); background: var(--accent-soft); }
.sm-impact { padding: 0.95rem 1rem; border-radius: var(--radius-sm); background: var(--bg-secondary); border: 1px solid var(--border); margin-bottom: 1.2rem; }
.sm-impact-ligne { display: flex; justify-content: space-between; gap: 0.8rem; font-size: 0.88rem; padding: 0.3rem 0; }
.sm-impact-ligne span:first-child { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-impact-ligne span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sm-arbitrage .field { margin-bottom: 1.1rem; }
.sm-arbitrage textarea { min-height: 88px; }
.sm-boutons-pleins { display: grid; gap: 0.6rem; margin-top: 1.4rem; }
.sm-boutons-pleins .btn { width: 100%; justify-content: center; padding: 0.85rem 1rem; }
.sm-resolu { padding: 1rem; border-radius: var(--radius-sm); background: rgba(63, 191, 135, 0.1); border: 1px solid rgba(63, 191, 135, 0.3); color: var(--success); font-weight: 600; }
.sm-resolu small { display: block; color: var(--text-muted); font-weight: 400; margin-top: 0.35rem; }

/* --- Files d'attente (admin et page serveur) ------------------------------- */
.sm-file { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 0.95rem 1.05rem; border-radius: var(--radius-sm); background: var(--bg-secondary); border: 1px solid var(--border); color: var(--text); transition: border-color 160ms var(--ease); }
.sm-file + .sm-file { margin-top: 0.7rem; }
.sm-file.is-active, a.sm-file:hover { border-color: var(--border-active); color: var(--text); }
.sm-file-icone { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; }
.sm-file-nom b { display: block; font-weight: 700; }
.sm-file-nom span { color: var(--text-muted); font-size: 0.8rem; }
.sm-file-droite { display: flex; align-items: center; gap: 0.75rem; white-space: nowrap; }
.sm-jauge { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; margin-top: 0.55rem; }
.sm-jauge span { display: block; height: 100%; background: var(--blue); border-radius: inherit; }
@media (max-width: 640px) {
  .sm-file { grid-template-columns: auto minmax(0, 1fr); }
  .sm-file-droite { grid-column: 1 / -1; justify-content: space-between; }
}

/* --- Réglages : choix en colonnes, interrupteurs --------------------------- */
.sm-reglages-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem 2rem; }
@media (max-width: 760px) { .sm-reglages-grille { grid-template-columns: 1fr; } }
.sm-radios { display: grid; gap: 0.5rem; }
.sm-radios label { display: flex; align-items: center; gap: 0.6rem; font-weight: 500; margin: 0; cursor: pointer; }
.sm-radios input { width: 17px; height: 17px; accent-color: var(--blue); margin: 0; }
.sm-champs-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.3rem; }
@media (max-width: 640px) { .sm-champs-3 { grid-template-columns: 1fr; } }
.sm-champs-3 .field { margin: 0; }
.sm-interrupteurs { display: grid; margin-top: 1.2rem; border-top: 1px solid var(--sm-ligne); }
.sm-interrupteur { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--sm-ligne); margin: 0; cursor: pointer; font-weight: 500; }
.sm-interrupteur:last-child { border-bottom: 0; padding-bottom: 0; }
.sm-interrupteur small { display: block; color: var(--text-muted); font-weight: 400; font-size: 0.8rem; margin-top: 0.15rem; }
.sm-saison-jauge { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; margin: 0.9rem 0; }
.sm-saison-jauge span { display: block; height: 100%; background: var(--blue); }
.sm-details > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 700; }
.sm-details > summary::-webkit-details-marker { display: none; }
.sm-details > summary::after { content: "+"; color: var(--text-muted); font-size: 1.2rem; font-weight: 500; }
.sm-details[open] > summary::after { content: "−"; }
.sm-details[open] > summary { margin-bottom: 1rem; }

/* --- Hero des pages publiques --------------------------------------------- */
.sm-hero { position: relative; overflow: hidden; border-radius: 20px; border: 1px solid var(--border); padding: clamp(1.6rem, 4vw, 2.8rem); margin-bottom: 1.5rem;
  background: radial-gradient(120% 140% at 100% 0%, rgba(47, 107, 255, 0.22), transparent 55%), linear-gradient(180deg, #10141b, #0c0f14); }
.sm-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; margin: 0.4rem 0 0.8rem; }
.sm-hero p { color: var(--text-muted); max-width: 560px; font-size: 1.02rem; line-height: 1.6; margin: 0; }
.sm-hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.sm-hero-chiffres { display: flex; gap: 2.2rem; flex-wrap: wrap; margin-top: 1.8rem; }
.sm-hero-chiffres strong { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.sm-hero-chiffres span { color: var(--text-muted); font-size: 0.82rem; }

.sm-serveurs { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.sm-serveur { display: grid; gap: 1rem; padding: 1.25rem; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); color: var(--text); transition: border-color 200ms var(--ease), transform 200ms var(--ease); }
.sm-serveur:hover { color: var(--text); border-color: var(--border-active); transform: translateY(-2px); }
.sm-serveur-tete { display: flex; align-items: center; gap: 0.9rem; }
.sm-serveur-tete b { display: block; font-size: 1.05rem; }
.sm-serveur-chiffres { display: flex; gap: 1.4rem; color: var(--text-muted); font-size: 0.82rem; }
.sm-serveur-chiffres strong { color: var(--text); font-size: 1rem; display: block; }

/* --- Cartes de match (matchs en direct, page serveur) ---------------------- */
.sm-matchs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.sm-match { padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); }
.sm-match-tete { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-bottom: 0.9rem; font-size: 0.85rem; color: var(--text-muted); }
.sm-match-tete b { color: var(--text); }
.sm-match-corps { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 0.8rem; }
.sm-match-equipe { display: grid; gap: 0.3rem; font-size: 0.88rem; min-width: 0; }
.sm-match-equipe span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-match-equipe.is-b { text-align: right; }
.sm-match-equipe.is-gagnant span { color: var(--text); font-weight: 600; }
.sm-match-equipe:not(.is-gagnant) span { color: var(--text-muted); }
.sm-match-score { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; text-align: center; min-width: 4.5rem; }
.sm-match-score small { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.sm-direct { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--danger); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.sm-direct::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: sm-pulse 1.6s ease-in-out infinite; }
@keyframes sm-pulse { 50% { opacity: 0.35; } }

/* --- Fiche joueur ---------------------------------------------------------- */
.sm-profil-banniere { height: 140px; border-radius: 20px 20px 0 0; background: radial-gradient(120% 160% at 0% 0%, rgba(47, 107, 255, 0.35), transparent 60%), #111723; border: 1px solid var(--border); border-bottom: 0; }
.sm-profil { border: 1px solid var(--border); border-top: 0; border-radius: 0 0 20px 20px; background: var(--bg-card); padding: 0 1.6rem 1.5rem; margin-bottom: 1.25rem; }
.sm-profil-tete { display: flex; align-items: flex-end; gap: 1.1rem; margin-top: -42px; flex-wrap: wrap; }
.sm-profil-tete h1 { margin: 0 0 0.25rem; font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; }
.sm-forme { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.sm-forme span { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-size: 0.72rem; font-weight: 800; }
.sm-forme .is-v { background: rgba(63, 191, 135, 0.14); color: var(--success); }
.sm-forme .is-d { background: rgba(239, 93, 108, 0.14); color: var(--danger); }

@media (prefers-reduced-motion: reduce) {
  .sm-barre, .sm-direct::before { animation: none !important; }
  .sm-podium-carte, .sm-serveur { transition: none; }
  .sm-podium-carte:hover, .sm-serveur:hover { transform: none; }
}
@media (max-width: 640px) {
  .sm-page { padding: 1.6rem 1rem 3rem; }
  .sm-carte { padding: 1.1rem 1rem; }
}

/* En-tête : le texte se replie avant les actions */
.sm-tete > div:first-child { flex: 1 1 380px; min-width: 0; }

/* Aperçu d'une page pas encore publique (administrateurs seulement) */
.sm-apercu { display: flex; align-items: center; gap: 0.6rem; padding: 0.8rem 1rem; margin-bottom: 1.2rem; border-radius: var(--radius-sm); border: 1px dashed rgba(233, 162, 59, 0.45); background: rgba(233, 162, 59, 0.08); color: #f0c27a; font-size: 0.9rem; }
.sm-apercu svg { flex: none; }

/* Litiges ouverts (listes staff et admin) */
.sm-litige { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); color: var(--text); transition: border-color 160ms var(--ease), transform 160ms var(--ease); }
.sm-litige + .sm-litige { margin-top: 0.7rem; }
.sm-litige:hover { color: var(--text); border-color: rgba(233, 162, 59, 0.45); transform: translateY(-1px); }
.sm-litige-corps { display: grid; gap: 0.25rem; min-width: 0; }
.sm-litige-equipes { font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-litige-equipes b { color: var(--text-muted); font-weight: 600; margin: 0 0.25rem; }
@media (max-width: 640px) { .sm-litige { grid-template-columns: auto minmax(0, 1fr); } .sm-litige > .btn { grid-column: 1 / -1; justify-content: center; } }

/* Motif d'un match en attente du staff (page d'arbitrage) */
.sm-motif { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.9rem 1.05rem; margin-bottom: 1.1rem; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.03); }
.sm-motif svg { flex: none; margin-top: 0.1rem; }
.sm-motif > div { display: grid; gap: 0.3rem; font-size: 0.92rem; line-height: 1.5; }
.sm-motif span { color: var(--text-muted); }
.sm-motif.is-attente { border-color: rgba(47, 107, 255, 0.4); background: var(--accent-soft); }
.sm-motif.is-attente svg { color: var(--accent-text); }
.sm-motif.is-signalement { border-color: rgba(239, 93, 108, 0.4); background: rgba(239, 93, 108, 0.08); }
.sm-motif.is-signalement svg { color: var(--danger); }

/* Motif dans une liste de litiges */
.sm-litige-motif { display: inline-block; margin-left: 0.4rem; padding: 0.05rem 0.45rem; border-radius: 999px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 1px; }
.sm-litige-motif.is-validation { color: var(--accent-text); background: var(--accent-soft); }
.sm-litige-motif.is-desaccord { color: var(--warning); background: rgba(233, 162, 59, 0.12); }
.sm-litige-motif.is-signalement { color: var(--danger); background: rgba(239, 93, 108, 0.12); }

/* Choix avec explication (validation du score) */
.sm-radios-detail label { align-items: flex-start; }
.sm-radios-detail input { margin-top: 0.15rem; flex: none; }
.sm-radios-detail small { display: block; margin-top: 0.15rem; font-weight: 400; font-size: 0.8rem; line-height: 1.45; color: var(--text-muted); }
