/* Rencontre et matchs façon Ten'Up (page publique et saisie). Les couleurs de base (--carte, --trait…) viennent de chaque page. */
:root { --club: #d3f4e5; --badge: #ebff00; }
@media (prefers-color-scheme: dark) { :root { --club: #1d4636; --badge: #d9eb00; } }

.rencontre, .carte-seule { background: var(--carte); border: 1px solid var(--trait); border-radius: 14px; overflow: hidden; margin-bottom: 16px; }
.affiche { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; padding: 12px 12px 4px; }
.eq { padding: 10px 6px; border-radius: 10px; text-align: center; font-weight: 700; background: var(--fond); overflow-wrap: anywhere; }
.eq.club { background: var(--club); }
.total { display: flex; gap: 2px; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.total span { min-width: 38px; text-align: center; padding: 4px 6px; border-radius: 8px; background: var(--fond); }
.total span:first-child { background: var(--club); }
.sous-titre { padding: 0 12px 10px; font-size: 13px; color: var(--doux); text-align: center; }

.match { padding: 10px 12px 12px; border-top: 1px solid var(--trait); }
.carte-seule .match { border-top: 0; }
.mtitre { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-weight: 600; }
.mtitre .etat { font-size: 12px; font-weight: 500; color: var(--doux); }
.mtitre .liens { margin-left: auto; display: flex; gap: 4px; }
.live { color: var(--live); font-weight: 600; }
.live::before { content: "● "; animation: clignote 1.5s infinite; }
@keyframes clignote { 50% { opacity: .3; } }

.camp { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; }
.camp + .camp { margin-top: 4px; }
.camp.club { background: var(--club); }
.camp.gagnant .nomj { font-weight: 700; }
.joueurs { flex: 1; min-width: 0; display: grid; gap: 4px; }
.joueur { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pastille { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--trait); background: var(--carte);
  display: grid; place-items: center; font-size: 11px; color: var(--doux); }
.nomj { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { flex: none; background: var(--badge); color: #1d2320; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 4px; }
.sets { display: flex; gap: 2px; font-variant-numeric: tabular-nums; font-size: 18px; }
.sets span { width: 24px; text-align: center; color: var(--doux); }
.sets span.fort { color: var(--gagne); font-weight: 700; }
.sets sup { font-size: 10px; }
