main.container {
  padding-block: 34px 86px;
}

.ranking-list-hero {
  align-items: stretch;
  background: rgba(var(--div-bg), 0.76);
  border: 1px solid rgba(var(--theme), 0.12);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(var(--theme), 0.1);
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  min-height: 430px;
  overflow: hidden;
}

.header-text {
  align-content: center;
  display: grid;
  gap: 16px;
  padding: clamp(26px, 5vw, 58px);
}

.top-header {
  height: auto;
}
.top-header h1 {
  color: rgba(var(--text), 1);
  font-size: clamp(30px, 4vw, 55px);
  font-weight: 950;
  line-height: 0.96;
  margin: 0;
  max-width: 760px;
}

.subtitle {
  color: rgba(var(--text), 0.72);
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
  max-width: 620px;
}

.hero-stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
  max-width: 600px;
}

.hero-stats span {
  background: rgba(var(--theme), 0.08);
  border: 1px solid rgba(var(--theme), 0.12);
  border-radius: 16px;
  color: rgba(var(--text), 0.66);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 2px;
  padding: 13px 14px 11px;
}

.hero-stats b {
  color: rgba(var(--text), 0.96);
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.last-update,
.author {
  color: rgba(var(--text), 0.62);
  font-size: 13px;
  font-weight: 760;
  margin: 0;
}

.author a,
.table-of-contents a {
  color: rgba(var(--theme), 1);
  font-weight: 900;
}

.header-img {
  min-height: 100%;
  overflow: hidden;
  max-height: 600px;
}

.header-img::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(var(--theme), 0.28));
  content: "";
  inset: 0;
  position: absolute;
}

.header-img > img {
  display: block;
  object-fit: cover;
  width: auto;
}

.hero-rank-card {
  background: rgba(var(--body-bg), 0.88);
  border: 1px solid rgba(var(--theme), 0.15);
  border-radius: 18px;
  bottom: 22px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
  display: grid;
  gap: 3px;
  left: 22px;
  max-width: calc(100% - 44px);
  padding: 14px 16px 12px;
  position: absolute;
  z-index: 2;
}

.hero-rank-card span {
  color: rgba(var(--text), 0.6);
  font-size: 12px;
  font-weight: 850;
}

.hero-rank-card b {
  color: rgba(var(--theme), 1);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.25;
}

.table-of-contents {
  margin-block: 22px 34px;
}

.table-of-contents details {
  background: rgba(var(--div-bg), 0.76);
  border: 1px solid rgba(var(--theme), 0.1);
  border-radius: 16px;
  padding: 16px 18px;
}

.table-of-contents summary {
  cursor: pointer;
  font-weight: 900;
}

.table-of-contents ol {
  margin: 14px 0 0;
  padding-left: 22px;
}

.podium {
  display: grid;
  gap: 20px;
  margin-block: 42px 54px;
}

.podium header,
.ranking-list-section header {
  text-align: center;
}

.podium h2,
.ranking-list-section h2 {
  color: rgba(var(--text), 1);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 950;
  line-height: 1.05;
  margin: 10px 0;
}

.podium-grid {
  gap: 16px;
}

.podium-card {
  aspect-ratio: 1 / 0.86;
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(var(--theme), 0.12);
  min-height: 290px;
  overflow: hidden;
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.podium-card:hover {
  box-shadow: 0 28px 72px rgba(var(--theme), 0.18);
  transform: translateY(-4px);
}

.podium-card > img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.podium-shade {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.7));
  inset: 0;
  position: absolute;
}

.podium-content {
  bottom: 0;
  color: #fff;
  display: grid;
  gap: 9px;
  left: 0;
  padding: 22px;
  position: absolute;
  right: 0;
  z-index: 2;
}

.podium-rank {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
  padding: 7px 11px 5px;
  width: max-content;
}

.podium-logo {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  height: 52px;
  object-fit: contain;
  padding: 6px;
  width: 52px;
}

.podium-content h3 {
  color: #fff;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 950;
  line-height: 1.04;
  margin: 0;
}

.podium-content p {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 750;
  margin: 0;
}

.ranking-list-section {
  display: grid;
  gap: 22px;
}

.top-uni-list {
  display: grid;
  gap: 12px;
}

.top-uni-list a {
  display: block;
}

.no-data {
  background: rgba(var(--div-bg), 0.82);
  border: 1px dashed rgba(var(--theme), 0.22);
  border-radius: 18px;
  color: rgba(var(--text), 0.62);
  font-weight: 850;
  padding: 28px;
  text-align: center;
}

.top-uni-item {
  align-items: center;
  background: rgba(var(--div-bg), 0.86);
  border: 1px solid rgba(var(--theme), 0.1);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(var(--theme), 0.055);
  display: grid;
  gap: 15px;
  grid-template-columns: 58px 58px minmax(0, 1fr) auto auto;
  margin: 0 auto;
  max-width: 1100px;
  padding: 15px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  width: 100%;
}

.top-uni-item:hover {
  border-color: rgba(var(--theme), 0.26);
  box-shadow: 0 20px 52px rgba(var(--theme), 0.12);
  transform: translateY(-2px);
}

.uni-index {
  align-items: center;
  background: rgba(var(--theme), 0.1);
  border-radius: 16px;
  color: rgba(var(--theme), 1);
  display: inline-flex;
  font-size: 18px;
  font-weight: 950;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.uni-logo {
  background: rgba(var(--theme), 0.06);
  border: 1px solid rgba(var(--theme), 0.1);
  border-radius: 16px;
  height: 56px;
  object-fit: contain;
  padding: 6px;
  width: 56px;
}

.uni-logo.placeholder {
  background: rgba(var(--text), 0.06);
}

.uni-info {
  min-width: 0;
}

.uni-name {
  color: rgba(var(--text), 0.95);
  display: block;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.32;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uni-location {
  color: rgba(var(--text), 0.58);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  margin-top: 4px;
}

.uni-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.uni-meta span {
  background: rgba(var(--text), 0.055);
  border: 1px solid rgba(var(--theme), 0.08);
  border-radius: 999px;
  color: rgba(var(--text), 0.62);
  font-size: 11px;
  font-weight: 850;
  padding: 5px 8px 4px;
}

.uni-rank {
  align-items: center;
  background: rgba(var(--theme), 0.08);
  border: 1px solid rgba(var(--theme), 0.11);
  border-radius: 14px;
  color: rgba(var(--text), 0.62);
  display: inline-flex;
  flex-direction: column;
  font-size: 12px;
  font-weight: 850;
  gap: 2px;
  min-width: 110px;
  padding: 10px 12px 8px;
  white-space: nowrap;
}
.uni-rank span {
  font-size: 12px;
  font-weight: 700;
}

.uni-rank.soft {
  background: rgba(var(--text), 0.045);
}

.uni-rank b {
  color: rgba(var(--theme), 1);
  font-size: 18px;
  font-weight: 950;
}

@media (max-width: 980px) {
  .ranking-list-hero {
    grid-template-columns: 1fr;
  }

  .header-img {
    min-height: 330px;
  }

}

@media (max-width: 760px) {
  main.container {
    padding-block-start: 22px;
  }

  .ranking-list-hero {
    border-radius: 22px;
  }

  .hero-stats span{
    font-size: 10px;
    font-weight: 600;
  }
.hero-rank-card{
  background-color: rgb(var(--div-bg));
}
  .top-uni-item {
    grid-template-columns: 48px 52px minmax(0, 1fr);
    padding: 14px;
  }

  .uni-rank {
    align-items: center;
    flex-direction: row;
    grid-column: 2 / -1;
    justify-content: space-between;
    text-align: left;
    width: 100%;
  }

  .uni-rank.soft {
    margin-top: -6px;
  }

  .uni-name {
    white-space: normal;
  }
}
