.player-profile-link {
  color: inherit;
  text-decoration: none;
  font: inherit;
}

.player-profile-link:hover {
  color: var(--impact-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.impact-site .rank-hero-player.rank-1 .player-profile-link:hover,
.impact-site .rank-hero-player.rank-1 .player-profile-link:focus-visible {
  color: var(--impact-white);
  outline-color: var(--impact-white);
}

.impact-site .featured a:hover,
.impact-site .featured a:focus-visible,
.impact-site .match a:hover,
.impact-site .match a:focus-visible {
  text-decoration: none;
}

.impact-site .featured.is-live .player-profile-link:hover,
.impact-site .featured.is-live .player-profile-link:focus-visible {
  color: #c5c5ca;
  outline-color: var(--impact-neutral-200);
}

.player-profile-link:focus-visible,
.profile-chart-point:focus-visible {
  outline: 2px solid var(--impact-red);
  outline-offset: 3px;
}

.player-page { padding-top: 34px; }
.profile-back { display: inline-block; margin-bottom: 22px; color: var(--impact-ink); font-size: 12px; font-weight: 750; }
.profile-layout { display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); gap: 32px; align-items: start; }
.profile-card { background: white; border-bottom: 5px solid var(--impact-ink); }
.profile-photo { height: 330px; background: radial-gradient(ellipse at 50% 38%, #fff 8%, #eeeff0 48%, #d0d1d4 100%); }
.profile-photo img,
.profile-photo .player-silhouette { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; color: #171719; }
.profile-card-copy { padding: 24px; }
.impact-site .profile-card-copy > .impact-eyebrow { margin-left: 0; }
.profile-card h1 { margin: 10px 0 8px; font-family: var(--impact-display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 44px; line-height: 1; }
#profileCategory { color: var(--muted); font-size: 12px; }
.profile-facts { margin: 20px 0 0; }
.profile-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line-soft); }
.profile-facts dt { color: var(--muted); font-size: 11px; }
.profile-facts dd { margin: 0; font-size: 13px; font-weight: 800; text-align: right; }
.profile-facts .country-with-flag { display: inline-flex; align-items: center; gap: 6px; }
.profile-content { min-width: 0; }
.profile-history { background: white; border-top: 5px solid var(--impact-ink); }
.profile-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; }
.profile-section-head h2 { margin: 0; font-family: var(--impact-display); font-size: 30px; font-weight: 900; font-style: italic; text-transform: uppercase; line-height: 1; }
#profileHistory { padding: 0 24px 22px; min-height: 250px; }
.profile-chart-stats { display: flex; flex-wrap: wrap; gap: 20px 32px; margin: 0 0 20px; }
.profile-chart-stats dt { color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.profile-chart-stats dd { margin: 0; font-size: 18px; font-weight: 800; }
.profile-chart { position: relative; }
.profile-chart svg { display: block; width: 100%; overflow: visible; }
.profile-chart text { font: 11px Inter, Arial, sans-serif; fill: #69696e; }
.profile-chart-grid { stroke: #ededee; }
.profile-chart-line { fill: none; stroke: var(--impact-red); stroke-width: 3; stroke-linejoin: round; }
.profile-chart-area { fill: var(--impact-red); opacity: 0.055; }
.profile-chart-point { fill: var(--impact-red); stroke: white; stroke-width: 2; cursor: pointer; }
.profile-chart-point:focus { stroke: var(--impact-ink); }
.profile-chart-tooltip { position: absolute; z-index: 2; transform: translate(-50%, -140%); max-width: 220px; padding: 7px 9px; background: var(--impact-ink); color: white; font-size: 11px; white-space: nowrap; pointer-events: none; }
.profile-recorded { margin-top: 18px; font-size: 12px; }
.profile-history-gap-note { margin: 16px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.profile-missing-week td { color: var(--muted); }
.profile-recorded summary { display: flex; align-items: center; gap: 9px; cursor: pointer; font-weight: 750; list-style: none; }
.profile-recorded summary::-webkit-details-marker { display: none; }
.profile-recorded summary::marker { content: ""; }
.profile-recorded summary::before { content: ""; width: 6px; height: 6px; flex: 0 0 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.profile-recorded[open] summary::before { transform: rotate(45deg); }
.profile-recorded table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.profile-recorded th,
.profile-recorded td { padding: 10px 0; text-align: left; border-bottom: 1px solid var(--line-soft); }
.profile-recent { margin-top: 28px; }
.profile-recent .profile-section-head { padding: 0 0 18px; border-bottom: 3px solid var(--impact-ink); }
.profile-recent .visibility-control { display: flex; align-items: center; padding: 9px 11px; background: var(--impact-ink); color: white; }
#profileMatches { margin-top: 8px; }
.profile-match-date { display: block; margin-bottom: 8px; font-size: 10px; font-weight: 650; color: var(--muted); }
.profile-matches-pagination { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; margin-top: 20px; padding: 12px 18px; border-top: 1px solid #77777d; background: #fafafa; font: 700 11px var(--impact-ui); }
.profile-matches-pagination[hidden] { display: none; }
.profile-matches-pagination button { display: inline-flex; align-items: center; justify-self: start; gap: 10px; min-width: 0; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--impact-red); font: inherit; text-align: left; cursor: pointer; }
.profile-matches-pagination button:last-of-type { justify-self: end; text-align: right; }
.profile-matches-pagination button:hover:not(:disabled) { color: var(--impact-red-dark); }
.profile-matches-pagination button:disabled { color: #98999f; cursor: default; }
.profile-matches-pagination button svg { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.profile-match-page-status { color: var(--impact-ink); text-align: center; white-space: nowrap; }
.profile-matches-pagination button:focus-visible { outline: 3px solid var(--impact-red); outline-offset: 3px; }
.profile-matches-pagination-error { grid-column: 1 / -1; margin: 0; text-align: center; color: var(--impact-red); }
.player-page .t-time { padding: 16px 10px; }
.player-page .t-item { grid-template-columns: 92px minmax(0, 1fr); }
.player-page .result-sensitive { transition: filter 0.15s; }
body.hide-results .player-page .result-sensitive { pointer-events: none; }

@media (max-width: 800px) {
  .profile-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .profile-photo { height: 360px; }
  .profile-card-copy { padding: 22px; }
}

@media (max-width: 480px) {
  .profile-section-head { padding: 18px 16px; gap: 10px; }
  .profile-section-head h2 { font-size: 26px; }
  #profileHistory { padding: 0 16px 20px; }
  .profile-chart-stats { gap: 16px; }
  .profile-chart-stats dd { font-size: 16px; }
  .player-page .t-item { grid-template-columns: 64px minmax(0, 1fr); }
  .player-page .match { padding: 14px 12px; }
  .player-page .t-time strong { font-size: 22px; }
}
