/* Matchs et résultats : mise en page de base, à habiller par le thème du site. */
.lcm-matchs { display: grid; gap: 20px; }
.lcm-matchs .lcm-equipe { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: 0; }
.lcm-matchs .lcm-equipe__logo { width: 64px; height: 64px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.lcm-matchs .lcm-equipe__logo img { width: 100%; height: 100%; object-fit: contain; }
.lcm-matchs .lcm-equipe__nom { font-weight: 700; text-transform: uppercase; overflow-wrap: normal; word-break: normal; }
.lcm-match p { margin: 0; }
.lcm-match__score { font-weight: 700; white-space: nowrap; }

/* Affiches : cartes côte à côte. */
.lcm-matchs--affiches { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.lcm-matchs--affiches .lcm-match { padding: 24px; text-align: center; }
.lcm-matchs--affiches .lcm-match__equipes { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.lcm-matchs--affiches .lcm-equipe { flex-direction: column; text-align: center; }
.lcm-matchs--affiches .lcm-match__date { margin-top: 16px; font-size: .9em; opacity: .8; }
.lcm-matchs .lcm-compte { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.lcm-matchs .lcm-compte__bloc { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 48px; }
.lcm-matchs .lcm-compte__nombre { font-size: 1.6em; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.lcm-matchs .lcm-compte__unite { font-size: .7em; text-transform: uppercase; letter-spacing: .1em; }

/* Lignes : équipe, score, équipe. */
.lcm-matchs--lignes .lcm-match { display: grid; grid-template-columns: 1fr minmax(120px, auto) 1fr; align-items: center; gap: 16px; padding: 16px 24px; }
.lcm-matchs--lignes .lcm-match__cote--dom .lcm-equipe { flex-direction: row-reverse; justify-content: flex-start; text-align: right; }
.lcm-matchs--lignes .lcm-match__cote--dom { display: flex; justify-content: flex-end; }
.lcm-matchs--lignes .lcm-match__centre { text-align: center; }
.lcm-matchs--lignes .lcm-match__score { font-size: 1.5em; }
.lcm-matchs--lignes .lcm-match__date, .lcm-matchs--lignes .lcm-match__lieu { font-size: .8em; opacity: .8; }

/* Tableau par date. */
.lcm-matchs--tableau { display: block; }
.lcm-matchs__jour { margin: 32px 0 12px; font-size: 1.1em; }
.lcm-matchs__jour:first-child { margin-top: 0; }
.lcm-matchs--tableau > .lcm-matchs__journee:first-of-type .lcm-matchs__jour { margin-top: 0; }
.lcm-matchs__journee[hidden], .lcm-matchs--tableau tr[hidden], .lcm-matchs__aucun[hidden] { display: none; }
.lcm-matchs__filtre { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 12px; margin: 0 0 32px; }
.lcm-matchs__puce { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; padding: 14px 6px 12px; border: 0; background: rgba(127, 127, 127, .08); color: inherit; font: inherit; cursor: pointer; }
.lcm-matchs__puce-logo { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lcm-matchs__puce-logo img { width: 74%; height: 74%; object-fit: contain; }
.lcm-matchs__puce-nom { font-size: .8em; font-weight: 700; text-transform: uppercase; text-align: center; overflow-wrap: normal; }
.lcm-matchs__filtre--actif .lcm-matchs__puce[aria-pressed="false"] { opacity: .5; }
.lcm-matchs__puce[aria-pressed="true"] { outline: 2px solid currentColor; outline-offset: -2px; }
.lcm-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.lcm-matchs--tableau .lcm-match__heure { width: 70px; }
.lcm-matchs--tableau .lcm-match__lieu { width: 22%; text-align: right; }
.lcm-matchs--tableau .lcm-equipe__nom { overflow: hidden; text-overflow: ellipsis; }
.lcm-table td { padding: 10px 8px; border-bottom: 1px solid rgba(127, 127, 127, .25); vertical-align: middle; }
.lcm-matchs--tableau .lcm-equipe__logo { width: 36px; height: 36px; }
.lcm-matchs--tableau .lcm-match__dom .lcm-equipe { flex-direction: row-reverse; text-align: right; }
.lcm-matchs--tableau .lcm-match__score { text-align: center; width: 110px; }
.lcm-matchs--tableau .lcm-match__heure, .lcm-matchs--tableau .lcm-match__lieu { font-size: .85em; opacity: .8; white-space: nowrap; }

@media (max-width: 767px) {
	.lcm-matchs--lignes .lcm-match { grid-template-columns: 1fr auto 1fr; padding: 12px; gap: 8px; }
	.lcm-matchs--lignes .lcm-equipe, .lcm-matchs--lignes .lcm-match__cote--dom .lcm-equipe { flex-direction: column; text-align: center; }
	.lcm-matchs--lignes .lcm-equipe__logo { width: 44px; height: 44px; }
	.lcm-matchs--tableau .lcm-match__lieu, .lcm-matchs--tableau .lcm-match__heure { display: none; }
	.lcm-matchs--tableau .lcm-equipe__nom { overflow: visible; text-overflow: clip; }
	.lcm-matchs--tableau .lcm-equipe, .lcm-matchs--tableau .lcm-match__dom .lcm-equipe { flex-direction: column; text-align: center; gap: 4px; font-size: .85em; }
	.lcm-matchs--tableau .lcm-match__score { width: 70px; }
}

/* Score en lien vers la feuille de match. */
.lcm-match__lien { color: inherit; text-decoration: none; }
.lcm-matchs--lignes .lcm-match__lien { display: block; }
.lcm-match__lien:hover, .lcm-match__lien:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.lcm-match__quand { display: none; }

/* Événement de la saison (All Star Game…) : une ligne centrée à la place des deux équipes. */
.lcm-match--evenement .lcm-match__evenement { text-align: center; font-weight: 700; }
