@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");
iframe {max-width:100% !important;}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #111;
    background: #fff;
    word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; vertical-align: top; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
.sound_only {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    margin: -1px;
    padding: 0;
    border: 0;
}

#skip_to_container {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999;
}
#skip_to_container a {
    position: absolute;
    top: -9999px;
    left: 0;
    padding: 8px 16px;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
#skip_to_container a:focus {
    top: 0;
}

/* gnuboard popup layer */
#hd_pop {
    z-index: 1100;
    position: relative;
    margin: 0 auto;
    height: 0;
}
#hd_pop h2,
#hd_pop > .sound_only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    margin: -1px;
    padding: 0;
    border: 0;
}
#hd_pop:not(:has(.hd_pops)) {
    display: none !important;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
.hd_pops {
    position: absolute;
    z-index: 1100;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}
.hd_pops img {
    max-width: 100%;
    height: auto;
    vertical-align: top;
}
.hd_pops_con {
    overflow: auto;
    box-sizing: border-box;
    background: #fff;
}
.hd_pops_con p {
    margin: 0;
}
.hd_pops_footer {
    position: relative;
    padding: 0;
    background: #111;
    color: #fff;
    text-align: left;
}
.hd_pops_footer:after {
    display: block;
    visibility: hidden;
    clear: both;
    content: "";
}
#hd_pop .hd_pops_footer button {
    display: inline-block;
    padding: 12px 14px;
    border: 0;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    vertical-align: top;
}
#hd_pop .hd_pops_footer .hd_pops_reject {
    width: calc(100% - 88px);
    text-align: left;
    background: #111;
}
#hd_pop .hd_pops_footer .hd_pops_reject strong {
    font-weight: 700;
}
#hd_pop .hd_pops_footer .hd_pops_close {
    position: absolute;
    top: 0;
    right: 0;
    width: 88px;
    height: 100%;
    background: #333;
    text-align: center;
}
#hd_pop .hd_pops_footer .hd_pops_close:hover {
    background: #444;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* header */
#header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #eee;
}
#header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}
.h_left {
    display: flex;
    align-items: center;
    gap: 40px;
    flex: 1;
    min-width: 0;
}
.nav_area { flex: 1; min-width: 0; }
.h_logo a {
    display: block;
    line-height: 0;
}
.h_logo img {
    display: block;
    height: 36px;
    width: auto;
}
#header #gnb .dep1 {
    display: flex;
    align-items: center;
    gap: 36px;
}
#header #gnb .dep1 > li > a {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}
#header #gnb .dep1 > li > a:hover { color: #000; font-weight: 700; }
.h_util {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.h_company {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}
.h_company:hover { color: #000; font-weight: 600; }
.h_search {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #666;
}
.h_search:hover { color: #111; }
.h_search svg { width: 20px; height: 20px; }

.search_popup {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.search_popup.is_open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.search_popup_dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}
.search_popup_panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    padding: 40px 32px 32px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.search_popup_close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #666;
}
.search_popup_close:hover { color: #111; }
.search_popup_close svg { width: 20px; height: 20px; }
.search_popup_title {
    margin: 0 0 24px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #111;
}
.search_popup_field {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 6px 6px 18px;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #fafafa;
}
.search_popup_field:focus-within {
    border-color: #111;
    background: #fff;
}
.search_popup_field input {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: 0;
    background: transparent;
    font-size: 16px;
    color: #111;
    outline: none;
}
.search_popup_field input::placeholder { color: #aaa; }
.search_popup_submit {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #111;
    color: #fff;
}
.search_popup_submit svg { width: 18px; height: 18px; }
body.search_open { overflow: hidden; }

.h_sns { display: flex; gap: 8px; }
.h_sns a {
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 18px;
    line-height: 1;
}
.h_sns a:hover { color: #000; }
.nav_btn { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 4px; width: 28px; height: 28px; padding: 0; }
.nav_btn span { display: block; width: 18px; height: 2px; background: #111; border-radius: 1px; }

/* sections */
#main { padding: 20px 0 40px; }
.sec { margin-bottom: 64px; }
.sec_head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}
.sec_head h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.sec_badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

/* best */
.best_layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: start;
}
.best_main .thumb {
    display: block;
    aspect-ratio: 16/10;
    border-radius: 16px;
    overflow: hidden;
    background: #f0f0f0;
    margin-bottom: 16px;
}
.best_main .thumb img { width: 100%; height: 100%; object-fit: cover; }
.best_main .tit {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}
.best_main .desc,
.best_item .desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 6px;
}
.best_main .date { font-size: 13px; color: #999; }
.best_list { display: flex; flex-direction: column; gap: 0; }
.best_item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
}
.best_item:last-child { border-bottom: 0; }
.best_list .best_item:first-child { padding-top: 0; }
.best_item .thumb {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
}
.best_item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.best_item .tit {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 6px;
}
.best_item .date { font-size: 12px; color: #999; }

/* main banner */
.sec_main_banner {
    width: 100%;
    margin: 0 0 64px;
}
.main_banner_link {
    display: block;
    width: 100%;
    line-height: 0;
    background: #f0f0f0;
    border-radius: 12px;
	overflow:hidden;
}
.main_banner_link img {
    width: 100%;
    height: auto;
    display: block;
}
.main_banner_admin {
    margin-top: -48px;
    margin-bottom: 64px;
    text-align: right;
}
.btn_banner_manage {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    border: 1px solid #ddd;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    background: #fff;
}
.btn_banner_manage:hover { border-color: #111; color: #111; }

/* banners */
.banner_row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.banner_item {
    display: block;
    aspect-ratio: 16/10;
    border-radius: 16px;
    overflow: hidden;
    background: #ececec;
}
.banner_item img { width: 100%; height: 100%; object-fit: cover; }

/* new grid */
.new_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 20px;
}
.new_card .thumb {
    display: block;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
    margin-bottom: 12px;
}
.new_card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.new_card .tit {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
}
.new_card .desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.new_card .date { font-size: 12px; color: #999; }
.btn_more_wrap { text-align: center; margin-top: 32px; }
.btn_more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    height: 44px;
    padding: 0 24px;
    border: 1px solid #ddd;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.btn_more:hover { border-color: #111; color: #111; }

/* editor pick */
.editor_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.editor_card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    background: #e8e8e8;
}
.editor_card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.editor_card .overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 48px 18px 18px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 38%, rgba(0, 0, 0, 0) 100%);
}
.editor_card .tit {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.02em;
    word-break: keep-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.editor_card .tit {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.02em;
    word-break: keep-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* reels swiper */
.sec_reels { margin-bottom: 64px; }
.reels_swiper {
    overflow: hidden;
    padding-bottom: 44px;
}
.reels_card {
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-align: left;
    cursor: pointer;
}
.reels_thumb {
    display: block;
    position: relative;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: #ececec;
}
.reels_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.reels_play {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.reels_play::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 7px 0 7px 11px;
    border-color: transparent transparent transparent #111;
}
.reels_tit {
    margin: 0;
    padding: 14px 14px 16px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
    color: #111;
    word-break: keep-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.reels_pagination { bottom: 0 !important; }
.reels_pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ccc;
    opacity: 1;
}
.reels_pagination .swiper-pagination-bullet-active { background: #111; }

.reels_popup {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.reels_popup.is_open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.reels_popup_dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
}
.reels_popup_panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 360px;
}
.reels_popup_close {
    position: absolute;
    top: -44px;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #fff;
}
.reels_popup_close svg { width: 22px; height: 22px; }
.reels_video_wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    max-height: 78vh;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}
.reels_video_wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
body.reels_open { overflow: hidden; }

/* shorts carousel */
.shorts_wrap { position: relative; }
.shorts_track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 8px;
}
.shorts_track::-webkit-scrollbar { display: none; }
.shorts_card {
    flex: 0 0 200px;
    scroll-snap-align: start;
}
.shorts_card .thumb {
    position: relative;
    aspect-ratio: 9/16;
    border-radius: 14px;
    overflow: hidden;
    background: #ececec;
    margin-bottom: 10px;
}
.shorts_card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.shorts_card .play {
    position: absolute;
    top: 10px; right: 10px;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,.45);
    color: #fff;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.shorts_card .tit {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 4px;
}
.shorts_card .sub { font-size: 12px; color: #888; }
.shorts_nav {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}
.shorts_nav button {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #ddd;
}
.shorts_nav button.active { background: #111; }
.shorts_arrows {
    position: absolute;
    top: 42%;
    left: -12px; right: -12px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}
.shorts_arrows button {
    pointer-events: auto;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    font-size: 18px;
    line-height: 1;
}

.empty_msg {
    padding: 48px 0;
    text-align: center;
    color: #999;
    font-size: 15px;
}

/* footer */
#footer {
    background: #f7f7f7;
    padding: 40px 0 32px;
    border-top: 1px solid #eee;
}
#footer .wrap { display: flex; gap: 32px; align-items: flex-start; }
.f_logo {
    flex-shrink: 0;
}
.f_logo img {
    display: block;
    height: 28px;
    width: auto;
}
.f_info p {
    margin: 0 0 4px;
    font-size: 12px;
    color: #888;
    line-height: 1.6;
}
.f_links { margin-top: 12px; }
.f_links a {
    font-size: 12px;
    color: #666;
    margin-right: 12px;
}

/* admin login bar */
.kpop_admin_bar {
    position: sticky;
    bottom: 0;
    z-index: 90;
    background: #111;
    color: #fff;
    font-size: 13px;
}
.kpop_admin_bar .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
}
.kpop_admin_bar span { color: #ccc; }
.kpop_admin_bar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.kpop_admin_bar a:hover { background: #f0f0f0; }

/* sub pages */
#contents { padding: 40px 0 80px; min-height: 50vh; }
#container_title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
    color: #111;
}

body:has(#header) #wrapper,
body:has(#header) #container_wr,
body:has(#header) #container {
    float: none;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}
body:has(#header) #hd,
body:has(#header) #ft,
body:has(#header) #tnb,
body:has(#header) #aside { display: none !important; }

@media (max-width: 1024px) {
    .best_layout { grid-template-columns: 1fr; }
    .new_grid, .editor_grid { grid-template-columns: repeat(2, 1fr); }
    .banner_row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    #header .wrap {
        height: 60px;
        justify-content: space-between;
    }
    .h_left {
        gap: 0;
        flex: 1;
        min-width: 0;
    }
    .nav_area { position: static; flex: 0; }
    .h_util {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
        margin-left: auto;
    }
    .h_search,
    .nav_btn {
        position: static;
        flex-shrink: 0;
    }
    .nav_btn { display: flex; }
    .h_company,
    .h_sns { display: none; }
    #header #gnb {
        display: none;
        position: fixed;
        inset: 60px 0 0 0;
        background: #fff;
        padding: 24px;
        overflow-y: auto;
        z-index: 101;
    }
    #header .nav_area.active #gnb {
        display: block;
    }
    body.nav_open {
        overflow: hidden;
    }
    #header #gnb .dep1 { flex-direction: column; align-items: flex-start; gap: 0; }
    #header #gnb .dep1 > li { width: 100%; border-bottom: 1px solid #eee; }
    #header #gnb .dep1 > li > a { display: block; padding: 14px 0; }
    .search_popup { padding: 16px; }
    .search_popup_panel { padding: 32px 20px 24px; }
    .search_popup_title { font-size: 20px; margin-bottom: 18px; }
    .new_grid, .editor_grid { grid-template-columns: 1fr; }
    .editor_card .tit { font-size: 16px; }
    .sec_head h2 { font-size: 22px; }
    #footer .wrap { flex-direction: column; }
    .kpop_admin_bar .wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* login page */
#mb_login.kpop_login,
#mb_login.mbskin {
    position: relative;
    margin: 80px auto 40px;
    width: min(400px, calc(100% - 48px));
    text-align: center;
}
#mb_login .mbskin_box {
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
#mb_login .kpop_login_title,
#mb_login h1 {
    position: static;
    overflow: visible;
    width: auto;
    height: auto;
    margin: 0;
    padding: 32px 24px 16px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #111;
    line-height: 1.2;
}
#mb_login #login_fs {
    margin: 0;
    padding: 24px 24px 28px;
    border: 0;
    text-align: left;
}
#mb_login #login_fs legend {
    display: none;
}
#mb_login .frm_input {
    width: 100%;
    height: 48px;
    margin: 0 0 10px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    color: #111;
    background: #fff;
    box-sizing: border-box;
}
#mb_login .frm_input:focus {
    outline: none;
    border-color: #111;
}
#mb_login .btn_submit {
    display: block;
    width: 100%;
    height: 48px;
    margin: 4px 0 16px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}
#mb_login .btn_submit:hover {
    background: #000;
}
#mb_login #login_info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
#mb_login #login_info .login_if_lpl {
    margin-left: auto;
}
#mb_login #login_info a {
    font-size: 13px;
    color: #666;
    text-decoration: underline;
    text-underline-offset: 2px;
}
#mb_login #login_info a:hover {
    color: #111;
}
#mb_login .chk_box {
    position: relative;
}
#mb_login .selec_chk {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}
#mb_login .chk_box label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}
#mb_login .chk_box label span {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
}
#mb_login .chk_box input:checked + label span {
    background: #111;
    border-color: #111;
}
#mb_login .mb_log_cate {
    display: none;
}
