/* Cresus365 – interface des pages de matchs et de compétitions */
:root {
	--c365x-ink: var(--wp--preset--color--contrast, #111318);
	--c365x-muted: var(--wp--preset--color--contrast-2, #5B6170);
	--c365x-line: #E3E1DB;
	--c365x-soft: var(--wp--preset--color--base-2, #F7F6F3);
	--c365x-paper: #fff;
	--c365x-home: #111318;
	--c365x-away: var(--wp--preset--color--accent, #188FF3);
	--c365x-win: #23B887;
	--c365x-draw: #B8BCC6;
	--c365x-loss: #FF6B6B;
	--c365x-radius: 14px;
}

.c365x-logo { display: inline-block; object-fit: contain; vertical-align: middle; flex: none; }
.c365x-source { font-size: .78rem; color: var(--c365x-muted); margin: .6rem 0 0; }
.c365x-small { font-size: .85rem; color: var(--c365x-muted); margin: .4rem 0; }
.c365x-note { font-size: .82rem; color: var(--c365x-muted); margin: 1rem 0 0; line-height: 1.5; }
.c365x-kicker { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .95rem; margin: 0 0 .75rem; }
.c365x-link { font-weight: 600; text-decoration: none; color: var(--c365x-away); }
.c365x-link:hover { text-decoration: underline; }

.c365x-card {
	background: var(--c365x-paper);
	border: 1px solid var(--c365x-line);
	border-radius: var(--c365x-radius);
	padding: 1.1rem 1.2rem;
	margin: 1rem 0;
}
.c365x-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0 0; }
.c365x-grid2 .c365x-card { margin: 0; }
@media (max-width: 680px) { .c365x-grid2 { grid-template-columns: 1fr; } }

/* ---------- En-tête de match ---------- */
.c365x-hero {
	background: var(--c365x-home);
	color: #fff;
	border-radius: 20px;
	padding: 1.2rem 1.4rem 1.4rem;
	margin: 0 0 1.6rem;
	background-image: radial-gradient(120% 90% at 100% 0%, rgba(24, 143, 243, .35), transparent 60%);
}
.c365x-hero-top { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1.2rem; }
.c365x-chip {
	display: inline-flex; align-items: center; gap: .3rem;
	font-size: .78rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px;
	background: var(--c365x-away); color: #fff; text-decoration: none;
}
.c365x-chip:hover { filter: brightness(1.1); color: #fff; }
.c365x-chip-ghost { background: rgba(255, 255, 255, .12); color: inherit; }
.c365x-card .c365x-chip-ghost, .c365x-kicker .c365x-chip-ghost { background: var(--c365x-soft); color: var(--c365x-muted); margin-left: auto; }
.c365x-status { margin-left: auto; font-size: .78rem; font-weight: 600; opacity: .85; display: inline-flex; align-items: center; gap: .4rem; }
.c365x-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c365x-draw); }
.c365x-status-next::before { background: var(--c365x-win); }
.c365x-status-live::before { background: var(--c365x-loss); animation: c365x-pulse 1.4s infinite; }
@keyframes c365x-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .c365x-status-live::before { animation: none; } }

.c365x-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 1rem; }
.c365x-team { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; }
.c365x-team .c365x-logo { width: 64px; height: 64px; background: #fff; border-radius: 50%; padding: 8px; box-sizing: border-box; }
.c365x-team-name { font-weight: 800; font-size: 1.15rem; line-height: 1.2; }
.c365x-team-meta { font-size: .8rem; opacity: .75; }
.c365x-center { display: flex; flex-direction: column; align-items: center; padding-top: .9rem; min-width: 7rem; }
.c365x-time, .c365x-score { font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.c365x-score span { opacity: .5; margin: 0 .3rem; }
.c365x-date { font-size: .82rem; opacity: .75; margin-top: .45rem; text-align: center; }
.c365x-hero-meta { text-align: center; font-size: .82rem; opacity: .7; margin-top: 1rem; }
.c365x-hero .c365x-form { justify-content: center; }
@media (max-width: 560px) {
	.c365x-hero { padding: 1rem; }
	.c365x-team .c365x-logo { width: 48px; height: 48px; padding: 6px; }
	.c365x-team-name { font-size: .95rem; }
	.c365x-time, .c365x-score { font-size: 1.9rem; }
	.c365x-center { min-width: 5rem; }
	.c365x-hero .c365x-r { width: 16px; height: 16px; font-size: .6rem; }
}

/* ---------- Probabilités ---------- */
.c365x-prob { margin: 0 0 .5rem; }
.c365x-prob-compact { margin: 1.2rem 0 0; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .15); }
.c365x-prob-title { display: block; font-size: .75rem; opacity: .7; margin-bottom: .45rem; text-align: center; }
.c365x-prob-bar { display: flex; gap: 3px; border-radius: 10px; overflow: hidden; }
.c365x-prob-bar > span { display: flex; flex-direction: column; justify-content: center; padding: .55rem .7rem; min-width: 0; color: #fff; font-size: .9rem; line-height: 1.2; }
.c365x-prob-bar small { font-size: .72rem; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c365x-prob-h { background: var(--c365x-home); }
.c365x-prob-n { background: var(--c365x-draw); color: var(--c365x-ink) !important; text-align: center; align-items: center; }
.c365x-prob-a { background: var(--c365x-away); text-align: right; align-items: flex-end; }
.c365x-hero .c365x-prob-h { background: #fff; color: var(--c365x-home); }
.c365x-prob-compact .c365x-prob-bar > span { padding: .35rem .6rem; font-size: .82rem; }
.c365x-prob-legend { display: flex; justify-content: space-between; font-size: .72rem; opacity: .7; margin-top: .35rem; }

/* ---------- Comparaisons face à face ---------- */
.c365x-duel-head { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .6rem; margin-bottom: .2rem; border-bottom: 1px solid var(--c365x-line); }
.c365x-th { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .9rem; }
.c365x-th.c365x-a { color: var(--c365x-away); }
.c365x-duel-row { display: grid; grid-template-columns: minmax(3.2rem, auto) 1fr minmax(3.2rem, auto); align-items: center; gap: .8rem; padding: .55rem 0; border-bottom: 1px solid var(--c365x-soft); }
.c365x-duel-row:last-of-type { border-bottom: 0; }
.c365x-v { font-weight: 600; font-variant-numeric: tabular-nums; font-size: .92rem; color: var(--c365x-muted); white-space: nowrap; }
.c365x-v.c365x-a { text-align: right; }
.c365x-v.c365x-best { color: var(--c365x-ink); font-weight: 800; }
.c365x-v.c365x-a.c365x-best { color: var(--c365x-away); }
.c365x-mid { display: flex; flex-direction: column; align-items: center; gap: .3rem; min-width: 0; }
.c365x-lbl { font-size: .8rem; color: var(--c365x-muted); text-align: center; }
.c365x-track { display: flex; width: 100%; gap: 4px; height: 6px; }
.c365x-half { flex: 1; background: var(--c365x-soft); border-radius: 3px; display: flex; overflow: hidden; }
.c365x-half-h { justify-content: flex-end; }
.c365x-fill { display: block; height: 100%; border-radius: 3px; }
.c365x-fill-h { background: var(--c365x-home); }
.c365x-fill-a { background: var(--c365x-away); }
.c365x-row-plain .c365x-v { color: var(--c365x-ink); }
@media (max-width: 480px) {
	.c365x-card { padding: .9rem; }
	.c365x-duel-row { gap: .5rem; grid-template-columns: minmax(2.6rem, auto) 1fr minmax(2.6rem, auto); }
	.c365x-v { font-size: .82rem; }
	.c365x-duel-row .c365x-form { flex-wrap: wrap; max-width: 4.6rem; }
}

/* ---------- Forme ---------- */
.c365x-form { display: inline-flex; gap: 3px; }
.c365x-r { width: 20px; height: 20px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; font-size: .68rem; font-weight: 800; color: #fff; }
.c365x-r-v { background: var(--c365x-win); }
.c365x-r-n { background: var(--c365x-draw); color: var(--c365x-ink); }
.c365x-r-d { background: var(--c365x-loss); }

/* ---------- Chiffres clés ---------- */
.c365x-facts { margin: 1rem 0 1.4rem; }
.c365x-facts .c365x-kicker { font-size: 1.05rem; }
.c365x-facts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .7rem; }
.c365x-fact { background: var(--c365x-soft); border-radius: 12px; padding: .85rem 1rem; font-size: .92rem; line-height: 1.45; border-left: 4px solid var(--c365x-draw); }
.c365x-fact-h { border-left-color: var(--c365x-home); }
.c365x-fact-a { border-left-color: var(--c365x-away); }

/* ---------- Domicile / extérieur ---------- */
.c365x-big { font-size: 1.25rem; font-weight: 800; margin: 0 0 .5rem; font-variant-numeric: tabular-nums; }
.c365x-wdl { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; background: var(--c365x-soft); }
.c365x-wdl > span { display: block; height: 100%; }
.c365x-wdl-v { background: var(--c365x-win); }
.c365x-wdl-n { background: var(--c365x-draw); }
.c365x-wdl-d { background: var(--c365x-loss); }
.c365x-wdl-h { background: var(--c365x-home); }
.c365x-wdl-a { background: var(--c365x-away); }
.c365x-results { list-style: none; margin: .6rem 0 0; padding: 0; }
.c365x-results li { display: flex; gap: .6rem; align-items: center; font-size: .88rem; padding: .3rem 0; border-top: 1px solid var(--c365x-soft); }
.c365x-results b { display: inline-block; min-width: 2.6rem; text-align: center; border-radius: 5px; padding: .05rem .3rem; color: #fff; font-variant-numeric: tabular-nums; }
.c365x-res-v b { background: var(--c365x-win); }
.c365x-res-n b { background: var(--c365x-draw); color: var(--c365x-ink); }
.c365x-res-d b { background: var(--c365x-loss); }

/* ---------- Minutes ---------- */
.c365x-cols { display: flex; gap: 6px; align-items: flex-end; height: 140px; padding-bottom: 1.4rem; position: relative; }
.c365x-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.c365x-colbars { flex: 1; width: 100%; display: flex; gap: 2px; align-items: flex-end; }
.c365x-colbars > span { flex: 1; position: relative; min-height: 2px; border-radius: 3px 3px 0 0; }
.c365x-colbars i { position: absolute; top: -1.15rem; left: 0; right: 0; text-align: center; font-style: normal; font-size: .66rem; color: var(--c365x-muted); }
.c365x-cb-f { background: var(--c365x-win); }
.c365x-cb-a { background: var(--c365x-loss); }
.c365x-col-l { font-size: .66rem; color: var(--c365x-muted); margin-top: .3rem; white-space: nowrap; }
.c365x-legend { font-size: .78rem; color: var(--c365x-muted); display: flex; align-items: center; gap: .35rem; margin: .2rem 0 .8rem; }
.c365x-dot-f, .c365x-dot-a { width: 10px; height: 10px; border-radius: 3px; display: inline-block; background: var(--c365x-win); }
.c365x-dot-a { background: var(--c365x-loss); margin-left: .6rem; }
.c365x-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: 0; }
.c365x-tiles div { background: var(--c365x-soft); border-radius: 10px; padding: .5rem .7rem; }
.c365x-tiles dt { font-size: .72rem; color: var(--c365x-muted); }
.c365x-tiles dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- Joueurs ---------- */
.c365x-players { display: grid; gap: .5rem; margin: 1rem 0 0; }
.c365x-player { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; background: var(--c365x-paper); border: 1px solid var(--c365x-line); border-radius: 12px; padding: .6rem .8rem; border-left: 4px solid var(--c365x-draw); }
.c365x-player-h { border-left-color: var(--c365x-home); }
.c365x-player-a { border-left-color: var(--c365x-away); }
.c365x-recap .c365x-player { border-left-width: 1px; }
.c365x-pname { flex: 1 1 10rem; font-weight: 700; display: flex; flex-direction: column; line-height: 1.25; }
.c365x-pname small { font-weight: 400; font-size: .78rem; color: var(--c365x-muted); }
.c365x-pill { font-size: .78rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; background: var(--c365x-ink); color: #fff; white-space: nowrap; }
.c365x-pill-soft { background: var(--c365x-soft); color: var(--c365x-ink); }
.c365x-pill-ghost { background: transparent; color: var(--c365x-muted); font-weight: 500; }
.c365x-rating { width: 2.4rem; height: 2.4rem; border-radius: 10px; background: var(--c365x-win); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; }

/* ---------- Confrontations ---------- */
.c365x-h2h-sum { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; margin-bottom: .6rem; }
.c365x-h2h-n { font-size: 2rem; font-weight: 800; line-height: 1; display: flex; flex-direction: column; gap: .25rem; }
.c365x-h2h-n small { font-size: .75rem; font-weight: 500; color: var(--c365x-muted); }
.c365x-h2h-n.c365x-x { text-align: center; color: var(--c365x-muted); }
.c365x-h2h-n.c365x-a { text-align: right; color: var(--c365x-away); }
.c365x-wdl-team { margin-bottom: .8rem; }
.c365x-h2h { list-style: none; margin: 0; padding: 0; }
.c365x-h2h li { display: grid; grid-template-columns: 6.5rem 1fr auto; gap: .7rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--c365x-soft); font-size: .9rem; }
.c365x-h2h-date { font-variant-numeric: tabular-nums; color: var(--c365x-muted); display: flex; flex-direction: column; font-size: .82rem; }
.c365x-h2h-date small { font-size: .7rem; }
.c365x-h2h-m { display: grid; grid-template-columns: 1fr auto 1fr; gap: .6rem; align-items: center; }
.c365x-h2h-m span:last-child { text-align: right; }
.c365x-h2h-m b { background: var(--c365x-soft); border-radius: 6px; padding: .15rem .5rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.c365x-h2h-m .c365x-win { font-weight: 700; }
.c365x-h2h-x { color: var(--c365x-muted); font-size: .72rem; }
@media (max-width: 560px) {
	.c365x-h2h li { grid-template-columns: 1fr; gap: .25rem; }
	.c365x-h2h-date { flex-direction: row; gap: .5rem; }
}

/* ---------- Absences ---------- */
.c365x-inj { list-style: none; margin: 0; padding: 0; }
.c365x-inj li { display: flex; justify-content: space-between; gap: .6rem; align-items: center; padding: .4rem 0; border-top: 1px solid var(--c365x-soft); font-size: .9rem; }
.c365x-tag { font-size: .72rem; font-weight: 600; padding: .15rem .5rem; border-radius: 999px; white-space: nowrap; }
.c365x-tag-out { background: #FFE5E5; color: #B42323; }
.c365x-tag-q { background: #FFF4CC; color: #7A5B00; }

/* ---------- Compositions ---------- */
.c365x-xi { margin: .4rem 0 0; padding-left: 1.4rem; font-size: .9rem; columns: 1; }
.c365x-xi li { padding: .15rem 0; }
.c365x-subs summary { cursor: pointer; font-size: .85rem; font-weight: 600; margin-top: .6rem; }
.c365x-wait { background: var(--c365x-soft); border-style: dashed; }

/* ---------- Bilan ---------- */
.c365x-timeline { list-style: none; margin: 0 0 1rem; padding: 0; }
.c365x-timeline li { display: flex; gap: .6rem; align-items: flex-start; padding: .4rem 0; border-top: 1px solid var(--c365x-soft); font-size: .9rem; }
.c365x-timeline li > span:last-child { display: flex; flex-direction: column; }
.c365x-timeline small { color: var(--c365x-muted); font-size: .74rem; }
.c365x-tl-min { min-width: 2.8rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.c365x-tl-a .c365x-tl-min { color: var(--c365x-away); }

/* ---------- Listes de matchs ---------- */
.c365x-mcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .7rem; margin: 1rem 0 1.6rem; }
.c365x-mcard { display: flex; flex-direction: column; gap: .5rem; background: var(--c365x-paper); border: 1px solid var(--c365x-line); border-radius: var(--c365x-radius); padding: .8rem 1rem; color: var(--c365x-ink); text-decoration: none; transition: border-color .15s; }
a.c365x-mcard:hover { border-color: var(--c365x-away); color: var(--c365x-ink); }
a.c365x-mcard:focus-visible { outline: 3px solid var(--c365x-away); outline-offset: 2px; }
.c365x-mc-date { font-size: .76rem; color: var(--c365x-muted); text-transform: capitalize; }
.c365x-mc-teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: .6rem; align-items: center; font-weight: 700; font-size: .92rem; }
.c365x-mc-teams > span { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.c365x-mc-teams > span:last-child { justify-content: flex-end; text-align: right; }
.c365x-mc-time, .c365x-mc-score { background: var(--c365x-soft); border-radius: 8px; padding: .2rem .55rem; font-variant-numeric: tabular-nums; }
.c365x-mc-score { background: var(--c365x-ink); color: #fff; }
.c365x-mc-cta { font-size: .78rem; font-weight: 600; color: var(--c365x-away); }

/* ---------- Classement ---------- */
.c365x-table-wrap { overflow-x: auto; border: 1px solid var(--c365x-line); border-radius: var(--c365x-radius); background: var(--c365x-paper); margin: 1rem 0 0; }
.c365x-table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; margin: 0; }
.c365x-table th, .c365x-table td { padding: .55rem .5rem; text-align: center; border: 0; border-bottom: 1px solid var(--c365x-soft); white-space: nowrap; }
.c365x-table th { font-size: .74rem; color: var(--c365x-muted); font-weight: 600; background: var(--c365x-soft); }
.c365x-table .c365x-tl { text-align: left; }
.c365x-tteam { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.c365x-table tbody tr:hover { background: var(--c365x-soft); }
.c365x-rank { display: inline-flex; width: 1.6rem; height: 1.6rem; align-items: center; justify-content: center; border-radius: 6px; font-weight: 700; font-size: .8rem; }
.c365x-rank { background: var(--c365x-soft); }
.c365x-table tbody tr:first-child .c365x-rank { background: var(--c365x-ink); color: #fff; }
.c365x-table .c365x-r { width: 17px; height: 17px; font-size: .6rem; }
@media (max-width: 560px) { .c365x-hide-sm { display: none; } }

/* ---------- Buteurs ---------- */
.c365x-scorers { list-style: none; counter-reset: sc; margin: 1rem 0; padding: 0; display: grid; gap: .45rem; }
.c365x-scorers li { counter-increment: sc; display: flex; align-items: center; gap: .6rem; background: var(--c365x-paper); border: 1px solid var(--c365x-line); border-radius: 12px; padding: .55rem .8rem; }
.c365x-scorers li::before { content: counter(sc); width: 1.6rem; font-weight: 800; color: var(--c365x-muted); font-variant-numeric: tabular-nums; }
.c365x-scorers li:first-child::before { color: var(--c365x-away); }

/* ---------- Page compétition et maillage ---------- */
.c365x-anchors { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.4rem; }
.c365x-anchors a { font-size: .85rem; font-weight: 600; padding: .4rem .9rem; border-radius: 999px; background: var(--c365x-paper); border: 1px solid var(--c365x-line); text-decoration: none; color: var(--c365x-ink); }
.c365x-anchors a:hover { border-color: var(--c365x-away); color: var(--c365x-away); }
.c365x-related { margin: 2.4rem 0 1.4rem; padding-top: 1.4rem; border-top: 2px solid var(--c365x-ink); }
.c365x-related h2 { margin-top: 0; }

/* Couleurs des liens : priorité sur les styles du thème */
a.c365x-chip, a.c365x-chip:visited, a.c365x-chip:hover { color: #fff !important; text-decoration: none !important; }
a.c365x-mcard, a.c365x-mcard:visited, a.c365x-mcard:hover { color: var(--c365x-ink) !important; text-decoration: none !important; }
.c365x-anchors a, .c365x-anchors a:visited { color: var(--c365x-ink) !important; text-decoration: none !important; }

/* ---------- Matchs du jour (accueil) ---------- */
.c365x-today-day { font-weight: 800; font-size: 1.05rem; margin: 0 0 .4rem; }
.c365x-today .c365x-mc-date { display: none; }
.c365x-today-comp { margin: 1.2rem 0 0; }
.c365x-today-head { font-weight: 700; margin: 0 0 -.4rem; }
.c365x-today-head a, .c365x-today-head a:visited { color: var(--c365x-ink) !important; text-decoration: none !important; border-bottom: 2px solid var(--c365x-away); }
.c365x-today .c365x-mcards { margin-bottom: .4rem; }

/* ---------- Fil d'Ariane ---------- */
.c365x-crumbs { margin: 0 0 1rem; font-size: .82rem; color: var(--c365x-muted); }
.c365x-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.c365x-crumbs li { display: inline-flex; align-items: center; gap: .3rem; }
.c365x-crumbs li + li::before { content: "›"; color: var(--c365x-draw); }
.c365x-crumbs a, .c365x-crumbs a:visited { color: var(--c365x-muted) !important; text-decoration: none !important; }
.c365x-crumbs a:hover { color: var(--c365x-away) !important; }

/* ---------- Pages équipes ---------- */
a.c365x-tlink, a.c365x-tlink:visited { color: inherit !important; text-decoration: underline dotted !important; text-decoration-thickness: 1px !important; text-underline-offset: 3px; border: 0 !important; }
.c365x-pname > a.c365x-tlink { align-self: flex-start; }
a.c365x-tlink:hover { color: var(--c365x-away) !important; }
.c365x-hero a.c365x-tlink { text-decoration-color: rgba(255, 255, 255, .45) !important; }
.c365x-team-id { display: flex; align-items: center; gap: 1.2rem; }
.c365x-team-id .c365x-logo { width: 88px; height: 88px; background: #fff; border-radius: 50%; padding: 10px; box-sizing: border-box; }
.c365x-team-big { font-size: 2rem; font-weight: 800; line-height: 1.1; margin: 0 0 .5rem; letter-spacing: -.01em; }
.c365x-team-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem 1.4rem; margin: 1.3rem 0 0; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .15); }
.c365x-team-facts dt { font-size: .72rem; opacity: .65; }
.c365x-team-facts dd { margin: .1rem 0 0; font-weight: 600; font-size: .92rem; }
.c365x-lead { font-size: 1.05rem; line-height: 1.6; margin: 0 0 1.2rem; }
.c365x-tiles-6 { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); margin: 1rem 0; }
.c365x-tiles-6 dd { font-size: 1.3rem; }
.c365x-table tr.c365x-me { background: #EAF4FE; }
.c365x-table tr.c365x-me td { font-weight: 700; }
.c365x-results-team li { flex-wrap: wrap; }
.c365x-results-team small { margin-left: auto; color: var(--c365x-muted); font-size: .76rem; }
.c365x-squad { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1rem 0 0; }
.c365x-squad .c365x-card { margin: 0; }
.c365x-squad-list { list-style: none; margin: 0; padding: 0; }
.c365x-squad-list li { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; border-top: 1px solid var(--c365x-soft); font-size: .9rem; }
.c365x-squad-list small { margin-left: auto; color: var(--c365x-muted); font-size: .76rem; white-space: nowrap; }
.c365x-num { width: 1.9rem; height: 1.6rem; border-radius: 6px; background: var(--c365x-soft); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .78rem; font-variant-numeric: tabular-nums; flex: none; }
.c365x-sub { display: block; color: var(--c365x-muted); font-size: .76rem; }
.c365x-tag-n { background: var(--c365x-soft); color: var(--c365x-muted); }
.c365x-teamgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; margin: 1rem 0; }
.c365x-teamtile { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; background: var(--c365x-paper); border: 1px solid var(--c365x-line); border-radius: 12px; font-weight: 600; font-size: .9rem; }
a.c365x-teamtile, a.c365x-teamtile:visited { color: var(--c365x-ink) !important; text-decoration: none !important; }
a.c365x-teamtile:hover { border-color: var(--c365x-away); }
.c365x-mc-live { background: var(--c365x-loss) !important; color: #fff; }
@media (max-width: 560px) {
	.c365x-team-id .c365x-logo { width: 64px; height: 64px; }
	.c365x-team-big { font-size: 1.5rem; }
}

/* ---------- Fiches joueurs ---------- */
.c365x-pinit { width: 88px; height: 88px; border-radius: 50%; background: var(--c365x-away); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 2.4rem; font-weight: 800; flex: none; }
.c365x-team-sub { margin: 0; font-size: 1rem; opacity: .85; }
.c365x-scorers li.c365x-me { border-color: var(--c365x-away); background: #EAF4FE; }
@media (max-width: 560px) { .c365x-pinit { width: 64px; height: 64px; font-size: 1.8rem; } }

/* 0.9.6 — modèle de probabilités, espacements */
.c365x-source + h2, .c365x-source + .wp-block-heading, .c365x-card + h2, .c365x-grid2 + h2, .c365x-note + h2 { margin-top: 2.2rem; }
p.c365x-source { margin-bottom: 1.4rem; }
.c365x-model .c365x-prob { margin-bottom: 1.2rem; }
.c365x-model-grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 1rem; }
.c365x-model-grid > div { background: var(--c365x-soft, #f6f5f2); border-radius: 10px; padding: .9rem 1rem; }
.c365x-xg { display: flex; align-items: baseline; gap: .5rem; margin: .3rem 0 0; }
.c365x-xg span { font-size: 1.6rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.c365x-xg small { font-size: .85rem; color: var(--c365x-muted); }
.c365x-meter { display: grid; grid-template-columns: 1fr auto; gap: .25rem .5rem; margin: .45rem 0 .7rem; font-size: .9rem; }
.c365x-meter-v { font-weight: 700; font-variant-numeric: tabular-nums; }
.c365x-meter-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: rgba(0,0,0,.08); overflow: hidden; }
.c365x-meter-bar span { display: block; height: 100%; background: currentColor; opacity: .75; }
ol.c365x-scores { list-style: none; margin: .3rem 0 0; padding: 0; }
ol.c365x-scores li { display: flex; justify-content: space-between; padding: .3rem 0; border-bottom: 1px solid rgba(0,0,0,.07); font-variant-numeric: tabular-nums; }
ol.c365x-scores li:last-child { border-bottom: 0; }
ol.c365x-scores b { font-size: 1.05rem; }
@media (max-width: 760px) { .c365x-model-grid { grid-template-columns: 1fr; } }
.c365-transparence { margin-top: 1.5rem; }
.c365x-xg .c365x-a { color: var(--c365x-away); }

/* 0.9.9 — contexte du match */
dl.c365x-ctx { margin: .4rem 0 0; display: grid; gap: .7rem; }
dl.c365x-ctx > div { display: grid; gap: .15rem; }
dl.c365x-ctx dt { font-size: .78rem; color: var(--c365x-muted); font-weight: 600; }
dl.c365x-ctx dd { margin: 0; font-size: .95rem; }
dl.c365x-ctx dd small { display: block; font-size: .8rem; color: var(--c365x-muted); margin-top: .1rem; }
dl.c365x-ctx .c365x-ctx-big { font-size: 1.6rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
dl.c365x-ctx .c365x-tag { display: inline-block; padding: .05rem .4rem; border-radius: 5px; font-weight: 700; font-size: .85rem; color: #fff; }
dl.c365x-ctx .c365x-res-v { background: var(--c365x-win); }
dl.c365x-ctx .c365x-res-n { background: var(--c365x-draw); }
dl.c365x-ctx .c365x-res-d { background: var(--c365x-loss); }

/* 0.9.11 — onglets classement, tendances, buteurs compacts */
.c365x-tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.c365x-tablist { display: inline-flex; gap: 4px; padding: 4px; background: var(--c365x-soft); border-radius: 10px; margin: .4rem 0 0; }
.c365x-tablist label { padding: .4rem .9rem; border-radius: 7px; font-size: .88rem; font-weight: 600; cursor: pointer; color: var(--c365x-muted); }
.c365x-tab { display: none; }
.c365x-tabs > input:nth-of-type(1):checked ~ .c365x-tab-g,
.c365x-tabs > input:nth-of-type(2):checked ~ .c365x-tab-h,
.c365x-tabs > input:nth-of-type(3):checked ~ .c365x-tab-a { display: block; }
.c365x-tabs > input:nth-of-type(1):checked ~ .c365x-tablist label:nth-child(1),
.c365x-tabs > input:nth-of-type(2):checked ~ .c365x-tablist label:nth-child(2),
.c365x-tabs > input:nth-of-type(3):checked ~ .c365x-tablist label:nth-child(3) { background: var(--c365x-paper); color: var(--c365x-ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.c365x-tabs > input:focus-visible ~ .c365x-tablist { outline: 2px solid var(--c365x-away); outline-offset: 2px; }
.c365x-sortable th[data-sort] { cursor: pointer; user-select: none; line-height: 1.25; }
.c365x-sortable th[data-sort]:hover { color: var(--c365x-ink); }
.c365x-sortable th[aria-sort="descending"]::after { content: " ↓"; }
.c365x-sortable th[aria-sort="ascending"]::after { content: " ↑"; }
.c365x-sortable th[aria-sort] { color: var(--c365x-ink); }
.c365x-scorers-t .c365x-pname { display: flex; flex-direction: column; font-weight: 600; }
.c365x-scorers-t .c365x-pname small { font-weight: 400; font-size: .78rem; color: var(--c365x-muted); }
.c365x-scorers-t td, .c365x-scorers-t th { padding-top: .45rem; padding-bottom: .45rem; }
.c365x-sortable th:first-child, .c365x-sortable td:first-child { position: sticky; left: 0; z-index: 1; background: var(--c365x-paper); }
.c365x-sortable thead th:first-child { background: var(--c365x-soft); }
