:root {
  --blue-pale: #d9e8ee;
}

.players-page { background: #f2f5ef; }
.players-page .site-header { position: relative; z-index: 2; }
.players-intro { display: flex; justify-content: space-between; gap: 2rem; padding: 3vh max(var(--content-gutter), calc((100vw - var(--content-max)) / 2)) 2.2vh; color: #102944; background: #eef3ec; }
.players-kicker { font: 500 .68rem/1.5 var(--mono); letter-spacing: .085em; text-transform: uppercase; }
.players-kicker { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.1rem; color: var(--brand-green); font-family: var(--mono); font-size: 16px; font-weight: 400; line-height: 1.5; letter-spacing: .09em; text-transform: uppercase; }
.players-kicker-line { display: inline-block; flex: 0 0 28px; height: 1px; background: currentColor; }
.players-kicker-years { white-space: nowrap; }
.players-intro h1 { max-width: 720px; margin: 0; font: 700 clamp(2.6rem, 5.5vw, 5.9rem)/.91 var(--serif); letter-spacing: -.06em; }
.players-intro h1 em { color: var(--brand-green); }
.players-intro-note { width: min(28rem, 31vw); align-self: end; padding-bottom: .25rem; }
.players-intro-note p { margin: 0 0 1rem; color: #557087; font-size: 13px; line-height: 1.5; }
.players-layout { background: var(--blue-pale); }
.record-disclosure { border-bottom: 1px solid rgba(16, 41, 68, .14); }
.record-disclosure > summary { color: #102d3f; cursor: pointer; list-style: none; transition: background .2s ease, color .2s ease; }
.record-row-inner { display: grid; grid-template-columns: minmax(12rem, 30%) minmax(0, 1fr) auto auto; align-items: center; gap: 1rem; width: calc(100% - 2 * max(var(--content-gutter), calc((100vw - var(--content-max)) / 2))); max-width: var(--content-max); min-height: 4.25rem; margin-inline: auto; }
.record-disclosure > summary::-webkit-details-marker { display: none; }
.record-disclosure > summary::marker { content: ''; }
.record-disclosure > summary:hover, .record-disclosure > summary:focus-visible { background: #c3dadd; }
.record-disclosure > summary:focus-visible { outline: 3px solid #c48a27; outline-offset: -3px; }
.record-disclosure[open] > summary, .record-disclosure[open] > summary:hover, .record-disclosure[open] > summary:focus-visible { color: var(--paper); background: var(--deep); }
.record-title { font: 700 clamp(1.45rem, 2vw, 1.9rem)/1.1 var(--serif); letter-spacing: -.045em; }
.record-title small { margin-left: .35rem; color: inherit; font: 500 .68rem/1.2 var(--mono); letter-spacing: .04em; white-space: nowrap; }
.record-preview { display: flex; align-items: center; flex-wrap: wrap; gap: .2rem .4rem; color: #365566; font-size: 18px; font-weight: 500; line-height: 1.25; }
.record-preview-person { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.record-preview-flag { display: inline-block; flex: none; width: 22px; height: 15px; object-fit: cover; box-shadow: 0 0 0 1px rgba(16, 45, 63, .12); }
.record-count { color: var(--brand-green); font: 500 .72rem/1.4 var(--mono); white-space: nowrap; }
.record-chevron { color: var(--brand-green); font: 1.4rem/1 var(--sans); transition: transform .2s ease; }
.record-disclosure[open] > summary .record-preview { visibility: hidden; }
.record-disclosure[open] .record-count, .record-disclosure[open] .record-chevron { color: var(--mint); }
.record-disclosure[open] .record-chevron { transform: rotate(180deg); }
.record-panel { background: #e5eee8; }
.record-list { width: 100%; margin: 0; padding: 0; list-style: none; }
.record-list li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid #c1d4c7; }
.record-rank { color: var(--green); font: 500 .72rem/1.4 var(--mono); }
.record-person { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .55rem; min-width: 0; }
.record-person strong { color: var(--deep); font-size: 16px; }
.record-flag { display: inline-block; flex: none; width: 22px; height: 15px; object-fit: cover; box-shadow: 0 0 0 1px rgba(16, 45, 63, .12); }
.record-person a { text-decoration: none; }
.record-person a:hover { color: var(--green); text-decoration: underline; }
.record-person small { color: var(--muted); font: 500 .64rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.record-number { display: flex; align-items: baseline; gap: .4rem; color: var(--deep); font: 700 1.35rem/1 var(--serif); }
.record-number small { color: var(--muted); font: 500 .64rem/1 var(--mono); text-transform: uppercase; }
.record-list-editions .record-edition-row { grid-template-columns: 3.5rem minmax(0, 1fr) auto; }
.record-list-editions .record-edition-row--plain { grid-template-columns: 3.5rem minmax(0, 1fr); }
.record-year { color: var(--green); font: 500 14px/1.4 var(--mono); }
.record-people { display: grid; gap: .45rem; min-width: 0; }
.record-person-empty strong { color: var(--muted); font-weight: 500; }
.record-edition-note { color: var(--muted); font: 500 .64rem/1.4 var(--mono); letter-spacing: .04em; text-align: right; text-transform: uppercase; }
.photo-credits { max-width: 1440px; margin: 0 auto; padding: 1.5rem var(--content-gutter) 2.5rem; border-top: 1px solid #c1d1c6; }
.photo-credits summary { width: fit-content; color: #14674d; font-size: .85rem; font-weight: 700; cursor: pointer; }
.photo-credits summary:focus-visible { outline: 3px solid #c48a27; outline-offset: 4px; }
.photo-credits summary span { display: inline-block; margin-left: .5rem; }
.photo-credits[open] summary span { transform: rotate(180deg); }
.photo-credits p { max-width: 45rem; color: #58717a; font-size: .85rem; line-height: 1.55; }
.photo-credits ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem 2rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.photo-credits li { display: grid; gap: .15rem; padding-top: .6rem; border-top: 1px solid #c1d1c6; font-size: .78rem; line-height: 1.4; }
.photo-credits li a { color: #0c354a; font-weight: 700; }
.photo-credits li span { color: #58717a; }

@media (max-width: 850px) {
  .photo-credits ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .players-intro { flex-direction: column; padding: 2.8rem 5vw 1.8rem; }
  .record-row-inner { width: calc(100% - 10vw); }
  .players-kicker { font-size: 14px; }
  .players-intro-note { width: 100%; max-width: 28rem; margin-left: auto; }
}
@media (max-width: 600px) {
  .record-row-inner { grid-template-columns: minmax(0, 1fr) auto auto; gap: .7rem; }
  .record-preview { display: none; }
  .record-list li { grid-template-columns: 2rem minmax(0, 1fr) auto; gap: .6rem; }
  .record-list-editions .record-edition-row { grid-template-columns: 2.8rem minmax(0, 1fr) auto; }
  .record-list-editions .record-edition-row--plain { grid-template-columns: 2.8rem minmax(0, 1fr); }
  .record-person { gap: .2rem .4rem; }
  .record-number small { display: none; }
  .record-edition-note { max-width: 6rem; }
  .photo-credits ul { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .players-page .site-header { gap: .5rem; }
  .players-page .wordmark { gap: .5rem; font-size: .82rem; }
  .players-page .wordmark-mark { width: 30px; height: 30px; }
  .players-page .site-nav { gap: .5rem; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .record-disclosure > summary, .record-chevron { transition: none; }
}

/* Record rows use the disclosure treatment from the teams page. */
.record-list > .record-item { display: block; padding: 0; border-bottom: 1px solid #a9cbb6; }
.record-entry-heading, .record-list-editions .record-edition-row--plain { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) auto; align-items: center; gap: 1rem; min-height: 3.78rem; padding: .65rem max(var(--content-gutter), calc((100vw - var(--content-max)) / 2)); color: #145a43; background: #d8eade; cursor: pointer; list-style: none; transition: background .3s ease, color .3s ease; }
.record-entry-heading::-webkit-details-marker { display: none; }
.record-entry-heading::marker { content: ''; }
.record-entry-heading:hover { background: #c2dec9; }
.record-entry-heading:focus-visible { outline: 3px solid #0c6046; outline-offset: -3px; }
.record-entry[open] > .record-entry-heading, .record-entry[open] > .record-entry-heading:hover { color: var(--paper); background: var(--green); }
.record-entry[open] > .record-entry-heading:focus-visible { outline-color: var(--mint); }
.record-entry-heading .record-person strong { color: inherit; font: 700 clamp(1.25rem, 1.75vw, 1.625rem)/1.1 var(--serif); letter-spacing: -.04em; }
.record-entry-heading .record-year, .record-entry-heading .record-rank { color: inherit; }
.record-entry-meta { display: inline-flex; align-items: center; justify-self: end; gap: .75rem; min-width: 0; }
.record-entry-heading .record-number { color: inherit; }
.record-entry-heading .record-number small, .record-entry-heading .record-edition-note { color: inherit; }
.record-entry-chevron { color: var(--green); font: 1.5rem/1 var(--sans); transition: transform .2s ease; }
.record-entry[open] .record-entry-chevron { color: var(--mint); transform: rotate(180deg); }
.record-entry-panel { padding: clamp(1.25rem, 2.5vw, 2rem) max(var(--content-gutter), calc((100vw - var(--content-max)) / 2)); background: #f0f5ef; border-top: 1px solid #b8d0bf; }
.record-profile-list { display: grid; gap: 1.5rem; }
.record-profile { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 1.25rem; padding-top: 1.25rem; border-top: 1px solid #c4d8ca; }
.record-profile:first-child { padding-top: 0; border-top: 0; }
.record-profile-media { min-width: 0; }
.record-profile-image { display: block; width: 100%; aspect-ratio: 4/4.5; object-fit: cover; background: #c7dacf; }
.record-profile-image[src$="/61.webp"] { object-position: center top; }
.record-profile-image[src$="/46.webp"] { object-position: center top; }
.record-profile-image[src$="/81.webp"] { object-position: center top; }
.record-profile-image[src*="Hristo-Stoichkov-celebrates"] { object-position: 92% center; }
.record-profile-copy h3 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .75rem; color: var(--deep); font: 700 clamp(1.45rem, 2vw, 2rem)/1.1 var(--serif); }
.record-profile-stats { display: flex; flex-wrap: wrap; gap: .75rem clamp(1.5rem, 3vw, 3rem); width: fit-content; max-width: 100%; margin: 0; padding: .85rem 0; border-top: 1px solid #c4d8ca; }
.record-profile-stats > div { flex: none; }
.record-profile-stats dt, .record-profile-awards-label { color: #527168; font: 500 .66rem/1.35 var(--mono); letter-spacing: .055em; text-transform: uppercase; }
.record-profile-stats dd { margin: .35rem 0 0; color: var(--deep); font: 700 1.65rem/1 var(--serif); }
.record-profile-awards { display: flex; align-items: flex-start; gap: .9rem; padding: .75rem 0; border-bottom: 1px solid #c4d8ca; }
.record-profile-details > :first-child { border-top: 1px solid #c4d8ca; }
.record-profile-awards-label { flex: 0 0 4.5rem; padding-top: .3rem; }
.record-profile-awards-list { display: flex; flex-wrap: wrap; gap: .4rem; min-width: 0; }
.record-profile-award { padding: .25rem .5rem; color: #145a43; background: #d8eade; font-size: .76rem; line-height: 1.4; }
.record-profile-placement--gold { color: #654408; background: #f1dfa4; }
.record-profile-placement--silver { color: #344750; background: #dce3e6; }
.record-profile-placement--bronze { color: #683b25; background: #e9c8ac; }
.record-profile-text { padding-top: 1rem; }
.record-profile-link { display: inline-flex; align-items: center; gap: .7rem; min-height: 2.4rem; padding: .5rem .85rem; color: var(--paper); background: var(--green); font-size: .82rem; font-weight: 700; text-decoration: none; transition: background .2s ease; }
.record-profile-link:hover { background: var(--deep); }
.record-profile-link span { font-size: 1rem; }
.record-profile-source { display: block; width: fit-content; max-width: 100%; margin-top: .55rem; color: var(--green); font: 600 .72rem/1.5 var(--mono); }
@media (max-width: 600px) {
  .record-entry-heading, .record-list-editions .record-edition-row--plain { grid-template-columns: 2.8rem minmax(0, 1fr) auto; gap: .6rem; padding-block: .7rem; }
  .record-entry-heading .record-person strong { font-size: 1.2rem; }
  .record-entry-meta { gap: .4rem; }
  .record-entry-heading .record-edition-note { display: none; }
}
@media (max-width: 600px) {
  .record-profile { grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); column-gap: 1rem; row-gap: 0; }
  .record-profile-media { grid-column: 1; grid-row: 1; width: 12rem; max-width: 100%; }
  .record-profile-copy { display: contents; }
  .record-profile-lead { grid-column: 2; grid-row: 1; min-width: 0; align-self: start; }
  .record-profile-details { grid-column: 1 / -1; grid-row: 2; }
  .record-profile-copy h3 { min-width: 0; font-size: 1.3rem; overflow-wrap: anywhere; }
  .record-profile-stats dd { font-size: 1.4rem; }
  .record-profile-awards { flex-direction: column; gap: .35rem; }
  .record-profile-awards-label { flex-basis: auto; padding-top: 0; }
}
@media (max-width: 459px) {
  .record-profile { grid-template-columns: min(12rem, 40vw) minmax(0, 1fr); }
  .record-profile-media { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .record-entry-heading, .record-entry-chevron { transition: none; }
}
