/* 排行榜 PC：双榜模块 + 榜单卡片 */

.page-ranking-main {
  padding: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ranking-lead {
  margin: 0;
  color: #8b9298;
  font-size: 13px;
  line-height: 1.6;
  max-width: 920px;
}

.ranking-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
  align-items: start;
}

.rank-module {
  background: var(--store-card, rgba(23, 35, 52, 0.92));
  border: 1px solid var(--store-border, rgba(102, 192, 244, 0.22));
  border-radius: 8px;
  padding: 16px 16px 14px;
}

.rank-module-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.rank-module-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: #ecf4fc;
  letter-spacing: 0.02em;
}

.rank-badge {
  font-size: 11px;
  font-weight: 800;
  color: #d8e1ff;
  background: rgba(102, 192, 244, 0.15);
  border: 1px solid rgba(102, 192, 244, 0.35);
  border-radius: 999px;
  padding: 4px 10px;
}

.rank-hint {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #8b9298;
}

.rank-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rank-item {
  display: grid;
  grid-template-columns: 40px var(--fj2me-game-thumb-px, 96px) 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.rank-item:hover {
  border-color: rgba(102, 192, 244, 0.25);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.rank-item:active {
  transform: scale(0.998);
  transition-duration: 0.08s;
}

.rank-play:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(102, 192, 244, 0.35);
}

.rank-item.rank-item--empty {
  display: block;
  text-align: center;
  padding: 18px 14px;
}

.rank-empty-msg {
  margin: 0;
  font-size: 13px;
  color: #8b9298;
  line-height: 1.6;
}

.rank-empty-msg strong {
  display: block;
  color: #cfd7e0;
  font-weight: 800;
  margin-bottom: 6px;
}

.rank-item--top1 {
  background: linear-gradient(95deg, rgba(214, 175, 54, 0.14), rgba(0, 0, 0, 0.08));
  border-color: rgba(214, 175, 54, 0.38);
  box-shadow: 0 2px 14px rgba(214, 175, 54, 0.08);
}

.rank-item--top2 {
  background: linear-gradient(95deg, rgba(185, 195, 210, 0.12), rgba(0, 0, 0, 0.08));
  border-color: rgba(185, 195, 210, 0.32);
}

.rank-item--top3 {
  background: linear-gradient(95deg, rgba(181, 121, 75, 0.13), rgba(0, 0, 0, 0.08));
  border-color: rgba(181, 121, 75, 0.34);
}

.rank-num {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 13px;
  background: rgba(102, 192, 244, 0.1);
  border: 1px solid rgba(102, 192, 244, 0.22);
  color: #ecf4fc;
}

.rank-item--top1 .rank-num {
  background: rgba(214, 175, 54, 0.35);
  border-color: rgba(214, 175, 54, 0.65);
  color: #fff8e8;
}

.rank-item--top2 .rank-num {
  background: rgba(185, 195, 210, 0.3);
  border-color: rgba(185, 195, 210, 0.55);
}

.rank-item--top3 .rank-num {
  background: rgba(181, 121, 75, 0.32);
  border-color: rgba(181, 121, 75, 0.55);
}

.rank-thumb {
  width: var(--fj2me-game-thumb-px, 96px);
  height: var(--fj2me-game-thumb-px, 96px);
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d131c;
}

.rank-thumb-fallback {
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 900;
  color: var(--store-accent, #66c0f4);
}

div.rank-thumb {
  width: var(--fj2me-game-thumb-px, 96px);
  height: var(--fj2me-game-thumb-px, 96px);
  box-sizing: border-box;
}

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

.rank-main-link {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: 4px;
}

.rank-main-link:hover .rank-title {
  color: #fff;
  text-decoration: underline;
}

.rank-title {
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ecf4fc;
}

.rank-meta {
  margin-top: 4px;
  font-size: 12px;
  color: #8b9298;
}

.rank-play.btn {
  height: 36px;
  padding: 0 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.rank-play.btn-ghost {
  background: rgba(102, 192, 244, 0.12);
  border: 1px solid rgba(102, 192, 244, 0.28);
  color: #dbe4ef;
}

.rank-play.btn-ghost:hover {
  filter: brightness(1.08);
}

.store-pager.rank-pager {
  margin-top: 12px;
}

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