/* Clean Sky Blue Theme - Minimal & Open */

:root {
    --sky: #29abe2;
    --sky-dark: #1a8fc4;
    --sky-light: #e8f6fd;
    --sky-pale: #f2faff;
    --sky-border: #c5e8f7;
    --coral: #f05a78;
    --green: #52b788;
    --txt-main: #2c2c3a;
    --txt-body: #4a4a5e;
    --txt-muted: #888899;
    --txt-light: #bbbbcc;
    --bg-page: #ffffff;
    --bg-off: #f8f9fc;
    --bg-card: #ffffff;
    --bdr: #e5e8ef;
    --bdr-sky: #c8e8f5;
    --shadow-xs: rgba(0, 0, 0, 0.05);
    --shadow-sm: rgba(41, 171, 226, 0.12);
    --rad: 4px;
    --rad-sm: 3px;
    --rad-lg: 8px;
    --trans: all 0.2s ease;
}

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

body {
    font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', Arial, sans-serif;
    background: var(--bg-page);
    color: var(--txt-main);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== HEADER ========== */
.np-header {
    background: var(--bg-page);
    border-bottom: 1px solid var(--bdr);
    padding: 0.55rem 0;
}

.np-header-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.np-brand-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
    justify-content: center;
}

.np-logo-link {
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    transition: var(--trans);
}

.np-logo-link:hover {
    opacity: 0.85;
}

.np-site-name {
    font-size: 24px;
    font-weight: 900;
    color: var(--txt-main);
    letter-spacing: 0.5px;
    font-style: normal;
    border-bottom: none;
    text-decoration: none;
}

.np-site-name i {
    color: var(--sky);
    font-style: normal;
    font-weight: 900;
}

.np-domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 16px;
    background: var(--sky-pale);
    border-radius: var(--rad);
    border: 1px solid var(--bdr-sky);
}

.np-domain-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--sky);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.np-domain-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--txt-main);
    font-family: 'Courier New', 'Consolas', monospace;
    letter-spacing: 0.3px;
}

/* ========== LAYOUT ========== */
.np-box {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 12px;
}

.np-blk {
    padding: 6px 0;
}

/* ========== NAVIGATION ========== */
.np-nav-frame {
    background: var(--bg-page);
    border-radius: var(--rad);
    overflow: hidden;
    margin-bottom: 6px;
    border: 1px solid var(--bdr);
}

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

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

.np-nav-zone {
    font-size: 10px;
    font-weight: 700;
    color: var(--sky);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 1px solid var(--bdr-sky);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    flex-shrink: 0;
    background: var(--sky-pale);
    letter-spacing: 0.3px;
}

.np-nav-links {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 8px;
    align-items: center;
}

.np-nav-links a {
    display: inline-block;
    color: var(--txt-body);
    text-decoration: none;
    padding: 4px 3px;
    border-radius: var(--rad-sm);
    transition: var(--trans);
    background: var(--bg-off);
    border: 1px solid var(--bdr);
    white-space: nowrap;
    text-align: center;
    font-size: 13px;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.np-nav-links a:hover {
    background: var(--sky);
    color: #fff;
    border-color: var(--sky);
}

.np-nav-links a.active {
    background: var(--sky);
    color: #fff;
    border-color: var(--sky);
    font-weight: 700;
}

/* ========== SEARCH ========== */
.np-search-box {
    background: var(--bg-page);
    border-radius: var(--rad);
    padding: 10px;
    margin-bottom: 6px;
    border: 1px solid var(--bdr);
}

.np-search-box form {
    display: flex;
    gap: 0;
    flex-wrap: nowrap;
    align-items: stretch;
}

.np-search-box input[type="text"] {
    flex: 1;
    min-width: 160px;
    padding: 9px 14px;
    border: 1px solid var(--bdr);
    border-right: none;
    border-radius: var(--rad) 0 0 var(--rad);
    background: var(--bg-page);
    color: var(--txt-main);
    font-size: 14px;
    transition: var(--trans);
    outline: none;
}

.np-search-box input[type="text"]:focus {
    border-color: var(--sky);
    box-shadow: none;
}

.np-search-box input[type="text"]::placeholder {
    color: var(--txt-light);
}

.np-search-box button {
    padding: 9px 16px;
    border: 1px solid var(--sky);
    border-radius: 0;
    background: var(--sky);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--trans);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.np-search-box button:first-of-type {
    border-radius: 0;
}

.np-search-box button:last-of-type {
    border-radius: 0 var(--rad) var(--rad) 0;
}

.np-search-box button:hover {
    background: var(--sky-dark);
    border-color: var(--sky-dark);
}

/* ========== HOT TAGS ========== */
.np-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 10px 12px;
    background: var(--bg-page);
    border-radius: var(--rad);
    margin-bottom: 6px;
    border: 1px solid var(--bdr);
}

.np-tag-item {
    padding: 4px 14px;
    background: var(--bg-off);
    border-radius: var(--rad-sm);
    color: var(--txt-body);
    text-decoration: none;
    font-size: 13px;
    transition: var(--trans);
    border: 1px solid var(--bdr);
}

.np-tag-item:hover {
    background: var(--sky);
    color: #fff;
    border-color: var(--sky);
}

/* ========== SECTION HEADINGS ========== */
.np-section {
    margin-bottom: 10px;
}

.np-sec-head {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--bdr);
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.np-sec-head::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 44px;
    height: 2px;
    background: var(--sky);
    border-radius: 1px;
}

.np-sec-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: var(--txt-main);
}

.np-sec-title a {
    color: var(--txt-main);
    text-decoration: none;
    transition: var(--trans);
}

.np-sec-title a:hover {
    color: var(--sky);
}

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

.np-grid li {
    animation: np-rise 0.38s ease backwards;
}

.np-grid li:nth-child(1) { animation-delay: 0.03s; }
.np-grid li:nth-child(2) { animation-delay: 0.06s; }
.np-grid li:nth-child(3) { animation-delay: 0.09s; }
.np-grid li:nth-child(4) { animation-delay: 0.12s; }
.np-grid li:nth-child(5) { animation-delay: 0.15s; }
.np-grid li:nth-child(6) { animation-delay: 0.18s; }
.np-grid li:nth-child(7) { animation-delay: 0.21s; }
.np-grid li:nth-child(8) { animation-delay: 0.24s; }

@keyframes np-rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.np-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--rad-sm);
    aspect-ratio: 600 / 350;
    background: var(--bg-off);
    border: 1px solid var(--bdr);
}

.np-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.38s ease;
}

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

.np-thumb::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background: var(--sky);
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    opacity: 0;
    transition: all 0.22s ease;
    z-index: 2;
}

.np-thumb:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.np-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(41, 171, 226, 0.18);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.np-thumb:hover::after {
    opacity: 1;
}

.np-film-info {
    padding: 6px 0 0;
}

.np-film-info h5 {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--txt-body);
}

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

.np-film-info h5 a:hover {
    color: var(--sky);
}

/* ========== PAGE BODY ========== */
.np-page {
    padding: 6px 0;
}

/* ========== DETAIL - TITLE BAR ========== */
.np-entry-bar {
    line-height: 1.8;
    text-align: center;
    padding: 14px 18px;
    font-size: 16px;
    margin: 8px 0;
    word-break: break-all;
    background: var(--sky-pale);
    border-radius: var(--rad);
    border: 1px solid var(--bdr-sky);
    border-left: 3px solid var(--sky);
}

.np-entry-bar a {
    color: var(--sky);
    text-decoration: none;
    font-weight: 600;
    margin-right: 8px;
}

/* ========== DETAIL - INFO BOX ========== */
.np-info-box {
    font-size: 14px;
    line-height: 1.9;
    padding: 18px 20px;
    background: var(--bg-page);
    border-radius: var(--rad);
    border: 1px solid var(--bdr);
    margin: 8px 0;
    color: var(--txt-body);
}

.np-capture-area {
    margin-top: 10px;
}

.np-capture-area picture {
    display: block;
    width: 100%;
}

.np-capture-area picture img,
.np-capture-area img {
    width: 100%;
    height: auto;
    border-radius: var(--rad-sm);
    display: block;
}

/* ========== DOWNLOAD BUTTONS ========== */
.np-dl-strip {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 14px 8px;
    margin: 8px 0;
    flex-wrap: nowrap;
}

.np-btn {
    padding: 10px 24px;
    border-radius: var(--rad);
    background: var(--sky);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--trans);
    border: 1px solid var(--sky);
    letter-spacing: 0.3px;
    white-space: nowrap;
    display: inline-block;
}

.np-btn:hover {
    background: var(--sky-dark);
    border-color: var(--sky-dark);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px var(--shadow-sm);
}

/* ========== SHARE SECTION ========== */
.np-share-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-page);
    border-radius: var(--rad);
    border: 1px solid var(--bdr);
    margin: 8px 0;
    flex-wrap: nowrap;
}

.np-url-part {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    background: var(--bg-off);
    border-radius: var(--rad-sm);
    padding: 7px 12px;
    border: 1px solid var(--bdr);
    overflow: hidden;
}

.np-url-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--sky);
    white-space: nowrap;
    flex-shrink: 0;
}

.np-url-val {
    font-size: 12px;
    color: var(--txt-muted);
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.np-copy-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: var(--sky);
    color: #fff;
    border: none;
    border-radius: var(--rad);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--trans);
    white-space: nowrap;
    flex-shrink: 0;
}

.np-copy-btn:hover {
    background: var(--sky-dark);
}

.np-copy-icon {
    font-size: 14px;
}

/* ========== PAGINATION ========== */
.page_info_div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    padding: 14px 0;
}

.np-pg {
    display: inline-block;
    padding: 7px 13px;
    border-radius: var(--rad-sm);
    font-size: 13px;
    transition: var(--trans);
    min-width: 36px;
    text-align: center;
    text-decoration: none;
}

.a_page_info {
    background: var(--bg-page);
    color: var(--txt-body);
    border: 1px solid var(--bdr);
}

.a_page_info:hover {
    background: var(--sky);
    border-color: var(--sky);
    color: #fff;
}

.page_info_focus {
    background: var(--sky);
    color: #fff;
    border: 1px solid var(--sky);
    font-weight: 700;
    cursor: default;
}

/* ========== FOOTER ========== */
.np-footer {
    padding: 18px 0;
    text-align: center;
    border-top: 1px solid var(--bdr);
    margin-top: 16px;
    background: var(--bg-page);
}

.np-footer p {
    margin: 5px 0;
    color: var(--txt-muted);
    font-size: 13px;
}

.np-footer a {
    color: var(--txt-muted);
    text-decoration: none;
    transition: var(--trans);
}

.np-footer a:hover {
    color: var(--sky);
}

/* ========== FRIENDLY LINKS ========== */
.np-flinks {
    padding: 10px 14px;
    background: var(--bg-page);
    border-radius: var(--rad);
    border: 1px solid var(--bdr);
}

.np-flinks dl {
    margin: 0;
}

.np-flinks dd {
    display: inline-block;
    margin: 3px 4px;
}

.np-flinks a {
    color: var(--sky);
    text-decoration: none;
    font-size: 13px;
    transition: var(--trans);
}

.np-flinks a:hover {
    color: var(--sky-dark);
    text-decoration: underline;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .np-box {
        padding: 0 8px;
    }

    .np-blk {
        padding: 4px 0;
    }

    .np-site-name {
        font-size: 19px;
    }

    .np-domain-badge {
        padding: 4px 12px;
        gap: 5px;
    }

    .np-domain-label {
        font-size: 10px;
    }

    .np-domain-text {
        font-size: 14px;
    }

    /* Mobile nav: 15% zone, 85% links, 4 per row */
    .np-nav-zone {
        width: 15%;
        font-size: 10px;
        padding: 7px 2px;
    }

    .np-nav-links {
        width: 85%;
        gap: 4px;
        padding: 7px 4px;
    }

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

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

    .np-sec-title {
        font-size: 15px;
    }

    .np-search-box input[type="text"] {
        min-width: 80px;
        font-size: 13px;
    }

    .np-search-box button {
        padding: 9px 10px;
        font-size: 12px;
    }

    .np-dl-strip {
        padding: 12px 6px;
        gap: 8px;
    }

    .np-btn {
        padding: 9px 14px;
        font-size: 13px;
    }

    .np-entry-bar {
        font-size: 14px;
        padding: 12px 12px;
    }

    .np-info-box {
        font-size: 13px;
        padding: 14px 14px;
    }

    .np-share-bar {
        padding: 8px 10px;
        gap: 6px;
    }

    .np-url-label {
        font-size: 10px;
    }

    .np-url-val {
        font-size: 10px;
    }

    .np-copy-btn {
        padding: 7px 12px;
        font-size: 12px;
    }

    .np-pg, .a_page_info, .page_info_focus {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 30px;
    }
}

@media (max-width: 480px) {
    .np-brand-row {
        gap: 10px;
    }

    .np-site-name {
        font-size: 17px;
    }

    .np-domain-text {
        font-size: 13px;
    }

    .np-domain-label {
        font-size: 9px;
    }

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

    .np-nav-links {
        width: 85%;
        gap: 3px;
        padding: 6px 3px;
    }

    .np-nav-links a {
        font-size: 12px;
        padding: 3px 1px;
        width: calc((100% - 9px) / 4);
    }

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

    .np-film-info h5 {
        font-size: 12px;
    }

    .np-sec-title {
        font-size: 14px;
    }

    .np-search-box input[type="text"] {
        min-width: 70px;
        padding: 8px 10px;
        font-size: 12px;
    }

    .np-search-box button {
        padding: 8px 8px;
        font-size: 11px;
    }

    .np-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .np-dl-strip {
        gap: 6px;
        padding: 10px 4px;
    }

    .np-copy-btn {
        padding: 6px 9px;
        font-size: 11px;
    }

    .np-copy-icon {
        font-size: 12px;
    }
}

@media (min-width: 769px) {
    .np-nav-zone {
        font-size: 13px;
    }

    .np-nav-links a {
        font-size: 13px;
    }

    .np-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========== UTILITIES ========== */
.hide-mob {
    display: block;
}

.hide-pc {
    display: block;
}

@media (max-width: 768px) {
    .hide-mob {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hide-pc {
        display: none !important;
    }
}

.cf::after {
    content: "";
    display: table;
    clear: both;
}

img[data-original] {
    background: var(--bg-off);
}
