/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #ffffff;
    --bg-soft: #f5f5f5;
    --bg-muted: #e8e8e8;
    --bg-card: #ffffff;
    --black: #000000;
    --black2: #111111;
    --dark: #1a1a1a;
    --red: #e03c31;
    --red-dk: #c22d23;
    --red-lt: #fff4f3;
    --red-bd: #f5a8a3;
    --gray: #555555;
    --txt: #111111;
    --txt2: #2a2a2a;
    --txt3: #666666;
    --txt4: #999999;
    --border: #dedede;
    --border2: #c8c8c8;
    --sh1: 0 1px 4px rgba(0,0,0,.08);
    --sh2: 0 3px 14px rgba(0,0,0,.13);
    --r: 4px;
    --r2: 3px;
    --r3: 6px;
}

html { font-size: 15px; }

body {
    background: var(--bg-soft);
    color: var(--txt);
    font-family: 'PingFang SC','Hiragino Sans GB','Microsoft YaHei','Helvetica Neue',Arial,sans-serif;
    line-height: 1.6;
}

a { color: var(--red); text-decoration: none; transition: color .15s; }
a:hover { color: var(--red-dk); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.cf::after { content: ''; display: table; clear: both; }

/* ===== WRAPPER ===== */
.ns-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== SITE HEADER ===== */
.ns-hd {
    background: var(--black);
    padding: 9px 0;
}

.ns-hd .ns-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}

.ns-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.ns-logo-lnk {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.ns-sitename {
    font-size: 1.28rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: .5px;
    border-bottom: none;
    text-decoration: none;
    font-style: normal;
    text-transform: uppercase;
}

.ns-domain-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--r2);
    padding: 3px 11px;
}

.ns-domain-tag .ndt-lbl {
    font-size: 0.66rem;
    color: rgba(255,255,255,.45);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.ns-domain-tag .ndt-url {
    font-size: 1.10rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    letter-spacing: .1px;
}

/* ===== BANNER ===== */
.ns-promo {
    margin: 4px 0 3px;
}
.ns-promo img { border-radius: var(--r); width: 100%; }

/* ===== CATEGORY NAV ===== */
.ns-nav {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.ns-nav-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
    min-height: 36px;
}

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

.ns-zone-lbl {
    background: var(--black2);
    color: rgba(255,255,255,.85);
    font-size: .68rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 2px;
    width: 62px;
    min-width: 62px;
    border-right: 3px solid var(--red);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
    text-transform: uppercase;
}

.ns-zone-links {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    align-items: center;
    padding: 3px 8px;
    gap: 3px;
    flex: 1;
}

.ns-zone-links a {
    font-size: .81rem;
    color: var(--txt2);
    padding: 3px 4px;
    border-radius: var(--r2);
    transition: all .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.ns-zone-links a:hover {
    background: var(--red-lt);
    color: var(--red-dk);
    border-color: var(--red-bd);
}

.ns-zone-links a.active {
    background: var(--black2);
    color: #fff;
    border-color: var(--black2);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.ns-search {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 7px 12px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.ns-search form {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

.ns-search input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 35px;
    border: 1.5px solid var(--border2);
    border-radius: var(--r2);
    padding: 0 12px;
    font-size: .87rem;
    color: var(--txt);
    background: var(--bg-soft);
    outline: none;
    transition: border-color .18s;
}

.ns-search input[type="text"]::placeholder { color: var(--txt4); }

.ns-search input[type="text"]:focus {
    border-color: var(--black2);
    background: var(--bg);
}

.ns-search button {
    height: 35px;
    padding: 0 12px;
    border: none;
    border-radius: var(--r2);
    background: var(--bg-muted);
    color: var(--txt2);
    font-size: .81rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s;
    flex-shrink: 0;
}

.ns-search button:hover { background: var(--border2); color: var(--txt); }

.ns-search button[value="1"] {
    background: var(--red);
    color: #fff;
    font-weight: 700;
}
.ns-search button[value="1"]:hover { background: var(--red-dk); }

.ns-search button[value="2"] {
    background: var(--black2);
    color: #fff;
    font-weight: 600;
}
.ns-search button[value="2"]:hover { background: #333; }

/* ===== HOT TAGS ===== */
.ns-hot {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 6px 12px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.ns-hot h4 {
    font-size: .77rem;
    font-weight: 700;
    color: var(--txt3);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.ns-kwds {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.ns-kwds .ns-kwd {
    display: inline-block;
    background: var(--bg-soft);
    color: var(--txt3);
    border: 1px solid var(--border);
    border-radius: var(--r2);
    padding: 2px 9px;
    font-size: .75rem;
    text-decoration: none;
    transition: all .15s;
}

.ns-kwds .ns-kwd:hover {
    background: var(--red-lt);
    color: var(--red-dk);
    border-color: var(--red-bd);
}

/* ===== CONTENT SECTION ===== */
.ns-sect {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r3);
    padding: 12px 12px 10px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

.ns-sect-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 7px;
    border-bottom: 2px solid var(--black2);
}

.ns-sect-hd h3 {
    font-size: .97rem;
    font-weight: 900;
    color: var(--black2);
    letter-spacing: .3px;
    text-transform: uppercase;
}

.ns-sect-hd h3 a { color: var(--black2); }
.ns-sect-hd h3 a:hover { color: var(--red-dk); }

.ns-sect-hd h4 {
    font-size: .94rem;
    font-weight: 900;
    color: var(--black2);
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* ===== FILM GRID ===== */
.ns-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ns-grid li {
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    transition: box-shadow .18s, transform .18s;
}

.ns-grid li:hover {
    box-shadow: var(--sh2);
    transform: translateY(-2px);
}

.ns-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--bg-muted);
}

.ns-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.ns-thumb:hover img { transform: scale(1.05); }

.ns-cap {
    padding: 5px 7px 7px;
    border-top: 3px solid var(--red);
}

.ns-cap h5 {
    font-size: .77rem;
    font-weight: 600;
    color: var(--txt2);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ns-cap h5 a { color: var(--txt2); }
.ns-cap h5 a:hover { color: var(--red-dk); }

/* ===== PAGINATION ===== */
.ns-pager {
    margin: 12px 0 5px;
    display: flex;
    justify-content: center;
}

.ns-pager-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.ns-pager-btns a.npb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    background: var(--bg);
    border: 1.5px solid var(--border2);
    border-radius: var(--r2);
    font-size: .83rem;
    color: var(--txt2);
    text-decoration: none;
    transition: all .15s;
}

.ns-pager-btns a.npb:hover {
    background: var(--red-lt);
    border-color: var(--red-bd);
    color: var(--red-dk);
}

.ns-pager-btns a.npb-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    background: var(--black2);
    border: 1.5px solid var(--black2);
    border-radius: var(--r2);
    font-size: .83rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
}

/* ===== FOOTER ===== */
.ns-foot {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 8px 12px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

.ns-flinks {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.ns-flinks dd { display: inline; }

.ns-flinks a {
    display: inline-block;
    font-size: .76rem;
    color: var(--txt3);
    padding: 2px 9px;
    border-radius: var(--r2);
    border: 1px solid var(--border);
    background: var(--bg-soft);
    text-decoration: none;
    transition: all .15s;
}

.ns-flinks a:hover { color: var(--red-dk); border-color: var(--red-bd); }

.ns-copy {
    text-align: center;
    padding: 7px 0 12px;
    color: var(--txt4);
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* ===== DETAIL PAGES ===== */
.ns-dtl-title {
    line-height: 1.8;
    text-align: center;
    padding: 12px 15px;
    font-size: .97rem;
    margin: 4px 0;
    word-break: break-all;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--red);
    border-radius: var(--r);
    box-shadow: var(--sh1);
}

.ns-dtl-title a {
    color: var(--red);
    font-weight: 700;
    margin-right: 6px;
}

.ns-dtl-body {
    font-size: .9rem;
    line-height: 2;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--sh1);
    margin: 4px 0;
    color: var(--txt2);
}

.ns-pic-zone {
    display: block;
    width: 100%;
    margin-top: 10px;
}

.ns-pic-zone picture,
.ns-pic-zone img {
    width: 100%;
    height: auto;
    border-radius: var(--r2);
    display: block;
}

/* ===== DL BUTTONS ===== */
.ns-dl-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

.ns-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 22px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: var(--r2);
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .18s;
    text-decoration: none;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.ns-dl-btn:hover {
    background: var(--red-dk);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(224,60,49,.3);
}

.ns-cli-tip {
    text-align: center;
    padding: 6px;
    font-size: .81rem;
}

.ns-cli-tip a { color: var(--black2); font-weight: 600; }
.ns-cli-tip a:hover { color: var(--red-dk); }

/* ===== SHARE ===== */
.ns-share {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 7px 12px;
    margin: 4px 0;
    flex-wrap: wrap;
}

.ns-share .nss-lbl { font-size: .76rem; color: var(--txt4); white-space: nowrap; text-transform: uppercase; letter-spacing: .3px; }
.ns-share .nss-url { font-size: .78rem; color: var(--txt2); flex: 1; min-width: 0; word-break: break-all; }

.ns-share .nss-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--black2);
    color: #fff;
    border: none;
    border-radius: var(--r2);
    font-size: .79rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.ns-share .nss-btn:hover { background: var(--red); }

/* ===== VIS HELPERS ===== */
.ns-pc { display: block; }
.ns-mb { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .ns-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .ns-pc { display: none; }
    .ns-mb { display: block; }
}

@media (max-width: 768px) {
    html { font-size: 14px; }

    .ns-sitename { font-size: 1.05rem; }
    .ns-domain-tag .ndt-url { font-size: .95rem; }

    .ns-nav-row { align-items: stretch; }

    .ns-zone-lbl {
        width: 15%;
        min-width: 15%;
        max-width: 15%;
        font-size: 10px;
        padding: 4px 2px;
        letter-spacing: 0;
        line-height: 1.4;
        word-break: break-all;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ns-zone-links {
        width: 85%;
        flex: 1;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 3px;
        padding: 4px 5px;
        align-items: center;
    }

    .ns-zone-links a {
        font-size: 12px;
        padding: 5px 2px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    .ns-search form {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .ns-search input[type="text"] {
        height: 32px;
        font-size: .77rem;
        padding: 0 8px;
    }

    .ns-search button {
        height: 32px;
        padding: 0 7px;
        font-size: .72rem;
    }

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

    .ns-thumb { aspect-ratio: 600 / 350; }
    .ns-cap h5 { font-size: .71rem; }
    .ns-sect { padding: 9px 9px 7px; }
    .ns-dl-btn { padding: 9px 16px; font-size: .83rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .ns-zone-lbl { font-size: 10px; }
    .ns-zone-links a { font-size: 13px; }
}

@media (max-width: 380px) {
    .ns-zone-lbl { font-size: 10px; }
    .ns-zone-links a { font-size: 12px; }
    .ns-search button { padding: 0 5px; font-size: .66rem; }
}
