/*!
 * SoccerPapi Player Profiles
 * Hero-driven layout crafted to match the league hubs.
 */

:root{
  --player-round:18px;
  --player-surface:rgba(11,20,38,0.85);
  --player-max:1200px;
}

body.player-page{
  font-family:var(--font-sans,'Barlow Semi Condensed',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif);
  background:var(--page,#0B1426);
  color:var(--ink,#fff);
  margin:0;
  min-height:100vh;
}

.hero--player{
  background:var(--surface,#0E1C33);
  border-radius:22px;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:var(--shadow-strong);
  padding:22px;
}

.hero--player .hero-top{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.hero--player .hero-heading{
  display:flex;
  align-items:flex-start;
  gap:18px;
}

.player-hero__photo{
  width:120px;
  height:120px;
  border-radius:26px;
  object-fit:cover;
  box-shadow:0 14px 28px rgba(0,0,0,.45);
  border:1px solid rgba(255,255,255,.15);
  background:#071029;
}

.player-meta__subtitle{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  font-size:15px;
  color:rgba(255,255,255,.75);
}

.player-hero__meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

.player-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:4px;
}

.player-tag{
  padding:8px 14px;
  border-radius:999px;
  font-size:13px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
}

.hero__intro-note{
  display:inline-flex;
  align-items:center;
  margin-left:6px;
  font-size:13px;
  color:rgba(255,255,255,.7);
  letter-spacing:.06em;
  text-transform:uppercase;
}

.stat-grid{
  display:grid;
  gap:12px;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
}

.stat-card{
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  padding:14px;
  background:rgba(15,24,46,.9);
  display:flex;
  flex-direction:column;
  gap:6px;
  min-height:90px;
}

.stat-card span{
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(255,255,255,.66);
}

.stat-card strong{
  font-size:24px;
  letter-spacing:.04em;
}

.player-bio{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:10px;
}

.player-bio li{
  padding:12px 14px;
  border-radius:14px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  font-size:14px;
}

.match-log{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:10px;
}

.match-card{
  padding:14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(8,12,24,.9);
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
}

.match-card strong{
  font-size:15px;
}

.match-card__meta{
  display:flex;
  flex-direction:column;
  font-size:13px;
  color:rgba(255,255,255,.75);
}

.match-card__cta{
  text-decoration:none;
  color:#5BC0EB;
  font-weight:600;
  font-size:13px;
}

.empty-state{
  padding:18px;
  text-align:center;
  border-radius:14px;
  background:rgba(255,255,255,.05);
  border:1px dashed rgba(255,255,255,.18);
  font-size:14px;
  color:rgba(255,255,255,.75);
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

@media(max-width:720px){
  .hero--player{
    padding:18px;
  }
  .hero--player .hero-heading{
    flex-direction:column;
    align-items:center;
    text-align:center;
  }
  .player-tags{
    justify-content:center;
  }
  .match-card{
    grid-template-columns:1fr;
    text-align:center;
    align-items:flex-start;
  }
}

#playerMain.is-loading{
  opacity:.6;
}
