/* Player page (design handoff "Player page"): hero, side card, season table, shot map,
   comparison bars, recent matches, career and chart, head-to-head, availability, more players, player card.
   Loaded after league-v2.css and team.css, whose cards, tables and buy box it reuses. */
.kf dd.mut { color: var(--steel); font-weight: 600; }
.sdc-next .cr-s, .sdc-next .cr-i { width: 28px; height: 30px; }
.sdc-t .cr-x { width: 44px; height: 50px; object-fit: contain; }
.pl-ttl { display: flex; align-items: center; gap: 22px; }
.pl-ph { position: relative; flex: none; width: 116px; height: 116px; }
.pl-ph img.av3 { width: 116px; height: 116px; border-radius: 50%; border: 5px solid; background: #E4E7EE; object-fit: cover; box-shadow: 0 18px 40px -22px rgba(4,8,36,0.8); }
.pl-ph .nophoto { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); white-space: nowrap; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--ink); color: #FFFFFF; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; }
.pl-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; font-size: 15px; font-weight: 700; color: rgba(255,255,255,0.9); }
.pl-sub > span { display: inline-flex; align-items: center; gap: 7px; }
.pl-sub img.cr-s { width: 20px; height: 22px; }
.pl-sub img.lm-mark { width: 22px; height: 22px; border-radius: 6px; }
.pl-sub a { color: #FFFFFF; }
.pl-sub i.sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.6); }
.fchip img.lm-mark, .fchip img.cr-s { width: 20px; height: 20px; border-radius: 5px; object-fit: contain; }

/* side card */
.sdc { background: #FFFFFF; color: var(--ink); border-radius: 20px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(4,8,36,0.7); }
.sdc-top { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.sdc-top b { font-size: 16px; font-weight: 800; font-stretch: 108%; }
.sdc-top small { margin-left: auto; font-size: 13px; font-weight: 650; color: var(--steel); }
.sdc-m { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 18px 18px 8px; }
.sdc-t { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 14.5px; font-weight: 800; line-height: 1.2; min-width: 0; }
.sdc-t img { width: 44px; height: 50px; object-fit: contain; }
.sdc-s { display: grid; justify-items: center; gap: 4px; }
.sdc-s b { font-size: 38px; line-height: 1; }
.sdc-s small { font-size: 12px; font-weight: 800; color: var(--steel); text-transform: uppercase; letter-spacing: 0.04em; }
.sdc-rank { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px; }
.sdc-rank > b { font-size: 76px; line-height: 0.85; color: var(--blue); }
.sdc-rank > b small { font-size: 22px; font-stretch: 100%; color: var(--steel); margin-right: 2px; }
.sdc-rank strong { display: block; font-size: 19px; font-weight: 800; }
.sdc-rank > span > span { display: block; font-size: 13.5px; color: var(--steel); line-height: 1.45; }
.mv-down { color: var(--loss) !important; font-weight: 750; }
.mv-up { color: var(--win) !important; font-weight: 750; }
.sdc-line { display: grid; grid-template-columns: repeat(var(--sl, 4), minmax(0, 1fr)); gap: 1px; margin: 8px 18px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--line); }
.sdc-line > div { background: #FFFFFF; padding: 9px 10px; display: grid; gap: 2px; text-align: center; min-width: 0; }
.sdc-line > div > span { font-size: 11.5px; font-weight: 700; color: var(--steel); }
.sdc-line > div > b { font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sdc-line > div > b.rt-hi { color: var(--win); }
.sdc-line > div > b.rt-na { font-size: 13px; color: var(--steel); font-weight: 700; }
.sdc-next { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: center; margin: 14px 18px 0; padding-top: 14px; border-top: 1px solid var(--line); }
.sdc-next img { width: 28px; height: 30px; object-fit: contain; }
.sdc-next small { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--steel); }
.sdc-next b { display: block; font-size: 15.5px; font-weight: 800; }
.sdc-next span.ns { display: block; font-size: 13.5px; color: var(--steel); }
.sdc-st { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 12px 18px; background: var(--paper); font-size: 13.5px; line-height: 1.45; color: var(--steel); }
.stt { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.stt i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stt.ok { background: #E3F4EE; color: #0B6B4F; }
.stt.warn { background: #FFF1D6; color: #8A4B00; }
.stt.out { background: rgba(194,40,59,0.1); color: var(--loss); }
.stt.na { background: #EEF0F4; color: var(--steel); }

/* season table */
.ps { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.ps th { font-size: 12px; font-weight: 750; color: var(--steel); padding: 12px 12px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ps th.l { text-align: left; }
.ps td { padding: 12px; border-top: 1px solid var(--line); text-align: right; white-space: nowrap; }
.ps tr:first-child td { border-top: 0; }
.ps td.cmp { text-align: left; font-weight: 750; }
.ps td.cmp > span { display: inline-flex; align-items: center; gap: 10px; }
.ps td.cmp img { width: 22px; height: 22px; border-radius: 6px; }
.ps tr.tot td { background: #FBFBFD; font-weight: 800; border-top: 1.5px solid var(--line); }
.ps-note { padding: 12px 18px; border-top: 1px solid var(--line); background: #FBFBFD; font-size: 13px; color: var(--steel); }
.kp4 { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
.kp4 .kpi b { font-size: 30px; }
.kp4 .kpi small { font-weight: 600; color: var(--steel); font-size: 13.5px; }
.kp4 .kpi.na { border-style: dashed; border-width: 1.5px; border-color: #AEB5C6; }
.kp4 .kpi.na b { font-size: 15px; font-weight: 750; color: var(--steel); line-height: 1.3; }
.vz { margin-top: 24px; }

/* shot map */
.shm { padding: 16px 18px 14px; display: grid; gap: 12px; }
.shm svg { display: block; width: 100%; height: auto; }
.shm .pitch { fill: #EEF4EA; }
.shm .ln { fill: none; stroke: #FFFFFF; stroke-width: 2; }
.shm .goalb { fill: #FFFFFF; stroke: #B9C3D8; stroke-width: 1.5; }
.shm circle.goal { fill: var(--blue); stroke: #FFFFFF; stroke-width: 1.5; }
.shm circle.shot { fill: rgba(13,19,48,0.18); stroke: rgba(13,19,48,0.55); stroke-width: 1.2; }
.shm circle.conc { fill: var(--loss); stroke: #FFFFFF; stroke-width: 1.5; }
.shm circle.save { fill: rgba(35,64,245,0.18); stroke: var(--blue); stroke-width: 1.2; }
.lgd { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--steel); }
.lgd > span { display: inline-flex; align-items: center; gap: 7px; }
.lgd i { width: 12px; height: 12px; border-radius: 50%; }
.lgd i.goal { background: var(--blue); } .lgd i.shot { background: rgba(13,19,48,0.18); box-shadow: inset 0 0 0 1.2px rgba(13,19,48,0.55); }
.lgd i.conc { background: var(--loss); } .lgd i.save { background: rgba(35,64,245,0.18); box-shadow: inset 0 0 0 1.2px var(--blue); }

/* comparison bars */
.cbars { list-style: none; margin: 0; padding: 6px 18px 14px; display: grid; gap: 0; }
.cbars li { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); }
.cbars li:first-child { border-top: 0; }
.cb-h { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.cb-h > span { font-weight: 650; }
.cb-h > b { font-weight: 800; font-variant-numeric: tabular-nums; }
.cb-h > b small { font-weight: 600; color: var(--steel); font-size: 12.5px; margin-left: 6px; }
.cb { position: relative; height: 10px; border-radius: 5px; background: #E6E9F0; }
.cb > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: var(--blue); }
.cb > i.lo { background: #7F889F; }
.cb > em { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--ink); }
.cb-key { display: flex; gap: 16px; padding: 0 18px 14px; font-size: 12.5px; color: var(--steel); }
.cb-key > span { display: inline-flex; align-items: center; gap: 6px; }
.cb-key i { width: 14px; height: 8px; border-radius: 4px; background: var(--blue); }
.cb-key em { width: 2px; height: 14px; background: var(--ink); }

/* recent matches */
.rm { list-style: none; margin: 0; padding: 0; }
.rm-h, .rm li > a, .rm li > div { display: grid; grid-template-columns: 92px minmax(0, 1fr) 96px var(--rmc, 168px) 64px; gap: 12px; align-items: center; padding: 11px 18px; }
.rm-h { font-size: 12px; font-weight: 750; color: var(--steel); border-bottom: 1px solid var(--line); padding-top: 12px; padding-bottom: 10px; }
.rm li { border-top: 1px solid var(--line); }
.rm li:first-child { border-top: 0; }
.rm li > a { color: var(--ink); text-decoration: none; }
.rm li > a:hover { background: #FBFBFD; }
.rm .d { display: grid; gap: 2px; font-size: 13.5px; font-weight: 750; line-height: 1.2; }
.rm .d small { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; color: var(--steel); }
.rm .d small img { width: 14px; height: 14px; border-radius: 4px; }
.rm .o { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; min-width: 0; }
.rm .o.noimg, .car .n.noimg { grid-template-columns: minmax(0, 1fr); }
.rm .o img { width: 22px; height: 25px; object-fit: contain; }
.rm .o b { display: block; font-size: 15.5px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm .o small { display: block; font-size: 12.5px; color: var(--steel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm .r { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.rm .r b { font-size: 17px; font-stretch: 72%; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rm .r b.txt { font-size: 14px; font-stretch: 100%; font-weight: 750; }
.rm .c { display: grid; grid-template-columns: repeat(var(--rmn, 3), minmax(0, 1fr)); gap: 6px; text-align: center; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rm-h .c { font-size: 12px; font-weight: 750; color: var(--steel); }
.rm .rt { justify-self: end; }
.rtp { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 26px; padding: 0 8px; border-radius: 8px; font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rt-hi { background: #E3F4EE; color: #0B6B4F; }
.rt-mid { background: var(--blue-soft); color: var(--blue-deep); }
.rt-lo { background: #FFF1D6; color: #8A4B00; }
.rt-na { background: var(--paper); color: var(--steel); }
.fm.ff { background: #C25E00; }
.rm.norate .rm-h, .rm.norate li > a, .rm.norate li > div { grid-template-columns: 92px minmax(0, 1fr) 150px var(--rmc, 168px); }

/* career + chart */
.car { list-style: none; margin: 0; padding: 0; }
.car-h, .car li { display: grid; grid-template-columns: 96px minmax(0, 1fr) var(--carc, 140px); gap: 12px; align-items: center; padding: 12px 18px; }
.car-h { font-size: 12px; font-weight: 750; color: var(--steel); border-bottom: 1px solid var(--line); }
.car li { border-top: 1px solid var(--line); }
.car li:first-child { border-top: 0; }
.car li.cur { background: var(--blue-soft); }
.car .y { font-size: 14px; font-weight: 800; color: var(--steel); font-variant-numeric: tabular-nums; }
.car li.cur .y { color: var(--blue-deep); }
.car .n { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; min-width: 0; }
.car .n img { width: 26px; height: 29px; object-fit: contain; }
.car .n b { display: block; font-size: 15.5px; font-weight: 800; }
.car .n small { display: block; font-size: 13px; color: var(--steel); line-height: 1.4; }
.car .k { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; margin-right: 6px; border-radius: 999px; background: #FFFFFF; border: 1px solid var(--line); font-size: 11px; font-weight: 800; color: var(--steel); vertical-align: 1px; }
.car .c2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; text-align: right; font-size: 15.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.car-h .c2 { font-size: 12px; font-weight: 750; color: var(--steel); }
.car-note { padding: 12px 18px; border-top: 1px solid var(--line); background: #FBFBFD; font-size: 13px; color: var(--steel); }
.lc2 { padding: 16px 18px 14px; display: grid; gap: 8px; }
.lc2-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.lc2-top b { font-size: 34px; line-height: 1; color: var(--blue); }
.lc2-top small { font-size: 13px; color: var(--steel); }
.lc2-plot { position: relative; margin-left: 46px; }
.lc2-plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.lc2 .gl { stroke: #E6E9F0; stroke-width: 1; }
.lc2 .ar { fill: rgba(35,64,245,0.08); }
.lc2 .ln2 { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.lc2 .dt3 { fill: #FFFFFF; stroke: var(--blue); stroke-width: 2.2; }
.lc2 .dl3 { fill: var(--blue); stroke: #FFFFFF; stroke-width: 2.4; }
.lc2-y { position: absolute; left: -48px; width: 42px; margin-top: -9px; text-align: right; font-size: 11.5px; font-weight: 700; color: var(--steel); white-space: nowrap; }
.lc2-x { display: flex; justify-content: space-between; margin-left: 46px; font-size: 11.5px; font-weight: 700; color: var(--steel); }
.hon2 { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.hon2 li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #FFFFFF; }
.hon2 b.cond { font-size: 32px; line-height: 1; color: #B07A00; text-align: center; }
.hon2 strong { display: block; font-size: 15.5px; font-weight: 800; }
.hon2 small { display: block; font-size: 13px; color: var(--steel); line-height: 1.45; }

/* head-to-head (tennis) */
.riv { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.riv li { background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 12px; }
.riv-h { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.riv-h img.av { width: 44px; height: 44px; border-width: 2px; border-color: var(--line); }
.riv-h b { display: block; font-size: 17px; font-weight: 800; }
.riv-h small { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--steel); }
.riv-h .wl { font-size: 26px; line-height: 1; }
.riv .wdl2 { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--loss); }
.riv .wdl2 i { background: var(--win); }
.riv p { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--steel); }

/* availability / international / profile */
.tri { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.av-card { padding: 18px; display: grid; gap: 12px; }
.av-card h3 { margin: 0; font-size: 17px; font-weight: 800; font-stretch: 105%; }
.av-card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--steel); }
.ycm { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--steel); }
.ycm .yc i { width: 14px; height: 19px; border-radius: 3px; }
.intl-top { display: flex; align-items: center; gap: 10px; }
.intl-top img.flag { width: 30px; height: 20px; }
.intl-top b { font-size: 17px; font-weight: 800; }
.rec3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rec3 > div { background: #FFFFFF; padding: 10px 8px; text-align: center; }
.rec3 > div > span { display: block; font-size: 12px; font-weight: 700; color: var(--steel); }
.rec3 > div > b { font-size: 20px; }
.prof .kf > div { padding-left: 0; padding-right: 0; grid-template-columns: 110px minmax(0, 1fr); }
.prof .src { margin: 0; }
.rm-link { font-size: 13.5px; font-weight: 700; }

/* more players */
.mp { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.mp a { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #FFFFFF; color: var(--ink); text-decoration: none; min-width: 0; }
.mp a:hover { border-color: #7F889F; color: var(--ink); }
.mp img.av { width: 44px; height: 44px; border-width: 2.5px; }
.mp b { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; }
.mp b .flag { width: 18px; height: 12px; }
.mp small { display: block; font-size: 13px; color: var(--steel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp .vv { display: block; font-size: 13px; font-weight: 750; color: var(--blue-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp a.me { border-color: var(--blue); background: var(--blue-soft); }

/* player widget */
.pw { background: #FFFFFF; color: var(--ink); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 48px -28px rgba(0,0,0,0.6); }
.pw-hd { display: flex; align-items: center; gap: 8px; padding: 11px 14px; color: #FFFFFF; }
.pw-hd b { font-weight: 800; font-stretch: 110%; font-size: 14px; }
.pw-hd > span { margin-left: auto; font-size: 12px; font-weight: 650; opacity: 0.9; }
.pw-id { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; padding: 16px 14px 12px; }
.pw-id img { width: 56px; height: 56px; border-radius: 50%; border: 3px solid; background: #E4E7EE; }
.pw-id b { display: block; font-size: 17px; font-weight: 800; }
.pw-id small { display: block; font-size: 13px; color: #5D6680; }
.pw-st { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #E3E6ED; }
.pw-st > div { padding: 10px 6px; text-align: center; border-left: 1px solid #E3E6ED; }
.pw-st > div:first-child { border-left: 0; }
.pw-st > div > span { display: block; font-size: 11px; font-weight: 700; color: #5D6680; }
.pw-st > div > b { font-size: 19px; font-stretch: 72%; font-weight: 800; }
.pw-ft { padding: 8px 14px; border-top: 1px solid #E3E6ED; font-size: 11px; color: #5D6680; text-align: right; }

@media (max-width: 559px) {
  .rm .r b.txt { white-space: normal; text-align: right; max-width: 110px; line-height: 1.25; }
  .lc2-x > span:nth-child(even) { visibility: hidden; }
  .rm-h, .rm li > a, .rm li > div { grid-template-columns: 66px minmax(0, 1fr) auto 44px; }
  .rm .c { display: none; }
  .rm.norate .rm-h, .rm.norate li > a, .rm.norate li > div { grid-template-columns: 66px minmax(0, 1fr) auto; }
  .rm .d small span.cl { display: none; }
  .car-h, .car li { grid-template-columns: 70px minmax(0, 1fr) 84px; padding-left: 14px; padding-right: 14px; }
  .ps td, .ps th { padding-left: 9px; padding-right: 9px; }
}
@media (max-width: 719px) {
  .pl-ttl { gap: 16px; }
  .pl-ph, .pl-ph img.av3 { width: 84px; height: 84px; }
  .pl-ph img.av3 { border-width: 4px; }
  .sdc-rank > b { font-size: 60px; }
  .kp4 .kpi b { font-size: 26px; }
}
@media (min-width: 720px) {
  .kp4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tri { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .riv { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hon2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .tri { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tri2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* US sports: no international card */
  .hon2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mp { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}



/* Chart labels sit centred under their dots, so long rows of labels never widen the card. */
.lc2 { grid-template-columns: minmax(0, 1fr); }
.lc2-x { padding: 0 2.33%; }
.lc2-x > span { width: 0; display: flex; justify-content: center; white-space: nowrap; }
