/* Media Site - Netflix Cinematic Dark Style */

:root {
    --nf-red: #e50914;
    --nf-red2: #b20710;
    --nf-red3: #f40612;
    --nf-red-dim: rgba(229,9,20,0.18);
    --nf-red-glow: rgba(229,9,20,0.35);
    --nf-black: #000000;
    --nf-dark: #141414;
    --nf-dark2: #1a1a1a;
    --nf-dark3: #1f1f1f;
    --nf-dark4: #242424;
    --nf-dark5: #2a2a2a;
    --nf-border: #2a2a2a;
    --nf-border2: #333333;
    --nf-border3: #3a3a3a;
    --txt-white: #ffffff;
    --txt-light: #e5e5e5;
    --txt-mid: #999999;
    --txt-dim: #5a5a5a;
    --grad-red: linear-gradient(135deg, #e50914 0%, #b20710 100%);
    --grad-card: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    --shadow-red: 0 0 20px rgba(229,9,20,0.4), 0 4px 16px rgba(0,0,0,0.7);
    --shadow-card: 0 4px 20px rgba(0,0,0,0.8);
    --shadow-hover: 0 8px 32px rgba(0,0,0,0.9);
    --r1: 2px;
    --r2: 4px;
    --r3: 6px;
    --r4: 8px;
    --r5: 4px;
    --ease: all 0.2s ease;
}

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

body {
    font-family: 'Netflix Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--nf-dark);
    color: var(--txt-light);
    line-height: 1.6;
    font-size: 14px;
    overflow-x: hidden;
}

/* ===== HEADER ===== */
.nf-header {
    background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(20,20,20,0.98) 100%);
    border-bottom: 1px solid var(--nf-border);
    padding: 0.55rem 0;
}

.nf-header-row {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nf-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
    justify-content: center;
}

.nf-logo-link {
    text-decoration: none;
    display: inline-block;
}

.nf-site-name {
    font-size: 24px;
    font-weight: 900;
    color: var(--nf-red);
    letter-spacing: -0.5px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    display: inline-block;
    line-height: 1;
    text-transform: uppercase;
}

.nf-domain-badge {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 14px;
    background: rgba(229,9,20,0.1);
    border: 1px solid rgba(229,9,20,0.3);
    border-radius: var(--r2);
}

.nf-domain-lbl {
    font-size: 10px;
    font-weight: 700;
    color: var(--nf-red);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.nf-domain-url {
    font-size: 17px;
    font-weight: 700;
    color: var(--txt-white);
    font-family: 'Courier New', 'Lucida Console', monospace;
    letter-spacing: 0.2px;
}

/* ===== LAYOUT ===== */
.nf-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 14px;
}

.nf-seg {
    padding: 6px 0;
}

/* ===== NAV PANEL ===== */
.nf-navpanel {
    background: var(--nf-dark2);
    border-radius: var(--r4);
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid var(--nf-border);
}

.nf-navrow {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--nf-border);
}

.nf-navrow:last-child {
    border-bottom: none;
}

.nf-zone-lbl {
    font-size: 13px;
    font-weight: 700;
    color: var(--nf-red);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 1px solid var(--nf-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 5px;
    flex-shrink: 0;
    background: rgba(229,9,20,0.06);
}

.nf-zone-links {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 9px 10px;
    align-items: center;
}

.nf-zone-links a {
    display: inline-block;
    color: var(--txt-mid);
    text-decoration: none;
    padding: 4px 4px;
    border-radius: var(--r1);
    transition: var(--ease);
    background: var(--nf-dark4);
    border: 1px solid var(--nf-border2);
    white-space: nowrap;
    text-align: center;
    font-size: 13px;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.nf-zone-links a:hover {
    background: var(--nf-red);
    color: var(--txt-white);
    border-color: var(--nf-red);
    font-weight: 600;
}

.nf-zone-links a.active {
    background: var(--nf-red);
    color: var(--txt-white);
    border-color: var(--nf-red);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.nf-searchbar {
    background: var(--nf-dark2);
    border-radius: var(--r4);
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid var(--nf-border);
}

.nf-searchbar form {
    display: flex;
    gap: 7px;
    flex-wrap: nowrap;
    align-items: center;
}

.nf-searchbar input[type="text"] {
    flex: 1;
    min-width: 100px;
    padding: 9px 14px;
    border: 1px solid var(--nf-border3);
    border-radius: var(--r2);
    background: var(--nf-dark4);
    color: var(--txt-white);
    font-size: 13px;
    transition: var(--ease);
    outline: none;
}

.nf-searchbar input[type="text"]:focus {
    border-color: var(--nf-red);
    box-shadow: 0 0 0 2px var(--nf-red-dim);
}

.nf-searchbar input[type="text"]::placeholder {
    color: var(--txt-dim);
}

.nf-searchbar button {
    padding: 9px 16px;
    border: none;
    border-radius: var(--r2);
    background: var(--nf-red);
    color: var(--txt-white);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.2px;
}

.nf-searchbar button:hover {
    background: var(--nf-red3);
    box-shadow: var(--shadow-red);
}

/* ===== TAGS ===== */
.nf-tagrow {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 10px 12px;
    background: var(--nf-dark2);
    border-radius: var(--r4);
    margin-bottom: 8px;
    border: 1px solid var(--nf-border);
}

.nf-tagpill {
    padding: 4px 13px;
    background: var(--nf-dark4);
    border-radius: var(--r2);
    color: var(--txt-mid);
    text-decoration: none;
    font-size: 12px;
    transition: var(--ease);
    border: 1px solid var(--nf-border2);
}

.nf-tagpill:hover {
    background: var(--nf-red);
    color: var(--txt-white);
    border-color: var(--nf-red);
    font-weight: 600;
}

/* ===== SECTION ===== */
.nf-section {
    margin-bottom: 12px;
}

.nf-sec-hd {
    margin-bottom: 11px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--nf-border);
    position: relative;
}

.nf-sec-hd::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1px;
    bottom: 1px;
    width: 3px;
    background: var(--nf-red);
    border-radius: 2px;
}

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

.nf-sec-ttl {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: var(--txt-white);
    padding-left: 12px;
    letter-spacing: -0.1px;
}

.nf-sec-ttl a {
    color: var(--txt-white);
    text-decoration: none;
    transition: var(--ease);
}

.nf-sec-ttl a:hover {
    color: var(--nf-red);
}

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

.nf-filmgrid li {
    position: relative;
}

.nf-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--r3);
    aspect-ratio: 600 / 350;
    background: var(--nf-dark4);
    border: 1px solid var(--nf-border2);
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.nf-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.3s ease;
    display: block;
}

.nf-thumb:hover {
    box-shadow: var(--shadow-red);
    border-color: var(--nf-red);
    transform: scale(1.03);
    z-index: 2;
}

.nf-thumb:hover img {
    transform: scale(1.06);
    filter: brightness(0.75);
}

/* Red glow outline on hover */
.nf-thumb::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    width: 44px;
    height: 44px;
    background: var(--nf-red);
    color: var(--txt-white);
    font-size: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
    z-index: 3;
    line-height: 44px;
    text-align: center;
    padding-left: 3px;
    box-shadow: 0 0 24px rgba(229,9,20,0.8);
}

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

.nf-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-card);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 1;
    pointer-events: none;
}

.nf-thumb:hover::before {
    opacity: 1;
}

.nf-caption {
    padding: 7px 0 3px;
}

.nf-caption h5 {
    font-size: 12px;
    font-weight: 400;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.5;
    color: var(--txt-mid);
}

.nf-caption h5 a {
    color: inherit;
    text-decoration: none;
    transition: var(--ease);
}

.nf-caption h5 a:hover {
    color: var(--txt-white);
}

/* ===== DETAIL PAGE ===== */
.nf-dtitle {
    line-height: 1.7;
    text-align: center;
    padding: 15px 18px;
    font-size: 16px;
    margin: 10px 0;
    word-break: break-all;
    background: var(--nf-dark2);
    border-radius: var(--r4);
    border: 1px solid var(--nf-border);
    border-top: 3px solid var(--nf-red);
}

.nf-dtitle a {
    color: var(--nf-red);
    text-decoration: none;
    font-weight: 700;
    margin-right: 8px;
}

.nf-dtitle b {
    color: var(--txt-white);
}

.nf-infobox {
    font-size: 14px;
    line-height: 1.9;
    padding: 18px 20px;
    background: var(--nf-dark2);
    border-radius: var(--r4);
    margin: 8px 0;
    border: 1px solid var(--nf-border);
    color: var(--txt-mid);
}

/* ===== CAPTURES ===== */
.nf-prevblock {
    margin: 10px 0;
}

.nf-prevblock picture,
.nf-prevblock picture img {
    display: block;
    width: 100%;
    border-radius: var(--r3);
}

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

.nf-actbtn {
    display: inline-block;
    padding: 10px 26px;
    border-radius: var(--r2);
    background: var(--nf-red);
    color: var(--txt-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: var(--ease);
    letter-spacing: 0.3px;
}

.nf-actbtn:hover {
    background: var(--nf-red3);
    box-shadow: var(--shadow-red);
    transform: scale(1.04);
}

/* ===== CLIENT LINKS ===== */
.nf-pclink, .nf-moblink {
    text-align: center;
    padding: 10px;
}

.nf-pclink a, .nf-moblink a {
    color: var(--nf-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--ease);
}

.nf-pclink a:hover, .nf-moblink a:hover {
    color: var(--nf-red3);
    text-decoration: underline;
}

/* ===== SHARE ===== */
.nf-sharebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--nf-dark2);
    border-radius: var(--r4);
    border: 1px solid var(--nf-border);
    margin: 8px 0;
    flex-wrap: nowrap;
}

.nf-urlbox {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    min-width: 0;
    padding: 7px 12px;
    background: var(--nf-dark4);
    border-radius: var(--r2);
    border: 1px solid var(--nf-border2);
    overflow: hidden;
}

.nf-urllabel {
    font-size: 10px;
    font-weight: 700;
    color: var(--nf-red);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nf-urlval {
    font-size: 11px;
    color: var(--txt-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    font-family: 'Courier New', monospace;
}

.nf-copybtn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    background: var(--nf-dark4);
    color: var(--txt-mid);
    border: 1px solid var(--nf-border2);
    border-radius: var(--r2);
    cursor: pointer;
    font-size: 12px;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 500;
}

.nf-copybtn:hover {
    background: var(--nf-red);
    color: var(--txt-white);
    border-color: var(--nf-red);
    font-weight: 700;
}

.nf-ico { font-size: 13px; }

/* ===== PAGINATION ===== */
.nf-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    padding: 16px 0;
}

.nf-pgbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 13px;
    border-radius: var(--r2);
    font-size: 13px;
    transition: var(--ease);
    min-width: 36px;
    text-align: center;
    text-decoration: none;
}

.nf-pglink {
    background: var(--nf-dark4);
    color: var(--txt-mid);
    border: 1px solid var(--nf-border2);
}

.nf-pglink:hover {
    background: var(--nf-dark5);
    color: var(--txt-white);
    border-color: var(--nf-border3);
}

.nf-pgcur {
    background: var(--nf-red);
    color: var(--txt-white);
    border: 1px solid transparent;
    cursor: default;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(229,9,20,0.5);
}

/* ===== FOOTER ===== */
.nf-flinks-sec { margin-bottom: 8px; }

.nf-flink-box {
    padding: 11px 13px;
    background: var(--nf-dark2);
    border-radius: var(--r4);
    border: 1px solid var(--nf-border);
}

.nf-flink-box dl { margin: 0; }
.nf-flink-box dd { display: inline-block; margin: 3px 4px; }

.nf-flink-box a {
    color: var(--txt-dim);
    text-decoration: none;
    transition: var(--ease);
    font-size: 13px;
}

.nf-flink-box a:hover { color: var(--txt-light); }

.nf-footer {
    padding: 16px 0;
    text-align: center;
    border-top: 1px solid var(--nf-border);
    margin-top: 12px;
}

.nf-footer p {
    margin: 5px 0;
    color: var(--txt-dim);
    font-size: 12px;
}

.nf-footer a {
    color: var(--txt-dim);
    text-decoration: none;
    transition: var(--ease);
}

.nf-footer a:hover { color: var(--txt-light); }

/* ===== VISIBILITY ===== */
.nf-pc { display: block; }
.nf-mob { display: block; }

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nf-wrap { padding: 0 8px; }
    .nf-brand { gap: 10px; }
    .nf-site-name { font-size: 20px; }
    .nf-domain-url { font-size: 15px; }
    .nf-domain-lbl { font-size: 9px; }
    .nf-domain-badge { padding: 4px 11px; gap: 7px; }
    .nf-seg { padding: 5px 0; }

    .nf-filmgrid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .nf-caption h5 { font-size: 11px; }
    .nf-sec-ttl { font-size: 15px; }
    .nf-section { margin-bottom: 10px; }

    .nf-navrow .nf-zone-lbl {
        width: 15%;
        font-size: 10px;
        padding: 7px 3px;
    }
    .nf-navrow .nf-zone-links {
        width: 85%;
        gap: 4px;
        padding: 7px 5px;
    }
    .nf-navrow .nf-zone-links a {
        font-size: 12px;
        padding: 4px 2px;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    .nf-searchbar { padding: 9px 10px; }
    .nf-searchbar input[type="text"] { min-width: 80px; font-size: 12px; padding: 7px 10px; }
    .nf-searchbar button { padding: 7px 12px; font-size: 11px; }

    .nf-actrow { padding: 12px 8px; gap: 8px; }
    .nf-actbtn { padding: 9px 18px; font-size: 12px; }

    .nf-sharebar { padding: 9px 10px; gap: 6px; }
    .nf-copybtn { padding: 6px 10px; font-size: 11px; }

    .nf-dtitle { font-size: 14px; padding: 12px 12px; }
    .nf-infobox { padding: 13px 14px; font-size: 13px; }

    .nf-pager { gap: 4px; padding: 13px 0; }
    .nf-pgbtn { padding: 5px 10px; font-size: 12px; min-width: 30px; }

    .nf-tagrow { gap: 5px; padding: 9px 10px; }
    .nf-tagpill { padding: 4px 10px; font-size: 11px; }
}

@media (max-width: 480px) {
    .nf-site-name { font-size: 18px; }
    .nf-domain-url { font-size: 14px; }

    .nf-navrow .nf-zone-lbl { font-size: 10px; width: 15%; padding: 6px 2px; }
    .nf-navrow .nf-zone-links { width: 85%; gap: 3px; padding: 6px 4px; }
    .nf-navrow .nf-zone-links a { font-size: 12px; padding: 3px 1px; width: calc((100% - 9px) / 4); }

    .nf-filmgrid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
    .nf-caption h5 { font-size: 11px; }
    .nf-actbtn { padding: 8px 14px; font-size: 11px; }
}

/* Clearfix */
.cfix::after { content: ""; display: table; clear: both; }
img[data-original] { background: var(--nf-dark4); }
