/* Naver-Inspired Portal Template — Pure White · Naver Green · Ultra-Clean */

:root {
    /* Naver Green */
    --grn:            #03c75a;
    --grn-deep:       #02a449;
    --grn-mid:        #04e066;
    --grn-light:      #e8faf0;
    --grn-xlight:     #f2fbf6;
    --grn-border:     rgba(3, 199, 90, 0.4);

    /* Text */
    --ink:            #1a1a1a;
    --ink-mid:        #404040;
    --ink-soft:       #6e6e73;
    --ink-faint:      #aaaaaa;

    /* Surfaces */
    --bg:             #f7f8fa;
    --surface:        #ffffff;
    --rule:           #e9ebed;
    --rule-dark:      #d0d3d8;
    --card-bg:        #ffffff;

    /* Radii */
    --r-xs:           4px;
    --r-sm:           8px;
    --r-md:           12px;
    --r-lg:           16px;
    --r-pill:         999px;

    /* Motion */
    --ease:           cubic-bezier(0.22, 1, 0.36, 1);
    --trans:          all 0.18s var(--ease);

    /* Shadows */
    --sh-xs:          0 1px 4px rgba(0,0,0,0.05);
    --sh-sm:          0 2px 10px rgba(0,0,0,0.08);
    --sh-md:          0 5px 20px rgba(0,0,0,0.10);
    --sh-grn:         0 3px 14px rgba(3,199,90,0.22);

    --maxw:           1080px;
    --gap:            7px;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans KR', 'PingFang SC',
                 'Microsoft YaHei', 'Segoe UI', Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════
   TOPBAR  (Naver 白色顶栏)
   ══════════════════════════════ */
.nvbar {
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
    padding: 10px 0;
    box-shadow: var(--sh-xs);
}

.nvbar-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

.nv-brand-lnk {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}


.nv-brand-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.4px;
    line-height: 1;
    border-bottom: none;
}

.nv-divider {
    width: 1px;
    height: 22px;
    background: var(--rule-dark);
    flex-shrink: 0;
}

.nv-domain-wrap {
    display: flex;
    align-items: center;
    gap: 9px;
}

.nv-domain-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: var(--surface);
    background: var(--grn);
    padding: 2px 8px;
    border-radius: var(--r-pill);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
}

.nv-domain-str {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.05px;
    white-space: nowrap;
}

/* ══════════════════════════════
   CONTAINER
   ══════════════════════════════ */
.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 16px;
}

.content { padding: 6px 0; }

/* ══════════════════════════════
   PROMO BANNER
   ══════════════════════════════ */
.adslot {
    width: 100%;
    overflow: hidden;
    border-radius: var(--r-md);
    margin: 4px 0;
    box-shadow: var(--sh-xs);
    border: 1px solid var(--rule);
}
.adslot img { display:block; width:100%; }

/* ══════════════════════════════
   NAV MODULE
   ══════════════════════════════ */
.gnb {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-top: 3px solid var(--grn);
    border-radius: 0 0 var(--r-md) var(--r-md);
    overflow: hidden;
    margin-bottom: var(--gap);
    box-shadow: var(--sh-xs);
}

.gnb-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--rule);
}

.gnb-row:last-child { border-bottom: none; }

.gnb-zone {
    background: var(--grn);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    width: 10%;
    min-width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 5px;
    flex-shrink: 0;
    letter-spacing: 0.2px;
    line-height: 1.3;
}

.gnb-menus {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 9px 10px;
    align-items: center;
    background: var(--surface);
}

.gnb-menus a {
    display: inline-block;
    color: var(--ink-mid);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--r-xs);
    transition: var(--trans);
    background: var(--bg);
    border: 1px solid var(--rule);
    white-space: nowrap;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.gnb-menus a:hover {
    background: var(--grn);
    color: #fff;
    border-color: var(--grn);
    box-shadow: var(--sh-xs);
}

.gnb-menus a.active {
    background: var(--grn);
    color: #fff;
    border-color: var(--grn);
    font-weight: 700;
}

/* ══════════════════════════════
   SEARCH BAR  (Naver 绿框搜索)
   ══════════════════════════════ */
.searchbox {
    background: var(--surface);
    border: 2px solid var(--grn);
    border-radius: var(--r-pill);
    padding: 6px 8px 6px 14px;
    margin-bottom: var(--gap);
    box-shadow: 0 0 0 3px var(--grn-light);
    transition: var(--trans);
}

.searchbox:focus-within {
    box-shadow: 0 0 0 4px rgba(3,199,90,0.18);
}

.searchbox form {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: nowrap;
}

.searchbox input[type="text"] {
    flex: 1;
    min-width: 150px;
    padding: 7px 4px;
    border: none;
    background: transparent;
    color: var(--ink);
    font-size: 15px;
    outline: none;
}

.searchbox input[type="text"]::placeholder { color: var(--ink-faint); }

.searchbox button {
    padding: 8px 16px;
    border: none;
    border-radius: var(--r-pill);
    background: var(--grn);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--trans);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.searchbox button:hover {
    background: var(--grn-deep);
    box-shadow: var(--sh-grn);
}

/* ══════════════════════════════
   HOT TAGS
   ══════════════════════════════ */
.tagrow {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 9px 12px;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    margin-bottom: var(--gap);
    box-shadow: var(--sh-xs);
}

.taglnk {
    padding: 4px 12px;
    background: var(--grn-xlight);
    border-radius: var(--r-pill);
    color: var(--grn-deep);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: var(--trans);
    border: 1px solid var(--grn-border);
}

.taglnk:hover {
    background: var(--grn);
    color: #fff;
    border-color: var(--grn);
    box-shadow: var(--sh-xs);
}

/* ══════════════════════════════
   SECTION BLOCK
   ══════════════════════════════ */
.stnd { margin-bottom: var(--gap); }

.stnd-hd {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--rule);
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.stnd-hd::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--grn);
    border-radius: var(--r-pill);
}

.stnd-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
    margin: 0;
    letter-spacing: -0.3px;
}

.stnd-title a {
    color: var(--ink);
    text-decoration: none;
    transition: var(--trans);
}

.stnd-title a:hover { color: var(--grn); }

/* ══════════════════════════════
   FILM GRID  (ratio 600:350)
   ══════════════════════════════ */
.imglist {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 11px;
    list-style: none;
    padding: 0;
}

.imglist li { animation: nrise 0.38s var(--ease) backwards; }
.imglist li:nth-child(1){animation-delay:.04s}
.imglist li:nth-child(2){animation-delay:.08s}
.imglist li:nth-child(3){animation-delay:.12s}
.imglist li:nth-child(4){animation-delay:.16s}
.imglist li:nth-child(5){animation-delay:.20s}
.imglist li:nth-child(6){animation-delay:.24s}
.imglist li:nth-child(7){animation-delay:.28s}
.imglist li:nth-child(8){animation-delay:.32s}

@keyframes nrise {
    from { opacity:0; transform:translateY(12px); }
    to   { opacity:1; transform:translateY(0); }
}

/* 封面宽高比 600:350 */
.thumblnk {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--r-sm);
    aspect-ratio: 600 / 350;
    background: var(--rule);
    border: 1px solid var(--rule);
    transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.thumblnk img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.38s var(--ease);
    display: block;
}

.thumblnk:hover {
    box-shadow: var(--sh-md);
    transform: translateY(-2px);
    border-color: var(--grn-border);
}

.thumblnk:hover img { transform: scale(1.07); }

.thumblnk::after {
    content: '▶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: rgba(255,255,255,0.95);
    background: rgba(3,199,90,0.28);
    opacity: 0;
    transition: opacity 0.18s;
}

.thumblnk:hover::after { opacity: 1; }

.thumbcap { padding: 6px 2px 0; }

.thumbcap h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.thumbcap h5 a {
    color: inherit;
    text-decoration: none;
    transition: var(--trans);
}

.thumbcap h5 a:hover { color: var(--grn-deep); }

/* ══════════════════════════════
   ENTRY TITLE BAND
   ══════════════════════════════ */
.entrystrip {
    line-height: 1.7;
    text-align: left;
    padding: 13px 18px;
    font-size: 15px;
    margin: 6px 0;
    word-break: break-all;
    background: var(--surface);
    border-left: 4px solid var(--grn);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    border-right: 1px solid var(--rule);
    box-shadow: var(--sh-xs);
}

.entrystrip a {
    color: var(--grn-deep);
    text-decoration: none;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-right: 10px;
    background: var(--grn-light);
    padding: 2px 8px;
    border-radius: var(--r-pill);
    border: 1px solid var(--grn-border);
}

/* ══════════════════════════════
   DETAIL SPEC
   ══════════════════════════════ */
.infoblock {
    font-size: 14px;
    line-height: 1.9;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    margin: 6px 0;
    box-shadow: var(--sh-xs);
}

/* ══════════════════════════════
   CAPTURE PREVIEW
   ══════════════════════════════ */
.imgpreview { margin-top: 10px; }

.imgpreview picture,
.imgpreview img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--r-xs);
}

/* ══════════════════════════════
   DOWNLOAD BUTTONS
   ══════════════════════════════ */
.actrow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 14px;
    margin: 6px 0;
    flex-wrap: wrap;
}

.actbtn {
    display: inline-block;
    padding: 11px 24px;
    background: var(--grn);
    color: #fff;
    text-decoration: none;
    border-radius: var(--r-pill);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--trans);
    letter-spacing: 0.3px;
    box-shadow: var(--sh-grn);
}

.actbtn:hover {
    background: var(--grn-deep);
    box-shadow: 0 6px 20px rgba(3,199,90,0.32);
    transform: translateY(-1px);
}

/* ══════════════════════════════
   SHARE STRIP
   ══════════════════════════════ */
.shareunit {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    margin: 6px 0;
    box-shadow: var(--sh-xs);
    flex-wrap: nowrap;
}

.shareurl-frame {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    min-width: 0;
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: var(--r-pill);
    padding: 7px 12px;
    overflow: hidden;
}

.shareurl-lbl {
    font-size: 10px;
    font-weight: 700;
    color: var(--grn-deep);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.shareurl-link {
    font-size: 11px;
    color: var(--ink-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-variant-numeric: tabular-nums;
}

.sharebtn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    background: var(--grn);
    color: #fff;
    border: none;
    border-radius: var(--r-pill);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--trans);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: var(--sh-grn);
}

.sharebtn:hover { background: var(--grn-deep); }
.sharebtn-ico { font-size: 13px; line-height: 1; }

/* ══════════════════════════════
   BT CLIENT HINTS
   ══════════════════════════════ */
.bthd, .bthm {
    text-align: center;
    padding: 10px;
}

.bthd a, .bthm a {
    color: var(--grn-deep);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: var(--trans);
}

.bthd a:hover, .bthm a:hover {
    color: var(--grn);
    text-decoration: underline;
}

/* ══════════════════════════════
   PAGINATION
   ══════════════════════════════ */
.pgstrip {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    padding: 15px 0;
    align-items: center;
}

.pglnk, .pgact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border-radius: var(--r-pill);
    font-size: 13px;
    font-weight: 600;
    min-width: 37px;
    text-align: center;
    transition: var(--trans);
}

.pglnk {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--rule-dark);
    text-decoration: none;
}

.pglnk:hover {
    background: var(--grn);
    border-color: var(--grn);
    color: #fff;
    box-shadow: var(--sh-grn);
}

.pgact {
    background: var(--grn);
    color: #fff;
    border: 1px solid var(--grn);
    cursor: default;
    box-shadow: var(--sh-grn);
}

/* ══════════════════════════════
   FOOTER
   ══════════════════════════════ */
.pgfoot {
    padding: 16px 0;
    text-align: center;
    border-top: 2px solid var(--grn);
    margin-top: 12px;
    background: var(--surface);
}

.pgfoot p { margin: 4px 0; color: var(--ink-soft); font-size: 12px; }
.pgfoot a { color: var(--ink-soft); text-decoration: none; transition: var(--trans); }
.pgfoot a:hover { color: var(--grn); }

/* ══════════════════════════════
   FRIENDLY LINKS
   ══════════════════════════════ */
.flnkzone {
    padding: 9px 12px;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
}

.flnkzone dl  { margin:0; }
.flnkzone dd  { display:inline-block; margin:2px 4px; }

.flnkzone a {
    color: var(--grn-deep);
    text-decoration: none;
    font-size: 12px;
    transition: var(--trans);
}

.flnkzone a:hover { color: var(--grn); text-decoration: underline; }
.flnkzone a.pd5  { padding: 2px 4px; }

/* ══════════════════════════════
   VISIBILITY
   ══════════════════════════════ */
.desktoponly  { display:block; }
.mobileonly   { display:block; }

@media (max-width: 768px) { .desktoponly { display:none !important; } }
@media (min-width: 769px) { .mobileonly  { display:none !important; } }

/* clearfix / lazy */
.clearfix::after { content:""; display:table; clear:both; }
img[data-original] { background: var(--rule); }

/* ══════════════════════════════════
   TABLET  ≤768px
   ══════════════════════════════════ */
@media (max-width: 768px) {
    .container { padding: 0 10px; }
    .content   { padding: 4px 0; }

    .nvbar-inner  { gap: 10px; }
    .nv-brand-name { font-size: 19px; }
    .nv-divider   { height: 20px; }
    .nv-domain-str  { font-size: 15px; }

    /* Nav: 15% label / 85% links, 4-per-row, 14px */
    .gnb-zone {
        width: 15%;
        min-width: 0;
        font-size: 10px;
        padding: 8px 3px;
        letter-spacing: 0;
        word-break: break-all;
        line-height: 1.25;
    }

    .gnb-menus {
        width: 85%;
        gap: 4px;
        padding: 7px 5px;
    }

    .gnb-menus a {
        font-size: 14px;
        padding: 5px 2px;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    .imglist {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .stnd-title { font-size: 16px; }

    .searchbox { padding: 5px 7px 5px 12px; }
    .searchbox input[type="text"] { font-size: 13px; padding: 6px 4px; }
    .searchbox button { padding: 6px 12px; font-size: 11px; }

    .entrystrip { font-size: 13px; padding: 10px 13px; }
    .infoblock  { padding: 12px 14px; font-size: 13px; }

    .actrow { gap: 8px; padding: 10px 6px; flex-wrap: nowrap; }
    .actbtn { padding: 9px 15px; font-size: 12px; }

    .shareunit { padding: 8px 10px; gap: 6px; }
    .sharebtn  { padding: 7px 11px; font-size: 11px; }

    .tagrow  { gap: 5px; padding: 8px 10px; }
    .taglnk  { font-size: 11px; padding: 3px 9px; }

    .pgstrip { padding: 11px 0; gap: 4px; }
    .pglnk, .pgact { padding: 5px 9px; font-size: 12px; min-width: 30px; }

    .stnd { margin-bottom: 5px; }
}

/* ══════════════════════════════════
   PHONE  ≤480px
   ══════════════════════════════════ */
@media (max-width: 480px) {
    .nv-brand-name { font-size: 17px; }
    .nv-domain-str { font-size: 14px; }

    .gnb-zone {
        width: 15%;
        font-size: 10px;
        padding: 6px 2px;
    }

    .gnb-menus {
        width: 85%;
        gap: 3px;
        padding: 6px 3px;
    }

    .gnb-menus a {
        font-size: 12px;
        padding: 4px 1px;
        width: calc((100% - 9px) / 4);
    }

    .imglist { gap: 6px; }
    .thumbcap h5 { font-size: 12px; }

    .actrow { gap: 5px; padding: 8px 3px; flex-wrap: nowrap; }
    .actbtn { padding: 8px 11px; font-size: 11px; }

    .shareunit      { padding: 6px 8px; gap: 5px; }
    .shareurl-frame { padding: 6px 9px; }
    .shareurl-lbl   { font-size: 9px; }
    .shareurl-link  { font-size: 10px; }
    .sharebtn       { padding: 6px 9px; font-size: 11px; }
    .sharebtn-ico   { font-size: 12px; }
}

/* ══════════════════════════════════
   PC  ≥769px
   ══════════════════════════════════ */
@media (min-width: 769px) {
    .gnb-zone  { width: 10%; font-size: 13px; }
    .gnb-menus { width: 90%; }
    .gnb-menus a { width: calc((100% - 35px) / 8); font-size: 13px; }
    .imglist { grid-template-columns: repeat(4, 1fr); }
}
