/**
 * 명예의 전당 스타일
 * 박물관/기념관 느낌의 클래식한 디자인
 */

/* ========================================== */
/* 페이지 기본 */
/* ========================================== */
.hall-of-fame-page {
    min-height: 100vh;
    background: #0f172a; /* 다크 배경 강제 */
    color: #fff;
    /* 페이드인 효과 - 1.5초 천천히 */
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hall-of-fame-page.fade-in {
    opacity: 1;
}

.content-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

/* ========================================== */
/* 1. HERO SECTION */
/* ========================================== */
.hero-section {
    position: relative;
    padding: 4rem 1rem;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f172a 100%);
    overflow: hidden;
    text-align: center;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, #fef08a, #fbbf24);
    border-radius: 50%;
    animation: float-up linear infinite;
    opacity: 0.6;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-20vh) scale(1);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(251, 191, 36, 0.8));
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fef08a, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 40px rgba(251, 191, 36, 0.3);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #fbbf24;
}

.hero-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================== */
/* 섹션 공통 */
/* ========================================== */
.section {
    margin-top: 3rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-title .material-symbols-outlined {
    color: #fbbf24;
}

.section-desc {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* 로딩 */
.loading-placeholder {
    display: flex;
    justify-content: center;
    padding: 3rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-primary);
    border-top-color: #fbbf24;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================== */
/* 2. CHAMPION SPOTLIGHT */
/* ========================================== */
.champion-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.champion-card {
    background: var(--background-secondary);
    border: 2px solid var(--border-primary);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.champion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.champion-yearly::before {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.champion-monthly::before {
    background: linear-gradient(90deg, #a3a3a3, #737373);
}

.champion-weekly::before {
    background: linear-gradient(90deg, #cd7f32, #a0522d);
}

.champion-card:hover {
    transform: translateY(-4px);
    border-color: #fbbf24;
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.15);
}

.champion-period {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

.champion-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
}

.champion-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fbbf24;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.champion-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.champion-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.champion-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.champion-stat {
    text-align: center;
}

.champion-stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fbbf24;
}

.champion-stat-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.champion-empty {
    opacity: 0.5;
}

/* ========================================== */
/* 3. HISTORY TIMELINE */
/* ========================================== */
.period-filter {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-primary);
    border-radius: 9999px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: #fbbf24;
    color: #fbbf24;
}

.filter-btn.active {
    background: #fbbf24;
    border-color: #fbbf24;
    color: #1a1a2e;
    font-weight: 600;
}

.timeline-scroll {
    overflow-x: auto;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}

.timeline-track {
    display: flex;
    gap: 1rem;
    min-width: max-content;
    padding: 0.5rem;
}

.timeline-card {
    flex-shrink: 0;
    width: 160px;
    background: var(--background-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s;
}

.timeline-card:hover {
    transform: translateY(-2px);
    border-color: #fbbf24;
}

.timeline-period {
    font-size: 0.625rem;
    color: var(--text-tertiary);
    margin-bottom: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-avatar {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.5rem;
}

.timeline-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.timeline-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #6b7280, #4b5563);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

.timeline-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-score {
    font-size: 0.75rem;
    color: #fbbf24;
    font-weight: 600;
}

.timeline-streak {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #ef4444;
    font-weight: 600;
}

/* ========================================== */
/* 4. LEGEND WALL */
/* ========================================== */
.tier-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tier-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.tier-badge.tier-immortal {
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.3);
    color: #ec4899;
}

.tier-badge.tier-legend {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #8b5cf6;
}

.tier-badge.tier-champion {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

.tier-count {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.legend-card {
    background: var(--background-secondary);
    border: 2px solid var(--border-primary);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.legend-card.tier-immortal {
    border-color: rgba(236, 72, 153, 0.3);
    background: linear-gradient(180deg, rgba(236, 72, 153, 0.05) 0%, var(--background-secondary) 100%);
}

.legend-card.tier-legend {
    border-color: rgba(139, 92, 246, 0.3);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.05) 0%, var(--background-secondary) 100%);
}

.legend-card.tier-champion {
    border-color: rgba(251, 191, 36, 0.3);
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.05) 0%, var(--background-secondary) 100%);
}

.legend-card:hover {
    transform: translateY(-4px);
}

.legend-card.tier-immortal:hover {
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.2);
}

.legend-card.tier-legend:hover {
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.legend-card.tier-champion:hover {
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.2);
}

.legend-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.tier-immortal .legend-tier-badge {
    background: rgba(236, 72, 153, 0.2);
    color: #ec4899;
}

.tier-legend .legend-tier-badge {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.tier-champion .legend-tier-badge {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.legend-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 0.75rem;
}

.legend-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.tier-immortal .legend-avatar img {
    border: 3px solid #ec4899;
}

.tier-legend .legend-avatar img {
    border: 3px solid #8b5cf6;
}

.tier-champion .legend-avatar img {
    border: 3px solid #fbbf24;
}

.legend-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.tier-immortal .legend-avatar .avatar-placeholder {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.tier-legend .legend-avatar .avatar-placeholder {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.tier-champion .legend-avatar .avatar-placeholder {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.legend-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.legend-level {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

.legend-wins {
    margin-bottom: 1rem;
}

.wins-count {
    font-size: 2rem;
    font-weight: 800;
}

.tier-immortal .wins-count { color: #ec4899; }
.tier-legend .wins-count { color: #8b5cf6; }
.tier-champion .wins-count { color: #fbbf24; }

.wins-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.legend-detail-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border-primary);
    border-bottom: 1px solid var(--border-primary);
    margin-bottom: 0.75rem;
}

.detail-stat {
    text-align: center;
}

.detail-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.detail-label {
    font-size: 0.625rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

.legend-streak {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #ef4444;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.legend-streak .material-symbols-outlined {
    font-size: 1rem;
}

.legend-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
}

.category-chip {
    font-size: 0.625rem;
    padding: 0.125rem 0.5rem;
    background: var(--background-tertiary);
    border-radius: 9999px;
    color: var(--text-secondary);
}

/* ========================================== */
/* 5. STATISTICS */
/* ========================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.stat-card {
    background: var(--background-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.my-position-card {
    margin-top: 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.my-position-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 1rem;
}

/* ========================================== */
/* 뒤로가기 버튼 */
/* ========================================== */
.back-button-container {
    margin-top: 3rem;
    text-align: center;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--background-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.back-button:hover {
    background: var(--background-tertiary);
    border-color: var(--text-tertiary);
}

/* 빈 상태 */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-tertiary);
}

.empty-hint {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    opacity: 0.7;
}

/* ========================================== */
/* 6. CHAPTER TABS - 프리미엄 게이밍 스타일 */
/* ========================================== */
.chapter-tabs-section {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.chapter-tabs-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.chapter-tabs-container::-webkit-scrollbar {
    display: none;
}

.chapter-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-width: 100px;
    flex-shrink: 0;
}

.chapter-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0.75rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.chapter-tab:hover::before {
    opacity: 1;
}

.chapter-tab-icon {
    font-size: 2rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: grayscale(0.3);
}

.chapter-tab:hover .chapter-tab-icon {
    transform: translateY(-4px) scale(1.1);
    filter: grayscale(0) drop-shadow(0 4px 12px rgba(251, 191, 36, 0.4));
}

.chapter-tab-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    transition: color 0.3s;
    white-space: nowrap;
}

.chapter-tab:hover .chapter-tab-name {
    color: var(--text-secondary);
}

/* 활성 탭 스타일 */
.chapter-tab.active {
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.15) 0%, rgba(251, 191, 36, 0.05) 100%);
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow:
        0 0 20px rgba(251, 191, 36, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.chapter-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
}

.chapter-tab.active .chapter-tab-icon {
    filter: grayscale(0) drop-shadow(0 0 12px rgba(251, 191, 36, 0.6));
    animation: icon-glow 2s ease-in-out infinite;
}

.chapter-tab.active .chapter-tab-name {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

@keyframes icon-glow {
    0%, 100% {
        filter: grayscale(0) drop-shadow(0 0 8px rgba(251, 191, 36, 0.5));
    }
    50% {
        filter: grayscale(0) drop-shadow(0 0 16px rgba(251, 191, 36, 0.8));
    }
}

/* 호버 시 물결 효과 */
.chapter-tab::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0.75rem;
    background: radial-gradient(circle at center, rgba(251, 191, 36, 0.3) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.5s;
    pointer-events: none;
}

.chapter-tab:not(.active):hover::after {
    opacity: 1;
    transform: scale(1);
}

/* 챕터 설명 배너 */
.chapter-description {
    text-align: center;
    padding: 1rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.1), transparent);
    border-radius: 0.5rem;
}

.chapter-description-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.chapter-description-text {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* 탭 컨텐츠 전환 애니메이션 */
.chapter-content {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.chapter-content.loading {
    opacity: 0.5;
    transform: translateY(10px);
}

/* 챕터별 특수 색상 */
.chapter-tab[data-chapter="upvotes"].active {
    border-color: rgba(239, 68, 68, 0.5);
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
}

.chapter-tab[data-chapter="upvotes"].active .chapter-tab-name {
    color: #ef4444;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.chapter-tab[data-chapter="upvotes"].active::after {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.chapter-tab[data-chapter="comments"].active {
    border-color: rgba(59, 130, 246, 0.5);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
}

.chapter-tab[data-chapter="comments"].active .chapter-tab-name {
    color: #3b82f6;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.chapter-tab[data-chapter="comments"].active::after {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.chapter-tab[data-chapter="views"].active {
    border-color: rgba(16, 185, 129, 0.5);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.chapter-tab[data-chapter="views"].active .chapter-tab-name {
    color: #10b981;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.chapter-tab[data-chapter="views"].active::after {
    background: linear-gradient(90deg, #10b981, #059669);
}

.chapter-tab[data-chapter="bookmarks"].active {
    border-color: rgba(139, 92, 246, 0.5);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.chapter-tab[data-chapter="bookmarks"].active .chapter-tab-name {
    color: #8b5cf6;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.chapter-tab[data-chapter="bookmarks"].active::after {
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}

/* ========================================== */
/* 반응형 */
/* ========================================== */
@media (max-width: 1024px) {
    .champion-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .legend-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .hero-stat-value {
        font-size: 1.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .champion-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .champion-card {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        text-align: left;
    }

    .champion-avatar {
        width: 60px;
        height: 60px;
        margin: 0;
        flex-shrink: 0;
    }

    .champion-stats {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
    }

    .champion-stat {
        display: flex;
        gap: 0.5rem;
        align-items: baseline;
    }

    .period-filter {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .filter-btn {
        flex-shrink: 0;
    }

    .tier-legend {
        gap: 0.75rem;
    }

    .tier-badge {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    .legend-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-icon {
        font-size: 3.5rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* 챕터 탭 모바일 */
    .chapter-tabs-container {
        padding: 0.75rem;
        gap: 0.25rem;
    }

    .chapter-tab {
        padding: 0.75rem 1rem;
        min-width: 80px;
    }

    .chapter-tab-icon {
        font-size: 1.5rem;
    }

    .chapter-tab-name {
        font-size: 0.625rem;
    }
}

/* ========================================== */
/* Section 6: 인기 토픽 챔피언 */
/* ========================================== */
.topic-champions-section {
    margin-top: 3rem;
}

.topic-chapter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.topic-chapter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 0.75rem;
    cursor: pointer;
    color: var(--text-tertiary);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.topic-chapter-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.topic-chapter-btn.active {
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.15) 0%, rgba(251, 191, 36, 0.05) 100%);
    border-color: rgba(251, 191, 36, 0.5);
    color: #fbbf24;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.2);
}

/* 챕터별 활성 색상 */
.topic-chapter-btn[data-chapter="upvotes"].active {
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.topic-chapter-btn[data-chapter="comments"].active {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-color: rgba(59, 130, 246, 0.5);
    color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.topic-chapter-btn[data-chapter="views"].active {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-color: rgba(16, 185, 129, 0.5);
    color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.topic-chapter-btn[data-chapter="bookmarks"].active {
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-color: rgba(139, 92, 246, 0.5);
    color: #8b5cf6;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

/* 챔피언 그리드 - 가로 스크롤 */
.topic-champions-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(251, 191, 36, 0.3) transparent;
}

.topic-champions-grid::-webkit-scrollbar {
    height: 6px;
}

.topic-champions-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.topic-champions-grid::-webkit-scrollbar-thumb {
    background: rgba(251, 191, 36, 0.3);
    border-radius: 3px;
}

/* 챔피언 카드 */
.topic-champion-card {
    flex-shrink: 0;
    width: 180px;
    background: var(--background-secondary);
    border: 2px solid var(--border-primary);
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.topic-champion-card:hover {
    transform: translateY(-4px);
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.15);
}

/* 순위별 특수 스타일 */
.topic-champion-card.rank-1 {
    border-color: rgba(251, 191, 36, 0.5);
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.1) 0%, var(--background-secondary) 100%);
}

/* 메달 표시는 JavaScript에서 처리하므로 CSS ::before 제거 (중복 방지) */
/* .topic-champion-card.rank-1::before { ... } */

.topic-champion-card.rank-2 {
    border-color: rgba(192, 192, 192, 0.5);
    background: linear-gradient(180deg, rgba(192, 192, 192, 0.1) 0%, var(--background-secondary) 100%);
}

/* .topic-champion-card.rank-2::before { ... } */

.topic-champion-card.rank-3 {
    border-color: rgba(205, 127, 50, 0.5);
    background: linear-gradient(180deg, rgba(205, 127, 50, 0.1) 0%, var(--background-secondary) 100%);
}

/* .topic-champion-card.rank-3::before { ... } */

.topic-champion-rank {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-tertiary);
    margin-bottom: 0.75rem;
}

/* 순위 메달/번호 */
.champion-rank {
    margin-bottom: 0.75rem;
}

.champion-rank .rank-medal {
    font-size: 1.5rem;
}

.champion-rank .rank-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-tertiary);
}

/* 아바타 래퍼 - JS에서 생성하는 클래스명 */
.champion-avatar-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.75rem;
    position: relative;
}

.champion-avatar-wrapper img,
.champion-avatar-wrapper img.champion-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50% !important;
    object-fit: cover;
    border: 3px solid var(--border-primary);
}

.topic-champion-card.rank-1 .champion-avatar-wrapper img {
    border-color: #fbbf24;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

.topic-champion-card.rank-2 .champion-avatar-wrapper img {
    border-color: #c0c0c0;
}

.topic-champion-card.rank-3 .champion-avatar-wrapper img {
    border-color: #cd7f32;
}

.champion-avatar-wrapper .avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #6b7280, #4b5563);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

/* 챔피언 정보 */
.champion-info {
    margin-bottom: 0.75rem;
}

.champion-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.champion-level {
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

/* 챔피언 메트릭 */
.champion-metric {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.5rem;
}

.champion-metric .metric-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fbbf24;
}

.champion-metric .metric-label {
    font-size: 0.625rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

.champion-content-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* 레거시 호환 */
.topic-champion-avatar {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.75rem;
    position: relative;
}

.topic-champion-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-primary);
}

.topic-champion-card.rank-1 .topic-champion-avatar img {
    border-color: #fbbf24;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

.topic-champion-avatar .level-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--background-secondary);
}

.topic-champion-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topic-champion-level {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    margin-bottom: 0.75rem;
}

.topic-champion-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-primary);
}

.topic-champion-stat {
    text-align: center;
}

.topic-champion-stat-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #fbbf24;
}

.topic-champion-stat-label {
    font-size: 0.625rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

/* ========================================== */
/* Section 7: 누적 명예의 전당 */
/* ========================================== */
.cumulative-hof-section {
    margin-top: 3rem;
}

/* 티어 카드 (그랜드마스터, 마스터, 엘리트) */
.cumulative-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.cumulative-tier {
    background: var(--background-secondary);
    border: 2px solid var(--border-primary);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.cumulative-tier:hover {
    transform: translateY(-4px);
}

/* 그랜드마스터 */
.grandmaster-tier {
    border-color: rgba(236, 72, 153, 0.4);
    background: linear-gradient(180deg, rgba(236, 72, 153, 0.1) 0%, var(--background-secondary) 100%);
}

.grandmaster-tier:hover {
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.2);
}

.grandmaster-tier .tier-header-icon {
    color: #ec4899;
}

/* 마스터 */
.master-tier {
    border-color: rgba(139, 92, 246, 0.4);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.1) 0%, var(--background-secondary) 100%);
}

.master-tier:hover {
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.master-tier .tier-header-icon {
    color: #8b5cf6;
}

/* 엘리트 */
.elite-tier {
    border-color: rgba(251, 191, 36, 0.4);
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.1) 0%, var(--background-secondary) 100%);
}

.elite-tier:hover {
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.2);
}

.elite-tier .tier-header-icon {
    color: #fbbf24;
}

.tier-header {
    margin-bottom: 1rem;
}

.tier-header-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.tier-header-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.tier-header-desc {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.tier-users {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 100px;
}

.tier-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.5rem;
    text-align: left;
    transition: background 0.2s;
}

.tier-user:hover {
    background: rgba(255, 255, 255, 0.06);
}

.tier-user-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.tier-user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* JS에서 생성하는 클래스명 (tier-user-card, user-avatar) */
.tier-user-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.5rem;
    text-align: left;
    transition: background 0.2s;
}

.tier-user-card:hover {
    background: rgba(255, 255, 255, 0.06);
}

.tier-user-card .user-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.tier-user-card .user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50% !important;
    object-fit: cover;
    border: 2px solid var(--border-primary);
}

.grandmaster-tier .tier-user-card .user-avatar img {
    border-color: #ec4899;
}

.master-tier .tier-user-card .user-avatar img {
    border-color: #8b5cf6;
}

.elite-tier .tier-user-card .user-avatar img {
    border-color: #fbbf24;
}

.tier-user-card .user-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #6b7280, #4b5563);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

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

.tier-user-card .user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tier-user-card .user-level {
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

.tier-user-card .user-chapters {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.tier-user-card .user-chapter-count {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    white-space: nowrap;
}

/* 빈 티어 스타일 */
.empty-tier {
    padding: 1.5rem;
    color: var(--text-tertiary);
    font-size: 0.875rem;
    text-align: center;
}

.tier-user-info {
    flex: 1;
    min-width: 0;
}

.tier-user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tier-user-chapters {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.chapter-badge {
    font-size: 0.65rem;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.tier-empty {
    padding: 2rem;
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* 분야별 랭킹 */
.chapter-rankings-divider {
    text-align: center;
    padding: 1.5rem 0;
    position: relative;
}

.chapter-rankings-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-primary), transparent);
}

.chapter-rankings-divider span {
    position: relative;
    background: #0f172a;
    padding: 0 1.5rem;
    color: var(--text-tertiary);
    font-size: 0.875rem;
    font-weight: 600;
}

.chapter-rankings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.chapter-ranking-card {
    background: var(--background-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.2s ease;
}

.chapter-ranking-card:hover {
    transform: translateY(-2px);
    border-color: var(--text-tertiary);
}

.chapter-ranking-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-primary);
}

.chapter-ranking-icon {
    font-size: 1.25rem;
}

.chapter-ranking-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.chapter-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chapter-ranking-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.chapter-ranking-position {
    width: 20px;
    font-weight: 700;
    color: var(--text-tertiary);
}

.chapter-ranking-position.top-1 { color: #fbbf24; }
.chapter-ranking-position.top-2 { color: #c0c0c0; }
.chapter-ranking-position.top-3 { color: #cd7f32; }

.chapter-ranking-name {
    flex: 1;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chapter-ranking-value {
    font-weight: 600;
    color: var(--text-secondary);
}

/* 분야별 랭킹 아바타 */
.chapter-ranking-avatar-wrapper {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.chapter-ranking-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-primary);
}

.chapter-ranking-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--text-tertiary), var(--text-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

.empty-ranking {
    color: var(--text-tertiary);
    font-size: 0.8rem;
    text-align: center;
    padding: 1rem;
}

/* 챕터 카드별 색상 */
.chapter-ranking-card[data-chapter="upvotes"] {
    border-color: rgba(239, 68, 68, 0.3);
}

.chapter-ranking-card[data-chapter="upvotes"] .chapter-ranking-icon {
    color: #ef4444;
}

.chapter-ranking-card[data-chapter="comments"] {
    border-color: rgba(59, 130, 246, 0.3);
}

.chapter-ranking-card[data-chapter="comments"] .chapter-ranking-icon {
    color: #3b82f6;
}

.chapter-ranking-card[data-chapter="views"] {
    border-color: rgba(16, 185, 129, 0.3);
}

.chapter-ranking-card[data-chapter="views"] .chapter-ranking-icon {
    color: #10b981;
}

.chapter-ranking-card[data-chapter="bookmarks"] {
    border-color: rgba(139, 92, 246, 0.3);
}

.chapter-ranking-card[data-chapter="bookmarks"] .chapter-ranking-icon {
    color: #8b5cf6;
}

/* Section 6, 7 반응형 */
@media (max-width: 1024px) {
    .cumulative-tiers {
        grid-template-columns: repeat(3, 1fr);
    }

    .chapter-rankings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .topic-chapter-tabs {
        gap: 0.25rem;
        padding: 0.75rem;
    }

    .topic-chapter-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .topic-champion-card {
        width: 150px;
    }

    .cumulative-tiers {
        grid-template-columns: 1fr;
    }

    .chapter-rankings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .topic-chapter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .topic-chapter-btn {
        flex-shrink: 0;
    }

    .topic-champion-card {
        width: 140px;
        padding: 1rem;
    }

    .topic-champion-avatar {
        width: 48px;
        height: 48px;
    }

    .chapter-rankings-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   분야별 명예의 전당 2단 필터 스타일
   ======================================== */

/* 1단 필터: 카테고리 탭 */
.category-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5), rgba(51, 65, 85, 0.3));
    border-radius: 12px;
    margin-bottom: 0.75rem;
    justify-content: center;
}

.category-filter-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-filter-btn:hover {
    background: rgba(30, 64, 175, 0.3);
    border-color: rgba(59, 130, 246, 0.4);
    color: #e2e8f0;
}

.category-filter-btn.active {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.5), rgba(37, 99, 235, 0.4));
    border-color: rgba(59, 130, 246, 0.5);
    color: #fff;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.category-filter-btn span {
    font-size: 1rem;
}

/* 2단 필터: 챕터 탭 */
.chapter-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 10px;
    margin-bottom: 1rem;
    justify-content: center;
}

.chapter-filter-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.75rem;
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 6px;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chapter-filter-btn:hover {
    background: rgba(71, 85, 105, 0.3);
    color: #cbd5e1;
}

.chapter-filter-btn.active {
    background: rgba(234, 179, 8, 0.2);
    border-color: rgba(234, 179, 8, 0.4);
    color: #fbbf24;
}

.chapter-filter-btn span {
    font-size: 0.9rem;
}

/* 결과 컨테이너 */
.category-chapter-result {
    min-height: 200px;
}

.category-chapter-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.category-chapter-header .category-name {
    color: #60a5fa;
    font-weight: 600;
    font-size: 0.9rem;
}

.category-chapter-header .separator {
    color: #475569;
}

.category-chapter-header .chapter-name {
    color: #fbbf24;
    font-weight: 500;
    font-size: 0.9rem;
}

/* 결과 리스트 */
.category-chapter-list {
    background: rgba(15, 23, 42, 0.4);
    border-radius: 0 0 8px 8px;
    padding: 0.5rem;
}

.category-chapter-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.category-chapter-item:last-child {
    margin-bottom: 0;
}

.category-chapter-item:hover {
    background: rgba(30, 41, 59, 0.5);
    transform: translateX(4px);
}

.category-chapter-item.top-3 {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5), rgba(234, 179, 8, 0.1));
}

.category-chapter-item .item-rank {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
}

.category-chapter-item .item-rank.medal {
    background: transparent;
    font-size: 1.25rem;
}

.category-chapter-item .item-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.category-chapter-item .item-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(148, 163, 184, 0.2);
}

.category-chapter-item .item-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

.category-chapter-item .item-info {
    flex: 1;
    min-width: 0;
}

.category-chapter-item .item-name {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-chapter-item .item-level {
    color: #64748b;
    font-size: 0.75rem;
}

.category-chapter-item .item-stats {
    text-align: center;
    min-width: 60px;
}

.category-chapter-item .stat-value {
    color: #fbbf24;
    font-weight: 700;
    font-size: 0.95rem;
}

.category-chapter-item .stat-label {
    color: #64748b;
    font-size: 0.7rem;
}

.category-chapter-item .item-content-count {
    color: #64748b;
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Empty/Error 상태 */
.category-chapter-result .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    color: #64748b;
}

.category-chapter-result .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* 반응형 */
@media (max-width: 768px) {
    .category-filter-tabs {
        gap: 0.25rem;
        padding: 0.75rem;
    }

    .category-filter-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }

    .category-filter-btn span {
        font-size: 0.85rem;
    }

    .chapter-filter-tabs {
        gap: 0.25rem;
        padding: 0.5rem;
    }

    .chapter-filter-btn {
        padding: 0.35rem 0.5rem;
        font-size: 0.7rem;
    }

    .category-chapter-item {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .category-chapter-item .item-avatar {
        width: 32px;
        height: 32px;
    }

    .category-chapter-item .item-rank {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .category-chapter-item .item-name {
        font-size: 0.8rem;
    }

    .category-chapter-item .item-content-count {
        display: none;
    }
}

@media (max-width: 480px) {
    .category-filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .category-filter-btn {
        flex-shrink: 0;
    }

    .chapter-filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .chapter-filter-btn {
        flex-shrink: 0;
    }
}
