/* ==========================================================================
   VOLLEYSCORE — Fiches club et joueur V3 (s'appuie sur les blocs .h3-* de l'accueil V3)
   ========================================================================== */
body.wide.inner .shell:has(.p3) { max-width: 1380px; }
.p3 { display: flex; flex-direction: column; gap: 12px; }
.p3-back { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--text-dim); padding: 2px 0; }
.p3-back:hover { color: var(--red); }

/* Bandeau : photo réelle du club en fond, assombrie, couleur du club en lumière */
.p3-hero { margin: 0; border-radius: 6px; isolation: isolate; }
.p3-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; z-index: 0; opacity: .34; filter: saturate(.85); }
.p3-hero::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 14, 19, .96) 0%, rgba(11, 14, 19, .78) 45%, rgba(11, 14, 19, .55) 100%),
    radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--team, #C8102E) 45%, transparent) 0%, transparent 65%); }
.p3-credit { position: absolute; left: 12px; top: 7px; z-index: 2; font-size: 10px; color: rgba(255, 255, 255, .55); max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p3-credit:hover { color: #fff; }
.p3-hero-inner { grid-template-columns: auto minmax(0, 1fr) auto; padding: 22px 24px; gap: 22px; }
.p3-hero .rx-title { font-size: 46px; margin: 6px 0 10px; }
.p3-hero .rx-kicker { font-size: 12.5px; color: #C9D0DB; }
.p3-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.p3-actions .soc-row { margin: 0; }
.p3-club .p3-hero-left img, .p3-club .p3-hero-left .team-logo { width: 112px; height: 112px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .45)); }
.p3-hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.p3-big { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.p3-big span { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #9AA3B2; margin-bottom: 4px; }
.p3-big b { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 58px; color: #fff; }
.p3-big b i { font-style: normal; font-size: 24px; color: #9AA3B2; }
.p3-big em { font-style: normal; font-size: 11.5px; color: #C9D0DB; margin-top: 4px; }
.p3-big.rt.hi b { color: #4ADE80; } .p3-big.rt.mi b { color: #fff; } .p3-big.rt.lo b { color: #F87171; }
.p3-side-logo img, .p3-side-logo .team-logo { width: 56px; height: 56px; object-fit: contain; opacity: .9; }
.p3-club-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 10px 6px 6px; border-radius: 4px; background: rgba(255, 255, 255, .08); color: #fff; font-weight: 800; font-size: 14px; transition: background .15s ease; }
.p3-club-link:hover { background: rgba(255, 255, 255, .16); }
.p3-club-link span { color: var(--red); }
.p3-player .px-photo { width: 180px; height: 210px; }

/* Grille : principale + latérale */
.p3-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.p3-main, .p3-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.p3-main > .mod, .p3-main .mod { border-radius: 6px; margin: 0 !important; }
.p3-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.p3-pad { padding: 4px 0; }
.p3-count { display: inline-block; margin-left: 6px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-dim); }
.p3-note { padding: 7px 12px; font-size: 11px; color: var(--text-dim); border-top: 1px solid var(--border); }
.p3-desc { margin: 0; padding: 12px 14px; font-size: 13.5px; line-height: 1.65; }

/* Onglets */
.p3-tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--border); }
.p3-tabs button { flex: none; white-space: nowrap; position: relative; padding: 9px 14px; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.p3-tabs button::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: -2px; height: 3px; background: var(--red); transform: scaleX(0); transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.p3-tabs button:hover { color: var(--text-main); }
.p3-tabs button.on { color: var(--text-main); }
.p3-tabs button.on::after { transform: scaleX(1); }

/* Effectif en rail */
.p3-lineup { display: grid; grid-auto-flow: column; grid-auto-columns: 138px; gap: 8px; overflow-x: auto; padding: 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.p3-lineup .sq-card { scroll-snap-align: start; }
.p3-lineup .sq-pic { height: 132px; }

/* Lignes de match */
.p3-m { width: 100%; display: grid; grid-template-columns: 40px 18px 34px minmax(0, 1fr) 20px 40px; align-items: center; gap: 6px; padding: 7px 12px; border-bottom: 1px solid var(--border); font-size: 13px; text-align: left; transition: background .12s ease; }
.p3-m:last-child { border-bottom: 0; }
.p3-m:hover { background: var(--bg-hover); }
.p3-m.live { box-shadow: inset 3px 0 0 var(--red); }
.p3-m .d { font-size: 11.5px; color: var(--text-dim); }
.p3-m .lg img, .p3-m .lg .league-crest { width: 18px; height: 18px; }
.p3-m .ha { font-size: 10.5px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; }
.p3-m .o { display: flex; align-items: center; gap: 6px; min-width: 0; }
.p3-m .o b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p3-m .o img, .p3-m .o .team-logo { width: 18px; height: 18px; object-fit: contain; flex: none; }
.p3-m .wl { width: 18px; height: 18px; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 800; color: #fff; }
.p3-m .wl.w { background: var(--green); } .p3-m .wl.l { background: var(--red); }
.p3-m .sc, .p3-m .t { text-align: right; font-weight: 700; font-size: 12.5px; }
.p3-m .t { color: var(--text-muted); font-weight: 500; }

/* Colonne latérale */
.h3-tr.me { background: var(--red-soft); }
.h3-tr.me .nm { font-weight: 800; }
.p3-hon-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 12px; border-bottom: 1px solid var(--border); }
.p3-hon-row:last-child { border-bottom: 0; }
.p3-hon-row .tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.p3-hon-row .tx b { font-size: 13px; line-height: 1.25; }
.p3-hon-row .tx em { font-style: normal; font-size: 11px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p3-hon-row .n { font-size: 15px; color: var(--amber); }
.p3-w { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.p3-w .nm { font-weight: 700; }
.p3-w i { font-style: normal; font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 3px; border: 1px solid var(--border); color: var(--text-muted); align-self: center; }
.p3-w i.free { color: var(--green); border-color: color-mix(in srgb, var(--green) 35%, transparent); }
.p3-w em { font-style: normal; font-size: 11.5px; color: var(--text-dim); }
.p3-w a { font-size: 11.5px; font-weight: 700; color: var(--red); justify-self: end; }
.p3-kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; padding: 7px 12px; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.p3-kv:last-child { border-bottom: 0; }
.p3-kv span { color: var(--text-dim); }
.p3-kv b { font-weight: 600; overflow-wrap: anywhere; }
.p3-sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--border); margin-right: 4px; vertical-align: -2px; }
.p3-tl-row { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 12px; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.p3-tl-row .y { font-size: 11.5px; color: var(--text-dim); }
.p3-tl-row b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p3-tl-row em { font-style: normal; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); }
.p3-tl-row.now b { color: var(--red); font-weight: 800; }
.p3-links { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
.p3-links a { font-size: 12.5px; font-weight: 700; color: var(--red); }

/* Tablette et mobile */
@media (max-width: 1100px) {
  .p3-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .p3-hero .rx-title { font-size: 38px; }
}
@media (max-width: 860px) {
  .p3-grid { grid-template-columns: 1fr; }
  .p3-two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .p3-hero-inner { grid-template-columns: auto minmax(0, 1fr); padding: 16px; gap: 14px; }
  .p3-hero-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; }
  .p3-big { align-items: flex-start; }
  .p3-big b { font-size: 40px; }
  .p3-hero .rx-title { font-size: 30px; }
  .p3-club .p3-hero-left img, .p3-club .p3-hero-left .team-logo { width: 72px; height: 72px; }
  .p3-player .px-photo { width: 110px; height: 132px; }
  .p3-side-logo { display: none; }
  .p3-credit { max-width: calc(100% - 24px); top: 5px; font-size: 9.5px; }
  .p3-hero-inner { padding-top: 22px; }
  .p3-actions { gap: 6px; }
  .p3-actions .soc-a { min-height: 34px; padding: 0 8px; }
  .p3-tabs { overflow-x: auto; }
  .p3-lineup { grid-auto-columns: 124px; }
}
@media (prefers-reduced-motion: reduce) { .p3-tabs button::after, .p3-club-link { transition: none; } }

/* Écrans tactiles : zones de toucher d'au moins ~36 px sans changer la mise en page */
@media (pointer: coarse) {
  .h3-more, .p3-back, .mod-sub.link-inline { position: relative; }
  .h3-more::after, .p3-back::after, .mod-sub.link-inline::after { content: ''; position: absolute; inset: -11px -8px; }
  .h3-tabs > button, .h3-g button, .chip, .p3-tabs button { min-height: 36px; }
  .h3-link { padding: 12px 8px; }
  .p3-w a, .p3-links a { display: inline-block; padding: 6px 0; }
}
.p3-hon-row .tx b::first-letter, .hon-name::first-letter { text-transform: uppercase; }

/* Fiche club enrichie (30/11) : sobre et dense, à la HLTV */
.p3-bio-t { margin: 0; padding: 10px 12px 4px; font-size: 13px; line-height: 1.6; color: var(--text-main); }
.p3-bio .p3-note a, .p3-identity a { color: inherit; text-decoration: underline; }
.p3-ss { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
@media (max-width: 640px) { .p3-ss { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.p3-ss-c { display: grid; gap: 2px; padding: 8px 10px; background: var(--bg-card); }
.p3-ss-c b { font-size: 18px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--text-main); }
.p3-ss-c span { font-size: 11px; color: var(--text-muted); }
.p3-ss-c.up b { color: #2e9e5b; } .p3-ss-c.down b { color: #c0392b; }
[data-theme="dark"] .p3-ss-c.up b { color: #5fd38d; } [data-theme="dark"] .p3-ss-c.down b { color: #ef6b5b; }
.p3-ss-ls { display: grid; }
.p3-ss-l { display: grid; grid-template-columns: 140px auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 6px 10px; border: 0; border-bottom: 1px solid var(--border); background: none; color: var(--text-main); font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.p3-ss-l:hover { background: var(--bg-hover); }
.p3-ss-l span { color: var(--text-muted); }
.p3-ss-l b { font-variant-numeric: tabular-nums; }
.p3-ss-l em { display: flex; align-items: center; gap: 6px; font-style: normal; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.p3-dbs { display: grid; }
.p3-db { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 6px 10px; border: 0; border-bottom: 1px solid var(--border); background: none; color: var(--text-main); font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.p3-db:hover { background: var(--bg-hover); }
.p3-db b { font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.p3-db em { font-style: normal; color: var(--text-muted); font-size: 11px; }
.p3-sf { display: grid; }
.p3-sf-r { display: grid; grid-template-columns: 110px auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 7px 10px; border-bottom: 1px solid var(--border); font-size: 12px; }
.p3-sf-r > span { color: var(--text-muted); }
.p3-sf-r > b { font-variant-numeric: tabular-nums; }
.p3-sf-r em { display: flex; flex-wrap: wrap; gap: 4px 8px; font-style: normal; min-width: 0; }
.p3-sf-r .flag-i { width: 16px; height: 12px; }
.p3-sf-p { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--text-link, #87a3bf); font: inherit; font-size: 12px; cursor: pointer; }
.p3-sf-p:hover { text-decoration: underline; }
