:root{color-scheme:dark;--bg:#111519;--panel:#1b2128;--sub:#222a33;--line:#303944;--text:#f1f5f8;--muted:#aeb9c5;--dim:#8796a5;--accent:#baf988;--accent-ink:#162310;--gold:#f1c977;--max:1260px;font:16px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);min-height:100vh}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,textarea,select{outline-offset:3px}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accent)}button{cursor:pointer}p{margin:0 0 16px}small{color:var(--muted)}h1,h2,h3{line-height:1.11;margin:0;letter-spacing:-.035em}h2{font-size:1.55rem}h3{font-size:1.12rem}.muted{color:var(--muted)}.dim{color:var(--dim)}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.skip{position:absolute;left:-900px}.skip:focus{left:12px;top:9px;background:var(--accent);color:var(--accent-ink);z-index:9;padding:10px}.top{background:#101318;border-bottom:1px solid var(--line)}.top-inner,.footer-inner{max-width:1460px;margin:auto;padding:0 clamp(14px,3vw,43px);display:flex;align-items:center;gap:24px}.top-inner{min-height:63px}.brand{font-size:1.25rem;letter-spacing:-.045em;font-weight:860;display:flex;align-items:center;gap:9px;white-space:nowrap}.wordmark{font-weight:630;color:var(--muted);margin-left:4px}.crest{background:var(--accent);color:#172010;width:31px;height:34px;display:grid;place-items:center;clip-path:polygon(0 0,100% 0,100% 76%,50% 100%,0 76%);font:900 20px/1 system-ui}nav{display:flex;gap:3px;align-items:center;flex:1;min-width:0;overflow:auto;scrollbar-width:none}nav a{white-space:nowrap;padding:7px 10px;border-radius:6px;color:var(--muted);font-size:.83rem;font-weight:700}nav a:hover,.search-button:hover{background:var(--sub);color:var(--text)}nav a.active{background:#293a26;color:var(--accent)}button,.button{background:var(--sub);border:1px solid var(--line);border-radius:7px;color:var(--text);padding:8px 12px;font-weight:650;font-size:.85rem}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px}.button:hover,button:hover{filter:brightness(1.14)}.primary{background:var(--accent);color:var(--accent-ink);border-color:transparent}.search-button{white-space:nowrap;background:#1a2026;color:var(--muted);margin-left:auto}kbd{font-size:.68rem;background:#11161a;border:1px solid var(--line);border-radius:3px;padding:1px 4px}
.ticker{display:flex;overflow:auto;scrollbar-width:thin;background:#161c22;border-bottom:1px solid var(--line);align-items:stretch;padding:0 max(12px,calc((100% - 1440px)/2))}.ticker a{min-width:169px;display:grid;gap:1px;padding:8px 12px;border-right:1px solid var(--line);font-size:.74rem;line-height:1.35}.ticker a:hover{background:#222b34}.ticker a:first-child{border-left:1px solid var(--line)}.ticker .meta{font-size:.60rem;color:var(--accent);font-weight:800;letter-spacing:.1em}.score-team{display:flex;align-items:center;justify-content:space-between;gap:6px}.score-team span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.score-team b{font-variant-numeric:tabular-nums}
main{width:min(calc(100% - 38px),var(--max));margin:0 auto;padding:32px 0 62px;min-height:66vh}.loading,.empty,.message{padding:26px 18px;background:var(--panel);border:1px solid var(--line);border-radius:10px;color:var(--muted)}.heading{padding:7px 0 23px}.heading h1{font-size:clamp(2.25rem,5vw,4rem);font-weight:860;margin-bottom:8px}.heading p{margin:0;color:var(--muted)}.section-head{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:14px}.section-head a{color:var(--accent);font-size:.84rem;font-weight:700}.overline{color:var(--accent);font-size:.73rem;font-weight:850;text-transform:uppercase;letter-spacing:.13em;margin-bottom:8px}.rule-label{display:flex;gap:13px;align-items:center;margin-bottom:12px;color:var(--muted);font-size:.74rem;font-weight:850;letter-spacing:.15em;text-transform:uppercase}.rule-label:after{content:"";height:1px;background:var(--line);flex:1}
.mosaic{display:grid;grid-template-columns:1.55fr 1fr 1fr;grid-template-rows:179px 151px;gap:12px;margin-bottom:26px}.tile{position:relative;isolation:isolate;display:flex;justify-content:flex-end;flex-direction:column;overflow:hidden;min-width:0;padding:19px;border:1px solid #455049;border-radius:12px;background:#192629}.tile img{inset:0;position:absolute;z-index:-2;width:100%;height:100%;object-fit:cover;transition:transform .25s}.tile:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#0e151bea 0%,#1117215e 60%,#10162009)}.tile:hover img{transform:scale(1.035)}.hero{grid-row:span 2;padding:28px;background:#35251b;justify-content:flex-end}.hero img{object-position:54% 66%}.hero:after{background:linear-gradient(90deg,#121719c9,#11161a08 91%),linear-gradient(0deg,#0b1016 0%,#10151800 83%)}.hero h1{font-size:clamp(2.4rem,5.3vw,4.85rem);font-weight:900;letter-spacing:-.07em}.hero p{color:#e2e9e9;max-width:30ch;font-size:.94rem;margin:9px 0 14px}.hero .button{align-self:flex-start}.tile h2{font-size:1.45rem}.tile small{color:#dce4ea;font-size:.78rem}.tile.large{grid-column:span 2}.tile.large img{object-position:center 47%}.tile.art-gold img{object-position:center 31%}
.quick{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:25px}.quick a{background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:12px;color:var(--muted);display:flex;align-items:center;gap:10px;font-size:.85rem}.quick a:hover{color:var(--accent);border-color:#506347}.quick b{color:var(--text);font-size:.95rem}.quick i{font-style:normal;color:var(--accent);font-size:1.15rem}.split,.cards,.gallery,.metric-grid{display:grid;gap:13px;grid-template-columns:repeat(2,minmax(0,1fr))}.cards,.gallery{grid-template-columns:repeat(auto-fit,minmax(min(225px,100%),1fr))}.metric-grid{grid-template-columns:repeat(auto-fit,minmax(min(135px,100%),1fr));margin-bottom:15px}.card,.block,.metric{background:var(--panel);border:1px solid var(--line);border-radius:11px;min-width:0}.block{padding:16px;margin:0 0 16px}.block>h2{margin-bottom:13px}.metric{padding:11px 15px}.metric b{display:block;color:var(--accent);font-size:1.75rem;letter-spacing:-.04em;font-variant-numeric:tabular-nums}.metric span{color:var(--muted);font-size:.8rem}.card{padding:14px}.card:hover{border-color:#60774e}.card h3{margin:6px 0 3px}.tag{display:inline-flex;align-items:center;white-space:nowrap;padding:2px 7px;font-size:.71rem;font-weight:750;color:var(--accent);border:1px solid #465938;border-radius:4px;background:#242f23}.warn{background:#352b20;color:var(--gold);border-color:#705738}.panel-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:13px}.panel-title h2{font-size:1.2rem}.panel-title a{font-size:.82rem;color:var(--accent);font-weight:650}
.filters,.form-grid{display:flex;gap:9px;flex-wrap:wrap;align-items:end;margin:0 0 15px}.filters label,.form-grid label,.field{display:grid;gap:4px;color:var(--muted);font-size:.76rem;font-weight:750}.filters input[type=search]{min-width:min(270px,100%)}input,select,textarea{min-height:39px;color:var(--text);background:#141a20;border:1px solid var(--line);border-radius:6px;padding:7px 9px;font-size:.87rem;max-width:100%}textarea{width:100%;min-height:85px;resize:vertical}input::placeholder{color:#8493a1}form{margin:0}.field{margin-bottom:9px}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:8px;max-width:100%}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:.84rem;font-variant-numeric:tabular-nums;background:#191f25}th,td{padding:9px 11px;text-align:left;border-bottom:1px solid #303944}th{color:#becad4;background:#232c33;font-weight:700;font-size:.75rem}th button{border:0;padding:0;background:none;color:inherit;font:inherit}tbody tr:hover{background:#212a30}tbody tr:last-child td{border-bottom:0}td a{font-weight:650;color:#e8f5e4}td a:hover{color:var(--accent)}.club-mark{display:inline-grid;place-items:center;vertical-align:middle;min-width:26px;height:22px;padding:0 3px;margin-right:5px;border-radius:3px;background:#293759;color:#e4edff;font-size:.60rem;letter-spacing:.04em;font-weight:850}.club-mark.spanish{background:#56302c;color:#ffdacf}.form{display:flex;gap:3px}.form span{display:inline-grid;place-items:center;min-width:20px;height:19px;border-radius:3px;background:#2e3740;color:#d7e0ea;font-size:.66rem}.form .W{background:#2f482d;color:#cef6b0}.form .L{background:#552f35;color:#ffcdd0}.standing-top td:first-child{box-shadow:inset 3px 0 var(--accent)}.result-row{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:9px;text-align:center;padding:9px 0}.result-row b{background:#29372c;color:var(--accent);border-radius:5px;padding:5px 8px;font-variant-numeric:tabular-nums}.match-block{padding:10px 13px;margin-top:8px}.match-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:.72rem}.pagenav{display:flex;align-items:center;gap:8px;margin-top:13px;color:var(--muted);font-size:.78rem}.pagenav button:disabled{opacity:.42;cursor:default}.source-note{border-left:3px solid var(--gold);background:#30291f;padding:9px 13px;color:#f5dfbc;margin:0 0 14px;font-size:.84rem}.hero-link{color:var(--accent)}.gallery figure{margin:0}.media-button{display:block;width:100%;text-align:left;overflow:hidden;padding:0;background:var(--panel);height:100%}.media-button img{width:100%;aspect-ratio:16/10;object-fit:cover;display:block}.media-button strong{display:block;padding:9px 10px}.footer-inner{padding-top:18px;padding-bottom:18px;margin-top:auto;border-top:1px solid var(--line);color:var(--muted);font-size:.82rem;flex-wrap:wrap}.footer-inner strong{color:var(--text)}.footer-inner a:first-of-type{margin-left:auto}.compare-board{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;text-align:center}.compare-board strong{color:var(--accent);font-variant-numeric:tabular-nums}.pill-list{display:flex;gap:7px;flex-wrap:wrap}.status{min-height:26px;color:var(--accent);font-size:.83rem}
dialog{color:var(--text);background:var(--panel);border:1px solid #485461;border-radius:12px;max-width:min(90vw,850px);width:560px;padding:19px}dialog::backdrop{background:#070a0cdb}dialog form{float:right}dialog input{width:100%;margin:12px 0}dialog img{width:100%;max-height:75vh;object-fit:contain}#art{width:850px}#search-results{max-height:60vh;overflow:auto}#search-results a{display:flex;justify-content:space-between;padding:7px 8px;border-bottom:1px solid var(--line)}#search-results a:hover{background:var(--sub)}
@media(max-width:1100px){.top-inner{gap:11px}.top-inner nav a{padding-inline:8px}.search-button kbd{display:none}}
@media(max-width:800px){.top-inner{flex-wrap:wrap;gap:3px 10px;padding-top:9px}.top-inner nav{order:3;flex-basis:100%;padding-bottom:8px}.mosaic{grid-template-columns:1fr 1fr;grid-template-rows:270px 150px 137px}.hero{grid-column:span 2;grid-row:auto}.tile.large{grid-column:span 2}.quick{grid-template-columns:1fr 1fr}.split{grid-template-columns:1fr}}
@media(max-width:480px){main{width:calc(100% - 24px);padding-top:22px}.mosaic{gap:8px;grid-template-rows:250px 135px 116px}.tile{padding:12px}.hero{padding:18px}.tile h2{font-size:1.2rem}.filters{display:grid;grid-template-columns:1fr 1fr}.filters label{min-width:0}.filters input[type=search]{min-width:0;width:100%}.quick a{padding:8px}.footer-inner{gap:10px}}
.profile-hero{background:radial-gradient(at left top,#354633 0%,#20292c 37%,#192027 78%);border:1px solid #435347;min-height:149px;border-radius:14px;display:flex;align-items:center;gap:19px;padding:18px 22px;margin-bottom:15px}.profile-hero h1{font-size:clamp(1.8rem,5vw,3.3rem);overflow-wrap:anywhere}.profile-hero p{margin:5px 0 0;color:var(--muted)}.profile-hero .pill-list{margin-left:auto}.monogram{width:81px;height:81px;flex:0 0 81px;background:#141d1a;border:1px solid #618453;border-radius:16px;display:grid;place-items:center;font-size:1.7rem;font-weight:850;color:var(--accent)}.block .muted:last-child{margin:8px 0 0;font-size:.82rem}@media(max-width:580px){.profile-hero{flex-wrap:wrap;padding:13px;gap:10px}.profile-hero .pill-list{margin-left:0}.monogram{width:52px;height:52px;flex-basis:52px;font-size:1.15rem}}
.club-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:13px;align-items:start}.club-layout aside{position:sticky;top:12px}.profile-hero .monogram .club-mark{margin:0;font-size:1.02rem;padding:7px;height:auto}.tools-nav{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:18px}.tool-tile{display:block;min-height:100px}.tool-tile strong{font-size:1.1rem}.bracket{display:grid;grid-auto-columns:minmax(230px,1fr);grid-auto-flow:column;gap:12px;overflow:auto}.bracket .block{min-width:230px}.club-layout .metric-grid{margin-bottom:0}
@media(max-width:880px){.club-layout{grid-template-columns:1fr}.club-layout aside{position:static;order:-1}}
.match-block{display:block}.tile.large img{object-position:center 27%}

/* Navigation and artwork */
.icon{display:inline-block;flex:none;width:1em;height:1em;vertical-align:-.13em}
.brand-mark{display:block;flex:none;width:38px;height:38px;object-fit:contain}
.top-inner{gap:clamp(7px,1.15vw,18px)}
nav a,.search-button,.pagenav button,.tool-tile strong{display:inline-flex;align-items:center;gap:6px}
.top-inner nav>a .icon{width:15px;height:15px}
.search-button .icon,.menu-button .icon{width:19px;height:19px}
.menu-button{display:none}
.quick-icon{display:grid;place-items:center;flex:none;width:35px;height:35px;border:1px solid #405638;border-radius:8px;background:#25342a;color:var(--accent);font-size:19px}
.tool-tile strong .icon{color:var(--accent)}
.club-mark,.comp-mark{width:24px;height:24px;object-fit:contain;vertical-align:middle;display:inline-block;flex:none;border-radius:0;background:none;padding:0;margin-right:6px}
.comp-mark{width:25px;height:25px;background:#f3f3f1;border-radius:5px;padding:3px}
.comp-name{display:inline-flex;align-items:center;gap:1px}
.card>.comp-mark,.card>.club-mark{width:38px;height:38px;margin-right:9px}
.heading-mark{display:flex;align-items:center;gap:15px}
.heading-mark>.comp-mark{width:65px;height:65px;padding:7px}
.heading-mark h1{margin-bottom:3px}
.profile-hero .monogram .club-mark{width:56px;height:56px;margin:0;padding:0}
.score-team .club-mark{width:18px;height:18px;margin-right:5px}
.match-meta .comp-mark,.ticker .comp-mark{width:18px;height:18px;padding:2px;margin-right:4px}
.ticker a{flex:0 0 181px}
.person-link,#search-results a>b{display:inline-flex;align-items:center;gap:8px}
.avatar{position:relative;display:inline-grid;place-items:center;flex:none;width:29px;height:29px;border-radius:50%;background:#29363a;border:1px solid #44545a;color:#bbcacd;overflow:hidden;vertical-align:middle}
.avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.avatar-large{width:78px;height:78px;font-size:32px;border-radius:18px}
.id-link,.identity-detail{font-variant-numeric:tabular-nums}
.profile-hero .identity-detail{color:var(--muted);font-size:.8rem}
.table-wrap{min-width:0;scrollbar-width:thin;scrollbar-color:#4a5b62 #171e23}
.table-wrap:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
th button{display:inline-flex;align-items:center;gap:4px}
.button .icon{font-size:1rem}
.profile-hero>div:nth-child(2){min-width:0}
main,.split>*,.club-layout>*,.mosaic>*,.form-grid label{min-width:0}
input,textarea,select{width:100%}
.form-grid select{max-width:270px}
input[type=checkbox]{width:auto;min-height:0}

@media(max-width:900px){
  .top-inner{position:relative;display:grid;grid-template-columns:1fr auto auto;min-height:61px;padding:8px 15px;gap:9px}
  .top-inner nav{position:absolute;box-sizing:border-box;z-index:5;top:100%;left:0;right:0;display:none;grid-template-columns:repeat(3,minmax(0,1fr));padding:12px;background:#151a20;border:1px solid var(--line);box-shadow:0 13px 28px #020304a8;border-radius:0 0 11px 11px;overflow:visible}
  .top-inner nav.menu-open{display:grid}
  .top-inner nav a{min-height:44px;align-items:center;padding:7px 8px;font-size:.80rem}
  .menu-button{display:inline-grid;place-items:center;padding:0;width:43px;height:43px}
  .search-button{height:43px;padding:0 11px;min-width:43px;margin-left:0}
  .search-button kbd{display:none}
  .ticker{padding:0 12px;scroll-snap-type:x proximity}
  .ticker a{scroll-snap-align:start}
  .filters,.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .filters label,.form-grid label{min-width:0}
  .filters input[type=search]{min-width:0;width:100%}
  input,textarea,select{min-height:44px;font-size:16px}
  .form-grid select{max-width:100%}
  .pagenav button{min-height:44px}
}

@media(max-width:580px){
  main{width:calc(100% - 24px);padding:19px 0 38px}
  .search-button span{display:none}
  .search-button{display:grid;place-items:center;padding:0}
  .brand-mark{width:33px;height:33px}
  .mosaic{grid-template-rows:244px 112px 126px;margin-bottom:14px}
  .tile.large{grid-column:span 2}
  .tile:not(.hero) p{font-size:.81rem}
  .hero h1{font-size:clamp(2.35rem,10vw,3.4rem)}
  .tile small{font-size:.75rem}
  .quick{margin-bottom:15px;gap:7px}
  .quick a{gap:6px;align-items:flex-start;font-size:.75rem}
  .quick b{font-size:.86rem}
  .quick-icon{width:30px;height:30px;font-size:15px}
  .block{padding:10px;margin-bottom:12px}
  .rule-label{margin-bottom:10px}
  .panel-title h2,.block>h2{font-size:1.1rem}
  .cards,.gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .card{padding:9px}
  .gallery figure,.gallery button{min-width:0}
  .match-block{padding:8px 9px}
  .result-row{gap:5px;font-size:.8rem}
  .result-row>span{display:flex;align-items:center;justify-content:center;gap:3px;min-width:0}
  .result-row .club-mark{margin-right:0;width:19px;height:19px}
  .profile-hero{display:grid;grid-template-columns:auto minmax(0,1fr);padding:13px}
  .profile-hero .pill-list{grid-column:1/-1}
  .profile-hero .monogram,.profile-hero .avatar-large{width:55px;height:55px;flex-basis:55px;font-size:24px}
  .profile-hero .monogram .club-mark{width:40px;height:40px}
  .heading-mark>.comp-mark{width:45px;height:45px;padding:5px}
  .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .metric{padding:8px 10px}
  .metric b{font-size:1.38rem}
  .sticky-player td:first-child,.sticky-player th:first-child{position:sticky;left:0;z-index:1;min-width:115px;max-width:46vw;background:#191f25;box-shadow:3px 0 4px #10141866}
  .sticky-player th:first-child{background:#232c33}
  .sticky-player .person-link{white-space:normal;overflow-wrap:anywhere;gap:6px}
  .sticky-player .avatar{width:24px;height:24px}
  th,td{padding:8px}
  .footer-inner a:first-of-type{margin-left:0}
  dialog{padding:12px;max-width:calc(100vw - 24px)}
}
@media(max-width:370px){
  .top-inner nav{grid-template-columns:repeat(2,minmax(0,1fr))}
  .quick a{align-items:center}
  .quick b{line-height:1.15}
  .quick-icon{width:26px;height:26px}
}
.avatar:has(img[data-loaded])>.icon{visibility:hidden}
.footer-inner a{display:inline-flex;align-items:center;gap:5px}
.compare-board .person-link{justify-content:center;min-width:0;overflow-wrap:anywhere}
.compare-board button .avatar{margin-right:6px}
.heading-icon{display:grid;place-items:center;width:53px;height:53px;flex:none;border:1px solid #405638;border-radius:12px;background:#25342a;color:var(--accent);font-size:28px}
.pins .panel-title h2{display:flex;align-items:center;gap:7px}
.pins .panel-title h2>.icon,.pin-count>.icon{color:var(--accent)}
.pin-count{display:inline-flex;align-items:center;gap:4px}
.pin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr));gap:9px}
.pin-card{display:flex;align-items:flex-start;gap:11px;min-width:0;padding:11px;border:1px solid #384446;background:#242b31;border-radius:9px}
.pin-card.team{border-color:#5a4b35;background:#2c2721}
.pin-card.individual{border-color:#496146}
.pin-mark{display:grid;place-items:center;width:43px;height:43px;flex:none;border-radius:10px;background:#182125;color:var(--accent);font-size:23px}
.pin-card.team .pin-mark{color:var(--gold);background:#3b3023}
.pin-mark .comp-mark{margin:0;width:31px;height:31px}
.pin-body{min-width:0;overflow-wrap:anywhere}
.pin-meta{color:var(--muted);font-size:.72rem;margin-bottom:4px}
.pin-body h3{font-size:1rem;line-height:1.2}
.pin-body small{display:block;margin-top:4px}
@media(max-width:580px){.heading-icon{width:42px;height:42px;font-size:21px}.pin-grid{grid-template-columns:1fr}}
.league-table-title{display:flex;align-items:center;gap:.45rem}
.standings-table th,.standings-table td{font-variant-numeric:tabular-nums}
.standings-table th:not(:nth-child(2)),.standings-table td:not(:nth-child(2)){text-align:center}
.standings-table td:nth-last-child(2){color:var(--accent);font-weight:800}
.standings-table td:nth-child(2) a{display:inline-flex;align-items:center}
.standings-table .form{justify-content:center}
.standings-note{font-size:.85rem}
@media(max-width:580px){
  .standings-table th:first-child,.standings-table td:first-child{position:sticky;left:0;width:2rem;min-width:2rem;z-index:2}
  .standings-table th:nth-child(2),.standings-table td:nth-child(2){position:sticky;left:2rem;z-index:2;max-width:43vw;box-shadow:3px 0 4px #10141866}
  .standings-table th:nth-child(-n+2){background:#232c33}
  .standings-table td:nth-child(-n+2){background:#191f25}
  .standings-table td:nth-child(2) a{white-space:normal}
  .standings-table .club-mark{width:18px;height:18px;margin-right:5px}
}

/* League media archive */
.section-kicker{display:block;font-size:.76rem;font-weight:800;line-height:1.4;letter-spacing:.14em;text-transform:uppercase;color:#bcf393}
.archive-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:8px 0 20px}
.archive-head h1{font-size:clamp(2.35rem,5.3vw,4.7rem);letter-spacing:-.065em;line-height:1.04;margin-top:8px}
.archive-total{display:inline-flex;align-items:center;gap:8px;color:var(--muted);white-space:nowrap;margin-bottom:4px}
.media-filters,.profile-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:thin;padding:3px 3px 12px;margin-bottom:10px}
.media-filters button,.profile-tabs button{white-space:nowrap;color:#cad4d3}
.media-filters button{border-radius:24px;background:transparent;padding:8px 16px;font-size:.9rem}
.media-filters [aria-pressed=true]{color:#182213;background:#c2f59e;border-color:#c2f59e}
.editorial-feed{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-flow:row;gap:12px;margin-bottom:28px}
.editorial-card{position:relative;isolation:isolate;display:flex;align-items:flex-end;width:100%;min-width:0;overflow:hidden;min-height:clamp(240px,28vw,382px);padding:0;text-align:left;background:#151d19;border:1px solid #3b4941;border-radius:14px}
.editorial-card:nth-child(4n+1),.editorial-card:nth-child(4n){grid-column:span 2}
.editorial-card:first-child,.editorial-card:nth-child(2){min-height:clamp(295px,36vw,505px)}
.editorial-card:last-child:nth-child(odd){grid-column:1/-1}
.editorial-card img{position:absolute;z-index:-2;inset:0;width:100%;height:100%;object-fit:cover}
.editorial-card::after{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(180deg,#03060410 22%,#03060430 51%,#020603eb 100%)}
.editorial-copy{display:grid;gap:7px;padding:clamp(18px,2.5vw,38px);max-width:48em;color:#fff}
.editorial-copy strong{font-size:clamp(1.4rem,2.1vw,2.15rem);line-height:1.06;letter-spacing:-.045em}
.editorial-card:first-child strong{font-size:clamp(1.8rem,3.2vw,3.2rem)}
.art-caption{font-weight:450;line-height:1.45;font-size:.93rem;color:#e2e5e0}
.expand-mark{position:absolute;right:15px;top:15px;display:grid;place-items:center;width:37px;height:37px;border:1px solid #ffffff54;border-radius:50%;color:white;background:#0a100ebf}
#art{padding:0;width:min(1000px,93vw);max-height:92vh;border-radius:16px;background:#101615}
#art form{position:absolute;top:12px;right:12px;z-index:1}
#art form button{background:#151d1de8;border-radius:50%;height:42px;width:42px}
.lightbox-stage{display:grid;place-items:center;background:#090c0b}
.lightbox-stage img{display:block;max-height:69vh}
.lightbox-info{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 23px}
.lightbox-info h2{margin:3px 0;font-size:1.45rem}
.lightbox-info p{color:var(--muted);margin:5px 0 0}
.lightbox-nav{display:flex;align-items:center;gap:8px;white-space:nowrap;font-variant-numeric:tabular-nums}
.lightbox-nav button{min-height:42px}
/* Player profiles */
.profile-back{margin:0 0 12px}.profile-back .button{background:transparent}
.player-banner{isolation:isolate;position:relative;display:flex;min-height:242px;overflow:hidden;border:1px solid #44534a;border-radius:18px;background:linear-gradient(110deg,#14251c 0%,#19251f 48%,#354939 100%)}
.banner-content{position:relative;z-index:1;padding:clamp(20px,3vw,44px);width:72%}
.banner-title,.banner-meta,.pin-strip,.pin-strip>span,.banner-portrait{display:flex;align-items:center}
.banner-title{gap:12px;margin:6px 0}
.banner-title h1{font-size:clamp(2.1rem,4.5vw,4.35rem);letter-spacing:-.06em;overflow-wrap:anywhere;min-width:0}
.class-plate{padding:4px 9px;background:#d6bef8;color:#322442;border-radius:7px;font-size:1.2rem;font-weight:850;white-space:nowrap}
.banner-meta{gap:7px;flex-wrap:wrap;color:#c5d0c9;font-size:.95rem}.banner-meta a{font-weight:700}
.banner-identity{margin:12px 0 10px;color:#bbc6c1;font-size:.85rem}
.wdl{letter-spacing:.03em}.wdl i{color:#abe792;font-style:normal}.wdl i:last-child{color:#ffa09a}
.banner-portrait{position:absolute;inset:0 0 0 auto;width:31%;justify-content:center;background:linear-gradient(125deg,transparent 10%,#adcba61f)}
.banner-portrait>.club-mark{position:absolute;width:100%;height:125%;inset:-5% 0 auto auto;opacity:.14;transform:rotate(-12deg);filter:grayscale(.5)}
.banner-portrait .avatar{width:clamp(105px,13vw,180px);height:clamp(105px,13vw,180px);border-radius:50%;font-size:4rem;border:2px solid #c2d2b97d;box-shadow:0 20px 48px #03060366;background:#2a3731;color:#b5c8bc}
.banner-portrait .avatar img{object-fit:cover}
.pin-strip{margin-top:13px;gap:2px;padding:3px 10px 3px 6px;max-width:100%;background:#101a14b8;border-color:#4c604f;border-radius:28px}
.pin-strip>span{justify-content:center;width:25px;height:26px;min-width:0;color:var(--gold)}
.pin-strip b{font-size:.79rem;margin-left:4px;white-space:nowrap;color:#dbe9d7}
.trophy-art{width:100%;height:100%;object-fit:contain}
.pin-card .pin-mark{width:65px;height:65px;padding:4px}.pin-card{align-items:center}
.profile-tabs{margin:15px 0 22px;border-bottom:1px solid var(--line);padding-bottom:0}
.profile-tabs button{display:inline-flex;align-items:center;gap:7px;border:0;border-bottom:3px solid transparent;background:transparent;border-radius:0;padding:11px 15px}
.profile-tabs [aria-pressed=true]{border-bottom-color:var(--accent);color:var(--accent)}
.stat-podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0 0 9px}
.profile-stat{display:flex;flex-direction:column;justify-content:space-between;gap:12px;border:1px solid #3d4745;border-radius:13px;padding:18px 22px;background:#1c2422}
.profile-stat span{color:#cad4d0;font-weight:700;font-size:.9rem}
.profile-stat b{font-size:clamp(2.2rem,4.3vw,4rem);letter-spacing:-.06em;line-height:1;font-variant-numeric:tabular-nums}
.gold b{color:#f1c977}.violet b{color:#b5a7fc}.lime b{color:#baf988}
.player-page .metric-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.player-page .metric{border-radius:10px}
.player-page .split{align-items:start}.player-page .block{overflow:hidden}
.form-selector{display:flex;justify-content:flex-end;margin-bottom:4px}.form-selector label{display:flex;align-items:center;gap:8px;font-size:.84rem;color:var(--muted)}
.form-graph{overflow-x:auto;padding:8px 0}
.form-chart{display:block;width:100%;height:110px}.form-chart g{stroke:#3b464c;stroke-width:1;stroke-dasharray:3 5}
.form-chart polyline{fill:none;stroke:#baf988;stroke-width:2.5;vector-effect:non-scaling-stroke}.form-chart circle{fill:#d4f9bb}
.form-results{display:flex;align-items:start;margin:0 0 10px}.form-results a{flex:1;min-width:0;display:grid;justify-items:center;gap:5px;font-variant-numeric:tabular-nums}
.form-results a>b,.rating-tag{color:#c1f99e;font-size:.96rem;background:#2c3e30;border-radius:5px;padding:1px 5px}.form-results a span{font-size:.76rem;white-space:nowrap;color:#d1dad8}.form-results .club-mark{width:18px;height:18px;margin-right:0}
.rank-row{display:grid;align-items:center;grid-template-columns:minmax(8em,1fr) 2em 1fr 5em;gap:9px;padding:13px 0;border-bottom:1px solid var(--line);font-size:.94rem}
.rank-row:last-of-type{margin-bottom:9px}.rank-row small{text-align:right}.rank-row b{text-align:right}
.rank-row meter{width:100%;height:8px;appearance:none;border:0;background:#3c4547;border-radius:10px}.rank-row meter::-webkit-meter-bar{background:#3c4547;border:0;border-radius:10px}.rank-row meter::-webkit-meter-optimum-value{background:#baa4ec;border-radius:10px}.rank-row meter::-moz-meter-bar{background:#baa4ec;border-radius:10px}
.squad-wall{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:10px}
.squad-card{min-width:0;border:1px solid var(--line);border-radius:12px;background:#202824;padding:14px 9px;text-align:center}
.squad-card .person-link{display:flex;flex-direction:column;overflow-wrap:anywhere;font-weight:720;line-height:1.25}.squad-card .avatar{width:54px;height:54px}.squad-card>div{margin:8px 0 3px}.squad-card .club-mark{margin:0 2px}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
  .editorial-card,.squad-card,.pin-card,.expand-mark{transition:transform .23s ease,border-color .23s ease,background .23s ease}
  .editorial-card img{transition:transform .6s cubic-bezier(.2,.7,.2,1),filter .45s ease}
  .editorial-copy{transition:transform .32s ease}
  .editorial-card:hover{transform:translateY(-3px);border-color:#a8bd9f;filter:none}
  .editorial-card:hover img{transform:scale(1.045);filter:saturate(1.09)}
  .editorial-card:hover .editorial-copy{transform:translateY(-4px)}
  .editorial-card:hover .expand-mark{transform:rotate(6deg);background:#334b37}
  .pin-card:hover,.squad-card:focus-within,.squad-card:hover{transform:translateY(-2px);border-color:#74977a}
}
@media(max-width:800px){
  .player-page .metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.editorial-card{min-height:250px}.editorial-copy{padding:16px}.editorial-copy strong{font-size:1.45rem}.art-caption{font-size:.85rem}
}
@media(max-width:600px){
  .archive-head{align-items:start;flex-direction:column;gap:6px}.archive-total{font-size:.86rem}.media-filters button{min-height:42px}
  .editorial-feed{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.editorial-card:nth-child(n){grid-column:span 1;min-height:230px;border-radius:10px}.editorial-card:nth-child(3n+1),.editorial-card:last-child:nth-child(odd){grid-column:1/-1;min-height:252px}
  .editorial-card .editorial-copy{padding:12px}.editorial-copy strong{font-size:1.14rem}.editorial-card .section-kicker{font-size:.68rem}.editorial-card:not(:nth-child(3n+1)) .art-caption{display:none}
  .lightbox-info{align-items:start;flex-direction:column;padding:14px}.lightbox-stage img{max-height:57vh}
  .banner-content{width:100%;padding:17px}.banner-title{padding-right:75px;align-items:start;gap:5px}.banner-title h1{font-size:1.95rem}.class-plate{font-size:.86rem;padding:3px 5px}
  .banner-portrait{width:72px;height:72px;top:15px;right:11px;background:transparent}.banner-portrait>.club-mark{display:none}.banner-portrait .avatar{width:62px;height:62px;font-size:27px}
  .banner-meta{padding-right:64px}.player-banner{min-height:180px;border-radius:12px}.banner-identity{font-size:.8rem}
  .profile-tabs{gap:0}.profile-tabs button{padding:11px 10px}.stat-podium{gap:6px}.profile-stat{padding:12px 9px;gap:9px}.profile-stat span{font-size:.8rem}
  .rank-row{grid-template-columns:minmax(4em,1.2fr) 1.4em 1fr 4em;gap:6px;font-size:.82rem}.squad-wall{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pin-strip>span{width:22px}.section-head h2{font-size:1.35rem}
}

.editorial-card[data-art="champions.webp"] img{object-position:50% 48%}
.editorial-card[data-art="rovers-swizp-kylzno.webp"] img{object-position:50% 40%}
.editorial-card[data-art="midfielder.webp"] img{object-position:50% 24%}
.editorial-card[data-art="england-spain.webp"] img{object-position:50% 38%}
.editorial-card[data-art="street.webp"] img{object-position:50% 62%}
.editorial-card[data-art="awards.webp"] img{object-position:48% 40%}
.editorial-card[data-art="player-month.webp"] img{object-position:50% 50%}
.editorial-card[data-art="jj-triggz.webp"] img{object-position:50% 33%}
.editorial-card[data-art="villa-newcastle.webp"] img{object-position:44% 44%}
.editorial-card[data-art="living-pots.webp"] img{object-position:50% 39%}
.editorial-card[data-art="wharrton.webp"] img{object-position:50% 40%}
.editorial-card[data-art="golden-glove.webp"] img{object-position:50% 30%}
.editorial-card[data-art="newplayer223.webp"] img{object-position:50% 37%}
.editorial-card[data-art="teddy.webp"] img{object-position:50% 32%}
.editorial-card[data-art="relixmoon.webp"] img{object-position:50% 30%}
.editorial-card[data-art="portrait.jpg"] img{object-position:50% 36%}
.editorial-card[data-art="uptrevel2.webp"] img{object-position:50% 42%}
.editorial-card[data-art="beast.webp"] img{object-position:50% 36%}
.editorial-card[data-art="rocha90.webp"] img{object-position:50% 42%}
.editorial-card[data-art="purple-group.webp"] img{object-position:50% 44%}

/* Spreadsheet-style club rosters */
.club-teamsheet {
  --sheet-head: #282a32;
  --sheet-rows: #20232c;
  --sheet-edge: #a6aeba;
  --sheet-highlight: #ffdb8c;
  --sheet-ink: #fff;
  background: var(--sheet-head);
  color: var(--sheet-ink);
  border: 4px double var(--sheet-edge);
  padding: 6px;
  margin-bottom: 20px;
  box-shadow: 0 10px 28px #0003;
}
.club-teamsheet[data-club="Arsenal"] {--sheet-head:#790611;--sheet-rows:#a00918;--sheet-edge:#fff2e4}
.club-teamsheet[data-club="Chelsea"], .club-teamsheet[data-club="Getafe"], .club-teamsheet[data-club="Real Sociedad"] {--sheet-head:#102958;--sheet-rows:#173977;--sheet-edge:#b6c9ff}
.club-teamsheet[data-club="Tottenham Hotspur"], .club-teamsheet[data-club="Real Madrid"] {--sheet-head:#e7ebf6;--sheet-rows:#f5f7fc;--sheet-edge:#99abd6;--sheet-ink:#132342;--sheet-highlight:#71410e}
.club-teamsheet[data-club="Liverpool"], .club-teamsheet[data-club="Manchester United"], .club-teamsheet[data-club="Sunderland"], .club-teamsheet[data-club="Athletic Bilbao"], .club-teamsheet[data-club="Atlético Madrid"], .club-teamsheet[data-club="Sevilla"] {--sheet-head:#64101c;--sheet-rows:#811a29;--sheet-edge:#ffd9da}
.club-teamsheet[data-club="Bournemouth"] {--sheet-head:#401522;--sheet-rows:#501e29;--sheet-edge:#ec8792}
.club-teamsheet[data-club="Aston Villa"] {--sheet-head:#581e3a;--sheet-rows:#71264b;--sheet-edge:#a9d8fa}
.club-teamsheet[data-club="Manchester City"] {--sheet-head:#acd4ec;--sheet-rows:#d6edf9;--sheet-edge:#6cabc9;--sheet-ink:#122c47;--sheet-highlight:#5b370b}
.club-teamsheet[data-club="Barcelona"] {--sheet-head:#202958;--sheet-rows:#263266;--sheet-edge:#ef6e8f}
.club-teamsheet[data-club="Real Betis"] {--sheet-head:#084b38;--sheet-rows:#125d43;--sheet-edge:#a6d9be}
.club-teamsheet[data-club="Villarreal"] {--sheet-head:#f2d267;--sheet-rows:#ffebb1;--sheet-edge:#ba9432;--sheet-ink:#24250b;--sheet-highlight:#6a3e10}
.club-teamsheet[data-club="Valencia"] {--sheet-head:#3c2522;--sheet-rows:#4c2b24;--sheet-edge:#ffc68d}
.teamsheet-heading {display:flex;align-items:center;gap:16px;padding:18px clamp(10px,3vw,24px);border:1px solid color-mix(in srgb,var(--sheet-edge),transparent 35%);border-bottom:0}
.teamsheet-heading>.club-mark {width:clamp(38px,7vw,57px);height:clamp(38px,7vw,57px);margin:0}
.teamsheet-heading h2 {font-size:clamp(1.45rem,3.35vw,2.4rem);text-transform:uppercase;letter-spacing:-.025em;line-height:1.03}
.teamsheet-heading p {margin:5px 0 0;font-size:.85rem}
.teamsheet-season {margin-bottom:4px;font-weight:750;font-size:.71rem;text-transform:uppercase;letter-spacing:.12em}
.club-teamsheet .table-wrap {border:1px solid color-mix(in srgb,var(--sheet-edge),transparent 35%);border-radius:0}
.teamsheet-table {width:100%;border-collapse:collapse}
.teamsheet-table thead th {background:var(--sheet-head);color:var(--sheet-ink);border-bottom:2px solid var(--sheet-edge);font-weight:850;font-size:.74rem;text-transform:uppercase}
.teamsheet-table tbody tr {background:var(--sheet-rows)}
.teamsheet-table tbody tr:nth-child(even), .teamsheet-summary>div {background:color-mix(in srgb,var(--sheet-rows),var(--sheet-ink) 5%)}
.teamsheet-table :is(th,td) {padding:6px 9px;text-align:center;border-bottom:1px solid color-mix(in srgb,var(--sheet-edge),transparent 83%)}
.teamsheet-table tbody th {color:var(--sheet-ink);font-size:.91rem;background:none;text-transform:none;letter-spacing:0;font-weight:720;overflow-wrap:anywhere}
.teamsheet-table tbody th .person-link {white-space:normal}
.teamsheet-table td:last-child {white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--sheet-highlight);font-weight:800;text-align:right}
.teamsheet-role {font-size:1.09rem}
.teamsheet-class {display:inline-grid;place-items:center;min-width:25px;padding:1px 4px;border-radius:4px;background:#131a25;color:#fff;font-weight:850}
.teamsheet-class[data-grade="A"],.teamsheet-class[data-grade="S"] {color:#9be8ff}
.teamsheet-class[data-grade="B"] {color:#9df5ac}
.teamsheet-class[data-grade="C"] {color:#ffe18b}
.teamsheet-class[data-grade="X"] {color:#e3c1ff}
.teamsheet-summary {display:grid;grid-template-columns:1fr 1fr;gap:3px;margin:6px 0}
.teamsheet-summary>div {display:flex;justify-content:space-between;align-items:baseline;gap:6px;padding:7px 9px;font-size:.79rem}
.teamsheet-summary dt {font-weight:700}
.teamsheet-summary dd {margin:0;color:var(--sheet-highlight);font-weight:850;text-align:right}
.teamsheet-footer {padding:4px 8px;font-size:.79rem}
.teamsheet-footer p {margin:3px 0}
.teamsheet-footer a {display:inline-flex;align-items:center;gap:6px;text-decoration:underline;text-underline-offset:3px;padding:5px 0}
@media(max-width:580px){
  .teamsheet-table :is(th,td){padding:6px 4px}
  .teamsheet-table tbody .avatar {display:none}
  .teamsheet-table tbody th{font-size:.83rem}
  .teamsheet-summary>div{flex-direction:column;gap:0}
  .teamsheet-summary dd{text-align:left}
  .club-layout:has(.club-teamsheet) aside{order:0}
}

/* Homepage rankings */
.home-rank-board{min-width:0;background:var(--panel);border:1px solid var(--line);border-radius:14px;overflow:hidden}
.home-rank-board header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 19px;border-bottom:1px solid var(--line)}
.home-rank-board header h2,.home-rank-board header h3{margin-top:4px}
.home-rank-board header>a,.career-leaders .section-head>a{font-weight:750;font-size:.85rem;color:var(--accent);white-space:nowrap}
.home-season-rank,.career-leaders{margin:0 0 24px}
.home-rank-filter{display:flex;justify-content:flex-end;padding:8px 19px 0}
.home-rank-filter label{display:flex;gap:9px;align-items:center;color:var(--muted);font-size:.83rem}
.home-rank-filter select{width:auto}
.home-rank-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:3px 14px 8px}
.home-rank-list{margin:0;padding:0 12px 7px;list-style:none}
.home-rank-columns .home-rank-list{padding:0}
.home-rank-list li{display:grid;grid-template-columns:27px minmax(0,1fr) auto;gap:10px;align-items:center;min-height:56px;padding:8px;border-bottom:1px solid var(--line)}
.home-rank-list li:last-child{border-bottom:0}
.home-rank-list li:hover{background:var(--sub)}
.home-rank-number{color:var(--muted);text-align:center;font-size:.83rem;font-variant-numeric:tabular-nums}
.home-rank-list[start="1"] li:first-child .home-rank-number{background:#6f593b45;color:var(--gold);border-radius:6px}
.home-rank-person{position:relative;padding-left:38px;min-width:0}
.home-rank-person .person-link{font-weight:760;overflow-wrap:anywhere;line-height:1.23}
.home-rank-person .avatar{position:absolute;left:0;top:50%;transform:translateY(-50%);width:30px;height:30px}
.home-rank-person small{display:block;font-size:.77rem;line-height:1.25;margin-top:2px}
.home-rank-person small .club-mark{width:14px;height:14px;margin-right:3px}
.home-rank-list strong{color:#d6bef8;font-variant-numeric:tabular-nums}
.career-leaders .home-rank-list strong{color:var(--accent)}
@media(max-width:610px){
  .home-rank-board header{padding:13px 11px}
  .home-rank-columns{grid-template-columns:minmax(0,1fr);gap:0;padding:6px 8px}
  .home-rank-columns .home-rank-list:not(:last-child) li:last-child{border-bottom:1px solid var(--line)}
  .home-rank-filter{padding-right:11px}
}

/* Expand the honours pill along one row. */
.honour-strip {
  display:inline-grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  margin-top:13px;
  inline-size:max-content;
  max-inline-size:100%;
  block-size:40px;
  vertical-align:top;
  background:#101a14b8;
  border:1px solid #4c604f;
  border-radius:26px;
}
.honour-strip summary {
  display:flex;
  align-items:center;
  gap:7px;
  cursor:pointer;
  padding:0 10px;
  block-size:38px;
  white-space:nowrap;
  list-style:none;
}
.honour-strip summary::-webkit-details-marker {display:none}
.honour-strip summary b {font-size:.78rem}
.honour-strip summary>.icon {font-size:.85rem;transform:rotate(-90deg)}
.honour-strip[open] summary>.icon {transform:rotate(90deg)}
.honour-preview {display:flex;gap:2px}
.honour-preview>span {
  display:grid;
  place-items:center;
  color:var(--gold);
  inline-size:24px;
  block-size:24px;
}
.honour-strip[open] .honour-preview {display:none}
.honour-strip::details-content {min-inline-size:0}
.honour-shelf {
  display:flex;
  align-items:center;
  gap:2px;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
  padding:0 8px 0 2px;
  block-size:38px;
}
.honour-shelf button {
  display:grid;
  place-items:center;
  flex:0 0 32px;
  block-size:32px;
  padding:2px;
  background:transparent;
  border:0;
  border-radius:50%;
  color:var(--gold);
}
.honour-shelf button:focus-visible {outline-offset:-2px}
.honour-shelf button .trophy-art,.honour-preview .trophy-art {
  display:block;
  max-inline-size:100%;
  max-block-size:100%;
  min-block-size:0;
}
.honour-strip {--preview-width:127px}
.honour-strip[data-preview-count="2"] {--preview-width:153px}
.honour-strip[data-preview-count="3"] {--preview-width:179px}
.honour-strip[data-preview-count="4"] {--preview-width:205px}
@media(prefers-reduced-motion:no-preference) {
  .honour-strip[open] {animation:honour-width .23s ease-out}
  .honour-strip[open]::details-content {animation:honour-expand .23s ease-out both}
  .honour-shelf button>* {transition:transform .16s ease}
  .honour-shelf button:is(:hover,:focus-visible)>* {transform:scale(1.16)}
}
@keyframes honour-expand {
  from {clip-path:inset(0 100% 0 0);opacity:0}
  to {clip-path:inset(0);opacity:1}
}

@keyframes honour-width {
  from {max-inline-size:min(100%,var(--preview-width))}
  to {max-inline-size:100%}
}

/* Give every honours logo a fixed, centered bounding box. */
.pin-card .pin-mark{position:relative;inline-size:64px;block-size:64px;padding:0}
.pin-mark .trophy-art{position:absolute;inset:6px;display:block;inline-size:52px;block-size:52px;object-fit:contain;object-position:center}
.pin-grid{grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr))}
.honour-shelf button,.honour-preview>span{position:relative}
.honour-shelf button .trophy-art,.honour-preview .trophy-art{position:absolute;inset:2px;inline-size:calc(100% - 4px);block-size:calc(100% - 4px);object-fit:contain;object-position:center}

/* Player comparison */
.compare-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;align-items:end;gap:10px;margin-bottom:15px}
.compare-controls label{display:grid;gap:5px;min-width:0;color:var(--muted);font-size:.88rem;font-weight:680}
.compare-controls button,.compare-controls select{min-height:42px}
.compare-controls button{display:flex;align-items:center;justify-content:center;gap:6px}
.compare-lineup{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px}
.compare-player{display:flex;align-items:center;gap:13px;min-width:0;padding:clamp(13px,3vw,25px);border:1px solid var(--line);border-radius:13px;background:linear-gradient(120deg,#253c35,var(--panel) 78%)}
.compare-player.right{background:linear-gradient(120deg,#312b50,var(--panel) 78%)}
.compare-player .avatar{width:clamp(44px,7vw,72px);height:clamp(44px,7vw,72px);border-radius:16px}
.compare-player-info{min-width:0;overflow-wrap:anywhere}
.compare-player h2{font-size:clamp(1.15rem,2.7vw,1.95rem)}
.compare-player-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:5px 0}
.compare-player-meta .club-mark{width:18px;height:18px}
.compare-player-info small{font-size:.78rem}
.compare-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.compare-group{min-width:0;margin:0}
.compare-group h2{font-size:1.06rem;padding-bottom:10px;border-bottom:1px solid var(--line)}
.compare-group h2 .icon{color:var(--accent)}
.compare-stat{display:grid;grid-template-columns:minmax(0,1fr) minmax(6rem,8.5rem) minmax(0,1fr);align-items:center;gap:8px;min-height:43px}
.compare-stat:not(:last-child){border-bottom:1px solid var(--line)}
.compare-stat>span:nth-child(2){font-size:.83rem;font-weight:660;text-align:center}
.compare-value{display:flex;align-items:center;gap:8px;min-width:0;font-size:.9rem;font-variant-numeric:tabular-nums}
.compare-value.left{color:#b1e7ce}
.compare-value.right{flex-direction:row-reverse;color:#d5c8ff}
.compare-value.dim{color:var(--muted)}
.compare-value b{min-width:2em;text-align:center}
.compare-value meter{flex:1;min-width:0;height:7px;appearance:none}
.compare-value.left meter{transform:scaleX(-1)}
.compare-value meter::-webkit-meter-bar{background:#34404a;border:0}
.compare-value.left meter::-webkit-meter-optimum-value{background:#7accad}
.compare-value.right meter::-webkit-meter-optimum-value{background:#b499f5}
.compare-value.left meter::-moz-meter-bar{background:#7accad}
.compare-value.right meter::-moz-meter-bar{background:#b499f5}
.compare-higher b{color:var(--text)}
@media(max-width:780px){.compare-groups,.compare-controls{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:530px){
  .compare-groups{grid-template-columns:minmax(0,1fr)}
  .compare-player{align-items:flex-start;flex-direction:column}
  .compare-stat{grid-template-columns:minmax(0,1fr) minmax(5.5rem,7rem) minmax(0,1fr)}
}

/* Shared controls and data surfaces */
body{background:radial-gradient(ellipse at 55% -300px,#233433 0%,transparent 610px),var(--bg)}
.top{background:linear-gradient(110deg,#151e20,#101418 58%);border-bottom-color:#334244}
nav a.active{box-shadow:inset 0 -2px #a7df8266}
.heading-mark .heading-icon{background:linear-gradient(145deg,#334b38,#1b2825);border-color:#41574a;box-shadow:0 6px 14px #0002}
.block,.card,.home-rank-board,.metric{border-color:#34424a;box-shadow:0 3px 12px #00000015}
.block,.home-rank-board{background:linear-gradient(150deg,#20282d,var(--panel) 65%)}
.block>h2,.panel-title h2{letter-spacing:-.028em}
.card:hover,.quick a:hover,.tool-tile:hover{border-color:#6d8c78}
.table-wrap{border-color:#38464d}
.table-wrap thead th{background:#273239}
.table-wrap thead th[aria-sort]:not([aria-sort=none]) button{color:var(--accent)}
.table-wrap tbody tr:nth-child(even):not(.standing-top):not(:hover){background-color:#ffffff03}
.table-wrap .teamsheet-table thead th{background:var(--sheet-head)}
.table-wrap .teamsheet-table tbody tr:nth-child(even):not(:hover){background-color:color-mix(in srgb,var(--sheet-rows),var(--sheet-ink) 5%)}
.pagenav button:not(:disabled):hover,.button:hover{border-color:#779780}
.ticker a:focus-visible{outline-offset:-3px}
.filters,.compare-controls{
  padding:10px 12px;
  border:1px solid #344248;
  border-radius:12px;
  background:linear-gradient(160deg,#202b2e,#181e24 75%);
}
.filters:empty{display:none}
.filters label,.form-grid label,.compare-controls label{font-size:.81rem;line-height:1.35}
.filters label:has(input[type=search]){flex:1 1 170px}
.filters input[type=search],.form-grid input:not([type=checkbox]),.form-grid textarea,.compare-controls input{
  border-color:#435158;
  background:#11191e;
  border-radius:9px;
}
.empty{border-style:dashed;background:#121a1f;color:#b8c3cc}
dialog{box-shadow:0 26px 70px #0009}
#search-results a{border-radius:7px}
#search-results small{align-self:center}
@media(prefers-reduced-motion:no-preference){
  .card,.quick a,.button,.pagenav button,.picker-trigger,.picker-option{transition:background-color .15s,border-color .15s}
}

/* The picker opens above scroll regions and cards. */
select[hidden]{display:none!important}
.picker-trigger{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.65rem;
  min-width:0;
  max-width:100%;
  min-height:41px;
  padding:8px 10px 8px 12px;
  border:1px solid #435158;
  border-radius:9px;
  background:#11191e;
  color:var(--text);
  text-align:left;
  font-size:.9rem;
  font-weight:670;
}
.picker-trigger:hover,.picker-trigger[aria-expanded=true]{background:#202e32;border-color:#7eaa89;filter:none}
.picker-trigger[aria-expanded=true]>.icon{transform:rotate(180deg)}
.picker-trigger>.icon{color:#9fbaad}
.picker-current{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home-rank-filter .picker-trigger{min-width:10rem}
.form-selector .picker-trigger{flex:1}
.picker-menu{
  position:fixed;
  inset:auto;
  margin:0;
  padding:0;
  color:var(--text);
  background:#172128;
  border:1px solid #4a6357;
  border-radius:13px;
  box-shadow:0 14px 44px #0009;
  overflow:hidden;
  flex-direction:column;
}
.picker-menu:popover-open{display:flex}
.picker-heading{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:5px 6px 5px 13px;
  min-height:39px;
  background:#24332f;
  border-bottom:1px solid #3a4e45;
  color:#d8ebde;
  font-size:.81rem;
}
.picker-heading button{background:transparent;border:0;padding:5px 7px;line-height:1;font-size:1rem}
.picker-search{position:relative;padding:7px}
.picker-search>.icon{position:absolute;top:19px;left:16px;color:#99b5a5}
.picker-search input{width:100%;min-height:38px;border-radius:7px;padding-left:30px;background:#0e171c;border-color:#40534c}
.picker-options{overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:5px}
.picker-option{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  width:100%;
  min-height:38px;
  padding:7px 9px;
  border:1px solid transparent;
  border-radius:7px;
  background:transparent;
  text-align:left;
  color:var(--text);
  font-size:.88rem;
}
.picker-option:is(:hover,:focus-visible){background:#2a3b37;border-color:#436051;filter:none;outline-offset:-2px}
.picker-option[aria-selected=true]{background:#263c32;color:#dbf7d9}
.picker-option[aria-selected=true] .icon{color:#a8e489}
.picker-option:disabled{opacity:.45}
.picker-no-match{margin:0;padding:13px;color:var(--muted);font-size:.86rem}
@media(prefers-reduced-motion:no-preference){
  .picker-menu:popover-open{animation:picker-in .14s ease-out}
}
@keyframes picker-in{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:580px){
  .picker-trigger,.picker-option{min-height:44px}
  .picker-search input{font-size:16px}
  .home-rank-filter .picker-trigger{min-width:0}
}

/* Keep the leaderboard focused on one set of stats at a time. */
.leaderboard-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.leaderboard-heading span{color:var(--muted);font-size:.85rem;font-variant-numeric:tabular-nums}
.leaderboard-views{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.leaderboard-views button{display:flex;align-items:center;gap:6px;border-color:#3a4a4e;background:#172127;border-radius:8px}
.leaderboard-views button[aria-pressed=true]{color:#e5f7dd;border-color:#73976f;background:#294137}
.leaderboard-rank{display:flex;justify-content:flex-end;margin-bottom:10px}
.leaderboard-rank label{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:.83rem}
.leaderboard table :is(th,td){padding:10px 12px}
.leaderboard table :is(th,td):not(:first-child){text-align:center;font-variant-numeric:tabular-nums}
.leaderboard table th:not(:first-child) button{white-space:normal}
.leaderboard table td:not(:first-child){color:#e0e8e8}
.leaderboard table td:nth-child(2){color:#d3f3c1;font-weight:800;background:#84cf8720}
.leaderboard table th[aria-sort]:not([aria-sort=none]){background:#31463e}
.leaderboard table td:first-child{font-weight:700}
@media(max-width:620px){
  .leaderboard-views button{min-height:40px;font-size:.8rem}
  .leaderboard table :is(th,td){padding-inline:8px}
  .leaderboard table th button{padding:0;font-size:.75rem}
  .leaderboard .table-wrap{scrollbar-width:thin}
  .leaderboard-rank{justify-content:flex-start}
}
