.public-standings-page {
  width: min(100% - 32px, 1500px);
  margin: 34px auto 56px;
  color: #f4f7f9;
}

.public-standings-header {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 28px;
  border: 1px solid #3b4a56;
  border-bottom: 3px solid #b0d2e6;
  border-radius: 7px;
  background: rgba(12, 18, 24, 0.9);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.public-standings-header span,
.public-standings-title span {
  color: #b0d2e6;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.public-standings-header h1 {
  margin: 4px 0;
  font-size: clamp(2.1rem, 5vw, 4.25rem);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.public-standings-header p {
  margin: 0;
  color: #aeb8c2;
}

.public-standings-header img {
  width: min(280px, 28vw);
  max-height: 105px;
  object-fit: contain;
}

.standings-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 22px;
  margin-top: 28px;
}

.standings-content-layout.standings-table-only {
  grid-template-columns: minmax(0, 1fr);
}

.chase-watch {
  position: relative;
  position: sticky;
  top: 18px;
  overflow: hidden;
  border: 1px solid #33404b;
  border-radius: 5px;
  background: #11181e;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  font-family: Arial, Helvetica, sans-serif;
}

.chase-watch::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: #b0d2e6;
}

.chase-watch-heading {
  display: block;
  padding: 20px 20px 17px;
}

.chase-watch-heading span {
  color: #9ba8b2;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chase-watch-heading h2 {
  margin: 5px 0 0;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.chase-watch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  border-top: 1px solid #303b44;
  background: #2b363f;
}

.chase-watch-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 18px 20px;
  background: #151e25;
}

.chase-watch-card:first-child {
  background: #19232b;
}

.chase-watch-rank {
  width: 24px;
  color: #85939e;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}

.chase-watch-card:first-child .chase-watch-rank {
  color: #d8b84c;
}

.chase-watch-card:first-child .chase-watch-driver,
.chase-watch-card:first-child .chase-watch-score strong {
  color: #f1d66f;
}

.chase-watch-driver {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chase-watch-score {
  text-align: right;
}

.chase-watch-score strong {
  display: block;
  color: #fff;
  font-size: 1.14rem;
  font-weight: 800;
}

.chase-watch-score span {
  color: #7f8d98;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.public-standings-shell {
  min-width: 0;
  margin-top: 0;
  overflow: hidden;
  border: 1px solid #33404b;
  border-radius: 7px;
  background: #121920;
}

.public-standings-title {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border-bottom: 1px solid #33404b;
  background: #17212a;
}

.public-standings-title h2 {
  margin: 2px 0 0;
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
}

.public-standings-message {
  display: none !important;
}

.public-standings-scroll {
  overflow-x: auto;
}

.public-standings-table {
  width: 100%;
  min-width: 1260px;
  border-collapse: collapse;
}

.public-standings-table th,
.public-standings-table td {
  padding: 13px 11px;
  border-bottom: 1px solid #2d3944;
  text-align: center;
  white-space: nowrap;
}

.public-standings-table th {
  color: #b0d2e6;
  background: #0e141a;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.public-standings-table td:nth-child(2),
.public-standings-table th:nth-child(2) {
  min-width: 220px;
  text-align: left;
}

.public-standings-table.is-chase-active th:nth-child(4),
.public-standings-table.is-chase-active td:nth-child(4),
.public-standings-table.is-chase-active th:nth-child(7),
.public-standings-table.is-chase-active td:nth-child(7),
.public-standings-table.is-chase-active th:nth-child(13),
.public-standings-table.is-chase-active td:nth-child(13) {
  display: none;
}

.public-standings-table tr.cut-safe td {
  background: rgba(35, 134, 78, 0.13);
}

.public-standings-table tr.cut-out td {
  background: rgba(181, 55, 62, 0.1);
}

.public-standings-table .cut-gap-safe {
  color: #69d493;
  font-weight: 900;
}

.public-standings-table .cut-gap-out {
  color: #ff8389;
  font-weight: 900;
}

.public-standings-adjustment {
  display: inline-flex;
  min-width: 40px;
  justify-content: center;
  padding: 3px 8px;
  border: 1px solid rgba(240, 189, 115, 0.35);
  border-radius: 999px;
  background: rgba(240, 189, 115, 0.12);
  color: #f0bd73;
  font-weight: 900;
}

.public-standings-adjustment-empty {
  color: #718292;
  font-weight: 900;
}

.public-standings-table .cut-line td {
  height: 34px;
  padding: 0 14px;
  border-top: 3px solid #d8b84c;
  border-bottom: 1px solid rgba(216, 184, 76, 0.35);
  background: #0d1318;
  color: #f1d66f;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .public-standings-page {
    width: min(100% - 18px, 1500px);
    margin-top: 18px;
  }

  .public-standings-header {
    min-height: 120px;
    gap: 14px;
    padding: 20px 16px;
    background: rgba(12, 18, 24, 0.96);
  }

  .public-standings-header img {
    width: 120px;
  }

  .chase-watch-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 20px 16px 16px;
  }

  .chase-watch-grid {
    grid-template-columns: 1fr;
  }

  .chase-watch-card {
    padding: 17px 16px;
  }

  .public-standings-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-standings-table tr.cut-safe td {
    background: rgba(31, 173, 89, 0.3);
  }

  .public-standings-table tr.cut-out td {
    background: rgba(220, 67, 78, 0.27);
  }

  .public-standings-table tr.cut-safe td:first-child {
    box-shadow: inset 5px 0 0 #4ee084;
  }

  .public-standings-table tr.cut-out td:first-child {
    box-shadow: inset 5px 0 0 #ff6972;
  }

  .public-standings-table .cut-gap-safe {
    color: #8cf0ae;
  }

  .public-standings-table .cut-gap-out {
    color: #ff9a9f;
  }
}

@media (max-width: 1050px) {
  .standings-content-layout {
    grid-template-columns: 1fr;
  }

  .chase-watch {
    position: relative;
    top: auto;
    grid-row: 1;
  }

  .chase-watch-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .chase-watch-grid {
    grid-template-columns: 1fr;
  }
}
