/* rank.css — TOP100 랭킹 페이지 */

.th-rank {
  width: 60px;
  text-align: center !important;
}

.stock-table td:first-child {
  text-align: center;
}

/* 순위 뱃지 */
.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  background: var(--bg);
  color: var(--text-sub);
  border: 1px solid var(--border);
}

.rank-num.top3 {
  background: var(--primary, #3182f6);
  color: #fff;
  border-color: transparent;
}

.rank-num.top10 {
  background: var(--primary-light, #e8f0fe);
  color: var(--primary, #3182f6);
  border-color: transparent;
}

/* 스코어 뱃지 */
.score-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--primary-light, #e8f0fe);
  color: var(--primary, #3182f6);
  font-size: 13px;
  font-weight: 700;
}

/* 모바일 카드 — 랭킹 전용 */
.rank-card {
  position: relative;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: box-shadow 0.15s;
}

.rank-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.rank-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding-top: 22px;
}

.rank-card-info {
  flex: 1;
  min-width: 0;
}

.rank-card-score {
  text-align: right;
  flex-shrink: 0;
}

.score-label {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 2px;
  text-align: center;
}

.rank-card-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
}

/* 테이블 — 순위 열 정렬 제거 (클릭 커서 없음) */
.stock-table th.th-rank {
  cursor: default;
}

.scroll-sentinel {
  height: 1px;
}

.loading-indicator {
  text-align: center;
  padding: 20px;
  color: var(--text-sub);
  font-size: 14px;
}
