/* Player header only. The rest of the site retains its existing Poppins typography. */
@font-face{
  font-family:"Barlow Condensed";
  src:url('/assets/fonts/barlow-condensed-extrabold-800.ttf') format('truetype');
  font-weight:800;font-style:normal;font-display:swap;
}
.pc-hero.pc-hero--profile{
  --pc-hero-ink:#fff;--pc-hero-accent:#ffd0ad;
  --pc-hero-muted:var(--pc-hero-ink);
  position:relative;isolation:isolate;overflow:hidden;
  padding:28px 40px 0;background:var(--pc-club-color,#101d30);
  color:var(--pc-hero-ink);font-family:Poppins,"Segoe UI",Arial,sans-serif;
}
.pc-hero--profile::after{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:none;
}
.pc-hero--profile .pc-team-watermark{
  position:absolute;z-index:0;pointer-events:none;user-select:none;
  width:590px;height:590px;left:-40px;top:50%;transform:translateY(-50%);
  opacity:.17;mix-blend-mode:screen;
  mask-image:radial-gradient(ellipse at center,#000 32%,#000b 57%,transparent 73%);
}
.pc-team-watermark img{display:block;width:100%;height:100%;object-fit:contain;filter:grayscale(1) invert(1)}
.pc-hero--profile .pc-hero-body{
  position:relative;z-index:2;display:grid;grid-template-columns:270px minmax(0,1fr);
  grid-template-rows:1fr auto;gap:0 42px;max-width:1120px;min-height:320px;margin:auto;
}
.pc-hero--profile .pc-emblem{
  position:relative;z-index:1;grid-column:1;grid-row:1/3;align-self:end;
  justify-self:center;width:270px;height:320px;background:none;border:0;border-radius:0;
}
.pc-hero--profile .pc-emblem img{width:100%;height:100%;object-fit:contain;object-position:center bottom}
.pc-hero--profile .pc-portrait .tc-player-silhouette{width:100%;height:100%;transform:none;fill:#9cabb9}
.pc-hero--profile .pc-portrait .tc-player-silhouette-detail{stroke:#d2dbe3}
.pc-hero--profile .pc-hero-copy{grid-column:2;grid-row:1;align-self:end;padding:24px 0 0;min-width:0}
.pc-hero--profile .pc-title-line{display:flex;align-items:baseline;gap:16px;min-width:0}
.pc-hero--profile .pc-name{
  min-width:0;max-width:100%;margin:0;color:var(--pc-hero-ink);
  font-family:"Barlow Condensed",Poppins,"Segoe UI",Arial,sans-serif;font-weight:800;
  font-size:clamp(52px,5.5vw,82px);line-height:.98;letter-spacing:.005em;text-transform:uppercase;
  white-space:normal;overflow:visible;overflow-wrap:anywhere;word-break:normal;hyphens:none;
}
.pc-hero--profile .pc-jersey{font-family:Poppins,"Segoe UI",Arial,sans-serif;font-size:24px;color:var(--pc-hero-ink);opacity:1;font-weight:700}
.pc-hero--profile .pc-position{font-size:12px;line-height:1.5;color:var(--pc-hero-muted);margin-top:12px}
.pc-hero--profile .pc-team-link{font-family:Poppins,"Segoe UI",Arial,sans-serif;font-size:17px;font-weight:600;line-height:1.5;margin-top:9px;overflow-wrap:anywhere}
.pc-hero--profile .pc-team-link a{color:var(--pc-hero-ink);border-bottom-color:var(--pc-hero-accent)}
.pc-hero--profile .pc-team-link a:focus-visible{outline:2px solid var(--pc-hero-ink);outline-offset:4px}
.pc-hero--profile .pc-competition,.pc-hero--profile .pc-sub{font-size:12px;line-height:1.6;color:var(--pc-hero-muted);margin-top:6px;overflow-wrap:anywhere}
.pc-hero--profile .pc-facts{
  grid-column:2;grid-row:2;display:flex;flex-wrap:wrap;gap:14px 28px;
  padding:18px 0 26px;margin:20px 0 0;border-top:1px solid color-mix(in srgb,var(--pc-hero-ink) 20%,transparent);
}
.pc-hero--profile .pc-facts div{min-width:62px;border:0;padding:0;margin:0}
.pc-hero--profile .pc-facts dt{font-size:9px;letter-spacing:.08em;color:var(--pc-hero-muted)}
.pc-hero--profile .pc-facts dd{font-size:14px;color:var(--pc-hero-ink)}
@media(min-width:601px) and (max-width:859px){
  .pc-hero.pc-hero--profile{padding:22px 24px 0}
  .pc-hero--profile .pc-hero-body{grid-template-columns:190px minmax(0,1fr);gap:0 24px;min-height:280px}
  .pc-hero--profile .pc-emblem{width:190px;height:280px}
  .pc-hero--profile .pc-name{font-size:56px}
}
@media(max-width:600px){
  .pc-hero.pc-hero--profile{padding:22px 18px 0}
  .pc-hero--profile .pc-team-watermark{width:330px;height:330px;left:auto;right:-84px;top:46%;opacity:.12}
  .pc-hero--profile .pc-hero-body{grid-template-columns:minmax(0,1fr) 104px;grid-template-rows:auto auto;column-gap:10px;min-height:0}
  .pc-hero--profile .pc-hero-copy{grid-column:1;grid-row:1;align-self:center;padding:0;position:relative;z-index:2}
  .pc-hero--profile .pc-title-line{flex-direction:column;align-items:flex-start;gap:7px}
  .pc-hero--profile .pc-name{font-size:clamp(32px,9vw,40px);line-height:1.02;letter-spacing:0}
  .pc-hero--profile .pc-jersey{font-size:14px;line-height:1}
  .pc-hero--profile .pc-position{font-size:10px;margin-top:8px}
  .pc-hero--profile .pc-team-link{font-size:12px;margin-top:6px}
  .pc-hero--profile .pc-competition,.pc-hero--profile .pc-sub{font-size:10px;line-height:1.5;margin-top:5px}
  .pc-hero--profile .pc-emblem{grid-column:2;grid-row:1;align-self:end;justify-self:end;width:104px;height:174px}
  .pc-hero--profile .pc-portrait .tc-player-silhouette{width:100%;height:100%;transform:none}
  .pc-hero--profile .pc-facts{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 12px;padding:14px 0 17px;margin:17px 0 0}
  .pc-hero--profile .pc-facts div{min-width:0;flex:none}
  .pc-hero--profile .pc-facts div:nth-child(4){grid-column:1/-1;display:flex;flex-direction:row;gap:8px;align-items:baseline;padding-top:9px;border-top:1px solid color-mix(in srgb,var(--pc-hero-ink) 14%,transparent)}
  .pc-hero--profile .pc-facts dt{font-size:8px;line-height:1.5;letter-spacing:.02em}
  .pc-hero--profile .pc-facts dd{font-size:11px;line-height:1.5;white-space:nowrap}
}

/* Reuse the existing team-header luminance rule for bright official club colors. */
.pc-hero.pc-hero--profile.pc-hero--light{--pc-hero-ink:#000;--pc-hero-accent:#7a2b0e}
.pc-hero--profile.pc-hero--light .pc-team-watermark{mix-blend-mode:multiply;opacity:.1}
.pc-hero--profile.pc-hero--light .pc-team-watermark img{filter:grayscale(1)}

/* With no biography row, the second grid track collapses to zero. Keep the
   identity copy centered and clear of the lower edge; photo framing and every
   header with biography facts retain their existing layout. */
@media(min-width:601px){
  .pc-hero--profile .pc-hero-body:not(:has(> .pc-facts)) .pc-hero-copy{
    align-self:center;padding-bottom:24px;
  }
}
@media(max-width:600px){
  .pc-hero--profile .pc-hero-body:not(:has(> .pc-facts)) .pc-hero-copy{
    margin-bottom:18px;
  }
}

/* Keep the grid slot fixed; fit the visible portrait into its mobile space. */
@media(max-width:600px){
  .pc-hero--profile .pc-portrait--fitted{overflow:visible}
  .pc-hero--profile .pc-portrait--fitted > img{
    position:absolute;inset:auto -16px 0 auto;
    width:var(--pc-mobile-portrait-width);height:auto;max-width:none;
  }
}
