/* ════════════════════════════════════════════════════════════════════════════
   PLAYER DETAIL PAGE
   Hero section, profile body, stat/info/games/career cards.
   ════════════════════════════════════════════════════════════════════════════ */

:root {
  --hero-photo-h: 56vh;
}

body.player-hydrating .hero,
body.player-hydrating .profile-body {
  opacity: 1;
}

/* ── Skeleton shimmer while player data loads ──────────────────────────────
   Scoped entirely to body.player-hydrating so it auto-removes on hydration.
   We fake placeholder bars by making text transparent and rendering a
   shimmer pseudo-element instead — no HTML changes required.
   ─────────────────────────────────────────────────────────────────────────── */
@keyframes player-sk-shimmer {
  0% {
    background-position: -400px 0;
  }
  100% {
    background-position: 400px 0;
  }
}

/* Shared mixin-like rule for all shimmer targets */
body.player-hydrating .hero-firstname,
body.player-hydrating .hero-lastname,
body.player-hydrating .hero-pos-badge,
body.player-hydrating .hero-stat-val,
body.player-hydrating .hero-stat-lbl,
body.player-hydrating .statbox-cell-val,
body.player-hydrating .statbox-cell-lbl,
body.player-hydrating .statbox-mini-val,
body.player-hydrating .statbox-mini-lbl,
body.player-hydrating .info-val,
body.player-hydrating .info-lbl,
body.player-hydrating .pcard-title,
body.player-hydrating .pcard-season {
  color: transparent !important;
  background: transparent !important;
  border-color: transparent !important;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  display: inline-block;
}

body.player-hydrating .hero-firstname::after,
body.player-hydrating .hero-lastname::after,
body.player-hydrating .hero-pos-badge::after,
body.player-hydrating .hero-stat-val::after,
body.player-hydrating .hero-stat-lbl::after,
body.player-hydrating .statbox-cell-val::after,
body.player-hydrating .statbox-cell-lbl::after,
body.player-hydrating .statbox-mini-val::after,
body.player-hydrating .statbox-mini-lbl::after,
body.player-hydrating .info-val::after,
body.player-hydrating .info-lbl::after,
body.player-hydrating .pcard-title::after,
body.player-hydrating .pcard-season::after {
  content: "";
  position: absolute;
  inset: 10% 0;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.18) 40%,
    rgba(255, 255, 255, 0.06) 100%
  );
  background-size: 400px 100%;
  animation: player-sk-shimmer 1.4s ease-in-out infinite;
}

/* Light-background cards (profile body) use a darker shimmer tint */
body.player-hydrating .profile-body .info-val::after,
body.player-hydrating .profile-body .info-lbl::after,
body.player-hydrating .profile-body .pcard-title::after,
body.player-hydrating .profile-body .pcard-season::after,
body.player-hydrating .profile-body .statbox-cell-val::after,
body.player-hydrating .profile-body .statbox-cell-lbl::after,
body.player-hydrating .profile-body .statbox-mini-val::after,
body.player-hydrating .profile-body .statbox-mini-lbl::after {
  background: linear-gradient(
    90deg,
    rgba(15, 30, 60, 0.045) 0%,
    rgba(15, 30, 60, 0.13) 40%,
    rgba(15, 30, 60, 0.045) 100%
  );
  background-size: 400px 100%;
}

/* Keep info-row labels in light-card readable colour during shimmer */
body.player-hydrating .profile-body .info-lbl,
body.player-hydrating .profile-body .pcard-title {
  color: transparent !important;
}

/* Hide the empty table placeholders outright — they flash as odd blank rows */
body.player-hydrating #gamesList,
body.player-hydrating #linksList,
body.player-hydrating #sponsorshipContent,
body.player-hydrating #linksCard,
body.player-hydrating #sponsorshipCard {
  visibility: hidden;
}

/* Hide the back-link until content arrives */
body.player-hydrating .back-link {
  visibility: hidden;
}

/* ── End skeleton shimmer ─────────────────────────────────────────────────── */

/* ── Hero section ── */
.hero {
  position: relative;
  min-height: var(--hero-photo-h);
  background: var(--navy);
  overflow: hidden;
  isolation: isolate;
  clip-path: inset(0 round var(--r));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--r);
}

/* ── Grain overlay ── */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../../img/img-static/bg-noise.webp');
  background-size: 160px;
  mix-blend-mode: screen;
  z-index: 12;
  pointer-events: none;
  opacity: 0.5;
}

/* ── Arena background image ── */
.hero-bg {
  position: absolute;
  inset: 0;
  /* background-image is set lazily via JS once the asset loads */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  opacity: 0;
  mix-blend-mode: exclusion;
  transition: opacity 0.6s ease;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--gold) 0%,
    var(--gold) 35%,
    var(--navy) 35%,
    var(--navy) 65%,
    var(--gold) 65%,
    var(--gold) 100%
  );
  mix-blend-mode: color;
}

/* ── Left badge strip ── */
.hero-badge-strip {
  position: absolute;
  right: 28px;
  top: 0;
  bottom: 0;
  width: 72px;
  /* background-image set by JS based on foeli_enabled flag */
  background-repeat: repeat-y;
  background-position: left top;
  background-size: contain;
  z-index: 1;
  opacity: 0.75;
  visibility: hidden; /* revealed by JS once image URL is set */
}

/* Breadcrumb */
.hero-crumb {
  position: absolute;
  top: 20px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 20;
}

.hero-crumb a,
.hero-crumb span {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  transition: color 0.15s;
}

.hero-crumb a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.hero-crumb-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.hero-crumb .current {
  color: rgba(255, 255, 255, 0.65);
}

/* Player number - top right */
.hero-num {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.35);
  z-index: 20;
  font-variant-numeric: tabular-nums;
}

/* ── Player photo — single clean layer ── */
.hero-photo {
  position: absolute;
  right: 0;
  bottom: 0;
  top: 30px;
  width: 62%;
  z-index: 4;
  display: flex;
  align-items: start;
  justify-content: center;
  overflow: visible;
}

@media (max-width: 900px) {
  .hero-photo {
    top: 0;
  }
}

.hero-photo img {
  height: 140%;
  width: auto;
  /* max-width: 100%; */
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: drop-shadow(0 0 0.75rem var(--navy));
}

/* Gradients layered above photo */

.hero-grad-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 65%;
  background: linear-gradient(
    180deg,
    rgba(15, 30, 60, 0) 0%,
    rgba(15, 30, 60, 0.65) 50%,
    rgba(15, 30, 60, 0.92) 75%,
    var(--navy) 100%
  );
  z-index: 6;
}

/* Main content area */
.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 28px 28px;
  width: 100%;
}

/* Position + nationality row */
.hero-meta-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.hero-nat-badge {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255);
  background: var(--navy);
  padding: 3px 9px;
  border-radius: 5px;
}

.hero-nat-badge.foreigner {
  color: var(--gold);
  background: rgba(240, 180, 41, 0.2);
  border: 1px solid rgba(240, 180, 41, 0.35);
}

.hero-pos-badge,
.hero-foeli-badge {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-white);
  background: var(--navy);
  padding: 3px 9px;
  border-radius: 5px;
}

/* Player name */
.hero-firstname {
  font-size: clamp(1rem, 3.5vw, 1.4rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.hero-name-num {
  display: flex;
  align-items: center;
  gap: var(--gap);
}

.hero-lastname {
  font-size: clamp(2.4rem, 8vw, 4.8rem);
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.04em;
  line-height: 0.92;
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* Key stats strip */
.hero-stats {
  display: flex;
  gap: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  flex-wrap: wrap;
  row-gap: 12px;
  width: -webkit-fit-content;
}

/* While waiting for remote stats: reserve layout space but stay invisible */
.hero-stats--pending,
.statbox--pending {
  visibility: hidden;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: 28px;
  position: relative;
}

.hero-stat + .hero-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-stat + .hero-stat {
  padding-left: 28px;
}

.hero-stat-val {
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hero-stat-lbl {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.36);
}

/* ══════════════════════════════════════
   PROFILE BODY - below hero
   ══════════════════════════════════════ */
.profile-body {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.profile-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
.profile-cols--no-left .profile-left-stack {
  display: none;
}
.profile-cols--no-left .info-card {
  grid-column: 1 / -1;
}
.profile-cols--no-games .career-card {
  grid-column: 1 / -1;
}

/* ── Shared card shell ── */
.pcard {
  background: var(--card);
  border-radius: var(--r);
  border: 1.5px solid var(--border);
  overflow: hidden;
}

.pcard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  height: 64px;
  flex-shrink: 0;
}

.pcard-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.pcard-season {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--ink-dim);
  background: var(--ink-faint);
  padding: 3px 9px;
  border-radius: 6px;
}

/* ── Statbox ── */
.statbox {
  padding-bottom: 20px;
}

.statbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.statbox-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 18px 10px;
  text-align: center;
  position: relative;
}

.statbox-cell + .statbox-cell::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: var(--border);
}

.statbox-cell-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.statbox-cell-lbl {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* Second row (smaller) */
.statbox-row2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}

.statbox-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 8px;
  text-align: center;
  position: relative;
}

.statbox-mini + .statbox-mini::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--border);
}

.statbox-mini-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.statbox-mini-lbl {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ── Info card ── */
.info-card {
  padding-bottom: 20px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 22px;
  border-top: 1px solid var(--border);
}

.pcard-header + .info-row {
  border-top: none;
}

.info-lbl {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.info-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
}

.info-val--accent {
  color: var(--navy);
}

/* ── Last games card ── */
.games-card {
  padding-bottom: 20px;
  container-type: inline-size;
}

#gamesList {
  overflow-x: auto;
  scrollbar-width: none;
}

.games-table {
  width: 100%;
  border-collapse: collapse;
}

.games-table thead th {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-align: center;
  padding: 8px 10px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.games-table thead th:first-child,
.games-table tbody td:first-child {
  padding-left: 22px;
}

.games-table thead th:last-child,
.games-table tbody td:last-child {
  padding-right: 22px;
}

.games-table thead th.games-num,
.games-table tbody td.games-num {
  text-align: center;
}

.games-table tbody td {
  padding: 10px;
  height: 44px;
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.games-table tbody tr:hover {
  background: var(--ink-faint);
}

.games-table tbody tr:last-child td {
  border-bottom: none;
}

.games-date {
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--ink-dim);
  text-align: center;
}

.games-opp {
  font-weight: 700;
  text-align: center;
}

.games-score {
  font-weight: 800;
  text-align: center;
}

.game-result {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.game-result--w {
  background: rgba(26, 107, 58, 0.12);
  color: var(--green);
}

.game-result--l {
  background: rgba(200, 40, 40, 0.1);
  color: #b52828;
}

.game-result--otw {
  background: rgba(240, 180, 41, 0.15);
  color: #b38000;
}

@container (max-width: 360px) {
  .games-table thead th {
    padding: 6px 4px;
  }

  .games-table thead th:first-child,
  .games-table tbody td:first-child {
    padding-left: 10px;
  }

  .games-table thead th:last-child,
  .games-table tbody td:last-child {
    padding-right: 10px;
  }

  .games-table tbody td {
    padding: 7px 4px;
    height: auto;
    font-size: 0.67rem;
  }
}

/* ── Career card ── */
.career-card {
  padding-bottom: 20px;
  container-type: inline-size;
}

.career-table-wrap {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.career-table {
  width: 100%;
  border-collapse: collapse;
}

.career-table th {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-align: center;
  padding: 8px 10px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.career-table th:first-child {
  padding-left: 22px;
}

.career-table th:last-child {
  padding-right: 22px;
}

.career-table th:not(:first-child) {
  text-align: center;
}

.career-table td {
  padding: 10px;
  height: 45px;
  font-size: 0.72rem;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  text-wrap-mode: nowrap;
}

.career-table tr:last-child td {
  border-bottom: none;
}

.career-table tbody tr:hover {
  background: var(--ink-faint);
}

.career-table td:not(:first-child) {
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.career-table td:first-child {
  padding-left: 22px;
  font-weight: 600;
  text-align: center;
}

.career-table td:last-child {
  padding-right: 22px;
}

/* Team column absorbs all remaining horizontal space
.career-table th:nth-child(2),
.career-table td:nth-child(2) {
  width: 99%;
} */

/* ── Shared outer-column widths — keeps both tables visually aligned ── */
.games-table th:first-child,
.games-table td:first-child,
.career-table th:first-child,
.career-table td:first-child {
  width: 62px;
}

.games-table th:last-child,
.games-table td:last-child,
.career-table th:last-child,
.career-table td:last-child {
  width: 48px;
}

.career-table .career-season {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--ink-dim);
  text-align: center;
}

.career-table tr.current-season td {
  background: rgba(15, 30, 60, 0.03);
  font-weight: 700;
}

.career-table tr.current-season td:first-child {
  font-weight: 800;
  color: var(--navy);
}

/* ── Career table pagination ── */
.career-pager {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.career-pager-info {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  min-width: 32px;
  text-align: center;
}

.career-pager-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 0.75rem;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}

.career-pager-btn:hover:not(:disabled) {
  background: var(--ink-faint);
}

.career-pager-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 8px 0;
  transition: color 0.15s;
}

.back-link:hover {
  color: var(--ink);
}

.back-link svg {
  transition: transform 0.15s;
}

.back-link:hover svg {
  transform: translateX(-3px);
}

/* ══════════════════════════════════════
   RESPONSIVE - PLAYER DETAIL
   ══════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-photo {
    width: 100%;
    align-items: end;
  }

  .hero-photo img {
    /* width: 60%; */
    height: 95%;
  }

  .profile-cols {
    grid-template-columns: 1fr;
  }

  .hero-socials {
    display: none;
  }
}

@media (max-width: 580px) {
  :root {
    --hero-photo-h: 65vh;
  }

  .hero-photo {
    width: 100%;
    left: 0;
    align-items: end;
  }

  .hero-photo img {
    height: 90%;
    width: 100%;
  }

  .hero-grad-left {
    background: rgba(15, 30, 60, 0.22);
  }

  .hero-grad-bottom {
    height: 85%;
    background: linear-gradient(
      180deg,
      rgba(15, 30, 60, 0) 50%,
      rgba(15, 30, 60, 0.5) 75%,
      rgba(15, 30, 60, 1) 100%,
      var(--navy) 100%
    );
  }

  .hero-content {
    padding: 16px 18px 22px;
  }

  .hero-crumb {
    left: 18px;
    top: 16px;
  }

  .hero-num {
    right: 18px;
    top: 16px;
  }

  .hero-firstname {
    font-size: 0.95rem;
  }

  .hero-lastname {
    font-size: clamp(2rem, 11vw, 2.8rem);
    margin-bottom: 14px;
  }

  .hero-stat {
    padding-right: 18px;
  }

  .hero-stat + .hero-stat {
    padding-left: 18px;
  }

  .hero-stat-val {
    font-size: 1.4rem;
  }

  .statbox-cell-val {
    font-size: 1.5rem;
  }
}

@container (max-width: 360px) {
  .career-table th,
  .career-table td {
    padding: 7px 4px;
    font-size: 0.65rem;
    height: auto;
  }

  .career-table th:first-child,
  .career-table td:first-child {
    padding-left: 10px;
  }

  .career-table th:last-child,
  .career-table td:last-child {
    padding-right: 10px;
  }
}

@media (max-width: 380px) {
  :root {
    --hero-photo-h: 58vh;
  }

  .hero-stats {
    display: none;
  }

  .hero-lastname {
    font-size: clamp(1.8rem, 12vw, 2.4rem);
    margin-bottom: 0;
  }
}

/* ── Spielerpatenschaft card ── */
.profile-left-stack {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  height: 100%;
}
.profile-left-stack .statbox {
  flex: 1;
}
.sponsorship-card {
  display: flex;
  flex-direction: column;
}
.sponsorship-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px 24px 20px 24px;
  text-decoration: none;
}
.sponsorship-logo {
  max-height: 80px;
  max-width: 240px;
  width: auto;
  object-fit: contain;
  filter: invert(65%) sepia(42%) saturate(10%) hue-rotate(117deg)
    brightness(91%) contrast(120%) grayscale(1);
  transition: filter 0.2s;
}

@media (max-width: 900px) {
  .sponsorship-logo {
    max-height: 60px;
  }
}

.sponsorship-link:hover .sponsorship-logo,
.sponsorship-link:focus .sponsorship-logo {
  filter: none;
}

/* ── Dual logo: light / dark mode swap ── */
.sponsorship-logo--dark {
  display: none;
}
html[data-theme="dark"] .sponsorship-logo--light {
  display: none;
}
html[data-theme="dark"] .sponsorship-logo--dark {
  display: block;
  filter: none;
}

/* ── Hero social buttons ── */
.hero-socials {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-dim);
  text-decoration: none;
  transition:
    color 0.15s,
    background 0.15s;
}

.hero-social-btn:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.1);
}

.hero-social-btn svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 900px) {
  .hero-socials {
    display: none;
  }
}

/* ── Links card (mobile only) ── */
@media (min-width: 901px) {
  .links-card {
    display: none;
  }
}

.links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 16px;
}

.links-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px 7px 10px;
  border-radius: 99px;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  transition:
    color 0.15s,
    border-color 0.15s,
    background 0.15s;
}

.links-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Player linked articles ── */
.player-news {
  padding: 28px 0;
}

.player-news__heading {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 16px;
}

.player-news__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.player-news-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--r);
  border: 1.5px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s;
  position: relative;
}

.player-news-card:hover {
  border-color: rgba(15, 30, 60, 0.2);
}

.player-news-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(140deg, #0c1c38 0%, #1a2e58 50%, #070e20 100%);
  flex-shrink: 0;
}

.player-news-card__thumb--blank {
  background: linear-gradient(140deg, #0c1c38 0%, #1a2e58 50%, #070e20 100%);
}

.player-news-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.player-news-card:hover .player-news-card__img {
  transform: scale(1.04);
}

.player-news-card__info {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.player-news-card__tag {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  align-self: flex-start;
}

.player-news-card__title {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.player-news-card__date {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--ink-dim);
  margin-top: auto;
}

@media (max-width: 900px) {
  .player-news__grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--card);
    border-radius: var(--r);
    border: 1.5px solid var(--border);
    overflow: hidden;
  }

  .player-news-card {
    flex-direction: row;
    align-items: center;
    padding: 12px 16px;
    border-radius: 0;
    gap: 12px;
    border: none;
    border-bottom: 1px solid var(--border);
    background: transparent;
  }

  .player-news-card:last-child {
    border-bottom: none;
  }

  .player-news-card__thumb {
    width: 88px;
    height: 50px;
    aspect-ratio: unset;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .player-news-card__info {
    padding: 0;
    gap: 4px;
  }

  .player-news-card__title {
    -webkit-line-clamp: 2;
  }

  .player-news-card__date {
    margin-top: 0;
  }
}
