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

:root {
    /* Purple palette */
    --pu-deep:      #4a0fa8;
    --pu-main:      #7b2ff7;
    --pu-mid:       #9b4dff;
    --pu-lt:        #b574ff;
    --pu-pale:      #f3e8ff;
    --pu-soft:      #e9d5ff;
    --pu-bg:        rgba(123,47,247,.10);
    /* Pink accent */
    --pk:           #e040fb;
    --pk-dk:        #c21de8;
    /* Page background */
    --page-bg:      #faf7ff;
    --surface:      #ffffff;
    --surface-off:  #f7f3ff;
    --surface-mute: #ede8f8;
    /* Text */
    --txt:          #1a1030;
    --txt2:         #3d2b6e;
    --txt3:         #7a6a9a;
    --txt4:         #b0a0cc;
    --txt-w:        #ffffff;
    /* Borders */
    --line:         #ddd5f0;
    --line2:        #c8b8e8;
    /* Shadows */
    --shd-xs:       0 1px 4px rgba(123,47,247,.10);
    --shd-sm:       0 3px 12px rgba(123,47,247,.15);
    --shd-md:       0 6px 24px rgba(123,47,247,.22);
    /* Radii */
    --r:            8px;
    --rsm:          5px;
    --rlg:          14px;
}

html { font-size: 15px; }

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

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

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

/* ===== SITE HEADER ===== */
.nz-header {
    background: linear-gradient(135deg, var(--pu-deep) 0%, var(--pu-main) 55%, var(--pk) 100%);
    padding: 8px 0;
    box-shadow: 0 3px 16px rgba(123,47,247,.4);
    position: relative;
    overflow: hidden;
}

/* subtle wave decoration */
.nz-header::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -60px;
    width: 260px;
    height: 130px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
    pointer-events: none;
}

.nz-header .nz-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    position: relative;
    z-index: 1;
}

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

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

.nz-sitename {
    font-size: 1.34rem;
    font-weight: 900;
    color: #ffffff;
    font-style: normal;
    letter-spacing: -.3px;
    text-decoration: none;
    border-bottom: none;
}

.nz-domain-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.30);
    border-radius: 20px;
    padding: 4px 13px;
    backdrop-filter: blur(4px);
}

.nz-domain-pill .dp-lbl {
    font-size: 0.66rem;
    color: rgba(255,255,255,.72);
    white-space: nowrap;
}

.nz-domain-pill .dp-url {
    font-size: 1.08rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}

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

/* ===== CATEGORY NAV ===== */
.nz-nav-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--shd-xs);
}

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

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

.nz-zone-tag {
    background: linear-gradient(135deg, var(--pu-deep), var(--pu-main));
    color: #ffffff;
    font-size: .67rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 2px;
    width: 62px;
    min-width: 62px;
    border-right: 1px solid rgba(255,255,255,.15);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

.nz-cat-lks {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    align-items: center;
    padding: 4px 8px;
    gap: 3px;
    flex: 1;
}

.nz-cat-lks a {
    font-size: .82rem;
    color: var(--txt2);
    padding: 3px 5px;
    border-radius: var(--rsm);
    transition: all .17s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.nz-cat-lks a:hover {
    background: var(--pu-pale);
    color: var(--pu-main);
    border-color: var(--pu-soft);
}

.nz-cat-lks a.active {
    background: linear-gradient(135deg, var(--pu-main), var(--pk));
    color: #fff;
    border-color: var(--pu-mid);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.nz-search {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 8px 12px;
    margin: 4px 0;
    box-shadow: var(--shd-xs);
}

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

.nz-search input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1.5px solid var(--line2);
    border-radius: var(--rsm);
    padding: 0 11px;
    font-size: .87rem;
    color: var(--txt);
    background: var(--surface-off);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

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

.nz-search input[type="text"]:focus {
    border-color: var(--pu-main);
    box-shadow: 0 0 0 3px rgba(123,47,247,.12);
    background: var(--surface);
}

.nz-search button {
    height: 36px;
    padding: 0 11px;
    border: none;
    border-radius: var(--rsm);
    background: var(--surface-mute);
    color: var(--txt2);
    font-size: .81rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .17s;
    flex-shrink: 0;
    border: 1px solid var(--line);
}

.nz-search button:hover {
    background: var(--pu-pale);
    color: var(--pu-main);
    border-color: var(--pu-soft);
}

.nz-search button[value="1"] {
    background: linear-gradient(135deg, var(--pu-main), var(--pk));
    color: #fff;
    border-color: var(--pu-deep);
}

.nz-search button[value="1"]:hover {
    background: linear-gradient(135deg, var(--pu-deep), var(--pu-main));
}

.nz-search button[value="2"] {
    background: var(--surface-mute);
    color: var(--txt2);
}

.nz-search button[value="2"]:hover {
    background: var(--pu-pale);
    color: var(--pu-main);
    border-color: var(--pu-soft);
}

/* ===== HOT TAGS ===== */
.nz-hotbox {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 7px 12px;
    margin: 4px 0;
    box-shadow: var(--shd-xs);
}

.nz-hotbox h4 {
    font-size: .78rem;
    font-weight: 700;
    color: var(--pu-main);
    margin-bottom: 5px;
}

.nz-taglist {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.nz-taglist .nz-tag {
    display: inline-block;
    background: var(--surface-off);
    color: var(--txt2);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: .75rem;
    text-decoration: none;
    transition: all .17s;
}

.nz-taglist .nz-tag:hover {
    background: var(--pu-pale);
    color: var(--pu-main);
    border-color: var(--pu-soft);
}

/* ===== CONTENT SECTION ===== */
.nz-sect {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--rlg);
    padding: 13px 13px 10px;
    margin: 5px 0;
    box-shadow: var(--shd-xs);
}

.nz-sect-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--surface-mute);
    position: relative;
}

.nz-sect-hd::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 38px;
    height: 2px;
    background: linear-gradient(90deg, var(--pu-main), var(--pk));
    border-radius: 2px;
}

.nz-sect-hd h3 {
    font-size: .97rem;
    font-weight: 800;
    color: var(--txt);
}

.nz-sect-hd h3 a { color: var(--txt); }
.nz-sect-hd h3 a:hover { color: var(--pu-main); }

.nz-sect-hd h4 {
    font-size: .94rem;
    font-weight: 800;
    color: var(--txt);
}

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

.nz-grid li {
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface-off);
    transition: box-shadow .2s, transform .2s, border-color .2s;
}

.nz-grid li:hover {
    box-shadow: var(--shd-md);
    transform: translateY(-2px);
    border-color: var(--pu-soft);
}

.nz-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--surface-mute);
}

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

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

.nz-cap {
    padding: 5px 7px 7px;
    background: var(--surface);
}

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

.nz-cap h5 a { color: var(--txt2); }
.nz-cap h5 a:hover { color: var(--pu-main); }

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

.nz-pgrow {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.nz-pgrow a.npb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--surface);
    border: 1px solid var(--line2);
    border-radius: var(--rsm);
    font-size: .83rem;
    color: var(--txt2);
    text-decoration: none;
    transition: all .17s;
}

.nz-pgrow a.npb:hover {
    background: linear-gradient(135deg, var(--pu-main), var(--pk));
    border-color: var(--pu-mid);
    color: #fff;
}

.nz-pgrow a.npb-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: linear-gradient(135deg, var(--pu-deep), var(--pu-main));
    border: 1px solid var(--pu-deep);
    border-radius: var(--rsm);
    font-size: .83rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
}

/* ===== FOOTER LINKS ===== */
.nz-flink-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 9px 13px;
    margin: 5px 0;
    box-shadow: var(--shd-xs);
}

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

.nz-flinks dd { display: inline; }

.nz-flinks a {
    display: inline-block;
    font-size: .76rem;
    color: var(--txt3);
    padding: 2px 9px;
    border-radius: 4px;
    border: 1px solid var(--line);
    background: var(--surface-off);
    text-decoration: none;
    transition: all .17s;
}

.nz-flinks a:hover {
    color: var(--pu-main);
    border-color: var(--pu-soft);
    background: var(--pu-pale);
}

.nz-cr {
    text-align: center;
    padding: 7px 0 13px;
    color: var(--txt4);
    font-size: .75rem;
}

/* ===== DETAIL PAGES ===== */
.nz-dtl-title {
    line-height: 1.8;
    text-align: center;
    padding: 12px 14px;
    font-size: .97rem;
    margin: 5px 0;
    word-break: break-all;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--pu-main);
    border-radius: var(--r);
    box-shadow: var(--shd-xs);
    color: var(--txt);
}

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

.nz-dtl-info {
    font-size: .89rem;
    line-height: 1.95;
    padding: 14px 17px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shd-xs);
    margin: 5px 0;
    color: var(--txt2);
}

.nz-preview {
    display: block;
    width: 100%;
    margin-top: 10px;
}

.nz-preview picture,
.nz-preview img {
    width: 100%;
    height: auto;
    border-radius: var(--rsm);
    display: block;
}

/* ===== ACTION BUTTONS ===== */
.nz-btnrow {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

.nz-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--pu-main), var(--pk));
    color: #fff;
    border: none;
    border-radius: var(--r);
    font-size: .89rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s, transform .14s, box-shadow .2s;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(123,47,247,.35);
}

.nz-btn:hover {
    opacity: .88;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(123,47,247,.45);
}

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

.nz-cli-tip a { color: var(--pu-main); font-weight: 600; }
.nz-cli-tip a:hover { color: var(--pu-deep); }

/* ===== SHARE BAR ===== */
.nz-sharebar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--pu-pale);
    border: 1px solid var(--pu-soft);
    border-radius: var(--r);
    padding: 7px 12px;
    margin: 5px 0;
    flex-wrap: wrap;
}

.nz-sharebar .nsb-lbl { font-size: .76rem; color: var(--txt3); white-space: nowrap; }
.nz-sharebar .nsb-url { font-size: .78rem; color: var(--txt2); flex: 1; min-width: 0; word-break: break-all; }

.nz-sharebar .nsb-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 13px;
    background: linear-gradient(135deg, var(--pu-main), var(--pk));
    color: #fff;
    border: none;
    border-radius: var(--rsm);
    font-size: .79rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .17s;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(123,47,247,.3);
}

.nz-sharebar .nsb-btn:hover { opacity: .85; }

/* ===== VISIBILITY ===== */
.nz-pc { display: block; }
.nz-mb { display: none; }

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

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

    .nz-sitename { font-size: 1.06rem; }
    .nz-domain-pill .dp-url { font-size: .9rem; }

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

    .nz-zone-tag {
        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;
    }

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

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

    /* Search: single row, no wrap */
    .nz-search form {
        flex-wrap: nowrap;
        gap: 3px;
    }

    .nz-search input[type="text"] {
        height: 34px;
        font-size: .77rem;
        padding: 0 6px;
    }

    .nz-search button {
        height: 34px;
        padding: 0 6px;
        font-size: .72rem;
    }

    /* Film grid: 2 columns */
    .nz-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
    }

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

@media (min-width: 481px) and (max-width: 768px) {
    .nz-zone-tag { font-size: 10px; }
    .nz-cat-lks a { font-size: 13px; }
}

@media (max-width: 380px) {
    .nz-zone-tag { font-size: 10px; }
    .nz-cat-lks a { font-size: 12px; }
    .nz-search button { padding: 0 4px; font-size: .66rem; }
}
