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

:root {
    --bg: #ffffff;
    --bg-soft: #f7f7f5;
    --bg-muted: #eeeeeb;
    --red: #d0021b;
    --red-dk: #a80115;
    --red-lt: #fff5f5;
    --black: #111111;
    --dark: #1a1a1a;
    --dark2: #333333;
    --dark3: #555555;
    --teal: #00857a;
    --teal-dk: #006b62;
    --teal-lt: #e8f5f4;
    --txt: #111111;
    --txt2: #444444;
    --txt3: #888888;
    --border: #e0e0dc;
    --border2: #c8c8c4;
    --border-dk: #999999;
    --shadow1: 0 1px 4px rgba(0,0,0,.08);
    --shadow2: 0 3px 12px rgba(0,0,0,.12);
    --shadow3: 0 6px 20px rgba(0,0,0,.16);
    --radius: 3px;
    --radius2: 2px;
    --radius3: 3px;
}

html { font-size: 15px; }

body {
    background: var(--bg-soft);
    color: var(--txt);
    font-family: 'Georgia','Times New Roman',serif;
    line-height: 1.6;
}

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

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

/* ===== SITE HEADER ===== */
.nd-header {
    background: var(--bg);
    border-bottom: 3px solid var(--black);
    padding: 10px 0;
    box-shadow: var(--shadow1);
}

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

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

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

.nd-site-name {
    font-size: 1.42rem;
    font-weight: 900;
    color: var(--black);
    font-style: normal;
    font-family: 'Georgia','Times New Roman',serif;
    letter-spacing: .5px;
    text-decoration: none;
    border-bottom: none;
    text-transform: uppercase;
}

.nd-domain-tag {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--teal);
    border-radius: var(--radius);
    padding: 5px 14px;
}

.nd-domain-tag .nt-tip {
    font-size: 0.67rem;
    color: rgba(255,255,255,.78);
    white-space: nowrap;
    font-family: Arial,sans-serif;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.nd-domain-tag .nt-url {
    font-size: 1.08rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    letter-spacing: .2px;
    font-family: Arial,sans-serif;
}

/* ===== BANNER ===== */
.nd-hero {
    margin: 5px 0 3px;
    border-radius: var(--radius);
    overflow: hidden;
}
.nd-hero img { border-radius: var(--radius); width: 100%; }

/* ===== CATEGORY NAV ===== */
.nd-nav-block {
    background: var(--bg);
    border: 1px solid var(--border);
    border-top: 3px solid var(--black);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--shadow1);
}

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

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

.nd-zone-lbl {
    background: var(--black);
    color: rgba(255,255,255,.82);
    font-size: .66rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 2px;
    width: 62px;
    min-width: 62px;
    border-right: 1px solid rgba(255,255,255,.08);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
    font-family: Arial,sans-serif;
}

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

.nd-zone-links a {
    font-size: .8rem;
    color: var(--txt2);
    padding: 4px 4px;
    border-radius: var(--radius2);
    transition: all .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
    font-family: Arial,sans-serif;
    font-weight: 500;
}

.nd-zone-links a:hover {
    background: var(--red-lt);
    color: var(--red);
    border-color: #f0c0c0;
}

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

/* ===== SEARCH ===== */
.nd-search-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 13px;
    margin: 4px 0;
    box-shadow: var(--shadow1);
}

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

.nd-search-card input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1.5px solid var(--border2);
    border-radius: var(--radius);
    padding: 0 12px;
    font-size: .86rem;
    color: var(--txt);
    background: var(--bg-soft);
    outline: none;
    transition: border-color .18s;
    font-family: Arial,sans-serif;
}

.nd-search-card input[type="text"]:focus {
    border-color: var(--teal);
    background: var(--bg);
    box-shadow: 0 0 0 2px rgba(0,133,122,.1);
}

.nd-search-card button {
    height: 36px;
    padding: 0 12px;
    border: 1.5px solid var(--border-dk);
    border-radius: var(--radius);
    background: var(--dark2);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    flex-shrink: 0;
    font-family: Arial,sans-serif;
    letter-spacing: .3px;
}

.nd-search-card button:hover { background: var(--black); }

.nd-search-card button[value="1"] {
    background: var(--red);
    border-color: var(--red);
}
.nd-search-card button[value="1"]:hover { background: var(--red-dk); }

.nd-search-card button[value="2"] {
    background: var(--teal);
    border-color: var(--teal);
}
.nd-search-card button[value="2"]:hover { background: var(--teal-dk); }

/* ===== HOT TAGS ===== */
.nd-hot-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 7px 13px;
    margin: 4px 0;
    box-shadow: var(--shadow1);
}

.nd-hot-card h4 {
    font-size: .75rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 5px;
    font-family: Arial,sans-serif;
    letter-spacing: .5px;
    text-transform: uppercase;
    border-left: 3px solid var(--red);
    padding-left: 7px;
}

.nd-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.nd-tag-row .nd-tag {
    display: inline-block;
    background: var(--bg-soft);
    color: var(--txt2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2px 10px;
    font-size: .74rem;
    text-decoration: none;
    transition: all .15s;
    font-family: Arial,sans-serif;
    font-weight: 500;
}

.nd-tag-row .nd-tag:hover {
    background: var(--red-lt);
    color: var(--red);
    border-color: #f0c0c0;
}

/* ===== CONTENT SECTION ===== */
.nd-section {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 13px 13px 10px;
    margin: 5px 0;
    box-shadow: var(--shadow1);
}

.nd-sec-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 11px;
    padding-bottom: 7px;
    border-bottom: 2px solid var(--black);
    position: relative;
}

.nd-sec-hd::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 36px;
    height: 2px;
    background: var(--red);
}

.nd-sec-hd h3 {
    font-size: .97rem;
    font-weight: 800;
    color: var(--black);
    font-family: 'Georgia','Times New Roman',serif;
    letter-spacing: .2px;
}

.nd-sec-hd h3 a { color: var(--black); }
.nd-sec-hd h3 a:hover { color: var(--red); }

.nd-sec-hd h4 {
    font-size: .95rem;
    font-weight: 800;
    color: var(--black);
    font-family: Arial,sans-serif;
}

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

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

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

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

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

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

.nd-caption {
    padding: 5px 7px 7px;
    border-top: 2px solid var(--border);
}

.nd-caption h5 {
    font-size: .77rem;
    font-weight: 700;
    color: var(--txt);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-family: 'Georgia','Times New Roman',serif;
}

.nd-caption h5 a { color: var(--txt); }
.nd-caption h5 a:hover { color: var(--red); }

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

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

.nd-pager-btns a.np-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--bg);
    border: 1.5px solid var(--border2);
    border-radius: var(--radius);
    font-size: .82rem;
    color: var(--txt2);
    text-decoration: none;
    transition: all .15s;
    font-family: Arial,sans-serif;
}

.nd-pager-btns a.np-btn:hover {
    background: var(--red-lt);
    border-color: var(--red);
    color: var(--red);
}

.nd-pager-btns a.np-btn-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--red);
    border: 1.5px solid var(--red);
    border-radius: var(--radius);
    font-size: .82rem;
    font-weight: 800;
    color: #fff;
    cursor: default;
    font-family: Arial,sans-serif;
}

/* ===== FOOTER ===== */
.nd-flink-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 9px 13px;
    margin: 5px 0;
    box-shadow: var(--shadow1);
}

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

.nd-flinks dd { display: inline; }

.nd-flinks a {
    display: inline-block;
    font-size: .74rem;
    color: var(--txt3);
    padding: 2px 9px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-soft);
    text-decoration: none;
    transition: all .15s;
    font-family: Arial,sans-serif;
}

.nd-flinks a:hover {
    color: var(--red);
    border-color: var(--red);
    background: var(--red-lt);
}

.nd-cr {
    text-align: center;
    padding: 8px 0 14px;
    color: var(--txt3);
    font-size: .73rem;
    font-family: Arial,sans-serif;
}

/* ===== DETAIL PAGES ===== */
.nd-dtl-title {
    line-height: 1.8;
    text-align: center;
    padding: 13px 16px;
    font-size: .97rem;
    margin: 5px 0;
    word-break: break-all;
    background: var(--bg);
    border: 1px solid var(--border);
    border-top: 4px solid var(--red);
    border-radius: var(--radius);
    box-shadow: var(--shadow1);
    font-family: 'Georgia','Times New Roman',serif;
}

.nd-dtl-title a {
    color: var(--red);
    font-weight: 700;
    margin-right: 6px;
    font-family: Arial,sans-serif;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.nd-dtl-info {
    font-size: .9rem;
    line-height: 2;
    padding: 15px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow1);
    margin: 5px 0;
    color: var(--txt2);
    font-family: Arial,sans-serif;
}

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

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

/* ===== DL BUTTONS ===== */
.nd-dl-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 13px 0;
}

.nd-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 22px;
    background: var(--black);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s, transform .14s;
    text-decoration: none;
    font-family: Arial,sans-serif;
    letter-spacing: .3px;
}

.nd-dl-btn:hover {
    background: var(--red);
    color: #fff;
    transform: translateY(-1px);
}

.nd-cli-hint {
    text-align: center;
    padding: 7px;
    font-size: .8rem;
    font-family: Arial,sans-serif;
}

.nd-cli-hint a { color: var(--teal); font-weight: 600; }
.nd-cli-hint a:hover { color: var(--teal-dk); }

/* ===== SHARE ===== */
.nd-share-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-left: 3px solid var(--teal);
    border-radius: var(--radius);
    padding: 8px 13px;
    margin: 5px 0;
    flex-wrap: wrap;
}

.nd-share-bar .ns-lbl { font-size: .74rem; color: var(--txt3); white-space: nowrap; font-family: Arial,sans-serif; text-transform: uppercase; letter-spacing: .4px; }
.nd-share-bar .ns-url { font-size: .78rem; color: var(--txt2); flex: 1; min-width: 0; word-break: break-all; font-family: Arial,sans-serif; }

.nd-share-bar .ns-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--teal);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
    font-family: Arial,sans-serif;
}

.nd-share-bar .ns-btn:hover { background: var(--teal-dk); }

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

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

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

    .nd-site-name { font-size: 1.1rem; }
    .nd-domain-tag .nt-url { font-size: .9rem; }

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

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

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

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

    /* Search: one row no wrap */
    .nd-search-card form {
        flex-wrap: nowrap;
        gap: 3px;
    }

    .nd-search-card input[type="text"] {
        height: 34px;
        font-size: .75rem;
        padding: 0 7px;
    }

    .nd-search-card button {
        height: 34px;
        padding: 0 7px;
        font-size: .70rem;
    }

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

    .nd-thumb { aspect-ratio: 600 / 350; }
    .nd-caption h5 { font-size: .72rem; }
    .nd-section { padding: 10px 10px 8px; }
    .nd-dl-btn { padding: 9px 15px; font-size: .83rem; }
}

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

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