.rating-content {
  width: min(1180px, calc(100% - 48px));
  margin: 64px auto 96px;
}
.rating-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
  color: #fff;
}
.rating-page h1 {
  margin: 0 0 20px;
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.rating-intro {
  margin: 0;
  max-width: 680px;
  font:
    400 17px/1.65 Inter,
    sans-serif;
  color: #fff;
}
.rating-guide-link {
  flex-shrink: 0;
  padding-bottom: 4px;
  border-bottom: 1px solid #fff8;
  font:
    600 16px/1.5 Inter,
    sans-serif;
}
.rating-guide-link span {
  margin-left: 12px;
}
.rating-panel {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  color: #252137;
}
.rating-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 28px;
}
.rating-search {
  width: min(100%, 400px);
}
.rating-search input {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 12px 16px;
  border: 1px solid #ddd8ec;
  border-radius: 8px;
  background: #faf9fd;
  color: #252137;
  font:
    400 16px/1.4 Inter,
    sans-serif;
}
.rating-search input:focus-visible {
  outline: 2px solid #7052d9;
  outline-offset: 2px;
}
#rating-count {
  flex-shrink: 0;
  padding-bottom: 12px;
  font:
    400 14px/1.4 Inter,
    sans-serif;
  color: #716b80;
}
.city-rating {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font:
    400 16px/1.45 Inter,
    sans-serif;
  font-variant-numeric: tabular-nums;
}
.city-rating th,
.city-rating td {
  padding: 16px 20px;
  border-bottom: 1px solid #edeaf3;
  overflow-wrap: anywhere;
}
.city-rating thead th {
  background: #f5f3fa;
  color: #716b80;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
}
.city-rating tbody tr:last-child > * {
  border-bottom: 0;
}
.city-rating [hidden] {
  display: none;
}
.rating-place-col {
  width: 7%;
}
.rating-team-col {
  width: 41%;
}
.rating-score-col {
  width: 16%;
}
.rating-games-col {
  width: 12%;
}
.rating-rank-col {
  width: 24%;
}
.rating-place {
  color: #82778f;
  white-space: nowrap;
}
.rating-team {
  font-weight: 600;
  text-align: left;
}
.city-rating .rating-number {
  text-align: right;
}
.rating-score {
  font-weight: 700;
}
.city-rating .rating-rank {
  text-align: center;
}
.rating-rank img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 4px;
}
.rating-rank span {
  font-size: 12px;
  color: #716b80;
}
.rating-empty {
  padding: 48px 20px !important;
  text-align: center;
  color: #716b80;
}
.rating-ranks-section {
  margin-top: 88px;
  scroll-margin-top: 24px;
}
.rating-page h2 {
  margin: 0 0 20px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.2;
  text-align: left;
  letter-spacing: -0.03em;
}
.rating-ranks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 32px 0 0;
  list-style: none;
}
.rating-ranks li {
  padding: 28px 24px;
  background: #f7f5ff;
  border-radius: 12px;
  color: #252137;
}
.rating-ranks img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}
.rating-ranks h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.rating-ranks p {
  margin: 0;
  font:
    400 14px/1.5 Inter,
    sans-serif;
  color: #716b80;
}
.rating-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (min-width: 801px) {
  .city-rating {
    table-layout: auto;
    font-size: 18px;
  }
  .rating-place-col,
  .rating-score-col,
  .rating-games-col,
  .rating-rank-col {
    width: 1%;
  }
  .rating-team-col {
    width: auto;
  }
  .city-rating .rating-number,
  .city-rating .rating-rank {
    white-space: nowrap;
  }
  .city-rating thead th {
    font-size: 14px;
  }
  .city-rating .rating-rank span {
    font-size: 13px;
  }
}
@media (min-width: 801px) and (hover: hover) {
  .city-rating tbody tr[data-rating-team]:hover {
    background-color: #f5f3fa;
  }
}
@media (max-width: 800px) {
  .rating-content {
    width: calc(100% - 32px);
    margin-top: 40px;
  }
  .rating-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .rating-ranks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .city-rating th,
  .city-rating td {
    padding: 14px 10px;
  }
  .rating-team-col {
    width: 37%;
  }
  .rating-rank-col {
    width: 28%;
  }
}
@media (max-width: 480px) {
  .rating-content {
    width: calc(100% - 24px);
  }
  .rating-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 20px 16px;
  }
  .rating-search {
    width: 100%;
  }
  #rating-count {
    padding: 0;
  }
  .city-rating {
    font-size: 14px;
  }
  .city-rating th,
  .city-rating td {
    padding: 14px 6px;
  }
  .city-rating thead th {
    font-size: 11px;
  }
  .rating-place-col {
    width: 8%;
  }
  .rating-team-col {
    width: 36%;
  }
  .rating-score-col {
    width: 17%;
  }
  .rating-games-col {
    width: 13%;
  }
  .rating-rank-col {
    width: 26%;
  }
  .rating-rank span {
    display: none;
  }
  .rating-rank img {
    margin-bottom: 0;
  }
  .rating-ranks {
    grid-template-columns: 1fr;
  }
  .rating-intro {
    font-size: 16px;
  }
}
