ㅈ/* 랭킹 페이지 전용 — 기존 디자인 시스템 확장 (common.css 클래스 재사용) */

/* ── 상단 여백 — 신작/연재 포탈 페이지와 동일하게 정렬 ── */
/* common.css .section-space 기본 padding(64px 0)이 히어로에 겹치지 않도록 랭킹 전용 초기화 */
body[data-page="ranking"] .portal-layout-container {
  margin-top: 110px;
  margin-bottom: 40px;
}

body[data-page="ranking"] .portal-left-column {
  gap: 16px;
}

/* 기간 드롭다운 + 집계 안내 아이콘 — 필터바 한 줄 유지 */
.ranking-period-cluster {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ranking-filter-period-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ranking-period-info-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-sub);
  font-size: 0.72rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ranking-period-info-btn:hover,
.ranking-period-info-btn:focus-visible,
.ranking-period-info-btn[aria-expanded="true"] {
  color: var(--accent-gold);
  border-color: rgba(242, 193, 78, 0.35);
  outline: none;
}

.ranking-period-info-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ranking-period-popover {
  min-width: 200px;
  max-width: min(280px, calc(100vw - 24px));
}

body[data-page="ranking"] #rankingHeroBanner.section-space {
  padding: 24px 24px !important;
  margin-top: 0 !important;
  margin-bottom: 8px !important;
}

body[data-page="ranking"] .portal-left-column > .section-space {
  padding-top: 0;
  padding-bottom: 0;
}

/* 히어로 배경 모바일 불투명도 (연재/신작과 동일 정책) */
#rankingHeroBg {
  opacity: 0.35 !important;
}
@media (max-width: 768px) {
  #rankingHeroBg {
    opacity: 0.78 !important;
  }
}

/* ── TOP 10 프리미엄 Coverflow 랭킹 하이라이트 캐러셀 ── */
/* 헤더 — 제목(1줄) 아래 설명+카운터(2줄) 세로 적층 */
.ranking-carousel-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

/* 설명(좌) · 카운터(우) 줄 */
.ranking-carousel-subline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.ranking-carousel-desc {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  min-width: 0;
}

.ranking-carousel-indicator {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.ranking-carousel-indicator-rank {
  font-size: 0.95rem;
  font-weight: 900;
  font-style: italic;
  color: var(--accent-gold);
}

/* 감싸는 박스 없이 카드만 보이는 개방형 스테이지 (overflow는 카드 크롭용으로 유지) */
.ranking-carousel-wrap {
  position: relative;
  width: 100%;
  height: 490px;
  overflow: hidden;
}

/* 양 끝 잘린 카드 단면을 배경색으로 자연스럽게 페이드 처리 */
.ranking-carousel-wrap::before,
.ranking-carousel-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 70px;
  z-index: 100;
  pointer-events: none;
}
.ranking-carousel-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-primary) 0%, transparent 100%);
}
.ranking-carousel-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-primary) 0%, transparent 100%);
}

.ranking-carousel-stage {
  position: relative;
  width: 100%;
  height: calc(100% - 34px);
  overflow: hidden;
  touch-action: pan-y;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* flex 가로 정렬 — transform/absolute 없음 */
.ranking-carousel-track {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0 50px;
  box-sizing: border-box;
  pointer-events: none;
}

.ranking-carousel-track .ranking-carousel-card {
  pointer-events: auto;
}

/* 좌우 네비 — 카드 위에 항상 떠 있도록 z-index 최상위 */
.ranking-carousel-nav {
  position: absolute;
  top: calc((100% - 34px) / 2);
  transform: translateY(-50%);
  z-index: 200;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 11, 14, 0.82);
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.ranking-carousel-nav:hover {
  border-color: rgba(242, 193, 78, 0.4);
  color: var(--accent-gold);
  background: rgba(20, 18, 14, 0.92);
}
.ranking-carousel-prev { left: 18px; }
.ranking-carousel-next { right: 18px; }

.ranking-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
}
.ranking-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.25s, background 0.25s;
}
.ranking-carousel-dot.is-active {
  background: var(--accent-gold);
  transform: scale(1.3);
}

/* Coverflow 카드 — width·opacity로 크기 조절 (scale/transform 미사용)
   중앙(420px) > 옆(310px) > 끝(240px) 순으로 확실히 작아지는 계단 구조
   width/margin/opacity transition으로 슬라이드 시 카드가 미끄러지듯 이동 */
.ranking-carousel-card {
  position: relative;
  flex: 0 0 auto;
  width: 240px;
  margin: 0 -64px;
  opacity: 0.45;
  cursor: pointer;
  z-index: 1;
  animation: rankingCardIn 0.32s ease both;
  transition: width 0.42s cubic-bezier(0.22, 1, 0.36, 1),
              margin 0.42s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.42s ease;
}
.ranking-carousel-card.is-center {
  width: 420px;
  margin: 0 18px;
  opacity: 1;
  z-index: 10;
}
.ranking-carousel-card.is-side {
  width: 310px;
  margin: 0 -30px;
  opacity: 0.78;
  z-index: 7;
}
.ranking-carousel-card.is-far {
  width: 240px;
  margin: 0 -64px;
  opacity: 0.45;
  z-index: 4;
}

/* 슬라이드 전환 시 부드러운 등장 (DOM 재렌더 방식 보완) */
@keyframes rankingCardIn {
  from { opacity: 0; transform: translateY(8px); }
}

/* 사이드바 공통 클래스와의 레이아웃 충돌 방지 */
.ranking-carousel-card.sidebar-ranking-item {
  display: block;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  gap: 0;
}
.ranking-carousel-card.sidebar-ranking-item:hover {
  transform: none;
  background: transparent;
  border-color: transparent;
}

.ranking-carousel-card-inner {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.ranking-carousel-card.is-center .ranking-carousel-card-inner {
  padding: 16px 18px;
  border-color: rgba(242, 193, 78, 0.38);
  background: linear-gradient(155deg, rgba(242, 193, 78, 0.1) 0%, rgba(255, 255, 255, 0.04) 50%);
  box-shadow: 0 0 32px rgba(242, 193, 78, 0.14), 0 14px 36px rgba(0, 0, 0, 0.48);
}

.ranking-carousel-card:hover .ranking-carousel-card-inner {
  border-color: rgba(242, 193, 78, 0.3);
}

.ranking-carousel-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ranking-carousel-rank {
  font-size: 1.5rem;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  color: var(--text-muted);
}
.ranking-carousel-card.is-center .ranking-carousel-rank {
  font-size: 2.4rem;
  color: var(--accent-gold);
}

/* 썸네일 + 정보 본문 — 모든 카드 세로형 통일 (중앙이 항상 가장 크게 보이도록) */
.ranking-carousel-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.ranking-carousel-card.is-center .ranking-carousel-body {
  gap: 10px;
}

.ranking-carousel-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}
.ranking-carousel-card.is-center .ranking-carousel-thumb {
  border-radius: 10px;
}

.ranking-carousel-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1;
}

.ranking-carousel-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ranking-carousel-card.is-center .ranking-carousel-title {
  font-size: 1.05rem;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ranking-carousel-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* 메타 줄에 합쳐진 크리에이터 표기 (• by Alex Lim) */
.ranking-carousel-creator-inline {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.7rem;
}

/* 평점·조회·소스 통계 줄 — 살짝 더 어둡게 구분 */
.ranking-carousel-meta-stats {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.42);
}

.ranking-carousel-score {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-gold);
}
.ranking-carousel-card.is-center .ranking-carousel-score {
  font-size: 0.92rem;
}

/* 좌우 카드 — 순위·썸네일·제목·점수만 */
.ranking-carousel-card.is-side .ranking-carousel-meta,
.ranking-carousel-card.is-side .rank-change {
  display: none;
}
.ranking-carousel-card.is-side .ranking-carousel-score {
  font-size: 0.72rem;
}

/* 먼 카드 — 순위·썸네일·제목만 */
.ranking-carousel-card.is-far .ranking-carousel-score,
.ranking-carousel-card.is-far .rank-change,
.ranking-carousel-card.is-far .ranking-carousel-meta {
  display: none;
}
.ranking-carousel-card.is-far .ranking-carousel-title {
  font-size: 0.76rem;
}

@media (prefers-reduced-motion: reduce) {
  .ranking-carousel-card {
    animation: none;
    transition: none;
  }
}

/* 변동 표시 */
.rank-change {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.2;
}
.rank-change-up { color: #34d399; background: rgba(52, 211, 153, 0.12); }
.rank-change-down { color: #f87171; background: rgba(248, 113, 113, 0.12); }
.rank-change-new { color: var(--accent-orange); background: rgba(217, 138, 31, 0.15); }
.rank-change-same { color: var(--text-muted); background: rgba(255, 255, 255, 0.04); }

/* 전체 랭킹 리스트형 카드 */
.ranking-list-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ranking-list-row {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition-smooth);
  cursor: pointer;
}
.ranking-list-row:hover {
  transform: translateX(4px);
  border-color: rgba(242, 193, 78, 0.2);
  background-color: rgba(255, 255, 255, 0.05);
}

/* 순위·변동 묶음 열 */
.ranking-list-rank-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  width: 40px;
}

/* 본문 래퍼 — PC 그리드에서 가운데 영역 전체 사용 */
.ranking-list-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ranking-list-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.ranking-list-creator {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* 전체 랭킹 우측 — 크리에이터명 아래 작품 타입 */
.ranking-list-format {
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* 통계 줄 내 source_type — 조회수 바로 뒤에 작게 표기 */
.ranking-list-stats-src {
  font-size: 0.68rem;
  color: var(--text-muted);
  opacity: 0.85;
}

/* PC 전체 랭킹 — 스크롤 시 아래에서 올라오는 reveal */
.ranking-reveal-item {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.ranking-reveal-item.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 991px) {
  .ranking-reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.ranking-list-rank {
  font-size: 1.5rem;
  font-weight: 900;
  font-style: italic;
  width: 36px;
  text-align: center;
  color: var(--text-muted);
  flex-shrink: 0;
}
.ranking-list-row:nth-child(-n+3) .ranking-list-rank {
  color: var(--accent-gold);
}

.ranking-list-thumb {
  width: 56px;
  height: 72px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.ranking-list-title-wrap {
  min-width: 0;
  overflow: visible;
}

.ranking-list-title-wrap .title-assist-wrapper,
.ranking-carousel-info .title-assist-wrapper {
  width: fit-content !important;
  max-width: 100%;
}

.ranking-list-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-list-sub {
  font-size: 0.75rem;
  color: var(--text-sub);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.ranking-list-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.ranking-list-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.ranking-list-tags .badge {
  font-size: 0.62rem;
  padding: 2px 7px;
}

/* PC 전용 상세 지표 열 */
.ranking-list-metrics {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
  min-width: 88px;
}
.ranking-list-score-val {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--accent-gold);
}

/* 모바일 하단 섹션 — PC에서는 숨김 (사이드바 사용) */
.ranking-mobile-bottom-sections {
  display: none;
}

@media (max-width: 991px) {
  /* 모바일 coverflow — 중앙 1장 + 좌우 일부 */
  .ranking-carousel-wrap {
    height: 400px;
  }
  .ranking-carousel-wrap::before,
  .ranking-carousel-wrap::after {
    width: 32px;
  }
  .ranking-carousel-stage {
    height: calc(100% - 30px);
  }
  .ranking-carousel-nav {
    width: 30px;
    height: 30px;
  }
  .ranking-carousel-prev { left: 8px; }
  .ranking-carousel-next { right: 8px; }
  .ranking-carousel-track {
    padding: 0 36px;
  }
  /* common.css의 .sidebar-ranking-item { width:100% !important } (≤768px) 차단 */
  .ranking-carousel-card {
    width: 160px !important;
    margin: 0 -48px;
  }
  .ranking-carousel-card.is-center {
    width: 280px !important;
    margin: 0 10px;
  }
  .ranking-carousel-card.is-side {
    width: 200px !important;
    margin: 0 -36px;
  }
  .ranking-carousel-card.is-far {
    width: 160px !important;
    margin: 0 -48px;
  }
  .ranking-carousel-card.is-center .ranking-carousel-rank {
    font-size: 2rem;
  }
  /* 모바일 — 크리에이터명 숨겨 카드 높이 일정하게 유지 */
  .ranking-carousel-creator-inline {
    display: none;
  }
  /* 모바일 — 긴 제목은 줄바꿈 없이 한 줄 말줄임(...) 처리 */
  .ranking-carousel-card.is-center .ranking-carousel-title {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
  }
  .ranking-carousel-dots {
    height: 30px;
  }

  /* 모바일 리스트 — 핵심 지표만. PC 우측 고정폭을 쓰지 않는다 */
  .ranking-list-metrics,
  .ranking-list-stats .rank-stat-hide-mobile,
  .ranking-list-tags {
    display: none !important;
  }

  .ranking-list-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .ranking-list-aside {
    max-width: 100%;
    align-items: flex-start;
    gap: 0;
  }

  .ranking-list-rank-col {
    width: 34px;
    gap: 4px;
  }

  .ranking-list-thumb {
    width: 48px;
    height: 62px;
  }

  .ranking-list-bottomline {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .ranking-page-sidebar {
    display: none !important;
  }

  .ranking-mobile-bottom-sections {
    display: block;
    margin-bottom: 12px;
  }

  /* 랭킹 산정 기준(맨 아래 블록) — 푸터 직전 여백 축소 */
  .portal-left-column > .ranking-mobile-bottom-sections:last-of-type {
    margin-bottom: 8px;
  }

  /* 빠른 chip 영역 — TOP 10 제목과 붙어 보이지 않게 하단 여백 확보 */
  .recommend-chips-section {
    margin-bottom: 20px !important;
    position: relative;
  }
  /* chip 가로 스크롤 우측 끝 — 약한 페이드로 이어지는 느낌 */
  .recommend-chips-section::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 34px;
    background: linear-gradient(270deg, rgba(15, 17, 19, 0.88) 0%, transparent 100%);
    pointer-events: none;
  }

  /* 캐러셀과 탭 영역 사이 여백 절반 축소 (inline style 우선순위 대응) */
  .ranking-carousel-section {
    margin-bottom: 12px !important;
  }
  .ranking-mobile-bottom-sections .mobile-tabs-section-header {
    margin-top: 4px !important;
  }

  /* 탭 패널 타이틀·카드 폭·간격 — components/catalog-mobile-tabs.css (쇼츠 표준) */
  .ranking-mobile-bottom-sections .mobile-tab-content-pane .sidebar-title {
    font-size: 0.95rem;
    color: var(--text-main);
  }

  /*
   * 탭 패널 랭킹 카드 — 홈 주간·월간 인기 탭과 동일 수준으로 텍스트 확대
   */
  .ranking-mobile-bottom-sections .ranking-sidebar-item .sidebar-rank-title {
    font-size: 0.88rem !important;
  }

  .ranking-mobile-bottom-sections .ranking-sidebar-item .sidebar-rank-meta {
    font-size: 0.75rem !important;
  }

  .ranking-mobile-bottom-sections .ranking-sidebar-item .sidebar-rank-hot {
    font-size: 0.70rem !important;
  }

  .ranking-mobile-bottom-sections .ranking-sidebar-item .sidebar-rank-num {
    font-size: 1.26rem !important;
  }

  /* 모바일 하단 섹션 탭 — common.css 탭 스타일은 768px 이하 전용이라
     769~991px 구간을 동일한 룩으로 보완 (768px 이하에서는 common 규칙이 우선) */
  .ranking-mobile-bottom-sections .mobile-tab-btn {
    flex: 1;
    padding: 10px 4px;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .ranking-mobile-bottom-sections .mobile-tab-btn.active {
    background: rgba(242, 193, 78, 0.12);
    color: var(--accent-gold);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border-color: rgba(242, 193, 78, 0.2);
  }
  .ranking-mobile-bottom-sections .mobile-tab-content-pane {
    display: none;
  }
  .ranking-mobile-bottom-sections .mobile-tab-content-pane.active {
    display: flex;
    flex-direction: column;
  }
}

@media (min-width: 992px) {
  .ranking-mobile-bottom-sections {
    display: none !important;
  }

  /* PC — 점수 열 제거. 남는 폭을 작품정보와 우측 크리에이터/배지에 배분 */
  .ranking-list-row {
    display: grid;
    grid-template-columns: 48px 96px minmax(0, 1fr);
    align-items: center;
    column-gap: 18px;
    padding: 18px 22px;
    min-height: 120px;
  }

  .ranking-list-rank-col {
    width: auto;
    align-self: center;
  }

  .ranking-list-rank {
    font-size: 1.65rem;
    width: auto;
  }

  .ranking-list-thumb {
    width: 88px;
    height: 112px;
    border-radius: 8px;
    align-self: center;
  }

  .ranking-list-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(7.5rem, max-content);
    grid-template-rows: auto auto auto;
    column-gap: 16px;
    row-gap: 6px;
    align-items: start;
    width: 100%;
    min-width: 0;
  }

  .ranking-list-title-wrap {
    grid-column: 1;
    grid-row: 1;
  }

  .ranking-list-sub {
    grid-column: 1;
    grid-row: 2;
    font-size: 0.78rem;
  }

  .ranking-list-stats {
    grid-column: 1;
    grid-row: 3;
    font-size: 0.76rem;
    gap: 10px 16px;
    min-width: 0;
  }

  /* 크리에이터(위)와 배지(아래) 사이에 한 줄 여백 */
  .ranking-list-aside {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-items: flex-end;
    justify-self: end;
    gap: 18px;
    max-width: 14rem;
  }

  .ranking-list-title {
    font-size: 1.02rem;
  }

  .ranking-list-creator {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.42);
    text-align: right;
  }

  .ranking-list-format {
    text-align: right;
    font-size: 0.68rem;
  }

  .ranking-list-tags {
    margin-top: 0;
    justify-content: flex-end;
  }

  .ranking-list-metrics,
  .ranking-list-score-val {
    display: none;
  }
}

/* ── PC 우측 사이드바 — 연재 시리즈 페이지와 동일한 카드 크기 ── */
.ranking-page-sidebar {
  gap: 12px !important;
}

.ranking-page-sidebar .ranking-sidebar-block {
  margin-bottom: 0;
  padding: 12px 14px !important;
}

.ranking-page-sidebar .ranking-sidebar-title {
  margin-bottom: 8px !important;
  padding-bottom: 6px !important;
  font-size: 0.82rem !important;
}

.ranking-page-sidebar .ranking-sidebar-list {
  gap: 10px !important;
}

/* 연재 시리즈 sidebar-ranking-item과 동일 패딩·썸네일·타이포 */
.ranking-page-sidebar .ranking-sidebar-item {
  padding: 10px 12px !important;
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.ranking-page-sidebar .ranking-sidebar-item:hover {
  border-color: rgba(242, 193, 78, 0.22);
  background-color: rgba(255, 255, 255, 0.04);
}

/* 전광판 flip — perspective는 바깥 카드에 부여 (연재 시리즈와 동일) */
.ranking-page-sidebar .ranking-sidebar-item:has(.ranking-sidebar-flip-inner) {
  perspective: 1000px;
}

.ranking-page-sidebar .ranking-sidebar-flip-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  position: relative;
}

.ranking-page-sidebar .ranking-sidebar-item .sidebar-rank-num {
  font-size: 1.2rem !important;
  font-weight: 800;
  font-style: italic;
  width: 22px !important;
  text-align: center;
  flex-shrink: 0;
}

.ranking-page-sidebar .ranking-sidebar-item .sidebar-rank-thumb,
.ranking-mobile-bottom-sections .ranking-sidebar-item .sidebar-rank-thumb {
  width: 64px !important;
  height: 44px !important;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 0;
  color: transparent;
  text-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ranking-page-sidebar .ranking-sidebar-item .sidebar-rank-info {
  flex: 1;
  min-width: 0;
}

.ranking-page-sidebar .ranking-sidebar-item .sidebar-rank-title {
  font-size: 0.82rem !important;
  font-weight: 700;
  margin-bottom: 2px !important;
}

.ranking-page-sidebar .ranking-sidebar-item .sidebar-rank-meta {
  font-size: 0.7rem !important;
  gap: 6px !important;
  display: flex;
  align-items: center;
}

.ranking-page-sidebar .ranking-sidebar-item .sidebar-rank-hot {
  color: var(--accent-orange);
  font-weight: 700;
  font-size: 0.65rem;
}

/* 맨 아래 산정 기준 — 작게 */
.ranking-page-sidebar .ranking-sidebar-guide {
  margin-top: 4px;
  padding: 10px 12px !important;
  background: rgba(255, 255, 255, 0.015) !important;
  border: 1px solid rgba(255, 255, 255, 0.04) !important;
  border-radius: 10px !important;
}

.ranking-page-sidebar .ranking-guide-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}

.ranking-page-sidebar .ranking-guide-desc {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  margin: 0 0 8px 0;
}

.ranking-page-sidebar .ranking-weight-chips {
  font-size: 0.62rem;
  color: rgba(217, 138, 31, 0.65);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

/* ── 랭킹 북마크 아이콘 (어워드 테마 컬렉션 모달 리본형과 동일) ── */
.ranking-bmk-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 0;
  flex-shrink: 0;
  color: var(--accent-gold, #f2c14e);
}

.ranking-bmk-icon svg {
  display: block;
}

.ranking-bmk-icon--inline svg {
  width: 12px;
  height: 13px;
}

.ranking-bmk-icon--chip svg {
  width: 14px;
  height: 15px;
}

.ranking-bmk-shape {
  fill: transparent;
}

/* 리스트·사이드바 북마크 통계 — 아이콘·숫자 정렬 */
.ranking-stat-bookmark,
.ranking-sidebar-bmk-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* chip·필터 pill 내 아이콘·텍스트 가로 정렬 */
.chip-filter .lang-ko,
.chip-filter .lang-en,
.filter-pill .lang-ko,
.filter-pill .lang-en {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
