/* ==================== 
   헤더 스타일
   ==================== */
.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: flex;
    flex-direction: column;
    gap: 10px;
}

.ad-multi-banner-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.ad-multi-banner-item {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 1px solid #2a2a2a;
    min-height: 70px; /* 100px → 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-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;
}

/* 상단 리더보드 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;
}

/* ==================== 
   반응형
   ==================== */
@media (max-width: 1200px) {
    .main-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar-left,
    .sidebar-right {
        display: none;
    }
    
    /* 멀티 배너 3개로 축소 */
    .ad-multi-banner-row {
        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) {
    .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);
    }
    
    /* 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) {
    .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: 80px;
    }
    
    /* 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;
    }
}
