.ranking-page .inner-content {
  padding-top: 0.44rem;
  padding-bottom: 1.61rem;
}

.ranking-panel {
  min-height: 14.52rem;
  margin-top: 0.53rem;
  padding: 0.46rem 0.19rem 0;
  overflow: hidden;
  border-radius: 0.2rem;
  background: linear-gradient(180deg, rgba(65, 45, 34, 0.98), rgba(30, 22, 15, 0.98));
}

.ranking-panel::after {
  content: "";
  position: absolute;
  left: 2.5rem;
  top: -0.12rem;
  width: 2.7rem;
  height: 0.16rem;
  border-radius: 50%;
  background: rgba(255, 176, 120, 0.6);
  filter: blur(0.1rem);
}

.rank-tabs {
  display: flex;
  align-items: center;
  gap: 0.54rem;
  padding-left: 0.47rem;
}

.rank-tabs button {
  position: relative;
  color: rgba(231, 211, 193, 0.72);
  font-size: 0.3rem;
  line-height: 0.42rem;
  font-weight: 800;
}

.rank-tabs button.active {
  background: linear-gradient(270deg, #ffcd9f 0%, #fff5e9fc 100%);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.rank-tabs button.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.17rem;
  width: 0.56rem;
  height: 0.04rem;
  border-radius: 0.04rem;
  background: #ffc18f;
  transform: translateX(-50%);
  box-shadow: 0 0 0.12rem rgba(255, 193, 143, 0.72);
}

.rank-list {
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
}

.rank-item {
  height: 1.72rem;
  display: grid;
  grid-template-columns: 1.08rem 1.22rem 1fr 1.17rem;
  align-items: center;
  column-gap: 0.2rem;
  padding: 0 0.18rem 0 0.18rem;
  border-bottom: 0.01rem solid rgba(156, 113, 84, 0.28);
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-no {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #d7ad91;
  font-size: 0.4rem;
  line-height: 0.5rem;
  font-weight: 900;
}

.medal {
  position: relative;
  width: 0.5rem;
  height: 0.58rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff6d8;
  font-size: 0.25rem;
  font-weight: 900;
  text-shadow: 0 0.02rem 0.03rem rgba(80, 45, 18, 0.4);
  clip-path: polygon(50% 0, 91% 23%, 91% 73%, 50% 100%, 9% 73%, 9% 23%);
}

.medal::before {
  content: "";
  position: absolute;
  inset: 0.05rem;
  border: 0.025rem solid rgba(255, 255, 255, 0.58);
  clip-path: inherit;
}

.rank-item:nth-child(1) .medal {
  background: linear-gradient(145deg, #ffe979, #ff9f28 62%, #b96414);
  box-shadow: 0 0 0.18rem rgba(255, 205, 96, 0.35);
}

.rank-item:nth-child(2) .medal {
  background: linear-gradient(145deg, #f5f7ff, #aeb6c5 62%, #697381);
  box-shadow: 0 0 0.16rem rgba(210, 221, 235, 0.28);
}

.rank-item:nth-child(3) .medal {
  background: linear-gradient(145deg, #ffd9c4, #d9855c 62%, #8e4731);
  box-shadow: 0 0 0.16rem rgba(236, 148, 94, 0.28);
}

.rank-logo {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
  border-radius: 0.18rem;
  background: #fff;
}

.rank-item:nth-child(1) .rank-logo {
  border: 0.06rem solid #ffe37f;
}

.rank-item:nth-child(2) .rank-logo {
  border: 0.06rem solid #aeb6c5;
}

.rank-item:nth-child(3) .rank-logo {
  border: 0.06rem solid #ffc1a3;
}

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

.rank-info h2 {
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.28rem;
  line-height: 0.38rem;
  font-weight: 900;
  background: linear-gradient(270deg, #ffcd9f 0%, #fff5e9fc 100%);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.rank-info p {
  margin: 0.03rem 0 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.22rem;
  line-height: 0.3rem;
  color: #f2dbc1;
}

.rank-rating {
  text-align: left;
  color: #d6ae91;
}

.rank-rating strong {
  display: block;
  font-size: 0.38rem;
  line-height: 0.44rem;
  font-weight: 800;
}

.rank-rating span {
  display: block;
  margin-top: 0.05rem;
  font-size: 0.2rem;
  line-height: 0.26rem;
  text-transform: uppercase;
}

.rank-list.is-switching {
  opacity: 0;
  transform: translateY(0.12rem);
}

.rank-list {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 220ms ease, transform 220ms ease;
}
