/* Winter Ball Updates · player.css · the player pop-up (side sheet / bottom sheet) and the full player page
   (redesign 2026-11-07; player-card.js). Colour tokens from palette.css, so paper and night themes both work.
   Every control is at least 44 px tall (tabs, ‹ › ✕, Full profile, Share, jump chips, pills). */
.pc, .pp { --pc-accent: var(--mar-fill, #A0101A); --pc-navy: var(--noche, #0B1622); --pc-mute: var(--ink-3, #4A5568); --pc-line: var(--line, #CDB894); --pc-card: var(--card, #F3E7CF); --pc-paper: var(--paper, #F0E2C6); --pc-tile: var(--card-2, #EEDFC2);
  --pc-fd: var(--l2-fd, "Barlow Condensed", "Arial Narrow", system-ui, sans-serif); --pc-fb: var(--l2-fb, Inter, system-ui, sans-serif);
  font-family: var(--pc-fb); color: var(--ink, #0F2340); }

/* ---------------- the sheet on the shell's modal ---------------- */
.modal-bg.pc-bg { padding: 0; justify-content: flex-end; align-items: stretch; backdrop-filter: none; -webkit-backdrop-filter: none; background: rgb(11 22 34 / .34); }
.modal.pc-sheet { width: min(780px, 100%); max-width: 100%; height: 100%; max-height: none; border-radius: 0; padding: 0; overflow: hidden; display: flex; flex-direction: column;
  background: var(--paper, #F0E2C6); box-shadow: -14px 0 36px rgb(0 0 0 / .25); animation: pc-in .2s cubic-bezier(.2,.9,.3,1); }
@keyframes pc-in { from { transform: translateX(40px); opacity: .4 } to { transform: none; opacity: 1 } }
:root[data-motion="off"] .modal.pc-sheet { animation: none; }
@media (prefers-reduced-motion: reduce) { .modal.pc-sheet { animation: none; } }
.pc { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.pc-grab { display: none; }
.pc-top { display: flex; align-items: center; gap: 14px; padding: 18px 24px 8px; }
.pc-logo { flex: none; display: inline-grid; place-items: center; }
.pc-logo img, .pc-logo svg { width: 54px; height: 54px; }
.pc-who { min-width: 0; flex: 1; }
.pc-who h2 { font: 800 34px/1.02 var(--pc-fd); margin: 0; letter-spacing: .2px; }
.pc-who h2 .ast, .pp-who h1 .ast { color: var(--pc-accent); margin-left: 2px; }
.pc-sub { font-size: 13px; color: var(--pc-mute); margin-top: 4px; }
.pc-chip { display: inline-block; font: 700 11px/1 var(--pc-fb); padding: 4px 7px; border-radius: 5px; background: var(--pc-navy); color: #fff; vertical-align: 1px; text-decoration: none; }
.pc-chip.gold { background: var(--t100, #7A5500); }
.pc-btns { margin-left: auto; display: flex; gap: 8px; flex: none; align-self: flex-start; }
.pc-rb { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--pc-line); background: var(--pc-card); font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink, #0F2340); display: grid; place-items: center; }
.pc-rb:disabled { opacity: .35; cursor: default; }
.pc-rb:focus-visible, .pc-tabs button:focus-visible, .pc-btn:focus-visible, .pp-jin button:focus-visible, .pp-pill:focus-visible { outline: 3px solid var(--sun, #D9893C); outline-offset: 2px; }
.pc-ast { margin: 0 24px 6px; font-size: 12.5px; background: var(--mar-soft, #F2D5C6); border-radius: 8px; padding: 8px 10px; }

.pc-tabs { display: flex; gap: 4px; padding: 0 24px; border-bottom: 1px solid var(--pc-line); overflow-x: auto; scrollbar-width: none; }
.pc-tabs::-webkit-scrollbar { display: none; }
.pc-tabs button { border: 0; background: none; font: 700 14px var(--pc-fb); color: var(--pc-mute); padding: 12px 12px 10px; min-height: 44px; cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.pc-tabs button.on { color: var(--ink, #0F2340); border-bottom-color: var(--pc-accent); }
.pc-tabs .pc-ts { display: none; }
.pc-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 4px 24px 16px; }
.pc-foot { display: flex; gap: 10px; align-items: center; padding: 12px 24px; border-top: 1px solid var(--pc-line); background: var(--paper, #F0E2C6); }
.pc-foot span { margin-left: auto; font-size: 11.5px; color: var(--pc-mute); text-align: right; }

.pc-btn { display: inline-grid; place-items: center; min-height: 44px; padding: 0 22px; border-radius: 10px; border: 2px solid var(--ink, #0F2340); background: var(--pc-card); color: var(--ink, #0F2340); font: 700 15px var(--pc-fb); text-decoration: none; cursor: pointer; }
.pc-btn.p { background: var(--pc-accent); border-color: var(--pc-accent); color: #fff; min-width: 220px; }

/* ---------------- blocks shared by the sheet and the page ---------------- */
.pc-glance { margin: 12px 0 4px; background: var(--pc-navy); color: #fff; border-radius: 14px; padding: 12px 16px; }
.pc-glance .big { display: flex; align-items: baseline; gap: 26px; flex-wrap: wrap; }
.pc-glance .v { font: 800 38px/1 var(--pc-fd); }
.pc-glance .k { font: 700 10.5px var(--pc-fb); letter-spacing: .6px; opacity: .78; }
.pc-glance .pc-ln { font-size: 13.5px; margin-top: 8px; }
.pc-glance .rk { font-size: 12px; opacity: .78; margin-top: 3px; }
.pc-n { display: inline-block; font: 600 11.5px var(--pc-fb); padding: 2px 8px; border-radius: 10px; background: rgb(255 255 255 / .16); margin-left: 4px; }
.pc-lbl { font: 700 11px var(--pc-fb); letter-spacing: .6px; text-transform: uppercase; color: var(--pc-mute); margin: 16px 0 6px; display: flex; justify-content: space-between; gap: 10px; }
.pc-lbl span { font-weight: 500; letter-spacing: 0; text-transform: none; text-align: right; }
.pc-mini { font-size: 12px; color: var(--pc-mute); margin-top: 6px; line-height: 1.45; }
.pc-form5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.pc-form5 div { background: var(--pc-card); border: 1px solid var(--pc-line); border-radius: 9px; padding: 7px 4px; text-align: center; font-size: 11px; color: var(--pc-mute); line-height: 1.25; min-width: 0; }
.pc-form5 b { display: block; font: 700 15px var(--pc-fb); color: var(--ink, #0F2340); }
.pc-form5 small { display: block; min-height: 14px; overflow-wrap: anywhere; }
.pc-form5 em { font-style: normal; font-size: 10.5px; }
.pc-form5 .emp { background: transparent; border-style: dashed; }
.pc-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.pc-tile { background: var(--pc-card); border: 1px solid var(--pc-line); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.pc-tile span { display: block; font: 700 11px var(--pc-fb); color: var(--pc-mute); }
.pc-tile b { display: block; font: 800 26px/1.05 var(--pc-fd); }
.pc-tile small { display: block; font-size: 11px; color: var(--pc-mute); }
.pc-mix { display: flex; height: 26px; border-radius: 7px; overflow: hidden; gap: 2px; }
.pc-mix.big { height: 30px; margin: 4px 0 6px; }
.pc-mix i { display: flex; align-items: center; justify-content: center; font: 700 11.5px var(--pc-fb); color: #fff; font-style: normal; min-width: 0; white-space: nowrap; overflow: hidden; }
.pc-ctx { margin-top: 14px; background: var(--pc-card); border: 1px solid var(--pc-line); border-radius: 10px; padding: 4px 12px; }
.pc-ctx div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dotted var(--pc-line); font-size: 13px; }
.pc-ctx div:last-child { border: 0; }
.pc-ctx span { color: var(--pc-mute); }
.pc-ctx b { text-align: right; }
.pc-ctx.tall div { padding: 9px 0; }
.pc-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.pc-two.p { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.pc-mr { display: grid; grid-template-columns: 136px 1fr 92px; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px dotted var(--pc-line); }
.pc-mr .ml { font: 600 13px var(--pc-fb); }
.pc-mr .ml small { display: block; font: 500 11px var(--pc-fb); color: var(--pc-mute); }
.pc-mr .trk { height: 8px; border-radius: 4px; background: linear-gradient(90deg, #DCE1EA, #EFE7D6 50%, #F6D7CB); position: relative; }
.pc-mr.nob .trk, .pc-mr.na .trk { background: repeating-linear-gradient(90deg, var(--pc-line) 0 6px, transparent 6px 10px); height: 2px; opacity: .7; }
.pc-mr .trk i { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 30px; height: 22px; border-radius: 11px; color: #fff; font: 700 11px/22px var(--pc-fb); text-align: center; font-style: normal; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--pc-line); background: #6E7789; }
.pc-mr .trk i.hi { background: var(--pc-accent); } .pc-mr .trk i.lo { background: #1F3B6E; }
.pc-mr .mv { text-align: right; font: 800 20px/1 var(--pc-fd); }
.pc-mr .mv small { display: block; font: 500 10.5px var(--pc-fb); color: var(--pc-mute); margin-top: 2px; white-space: nowrap; }
.pc-mr.na { grid-template-columns: 136px 1fr 190px; }
.pc-mr.na .ml { color: var(--pc-mute); }
.pc-mr.na .mv small { white-space: normal; }
.pc-kvs, .pc-kvg { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; font-size: 13px; }
.pc-kvs div, .pc-kvg div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dotted var(--pc-line); padding: 5px 0; }
.pc-kvs small, .pc-kvg small { color: var(--pc-mute); font-weight: 500; font-size: 11px; }
.pc-kvg b { font-variant-numeric: tabular-nums; text-align: right; }
.pc-tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pc-log { width: 100%; border-collapse: collapse; font-size: 13px; }
.pc-log th { font: 700 11px var(--pc-fb); color: var(--pc-mute); text-align: left; padding: 6px; border-bottom: 1.5px solid var(--pc-line); white-space: nowrap; }
.pc-log td { padding: 6px; border-bottom: 1px solid var(--rule-2, #E6DCC6); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-log small { color: var(--pc-mute); font-size: 10.5px; }

.pc-log.wrap td { white-space: normal; }
/* the arsenal: one card per pitch, no sideways scroll, everywhere: nine columns do not fit the page's Statcast column either */
.pc-log.ars, .pc-log.ars tbody { display: block; } .pc-log.ars thead { display: none; }
.pc-log.ars tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 8px; padding: 9px 0; border-top: 1px solid var(--pc-line); }
.pc-log.ars td { display: block; padding: 0; border: 0; white-space: normal; text-align: left; font-variant-numeric: tabular-nums; }
.pc-log.ars td:first-child { grid-column: 1 / -1; font-weight: 700; }
.pc-log.ars td[data-l]::before { content: attr(data-l); display: block; font: 600 11px/1.3 var(--pc-fb); color: var(--pc-mute); }
.pc-log.ars td small { display: block; font-size: 11px; color: var(--pc-mute); }
.pc-locs { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: start; }
.pc-svg { display: block; max-width: 100%; }
.pc-svg.spray { max-height: 255px; } .pc-svg.mvp { max-height: 250px; }
.pc-svg .ax { font: 500 10.5px var(--pc-fb); fill: #6E7789; }
.pc-svg .gl { stroke: #EEE7D6; } .pc-svg .gl0 { stroke: #D9CFB8; }
.pc-svg .lg text { font: 600 11px var(--pc-fb); fill: #4A5568; }

/* ---------------- phone: a bottom sheet ---------------- */
@media (max-width: 640px) {
  .modal-bg.pc-bg { align-items: flex-end; }
  .modal.pc-sheet { width: 100%; height: 90vh; height: 90dvh; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 30px rgb(0 0 0 / .25); animation-name: pc-up; }
  @keyframes pc-up { from { transform: translateY(40px); opacity: .4 } to { transform: none; opacity: 1 } }
  .pc-grab { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--pc-line); margin: 8px auto 0; flex: none; }
  .pc-grab, .pc-top { touch-action: none; }
  .pc-top { padding: 8px 14px 6px; gap: 10px; align-items: flex-start; }
  .pc-logo img, .pc-logo svg { width: 42px; height: 42px; }
  .pc-who h2 { font-size: 25px; } .pc-sub { font-size: 12px; }
  .pc-btns [data-mnav] { display: none; }
  .pc-ast { margin: 0 14px 6px; }
  .pc-tabs { padding: 0 6px; gap: 0; } .pc-tabs .pc-tl { display: none; } .pc-tabs .pc-ts { display: inline; } .pc-tabs button { padding: 10px 8px 8px; font-size: 13.5px; flex: 1; }
  .pc-body { padding: 2px 14px 12px; }
  .pc-foot { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); } .pc-foot span { display: none; }
  .pc-btn.p { flex: 2; min-width: 0; } .pc-btn:not(.p) { flex: 1; }
  .pc-two, .pc-two.p { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pc-tiles { grid-template-columns: 1fr 1fr; }
  .pc-glance { padding: 10px 14px; margin-top: 8px; } .pc-glance .big { gap: 14px; } .pc-glance .v { font-size: 30px; }
  .pc-form5 div { padding: 5px 2px; } .pc-form5 b { font-size: 13px; } .pc-form5 small { display: none; }
  .pc-mr { grid-template-columns: 104px 1fr 92px; } .pc-mr.na { grid-template-columns: 104px 1fr 150px; }
  .pc-locs { grid-template-columns: 150px 1fr; }
  .pc-ctx div { flex-direction: column; gap: 2px; } .pc-ctx b { text-align: left; }
  .pc-log { font-size: 12px; }
  .pc-log.hl th:nth-child(n+4):nth-child(-n+11), .pc-log.hl td:nth-child(n+4):nth-child(-n+11) { display: none; }
  .pc-log.pl th:nth-child(5), .pc-log.pl td:nth-child(5), .pc-log.pl th:nth-child(9), .pc-log.pl td:nth-child(9), .pc-log.pl th:nth-child(10), .pc-log.pl td:nth-child(10) { display: none; } .pc-log.pl th, .pc-log.pl td { padding-left: 4px; padding-right: 4px; }
  .pc-kvg { gap: 0 12px; }
}

/* ---------------- the full page ---------------- */
.pp { display: block; padding-bottom: 24px; }
.pp-head { position: relative; background: linear-gradient(100deg, #0B1622 0%, #1A2A3A 60%, #22374D 100%); color: #fff; padding: 26px 32px; border-radius: 0 0 14px 14px; overflow: hidden; min-height: 150px; display: flex; align-items: flex-end; }
.pp-head > .pp-hin { position: relative; z-index: 2; display: flex; align-items: center; gap: 18px; width: 100%; flex-wrap: wrap; }
.pp-head.l2-painted::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(7 16 26 / .82), rgb(7 16 26 / .35)); z-index: 1; }
.pp-head .fan-cap { position: absolute; z-index: 2; right: 10px; top: 8px; font-size: 10.5px; opacity: .8; }
.pp-head .pc-logo img, .pp-head .pc-logo svg { width: 64px; height: 64px; }
.pp-who h1 { font: 800 44px/1 var(--pc-fd); margin: 0; letter-spacing: .3px; }
.pp-bio { font-size: 14.5px; color: #D9DEE8; margin-top: 6px; }
.pp-bio a { color: inherit; } .pp-bio .pc-chip { background: #fff; color: #0B1622; }
.pp-acts { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.pp-pill { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid rgb(255 255 255 / .45); display: inline-grid; place-items: center; font: 600 13.5px var(--pc-fb); color: #fff; background: rgb(255 255 255 / .06); text-decoration: none; cursor: pointer; }
.pp-head .pp-pill, .pp-head .pp-pill:visited, .pp-head .pp-pill:hover { color: #fff !important; }
.pp-head .pp-pill[aria-pressed="true"] { background: #fff; color: #0B1622 !important; }
.pp-col.side .pc-two { grid-template-columns: minmax(0, 1fr); gap: 0; }
.pp-tile.sm .v { font-size: 24px; }
.pp > .pc-ast { margin: 10px 0 0; }
.pp-jump { position: sticky; top: var(--tbh, 0px); z-index: 5; background: var(--paper, #F0E2C6); border-bottom: 1px solid var(--pc-line); margin-top: 8px; }
.pp-jin { display: flex; gap: 8px; padding: 8px 0; overflow-x: auto; scrollbar-width: none; }
.pp-jin::-webkit-scrollbar { display: none; }
.pp-jin button { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--pc-line); background: var(--pc-card); font: 600 13.5px var(--pc-fb); color: var(--ink, #0F2340); white-space: nowrap; cursor: pointer; }
.pp-jin button.on { background: var(--pc-navy); color: #fff; border-color: var(--pc-navy); }
.pp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 20px; }
.pp-grid.has-sc { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.pp-col { min-width: 0; }
.pp-card { background: var(--pc-card); border: 1px solid var(--pc-line); border-radius: 16px; padding: 16px 18px; margin-top: 18px; scroll-margin-top: 140px; }
.pp-card.sc { border: 2px solid var(--pc-accent); }
.pp-card h3 { margin: 0 0 10px; font: 800 24px/1 var(--pc-fd); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pp-card h3 span { font: 500 12px var(--pc-fb); color: var(--pc-mute); text-align: right; }
.pp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pp-tile { background: var(--paper, #F0E2C6); border: 1px solid var(--pc-line); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.pp-tile.w2 { grid-column: span 2; }
.pp-tile .k { display: block; font: 700 11.5px var(--pc-fb); color: var(--pc-mute); letter-spacing: .4px; }
.pp-tile .v { display: block; font: 800 32px/1.05 var(--pc-fd); margin-top: 2px; }
.pp-tile .r { display: block; font-size: 12px; color: var(--pc-mute); margin-top: 3px; }
.pp-big { font: 700 17px var(--pc-fb); margin-bottom: 6px; }
.pp-more { margin-top: 10px; min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid var(--pc-line); background: var(--paper, #F0E2C6); font: 600 13.5px var(--pc-fb); color: var(--ink, #0F2340); cursor: pointer; }
.pp .pc-log[data-pc-more] tr.pc-x { display: none; }
.pp .pc-log[data-pc-more].open tr.pc-x { display: table-row; }
.pp-cover { margin-top: 22px; padding: 14px 0; border-top: 1px solid var(--pc-line); font-size: 12px; color: var(--pc-mute); line-height: 1.6; }

.pp .pc-two { gap: 28px; }
@media (min-width: 1100px) { .pp .pc-log[data-pc-more] tr.pc-x { display: table-row; } .pp-more { display: none; } }
@media (max-width: 900px) {
  /* one column, Statcast third: the hitter's side column folds in after Form */
  .pp-grid, .pp-grid.has-sc { display: flex; flex-direction: column; }
  .pp-col { display: contents; }
  .pp-card { order: 10; }
  #pp-season { order: 1; } #pp-form { order: 2; } #pp-sc, #pp-pl { order: 3; } #pp-log { order: 4; } #pp-time { order: 5; } #pp-before { order: 6; } #pp-all { order: 7; } #pp-clips { order: 8; }
  .pp-tiles { grid-template-columns: 1fr 1fr; }
  .pp-tile.w2 { grid-column: span 2; }
}
@media (max-width: 640px) {
  .pp-head { padding: 18px 16px; border-radius: 0; min-height: 0; }
  .pp-head .pc-logo img, .pp-head .pc-logo svg { width: 48px; height: 48px; }
  .pp-who h1 { font-size: 32px; } .pp-bio { font-size: 13px; }
  .pp-who { flex: 1; min-width: 0; }
  .pp-acts { margin-left: 0; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .pp-acts::-webkit-scrollbar { display: none; }
  .pp-pill { min-height: 44px; padding: 0 14px; font-size: 13px; white-space: nowrap; flex: none; }
  .pp-head.l2-painted { padding-bottom: 58px; }
  .pp-card { padding: 14px; border-radius: 14px; }
  .pp-card h3 { font-size: 22px; flex-wrap: wrap; }
  .pp-tile .v { font-size: 26px; } .pp-tile.sm .v { font-size: 20px; }
  .pp .pc-two, .pp .pc-two.p { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* small text links: a 44 px hit area without moving the line (inline padding paints no layout) */
.pc a:not(.pc-btn):not(.pc-chip), .pp a:not(.pp-pill):not(.pc-chip) { color: inherit; display: inline; padding: 15px 2px; margin: -15px -2px; }
.pp .pp-head .fan-cap a { padding: 19px 2px !important; margin: -19px -2px !important; }
.pc-chip, a.pc-chip { padding: 4px 7px; }
.pc-chip { position: relative; }
a.pc-chip::after, .pp .pp-head .fan-cap a::after { content: ""; position: absolute; top: 50%; left: 50%; width: max(100%, 44px); height: 44px; transform: translate(-50%, -50%); }
.pp .pp-head .fan-cap a { position: relative; }
.pc-svg.roll { max-width: 760px; margin-inline: auto; }
.pc-mini.roll-cap { text-align: center; }
