.percentile-page,
.player-page {
  --pc-brand: #087a50;
  --pc-brand-hover: #066641;
  --pc-bg: #f3f5f4;
  --pc-surface: #ffffff;
  --pc-surface-muted: #f5f7f6;
  --pc-text: #17211d;
  --pc-muted: #66736d;
  --pc-line: #d8dfdc;
  --pc-line-strong: #bdc8c3;
  --pc-table-head: #25494d;
  --pc-table-group: #e8eeeb;
  --pc-key-column: #edf6f2;
  --pc-low: #3661ad;
  --pc-below: #6280b8;
  --pc-middle: #78999b;
  --pc-above: #d67f70;
  --pc-high: #d82129;
  --pc-percentile-track: #d7e4e4;
  --pc-shadow: 0 12px 32px rgba(19, 37, 29, 0.08);
  background: var(--pc-bg);
  color: var(--pc-text);
}

.dark .percentile-page,
.dark .player-page {
  --pc-brand: #56d5a5;
  --pc-brand-hover: #77e1ba;
  --pc-bg: #0b0d0c;
  --pc-surface: #111513;
  --pc-surface-muted: #171c19;
  --pc-text: #f1f5f3;
  --pc-muted: #99a59f;
  --pc-line: #29312d;
  --pc-line-strong: #3b4741;
  --pc-table-head: #142c2e;
  --pc-table-group: #1a211e;
  --pc-key-column: #14231d;
  --pc-percentile-track: #334140;
  --pc-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
}

.player-profile-shell {
  margin-left: auto;
  margin-right: auto;
  max-width: 1128px;
}

.player-page .player-profile-shell {
  margin-top: 40px;
}

.player-profile-breadcrumb {
  align-items: center;
  background: transparent;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.player-profile-breadcrumb li {
  color: var(--pc-muted);
  font-size: 12px;
  font-weight: 700;
}

.player-profile-breadcrumb li:not(:last-child)::after {
  color: var(--pc-line-strong);
  content: "/";
  margin-left: 6px;
}

.player-profile-breadcrumb a {
  color: var(--pc-muted);
  text-decoration: none;
}

.player-profile-breadcrumb a:hover {
  color: var(--pc-brand);
}

.player-profile-card {
  background: var(--pc-surface);
  border: 1px solid var(--pc-line);
  border-radius: 10px;
  box-shadow: var(--pc-shadow);
  overflow: visible;
  position: relative;
}

.player-page .player-profile-card {
  margin-left: auto;
  margin-right: auto;
  max-width: 1128px;
}

.player-profile-main {
  align-items: end;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 24px 26px 0;
}

.player-profile-kicker {
  color: var(--pc-brand);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin: 0 0 3px;
  text-transform: uppercase;
}

.player-profile-card h1 {
  color: var(--pc-text);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 0;
}

.player-profile-team {
  color: var(--pc-muted);
  font-size: 13px;
  font-weight: 700;
  margin: 7px 0 9px;
}

.player-profile-team span::before {
  color: var(--pc-line-strong);
  content: "/";
  margin: 0 8px;
}

.player-profile-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0 0 23px;
}

.player-profile-details div {
  display: flex;
  font-size: 12px;
  gap: 7px;
}

.player-profile-details dt {
  color: var(--pc-muted);
  font-weight: 700;
}

.player-profile-details dd {
  color: var(--pc-text);
  font-weight: 800;
  margin: 0;
}

.player-year-control {
  align-items: stretch;
  background: var(--pc-surface-muted);
  border: 1px solid var(--pc-line);
  border-radius: 8px;
  display: flex;
  margin-bottom: 23px;
  padding: 4px;
}

.player-year-control > a,
.player-year-control > span {
  align-items: center;
  border-radius: 5px;
  color: var(--pc-muted);
  display: flex;
  height: 34px;
  justify-content: center;
  text-decoration: none;
  width: 34px;
}

.player-year-control > a:hover {
  background: var(--pc-surface);
  color: var(--pc-brand);
}

.player-year-control > span {
  opacity: 0.35;
}

.player-year-menu {
  position: relative;
}

.player-year-menu summary {
  align-items: center;
  background: transparent;
  border-radius: 5px;
  color: var(--pc-text);
  cursor: pointer;
  display: flex;
  font-size: 12px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  list-style: none;
  min-width: 100px;
  padding: 0 12px;
}

.player-year-menu summary::-webkit-details-marker {
  display: none;
}

.player-year-menu summary::after {
  color: var(--pc-muted);
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-size: 9px;
  font-weight: 900;
  margin-left: 8px;
}

.player-year-menu[open] summary::after {
  transform: rotate(180deg);
}

.player-year-menu > div {
  background: var(--pc-surface);
  border: 1px solid var(--pc-line);
  border-radius: 8px;
  box-shadow: var(--pc-shadow);
  display: grid;
  max-height: 280px;
  min-width: 128px;
  overflow-y: auto;
  padding: 5px;
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  z-index: 20;
}

.player-year-menu > div a {
  border-radius: 5px;
  color: var(--pc-muted);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
  text-decoration: none;
  white-space: nowrap;
}

.player-year-menu > div a:hover,
.player-year-menu > div a.current {
  background: var(--pc-surface-muted);
  color: var(--pc-brand);
}

.player-profile-records {
  border-top: 1px solid var(--pc-line);
  display: grid;
  padding: 4px 26px 14px;
}

.player-profile-record {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: 132px minmax(0, 1fr);
  padding: 10px 0;
}

.player-profile-record + .player-profile-record {
  border-top: 1px solid var(--pc-line);
}

.player-profile-record > span {
  color: var(--pc-muted);
  font-size: 11px;
  font-weight: 800;
}

.player-profile-record p {
  color: var(--pc-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.65;
  margin: 0;
}

.player-profile-awards ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.player-profile-awards li {
  color: var(--pc-text);
  display: inline-flex;
  font-size: 12px;
  gap: 6px;
  line-height: 1.55;
}

.player-profile-awards strong {
  font-weight: 900;
}

.player-profile-awards small {
  color: var(--pc-muted);
  font-size: 11px;
  font-weight: 700;
}

.player-page .player-stats .stats-subtitle {
  border: 0;
  color: var(--pc-text);
  display: block;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.35;
  margin: 0 0 14px;
  padding: 0;
}

.player-page .player-stats .stats-subtitle::before {
  content: none;
}

.player-page .player-profile-shell + .player-stats {
  margin-top: 0 !important;
  padding-top: 56px;
}

.player-chart-page .player-profile-shell + #second-box {
  margin-top: 0 !important;
  padding-top: 56px;
}

.player-page .player-profile-shell + .player-stats > .col-12 {
  margin-top: 0 !important;
}

.player-page .player-stats .stats-tab {
  column-gap: 0;
  row-gap: 28px;
}

.player-page .player-stats .stats-tab > label {
  background: var(--pc-surface);
  border: 1px solid var(--pc-line-strong);
  border-radius: 0;
  box-shadow: none;
  color: var(--pc-muted);
  font-size: 12px;
  font-weight: 900;
  justify-content: center;
  min-width: 82px;
  padding: 9px 18px;
}

.player-page .player-stats .stats-tab > label:first-of-type {
  border-radius: 7px 0 0 7px;
}

.player-page .player-stats .stats-tab > label:nth-of-type(2) {
  border-radius: 0 7px 7px 0;
  margin-left: -1px;
}

.player-page .player-stats .stats-tab > label:has(input:checked) {
  background: var(--pc-table-head);
  border-color: var(--pc-table-head);
  color: #ffffff;
  position: relative;
  z-index: 3;
}

.player-page .player-stats .stats-tab > label input[type="radio"] {
  display: block !important;
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.player-page .player-stats .stats-tab > label:focus-within {
  outline: 2px solid var(--pc-brand);
  outline-offset: 2px;
}

.player-page .player-stats .stats-tab.is-single-tab {
  display: block;
}

.player-page .player-stats .stats-tab.is-single-tab > label {
  display: none;
}

.player-page .player-stats .stats-tab.is-single-tab > .pb-tab {
  display: block;
}

.player-page .player-detail-tabs {
  border-bottom: 1px solid var(--pc-line);
  display: flex;
  margin: 0 auto 32px;
  overflow-x: auto;
  scrollbar-width: none;
  width: 83.333333%;
}

.player-page .player-detail-tabs::-webkit-scrollbar {
  display: none;
}

.player-page .player-detail-tabs.is-single-tab {
  display: none;
}

.player-page .player-detail-tabs button {
  background: transparent;
  border: 0;
  color: var(--pc-muted);
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  padding: 13px 15px 12px;
  position: relative;
  white-space: nowrap;
}

.player-page .player-detail-tabs button:hover,
.player-page .player-detail-tabs button:focus-visible {
  color: var(--pc-brand);
}

.player-page .player-detail-tabs button:focus-visible {
  outline: 2px solid var(--pc-brand);
  outline-offset: -3px;
}

.player-page .player-detail-tabs button.is-active {
  color: var(--pc-text);
}

.player-page .player-detail-tabs button.is-active::after {
  background: var(--pc-brand);
  border-radius: 3px 3px 0 0;
  bottom: 0;
  content: "";
  height: 3px;
  left: 14px;
  position: absolute;
  right: 14px;
}

.player-page .player-detail-tab-panel[hidden] {
  display: none !important;
}

.player-page .player-detail-tab-panel > .row,
.player-page .player-detail-tab-panel.row {
  margin-bottom: 48px !important;
}

.player-page .player-data-note {
  color: var(--pc-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 6px;
}

.player-page .player-career-empty {
  border-bottom: 1px solid var(--pc-line);
  border-top: 1px solid var(--pc-line);
  margin: 0 auto 56px;
  padding: 28px 0;
  width: 66.666667%;
}

.player-page .player-career-empty h2,
.player-page .player-comparison-heading h2 {
  color: var(--pc-text);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.35;
  margin: 0;
}

.player-page .player-career-empty p,
.player-page .player-comparison-heading p {
  color: var(--pc-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
  margin: 6px 0 0;
}

.player-page .player-comparison-rankings {
  margin-top: 64px;
}

.player-page .player-comparison-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin: 0 auto 16px;
  width: 83.333333%;
}

.player-page .player-comparison-heading p {
  margin: 0;
}

.player-page .player-stats .pb-tab > .row {
  margin-bottom: 72px !important;
}

.player-page .player-stats :is(.over-scroll, .table-responsive) {
  border-color: var(--pc-line-strong);
  border-radius: 8px;
  box-shadow: none;
}

.player-page .player-stats table:is(.table-green, .table-sm) {
  background: var(--pc-surface);
  border-collapse: separate;
  border-spacing: 0;
  display: table;
  font-size: 12px;
  max-width: none;
  min-width: max-content;
  overflow: visible;
  width: 100%;
}

.player-page .player-stats table:is(.table-green, .table-sm) caption {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.player-page .player-stats table:is(.table-green, .table-sm) thead tr.bc-data-table-groups th {
  background: var(--pc-table-group);
  border-bottom: 1px solid var(--pc-line-strong);
  border-right: 1px solid var(--pc-line);
  color: var(--pc-muted);
  font-size: 10px;
  font-weight: 900;
  height: 28px;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  text-align: left;
}

.player-page .player-stats table:is(.table-green, .table-sm) thead tr.bc-data-table-groups th:last-child {
  border-right: 0;
}

.player-page .player-stats table:is(.table-green, .table-sm) thead tr:not(.bc-data-table-groups) th {
  background: var(--pc-table-head);
  border-bottom: 0;
  color: #ffffff;
  font-size: 11px;
  height: 36px;
  letter-spacing: 0;
  min-width: 62px;
  padding: 8px 11px;
}

.player-page .player-stats table:is(.table-green, .table-sm) tbody th,
.player-page .player-stats table:is(.table-green, .table-sm) tbody td {
  background: var(--pc-surface);
  border-bottom: 1px solid var(--pc-line);
  color: var(--pc-text);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  height: 39px;
  min-width: 62px;
  padding: 8px 11px;
}

.player-page .player-stats table:is(.table-green, .table-sm) tbody tr:nth-child(even) > th,
.player-page .player-stats table:is(.table-green, .table-sm) tbody tr:nth-child(even) > td {
  background: var(--pc-surface-muted);
}

.player-page .player-stats table:is(.table-green, .table-sm) tbody tr:hover > th,
.player-page .player-stats table:is(.table-green, .table-sm) tbody tr:hover > td {
  background: color-mix(in srgb, var(--pc-brand) 9%, var(--pc-surface));
}

.player-page .player-stats table:is(.table-green, .table-sm) tbody :is(th, td).sticky {
  box-shadow: 5px 0 9px -8px rgba(10, 32, 24, 0.65);
  color: var(--pc-brand);
  min-width: 78px;
}

.player-page .player-stats table:is(.table-green, .table-sm) tbody a {
  color: var(--pc-brand);
  font-weight: 900;
  text-decoration: none;
}

.player-page .player-stats table:is(.table-green, .table-sm) tbody a:hover {
  text-decoration: underline;
}

.player-page .player-stats table:is(.table-green, .table-sm) tfoot th,
.player-page .player-stats table:is(.table-green, .table-sm) tfoot td {
  background: var(--pc-table-group);
  border-bottom: 0;
  border-top: 2px solid var(--pc-line-strong);
  color: var(--pc-text);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  height: 42px;
  padding: 9px 11px;
}

.player-page .player-stats .pb-tab table .sticky {
  left: 0;
  position: sticky;
  z-index: 10;
}

.player-page .player-stats #b-lr table .sticky {
  left: auto;
  position: static;
}

.player-page .player-stats #b-lr table thead .sticky:first-child,
.player-page .player-stats #b-lr table tbody .sticky[rowspan] {
  left: 0;
  position: sticky;
  z-index: 10;
}

.player-page .player-stats .pb-tab table .sticky-year {
  left: 0;
  min-width: 80px;
  position: sticky;
  width: 80px;
  z-index: 10;
}

.player-page .player-stats .pb-tab table .sticky-team {
  box-shadow: 7px 0 10px -9px rgba(10, 32, 24, 0.8);
  left: 80px;
  min-width: 120px;
  position: sticky;
  width: 120px;
  z-index: 11;
}

.player-page .player-stats .pb-tab table thead .sticky-team {
  background: var(--pc-table-head);
}

.player-page .player-stats .pb-tab table tbody .stats-team-name {
  text-align: left;
}

.player-page table.bc-data-table--season-pitcher thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(2),
.player-page table.bc-data-table--season-pitcher thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(5),
.player-page table.bc-data-table--season-pitcher thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(14),
.player-page table.bc-data-table--season-pitcher thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(22),
.player-page table.bc-data-table--season-pitcher tbody :is(th, td):nth-child(2),
.player-page table.bc-data-table--season-pitcher tbody :is(th, td):nth-child(5),
.player-page table.bc-data-table--season-pitcher tbody :is(th, td):nth-child(14),
.player-page table.bc-data-table--season-pitcher tbody :is(th, td):nth-child(22),
.player-page table.bc-data-table--season-batter thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(2),
.player-page table.bc-data-table--season-batter thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(6),
.player-page table.bc-data-table--season-batter thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(13),
.player-page table.bc-data-table--season-batter thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(17),
.player-page table.bc-data-table--season-batter thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(23),
.player-page table.bc-data-table--season-batter tbody :is(th, td):nth-child(2),
.player-page table.bc-data-table--season-batter tbody :is(th, td):nth-child(6),
.player-page table.bc-data-table--season-batter tbody :is(th, td):nth-child(13),
.player-page table.bc-data-table--season-batter tbody :is(th, td):nth-child(17),
.player-page table.bc-data-table--season-batter tbody :is(th, td):nth-child(23) {
  border-left: 2px solid var(--pc-line-strong);
}

.player-page table.bc-data-table--career-pitcher thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(4),
.player-page table.bc-data-table--career-pitcher thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(6),
.player-page table.bc-data-table--career-pitcher thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(16),
.player-page table.bc-data-table--career-pitcher thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(28),
.player-page table.bc-data-table--career-pitcher tbody :is(th, td):nth-child(4),
.player-page table.bc-data-table--career-pitcher tbody :is(th, td):nth-child(6),
.player-page table.bc-data-table--career-pitcher tbody :is(th, td):nth-child(16),
.player-page table.bc-data-table--career-pitcher tbody :is(th, td):nth-child(28),
.player-page table.bc-data-table--career-batter thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(4),
.player-page table.bc-data-table--career-batter thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(8),
.player-page table.bc-data-table--career-batter thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(15),
.player-page table.bc-data-table--career-batter thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(20),
.player-page table.bc-data-table--career-batter thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(26),
.player-page table.bc-data-table--career-batter tbody :is(th, td):nth-child(4),
.player-page table.bc-data-table--career-batter tbody :is(th, td):nth-child(8),
.player-page table.bc-data-table--career-batter tbody :is(th, td):nth-child(15),
.player-page table.bc-data-table--career-batter tbody :is(th, td):nth-child(20),
.player-page table.bc-data-table--career-batter tbody :is(th, td):nth-child(26) {
  border-left: 2px solid var(--pc-line-strong);
}

.player-page table.bc-data-table--season-pitcher tbody :is(th, td):nth-child(2),
.player-page table.bc-data-table--season-pitcher tbody :is(th, td):nth-child(8),
.player-page table.bc-data-table--season-pitcher tbody :is(th, td):nth-child(14),
.player-page table.bc-data-table--season-pitcher tbody :is(th, td):nth-child(21),
.player-page table.bc-data-table--season-batter tbody :is(th, td):nth-child(2),
.player-page table.bc-data-table--season-batter tbody :is(th, td):nth-child(7),
.player-page table.bc-data-table--season-batter tbody :is(th, td):nth-child(10),
.player-page table.bc-data-table--season-batter tbody :is(th, td):nth-child(12),
.player-page table.bc-data-table--season-batter tbody :is(th, td):nth-child(13),
.player-page table.bc-data-table--season-batter tbody :is(th, td):nth-child(23),
.player-page table.bc-data-table--season-batter tbody :is(th, td):nth-child(24) {
  background: var(--pc-key-column);
  font-weight: 900;
}

.player-page table.bc-data-table--career-pitcher tbody :is(th, td):nth-child(6),
.player-page table.bc-data-table--career-pitcher tbody :is(th, td):nth-child(7),
.player-page table.bc-data-table--career-pitcher tbody :is(th, td):nth-child(17),
.player-page table.bc-data-table--career-pitcher tbody :is(th, td):nth-child(23),
.player-page table.bc-data-table--career-pitcher tbody :is(th, td):nth-child(29),
.player-page table.bc-data-table--career-pitcher tbody :is(th, td):nth-child(34),
.player-page table.bc-data-table--career-batter tbody :is(th, td):nth-child(5),
.player-page table.bc-data-table--career-batter tbody :is(th, td):nth-child(9),
.player-page table.bc-data-table--career-batter tbody :is(th, td):nth-child(12),
.player-page table.bc-data-table--career-batter tbody :is(th, td):nth-child(14),
.player-page table.bc-data-table--career-batter tbody :is(th, td):nth-child(15),
.player-page table.bc-data-table--career-batter tbody :is(th, td):nth-child(27),
.player-page table.bc-data-table--career-batter tbody :is(th, td):nth-child(28) {
  background: var(--pc-key-column);
  font-weight: 900;
}

.player-page table.bc-data-table--season-pitcher thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(2),
.player-page table.bc-data-table--season-pitcher thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(8),
.player-page table.bc-data-table--season-pitcher thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(14),
.player-page table.bc-data-table--season-pitcher thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(21),
.player-page table.bc-data-table--season-batter thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(2),
.player-page table.bc-data-table--season-batter thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(7),
.player-page table.bc-data-table--season-batter thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(10),
.player-page table.bc-data-table--season-batter thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(12),
.player-page table.bc-data-table--season-batter thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(13),
.player-page table.bc-data-table--season-batter thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(23),
.player-page table.bc-data-table--season-batter thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(24) {
  box-shadow: inset 0 -3px color-mix(in srgb, var(--pc-brand) 58%, #ffffff);
}

.player-page table.bc-data-table--career-pitcher thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(6),
.player-page table.bc-data-table--career-pitcher thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(7),
.player-page table.bc-data-table--career-pitcher thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(17),
.player-page table.bc-data-table--career-pitcher thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(23),
.player-page table.bc-data-table--career-pitcher thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(29),
.player-page table.bc-data-table--career-pitcher thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(34),
.player-page table.bc-data-table--career-batter thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(5),
.player-page table.bc-data-table--career-batter thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(9),
.player-page table.bc-data-table--career-batter thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(12),
.player-page table.bc-data-table--career-batter thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(14),
.player-page table.bc-data-table--career-batter thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(15),
.player-page table.bc-data-table--career-batter thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(27),
.player-page table.bc-data-table--career-batter thead tr:not(.bc-data-table-groups) :is(th, td):nth-child(28) {
  box-shadow: inset 0 -3px color-mix(in srgb, var(--pc-brand) 58%, #ffffff);
}

@media (max-width: 860px) {
  .player-page .player-detail-tabs {
    width: 100%;
  }

  .player-page .player-career-empty,
  .player-page .player-comparison-heading {
    width: 100%;
  }

  .player-profile-main {
      gap: 14px;
      padding: 21px 18px 0;
    }

  .player-profile-records {
      padding-left: 18px;
      padding-right: 18px;
    }
}

@media (max-width: 560px) {
  .player-page .player-comparison-heading {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .player-page .player-profile-shell {
      margin-top: 28px;
    }

  .player-page .player-profile-shell + .player-stats {
    padding-top: 44px;
  }

  .player-chart-page .player-profile-shell + #second-box {
    padding-top: 44px;
  }

  .player-profile-breadcrumb {
      margin-bottom: 12px;
    }

  .player-profile-main {
      align-items: start;
      grid-template-columns: 1fr;
    }

  .player-profile-card h1 {
      font-size: 28px;
    }

  .player-profile-team {
      font-size: 11px;
    }

  .player-profile-details {
      font-size: 11px;
      margin-bottom: 0;
    }

  .player-profile-details div {
      font-size: 11px;
    }

  .player-profile-record {
      gap: 4px;
      grid-template-columns: 1fr;
      padding: 9px 0;
    }

  .player-profile-awards ul {
      display: grid;
      gap: 5px;
    }

  .player-page .player-stats table:is(.table-green, .table-sm) thead tr:not(.bc-data-table-groups) th,
    .player-page .player-stats table:is(.table-green, .table-sm) tbody th,
    .player-page .player-stats table:is(.table-green, .table-sm) tbody td,
    .player-page .player-stats table:is(.table-green, .table-sm) tfoot th,
    .player-page .player-stats table:is(.table-green, .table-sm) tfoot td {
      min-width: 58px;
      padding-left: 9px;
      padding-right: 9px;
    }

  .player-year-control {
      margin: 0 0 18px;
      width: max-content;
    }

}

/* Matchup and archive pages */
.player-renewal-content {
  margin: 0 auto;
  max-width: 1128px;
  padding: 56px 0 24px;
}

.player-section-heading {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.player-section-kicker {
  color: var(--pc-brand);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  margin: 0 0 4px;
}

.player-section-heading h2,
.salary-chart-card h3 {
  color: var(--pc-text);
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.35;
  margin: 0;
}

.player-section-link {
  color: var(--pc-brand);
  font-size: 12px;
  font-weight: 900;
  padding: 7px 0;
  text-decoration: none;
  white-space: nowrap;
}

.player-section-link i {
  font-size: 9px;
  margin-left: 5px;
}

.player-section-link:hover {
  color: var(--pc-brand-hover);
  text-decoration: underline;
}

.player-section-note {
  color: var(--pc-muted);
  font-size: 11px;
  font-weight: 700;
  margin: 0 0 4px;
}

.matchup-panel-list {
  display: grid;
  gap: 14px;
}

.matchup-panel {
  background: var(--pc-surface);
  border: 1px solid var(--pc-line-strong);
  border-radius: 8px;
  overflow: hidden;
}

.matchup-panel > summary {
  align-items: center;
  background: var(--pc-surface);
  color: var(--pc-text);
  cursor: pointer;
  display: grid;
  font-size: 14px;
  font-weight: 900;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  list-style: none;
  min-height: 52px;
  padding: 12px 17px;
}

.matchup-panel > summary::-webkit-details-marker {
  display: none;
}

.matchup-panel > summary:hover {
  background: var(--pc-surface-muted);
}

.matchup-panel > summary:focus-visible {
  outline: 2px solid var(--pc-brand);
  outline-offset: -3px;
}

.matchup-panel > summary small {
  color: var(--pc-muted);
  font-size: 11px;
  font-weight: 800;
}

.matchup-panel > summary i {
  color: var(--pc-brand);
  font-size: 11px;
  text-align: center;
  transition: transform .18s ease;
}

.matchup-panel[open] > summary {
  border-bottom: 1px solid var(--pc-line-strong);
}

.matchup-panel[open] > summary i {
  transform: rotate(180deg);
}

.matchup-panel-body {
  padding: 14px;
}

.player-page .bc-data-table-frame {
  background: var(--pc-surface);
  border: 1px solid var(--pc-line-strong);
  border-radius: 7px;
  box-shadow: none;
}

.player-page table.bc-data-table--matchup,
.player-page table.bc-data-table--archive {
  background: var(--pc-surface);
  border-collapse: separate;
  border-spacing: 0;
  display: table;
  font-size: 12px;
  max-width: none;
  min-width: max-content;
  overflow: visible;
  width: 100%;
}

.player-page table:is(.bc-data-table--matchup, .bc-data-table--archive) caption {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.player-page table:is(.bc-data-table--matchup, .bc-data-table--archive) thead tr.bc-data-table-groups th {
  background: var(--pc-table-group);
  border-bottom: 1px solid var(--pc-line-strong);
  border-right: 1px solid var(--pc-line);
  color: var(--pc-muted);
  font-size: 10px;
  font-weight: 900;
  height: 28px;
  letter-spacing: .08em;
  padding: 5px 11px;
  text-align: left;
}

.player-page table:is(.bc-data-table--matchup, .bc-data-table--archive) thead tr:not(.bc-data-table-groups) th {
  background: var(--pc-table-head);
  border: 0;
  color: #fff;
  font-size: 11px;
  height: 36px;
  min-width: 62px;
  padding: 8px 11px;
  text-align: right;
}

.player-page table:is(.bc-data-table--matchup, .bc-data-table--archive) tbody th,
.player-page table:is(.bc-data-table--matchup, .bc-data-table--archive) tbody td {
  background: var(--pc-surface);
  border-bottom: 1px solid var(--pc-line);
  color: var(--pc-text);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  height: 39px;
  min-width: 62px;
  padding: 8px 11px;
}

.player-page table:is(.bc-data-table--matchup, .bc-data-table--archive) tbody tr:nth-child(even) > * {
  background: var(--pc-surface-muted);
}

.player-page table:is(.bc-data-table--matchup, .bc-data-table--archive) tbody tr:hover > * {
  background: color-mix(in srgb, var(--pc-brand) 9%, var(--pc-surface));
}

.player-page table:is(.bc-data-table--matchup, .bc-data-table--archive) tbody a {
  color: var(--pc-brand);
  font-weight: 900;
  text-decoration: none;
}

.player-page table:is(.bc-data-table--matchup, .bc-data-table--archive) tbody a:hover {
  text-decoration: underline;
}

.player-page table.bc-data-table--matchup :is(th, td):nth-child(2),
.player-page table.bc-data-table--matchup :is(th, td):nth-child(9),
.player-page table.bc-data-table--archive :is(th, td):nth-child(2),
.player-page table.bc-data-table--archive :is(th, td):nth-child(5) {
  border-left: 2px solid var(--pc-line-strong);
}

.player-page table.bc-data-table--matchup .matchup-player-column,
.player-page table.bc-data-table--archive .archive-year-column {
  box-shadow: 6px 0 9px -8px rgba(10, 32, 24, .8);
  left: 0;
  min-width: 154px;
  position: sticky;
  text-align: left;
  z-index: 10;
}

.player-page table.bc-data-table--matchup thead .matchup-player-column,
.player-page table.bc-data-table--archive thead .archive-year-column {
  background: var(--pc-table-head);
}

.player-page table.bc-data-table--archive .archive-year-column {
  min-width: 72px;
  text-align: right;
  width: 72px;
}

.player-page table.bc-data-table--archive .archive-name-column,
.player-page table.bc-data-table--archive .archive-team-column {
  min-width: 160px;
  text-align: left;
}

.archive-text-cell {
  text-align: left;
}

.archive-salary-cell {
  color: var(--pc-text);
  font-weight: 900;
}

.archive-salary-cell small {
  color: var(--pc-muted);
  font-size: 10px;
  margin-left: 3px;
}

.matchup-copy-note,
.matchup-footnotes {
  color: var(--pc-muted);
  font-size: 11px;
  font-weight: 700;
  margin: 13px 2px 0;
}

.matchup-footnotes {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.matchup-footnotes p {
  margin: 0;
}

.salary-chart-card {
  background: var(--pc-surface);
  border: 1px solid var(--pc-line-strong);
  border-radius: 8px;
  margin-top: 42px;
  padding: 20px 22px 22px;
}

.salary-chart-card > header {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.salary-chart-card > header > p {
  color: var(--pc-muted);
  font-size: 10px;
  font-weight: 700;
  margin: 0;
}

.salary-chart-wrap {
  height: 360px;
  position: relative;
}

.matchup-duel-card {
  background: var(--pc-surface);
  border: 1px solid var(--pc-line-strong);
  border-radius: 10px;
  box-shadow: var(--pc-shadow);
  margin-bottom: 48px;
  padding: 22px 26px 24px;
}

.matchup-duel-names {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
}

.matchup-duel-names > div {
  display: grid;
  gap: 3px;
}

.matchup-duel-names > div:last-child {
  text-align: right;
}

.matchup-duel-names small {
  color: var(--pc-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
}

.matchup-duel-names a,
.matchup-team-name {
  color: var(--pc-text);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.18;
  text-decoration: none;
}

.matchup-duel-names a:hover {
  color: var(--pc-brand);
}

.matchup-duel-names span:not(.matchup-team-name) {
  color: var(--pc-muted);
  font-size: 11px;
  font-weight: 700;
}

.matchup-duel-names > strong {
  color: var(--pc-line-strong);
  font-size: 13px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: .08em;
  text-align: center;
}

.matchup-career-summary {
  margin-bottom: 24px;
}

.matchup-career-summary + .matchup-year-panel,
.matchup-year-panel + .matchup-year-panel {
  margin-top: 12px;
}

.matchup-copy-button {
  background: transparent;
  border: 0;
  color: var(--pc-brand);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  padding: 8px 0;
}

.matchup-copy-button:hover {
  text-decoration: underline;
}

.player-page table.matchup-summary-table :is(th, td):nth-child(2) {
  border-left: 0;
}

.player-page table.matchup-summary-table :is(th, td):nth-child(8) {
  border-left: 2px solid var(--pc-line-strong);
}

.matchup-data-note {
  color: var(--pc-muted);
  font-size: 10px;
  font-weight: 700;
  margin: 8px 2px 0;
}

.matchup-result-heading {
  color: var(--pc-text);
  font-size: 13px;
  font-weight: 900;
  margin: 12px 0 7px;
}

.player-page .matchup-results-table {
  background: var(--pc-surface);
  border-collapse: separate;
  border-spacing: 0;
  color: var(--pc-text);
  display: table;
  font-size: 12px;
  min-width: max-content;
  width: 100%;
}

.player-page .matchup-results-table thead th {
  background: var(--pc-table-head);
  border: 0;
  color: #fff;
  font-size: 11px;
  padding: 8px 12px;
  text-align: left;
}

.player-page table.matchup-results-table tbody :is(th, td) {
  background: var(--pc-surface);
  border-bottom: 1px solid var(--pc-line);
  color: var(--pc-text);
  font-size: 12px;
  padding: 9px 12px;
  text-align: center;
}

.player-page .matchup-results-table tbody tr:nth-child(even) > * {
  background: var(--pc-surface-muted);
}

.player-page .matchup-results-table .sticky {
  box-shadow: 6px 0 9px -8px rgba(10, 32, 24, .8);
  left: 0;
  min-width: 92px;
  position: sticky;
  z-index: 10;
}

.matchup-empty {
  align-items: center;
  background: var(--pc-surface);
  border: 1px solid var(--pc-line-strong);
  border-radius: 8px;
  color: var(--pc-text);
  display: flex;
  gap: 14px;
  padding: 22px;
}

.matchup-empty strong {
  font-size: 16px;
  font-weight: 900;
}

.matchup-empty span {
  color: var(--pc-muted);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 560px) {
  .player-renewal-content {
    padding-top: 44px;
  }

  .player-section-heading {
    align-items: start;
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
  }

  .player-section-link {
    justify-self: start;
  }

  .matchup-panel-list {
    gap: 10px;
  }

  .matchup-panel > summary {
    min-height: 48px;
    padding: 10px 12px;
  }

  .matchup-panel-body {
    padding: 10px;
  }

  .player-page table.bc-data-table--matchup .matchup-player-column {
    min-width: 136px;
  }

  .matchup-footnotes {
    align-items: start;
    display: grid;
    gap: 5px;
  }

  .salary-chart-card {
    margin-top: 32px;
    padding: 16px 12px 14px;
  }

  .salary-chart-card > header {
    align-items: start;
    display: grid;
    gap: 6px;
  }

  .salary-chart-wrap {
    height: 300px;
  }

  .matchup-duel-card {
    margin-bottom: 36px;
    padding: 18px 16px 20px;
  }

  .matchup-duel-names {
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  }

  .matchup-duel-names a,
  .matchup-team-name {
    font-size: 21px;
  }

  .player-team-matchup-page .matchup-team-name {
    font-size: clamp(16px, 4.6vw, 18px);
    letter-spacing: -.06em;
    text-wrap: balance;
  }

  .player-duel-page .matchup-career-summary > .player-section-heading {
    align-items: end;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .player-duel-page .matchup-copy-button {
    align-self: end;
    justify-self: end;
    padding: 4px 0;
  }

  .matchup-duel-names > strong {
    font-size: 10px;
  }
}
