.around-league-panel {
  min-height: 0;
  overflow: visible !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.around-league-panel::after {
  display: none;
}

.league-body {
  padding-top: 0;
}

.league-dashboard-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

.league-panel {
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: var(--card-bg-strong);
  box-shadow: var(--shadow);
  padding: clamp(14px, 2vw, 22px);
}

.league-section-header {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.scores-date-picker {
  min-width: 0;
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: #1b222d;
  display: grid;
  grid-template-columns: 36px minmax(0, 220px) 36px;
  justify-content: center;
  align-items: stretch;
  gap: 4px;
  overflow: hidden;
  padding: 4px;
}

.scores-head {
  align-items: center;
}

.scores-head .scores-date-picker {
  flex: 0 1 300px;
  margin-left: auto;
}

@media (min-width: 576px) {
  .scores-date-picker {
    width: 300px;
    margin-inline: auto;
  }
}

.scores-date-list {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.scores-date-arrow {
  border: 0;
  color: var(--muted);
  background: transparent;
}

.scores-date-current {
  min-width: 0;
  min-height: 36px;
  border-radius: 999px;
  color: #fff;
  background: #101720;
  display: grid;
  place-content: center;
  padding: 6px 10px;
  font-size: var(--text-small);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.scores-date-arrow {
  width: 36px;
  height: 36px;
  align-self: center;
  justify-self: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  padding: 0 0 3px;
  font-size: 1.7rem;
  line-height: 1;
}

.scores-date-arrow:hover,
.scores-date-arrow:focus-visible {
  color: #fff;
  background: rgba(205, 211, 215, 0.1);
}

.scores-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr));
  gap: 10px;
  margin-top: 14px;
}

.scores-group {
  min-width: 0;
  margin-top: 18px;
}

.scores-group + .scores-group {
  margin-top: 30px;
}

.scores-group-title {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.scores-group .scores-grid {
  margin-top: 10px;
}

.scores-group-empty {
  margin: 10px 0 0;
  color: var(--muted);
}

.score-card {
  min-width: 0;
  border: 0;
  border-radius: 8px;
  background: var(--inner-card-bg, #0a1015);
  display: grid;
  grid-template-rows: 5px auto auto auto;
  align-content: start;
  overflow: hidden;
}

.score-team-colors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.score-team-colors span {
  min-width: 0;
}

.score-matchup-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding: 13px 10px 7px;
}

.score-matchup-row > .score-team-logo {
  justify-self: center;
}

.score-matchup-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.score-team-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.score-versus,
.score-team-score,
.score-separator {
  color: var(--ink);
  font-weight: 800;
  line-height: 1;
}

.score-versus {
  color: var(--muted);
  font-size: var(--text-small);
  text-transform: lowercase;
}

.score-team-score {
  font-size: 1.2rem;
}

.score-separator {
  color: var(--muted);
}

.score-records-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 6px;
  padding: 0 8px 8px;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.score-record-separator {
  color: rgba(205, 211, 215, 0.45);
}

.score-team-record {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.card-record-divider {
  width: 1px;
  height: 8px;
  flex: 0 0 1px;
  background: rgba(205, 211, 215, 0.5);
}

.score-card-status {
  min-width: 0;
  border-top: 1px solid rgba(205, 211, 215, 0.1);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  display: grid;
  place-items: center;
  padding: 8px;
  text-align: center;
}

.score-status-label {
  color: inherit;
  font-size: var(--text-small);
  font-weight: 800;
  line-height: 1.25;
}

.score-card.live .score-card-status {
  color: #9af0c8;
}

.score-card.delayed .score-card-status {
  color: #ffd18a;
}

.score-card.final .score-card-status {
  color: var(--ink);
}

.scores-message {
  grid-column: 1 / -1;
  min-height: 110px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: var(--card-bg);
  display: grid;
  place-items: center;
  margin: 0;
  padding: 18px;
  font-weight: 700;
  text-align: center;
}

.scores-message.error {
  color: #ffbec4;
}

.standings-panel {
  min-width: 0;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.standings-switcher {
  width: min(960px, 86%);
  margin-left: auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(92px, 0.72fr);
  gap: 4px;
  border-radius: 999px;
  background: #1b222d;
  padding: 4px;
}

.standings-switch,
.standings-season-control {
  min-width: 0;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  color: #aebfe5;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-small);
  font-weight: 600;
}

.standings-switch {
  padding: 0 12px;
}

.standings-switch-label-short {
  display: none;
}

.standings-switch:hover,
.standings-switch:focus-visible {
  color: #fff;
  background: rgba(10, 15, 22, 0.55);
}

.standings-switch.active {
  color: #fff;
  background: #101720;
  box-shadow: inset 0 0 0 1px rgba(196, 206, 211, 0.08);
  font-weight: 800;
}

.standings-season-control {
  background: #101720;
  overflow: hidden;
  display: grid;
  grid-template-columns: 36px minmax(48px, 1fr) 36px;
}

.standings-season-control output {
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.standings-season-arrow {
  width: 36px;
  height: 36px;
  border: 0;
  outline: 0;
  color: #aebfe5;
  background: transparent;
  display: grid;
  place-items: center;
  padding: 0 0 3px;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.standings-season-arrow:hover,
.standings-season-arrow:focus-visible {
  color: #fff;
  background: rgba(196, 206, 211, 0.1);
}

.standings-season-arrow:disabled {
  color: #4f5a6c;
  cursor: default;
  opacity: 0.55;
}

.standings-option {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--card-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  font-size: var(--text-small);
  font-weight: 700;
}

.standings-option:hover,
.standings-option:focus-visible {
  border-color: var(--line-bright);
  color: #fff;
  background: rgba(196, 206, 211, 0.12);
}

.standings-option.active {
  border-color: var(--control-active-border);
  color: var(--control-active-ink);
  background: var(--control-active-bg);
}

.standings-table-shell {
  min-width: 0;
  overflow-x: auto;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.standings-table {
  width: 100%;
  min-width: 1080px;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.standings-table th,
.standings-table td {
  border-bottom: 0;
  padding: 10px 8px;
  vertical-align: middle;
}

.standings-table th {
  color: var(--muted);
  background: #0d1216;
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.standings-table td {
  color: #dfe4f4;
}

.standings-table tbody .team-standing-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.018);
}

.standings-table tbody .team-standing-row:hover {
  background: rgba(196, 206, 211, 0.06);
}

.standings-table tr:last-child td {
  border-bottom: 0;
}

.standings-table thead th:first-child,
.standings-table td:first-child {
  width: 4%;
  text-align: center;
}

.standings-table thead th:nth-child(2),
.standings-table td:nth-child(2) {
  width: 24%;
  text-align: left;
}

.standings-table thead th:nth-child(3),
.standings-table td:nth-child(3),
.standings-table thead th:nth-child(4),
.standings-table td:nth-child(4) {
  width: 5%;
}

.standings-table thead th:nth-child(5),
.standings-table td:nth-child(5),
.standings-table thead th:nth-child(6),
.standings-table td:nth-child(6) {
  width: 5%;
}

.standings-table thead th:nth-child(7),
.standings-table td:nth-child(7) {
  width: 7%;
}

.standings-table thead th:nth-child(8),
.standings-table td:nth-child(8) {
  width: 6%;
}

.standings-table thead th:nth-child(9),
.standings-table td:nth-child(9),
.standings-table thead th:nth-child(10),
.standings-table td:nth-child(10),
.standings-table thead th:nth-child(11),
.standings-table td:nth-child(11) {
  width: 7%;
}

.standings-table thead th:nth-child(12),
.standings-table td:nth-child(12),
.standings-table thead th:nth-child(13),
.standings-table td:nth-child(13),
.standings-table thead th:nth-child(14),
.standings-table td:nth-child(14) {
  width: 6%;
}

.standings-table th:not(:nth-child(2)),
.standings-table td:not(:nth-child(2)) {
  text-align: center;
}

.standings-table td span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.standings-table td:nth-child(2) span {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.standings-table td:nth-child(2) .standing-team-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.standing-team-logo {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.rank-indicator {
  font-weight: 800;
}

.standings-table .team-standing-row td:first-child {
  box-shadow: none;
}

.standings-table .is-yankees td {
  color: #dfe4f4;
  background: rgba(29, 79, 120, 0.24);
  font-weight: 700;
}

.standings-table .is-yankees td:nth-child(2) {
  color: #a8caff;
}

.standings-table .is-yankees td:first-child {
  box-shadow: none;
}

.standings-table.is-wild-card-view .wild-card-cutoff td {
  border-bottom: 4px solid #9b8548;
}

.standings-league-divider th {
  border-bottom: 0;
  color: var(--yankees-silver);
  background: #101720;
  padding: 9px 12px;
  font-size: var(--text-small);
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.standings-table .standings-division-divider th {
  background: transparent;
}

.standings-table .standings-subgroup-divider th {
  border-bottom: 0;
  color: var(--muted);
  background: transparent;
  padding: 7px 12px;
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.standings-table .standings-subgroup-divider th:first-child {
  text-align: left;
}

.standings-table.is-wild-card-view > thead {
  visibility: collapse;
}

.standings-section-spacer td {
  height: 18px;
  border: 0;
  background: var(--card-bg);
  padding: 0;
}

.standings-empty {
  height: 96px;
  color: var(--muted) !important;
  text-align: center !important;
}

.whos-hot-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.form-columns {
  min-width: 0;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.form-column .league-section-header {
  margin-bottom: 10px;
}

.whos-hot-list {
  min-width: 0;
  flex: 1;
  display: grid;
  grid-template-rows: repeat(5, 112px);
  align-content: start;
  gap: 8px;
}

.hot-item {
  min-width: 0;
  border: 0;
  border-left: 5px solid var(--hot-team-color, #60798f);
  border-radius: 6px;
  background: var(--inner-card-bg, #0a1015);
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px;
}

a.hot-item.player-profile-link {
  color: inherit;
  text-decoration: none;
}

a.hot-item.player-profile-link:hover,
a.hot-item.player-profile-link:focus-visible {
  border-left-color: color-mix(in srgb, var(--hot-team-color) 65%, white);
  background: color-mix(in srgb, var(--inner-card-bg, #0a1015) 92%, white);
}

.hot-content {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 5px;
}

.hot-team-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  justify-self: center;
}

.hot-player-headshot {
  width: 48px;
  height: 44px;
  object-fit: contain;
  object-position: center bottom;
  justify-self: center;
}

.hot-label {
  color: var(--muted);
  font-size: var(--text-small);
  font-weight: 800;
  letter-spacing: normal;
}

.hot-name {
  min-width: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hot-stats {
  color: var(--muted);
  font-size: var(--text-small);
  font-weight: 700;
  line-height: 1.3;
}

.leaderboard-panel {
  min-width: 0;
  align-self: stretch;
  grid-column: 1 / -1;
}

.leaderboard-toggle {
  display: flex;
  gap: 8px;
}

.leaderboard-content,
.leader-group {
  min-width: 0;
}

.leader-group + .leader-group {
  margin-top: 16px;
}

.leader-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.leader-group-title {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.leader-stat-toggle {
  min-width: 0;
  border-radius: 999px;
  background: #1b222d;
  display: none;
  grid-template-columns: repeat(5, minmax(38px, 1fr));
  gap: 3px;
  padding: 3px;
}

.leader-stat-toggle-button {
  min-width: 0;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  color: #aebfe5;
  background: transparent;
  padding: 0 9px;
  font-size: var(--text-small);
  font-weight: 700;
}

.leader-stat-toggle-button:hover,
.leader-stat-toggle-button:focus-visible {
  color: #fff;
  background: rgba(10, 15, 22, 0.55);
}

.leader-stat-toggle-button.active {
  color: #fff;
  background: #101720;
  box-shadow: inset 0 0 0 1px rgba(196, 206, 211, 0.08);
  font-weight: 800;
}

.leader-stat-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.leader-stat-card {
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: transparent;
}

.leader-stat-heading {
  min-height: 34px;
  background: #0d1216;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
}

.leader-stat-title {
  margin: 0;
  border-bottom: 0;
  color: var(--ink);
  font-size: var(--text-small);
  font-weight: 800;
}

.leader-more-link {
  flex: 0 0 auto;
  color: #8fbbe3;
  font-size: var(--text-small);
  font-weight: 750;
  text-decoration: none;
}

.leader-more-link:hover,
.leader-more-link:focus-visible {
  color: #fff;
  text-decoration: none;
}

.leader-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.leader-stat-empty {
  margin: 0;
  color: var(--muted);
  padding: 12px;
  font-size: var(--text-small);
  font-weight: 700;
  text-align: center;
}

.leader-entry {
  min-width: 0;
  display: grid;
  grid-template-columns: 18px 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  border-bottom: 0;
  padding: 6px 8px;
}

.leader-entry:nth-child(even) {
  background: rgba(255, 255, 255, 0.018);
}

.leader-entry:hover {
  background: rgba(196, 206, 211, 0.06);
}

.leader-entry:last-child {
  border-bottom: 0;
}

.leader-entry.is-yankees {
  background: rgba(29, 79, 120, 0.24);
  box-shadow: none;
}

.leader-entry.is-yankees .leader-name {
  color: #a8caff;
}

.leader-entry.is-yankees .leader-value {
  color: #dfe4f4;
}

.leader-rank {
  color: var(--muted);
  font-size: var(--text-small);
  font-weight: 800;
  text-align: center;
}

.leader-image {
  width: 32px;
  height: 32px;
  object-fit: contain;
  object-position: center bottom;
}

.leader-image.team-logo {
  object-fit: contain;
}

.leader-identity {
  min-width: 0;
  display: grid;
  gap: 1px;
}

a.leader-identity,
.leader-image-link {
  color: inherit;
  text-decoration: none;
}

a.leader-identity:hover .leader-name,
a.leader-identity:focus-visible .leader-name {
  color: #fff;
}

.leader-image-link {
  display: grid;
  place-items: center;
}

.leader-name {
  overflow: hidden;
  color: var(--ink);
  font-size: var(--text-small);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-team {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.leader-value {
  color: var(--yankees-silver);
  font-size: var(--text-small);
  font-weight: 800;
  white-space: nowrap;
}

.leaderboard-message {
  min-height: 180px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: var(--card-bg);
  display: grid;
  place-items: center;
  margin: 0;
  padding: 18px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 1199.98px) {
  .league-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .leader-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .score-matchup-row,
  .score-records-row {
    grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
  }

  .score-record-separator {
    justify-self: center;
  }

  .form-columns {
    grid-template-columns: 1fr;
  }

  .leader-stat-grid {
    grid-template-columns: 1fr;
  }

  .leaderboard-header {
    align-items: stretch;
  }

  .leaderboard-toggle .standings-option {
    flex: 1;
  }

  .leader-group-header {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
  }

  .leader-stat-toggle {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .leader-stat-toggle-button {
    padding-inline: 4px;
  }

  .leader-stat-card {
    display: none;
  }

  .leader-stat-card.is-selected {
    display: block;
  }
}

@media (max-width: 767.98px) {
  .league-section-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .scores-head .scores-date-picker,
  .standings-head .standings-switcher {
    flex: 0 1 auto;
    width: 100%;
    margin-left: 0;
  }

  .whos-hot-list {
    grid-template-rows: none;
  }
}

@media (max-width: 575.98px) {
  .league-panel {
    padding: 12px;
  }

  .header-actions,
  .status-pill {
    width: 100%;
  }

  .standings-head {
    align-items: stretch;
  }

  .standings-switcher {
    grid-template-columns: minmax(50px, 1fr) repeat(3, minmax(26px, 0.65fr)) minmax(54px, 1fr) minmax(72px, 1.2fr);
    border-radius: 999px;
  }

  .standings-season-control {
    grid-template-columns: 18px minmax(36px, 1fr) 18px;
  }

  .standings-switch {
    min-height: 36px;
    padding-inline: 3px;
    white-space: nowrap;
  }

  .standings-switch-label-long {
    display: none;
  }

  .standings-switch-label-short {
    display: inline;
  }

  .standings-season-arrow {
    width: 18px;
  }

  .standings-option {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    padding-inline: 8px;
  }

  .standings-table th,
  .standings-table td {
    padding: 9px 5px;
  }

  .standings-table-shell {
    overflow-x: hidden;
  }

  .standings-table {
    min-width: 0;
    display: block;
  }

  .standings-table thead,
  .standings-table tbody {
    display: block;
    width: 100%;
  }

  .standings-table thead tr,
  .standings-table .team-standing-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 40px 40px;
    width: 100%;
  }

  .standings-table thead th:first-child,
  .standings-table td:first-child {
    width: auto;
  }

  .standings-table thead th:nth-child(2),
  .standings-table td:nth-child(2) {
    width: auto;
    padding-left: 8px;
  }

  .standings-table thead th:nth-child(3),
  .standings-table td:nth-child(3),
  .standings-table thead th:nth-child(4),
  .standings-table td:nth-child(4) {
    width: auto;
  }

  .standings-table thead th:nth-child(n + 5),
  .standings-table td:nth-child(n + 5) {
    display: none;
  }

  .standings-table td:nth-child(2) span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .standings-table.is-wild-card-view > thead {
    display: none;
  }

  .standings-table.is-wild-card-view .team-standing-row {
    grid-template-columns: 54px minmax(0, 1fr) 38px 38px 52px;
  }

  .standings-table.is-wild-card-view .team-standing-row td:nth-child(7) {
    display: block;
    width: auto;
  }

  .standings-league-divider,
  .standings-section-spacer {
    display: block;
    width: 100%;
  }

  .standings-league-divider th,
  .standings-section-spacer td {
    display: block;
    width: 100%;
  }

  .standings-table .standings-subgroup-divider {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 38px 38px 52px;
    width: 100%;
  }

  .standings-table .standings-subgroup-divider th {
    display: none;
    width: auto;
  }

  .standings-table .standings-subgroup-divider th:first-child {
    display: block;
    grid-column: 1 / 3;
  }

  .standings-table .standings-subgroup-divider th:nth-child(2),
  .standings-table .standings-subgroup-divider th:nth-child(3) {
    display: block;
  }

  .standings-table .standings-subgroup-divider th:nth-child(6) {
    display: block;
    grid-column: 5;
    padding-inline: 2px;
  }
}
