/* Fiche joueur — Padelaris Fiche joueur.dc.html */

.zp-pl [hidden] { display: none !important; }
.zp-pl .is-up { color: var(--zp-win-text); }
.zp-pl .is-down { color: var(--zp-loss-text); }

/* ---------- Héro desktop ---------- */
.zp-pl-hero { --cut-h: 48px; --hero-pb: 96px; }
.zp-pl-hero__court { left: calc(50% - 120px); top: 120px; width: 820px; height: 360px; }
.zp-pl-hero__grid { position: relative; display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 56px; padding-top: 48px; align-items: end; }

.zp-pl-card { position: relative; width: 330px; background: var(--zp-card-dark); color: #fff; overflow: hidden; clip-path: var(--zp-cut-card); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.zp-pl-card__court { position: absolute; inset: 18px; border: 2px solid rgba(255, 255, 255, .07); }
.zp-pl-card__court i { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: rgba(255, 255, 255, .09); }
.zp-pl-card__s1, .zp-pl-card__s2 { position: absolute; top: -40px; height: 520px; transform: rotate(24deg); }
.zp-pl-card__s1 { right: 56px; width: 30px; background: var(--zp-brand); }
.zp-pl-card__s2 { right: 36px; width: 7px; background: var(--zp-accent); }
.zp-pl-card__in { position: relative; padding: 36px 36px 40px; display: flex; flex-direction: column; gap: 18px; }
.zp-pl-card__top { display: flex; justify-content: space-between; align-items: flex-start; }
.zp-pl-card__elo { display: flex; flex-direction: column; gap: 2px; }
.zp-pl-card__elo strong { font-family: var(--zp-display); font-weight: 800; font-size: 58px; line-height: .85; color: var(--zp-accent); }
.zp-pl-card__elo span { font-size: 10px; font-weight: 800; letter-spacing: .14em; line-height: normal; color: rgba(255, 255, 255, .75); text-transform: uppercase; }
.zp-pl-card__rk { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.zp-pl-card__rk > span:first-child { font-family: var(--zp-display); font-weight: 800; font-size: 30px; line-height: 1; }
.zp-pl-card__av { align-self: center; box-shadow: 0 0 0 4px var(--zp-accent); }
.zp-pl-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); background: color-mix(in srgb, var(--zp-primary) 75%, transparent); border: 1px solid rgba(255, 255, 255, .15); }
.zp-pl-card__stats > div { padding: 10px 0; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.zp-pl-card__stats > div:nth-child(2) { border-left: 1px solid rgba(255, 255, 255, .15); border-right: 1px solid rgba(255, 255, 255, .15); }
.zp-pl-card__stats strong { font-family: var(--zp-display); font-weight: 800; font-size: 26px; line-height: 1; }
.zp-pl .zp-pl-card__stats strong.is-up { color: var(--zp-win-on-dark); }
.zp-pl .zp-pl-card__stats strong.is-down { color: var(--zp-loss-on-dark); }
.zp-pl-card__stats span { font-size: 10px; font-weight: 700; letter-spacing: .1em; line-height: normal; color: rgba(255, 255, 255, .7); text-transform: uppercase; }

.zp-pl-id { display: flex; flex-direction: column; gap: 22px; padding-bottom: 8px; min-width: 0; }
.zp-pl-tags { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.zp-pl-beg { font-size: 12px; font-weight: 800; line-height: normal; color: var(--zp-primary); padding: 5px 10px; background: var(--zp-accent); }
.zp-pl-prov { font-size: 12px; font-weight: 700; line-height: normal; color: rgba(255, 255, 255, .85); padding: 4px 10px; border: 1.5px dashed rgba(255, 255, 255, .6); }
.zp-pl-div { font-style: normal; line-height: normal; margin-left: 2px; }
.zp-pl-name { font-family: var(--zp-display); font-style: italic; font-weight: 800; font-size: 96px; line-height: .86; color: #fff; text-transform: uppercase; overflow-wrap: anywhere; }
.zp-pl-meta { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: rgba(255, 255, 255, .82); }
.zp-pl-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.zp-pl-cta .zp-btn--primary { padding: 15px 26px; }
.zp-pl-cta .zp-btn--ghost-dark { padding: 13px 22px; }

/* ---------- Corps desktop ---------- */
.zp-pl-body { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; margin-top: -24px; padding-bottom: 64px; }
.zp-pl-main, .zp-pl-side { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.zp-pl-h2 { font-family: var(--zp-display); font-weight: 800; font-size: 28px; line-height: 1; text-transform: uppercase; color: var(--zp-primary); }
.zp-pl-h2--sm { font-size: 24px; }
.zp-pl-none { font-size: 14px; color: var(--zp-gray); }
.zp-pl-none--pad { padding: 18px 24px; }

/* Évolution Elo */
.zp-pl-evo { padding: 20px 24px 16px; display: flex; flex-direction: column; gap: 14px; }
.zp-pl-evo__h { display: flex; justify-content: space-between; align-items: baseline; }
.zp-pl-seg { display: flex; background: var(--zp-bg); padding: 3px; gap: 2px; }
.zp-pl-seg button { padding: 6px 12px; font-size: 12px; font-weight: 700; line-height: 1.5; color: var(--zp-gray); }
.zp-pl-seg button.is-active { background: var(--zp-primary); color: #fff; }
.zp-pl-chart { width: 100%; height: auto; display: block; font-family: var(--zp-text); overflow: visible; }
.zp-pl-chart .g { stroke: var(--zp-line-soft); stroke-width: 1; }
.zp-pl-chart .gl { font-size: 11px; font-weight: 600; fill: var(--zp-gray); }
.zp-pl-chart .eq { stroke: var(--zp-primary); stroke-width: 1.5; stroke-dasharray: 5 5; }
.zp-pl-chart .eql { font-size: 11px; font-weight: 800; fill: var(--zp-primary); }
.zp-pl-chart .ar { fill: var(--zp-secondary); fill-opacity: .08; }
.zp-pl-chart .ln { fill: none; stroke: var(--zp-secondary); stroke-width: 3; stroke-linejoin: round; }
.zp-pl-chart .pt { fill: var(--zp-accent); stroke: var(--zp-primary); stroke-width: 2.5; }
.zp-pl-chart--m .eq { stroke-width: 3; stroke-dasharray: 10 10; }
.zp-pl-chart--m .ln { stroke-width: 6; }
.zp-pl-chart--m .pt { stroke-width: 4; }
.zp-pl-evo__f { display: flex; gap: 28px; flex-wrap: wrap; font-size: 13px; color: var(--zp-gray); border-top: 1px solid var(--zp-line-soft); padding-top: 12px; }
.zp-pl-evo__f strong { color: var(--zp-primary); font-weight: 700; }

/* Historique */
.zp-pl-hist__h { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 24px 14px; }
.zp-pl-hist__h > span { font-size: 13px; font-weight: 600; color: var(--zp-gray); }
.zp-pl-hgrid { grid-template-columns: 86px 110px minmax(0, 1fr) minmax(0, 1.1fr) 110px 70px; column-gap: 14px; }
.zp-pl-hist .zp-thead { padding-top: 8px; padding-bottom: 8px; border-top: 1px solid var(--zp-line-soft); line-height: normal; }
.zp-pl-hist .zp-trow { padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--zp-line-soft); }
.zp-pl-hd { font-size: 13px; font-weight: 700; }
.zp-pl-ht { font-size: 12px; font-weight: 700; color: var(--zp-gray); }
.zp-pl-hw { display: flex; align-items: center; gap: 8px; min-width: 0; }
.zp-app .zp-pl-hw a { font-size: 13px; font-weight: 700; color: var(--zp-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.zp-pl-hv { font-size: 13px; color: var(--zp-gray); line-height: normal; }
.zp-pl-hs { display: flex; align-items: center; gap: 8px; }
.zp-pl-hs > span:last-child { font-family: var(--zp-display); font-weight: 700; font-size: 18px; line-height: 1.2; }
.zp-pl-res { width: 22px; height: 22px; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #fff; background: var(--zp-gray); }
.zp-pl-res--v { background: var(--zp-win); }
.zp-pl-res--d { background: var(--zp-loss); }
.zp-pl-hdl { text-align: right; font-family: var(--zp-display); font-weight: 800; font-size: 26px; line-height: 1.2; }
.zp-pl-hist__more { padding: 14px 24px; }

/* Officiel vs interne */
.zp-pl-cmp { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.zp-pl-cmp__two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.zp-pl-cmp__two > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; background: var(--zp-thead); }
.zp-pl-cmp__two strong { font-family: var(--zp-display); font-weight: 800; font-size: 32px; line-height: .95; }
.zp-pl-cmp__s { font-size: 12px; color: var(--zp-gray); line-height: normal; }
.zp-pl-lab { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: var(--zp-gray); line-height: normal; }
.zp-pl-gauges { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 8px 12px; align-items: center; }
.zp-pl-mark { top: -4px; bottom: -4px; width: 2px; margin-left: 0; }
.zp-pl-ticks { position: relative; height: 14px; font-size: 10px; font-weight: 700; color: var(--zp-gray); line-height: normal; }
.zp-pl-ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.zp-pl-verdict { display: flex; align-items: baseline; gap: 10px; padding-top: 12px; border-top: 1px solid var(--zp-line-soft); }
.zp-pl-verdict strong { font-family: var(--zp-display); font-weight: 800; font-size: 34px; line-height: 1; }
.zp-pl-verdict span { font-size: 14px; font-weight: 700; color: var(--zp-primary); }
.zp-pl-advice { font-size: 12px; color: var(--zp-gray); line-height: 1.5; margin-top: -4px; }

/* Meilleur partenaire */
.zp-pl-best { background: var(--zp-primary); color: #fff; padding: 20px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.zp-pl-best__s { position: absolute; top: -30px; right: 30px; width: 20px; height: 300px; background: var(--zp-brand); transform: rotate(24deg); }
.zp-pl-best__lab { position: relative; font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--zp-accent); line-height: normal; }
.zp-pl-best__who { position: relative; display: flex; align-items: center; gap: 14px; }
.zp-pl-best__who > div { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.zp-app .zp-pl-best__n { font-family: var(--zp-display); font-weight: 800; font-size: 24px; line-height: 1; text-transform: uppercase; color: #fff; }
.zp-pl-best__r { position: relative; display: flex; align-items: baseline; gap: 10px; }
.zp-pl-best__r strong { font-family: var(--zp-display); font-weight: 800; font-size: 48px; line-height: .9; color: var(--zp-accent); }
.zp-pl-best__r span { font-size: 14px; color: rgba(255, 255, 255, .82); }

/* Partenaires favoris / adversaire */
.zp-pl-partners { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.zp-pl-lab2 { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--zp-gray); line-height: normal; }
.zp-pl-fav { display: flex; align-items: center; gap: 12px; }
.zp-pl-fav__b { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.zp-app .zp-pl-fav a { font-size: 14px; font-weight: 800; color: var(--zp-primary); line-height: normal; }
.zp-pl-fav__bar { display: block; height: 5px; background: var(--zp-line-soft); }
.zp-pl-fav__bar span { display: block; height: 100%; background: var(--zp-secondary); }
.zp-pl-fav__n { font-size: 13px; font-weight: 700; width: 72px; text-align: right; flex: none; }
.zp-pl-opp { border-top: 1px solid var(--zp-line-soft); padding-top: 12px; margin-top: 4px; display: flex; flex-direction: column; gap: 10px; }
.zp-pl-opp__b { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.zp-pl-opp__b > span { font-size: 12px; color: var(--zp-gray); line-height: normal; }
.zp-pl-opp__r { font-family: var(--zp-display); font-weight: 800; font-size: 22px; }

/* État vide */
.zp-pl-empty-h { position: relative; padding-top: 44px; }
.zp-pl-empty { padding-top: 0; padding-bottom: 64px; margin-top: -24px; position: relative; }

/* ---------- Mobile ---------- */
.zp-pl-mhero { position: relative; overflow: hidden; background: var(--zp-primary); color: #fff; padding: 16px 20px 22px; display: flex; flex-direction: column; gap: 18px; }
.zp-pl-mhero__s { --st-r: 30px; --st-w: 30px; --st-r2: 10px; --st-w2: 7px; --st-h: 500px; }
.zp-pl-mhero__s i, .zp-pl-mhero__s b { top: -40px; }
.zp-pl-mhero > :not(.zp-pl-mhero__s) { position: relative; }
.zp-pl-mhero__top { line-height: normal; display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; }
.zp-app .zp-pl-mhero__top a { color: #fff; position: relative; line-height: normal; }
.zp-pl-mhero__top a::after { content: ""; position: absolute; inset: -12px -8px; }
.zp-pl-mhero__top > span { font-family: var(--zp-display); font-weight: 800; font-size: 22px; line-height: 1; }
.zp-pl-mhero__who { display: flex; align-items: center; gap: 16px; }
.zp-pl-mhero__av { box-shadow: 0 0 0 3px var(--zp-accent); }
.zp-pl-mhero__id { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.zp-pl-mhero__n { font-family: var(--zp-display); font-style: italic; font-weight: 800; font-size: 38px; line-height: .88; text-transform: uppercase; color: #fff; }
.zp-pl-mhero__m { font-size: 12px; color: rgba(255, 255, 255, .8); line-height: normal; }
.zp-pl-mhero__two { display: grid; grid-template-columns: 1fr 1fr; background: rgba(255, 255, 255, .07); }
.zp-pl-mhero__two > div { padding: 12px 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.zp-pl-mhero__two > div + div { border-left: 1px solid rgba(255, 255, 255, .12); gap: 4px; }
.zp-pl-mhero__two > div > span:first-child { font-size: 10px; font-weight: 800; letter-spacing: .12em; color: rgba(255, 255, 255, .75); line-height: normal; }
.zp-pl-mhero__two strong { font-family: var(--zp-display); font-weight: 800; font-size: 34px; line-height: .9; color: var(--zp-accent); }
.zp-pl-mhero__f { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.zp-pl-mhero__f > span:first-child { font-size: 13px; font-weight: 700; line-height: normal; }
.zp-pl .zp-pl-mhero__f .is-up { color: var(--zp-win-on-dark); }
.zp-pl .zp-pl-mhero__f .is-down { color: var(--zp-loss-on-dark); }
.zp-pl-mhero__tag { flex: none; font-size: 11px; font-weight: 800; line-height: normal; color: var(--zp-primary); padding: 4px 8px; background: var(--zp-accent); }
.zp-pl-mhero__tag--prov { background: transparent; color: rgba(255, 255, 255, .85); border: 1.5px dashed rgba(255, 255, 255, .6); padding: 3px 8px; }

.zp-pl-tabs { display: flex; gap: 22px; padding: 0 20px; background: #fff; border-bottom: 1px solid var(--zp-line); }
.zp-pl-tabs button { padding: 13px 0; font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--zp-gray); min-height: 44px; }
.zp-pl-tabs button.is-active { color: var(--zp-primary); box-shadow: inset 0 -3px 0 var(--zp-accent); }
.zp-pl-panel { padding: 16px; display: flex; flex-direction: column; gap: 14px; }

.zp-pl-mstats { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--zp-line); }
.zp-pl-mstats > div { padding: 12px 0; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.zp-pl-mstats > div:nth-child(2) { border-left: 1px solid var(--zp-line-soft); border-right: 1px solid var(--zp-line-soft); }
.zp-pl-mstats strong { font-family: var(--zp-display); font-weight: 800; font-size: 28px; line-height: 1; }
.zp-pl-mstats span { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--zp-gray); line-height: normal; }

.zp-pl-mevo { background: #fff; border: 1px solid var(--zp-line); padding: 14px 14px 10px; display: flex; flex-direction: column; gap: 8px; }
.zp-pl-mevo__h { display: flex; justify-content: space-between; align-items: baseline; }
.zp-pl-mevo__h h2, .zp-pl-msec h2 { font-family: var(--zp-display); font-weight: 800; font-size: 22px; line-height: 1.2; text-transform: uppercase; color: var(--zp-primary); }
.zp-pl-mevo__h span { font-size: 12px; font-weight: 700; }
.zp-pl-mevo__c { font-size: 11px; color: var(--zp-gray); line-height: normal; }
.zp-pl-msec { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; }
.zp-pl-msec button { color: var(--zp-secondary); min-height: 32px; }
.zp-pl-msec__n { font-size: 13px; font-weight: 700; color: var(--zp-gray); }
.zp-pl-mlist { background: #fff; border: 1px solid var(--zp-line); }
.zp-pl-mm { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--zp-line-soft); }
.zp-pl-mm .zp-pl-res { width: 24px; height: 24px; }
.zp-pl-mm__b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.zp-pl-mm__t { font-size: 13px; font-weight: 800; line-height: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zp-pl-mm__s { font-size: 12px; color: var(--zp-gray); line-height: normal; }
.zp-pl-mm__d { font-family: var(--zp-display); font-weight: 800; font-size: 24px; line-height: 1.2; }

.zp-pl-mbest { background: var(--zp-primary); color: #fff !important; padding: 14px; display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
.zp-pl-mbest__b { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.zp-pl-mbest__l { font-size: 10px; font-weight: 800; letter-spacing: .12em; color: var(--zp-accent); line-height: normal; }
.zp-pl-mbest__n { font-weight: 800; font-size: 15px; line-height: normal; }
.zp-pl-mbest__r { font-family: var(--zp-display); font-weight: 800; font-size: 28px; color: var(--zp-accent); }
.zp-pl-mcta.zp-btn { padding: 16px; font-size: 16px; --cut: 12px; }

@media (max-width: 1100px) {
	.zp-pl-name { font-size: 76px; }
	.zp-pl-body { grid-template-columns: minmax(0, 1fr) 320px; }
	.zp-pl-hgrid { grid-template-columns: 60px 90px minmax(0, 1fr) minmax(0, 1fr) 100px 54px; }
}
@media (max-width: 760px) {
	.zp-pl-hero--empty { --cut-h: 0px; --hero-pb: 22px; clip-path: none; }
	.zp-pl-empty-h { padding: 0 20px; }
	.zp-pl-empty { margin-top: 0; padding: 16px; }
}
.zp-pl .is-na { color: var(--zp-gray); }
