/* AFK Players Abroad – charte afrik-foot (Blocksy : palette 1 = vert, 2 = lime) */
.afk-pa {
	--afk-green: var(--theme-palette-color-1, #638f30);
	--afk-lime: #c9d84a;
	--afk-orange: #f5a623;
	--afk-bg: #1a1a1a;
	--afk-card: #1f2226;
	--afk-line: #2e3238;
	--afk-line-2: #3a3f46;
	--afk-text: #ffffff;
	--afk-soft: #e6e8eb;
	--afk-muted: #a9b0b8;
	color: var(--afk-text);
	font-size: 15px;
	line-height: 1.45;
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin: 0 0 32px;
}
.afk-pa * { box-sizing: border-box; }
.afk-pa h2 { margin: 8px 0 4px; font-size: 22px; font-weight: 800; line-height: 1.25; color: var(--afk-text); }
.afk-pa small { display: block; font-size: 12px; color: var(--afk-muted); }
.afk-pa-sub { margin: 0; font-size: 16px; font-weight: 600; color: var(--afk-lime); }
.afk-pa-updated { margin: -18px 0 0; font-size: 13px; color: var(--afk-muted); }
.afk-pa-empty { padding: 16px; background: var(--afk-card); border-radius: 8px; }
.afk-pa-lbl { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--afk-muted); font-weight: 600; }

/* Autres sélections */
.afk-pa-nations { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.afk-pa-nation { padding: 10px 14px; border-radius: 8px; border: 1px solid var(--afk-line-2); color: var(--afk-text); text-decoration: none; font-weight: 700; font-size: 14px; }
.afk-pa-nation:hover { border-color: var(--afk-lime); color: var(--afk-text); }
.afk-pa-nation.is-current { background: #fff; color: #14171a; border-color: #fff; }

/* KPI */
.afk-pa-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.afk-pa-kpi { background: var(--afk-card); border: 1px solid var(--afk-line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.afk-pa-kpi-v { font-size: 30px; font-weight: 800; }

/* Filtres + pays */
.afk-pa-bar { display: flex; flex-direction: column; gap: 10px; }
.afk-pa-row { display: flex; flex-wrap: wrap; gap: 8px; }
.afk-pa-fbtn { font: inherit; font-size: 13px; font-weight: 600; padding: 10px 14px; min-height: 44px; border-radius: 8px; border: 1px solid var(--afk-line-2); background: #14171a; color: var(--afk-soft); cursor: pointer; }
.afk-pa-fbtn[aria-pressed="true"] { background: var(--afk-green); border-color: var(--afk-green); color: #fff; }
.afk-pa-chip { display: inline-flex; gap: 6px; align-items: center; padding: 8px 12px; border-radius: 999px; background: var(--afk-card); border: 1px solid var(--afk-line); color: var(--afk-text); text-decoration: none; font-size: 13px; font-weight: 600; }
.afk-pa-chip:hover { border-color: var(--afk-lime); color: var(--afk-text); }
.afk-pa-chip em { font-style: normal; color: var(--afk-lime); }
.afk-pa-chip.is-empty { display: none; }

/* Tops */
.afk-pa-tops { display: flex; flex-direction: column; gap: 12px; }
.afk-pa-tops-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.afk-pa-top { margin: 0; min-height: 0; background: var(--afk-card); border: 1px solid var(--afk-line); border-top: 3px solid var(--afk-lime); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.afk-pa-top-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.afk-pa-top-h { font-size: 14px; font-weight: 700; color: var(--afk-lime); }

/* Groupes et lignes joueurs */
.afk-pa-group { display: flex; flex-direction: column; gap: 8px; scroll-margin-top: calc(var(--afk-pa-sticky-top, 0px) + 140px); }
.afk-pa-count { font-size: 14px; color: var(--afk-muted); font-weight: 600; }
.afk-pa-thead { display: flex; gap: 16px; padding: 0 12px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--afk-muted); font-weight: 600; }
.afk-pa-thead span:nth-child(1), .afk-pa-pmain .afk-pa-who { flex: 1 1 260px; }
.afk-pa-thead span:nth-child(2), .afk-pa-pmain .afk-pa-last { flex: 1 1 250px; }
.afk-pa-thead span:nth-child(3), .afk-pa-pmain .afk-pa-30 { flex: 0 1 220px; }
.afk-pa-thead span:nth-child(4), .afk-pa-pmain .afk-pa-tgl { width: 96px; flex: 0 0 96px; }
.afk-pa-p { background: var(--afk-card); border: 1px solid var(--afk-line); border-radius: 8px; }
.afk-pa-p.is-hidden { display: none; }
.afk-pa-pmain { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 10px 12px; cursor: pointer; list-style: none; }
.afk-pa-pmain::-webkit-details-marker { display: none; }
.afk-pa-pmain:focus-visible { outline: 2px solid var(--afk-lime); outline-offset: 2px; border-radius: 8px; }
.afk-pa-who { display: flex; gap: 10px; align-items: center; min-width: 0; }
.afk-pa-who b, .afk-pa-name { display: block; font-size: 15px; font-weight: 700; color: var(--afk-text); }
.afk-pa-photo { object-fit: cover; padding: 0; border: 0; max-width: none; }
.afk-pa-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--afk-line); color: var(--afk-lime); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.afk-pa-last { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.afk-pa-30 { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--afk-soft); }
.afk-pa-tgl { display: inline-flex; gap: 6px; align-items: center; justify-content: center; min-height: 44px; margin-left: auto; padding: 0 10px; border-radius: 8px; border: 1px solid var(--afk-line-2); background: #14171a; color: var(--afk-soft); font-size: 12px; font-weight: 700; }
.afk-pa-p[open] .afk-pa-tgl svg { transform: rotate(180deg); }
.afk-pa-det { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; padding: 12px 14px 14px; border-top: 1px solid var(--afk-line); font-size: 13px; }
.afk-pa-det > div { display: flex; flex-direction: column; gap: 4px; }

.afk-pa-pill { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.afk-pa-pill--start { background: var(--afk-green); color: #fff; }
.afk-pa-pill--sub { background: var(--afk-lime); color: #14171a; }
.afk-pa-pill--bench { background: var(--afk-line-2); color: var(--afk-soft); }
.afk-pa-pill--out { color: var(--afk-orange); border: 1px solid var(--afk-orange); }
.afk-pa-pill { display: inline-flex; gap: 5px; align-items: center; }
.afk-pa-pill--injured { background: #4a1f22; color: #ff8f8f; border: 1px solid #ff8f8f; }
.afk-pa-pill--suspended { background: #3d3510; color: #f5d34f; border: 1px solid #f5d34f; }
.afk-pa-pill--ineligible { background: transparent; color: #c7ccd2; border: 1px solid #6b737c; }
.afk-pa-abs-ret { font-size: 12px; color: #c7ccd2; }
.afk-pa-ic { width: 14px; height: 14px; flex-shrink: 0; color: var(--afk-muted); }
.afk-pa-pill .afk-pa-ic { width: 12px; height: 12px; color: currentColor; }
.afk-pa-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.afk-pa-mini { font-size: 13px; font-weight: 700; color: var(--afk-soft); display: inline-flex; align-items: center; gap: 4px; }
.afk-pa-rate { font-weight: 800; font-size: 13px; padding: 3px 7px; border-radius: 6px; color: #14171a; }
.afk-pa-rate--hi { background: #7fd15a; }
.afk-pa-rate--mid { background: var(--afk-lime); }
.afk-pa-rate--lo { background: var(--afk-orange); }
.afk-pa-rate--none { background: var(--afk-line-2); color: var(--afk-soft); }
.afk-pa-wl { font-weight: 700; font-size: 12px; padding: 1px 5px; border-radius: 4px; color: #14171a; }
.afk-pa-wl--w { background: #7fd15a; }
.afk-pa-wl--d { background: #c9cdd2; }
.afk-pa-wl--l { background: var(--afk-orange); }

.afk-pa-more { font: inherit; font-size: 13px; font-weight: 700; min-height: 44px; border-radius: 8px; border: 1px dashed #4a5058; background: transparent; color: var(--afk-lime); cursor: pointer; }
.afk-pa-other-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.afk-pa-other-list .afk-pa-p { padding: 10px 12px; }
.afk-pa-note { margin: 0; font-size: 14px; color: var(--afk-muted); }
.afk-pa-method { margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--afk-line); font-size: 12px; line-height: 1.6; color: var(--afk-muted); }

/* Mobile : barre de filtres collante et défilante */
@media (max-width: 640px) {
	.afk-pa-bar { position: sticky; top: var(--afk-pa-sticky-top, 0px); z-index: 20; background: var(--afk-bg); margin: 0 -16px; padding: 10px 16px; border-bottom: 1px solid var(--afk-line); }
	.afk-pa-bar .afk-pa-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
	.afk-pa-bar .afk-pa-row::-webkit-scrollbar { display: none; }
	.afk-pa-bar .afk-pa-row > * { flex: 0 0 auto; scroll-snap-align: start; }
	.afk-pa-fbtn { padding: 8px 12px; }
	.afk-pa-chip { padding: 7px 11px; font-size: 12px; }
	.afk-pa-thead, .afk-pa-30 { display: none; }
	.afk-pa-pmain { gap: 8px 12px; }
	/* Lignes joueurs : bouton Détails réduit à une icône en haut à droite (2 lignes au lieu de 3) */
	.afk-pa-pmain { position: relative; padding-right: 60px; }
	.afk-pa-pmain .afk-pa-tgl { position: absolute; top: 8px; right: 8px; width: 44px; min-width: 44px; height: 44px; padding: 0; flex: none; margin: 0; }
	.afk-pa-tgl-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	/* Indicateurs en 2 × 2 */
	.afk-pa-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.afk-pa-kpi { padding: 12px; }
	.afk-pa-kpi-v { font-size: 24px; }
	/* Tops : carrousel horizontal */
	.afk-pa-tops-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 16px; scrollbar-width: none; gap: 10px; margin: 0 -16px; padding: 0 16px; }
	.afk-pa-tops-grid::-webkit-scrollbar { display: none; }
	.afk-pa-top { flex: 0 0 80%; scroll-snap-align: start; }
}
/* 0.3.0 : section « joueurs au pays » */
.afk-pa-home { margin-top: 40px; padding-top: 24px; border-top: 2px solid var(--afk-green, #638f30); }
.afk-pa-group > .afk-pa-note { margin: -4px 0 12px; }
.afk-pa-chip--home { border-style: dashed; }
