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

.overview-panel::after {
  display: none;
}

.overview-body {
  padding: 14px 0 0;
}

.overview-body .row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-inline: 0;
}

.overview-body .row > [class*="col-"] {
  width: auto;
  padding-inline: 0;
}

.team-card {
  border: 0;
  border-radius: 8px;
  background: var(--card-bg);
  padding: 18px;
}

.team-header {
  flex-wrap: wrap;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding-bottom: 12px;
  margin-bottom: 10px;
}

.team-name {
  margin: 0;
}

.metric-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

.metric-group {
  min-width: 0;
}

.metric-group-title {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.metric-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.team-card .metric-list {
  grid-template-columns: 1fr;
}

.metric-row {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: var(--card-bg-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
}

.metric-row > div:first-child {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.metric-badge {
  width: 46px;
  height: 30px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--yankees-silver);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 0 0 auto;
  padding-inline: 4px;
  font-size: var(--text-small);
  font-weight: 700;
}

.metric-row strong {
  color: var(--muted);
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: normal;
}

.metric-value {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  text-align: right;
  white-space: nowrap;
}

.metric-value span {
  color: var(--yankees-silver);
  font-weight: 800;
  line-height: 1;
}

.metric-value small {
  margin-left: 0;
  border-left: 1px solid rgba(196, 206, 211, 0.28);
  padding-left: 8px;
  color: var(--ink);
  font-size: var(--text-small);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.metric-value small::before {
  content: "#";
  margin-right: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: normal;
}

#team-stats,
#top-performers,
#roster,
#transactions,
#prospects {
  scroll-margin-top: 14px;
}

.overview-section-nav-container {
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--card-bg-strong);
  padding: 14px;
}

.overview-section-nav {
  border-radius: 999px;
  background: #1b222d;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
}

.overview-section-nav a,
.section-return a {
  border: 0;
  border-radius: 999px;
  color: #aebfe5;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.overview-section-nav a.active {
  color: #fff;
  background: #101720;
}

.overview-section-nav a:hover,
.overview-section-nav a:focus-visible,
.section-return a:hover,
.section-return a:focus-visible {
  color: #fff;
  background: #26313e;
}

.section-return {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.section-return a {
  min-height: 34px;
  padding: 6px 13px;
  font-size: var(--text-small);
}

.section-return span {
  margin-left: 6px;
}
.rank-trend-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 0 auto;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.metric-trend {
  display: inline-block;
  width: 12px;
  margin-left: 5px;
  font-style: normal;
  font-size: 14px;
  text-align: center;
}

.team-card .trend-up { color: #69e9ad; }
.team-card .trend-down { color: #ff858d; }
.team-card .trend-same { color: #fff; }
.team-card .trend-unavailable { color: var(--muted); }

@media (max-width: 767.98px) {
  .rank-trend-legend { width: 100%; margin-left: 0; }
}

@media (max-width: 1399.98px) {
  .metric-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .metric-groups {
    grid-template-columns: 1fr;
  }
}

.rank-strong {
  color: #86efac !important;
}

.rank-watch {
  color: #f6cc70 !important;
}

.rank-weak {
  color: #fca5a5 !important;
}

.rank-neutral {
  color: var(--yankees-silver);
}

.error {
  color: #ffbec4;
  font-weight: 700;
}

.top-performers-panel {
  overflow: hidden;
}

#top-performers-season,
.top-performers-message {
  color: var(--muted);
  font-size: var(--text-small);
  font-weight: 600;
}

#top-performers-season {
  text-align: right;
}

.top-performers-context {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.top-performers-toggle {
  border-radius: 999px;
  background: #1b222d;
  display: flex;
  gap: 4px;
  padding: 4px;
}

.top-performers-toggle button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  color: #aebfe5;
  background: transparent;
  padding: 6px 13px;
  font-size: var(--text-small);
  font-weight: 800;
}

.top-performers-toggle button.active {
  color: #fff;
  background: #101720;
}

.top-performers-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.top-performers-message {
  grid-column: 1 / -1;
  margin: 0;
  border-radius: 7px;
  background: var(--inner-card-bg, #0a1015);
  padding: 18px;
  text-align: center;
}

.performer-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 7px;
  color: var(--ink);
  background: var(--inner-card-bg, #0a1015);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

.performer-feature {
  position: relative;
  min-height: 154px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  padding: 14px;
}

.performer-feature-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  width: 58%;
}

.performer-label {
  display: block;
  color: #dcecff;
  font-size: var(--text-small);
  font-weight: 800;
}

.performer-value {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-size: clamp(2rem, 2.5vw, 2.65rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
}

.performer-name {
  display: block;
  overflow: hidden;
  margin-top: 14px;
  color: var(--ink);
  font-size: var(--text-small);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performer-detail {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.performer-headshot {
  position: absolute;
  right: -12px;
  bottom: 0;
  z-index: 1;
  width: 62%;
  height: 145px;
  object-fit: contain;
  object-position: right bottom;
}

.performer-runners-up {
  background: var(--inner-card-bg, #0a1015);
}

.performer-runner {
  min-width: 0;
  min-height: 42px;
  color: var(--ink);
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  text-decoration: none;
}

.performer-runner:nth-child(odd) {
  background: #111920;
}

.performer-runner:nth-child(even) {
  background: #0a1015;
}

.performer-runner:hover,
.performer-runner:focus-visible {
  color: #fff;
  background: rgba(196, 206, 211, 0.07);
}

.performer-runner img {
  width: 30px;
  height: 30px;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  object-position: center bottom;
}

.performer-runner-name {
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performer-runner-value {
  color: #fff;
  font-weight: 900;
}

.prospects-panel {
  overflow: hidden;
}

.prospects-columns,
.prospect-card {
  display: grid;
  grid-template-columns: 52px 76px minmax(0, 1.5fr) repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 10px;
}

.prospects-columns {
  margin-top: 14px;
  padding: 0 14px 6px 10px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.prospects-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}

.prospect-card {
  min-width: 0;
  min-height: 88px;
  border-radius: 7px;
  color: var(--ink);
  background: #111920;
  overflow: hidden;
  padding: 8px 14px 0 10px;
  text-decoration: none;
}

.prospects-list li:nth-child(even) .prospect-card {
  background: #0a1015;
}

.prospect-rank {
  color: #9ac7ff;
  font-size: 1.25rem;
  font-weight: 900;
  text-align: center;
}

.prospect-card img {
  width: 72px;
  height: 80px;
  align-self: end;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  object-position: center bottom;
}

.prospect-card img.is-unavailable {
  visibility: hidden;
}

.prospect-name {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prospect-card > span:not(.prospect-rank) {
  color: var(--muted);
  font-size: var(--text-small);
  font-weight: 700;
}

@media (max-width: 1199.98px) {
  .top-performers-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .overview-section-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .prospects-columns {
    display: none;
  }

  .prospect-card {
    grid-template-columns: 34px 72px repeat(3, minmax(0, 1fr));
    gap: 5px 10px;
    padding-right: 10px;
  }

  .prospect-card img {
    grid-row: 1 / 3;
    grid-column: 2;
  }

  .prospect-rank {
    grid-row: 1 / 3;
    grid-column: 1;
  }

  .prospect-name {
    grid-column: 3 / -1;
  }

  .prospect-card > span[data-label]::before {
    content: attr(data-label) ": ";
    color: #9ac7ff;
  }
}

@media (max-width: 575.98px) {
  .overview-body {
    padding-inline: 0;
  }

  .team-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .metric-row {
    min-height: 44px;
    display: grid;
    grid-template-columns: minmax(140px, 1.1fr) minmax(104px, 0.9fr);
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
  }

  .metric-row > div:first-child {
    display: block;
  }

  .metric-badge {
    display: none;
  }

  .metric-row strong {
    display: block;
    white-space: nowrap;
  }

  .metric-value {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    justify-content: flex-end;
    text-align: center;
    white-space: nowrap;
  }

  .metric-value::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 14px;
    background: rgba(196, 206, 211, 0.28);
    transform: translate(-50%, -50%);
  }

  .metric-value small {
    border-left: 0;
    padding-left: 0;
  }

  .team-card .metric-list {
    grid-template-columns: 1fr;
  }

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

  .top-performers-grid {
    grid-template-columns: 1fr;
  }

  .overview-section-nav {
    border-radius: 20px;
  }

  .prospects-panel .panel-head {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 5px !important;
  }

  .overview-section-nav-container {
    padding: 10px;
  }

  .performer-feature {
    min-height: 148px;
  }

  .performer-feature-copy {
    width: 62%;
  }

  .performer-headshot {
    right: 2%;
    width: 48%;
  }
}
