@charset "utf-8";

/* ======================================================== */
/* 1. 디자인 기본 세팅 (리셋) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul, li {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ======================================================== */
/* 2. 바디 디자인 (★ 프리미엄 다크 블루 & 그린 에디션 적용!) */
body {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    background-color: #121418; 
    color: #E2E2E2; 
    line-height: 1.5; 
}

.wrap {
    background-color: #1A1D24; 
    max-width: 1600px !important; /* ★ 1600px로 더 넓게 확장 */
    margin: 0 auto !important;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4); 
    overflow: hidden;
}

/* ======================================================== */
/* 3. 사이트 상단 헤더 */
.header {
    background-color: #1A1D24;
    border-bottom: 1px solid #2B2F3A; 
}

.header-inner {
    display: flex;
    justify-content: space-between; /* 양 끝 정렬 (텔레그램-날짜) */
    align-items: center;
    position: relative; /* ★ 로고 중앙 배치의 기준점 */
    padding: 30px 15px; /* ★ 좌우 여백을 15px로 줄여 정렬 일치 */
    max-width: 1600px;
    margin: 0 auto;
}

.logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); /* ★ 정중앙 고정 */
    z-index: 10;
}

.logo-text-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.logo-text {
    font-size: 56px; 
    font-weight: 950; /* ★ 선명한 Black 폰트 */
    color: #FFFFFF;
    letter-spacing: 1.5px;
    line-height: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.logo-subtext {
    font-size: 13px;
    font-weight: 800;
    color: #00E5FF; 
    margin-top: 6px;
    letter-spacing: 6px; 
    text-transform: uppercase;
}

/* ★ 실시간 날짜 */
.datetime {
    font-size: 14px;
    font-weight: 700;
    color: #888888; 
    background-color: #242832; 
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid #363B48; 
}

/* 상단 텔레그램 바로가기 (고객 요청 심플 디자인) */
.tele-btn {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    background: transparent; /* 배경 제거 */
    padding: 0;
}

.tele-icon {
    width: 28px; /* ★ 아이콘 크기 확대 */
    height: 28px;
    margin-right: 10px;
    fill: #229ED9; /* ★ 텔레그램 공식 원형 파란색 아이덴티티 */
    filter: drop-shadow(0 2px 5px rgba(34, 158, 217, 0.3));
}

#tele-text {
    font-size: 19px; /* ★ 큼직한 폰트 */
    font-weight: 900; /* ★ 아주 두껍게! */
    color: #FFFFFF; /* 다크모드 가독성 최우선 */
    letter-spacing: -0.5px;
}

.tele-btn:hover {
    transform: scale(1.03); /* 아주 살짝만 커지는 효과 */
}

.tele-btn:hover #tele-text {
    color: #00E5FF; /* 호버 시 네온 시안으로 핵심 강조 */
}

.blind {
    position: absolute;
    width: 1px;
    height: 1px;
    clip: rect(0,0,0,0);
    overflow: hidden;
}

/* ★ 노출형 메뉴(Exposed Menu) 섹션 ★ */
.exposed-menu-section {
    background-color: #1A1D24;
    border-bottom: 5px solid #2B2F3A;
    padding: 25px 0; /* ★ 검색창이 사라졌으므로 여백 축소 */
}

.exposed-menu-inner {
    max-width: 1540px; /* 메인 콘텐츠 폭과 통일 */
    margin: 0 auto;
    padding: 0 40px;
}

.exposed-menu-list {
    display: flex;
    flex-wrap: nowrap; 
    justify-content: space-between; 
    gap: 30px; 
    margin-bottom: 0; /* 불필요 여백 제거 */
    overflow-x: auto; 
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}

/* Chrome 기반 브라우저 스크롤바 숨기기 */
.exposed-menu-list::-webkit-scrollbar {
    display: none;
}

.menu-link {
    font-size: 18px; /* 1줄 노출을 위한 최적화 */
    font-weight: 850;
    color: #999999;
    text-decoration: none;
    transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap; /* 텍스트 줄바꿈 절대 방지 */
}

/* PC 전용 호버 효과 */
@media screen and (min-width: 769px) {
    .menu-link:hover {
        color: #00E5FF;
        text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
        transform: translateY(-2px);
    }
}

/* 모바일 전용 터치 효과 */
@media screen and (max-width: 768px) {
    .menu-link:active {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

/* 통합 검색창 박스 (섹션 내 하단) */
.main-search-wrap-box {
    max-width: 600px;
    margin: 0 auto;
}

.main-search-form {
    display: flex;
    background-color: #242832;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 52px;
    overflow: hidden;
    transition: 0.3s;
}

.main-search-form:focus-within {
    border-color: #00E5FF;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.main-search-input {
    flex: 1;
    padding: 0 25px;
    border: none;
    background: transparent;
    color: #FFF;
    font-size: 15px;
    outline: none;
}

.main-search-btn {
    width: 70px;
    background: linear-gradient(90deg, #0088CC 0%, #00E5FF 100%);
    border: none;
    color: #FFF;
    font-size: 18px;
    cursor: pointer;
}

/* ======================================================== */
/* 4. 고정 네비게이션 메뉴바 & 통합 검색창 */
.nav-bar {
    background-color: #1A1D24; 
    border-bottom: 2px solid #2B2F3A;
    position: sticky; 
    top: 0; 
    z-index: 999;
}

.nav-bar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 왼쪽부터 차곡차곡 */
    gap: 35px; /* ★ 메뉴와 메뉴 사이의 간격을 시원하게 대폭 확장! */
    flex-wrap: nowrap !important;
    overflow: hidden; 
    white-space: nowrap !important; 
    flex: 1; 
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 40px;
    height: 56px !important;
}

/* 크롬/사파리 스크롤바 완전 차단 마법 */
.nav-bar ul::-webkit-scrollbar {
    display: none;
}

/* ======================================================== */
/* 우측 미니 통합 검색창 */
.nav-search-wrap {
    width: 250px;
    margin-left: 20px;
}
.nav-search-form {
    display: flex;
    position: relative;
    background-color: #2A2E39; 
    border-radius: 20px;
    border: 1px solid #363B48; 
    height: 36px;
    transition: 0.3s;
}
.nav-search-input {
    flex: 1;
    height: 100%;
    border: none;
    background: transparent; 
    padding: 0 15px;
    font-size: 13px;
    color: #FFFFFF;
    outline: none;
}
.nav-search-btn {
    width: 40px;
    height: 100%;
    border: none;
    background: linear-gradient(90deg, #00E5FF 0%, #0072FF 100%);
    color: #fff;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    font-size: 14px;
}

.nav-bar li a {
    display: block;
    padding: 0; /* gap으로 조절하므로 패딩 축소 */
    line-height: 56px;
    font-size: 18px; /* ★ 글자 크기를 조금 더 시원하게 키움! */
    font-weight: 800; /* ★ 조금 더 묵직하게(Bold) 처리 */
    color: #999999; 
    transition: 0.2s;
}

/* [완료] 11개 전체 카테고리 빅 카드 스타일 유지 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 넓어진 폭에 맞춰 4열로 시원하게 배치! */
    gap: 20px;
}

@media (max-width: 900px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}

.nav-bar li.active a, .nav-bar li a:hover {
    color: #00E5FF; /* 호버 시 네온 시안(민트/블루) 마법 발사! */
    border-bottom: 3px solid #00E5FF; 
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.3); /* 글자 자체에서도 빛이 남! */
}


/* ★ PC 버전에서는 사이드바 메뉴와 오버레이를 감춤 (정합성 오류 방지) */
.side-drawer, .menu-overlay {
    display: none !important;
}

/* ======================================================== */
/* 5. 모바일 전용 최적화 (768px 이하) */
@media screen and (max-width: 768px) {
    /* 모바일에서는 사이드바/오버레이 활성화 (flex/block 등으로 복구) */
    .side-drawer {
        display: flex !important;
    }
    .menu-overlay {
        display: block !important;
    }
    
    .wrap {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }
}

/* 5. 메인 본문 콘텐츠 대문 (히어로) */
.main-content {
    max-width: 1600px; /* 콘텐츠 영역 확장 */
    margin: 0 auto;
    padding: 10px 5px; /* ★ 좌우 패딩 최소화로 배너 꽉 채움 */
}

.hero-section {
    background-color: #20242D; 
    padding: 60px 40px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 50px;
}

.hero-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.point-color {
    /* 맑은 청록색(Cyan)으로 브랜드 통일! */
    color: #00E5FF; 
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.2); 
}

.hero-desc {
    font-size: 18px;
    color: #BBBBBB; 
    margin-bottom: 30px;
}

/* ======================================================== */
/* ★ 즐겨찾기 유도 안내 */
.bookmark-notice {
    text-align: right;
    margin-bottom: 8px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.bookmark-notice span {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(255, 215, 0, 0.1); 
    border-radius: 12px;
    color: #FFD700; 
    transition: 0.3s;
    cursor: pointer;
    animation: twinkle 2.5s infinite;
}

.bookmark-notice strong {
    color: #FFAA00; 
    font-weight: 800;
}

.bookmark-notice span:hover {
    animation: shakePulse 0.4s ease-in-out infinite;
    color: #FFB700;
    background-color: rgba(255, 215, 0, 0.2);
}

.bookmark-mobile {
    display: none !important; 
}

@keyframes twinkle {
    0%, 100% { opacity: 0.85; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-2px); }
}

@keyframes shakePulse {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-2deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(2deg); }
    100% { transform: rotate(0deg); }
}

/* ======================================================== */
/* 통합 검색 포털 */
.hero-search-wrap {
    max-width: 600px;
    margin: 0 auto;
}

.hero-search-form {
    display: flex;
    position: relative;
    background-color: #2A2E39; 
    border-radius: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); 
    border: 2px solid #363B48; 
    transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-search-form:hover {
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.15); /* 블루/그린 아우라! */
    transform: translateY(-4px);
    border: 2px solid rgba(0, 229, 255, 0.5); 
}

.hero-search-input {
    flex: 1;
    height: 64px;
    border: none;
    background: transparent; 
    padding: 0 30px;
    font-size: 17px;
    font-weight: 600;
    font-family: inherit;
    color: #EEEEEE; 
    outline: none;
}

.hero-search-input::placeholder {
    color: #777777; 
    font-weight: 500;
}

.hero-search-btn {
    width: 64px;
    height: 64px;
    background: linear-gradient(90deg, #00E5FF 0%, #0072FF 100%); /* 검색 버튼도 브랜드 컬러! */
    color: white;
    font-size: 22px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    margin: 0px; 
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 40px;
    border-bottom-right-radius: 40px;
}

.hero-search-btn:hover {
    background: linear-gradient(90deg, #33EFFF 0%, #3399FF 100%);
}

.hero-tags {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tag {
    font-size: 14px;
    font-weight: 700;
    color: #AAAAAA; 
    background-color: #242832; 
    padding: 10px 18px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid #363B48; 
    transition: 0.2s;
}

.hero-tag:hover {
    color: #FFFFFF; 
    border-color: #00E5FF; 
    background: linear-gradient(90deg, #00E5FF 0%, #0072FF 100%); /* 완전 통일! */
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
    transform: translateY(-2px);
}

/* ======================================================== */
/* ★ [신규탑재!] 최상단 메인 와이드 배너 구역 (가장 비싼 광고!) */
/* ======================================================== */
/* 6. 광고 배너 섹션 (그리드 & 반응형 시스템) */

.main-banner-section {
    margin-bottom: 5px !important;
}

.main-banner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* ★ 요청에 따라 상단은 2열(50%씩) 배치 */
    gap: 5px; /* ★ 배너 사이의 세로/가로 간격을 5px로 좁힘 */
    margin-bottom: 2px !important;
}

.main-banner-item {
    display: block;
    position: relative; /* 샤인 효과의 기준점 */
    overflow: hidden; /* 샤인 효과가 밖으로 나가지 않게 */
    border-radius: 4px; 
    background-color: #242832;
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-sizing: border-box;
}

/* ★ 프리미엄 샤인(Shine) 효과 레이어 */
.main-banner-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: 0.8s;
    pointer-events: none;
}

/* PC 전용 호버 효과 */
@media screen and (min-width: 769px) {
    .main-banner-item:hover {
        transform: scale(1.02); /* 살짝 커지는 효과 */
        box-shadow: 0 0 25px rgba(0, 229, 255, 0.6); /* 강한 네온 광채 */
        filter: brightness(1.15);
        z-index: 10;
        border: 2px solid #00E5FF; /* 테두리 포인트 */
    }

    .main-banner-item:hover::after {
        left: 150%; /* 마우스 올리면 광원이 쓱 지나감 */
    }
}

/* 모바일 전용 터치 효과 */
@media screen and (max-width: 768px) {
    .main-banner-item:active {
        transform: scale(0.97);
        filter: brightness(0.9);
    }
}

.main-banner-item img {
    width: 100%;
    aspect-ratio: 5 / 1; 
    object-fit: fill; /* ★ 텍스트가 짤리지 않게 이미지 전체를 강제로 영역에 맞춤 */
    display: block;
    border: none !important;
}

.banner-section {
    margin-bottom: 5px !important;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* ★ 요청에 따라 하단은 4열 배치 */
    gap: 5px; /* ★ 정보 밀도를 위해 간격을 5px로 좁힘 */
}

.banner-item {
    display: block;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background-color: #242832;
    transition: 0.4s;
}

/* ★ 서브 배너 샤인(Shine) 효과 레이어 */
.banner-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: 0.8s;
    pointer-events: none;
}

/* PC 전용 호버 효과 */
@media screen and (min-width: 769px) {
    .banner-item:hover {
        filter: brightness(1.1);
        transform: scale(1.02);
        box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
        border: 1px solid #00E5FF;
    }

    .banner-item:hover::after {
        left: 150%;
    }
}

/* 모바일 터치 효과 */
@media screen and (max-width: 768px) {
    .banner-item:active {
        transform: scale(0.97);
    }
}

.banner-item img {
    width: 100%;
    aspect-ratio: 5 / 1; 
    object-fit: fill; /* ★ 짤림 방지를 위한 전체 채우기 */
    display: block;
}

/* 햄버거 버튼 (기본 숨김) */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100;
}

.hamburger-btn span {
    width: 24px;
    height: 2px;
    background-color: #FFFFFF;
    border-radius: 2px;
    transition: 0.3s;
}

/* ★ 모바일 헤더 [요청 준수!] 절대/상대 좌표 레이아웃 (768px 이하) ★ */
@media screen and (max-width: 768px) {
    .wrap {
        max-width: 100% !important;
    }

    /* 헤더 컨테이너: 초극한 압축 상하 패딩 5px */
    .header-inner {
        position: relative;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding-top: 5px !important;    /* ★ 요청: 5px 고정 */
        padding-bottom: 5px !important; /* ★ 요청: 5px 고정 */
        margin: 0 !important;           /* ★ 요청: 여백 제거 */
        min-height: 50px !important;    /* 헤더 최소화 */
    }

    /* 1. 로고: 다시 화면 정중앙(Absolute Center)으로 배치 */
    .logo {
        position: absolute; 
        left: 50%; /* ★ 다시 정중앙으로 */
        top: 50%;
        transform: translate(-50%, -50%); /* 완벽한 중앙 박기 */
        z-index: 5;
        text-align: center; /* 다시 중앙 정렬 */
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .logo-text {
        font-size: 30px !important; /* 다시 화끈하게 키움 */
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
    }

    .logo-subtext {
        display: block !important;
        font-size: 8.5px !important;
        margin-top: -1px !important; /* 초밀착 */
        color: #00E5FF;
        letter-spacing: 1.5px; /* 중앙 정렬에 어울리는 자간 */
        text-align: center;
    }

    /* 햄버거 버튼 고도 조절 */
    .hamburger-btn {
        display: flex;
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* 2. 메뉴바와 배너 사이: 광속 배치 */
    .exposed-menu-section {
        margin: 0 !important;
        padding: 0 !important;
    }

    .exposed-menu-list {
        padding: 10px 15px !important; /* 가로 스크롤 영역도 상하 좁힘 */
    }

    /* 3. 배너: 1줄에 1개씩(1fr) + 2px 세로 간격 + 화면 꽉 채움 */
    .main-content {
        padding: 0 !important;
        margin: 0 !important;
    }

    .main-banner-section {
        display: block !important; /* 추천사이트만 노출 */
        margin: 0 !important;
        padding: 0 !important;
    }

    .banner-section {
        display: none !important; /* 일반 광고배너 노출 금지 */
    }

    .main-banner-grid, .banner-grid {
        display: grid !important;
        grid-template-columns: 1fr !important; /* ★ 한 줄에 하나씩(1fr) */
        gap: 2px !important; /* ★ 배너 간격 2px */
        margin: 0 !important;
        padding: 0 !important;
    }

    .main-banner-item, .banner-item {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }
    
    /* 4. 카테고리 박스: 극한의 5px 마진 + 8px 패딩 */
    .category-grid {
        grid-template-columns: 1fr;
        gap: 5px !important; /* ★ 요청: 간격 5px */
        padding: 0 4px !important;
    }

    .category-card {
        padding: 8px 15px !important; /* ★ 내부 여백 슬림화 */
        margin-bottom: 0 !important; /* 그리드 gap으로 대체 */
        cursor: pointer;
        overflow: hidden;
        border-radius: 4px;
        background-color: rgba(26, 29, 36, 0.95);
    }

    .category-title a {
        gap: 4px !important;
        font-size: 16px !important;
    }

    .category-card.active .category-title-wrap {
        margin-bottom: 5px !important;
        padding-bottom: 3px !important;
    }

    .category-list li {
        padding: 5px 0 !important; /* 리스트도 초소형화 */
        font-size: 14px !important;
    }

    /* 사이드바 전용 문의 버튼 스타일 유지 */
    .drawer-tele-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background-color: #0088CC;
        color: #FFFFFF;
        padding: 15px;
        border-radius: 12px;
        font-weight: 800;
        font-size: 16px;
        margin-bottom: 30px;
        text-decoration: none;
    }

    .drawer-tele-btn:active {
        transform: scale(0.96);
    }

    .drawer-tele-icon {
        width: 22px;
        height: 22px;
    }

    /* 사이드바 카테고리 리스트 */
    .drawer-category-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .drawer-category-item {
        border-bottom: 1px solid #2B2F3A;
    }

    .drawer-category-item:last-child {
        border-bottom: none;
    }

    .drawer-category-item a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 18px 5px;
        color: #BBBBBB;
        text-decoration: none;
        font-size: 15px;
        font-weight: 600;
        transition: 0.2s;
    }

    .drawer-category-item a::after {
        content: '>'; /* 화살표 아이콘 대체 */
        font-size: 14px;
        color: #555555;
        font-weight: 400;
    }

    .drawer-category-item a:active {
        background-color: rgba(255, 255, 255, 0.03);
        color: #00E5FF;
    }

    .drawer-category-item a:active::after {
        color: #00E5FF;
    }

    /* 2. 텔레그램: 햄버거와 겹침 방지를 위해 헤더에서 완전 제거 */
    .tele-btn-wrap, .tele-contact {
        display: none !important;
    }

    /* 3. 햄버거 버튼: 클릭 가로챔 방지 및 최상단 배치 */
    .hamburger-btn {
        display: flex !important;
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10000 !important; /* 그 어떤 요소보다 위에 */
        cursor: pointer !important;
        pointer-events: auto !important;
    }

    .hamburger-btn span {
        background-color: #FFFFFF !important;
    }

    /* 사이드바 오버레이 */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(5px);
        z-index: 11000 !important;
        opacity: 0;
        pointer-events: none;
        transition: 0.3s;
    }

    .menu-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    /* 사이드바 (Drawer) */
    .side-drawer {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100%;
        background-color: #16191F;
        z-index: 12000 !important;
        transition: 0.4s cubic-bezier(0.1, 0.7, 0.1, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
        display: flex;
        flex-direction: column;
    }

    .side-drawer.active {
        right: 0;
    }

    .drawer-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
        border-bottom: 2px solid #2B2F3A;
    }

    .drawer-title {
        font-size: 15px;
        font-weight: 900;
        color: #FFFFFF;
        letter-spacing: 2px;
    }

    .close-btn {
        background: transparent;
        border: none;
        color: #FFFFFF;
        font-size: 32px;
        cursor: pointer;
    }

    .drawer-content {
        padding: 15px;
        overflow-y: auto;
        flex: 1;
    }

    /* 4. 카테고리 그리드: 아코디언 스타일 적용 */
    .category-grid {
        grid-template-columns: 1fr;
        gap: 5px !important;
        padding: 0 4px !important;
    }

    .category-card {
        padding: 8px 18px !important;
        cursor: pointer;
        overflow: hidden;
        margin-bottom: 0 !important;
    }

    .category-title a {
        gap: 4px !important;
        font-size: 16px !important;
    }

    .category-title-wrap {
        margin-bottom: 0 !important;
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }

    .category-card.active .category-title-wrap {
        margin-bottom: 8px !important;
        padding-bottom: 6px !important; 
        border-bottom: 1px solid #2B2F3A !important;
    }

    /* 아코디언 내용 */
    .category-list {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: 0.3s;
    }

    .category-card.active .category-list {
        max-height: 500px;
        opacity: 1;
    }

    /* 시계 숨김 */
    .datetime {
        display: none !important;
    }
}

/* ======================================================== */
/* 6. 카테고리 종합 리스트! */
.category-section {
    margin-top: 50px;
    padding-bottom: 50px; 
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.category-card {
    background-color: #1A1D24; /* 아주 연한 배경색 */
    border: 1px solid #2B2F3A; /* 얇은 테두리 */
    border-radius: 12px;
    padding: 15px 25px; /* ★ 상하 패딩 25px -> 15px로 축소 */
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.category-card:hover {
    border-color: #00E5FF; /* 호버 시 네온 테두리 */
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.1);
}

.category-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px; /* ★ 12px -> 5px로 대폭 축소 */
    padding-bottom: 3px; /* ★ 8px -> 3px로 대폭 축소 */
    border-bottom: 1px solid #2B2F3A;
}

.category-title {
    font-size: 20px;
    font-weight: 800;
}

.category-title a {
    display: flex;
    align-items: center;
    gap: 8px; /* 아이콘과 텍스트 사이 간격 */
    color: #FFFFFF;
}

/* ==========================================
   ★ [정밀 보정] 배너 존: 10px 간격 + 4:1 고정 비율 + 입체 디자인 ★
   ========================================== */

/* 1. 상단 메인 와이드 배너 (2열) */
#main-banner-container.main-banner-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;                             /* ★ 요청: 8px 여백 */
    margin-bottom: 8px !important;
    padding: 0 5px !important;
}

/* 2. 하단 일반 광고 배너 (4열) */
#banner-container.banner-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;                             /* ★ 요청: 8px 여백 */
    margin-bottom: 20px !important;
    padding: 0 5px !important;
}

/* 3. 개별 배너 아이템 및 이미지 가공 */
.main-banner-item, .banner-item {
    display: block !important;
    background-color: #000 !important;
    border: 1px solid #333 !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3) !important;
    border-radius: 4px !important;                   /* ★ 요청: 4px 모서리 */
    overflow: hidden !important;
    aspect-ratio: 6 / 1 !important;
    transition: transform 0.2s ease-in-out !important;
}

.main-banner-item:hover, .banner-item:hover {
    transform: translateY(-3px) !important;
    border-color: #00E5FF !important;                /* 호버 시 포인트 컬러 */
}

.main-banner-item img, .banner-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;                     /* ★ 요청: 잘리지 않게(또는 채우기) */
    display: block !important;
}

/* 4. 모바일 대응 (768px 이하) */
@media screen and (max-width: 768px) {
    #main-banner-container.main-banner-grid,
    #banner-container.banner-grid {
        grid-template-columns: 1fr !important;       /* 모바일 1열 */
        gap: 10px !important;
    }
    
    .main-banner-item, .banner-item {
        aspect-ratio: 6 / 1 !important;              /* 모바일에서도 비율 유지 */
    }
}

/* ★ 클릭을 유도하는 '더보기' 버튼 스타일 */
.view-all-btn {
    font-size: 13px;
    color: #00E5FF;
    background-color: #242832; /* 배경색이 있는 버튼 스타일 */
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid #363B48;
    font-weight: 700;
    transition: 0.2s;
}

.view-all-btn:hover {
    background-color: #00E5FF;
    color: #000000;
} /* 네온 블루! */

/* [추가] 모바일/PC 공통 클릭 피드백 (Active) */
.category-card:active, .detail-card:active, .visit-btn:active, .tele-btn:active, .drawer-tele-btn:active, .view-all-btn:active {
    transform: scale(0.98) !important;
    transition: transform 0.1s ease-out;
}

/* [추가] 여백 다이어트 마스터 (압축 레이아웃) */
.header, .exposed-menu-section, .main-banner-section, .banner-section, .category-section, .category-header-info, .detail-grid-section {
    margin-top: 5px !important;
    margin-bottom: 5px !important;
}

.wrap {
    min-height: 0 !important; /* 공간 낭비 제거 */
}

/* [상세 페이지] 카드 그리드 고도화 (PC: 5열, Mobile: 2열) */
.detail-card-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* PC 5열 */
    gap: 12px;
    padding: 10px;
}

.detail-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 15px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: 0.3s;
    border: 1px solid #EAEAEA;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #FFD700;
    color: #000;
    font-weight: 900;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
}

.card-image-wrap {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-image-placeholder {
    width: 100%;
    height: 100%;
    background-color: #F0F2F5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: #A0AEC0;
}

.card-site-name {
    font-size: 15px;
    font-weight: 800;
    color: #2D3748;
    text-align: center;
}

/* 상세 모바일 2열 */
@media screen and (max-width: 768px) {
    .detail-card-grid {
        grid-template-columns: repeat(2, 1fr); /* 모바일 2열 */
        gap: 8px;
        padding: 5px;
    }
    
    .detail-card {
        padding: 12px 10px;
    }

    .card-image-wrap {
        width: 48px;
        height: 48px;
    }
    
    .card-site-name {
        font-size: 13px;
    }
}

/* ★ 텔레그램 문의 버튼 (세련된 블루 포인트) */
.tele-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.05); /* 은은한 배경 */
    border-radius: 30px;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tele-btn:hover {
    background-color: rgba(0, 136, 204, 0.15);
    border-color: #0088CC;
    box-shadow: 0 0 15px rgba(0, 136, 204, 0.3);
}

.tele-icon {
    width: 30px;
    height: 30px;
    color: #0088CC; /* 텔레그램 오리지널 블루! */
    filter: drop-shadow(0 0 5px rgba(0, 136, 204, 0.4));
}

#tele-text {
    font-size: 17px;
    font-weight: 850; /* ★ 이미지처럼 아주 굵고 선명하게 */
    color: #FFFFFF;
    letter-spacing: -0.5px;
}

/* 더보기 버튼 */
.view-all-btn {
    font-size: 13px;
    font-weight: 800;
    color: #999999;
    background-color: #1A1D24; 
    padding: 6px 14px;
    border-radius: 6px;
    transition: 0.2s;
    border: 1px solid #2B2F3A; 
}

.view-all-btn:hover {
    background: linear-gradient(90deg, #00E5FF 0%, #0072FF 100%); 
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(0, 229, 255, 0.2);
}

.category-list li {
    display: flex;
    align-items: center;
    padding: 8px 0; /* ★ 12px -> 8px로 축소 */
    border-bottom: 1px solid #232731;
}

.category-list li:last-child {
    margin-bottom: 0;
}

.list-rank {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 26px;
    height: 26px;
    background-color: #1A1D24; 
    color: #00E5FF; /* 랭킹 숫자도 네온 스카이! */
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    margin-right: 14px;
}

.category-list a {
    font-size: 15px;
    color: #BBBBBB; 
    font-weight: 500;
    transition: 0.2s;
    flex: 1;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.category-list a:hover {
    color: #00E5FF; 
    font-weight: 700;
    text-decoration: underline;
}

/* ======================================================== */
/* 7. 푸터(footer) */
.footer {
    text-align: center;
    padding: 70px 20px;
    background-color: #1A1D24; 
    border-top: 1px solid #2B2F3A; 
    color: #777777; 
    font-size: 14px;
    line-height: 1.8;
}

/* ======================================================== */
/* 9. 카테고리 상세 페이지 카드 그리드 (Premium Style) */
.detail-card-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* PC: 1줄에 5개 */
    gap: 20px;
    margin-bottom: 50px;
}

.detail-card {
    display: block;
    position: relative;
    background-color: #1A1D24;
    border: 1px solid #2B2F3A;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.detail-card:hover {
    transform: translateY(-8px);
    border-color: #00E5FF;
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.15);
}

/* 상단 로고 이미지 영역 (16:9) */
.card-image-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #FFFFFF; /* 이미지 대비를 위해 흰색 배경 (샘플 1번 특징) */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 15px; /* 로고 여백 */
}

.card-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* 이미지 찌그러짐 방지 */
}

/* 하단 사이트 이름 영역 */
.card-info-wrap {
    padding: 12px;
    background-color: #242832; /* 약간 더 밝은 배경 */
    text-align: center;
    border-top: 1px solid #2B2F3A;
}

.card-site-name {
    display: block;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 좌측 상단 순위 배지 */
.card-rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%); /* 금색 랭킹 스타일 */
    color: #000000;
    font-size: 11px;
    font-weight: 900;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* 모바일 전용 (2열 배치) */
@media screen and (max-width: 768px) {
    .detail-card-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* 모바일: 1줄에 2개 */
        gap: 10px !important;
        padding: 0 5px;
    }

    .card-site-name {
        font-size: 13px;
    }
    
    .card-image-wrap {
        padding: 10px;
    }
}
/* 10. 상단 광고 배너 그리드 시스템 */
.top-ad-banners-wrapper {
    width: 100%;
    margin: 0 0 20px 0; /* ★ 하단 20px 여백 추가 */
    padding: 0;
}

.top-ad-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px; /* ★ 메인 페이지 배너들과 동일하게 5px로 수정 */
    padding: 0;
}

.ad-item {
    display: block;
    width: 100%;
    overflow: hidden;
    background-color: #242832; /* ★ 배경색 추가 */
    border-radius: 4px; /* ★ 메인과 동일하게 둥근 모서리 적용 */
}

.ad-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ad-item:hover img {
    transform: scale(1.02);
}

.ad-item.large {
    grid-column: span 2;
    aspect-ratio: 16 / 3.5; /* ★ 대형 배너는 가로로 길게 */
}

.ad-item.small {
    aspect-ratio: 16 / 7; /* ★ 소형 배너는 절반 크기 */
}

/* 모바일 호환성 조절 */
@media screen and (max-width: 768px) {
    .top-ad-grid {
        grid-template-columns: repeat(2, 1fr); /* 모바일에선 가로 2개씩 */
    }
    .ad-item.large, .ad-item.small {
        grid-column: span 1;
        aspect-ratio: 16 / 9; /* 적절한 16:9 비율로 일관성있게 */
    }
}

/* ======================================================== */
/* 11. 푸터(Footer) 영역 디자인 최적화 */
/* ======================================================== */
/* ======================================================== */
/* 11. 푸터(Footer) 영역 디자인 최적화 (슬림 & 깔끔 버전) */
/* ======================================================== */
.footer {
    background-color: #0F1116; /* 진한 검은색 */
    color: #aaaaaa;
    padding: 25px 0 15px; /* 위아래 여백 대폭 축소 */
    border-top: 1px solid #333;
    margin-top: 40px; /* 상단 여백 축소 */
}

.footer-inner {
    max-width: 1000px; /* 폭을 1000px로 제한하여 중앙 집중 */
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 80px; /* 두 섹션이 중앙으로 모여 보이도록 적정 간격 설정 */
    margin-bottom: 15px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-size: 19px; /* 로고 크기 축소 */
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.footer-desc {
    line-height: 1.5;
    font-size: 12.5px; /* 폰트 축소 */
    word-break: keep-all;
}

.footer-title {
    font-size: 14px; /* 제목 크기 축소 */
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 4px; /* 간격 압축 */
}

.footer-links a {
    color: #aaaaaa;
    text-decoration: none;
    font-size: 12.5px;
    transition: 0.2s;
}

.footer-links a:hover {
    color: #00E5FF;
}

.footer-contact p {
    margin-bottom: 6px;
    font-size: 12.5px;
}

.tele-id {
    color: #00E5FF;
    font-weight: 800;
    text-decoration: none;
    font-size: 13px; /* 버튼 크기 축소 */
    display: inline-block;
    padding: 4px 10px;
    background-color: rgba(0, 229, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.contact-desc {
    font-size: 12px;
    opacity: 0.6;
    margin-top: 4px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px; /* 여백 최소화 */
}

.copyright {
    font-size: 11px;
    color: #666666;
    margin-bottom: 2px;
}

.disclaimer {
    font-size: 10px; /* 아주 작게 */
    color: #444444;
}

/* 모바일 슬림화 (768px 이하 대응) */
@media screen and (max-width: 768px) {
    .footer {
        padding: 20px 10px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    /* 모바일 폰트 12px 고정 및 슬림화 */
    .footer-desc, .footer-links a, .footer-contact p, .tele-id, .copyright {
        font-size: 12px !important;
    }
    .footer-title {
        margin-bottom: 6px;
    }
}
