/* ============================================================
   FICHA DE JUGADOR/A Y CUERPO TÉCNICO — mobile first (single-jugador.php)
   ============================================================ */
.pj { background: white; }

/* ── Cabecera oscura: foto 4:5 + datos ── */
.pj-hero { background: var(--black); color: white; padding: calc(var(--nav-h) + 20px) var(--gutter) 32px; }
.pj-hero-inner { max-width: 1100px; margin: 0 auto; display: grid; gap: 24px; }
.pj-photo { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius-md); overflow: hidden; background: linear-gradient(135deg, var(--blue), var(--pink)); max-width: 420px; width: 100%; }
.pj-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.pj-photo.is-empty { display: flex; align-items: center; justify-content: center; font-size: 96px; font-weight: 900; color: rgba(255,255,255,.85); }
.pj-dorsal {
  position: absolute; left: 16px; bottom: 12px; font-size: 64px; font-weight: 900; line-height: 1; letter-spacing: -3px;
  color: white; text-shadow: 0 4px 24px rgba(0,0,0,.45);
}
.pj-head { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pj-back { align-self: flex-start; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.6); text-decoration: none; }
.pj-back:hover { color: white; }
.pj-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-on-dark); }
.pj-name { margin: 0; font-size: clamp(36px, 9vw, 72px); font-weight: 900; line-height: 1; letter-spacing: -2px; overflow-wrap: anywhere; }
.pj-fullname { margin: 0; font-size: 15px; color: rgba(255,255,255,.65); }
.pj-role { margin: 4px 0 0; font-size: 18px; font-weight: 700; color: rgba(255,255,255,.9); }
.pj-quote { margin: 10px 0 0; padding-left: 14px; border-left: 3px solid var(--blue); font-size: 17px; font-style: italic; line-height: 1.5; color: rgba(255,255,255,.8); }
.pj-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pj-social a {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2); color: white; transition: background .2s, border-color .2s;
}
.pj-social a:hover { background: var(--blue); border-color: var(--blue); }

@media (min-width: 768px) {
  .pj-hero { padding: calc(var(--nav-h) + 48px) var(--gutter) 56px; }
  .pj-hero-inner { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 48px; align-items: end; }
  .pj-dorsal { font-size: 88px; }
}

/* ── Datos ── */
.pj-stats { background: var(--gray-50); padding: 24px var(--gutter); border-bottom: 1px solid var(--gray-200); }
.pj-stats dl { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.pj-stats dt { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gray-500); }
.pj-stats dd { margin: 4px 0 0; font-size: 18px; font-weight: 800; color: var(--black); letter-spacing: -.3px; }
@media (min-width: 768px) { .pj-stats dl { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }

/* ── Cuerpo ── */
.pj-body { max-width: 1100px; margin: 0 auto; padding: 40px var(--gutter) 72px; display: grid; gap: 40px; }
@media (min-width: 1024px) {
  .pj-body { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 64px; padding-top: 64px; padding-bottom: 100px; }
  .pj-block--wide { grid-column: 1 / -1; }
}
.pj-h { margin: 0 0 16px; font-size: 22px; font-weight: 900; letter-spacing: -.5px; color: var(--black); }
.pj-h3 { margin: 20px 0 8px; font-size: 15px; font-weight: 800; }
.pj-block p { margin: 0 0 12px; font-size: 16px; line-height: 1.7; color: var(--gray-600); }
.pj-titles { margin: 0; padding-left: 18px; color: var(--gray-600); line-height: 1.7; }
.pj-empty { color: var(--gray-500); }

/* Vídeo: se carga al pulsar */
.pj-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: var(--black); }
.pj-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pj-video-play {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  width: 100%; border: 0; background: linear-gradient(135deg, #1a1a1a, var(--black)); color: white; font: inherit; cursor: pointer;
}
.pj-video-play svg { width: 64px; height: 64px; padding: 18px; border-radius: 50%; background: var(--blue); box-sizing: border-box; transition: transform .2s; }
.pj-video-play:hover svg { transform: scale(1.06); }
.pj-video-play span { font-size: 15px; font-weight: 800; }
.pj-video-play small { font-size: 12px; color: rgba(255,255,255,.55); }

/* Trayectoria */
.pj-tray { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--gray-200); }
.pj-tray li { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 2px 12px; padding: 0 0 16px 18px; }
.pj-tray li::before { content: ""; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: white; border: 2px solid var(--gray-300); }
.pj-tray li.is-own::before { background: var(--blue); border-color: var(--blue); }
.pj-tray-t { grid-row: span 2; font-size: 13px; font-weight: 700; color: var(--gray-500); padding-top: 1px; }
.pj-tray-c { font-size: 15px; font-weight: 800; color: var(--black); }
.pj-tray-k { font-size: 13px; color: var(--gray-500); }

/* Galería */
.pj-gal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 768px) { .pj-gal { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
.pj-gal-item { display: block; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--gray-100); }
.pj-gal-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
@media (hover: hover) { .pj-gal-item:hover img { transform: scale(1.04); } }

/* Visor */
.pj-lb { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0,0,0,.94); }
.pj-lb::backdrop { background: rgba(0,0,0,.6); }
.pj-lb img { position: absolute; inset: 56px 16px; width: calc(100% - 32px); height: calc(100% - 112px); object-fit: contain; }
.pj-lb-btn { position: absolute; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: white; font-size: 28px; line-height: 1; cursor: pointer; }
.pj-lb-btn:hover { background: rgba(255,255,255,.25); }
.pj-lb-close { top: 8px; right: 8px; }
.pj-lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.pj-lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
