/* ==================== 
   í—¤ë” ìŠ¤íƒ€ì¼
   ==================== */
.site-header {
    background-color: #0f0f0f;
    border-bottom: 1px solid #222;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ff0844;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 8, 68, 0.5),
                 0 0 20px rgba(255, 8, 68, 0.3),
                 0 0 30px rgba(255, 8, 68, 0.2);
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from {
        text-shadow: 0 0 10px rgba(255, 8, 68, 0.5),
                     0 0 20px rgba(255, 8, 68, 0.3);
    }
    to {
        text-shadow: 0 0 15px rgba(255, 8, 68, 0.7),
                     0 0 30px rgba(255, 8, 68, 0.5),
                     0 0 45px rgba(255, 8, 68, 0.3);
    }
}

.site-logo:hover {
    color: #ff4466;
    text-shadow: 0 0 20px rgba(255, 8, 68, 0.8),
                 0 0 40px rgba(255, 8, 68, 0.6),
                 0 0 60px rgba(255, 8, 68, 0.4);
}

.header-menu {
    color: #999;
    font-size: 0.95rem;
}

/* ==================== 
   ë°°ë„ˆ ê´‘ê³  êµ¬ì—­
   ==================== */

/* ìƒë‹¨ ë©€í‹° ë°°ë„ˆ (2ì¤„ x 4ê°œ) */
.ad-multi-banner-wrapper {
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* [2026-06-17] PC 4열. 직배너+광고문의만 흐름(빈칸 미렌더) */
    gap: 10px;
}

/* [2026-06-17] 행 래퍼 폐지(PHP가 아이템을 래퍼 직속으로 출력). 잔존 시에도 그리드 흐름 유지 */
.ad-multi-banner-row {
    display: contents;
}

.ad-multi-banner-item {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 1px solid #2a2a2a;
    min-height: 100px; /* [v2.29.0] CLS fix: 광고 300x100 매칭 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.85rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ad-multi-banner-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 8, 68, 0.1), transparent);
    transition: left 0.5s ease;
}

.ad-multi-banner-item:hover {
    background: linear-gradient(135deg, #1f1f1f 0%, #141414 100%);
    border-color: #ff0844;
    box-shadow: 0 0 15px rgba(255, 8, 68, 0.3);
}

.ad-multi-banner-item:hover::before {
    left: 100%;
}

/* 3ë“±ë¶„ ë°°ë„ˆ (240x90 x 3ê°œ) */
.ad-triple-banner-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.ad-triple-banner-item {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 1px solid #2a2a2a;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.85rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ad-triple-banner-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 8, 68, 0.1), transparent);
    transition: left 0.5s ease;
}

.ad-triple-banner-item:hover {
    background: linear-gradient(135deg, #1f1f1f 0%, #141414 100%);
    border-color: #ff0844;
    box-shadow: 0 0 15px rgba(255, 8, 68, 0.3);
}

.ad-triple-banner-item:hover::before {
    left: 100%;
}

/* ì½˜í…ì¸  í•˜ë‹¨ 4ë“±ë¶„ ë°°ë„ˆ (182x60 x 4ê°œ) */
.ad-content-bottom-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.ad-content-bottom-item {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 1px solid #2a2a2a;
    min-height: 60px; /* 90px â†’ 60px ìµœì í™” */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.85rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ad-content-bottom-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 8, 68, 0.1), transparent);
    transition: left 0.5s ease;
}

.ad-content-bottom-item:hover {
    background: linear-gradient(135deg, #1f1f1f 0%, #141414 100%);
    border-color: #ff0844;
    box-shadow: 0 0 15px rgba(255, 8, 68, 0.3);
}

.ad-content-bottom-item:hover::before {
    left: 100%;
}

/* ê°€ë¡œ ê¸´ ë°°ë„ˆ (1200x100) - ì‚­ì œë¨ */

/* í‘¸í„° ìµœì  5ê°œ ë°°ë„ˆ (3+2 êµ¬ì„±) */
.ad-footer-optimal-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.ad-footer-row {
    display: grid;
    gap: 15px;
}

.ad-footer-row:first-child {
    grid-template-columns: repeat(3, 1fr); /* 1ì¤„: 3ê°œ */
}

.ad-footer-row:last-child {
    grid-template-columns: repeat(2, 1fr); /* 2ì¤„: 2ê°œ */
}

.ad-footer-item,
.ad-footer-item-large {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 1px solid #2a2a2a;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.85rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ad-footer-item::before,
.ad-footer-item-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 8, 68, 0.1), transparent);
    transition: left 0.5s ease;
}

.ad-footer-item:hover,
.ad-footer-item-large:hover {
    background: linear-gradient(135deg, #1f1f1f 0%, #141414 100%);
    border-color: #ff0844;
    box-shadow: 0 0 15px rgba(255, 8, 68, 0.3);
}

.ad-footer-item:hover::before,
.ad-footer-item-large:hover::before {
    left: 100%;
}

.ad-banner {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.85rem;
    margin: 20px 0;
    min-height: 90px;
    overflow: hidden; /* [v2.29.0] CLS fix */
}

/* ìƒë‹¨ ë¦¬ë”ë³´ë“œ 728x90 */
.ad-top-leaderboard {
    min-height: 90px;
    margin: 20px auto;
}

/* ì‚¬ì´ë“œë°” ë°°ë„ˆ 160x600 */
.ad-sidebar {
    min-height: 600px;
    margin-bottom: 20px;
    /* sticky ì œê±° - ìŠ¤í¬ë¡¤ ë”°ë¼ì˜¤ì§€ ì•ŠìŒ */
}

/* ì½˜í…ì¸  í•˜ë‹¨ 728x90 */
.ad-bottom-leaderboard {
    min-height: 90px;
    margin: 30px auto;
}

/* í‘¸í„° ìœ„ 468x60 */
.ad-footer-banner {
    min-height: 60px;
    margin: 20px auto;
}

/* ë„¤ì´í‹°ë¸Œ ê´‘ê³  (ëž­í‚¹ ì¤‘ê°„ ì‚½ìž…) */
.ad-native {
    background-color: #151515;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    color: #888;
}

/* ==================== 
   ë©”ì¸ ë ˆì´ì•„ì›ƒ
   ==================== */
.main-content-wrapper {
    display: grid;
    grid-template-columns: 160px 1fr 160px;
    gap: 20px;
    margin: 30px 0;
}

.sidebar-left,
.sidebar-right {
    position: relative;
}

.main-ranking-area {
    background-color: #0f0f0f;
    border-radius: 12px;
    padding: 30px;
}

/* ==================== 
   ëž­í‚¹ í—¤ë”
   ==================== */
.ranking-header {
    text-align: center;
    margin-bottom: 30px;
}

.ranking-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ff0844, #ff4466, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.ranking-subtitle {
    font-size: 1rem;
    color: #999;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fire-emoji {
    animation: fireFlicker 1.5s ease-in-out infinite;
}

@keyframes fireFlicker {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-5deg); }
    50% { transform: scale(1.15) rotate(5deg); }
    75% { transform: scale(1.05) rotate(-3deg); }
}

/* ==================== 
   íƒ­ ë©”ë‰´
   ==================== */
.ranking-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tab-button {
    background-color: #1a1a1a;
    color: #999;
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background-color: #252525;
    color: #fff;
    border-color: #3a3a3a;
}

.tab-button.active {
    background: linear-gradient(135deg, #ff0844, #ff4466);
    color: #fff;
    border-color: #ff0844;
    box-shadow: 0 4px 15px rgba(255, 8, 68, 0.4);
    transform: translateY(-2px);
}

/* ==================== 
   ì¹´í…Œê³ ë¦¬ í•„í„°
   ==================== */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-button {
    background-color: #1a1a1a;
    color: #999;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 8px 18px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-button:hover {
    background-color: #252525;
    color: #fff;
}

.category-button.active {
    background-color: #2a2a2a;
    color: #ff4466;
    border-color: #ff4466;
}

/* ==================== 
   ëž­í‚¹ ë¦¬ìŠ¤íŠ¸
   ==================== */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ranking-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.ranking-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 8, 68, 0.05), transparent);
    transition: left 0.5s ease;
}

.ranking-card:hover {
    background: linear-gradient(135deg, #1f1f1f 0%, #141414 100%);
    border-color: #ff0844;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 8, 68, 0.3),
                0 0 20px rgba(255, 8, 68, 0.2);
}

.ranking-card:hover::before {
    left: 100%;
}

/* ìˆœìœ„ ë±ƒì§€ */
.rank-badge {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    background-color: #2a2a2a;
    color: #999;
}

/* 1ìœ„ ê¸ˆìƒ‰ + ì™•ê´€ */
.rank-badge.rank-1 {
    background: linear-gradient(135deg, #ffd700, #ffed4e, #ffd700);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6),
                0 0 40px rgba(255, 215, 0, 0.4);
    animation: crownGlow 2s ease-in-out infinite;
}

@keyframes crownGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6),
                    0 0 40px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8),
                    0 0 60px rgba(255, 215, 0, 0.6);
    }
}

/* 2ìœ„ ì€ìƒ‰ */
.rank-badge.rank-2 {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #000;
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.4);
}

/* 3ìœ„ ë™ìƒ‰ */
.rank-badge.rank-3 {
    background: linear-gradient(135deg, #cd7f32, #e6a45a);
    color: #000;
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.4);
}

/* ì¸ë„¤ì¼ */
.rank-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background-color: #0a0a0a;
}

.rank-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-thumbnail .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff0844, #ff4466);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(255, 8, 68, 0.6);
    animation: playPulse 2s ease-in-out infinite;
}

@keyframes playPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 20px rgba(255, 8, 68, 0.6);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 30px rgba(255, 8, 68, 0.8);
    }
}

.ranking-card:hover .play-icon {
    animation: playPulse 1s ease-in-out infinite;
}

/* ì½˜í…ì¸  ì •ë³´ */
.rank-info {
    flex: 1;
    min-width: 0;
}

.rank-title {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.rank-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: #888;
}

.rank-reactions {
    display: flex;
    gap: 8px;
}

.rank-reactions span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rank-clicks {
    color: #ff0844;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 8, 68, 0.5);
}

/* ==================== 
   ì‚¬ì´ë“œë°” ìœ„ì ¯
   ==================== */
.sidebar-widget {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2a2a2a;
}

.trending-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    background-color: #252525;
    color: #ccc;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: linear-gradient(135deg, #ff0844, #ff4466);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 8, 68, 0.4);
}

/* ==================== 
   íŽ˜ì´ì§€ ì½˜í…ì¸  ìŠ¤íƒ€ì¼
   ==================== */
.page-content-area {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background-color: #0f0f0f;
    border-radius: 12px;
    border: 1px solid #1a1a1a;
}

.page-article .page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ff0844;
}

.page-article .page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #ff0844, #ff4466);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-article .entry-content {
    color: #ccc;
    line-height: 1.8;
}

.page-article .entry-content h2 {
    font-size: 1.5rem;
    color: #fff;
    margin: 35px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2a2a2a;
}

.page-article .entry-content h3 {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin: 25px 0 12px;
}

.page-article .entry-content h4 {
    font-size: 1.05rem;
    color: #ccc;
    margin: 20px 0 10px;
}

.page-article .entry-content p {
    margin-bottom: 14px;
    color: #bbb;
}

.page-article .entry-content ul,
.page-article .entry-content ol {
    margin: 12px 0 20px 20px;
    color: #bbb;
}

.page-article .entry-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.page-article .entry-content strong {
    color: #fff;
}

.page-article .entry-content a {
    color: #ff4466;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.page-article .entry-content a:hover {
    color: #ff6b6b;
    border-bottom-color: #ff6b6b;
}

.page-article .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.page-article .entry-content table th {
    background-color: #1a1a1a;
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    border: 1px solid #2a2a2a;
    font-weight: 600;
}

.page-article .entry-content table td {
    padding: 10px 16px;
    border: 1px solid #2a2a2a;
    color: #bbb;
}

.page-article .entry-content table tr:hover td {
    background-color: #151515;
}

/* ê³µì§€ì‚¬í•­ ìŠ¤íƒ€ì¼ */
.notice-entry {
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.notice-entry h3 {
    margin-top: 0 !important;
}

.notice-date,
.update-date {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

/* ì—…ë°ì´íŠ¸ ë¡œê·¸ */
.update-entry {
    border-left: 3px solid #ff0844;
    padding-left: 20px;
    margin: 20px 0;
}

/* FAQ ìŠ¤íƒ€ì¼ */
.faq-item {
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: #ff0844;
}

.faq-item h3 {
    color: #ff4466 !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    font-size: 1.05rem !important;
}

.faq-item p {
    margin-bottom: 0 !important;
}

/* ì—°ë½ì²˜ ì •ë³´ ë°•ìŠ¤ */
.contact-info-box {
    background: linear-gradient(135deg, #1a1a1a, #111);
    border: 1px solid #ff0844;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
}

.contact-info-box h3 {
    margin-top: 0 !important;
    color: #ff4466 !important;
}

/* ê²½ê³  ë°•ìŠ¤ */
.warning-box {
    background: linear-gradient(135deg, #2a1a1a, #1a0f0f);
    border: 1px solid #ff4444;
    border-radius: 8px;
    padding: 20px 25px;
    margin: 20px 0;
}

.warning-box p:first-child {
    color: #ff6666;
    font-size: 1.1rem;
}

/* ì»¤ë°ìˆœ ë°•ìŠ¤ */
.coming-soon-box {
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
    border: 2px dashed #2a2a2a;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
    text-align: center;
}

.coming-soon-box h3 {
    color: #ff4466 !important;
    font-size: 1.3rem !important;
}

/* ë¹ˆ ìƒíƒœ */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    background: #111;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
}

.empty-state p:first-child {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* ì¹´í…Œê³ ë¦¬ ê·¸ë¦¬ë“œ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.category-card {
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    border-color: #ff0844;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 8, 68, 0.2);
}

.category-card h3 {
    font-size: 1.3rem !important;
    margin: 0 0 8px !important;
    border-bottom: none !important;
}

.category-card p {
    font-size: 0.85rem;
    color: #888 !important;
    margin: 0 !important;
}

/* í…ìŠ¤íŠ¸ ë®¤íŠ¸ */
.text-muted {
    color: #666 !important;
    font-size: 0.9rem;
}

/* íŽ˜ì´ì§€ í‘¸í„° */
.page-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #2a2a2a;
}

.page-updated {
    color: #555;
    font-size: 0.8rem;
}

/* íƒœê·¸ í´ë¼ìš°ë“œ í”Œë ˆì´ìŠ¤í™€ë” */
.tag-cloud-placeholder {
    background: #111;
    border: 2px dashed #2a2a2a;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    color: #666;
}

/* íŽ˜ì´ì§€ ë°˜ì‘í˜• */
@media (max-width: 768px) {
    .page-content-area {
        margin: 20px auto;
        padding: 20px;
    }
    
    .page-article .page-title {
        font-size: 1.5rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .page-content-area {
        margin: 10px auto;
        padding: 15px;
        border-radius: 0;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== 
   í‘¸í„°
   ==================== */
.site-footer {
    background-color: #0f0f0f;
    border-top: 1px solid #222;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-menu-column h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}

.footer-menu-column ul {
    list-style: none;
}

.footer-menu-column ul li {
    margin-bottom: 10px;
}

.footer-menu-column ul li a {
    color: #888;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-menu-column ul li a:hover {
    color: #ff4466;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #222;
    color: #666;
    font-size: 0.85rem;
}

/* ====================
   제휴 사이트 배너 [v2.27.0]
   ==================== */
.partner-sites-section {
    margin: 30px 0;
    padding: 25px 0;
    border-top: 1px solid #222;
    text-align: center;
}

.partner-sites-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.partner-sites-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.partner-site-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #141414 100%);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 12px 20px;
    min-width: 160px;
    min-height: 60px;
    max-width: 240px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.partner-site-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 8, 68, 0.08), transparent);
    transition: left 0.5s ease;
}

.partner-site-item:hover {
    border-color: #ff0844;
    box-shadow: 0 0 15px rgba(255, 8, 68, 0.2);
    transform: translateY(-2px);
}

.partner-site-item:hover::before {
    left: 100%;
}

.partner-site-item img {
    max-width: 180px;
    max-height: 45px;
    object-fit: contain;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.partner-site-item:hover img {
    filter: brightness(1.1);
}

.partner-site-text,
.partner-site-fallback {
    color: #aaa;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.partner-site-item:hover .partner-site-text,
.partner-site-item:hover .partner-site-fallback {
    color: #ff4466;
}

/* ==================== 
   ë°˜ì‘í˜•
   ==================== */
@media (max-width: 1200px) {
    .main-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar-left,
    .sidebar-right {
        display: none;
    }
    
    /* ë©€í‹° ë°°ë„ˆ 3ê°œë¡œ ì¶•ì†Œ */
    .ad-multi-banner-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* 3ë“±ë¶„ ë°°ë„ˆ 2ê°œë¡œ ì¶•ì†Œ */
    .ad-triple-banner-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* ì½˜í…ì¸  í•˜ë‹¨ 4ë“±ë¶„ â†’ 3ê°œë¡œ */
    .ad-content-bottom-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* 모바일 그리드 와이드 확장 - 컨테이너 좌우 패딩 축소 */
    .container {
        padding: 0 8px;
    }
    
    .main-ranking-area {
        padding: 12px 0; /* 좌우 패딩 제거 → 그리드 최대 폭 확보 */
        border-radius: 0;
    }
    
    .ranking-title {
        font-size: 2rem;
    }
    
    .ranking-tabs {
        gap: 8px;
    }
    
    .tab-button {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .ranking-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rank-thumbnail {
        width: 100%;
        height: 180px;
    }
    
    .footer-menu {
        grid-template-columns: 1fr 1fr;
    }
    
    /* ë©€í‹° ë°°ë„ˆ 2ê°œë¡œ ì¶•ì†Œ */
    .ad-multi-banner-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* [v2.29.0] CLS fix: 롤링 JS 실행 전 첫 2행(4개)만 표시 */
    /* JS가 .bamtube-rolling 추가하면 이 규칙 무시됨 */
    .ad-multi-banner-wrapper:not(.bamtube-rolling) .ad-multi-banner-row:nth-child(n+3) {
        display: none;
    }
    .ad-multi-banner-wrapper {
        overflow: hidden;
    }
    
    /* 3ë“±ë¶„ ë°°ë„ˆ 1ê°œë¡œ (ì„¸ë¡œ) */
    .ad-triple-banner-wrapper {
        grid-template-columns: 1fr;
    }
    
    /* ì½˜í…ì¸  í•˜ë‹¨ â†’ 2ê°œë¡œ */
    .ad-content-bottom-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* í‘¸í„° ìµœì  ë°°ë„ˆ â†’ ê°ê° 2ê°œì”© */
    .ad-footer-row:first-child,
    .ad-footer-row:last-child {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    /* 소형 화면 컨테이너 패딩 최소화 */
    .container {
        padding: 0 5px;
    }
    
    .main-ranking-area {
        padding: 8px 0; /* 좌우 패딩 제거 */
    }
    
    .site-logo {
        font-size: 1.4rem;
    }
    
    .ranking-title {
        font-size: 1.6rem;
    }
    
    .category-filter {
        gap: 6px;
    }
    
    .category-button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .footer-menu {
        grid-template-columns: 1fr;
    }
    
    /* ë©€í‹° ë°°ë„ˆ 1ê°œë¡œ ì¶•ì†Œ (ì„¸ë¡œ ë°°ì¹˜) */
    .ad-multi-banner-row {
        grid-template-columns: 1fr;
    }
    
    .ad-multi-banner-item {
        min-height: 100px; /* [v2.29.0] CLS fix */
    }
    
    /* 3ë“±ë¶„ ë°°ë„ˆë„ 1ê°œë¡œ */
    .ad-triple-banner-wrapper {
        grid-template-columns: 1fr;
    }
    
    .ad-triple-banner-item {
        min-height: 70px;
    }
    
    /* ì½˜í…ì¸  í•˜ë‹¨ â†’ 1ê°œë¡œ (ì„¸ë¡œ) */
    .ad-content-bottom-wrapper {
        grid-template-columns: 1fr;
    }
    
    .ad-content-bottom-item {
        min-height: 70px;
    }
    
    /* ê°€ë¡œ ë°°ë„ˆ ë” ìž‘ê²Œ - ì‚­ì œë¨ */
    
    /* í‘¸í„° ìµœì  ë°°ë„ˆ â†’ 2+2 êµ¬ì„± */
    .ad-footer-row:first-child,
    .ad-footer-row:last-child {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ad-footer-item,
    .ad-footer-item-large {
        min-height: 60px;
    }
}
/* ====================
   롤링 배너 시스템 (ChatGPT 솔루션)
   ==================== */

/* 상단 롤링 배너 컨테이너 - 높이 고정 필수! */
.top-banner-rolling {
    position: relative;
    width: 100%;
    height: 120px; /* 배너 크기에 맞춤 */
    overflow: hidden;
    margin: 20px 0;
    background: #0a0a0a;
}

/* 배너 아이템 - 절대 위치 */
.top-banner-rolling .banner-item {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 활성 배너 표시 */
.top-banner-rolling .banner-item.active {
    opacity: 1;
}

/* 배너 내부 링크/이미지 */
.top-banner-rolling .banner-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.top-banner-rolling .banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 배너 플레이스홀더 (광고 없을 때) */
.top-banner-rolling .banner-item span {
    color: #666;
    font-size: 1.2rem;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .top-banner-rolling {
        height: 80px; /* 모바일에서 높이 축소 */
    }
}

@media (max-width: 480px) {
    .top-banner-rolling {
        height: 60px; /* 작은 화면에서 더 축소 */
    }
}
/* ====================
   PC 사이드바 Sticky + 크기 증가 (모바일 제외)
   ==================== */

/* 데스크탑만 적용 (769px 이상) */
@media (min-width: 769px) {
    
    /* 사이드바 너비 증가: 160px → 200px */
    .main-content-wrapper {
        grid-template-columns: 200px 1fr 200px;
        gap: 20px;
    }
    
    /* 사이드바 Sticky 설정 */
    .sidebar-left,
    .sidebar-right {
        position: sticky;
        top: 80px; /* 헤더 아래 여유 공간 */
        align-self: start; /* 상단 정렬 */
        max-height: calc(100vh - 100px); /* 화면 높이 - 여유 */
        overflow-y: auto; /* 배너가 많으면 스크롤 */
    }
    
    /* 스크롤바 스타일링 (다크 테마) */
    .sidebar-left::-webkit-scrollbar,
    .sidebar-right::-webkit-scrollbar {
        width: 6px;
    }
    
    .sidebar-left::-webkit-scrollbar-track,
    .sidebar-right::-webkit-scrollbar-track {
        background: #0a0a0a;
        border-radius: 3px;
    }
    
    .sidebar-left::-webkit-scrollbar-thumb,
    .sidebar-right::-webkit-scrollbar-thumb {
        background: #ff0844;
        border-radius: 3px;
    }
    
    .sidebar-left::-webkit-scrollbar-thumb:hover,
    .sidebar-right::-webkit-scrollbar-thumb:hover {
        background: #ff4466;
    }
    
    /* 사이드바 배너 크기 조정: 160x600 → 200x600 */
    .ad-sidebar {
        min-height: 600px;
        width: 100%;
    }
}

/* 큰 화면 (1400px 이상)에서 사이드바 더 크게 */
@media (min-width: 1400px) {
    .main-content-wrapper {
        grid-template-columns: 240px 1fr 240px;
        gap: 30px;
    }
    
    .sidebar-left,
    .sidebar-right {
        top: 100px; /* 더 넓은 여유 */
    }
}

/* 태블릿/모바일은 그대로 (768px 이하) */
@media (max-width: 768px) {
    /* 기존 레이아웃 유지 - sticky 없음 */
    .main-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar-left,
    .sidebar-right {
        position: relative !important;
        top: auto !important;
        max-height: none !important;
        overflow-y: visible !important;
    }
}

/* ====================
   제휴 사이트 전용 페이지 [v2.27.0]
   ==================== */
.partners-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.partners-page-header {
    text-align: center;
    margin-bottom: 40px;
}

.partners-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.partners-page-desc {
    color: #888;
    font-size: 1rem;
}

.partners-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 50px;
}

.partners-page-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 24px 16px 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.partners-page-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 8, 68, 0.06), transparent);
    transition: left 0.5s ease;
}

.partners-page-card:hover {
    border-color: #ff0844;
    box-shadow: 0 4px 20px rgba(255, 8, 68, 0.2);
    transform: translateY(-3px);
}

.partners-page-card:hover::before {
    left: 100%;
}

.partners-card-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    width: 100%;
}

.partners-card-inner img {
    max-width: 200px;
    max-height: 55px;
    object-fit: contain;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.partners-page-card:hover .partners-card-inner img {
    filter: brightness(1.15);
}

.partners-card-text,
.partners-card-fallback {
    color: #ccc;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partners-page-card:hover .partners-card-text,
.partners-page-card:hover .partners-card-fallback {
    color: #ff4466;
}

.partners-card-label {
    display: block;
    margin-top: 12px;
    color: #666;
    font-size: 0.8rem;
    text-align: center;
    transition: color 0.3s ease;
}

.partners-page-card:hover .partners-card-label {
    color: #aaa;
}

.partners-page-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1rem;
}

.partners-page-contact {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
    border: 1px solid #2a2a2a;
    border-radius: 12px;
}

.partners-page-contact h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 8px;
}

.partners-page-contact p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.partners-contact-btn {
    display: inline-block;
    background: linear-gradient(135deg, #0088cc, #229ED9);
    color: #fff;
    padding: 12px 28px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(34, 158, 217, 0.3);
}

.partners-contact-btn:hover {
    background: linear-gradient(135deg, #229ED9, #0088cc);
    box-shadow: 0 4px 12px rgba(34, 158, 217, 0.5);
    transform: translateY(-2px);
}

/* ====================
   제휴 사이트 반응형 [v2.27.0]
   ==================== */
@media (max-width: 768px) {
    .partner-sites-grid {
        gap: 10px;
    }
    
    .partner-site-item {
        min-width: 140px;
        padding: 10px 15px;
        min-height: 50px;
    }
    
    .partner-site-item img {
        max-width: 140px;
        max-height: 38px;
    }

    .partners-page {
        padding: 24px 12px 40px;
    }

    .partners-page-title {
        font-size: 1.5rem;
    }

    .partners-page-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .header-partners-link {
        font-size: 12px;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .partner-sites-grid {
        gap: 8px;
    }
    
    .partner-site-item {
        min-width: 120px;
        padding: 8px 12px;
        min-height: 45px;
        max-width: 48%;
        flex: 1 1 calc(50% - 8px);
    }
    
    .partner-site-item img {
        max-width: 110px;
        max-height: 32px;
    }
    
    .partner-site-text,
    .partner-site-fallback {
        font-size: 0.8rem;
    }

    .partners-page-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .partners-page-card {
        padding: 16px 10px 12px;
    }

    .partners-card-inner img {
        max-width: 130px;
        max-height: 40px;
    }

    .partners-card-text,
    .partners-card-fallback {
        font-size: 0.95rem;
    }

    .header-partners-link {
        font-size: 11px;
        padding: 4px 8px;
    }
}

/* ================================================================
   [v2.30.0] 검색 바
   ================================================================ */
.bamtube-search-wrapper {
    margin: 15px 0;
}

.bamtube-search-bar {
    display: flex;
    align-items: center;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 30px;
    padding: 8px 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.bamtube-search-bar:focus-within {
    border-color: #ff0844;
    box-shadow: 0 0 10px rgba(255, 8, 68, 0.2);
}

.bamtube-search-icon {
    color: #666;
    font-size: 14px;
    margin-right: 10px;
    flex-shrink: 0;
}

#bamtube-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #eee;
    font-size: 14px;
    padding: 4px 0;
}

#bamtube-search-input::placeholder {
    color: #555;
}

.bamtube-search-clear {
    background: none;
    border: none;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.2s;
    flex-shrink: 0;
}

.bamtube-search-clear:hover {
    color: #ff0844;
}

/* 검색 결과 정보 */
.bamtube-search-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
    padding: 10px 16px;
    background: rgba(255, 8, 68, 0.08);
    border: 1px solid rgba(255, 8, 68, 0.2);
    border-radius: 8px;
    color: #ccc;
    font-size: 14px;
}

#bamtube-search-query-text strong {
    color: #ff0844;
}

.bamtube-search-back {
    background: none;
    border: 1px solid #444;
    color: #aaa;
    padding: 5px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    white-space: nowrap;
}

.bamtube-search-back:hover {
    color: #ff0844;
    border-color: #ff0844;
}

/* 검색 모드일 때 탭/카테고리 숨김 */
.ranking-header.search-active .ranking-tabs,
.ranking-header.search-active .category-filter {
    display: none;
}

/* 모바일 대응 */
@media (max-width: 480px) {
    .bamtube-search-bar {
        padding: 6px 12px;
    }
    
    #bamtube-search-input {
        font-size: 13px;
    }
    
    .bamtube-search-info {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* ============================================================
   [2026-06-10] 상단 직배너 고정화 (롤링 제거)
   - 직배너(.filled)/광고문의(.inquiry): 이미지 꽉 채움
   - 모바일: 2열 고정 그리드, 아래로 스크롤
   - .program(광고프로그램)/.empty(빈칸): 모바일 숨김 (PC는 그대로)
   ============================================================ */
.ad-multi-banner-item.filled,
.ad-multi-banner-item.inquiry { padding: 0; overflow: hidden; }
.ad-multi-banner-item.filled a,
.ad-multi-banner-item.inquiry a { display: block; width: 100%; }
.ad-multi-banner-item.filled img { width: 100%; height: auto; display: block; }
.ad-inquiry-link {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    width: 100%; min-height: 100px; text-decoration: none;
    background: linear-gradient(135deg, #ff0844, #ff4466);
    color: #fff; font-weight: 800; border-radius: 6px;
}
.ad-inquiry-link img { width: 100%; height: auto; display: block; border-radius: 6px; }
.ad-inquiry-text { display: flex; flex-direction: column; line-height: 1.2; text-align: center; }
.ad-inquiry-text small { font-size: 10px; font-weight: 600; opacity: .85; margin-top: 3px; }

/* 태블릿(≤1200px): 롤링 없으므로 3행 이상도 펼쳐 노출(프로그램 광고 계속 표시) */
@media (max-width: 1200px) {
    .ad-multi-banner-wrapper:not(.bamtube-rolling) .ad-multi-banner-row:nth-child(n+3) { display: grid; }
}

/* 모바일(≤768px): 2열 고정 그리드 + 아래로 스크롤. 직배너/광고문의만 노출 */
@media (max-width: 768px) {
    .ad-multi-banner-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        overflow: visible !important;
        min-height: 0 !important;
    }
    .ad-multi-banner-row { display: contents !important; }          /* 행 래퍼 해제 → 전 아이템 한 그리드로 */
    .ad-multi-banner-item { display: flex !important; }             /* 슬라이더 잔재 display:none 무력화 */
    .ad-multi-banner-item.program,
    .ad-multi-banner-item.empty { display: none !important; }       /* 광고프로그램/빈칸 모바일 숨김 */
}

/* ============================================================
   [UI FIX 2026-09-09] 모바일 상단 직배너: 이미지로 꽉 채우기
   - 원인: .ad-multi-banner-item min-height:100px + 이미지 height:auto →
     2열 컬럼(≈196px)에서 3:1 배너가 65px밖에 안 돼 위아래 빈 공간
   - 아이템을 3:1 고정 비율 박스로, 이미지는 object-fit:cover로 채움.
     광고문의(.inquiry)도 같은 비율로 맞춤
   ============================================================ */
@media (max-width: 768px) {
    .ad-multi-banner-item.filled,
    .ad-multi-banner-item.inquiry {
        min-height: 0 !important;
        aspect-ratio: 3 / 1;
        background: #0f0f0f;
        border: 0;
        border-radius: 6px;
    }
    .ad-multi-banner-item.filled a,
    .ad-multi-banner-item.inquiry a { height: 100%; }
    .ad-multi-banner-item.filled img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    .ad-multi-banner-item.inquiry .ad-inquiry-link { min-height: 0; height: 100%; }
    .ad-multi-banner-item.inquiry .ad-inquiry-link img { height: 100%; object-fit: cover; }
}

/* [UI FIX 2026-09-09] 실시간 소개 문구: 단어 중간 줄바꿈('보/는 영상') 방지 */
.ranking-subtitle {
    word-break: keep-all;
    overflow-wrap: normal;
    flex-wrap: nowrap;
}
.ranking-subtitle .fire-emoji { flex: 0 0 auto; }
@media (max-width: 768px) {
    .ranking-subtitle { font-size: 0.9rem; gap: 6px; line-height: 1.45; padding: 0 4px; }
}
