/* =========================================
   [1] 폰트 및 기본 설정 (Base & Typography)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Black+Han+Sans&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');   

:root {
    --primary-color: #3d5afe;
    --accent-num: #7544ff;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-color: #ffffff;
    --text-dim: #b0b0b0;
}

body { 
    margin: 0; padding: 0; 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    font-family: 'Montserrat', 'Pretendard', sans-serif; 
    display: flex; justify-content: center;
    overflow-y: scroll;
    overflow-x: hidden;
    word-break: keep-all; 
    word-wrap: break-word;
}

.container { 
    width: 100%; max-width: 600px; 
    margin: 0 auto; min-height: 100vh; 
    position: relative; background: #000; 
}

/* 폰트 적용 유틸리티 */
.recap-title-sm, .recap-category, .rank-1-badge, .rank-1-name,
.intro-title-main, .recap-big, .cat-title, .cat-artist-name,
.t5-rank-badge-lg, .t5-name-lg, .t5-name-sm,
.q-title-lg, .q-title-sm, #txt-hall-fame, .category-label,
.recap-subtitle, .cat-subtitle, .rank-name-simple, .cat-song-name {
    font-family: 'Black Han Sans', 'Pretendard', sans-serif !important;
    letter-spacing: -0.2px; 
    word-break: keep-all !important;
    word-wrap: break-word !important;
    text-shadow: none !important;
    -webkit-text-stroke: 0 !important;
    filter: none !important;
}
/* 폰트 예외처리 */
.recap-title-sm, .recap-big, .intro-title-main, .q-title-lg, #txt-hall-fame, .rank-1-name, .cat-artist-name, .t5-name-lg, .t5-name-sm, .rank-name-simple, .q-title-sm, .category-label {
    font-weight: 400 !important;          /* 핵심: 폰트 자체 굵기 사용 */
    letter-spacing: 0 !important;          /* 자간 0 (겹침 방지) */
    -webkit-font-smoothing: antialiased;   /* 테두리 부드럽게 */
    transform: translateZ(0);              /* GPU 렌더링 최적화 */
    -webkit-text-stroke: 0 !important;     /* 외곽선 제거 */
    text-shadow: none !important;          /* 그림자 제거 */
}

.rank-increase, .rank-count-simple, .rank-mid-badge,
.cat-vote-count, .cat-subtitle,
.t5-score-lg, .t5-score-sm, .t5-rank-badge-sm,
.q-score-lg, .q-score-sm, .q-rank-badge, .rank-num, .rank-num-lg {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 900;
    word-break: keep-all !important;
    word-wrap: break-word !important;
    text-shadow: none !important;
}

/* =========================================
   [2] 네비게이션 (GNB)
   ========================================= */
.gnb-wrapper { 
    position: sticky; top: 0; z-index: 100; 
    background: rgba(18,18,18,0.95); 
    border-bottom: 1px solid #333; 
    backdrop-filter: blur(10px);
    width: 100%;
    height: auto; 
}

.gnb-top-row {
    display: flex; justify-content: flex-end; align-items: center;
    padding: 0 20px; 
    height: 34px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    width: 100%; 
    box-sizing: border-box;
    position: static; 
}

.gnb-bottom-row { 
    display: flex; justify-content: center;
    align-items: center; 
    padding: 0 20px; 
    height: 50px;
    width: 100%; 
    box-sizing: border-box;
}

.tab-menu { display: flex; gap: 30px; height: 100%; }

.tab-btn { 
    background: transparent; border: none; 
    color: var(--text-dim); font-weight: bold; font-size: 15px; 
    cursor: pointer; border-bottom: 2px solid transparent; 
    height: 100%; padding: 0 5px; 
    transition: color 0.2s;
    font-family: 'Montserrat', sans-serif;
}
.tab-btn.active { color: #fff; border-bottom: 2px solid var(--primary-color); }

.lang-selector { font-size: 12px; color: var(--text-dim); font-weight: bold; letter-spacing: 0.5px; }
.lang-selector .active { color: #fff; }
.divider { margin: 0 8px; opacity: 0.3; font-size: 10px; vertical-align: middle; }


/* =========================================
   [3] 어워즈 결과 (Awards Section)
   ========================================= */
.content-section { display: none; padding-bottom: 40px; }
.content-section.active { display: block; animation: fadeIn 0.4s; }

.hero-image-area {
    width: 100%; background: transparent; 
    padding: 0 !important; margin: 0;
    line-height: 0; text-align: center; overflow: hidden;
}
.main-hero-img { width: 100%; height: auto; display: block; object-fit: cover; }

.stats-container { padding: 20px; text-align: center; }
.intro-text { font-size: 15px; line-height: 1.6; margin-bottom: 25px; color: #ddd; }
.stats-box { background: #252525; border-radius: 16px; padding: 25px 20px; border: 1px solid #333; }
.stats-box h4 { margin: 0 0 15px 0; font-size: 16px; }
.stats-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 20px; }
.badge { background: #333; color: var(--primary-color); padding: 5px 10px; border-radius: 4px; font-size: 12px; font-weight: bold; }

.map-area { position: relative; width: 100%; height: auto; background: transparent; border-radius: 12px; overflow: hidden; margin-top: 20px; line-height: 0; }
.map-img-real { width: 100%; height: auto; display: block; object-fit: cover; }

.ranking-header { text-align: center; margin: 60px 0 40px; }
#txt-hall-fame {
    font-size: 42px; font-weight: 900; color: #ffffff;
    line-height: 1.1; letter-spacing: -1px; text-transform: uppercase; margin: 0;
    text-shadow: none !important; 
}
.awards-list { display: flex; flex-direction: column; gap: 25px; padding: 0 20px; }

/* 카드 높이 자동 조절 */
.award-card { 
    background: var(--card-bg); 
    border-radius: 16px; 
    padding: 25px; 
    border: 1px solid #333; 
    height: auto !important; 
}

.category-label { 
    display: block; width: 100%; text-align: center; 
    background: transparent; color: #00ffc3; 
    font-size: 32px; font-weight: 900; margin: 15px 0 35px 0;
    line-height: 1.2;
    text-shadow: none !important; 
}

.rank-1st { display: flex; flex-direction: column; align-items: flex-start; text-align: left; margin-bottom: 25px; border-bottom: 1px solid #333; padding-bottom: 25px; width: 100%; }
.img-lg { width: 100%; max-height: 250px; object-fit: cover; border-radius: 12px; margin-bottom: 15px; background: #333; }
.rank-1st-info { width: 100%; height: auto; }

/* 1위 */
.rank-name-lg { 
    font-size: 20px; font-weight: bold; margin-bottom: 5px; 
    white-space: normal !important; overflow: visible !important; text-overflow: clip !important; height: auto !important; line-height: 1.3;
}

/* 1위 게이지바 간격 (30px) */
.rank-name-lg + .gauge-group-lg { margin-top: 30px; }

.rank-song-lg { 
    font-size: 14px; color: #999; margin-bottom: 10px; font-weight: normal; display: block; 
    white-space: normal !important; overflow: visible !important; text-overflow: clip !important; height: auto !important;
}
.rank-num-lg { font-size: 40px; color: var(--accent-num); line-height: 1; margin-bottom: 10px; font-style: italic; }

/* 2,3위 레이아웃 */
.sub-ranks { 
    display: grid; grid-template-columns: 1fr 1fr; gap: 15px; 
    align-items: stretch; /* 높이 맞춤 */
}

.rank-sub { 
    display: flex; flex-direction: column; 
    height: 100%; 
    padding-bottom: 0;
}

.img-sm { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; margin-bottom: 10px; background: #333; }

.rank-sub-info {
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

/* 순위 숫자: 블록 처리 */
.rank-num { 
    display: block !important;  
    width: 100%;
    color: var(--accent-num); 
    font-size: 18px; 
    font-style: italic; 
    margin-bottom: 6px; 
    margin-right: 0;
}

/* 2,3위 텍스트 */
.rank-name-sm { 
    font-size: 13px; font-weight: bold; margin-bottom: 4px; line-height: 1.3;
    white-space: normal !important; overflow: visible !important; text-overflow: clip !important; height: auto !important;
}

.rank-song-sm { 
    font-size: 12px; color: #999; margin-bottom: 8px; font-weight: normal; display: block; 
    white-space: normal !important; overflow: visible !important; text-overflow: clip !important; height: auto !important;
}

.gauge-wrap { width: 100%; height: 6px; background: #333; border-radius: 3px; margin: 8px 0; overflow: hidden; }
.gauge-bar { height: 100%; background-color: #7544ff !important; border-radius: 3px; }
.percent-txt { font-size: 14px; font-weight: bold; color: #7544ff; float: right; }

.gauge-group { margin-top: auto; width: 100%; }

.view-all-btn-area { text-align: center; margin-top: 60px; margin-bottom: 40px; display: flex; flex-direction: column; align-items: center; gap: 15px; width: 100%; }
.btn-outline { background: transparent; border: 1px solid #777; color: #ccc; padding: 12px 35px; border-radius: 30px; cursor: pointer; font-family: 'Montserrat', sans-serif; font-weight: bold; font-size: 14px; transition: all 0.2s ease; }
.btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.1); transform: translateY(-2px); }

.btn-gradient-action, .btn-open-recap { display: inline-block; background: linear-gradient(90deg, #3d5afe, #7544ff); color: #fff; font-size: 16px; font-weight: 900; padding: 15px 40px; border-radius: 50px; border: none; box-shadow: 0 10px 20px rgba(61, 90, 254, 0.4); cursor: pointer; font-family: 'Montserrat', sans-serif; transition: transform 0.2s; margin-top: 10px; text-decoration: none; }
.btn-gradient-action:hover, .btn-open-recap:hover { transform: scale(1.05); color: #fff; }


/* =========================================
   [4] 뮤빗 리캡 (Recap) - 홈 & 모달
   ========================================= */

.recap-main-info { text-align: center; margin-top: 40px; margin-bottom: 40px; padding: 0 20px; }
.intro-label { font-size: 14px; font-weight: 800; color: #ffffff; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; }
.intro-year { font-size: 80px; font-weight: 900; color: #ffffff; line-height: 1; margin-bottom: 0; }
.intro-title-main { font-size: 40px; font-weight: 900; color: #ffffff; margin-bottom: 20px; }
.intro-desc { font-size: 15px; line-height: 1.6; color: #ccc; word-break: keep-all; }
.cta-button-area { text-align: center; margin: 30px 0 50px 0; }

.recap-modal-overlay {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); 
    z-index: 9999; backdrop-filter: blur(5px);
    flex-direction: column; justify-content: center; align-items: center;
}
.recap-modal-overlay.open { display: flex; animation: fadeIn 0.3s forwards; }

.recap-modal-content { position: relative; width: 90%; max-width: 480px; height: 85vh; overflow: hidden; box-sizing: border-box; display: flex; flex-direction: column; }

.btn-close-modal {
    position: absolute; top: 15px; right: 25px;
    background: transparent; border: none;
    color: #fff; font-size: 30px; cursor: pointer; z-index: 10001;
    padding: 0; line-height: 1;
}

.modal-lang-toggle {
    position: fixed; top: 20px; left: 25px; z-index: 99999 !important; pointer-events: auto;
    color: rgba(255, 255, 255, 0.3); font-size: 13px; font-weight: 600; font-family: 'Montserrat', sans-serif; cursor: pointer;
    display: flex; align-items: center; gap: 5px;
}
.modal-lang-toggle .lang-btn { transition: all 0.2s; }
.modal-lang-toggle .lang-btn.active { color: #ffffff; font-weight: 800; text-shadow: 0 0 10px rgba(0,0,0,0.5); }
.modal-lang-toggle .bar { margin: 0 2px; opacity: 0.2; font-size: 10px; color: #fff; }

.recap-container { flex: 1; min-height: 0; width: 100%; border-radius: 20px; border: 1px solid #333; position: relative; overflow: hidden; }
.swiper-slide { background: var(--card-bg); display: flex; flex-direction: column; padding: 30px; box-sizing: border-box; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #555 transparent; }
.visual-card-box { width: 100%; flex: 1 0 auto; background: transparent; border: none; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; box-sizing: border-box; padding: 20px 15px 15px 15px; }

.slide-bottom-logo { position: relative; margin: 30px auto 0 auto; left: auto; bottom: auto; transform: none; width: 60px; z-index: 20; opacity: 0.8; pointer-events: none; flex-shrink: 0; }
.slide-bottom-logo img { width: 100% !important; height: auto !important; display: block; }

.swiper-slide.slide-full { padding: 0 !important; background: #000 !important; border: none !important; display: block; }
.slide-full .intro-slide-wrapper { width: 100%; height: 100%; border-radius: 0; }
.slide-full .intro-bg-layer img { width: 100%; height: 100%; object-fit: cover; }
.slide-full .slide-bottom-logo { display: none; } 
.slide-full .visual-card-box { margin: 0; height: 100%; justify-content: center; }
.swiper-slide.bg-none { background: #111 !important; border: none !important; padding: 20px !important; }
.swiper-button-next, .swiper-button-prev { width: 30px !important; height: 30px !important; }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 20px !important; font-weight: bold; }

.intro-slide-wrapper { width: 100%; height: 100%; background: transparent !important; display: flex; justify-content: center; align-items: center; position: relative; border-radius: 20px; overflow: hidden; }
.intro-bg-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.intro-bg-layer img { width: 100%; height: 100%; object-fit: cover; display: block; }

.recap-header { width: 100%; text-align: center; margin-bottom: 5px; flex-shrink: 0; } 
.recap-title-sm { font-size: 24px; font-weight: 900; color: #fff; margin-bottom: 5px; }
.recap-subtitle { font-size: 13px; color: #aaa; margin-bottom: 5px; font-weight: normal; }
.recap-category { font-size: 14px; color: #7544ff; font-weight: bold; display: inline-block; }

.top3-layout { display: flex; flex-direction: column; width: 100%; max-width: 550px; gap: 12px; align-items: center; justify-content: center; }
.rank-1-col { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.rank-1-img-box { width: 120px; height: 120px; background: #333; border-radius: 20px; border: 3px solid #7544ff; margin-bottom: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.rank-1-img-box img { width: 100%; height: 100%; object-fit: cover; }
.rank-1-badge { font-size: 22px; font-weight: 900; margin-bottom: 2px; color: #7544ff; line-height: 1; white-space: nowrap !important; }
.rank-1-name { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 2px; }
.rank-increase { font-size: 14px; color: #00ffc3; font-weight: bold; }
.rank-others-col { width: 100%; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.rank-row { display: flex; align-items: center; gap: 15px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; padding: 10px 15px; }
.rank-sm-img { width: 45px; height: 45px; border-radius: 8px; background: #444; object-fit: cover; flex-shrink: 0; }
.rank-mid-badge { font-size: 16px; font-weight: 900; color: #fff; width: auto !important; min-width: 30px; margin-right: 5px; text-align: center; flex-shrink: 0; white-space: nowrap !important; }
.rank-text-group { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; line-height: 1.3; }
.rank-name-simple { font-size: 15px; color: #ddd; font-weight: bold; }
.rank-count-simple { font-size: 13px; color: #00ffc3; font-weight: bold; }

.category-best-layout { width: 100%; max-width: 550px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.cat-item { display: flex; flex-direction: column; background: transparent; border-bottom: 1px solid #333; padding: 10px 0; width: 100%; box-sizing: border-box; }
.cat-item:last-child { border-bottom: none; }
.cat-head-group { margin-bottom: 8px; text-align: left; }
.cat-title { font-size: 19px; color: var(--primary-color); margin-bottom: 2px; line-height: 1.2; }
.cat-subtitle { font-size: 11px; color: #666; font-weight: 600; text-transform: uppercase; }
.cat-body { display: flex; align-items: center; gap: 12px; }
.cat-img-box { width: 60px; height: 60px; border-radius: 12px; background: #333; overflow: hidden; flex-shrink: 0; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.cat-img-box img { width: 100%; height: 100%; object-fit: cover; }
.cat-info-group { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 4px; flex: 1; }
.cat-artist-name { font-size: 16px; color: #fff; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cat-song-name { font-size: 14px; color: #999; margin-top: 4px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }
.cat-stats-row { display: flex; flex-direction: row !important; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 2px; }
.cat-total-badge { font-size: 10px; color: #999; background: rgba(255,255,255,0.1); padding: 2px 5px; border-radius: 4px; letter-spacing: -0.5px; }
.cat-vote-count { font-size: 14px; font-weight: 900; color: #00ffc3; }

.top5-layout { width: 100%; max-width: 550px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.top5-rank1 { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 5px; }
.t5-r1-img-wrap { position: relative; width: 110px; height: 110px; border-radius: 20px; border: 3px solid #7544ff; margin-bottom: 5px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.t5-r1-img-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.t5-rank-badge-lg { position: absolute; top: -5px; left: -5px; background: #fff; color: #000; font-size: 16px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 50px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(0,0,0,0.3); z-index: 10; white-space: nowrap !important; }
.t5-info-lg { line-height: 1.2; }
.t5-name-lg { font-size: 18px; color: #fff; margin-bottom: 2px; }
.t5-score-lg { font-size: 18px; color: #00ffc3; }
.top5-others-grid { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.t5-item-sm { background: transparent; border: none; padding: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.t5-img-box-sm { position: relative; width: 60px; height: 60px; border-radius: 12px; background: #333; overflow: hidden; margin-bottom: 4px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.t5-img-box-sm img { width: 100%; height: 100%; object-fit: cover; }
.t5-rank-overlay { position: absolute; top: 0; left: 0; background: rgba(255, 255, 255, 0.9); color: #000; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 12px; padding: 2px 6px; border-bottom-right-radius: 8px; box-shadow: 1px 1px 3px rgba(0,0,0,0.3); z-index: 10; white-space: nowrap !important; }
.t5-info-sm { width: 100%; overflow: hidden; }
.t5-name-sm { font-size: 13px; color: #ddd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.t5-score-sm { font-size: 11px; color: #00ffc3; }

.quiz-top3-layout { width: 100%; max-width: 550px; display: flex; flex-direction: column; gap: 12px; }
.quiz-rank1-card { width: 100%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); border-radius: 16px; padding: 15px 20px 10px 20px; margin-bottom: 0; display: flex; flex-direction: row; align-items: center; text-align: left; box-sizing: border-box; }
.quiz-rank1-card .q-img-wrap-common { position: relative; width: 90px; height: 90px; border-radius: 12px; background: #333; overflow: hidden; margin-right: 20px; flex-shrink: 0; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.quiz-rank1-card .q-img-wrap-common img { width: 100%; height: 100%; object-fit: cover; }
.quiz-rank1-card .q-title-lg { font-size: 17px; color: #fff; font-weight: bold; margin-bottom: 5px; font-family: 'Black Han Sans', sans-serif; line-height: 1.2; }
.quiz-rank1-card .q-score-lg { font-size: 15px; color: #00ffc3; font-weight: 900; font-family: 'Montserrat', sans-serif; }
.quiz-others-list { width: 100%; display: flex; flex-direction: column; align-items: flex-end; gap: 0; }
.quiz-list-item { width: 100%; background: transparent !important; border: none !important; border-bottom: 1px solid #333 !important; padding: 12px 20px; display: flex; flex-direction: row; align-items: center; text-align: left; box-sizing: border-box; }
.quiz-list-item:last-child { border-bottom: none !important; }
.quiz-list-item .q-img-wrap-common { position: relative; width: 60px; height: 60px; border-radius: 8px; background: #333; overflow: hidden; margin-right: 15px; flex-shrink: 0; margin-left: 30px; }
.quiz-list-item .q-img-wrap-common img { width: 100%; height: 100%; object-fit: cover; }
.quiz-list-item .q-title-sm { font-size: 15px; color: #ddd; font-weight: bold; margin-bottom: 3px; font-family: 'Black Han Sans', sans-serif; }
.quiz-list-item .q-score-sm { font-size: 13px; color: #00ffc3; font-weight: 900; font-family: 'Montserrat', sans-serif; }
.q-info-common { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.q-rank-badge { position: absolute; top: 0; left: 0; background: rgba(255,255,255,0.9); color: #000; font-family: 'Montserrat', sans-serif; font-weight: 900; border-bottom-right-radius: 8px; box-shadow: 1px 1px 3px rgba(0,0,0,0.3); z-index: 5; display: flex; align-items: center; justify-content: center; padding: 2px 6px; white-space: nowrap !important; }
.rank-1 { font-size: 14px; width: 26px; height: 22px; }
.rank-others { font-size: 12px; width: 24px; height: 20px; }

.recap-big { font-size: 42px; font-weight: 900; color: #fff; line-height: 1.1; margin-bottom: 20px; text-transform: uppercase; font-family: 'Black Han Sans', sans-serif; }
.recap-txt { font-size: 15px; color: #ccc; line-height: 1.5; word-break: keep-all; }
.btn-full-next { display: inline-flex; justify-content: center; align-items: center; min-width: 240px; padding: 14px 30px; margin-top: 20px; background: linear-gradient(90deg, #3d5afe, #7544ff); border-radius: 50px; border: none; color: #fff; font-family: 'Montserrat', sans-serif; font-size: 16px; font-weight: 800; letter-spacing: 0.5px; cursor: pointer; box-shadow: 0 4px 15px rgba(117, 68, 255, 0.4); transition: transform 0.2s, box-shadow 0.2s; }

.fixed-actions-area { width: 100%; max-width: 600px; margin: 15px auto 0; display: flex; justify-content: flex-end; gap: 15px; box-sizing: border-box; z-index: 50; flex-shrink: 0; }
.action-icon-btn { width: 50px; height: 50px; border-radius: 50%; border: 1px solid #555; background: #2a2a2a; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.action-icon-btn:hover { background: #7544ff; border-color: #7544ff; transform: translateY(-2px); }
.action-icon-btn svg { width: 24px; height: 24px; fill: currentColor; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* [추가] 6페이지 차트 장기집권 3단 분리 스타일 (모바일 기본) */
.chart-song-title {
    font-family: 'Black Han Sans', 'Pretendard', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.2;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    -webkit-font-smoothing: antialiased;
    transform: translateZ(0);
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
}
.chart-artist-name {
    font-family: 'Pretendard', sans-serif;
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 6px;
    font-weight: 500;
}
@media screen and (max-width: 480px) {
    .chart-song-title { font-size: 1.0rem; }
    .chart-artist-name { font-size: 0.85rem; }
}

/* =================================================================
   [5] PC Web 반응형 (1024px 이상)
   ================================================================= */
@media (min-width: 1024px) {
    /* --- GNB PC 설정 --- */
    .gnb-wrapper { height: 70px !important; display: block; position: sticky; top: 0; }
    .gnb-top-row { position: absolute !important; top: 0; right: 0; height: 100%; width: auto; border-bottom: none; padding-right: 40px; z-index: 200; background: transparent; }
    .gnb-bottom-row { height: 100%; max-width: 1200px; margin: 0 auto; padding: 0 40px; justify-content: flex-start; padding-right: 150px; }
    .tab-menu { gap: 40px; }
    .lang-selector { font-size: 14px; }

    /* --- 어워즈 PC 설정 --- */
    #txt-hall-fame { font-size: 64px; margin-bottom: 20px; }
    .container { max-width: 1200px; padding: 0 40px; box-sizing: border-box; }
    .hero-image-area { margin-bottom: 40px; }
    .view-all-btn-area { max-width: 1000px; margin: 60px auto 40px auto; }
    
    .awards-list { gap: 40px; }
    
    /* PC에서도 높이 자동 조절 */
    .award-card { 
        position: relative; display: flex; flex-direction: row; align-items: center; padding: 40px; padding-top: 130px; 
        background: #111; border: 1px solid #222; border-radius: 24px; 
        height: auto !important; 
        min-height: 380px; 
        box-sizing: border-box; 
    }
    
    .category-label { position: absolute; top: 35px; left: 40px; font-size: 40px; margin: 0; text-align: left; }
    .rank-1st { flex: 0 0 68%; display: flex; flex-direction: row; align-items: center; gap: 60px; border-bottom: none; margin: 0; padding: 0; }
    .img-lg { width: 220px; height: 220px; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.6); object-fit: cover; flex-shrink: 0; margin: 0; }
    .rank-1st-info { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 320px; }
    .rank-num-lg { font-size: 48px; margin-bottom: 5px; } 
    .rank-name-lg { font-size: 32px; font-weight: 800; margin-bottom: 5px; color: #fff; line-height: 1.1; }
    .rank-name-lg + .gauge-group-lg { margin-top: 30px; }
    .rank-song-lg { font-size: 16px; color: #aaa; margin-bottom: 20px; }
    .gauge-group-lg { width: 100%; }
    
    /* PC 2,3위 레이아웃 */
    .sub-ranks { 
        flex: 1; 
        display: flex; 
        flex-direction: row; 
        justify-content: flex-end; 
        gap: 30px; 
        padding-left: 50px; 
        border-left: 1px solid #333; 
        height: auto; 
        align-items: stretch; 
    }
    
    .rank-sub { 
        width: 120px; 
        flex: 0 0 auto; 
        display: flex; 
        flex-direction: column; 
        align-items: flex-start; 
        height: auto; 
    }
    
    .img-sm { width: 100px !important; height: 100px !important; border-radius: 12px; object-fit: cover; margin-bottom: 12px; background: #333; }
    .rank-sub-info { width: 100%; }
    
    /* PC에서도 숫자를 윗줄로 */
    .rank-num { 
        font-size: 18px; 
        margin-bottom: 6px; 
        display: block !important; 
        width: 100%;
    } 
    
    .rank-name-sm { 
        font-size: 14px; font-weight: bold; color: #fff; margin-bottom: 4px; display: block; width: 100%;
        white-space: normal !important; overflow: visible !important; text-overflow: clip !important; word-break: keep-all !important;
    }
    .rank-song-sm { 
        font-size: 12px; color: #777; margin-bottom: 10px; display: block; width: 100%; 
        white-space: normal !important; overflow: visible !important; text-overflow: clip !important; word-break: keep-all !important;
    }

    /* --- 리캡 PC 설정 --- */
    .recap-modal-content { max-width: 1200px; width: 80vw; height: 85vh; overflow: hidden; box-sizing: border-box; display: flex; flex-direction: column; }
    .btn-close-modal { top: 30px; right: 40px; font-size: 40px; }
    .modal-lang-toggle { top: 30px; left: 40px; font-size: 15px; }

    .swiper-button-next, .swiper-button-prev { display: flex !important; width: 50px !important; height: 50px !important; background: rgba(0,0,0,0.5); border-radius: 50%; }
    .swiper-button-next::after, .swiper-button-prev::after { font-size: 26px !important; }

    .recap-container { flex: 1; min-height: 0; max-height: none; } 
    .visual-card-box { background: transparent; border: none; box-shadow: none; padding-top: 70px; }
    .recap-header { margin-bottom: 70px; } 
    .recap-title-sm { font-size: 28px; }
    
    .fixed-actions-area { max-width: 1200px; padding: 0 40px; }
    .recap-big { font-size: 70px; margin-bottom: 30px; }
    .recap-txt { font-size: 20px; }
    

    /* 리캡 카드 내부 PC 레이아웃 */
    .top3-layout { flex-direction: row; gap: 30px; align-items: flex-start; }
    .rank-1-col { flex: 1; }
    .rank-1-img-box { width: 220px; height: 220px; margin-bottom: 15px; } 
    .rank-others-col { flex: 1.1; gap: 15px; margin-top: 25px; } 
    .rank-row { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 15px; height: auto; align-items: center; }
    .rank-sm-img { width: 60px; height: 60px; flex-shrink: 0; }
    .rank-text-group { flex: 1; margin-left: 10px; overflow: visible; }
    .rank-name-simple { font-size: 18px; white-space: normal; word-break: keep-all; line-height: 1.3; }
    
    /* [수정됨] Category Best 레이아웃: 가로 배치(flex-row) + 자동 폭(width:auto) 적용 */
    .category-best-layout { 
        display: flex !important; /* Flex 확실하게 적용 */
        flex-direction: row !important; /* 가로 나열 강제 */
        flex-wrap: nowrap !important; /* 줄바꿈 금지 */
        gap: 30px; 
        max-width: 1000px; 
        align-items: stretch; /* 높이 동일 */
    }

    .cat-item { 
        flex: 1; /* 1:1:1 비율로 공간 차지 */
        width: auto !important;
        background: #111; 
        border: 1px solid #333; 
        border-radius: 20px; 
        padding: 30px 20px; 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        box-sizing: border-box; 
    }

    .cat-head-group { 
        text-align: center; 
        width: 100%; 
        border-bottom: 1px solid #333; 
        padding-bottom: 15px; 
        margin-bottom: 20px; 
        display: flex; 
        flex-direction: column; 
        justify-content: center; 
        height: auto; 
    }

    .cat-title { font-size: 22px; margin-bottom: 5px; }
    
    .cat-body { 
        flex: 1; 
        display: flex; 
        flex-direction: column; 
        text-align: center; 
        gap: 15px; 
        width: 100%; 
        justify-content: flex-start; 
    }

    .cat-img-box { width: 120px; height: 120px; margin-bottom: 5px; }
    .cat-info-group { align-items: center; text-align: center; gap: 8px; width: 100%; margin-bottom: 15px; }
    .cat-artist-name { font-size: 20px; white-space: normal; }
    .cat-stats-row { margin-top: auto; flex-direction: row; justify-content: center; gap: 5px; width: 100%; }
    .cat-song-name { margin-top: 5px; font-size: 16px; }
    .cat-total-badge { font-size: 12px; }
    .cat-vote-count { font-size: 18px; }

    .top5-layout { max-width: 1000px; gap: 60px; }
    .t5-r1-img-wrap { width: 140px; height: 140px; border-width: 4px; margin-bottom: 10px; }
    .t5-rank-badge-lg { width: 36px; height: 36px; font-size: 20px; top: -8px; left: -8px; }
    .t5-name-lg { font-size: 24px; margin-bottom: 5px; }
    .t5-score-lg { font-size: 18px; }
    .top5-others-grid { display: flex; flex-direction: row; justify-content: center; gap: 15px; }
    .t5-item-sm { flex: 0 0 auto; width: 140px; padding: 0; background: transparent; border: none; }
    .t5-img-box-sm { width: 80px; height: 80px; margin-bottom: 8px; }
    .t5-rank-overlay { font-size: 14px; padding: 4px 8px; border-bottom-right-radius: 10px; }
    .t5-name-sm { font-size: 15px; margin-bottom: 5px; }
    .t5-score-sm { font-size: 14px; }

    .quiz-top3-layout { max-width: 700px; gap: 10px; }
    .quiz-rank1-card { padding: 30px 110px; background: #111; border: 1px solid #333; }
    .quiz-rank1-card .q-img-wrap-common { width: 130px; height: 130px; margin-right: 30px; }
    .quiz-rank1-card .q-title-lg { font-size: 26px; margin-bottom: 10px; }
    .quiz-rank1-card .q-score-lg { font-size: 20px; }
    .quiz-list-item { width: 100%; padding: 20px 110px; background: transparent !important; border-bottom: 1px solid #333 !important; }
    .quiz-list-item .q-img-wrap-common { width: 80px; height: 80px; margin-right: 30px; margin-left: 50px; }
    .quiz-list-item .q-title-sm { font-size: 18px; margin-bottom: 5px; }
    .quiz-list-item .q-score-sm { font-size: 16px; }

    /* [추가] 차트 3단 분리 PC 스타일 */
    .chart-song-title { font-size: 1.5rem; margin-bottom: 6px; }
    .chart-artist-name { font-size: 1.1rem; margin-bottom: 8px; }

    /* [수정] 6페이지 차트 리스트 왼쪽 정렬 강제 (오른쪽 밀림 해결) */
    .rank-others-col .rank-text-group {
        align-items: flex-start !important; 
        text-align: left !important;        
        justify-content: center;            
    }
}

@media screen and (min-width: 768px) {
    br.mo-only {
        display: none;
    }
}

/* =========================================
   7페이지 퀴즈 페이지 디자인
   ========================================= */

/* 1. 이미지: 비율 유지하며 전체 다 보여주기 (잘림 방지) */
.quiz-rank1-card .q-img-wrap-common,
.quiz-list-item .q-img-wrap-common {
    background: #000;       
    border: 1px solid #333; 
    position: relative;     
}

.quiz-rank1-card .q-img-wrap-common img,
.quiz-list-item .q-img-wrap-common img {
    object-fit: contain !important; 
    width: 100%;
    height: 100%;
}

/* 2. 배지 공통 설정 (위치 고정) */
.micro-rank-1, .micro-rank-others {
    display: flex !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 99 !important;
    border-bottom-right-radius: 6px !important;
    justify-content: center;
    align-items: center;
    line-height: 1 !important; /* 줄간격 최소화 */
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    padding: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
}

/* 3. 1위 배지: 24px 강제 고정 */
.micro-rank-1 {
    width: 24px !important;
    height: 24px !important;
    font-size: 13px !important;
    background: #fff !important;
    color: #000 !important;
}

/* 4. 2,3위 배지: 20px 강제 고정 */
.micro-rank-others {
    width: 20px !important;
    height: 20px !important;
    font-size: 11px !important;
    background: rgba(255,255,255,0.9) !important;
    color: #000 !important;
}