/* LEW26 · Ficha de jugador/a (prefijo l26p-). Base y tokens en lew26.css. */

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.l26p-hero .l26-hero__inner { align-items: flex-end; padding-bottom: 0; gap: clamp(16px, 2.6vw, 34px); }
.l26p-hero .l26-hero__crest { align-self: flex-end; flex: none; }
.l26p-hero .l26-hero__text { padding-bottom: clamp(16px, 2.2vw, 26px); }
.l26p-hero .l26-hero__title { font-size: clamp(26px, 3.4vw, 44px); line-height: 1.05; }
.l26p-hero .l26-hero__meta { margin-top: 12px; display: block; }
.l26p-hero .l26-hero__tabs { border-top: 1px solid rgba(255, 255, 255, .12); }
.l26p-hero::after { inset: 0 0 0 55%; opacity: .55; }

.l26p-photo { position: relative; margin: 0; width: clamp(150px, 15vw, 230px); aspect-ratio: 2 / 3; }
.l26p-hero .l26-hero__crest .l26p-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .45)); display: block; }
.l26p-photo__num { position: absolute; left: -6px; top: 14px; font-size: clamp(46px, 5vw, 76px); font-weight: 900; line-height: 1; color: var(--l26-accent); -webkit-text-stroke: 2px rgba(255, 255, 255, .85); opacity: .95; font-style: italic; }
.l26p-flag { font-size: 1.1em; line-height: 1; }

.l26p-team { display: inline-flex; align-items: center; gap: 12px; color: #fff; margin-bottom: 16px; }
.l26p-team .l26-crest { width: 40px; height: 40px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
.l26p-team b { display: block; font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.l26p-team small { display: block; font-size: 13px; color: rgba(255, 255, 255, .75); }
.l26p-team:hover b { text-decoration: underline; }
.l26p-facts { display: flex; flex-wrap: wrap; gap: 12px 28px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .12); }

.l26p-hkpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.l26p-hkpi { display: flex; flex-direction: column; gap: 2px; padding-left: 12px; border-left: 2px solid var(--l26-accent); min-width: 0; }
.l26p-hkpi__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: rgba(255, 255, 255, .72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l26p-hkpi__value { font-size: clamp(20px, 2.2vw, 28px); font-weight: 800; color: #fff; line-height: 1.1; }
.l26p-hkpi__value small, .l26p-sc__value small { font-size: .6em; font-weight: 600; opacity: .7; }
.l26p-hnote { margin: 12px 0 0; font-size: 13px; color: rgba(255, 255, 255, .8); }

@media (max-width: 1080px) { .l26p-hkpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .l26p-hero .l26-hero__inner { display: block; position: relative; padding-top: 16px; }
  .l26p-hero .l26-hero__crest { position: absolute; top: 12px; right: 12px; }
  .l26p-photo { width: 74px; border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, .06); }
  .l26p-photo__num { display: none; }
  .l26p-hero .l26-hero__eyebrow, .l26p-hero .l26-hero__title { padding-right: 84px; }
  .l26p-hero .l26-hero__title { font-size: 24px; }
  .l26p-hero .l26-hero__eyebrow { font-size: 12px; }
  .l26p-hero .l26-hero__meta { margin-top: 10px; }
  .l26p-team { padding-right: 84px; }
  .l26p-team .l26-crest { width: 30px; height: 30px; }
  .l26p-team b { font-size: 14px; }
  .l26p-team small { font-size: 12px; }
  .l26p-facts { gap: 8px 16px; }
  .l26p-facts .l26-meta .l26-ico { display: none; }
  .l26p-hkpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .l26p-hkpi { padding-left: 8px; }
  .l26p-hkpi__label { font-size: 10px; }
  .l26p-hero .l26-tab { padding: 12px 12px; }
}

/* ─── Trayectoria ─────────────────────────────────────────────────────────── */
.l26p-timeline { list-style: none; margin: 0; padding: 0 0 0 6px; position: relative; }
.l26p-timeline::before { content: ""; position: absolute; left: 11px; top: 10px; bottom: 10px; width: 2px; background: var(--l26-line); }
.l26p-timeline li { position: relative; display: grid; grid-template-columns: 58px 1fr; gap: 8px; padding: 8px 0 8px 22px; align-items: center; }
.l26p-timeline li::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #fff; border: 2px solid var(--l26-line-strong); }
.l26p-timeline li.is-current::before { background: var(--l26-accent); border-color: var(--l26-accent); box-shadow: 0 0 0 4px rgba(16, 56, 101, .12); }
.l26p-timeline__season { font-weight: 800; color: var(--l26-ink); font-size: 13px; }
.l26p-timeline__team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.l26p-timeline__team b { display: block; font-size: 13px; color: var(--l26-ink); }
.l26p-timeline__team b a:hover { color: var(--l26-link); text-decoration: underline; }
.l26p-timeline__team small { display: block; font-size: 12px; color: var(--l26-muted); }
.l26p-note { margin: 10px 0 0; font-size: 12px; color: var(--l26-muted); }
.l26p-other { margin: 10px 0 0; }

/* ─── Tablas ─────────────────────────────────────────────────────────────── */
.l26p-seasons .l26-table td, .l26p-seasons .l26-table th { padding-inline: 10px; }
.l26p-subrow td { font-size: 12px; color: var(--l26-muted); background: #fbfcfe; }
.l26p-phase { padding-left: 14px; position: relative; }
.l26p-phase::before { content: "↳"; position: absolute; left: 0; color: var(--l26-line-strong); }
.l26p-mtable td { padding-block: 8px; }
.l26p-vs { display: inline-flex; align-items: center; gap: 8px; color: var(--l26-ink); font-weight: 500; }
.l26p-vs:hover .l26p-vs__name { color: var(--l26-link); text-decoration: underline; }
.l26p-vs__where { display: inline-block; min-width: 20px; font-size: 11px; color: var(--l26-muted); text-transform: uppercase; font-weight: 600; }
.l26p-vs__name { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.l26p-score { display: inline-block; min-width: 50px; padding: 2px 6px; border-radius: 5px; font-weight: 800; font-size: 12px; background: var(--l26-soft); color: var(--l26-ink); }
.l26p-score--w { background: #e6f5ec; color: #146c3a; }
.l26p-score--l { background: #fdecee; color: #a4212f; }
.l26p-score--d { background: #eef0f4; color: #4a5268; }
.l26p-legend { margin: 0; padding: 10px 18px 12px; font-size: 12px; color: var(--l26-muted); border-top: 1px solid var(--l26-line); }
.l26p-plink { font-weight: 600; color: var(--l26-ink); }
.l26p-plink:hover { color: var(--l26-link); text-decoration: underline; }
.l26p-tshort { font-size: 12px; color: var(--l26-text); }
.l26p-flush { margin-inline: -18px; }
.l26p-rank td, .l26p-rank th { padding-inline: 8px; }

/* ─── Sobre y multimedia ─────────────────────────────────────────────────── */
.l26p-about { margin: 0; display: grid; gap: 2px; }
.l26p-about > div { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--l26-line); }
.l26p-about > div:last-child { border-bottom: 0; }
.l26p-about .l26-ico { color: var(--l26-muted); }
.l26p-about dt { font-size: 13px; color: var(--l26-muted); }
.l26p-about dd { margin: 0; font-size: 13px; font-weight: 700; color: var(--l26-ink); text-align: right; }
.l26p-social { display: inline-flex; gap: 6px; }
.l26p-social a { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--l26-navy-800); color: #fff; }
.l26p-social a:hover { background: var(--l26-s2); }
.l26p-count { font-size: 12px; color: var(--l26-muted); font-weight: 600; }
.l26p-media { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.l26p-media a { position: relative; display: block; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--l26-soft); }
.l26p-media a:first-child { grid-column: span 2; grid-row: span 2; }
.l26p-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.l26p-media a:hover img { transform: scale(1.05); }
.l26p-media__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--l26-muted); }
.l26p-media__play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(7, 15, 43, .25); }

.l26p-subtitle { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--l26-ink); margin: 16px 0 10px; }
.l26p-compare .l26-hbars li, .l26-card .l26-hbars li { grid-template-columns: minmax(120px, 52%) 1fr 48px; }

/* ─── Tarjetas de estadística ────────────────────────────────────────────── */
.l26p-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 12px; margin-bottom: 16px; }
.l26p-sc { background: var(--l26-card); border: 1px solid var(--l26-line); border-radius: var(--l26-radius); box-shadow: var(--l26-shadow); padding: 14px 14px 12px; display: flex; flex-direction: column; min-width: 0; }
.l26p-sc__head { display: flex; align-items: center; gap: 8px; color: var(--l26-accent); min-height: 30px; }
.l26p-sc__head span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--l26-ink); line-height: 1.2; }
.l26p-sc__value { font-size: 30px; font-weight: 800; color: var(--l26-ink); line-height: 1.1; margin-top: 6px; }
.l26p-sc__rank { font-size: 12px; font-weight: 700; color: var(--l26-link); }
.l26p-sc__sub { font-size: 12px; color: var(--l26-muted); }
.l26p-sc__chart { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 10px; min-height: 42px; }
.l26p-sc__chart .l26-spark { height: 32px; }
.l26p-minibars { width: 100%; height: 32px; display: block; }
.l26p-ring { width: 56px; height: 56px; flex: none; }
.l26p-ring__txt { font-size: 11px; font-weight: 800; fill: var(--l26-ink); }
.l26p-ring__label { font-size: 12px; color: var(--l26-muted); font-weight: 600; }

/* ─── Bloques de estadísticas ────────────────────────────────────────────── */
.l26p-ranks { list-style: none; margin: 0; padding: 0; }
.l26p-ranks li { display: grid; grid-template-columns: 20px 1fr auto 44px; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--l26-line); color: var(--l26-muted); }
.l26p-ranks li:last-child { border-bottom: 0; }
.l26p-ranks span { color: var(--l26-ink); font-weight: 600; font-size: 13px; }
.l26p-ranks b { font-size: 20px; color: var(--l26-ink); }
.l26p-ranks small { font-size: 12px; }

.l26p-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.l26p-split__col { text-align: center; padding: 4px 6px; }
.l26p-split__col + .l26p-split__col { border-left: 1px solid var(--l26-line); }
.l26p-split h3 { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 8px; }
.l26p-split p { margin: 0 0 10px; }
.l26p-split b { display: block; font-size: 22px; color: var(--l26-ink); line-height: 1.1; }
.l26p-split span { font-size: 12px; color: var(--l26-muted); }

.l26p-rival { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.l26p-rival small { color: var(--l26-muted); font-size: 11px; white-space: nowrap; }
.l26-hbars .l26p-rival .l26-crest { width: 18px; height: 18px; }
.l26p-me { font-weight: 800; }
.l26p-me a { color: var(--l26-ink); }

.l26p-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.l26p-tiles > div { background: var(--l26-soft); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; min-width: 0; }
.l26p-tiles span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--l26-text); }
.l26p-tiles b { font-size: 24px; color: var(--l26-ink); line-height: 1.2; display: flex; align-items: center; gap: 4px; }
.l26p-tiles b small { font-size: 12px; color: var(--l26-muted); font-weight: 600; }
.l26p-tiles > small, .l26p-tiles div > small { font-size: 12px; color: var(--l26-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.l26p-card-y, .l26p-card-r { display: inline-block; width: 12px; height: 16px; border-radius: 2px; background: #f5c400; margin-left: 4px; }
.l26p-card-r { background: var(--l26-loss); margin-left: 10px; }

.l26p-pens { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.l26p-pens .l26p-ring { width: 96px; height: 96px; }
.l26p-pens .l26p-ring__label { display: block; width: 96px; text-align: center; }
.l26p-dots { display: grid; grid-template-columns: repeat(6, 18px); gap: 8px; }
.l26p-dots i { width: 18px; height: 18px; border-radius: 50%; display: block; }
.l26p-dots .is-saved { background: var(--l26-c3); }
.l26p-dots .is-goal { background: var(--l26-loss); }

.l26p-foot { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--l26-muted); margin: 4px 0 0; }

.l26p-phases { list-style: none; margin: 12px 0 0; padding: 0; }
.l26p-phases li { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid var(--l26-line); font-size: 13px; }
.l26p-phases b { color: var(--l26-ink); }
.l26p-formrow { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--l26-muted); }

@media (max-width: 640px) {
  .l26p-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .l26p-sc { padding: 12px 10px 10px; }
  .l26p-sc__value { font-size: 24px; }
  .l26p-ring { width: 48px; height: 48px; }
  .l26p-vs__where { display: none; }
  .l26p-vs__name { max-width: 120px; }
  .l26p-tiles b { font-size: 20px; }
}
.l26p-note--top { margin: 0 0 8px; }
.l26p-role { display: flex; flex-direction: column; gap: 2px; background: linear-gradient(135deg, var(--l26-navy-800), var(--l26-navy-950)); color: #fff; border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; }
.l26p-role__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .75; }
.l26p-role b { font-size: 19px; font-weight: 800; }
.l26p-role small { font-size: 12px; opacity: .8; }
#avanzadas { scroll-margin-top: 16px; }
