.rank-scroll-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.rank-scroll-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0;
}
.rank-scroll-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #1f2937;
}
.rank-scroll-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 19px;
  padding: 0 8px;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.35px;
  color: #ffffff;
  background: linear-gradient(135deg, #ffb347 0%, #ff7a18 42%, #ff4d4f 100%);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(255, 95, 61, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  transform: translateY(1px);
}
.rank-scroll-row {
  display: flex;
  align-items: stretch;
  gap: 16px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.rank-scroll-row::-webkit-scrollbar {
  height: 0;
}
.rank-scroll-row .module-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.rank-scroll-row .module-poster-item {
  margin: 0;
}
.rank-scroll-row .module-poster-item-info,
.rank-scroll-row .module-poster-item-title,
.rank-scroll-row .module-poster-item-subtitle {
  text-align: left !important;
}
.rank-scroll-row .module-poster-item-info {
  width: 100%;
}
.rank-scroll-row .module-item-cover {
  border-radius: 16px;
}
.rank-scroll-row .module-item:hover {
  transform: translateY(-2px);
}
.rank-scroll-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.04));
  overflow: hidden;
  padding: 0 16px;
  cursor: pointer;
  touch-action: none;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.12);
}
.rank-scroll-thumb {
  position: absolute;
  top: 2px;
  left: 16px;
  height: 6px;
  width: 30%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffd77a, #ff9f4a, #ff7a45);
  box-shadow: 0 3px 10px rgba(255, 133, 61, 0.45);
}
.rank-scroll-bar::before,
.rank-scroll-bar::after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: rgba(17, 24, 39, 0.55);
  pointer-events: none;
}
.rank-scroll-bar::before {
  content: '‹';
  left: 4px;
}
.rank-scroll-bar::after {
  content: '›';
  right: 4px;
}
.rank-scroll-bar.is-dragging .rank-scroll-thumb {
  box-shadow: 0 4px 14px rgba(255, 140, 0, 0.75);
}
.theme-dark .rank-scroll-title {
  color: #f5f5f7;
}
.theme-dark .rank-scroll-count {
  color: #fff8ec;
  background: linear-gradient(135deg, #ffa94d 0%, #ff7a18 45%, #ff5a36 100%);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 2px 8px rgba(255, 117, 26, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}
.theme-dark .rank-scroll-row .module-item:hover {
  transform: translateY(-2px);
}
.theme-dark .rank-scroll-bar {
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
}
.theme-dark .rank-scroll-bar::before,
.theme-dark .rank-scroll-bar::after {
  color: rgba(255, 255, 255, 0.65);
}
@media (max-width: 559px) {
  .rank-scroll-head {
    margin: 0 0 8px;
  }
  .rank-scroll-title {
    font-size: 20px;
  }
}
