:root {
    --nx-bg: #08090d;
    --nx-bg-2: #10131a;
    --nx-panel: #151922;
    --nx-panel-2: #1b202b;
    --nx-line: #2a303c;
    --nx-text: #f5f7fb;
    --nx-soft: #a7b0bf;
    --nx-muted: #697386;
    --nx-red: #ff4d5d;
    --nx-red-2: #d93045;
    --nx-amber: #ffb45c;
    --nx-cyan: #53d5ff;
    --nx-shadow: 0 18px 44px rgba(0, 0, 0, .34);
}

* {
    box-sizing: border-box;
}

body.nx-body {
    margin: 0;
    min-width: 320px;
    color: var(--nx-text);
    font-family: Arial, "Microsoft YaHei", sans-serif;
    line-height: 1.58;
    background:
        linear-gradient(180deg, #0d1017 0, var(--nx-bg) 360px),
        var(--nx-bg);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input {
    font: inherit;
}

.nx-wrap {
    width: min(1400px, calc(100% - 48px));
    margin: 0 auto;
}

.nx-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: rgba(8, 9, 13, .88);
    backdrop-filter: blur(18px);
}

.nx-topbar {
    min-height: 76px;
    display: grid;
    grid-template-columns: 250px minmax(320px, 560px) minmax(170px, 1fr) 44px;
    gap: 22px;
    align-items: center;
}

.nx-brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.nx-brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--nx-red), var(--nx-amber));
    box-shadow: 0 12px 28px rgba(255, 77, 93, .28);
}

.nx-brand-copy {
    min-width: 0;
    display: grid;
}

.nx-brand-copy strong {
    overflow: hidden;
    color: #fff;
    font-size: 22px;
    line-height: 1.1;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nx-brand-copy small {
    color: var(--nx-muted);
    font-size: 12px;
}

.nx-search,
.nx-list-search {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    background: rgba(255, 255, 255, .055);
}

.nx-search span {
    padding-left: 10px;
    color: var(--nx-amber);
    font-size: 13px;
}

.nx-search input,
.nx-list-search input {
    min-width: 0;
    height: 40px;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
}

.nx-search input::placeholder,
.nx-list-search input::placeholder {
    color: #667085;
}

.nx-search button,
.nx-list-search button,
.nx-btn,
.nx-section-head button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    background: var(--nx-red);
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.nx-search button:hover,
.nx-list-search button:hover,
.nx-btn:hover,
.nx-section-head button:hover {
    transform: translateY(-1px);
    background: var(--nx-red-2);
    box-shadow: 0 12px 28px rgba(255, 77, 93, .2);
}

.nx-btn-ghost {
    color: var(--nx-text);
    border: 1px solid var(--nx-line);
    background: rgba(255, 255, 255, .06);
}

.nx-btn-ghost:hover {
    background: rgba(255, 255, 255, .1);
}

.nx-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.nx-actions a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--nx-line);
    border-radius: 8px;
    padding: 0 12px;
    color: var(--nx-soft);
    font-size: 13px;
    background: rgba(255, 255, 255, .035);
}

.nx-actions a:hover {
    color: #fff;
    border-color: rgba(255, 77, 93, .55);
}

.nx-menu {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--nx-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
}

.nx-menu span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: #fff;
}

.nx-nav {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: visible;
}

.nx-nav > a,
.nx-nav-label {
    position: relative;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    border: 0;
    border-radius: 8px;
    padding: 0 12px;
    color: var(--nx-soft);
    cursor: default;
    font: inherit;
    background: transparent;
}

.nx-nav > a {
    cursor: pointer;
}

.nx-nav > a:hover,
.nx-nav > a.is-active,
.nx-nav-label.is-active,
.nx-nav-group:hover .nx-nav-label {
    color: #fff;
    background: rgba(255, 77, 93, .14);
}

.nx-nav-group {
    position: relative;
}

.nx-nav-drop {
    position: absolute;
    left: 0;
    top: 100%;
    width: 230px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--nx-line);
    border-radius: 8px;
    background: #12161f;
    box-shadow: var(--nx-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.nx-nav-group:hover .nx-nav-drop {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nx-nav-drop a {
    overflow: hidden;
    border-radius: 6px;
    padding: 7px 9px;
    color: var(--nx-soft);
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nx-nav-drop a:hover {
    color: #fff;
    background: rgba(255, 77, 93, .16);
}

.nx-main {
    padding: 28px 0 56px;
}

.nx-hero,
.nx-detail-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px 290px;
    gap: 24px;
    align-items: end;
    min-height: 470px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 8px;
    padding: 42px;
    background: #10131a;
    box-shadow: var(--nx-shadow);
}

.nx-hero-bg,
.nx-detail-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.nx-hero-bg img,
.nx-detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .22;
    filter: blur(14px) saturate(1.15);
    transform: scale(1.05);
}

.nx-hero::after,
.nx-detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(8, 9, 13, .96) 0%, rgba(8, 9, 13, .78) 48%, rgba(8, 9, 13, .92) 100%),
        linear-gradient(180deg, rgba(8, 9, 13, .15), rgba(8, 9, 13, .9));
}

.nx-hero-copy,
.nx-hero-poster,
.nx-hero-side,
.nx-detail-poster,
.nx-detail-copy {
    position: relative;
    z-index: 2;
}

.nx-kicker,
.nx-section-head span {
    color: var(--nx-amber);
    font-size: 13px;
    font-weight: 700;
}

.nx-hero-copy h1,
.nx-detail-copy h1 {
    max-width: 760px;
    margin: 10px 0 14px;
    font-size: clamp(36px, 5vw, 68px);
    line-height: 1.05;
}

.nx-hero-copy p,
.nx-detail-copy p,
.nx-list-hero p {
    max-width: 760px;
    color: var(--nx-soft);
}

.nx-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 18px;
}

.nx-meta-line span {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 8px;
    padding: 0 10px;
    color: #d7deea;
    font-size: 13px;
    background: rgba(255, 255, 255, .055);
}

.nx-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nx-hero-poster,
.nx-detail-poster {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    aspect-ratio: 224 / 315;
    background: #171c26;
}

.nx-hero-poster img,
.nx-detail-poster img,
.nx-card-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .22s ease;
}

.nx-hero-poster span,
.nx-detail-poster span,
.nx-card-pic span {
    position: absolute;
    right: 8px;
    bottom: 8px;
    max-width: calc(100% - 16px);
    overflow: hidden;
    border-radius: 6px;
    padding: 3px 7px;
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
    background: rgba(8, 9, 13, .76);
}

.nx-hero-side {
    align-self: stretch;
    display: grid;
    gap: 10px;
    align-content: center;
    border-left: 1px solid rgba(255, 255, 255, .1);
    padding-left: 24px;
}

.nx-hero-side strong {
    color: #fff;
    font-size: 18px;
}

.nx-hero-side a {
    min-width: 0;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, .055);
}

.nx-hero-side img {
    width: 58px;
    aspect-ratio: 224 / 315;
    border-radius: 6px;
    object-fit: cover;
}

.nx-hero-side span {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nx-section,
.nx-panel,
.nx-list-hero,
.nx-filter,
.nx-watch,
.nx-hot-search {
    margin-top: 30px;
}

.nx-section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 16px;
}

.nx-section-head h2 {
    margin: 2px 0 0;
    color: #fff;
    font-size: 26px;
    line-height: 1.18;
}

.nx-section-head > a {
    color: var(--nx-soft);
    font-size: 14px;
}

.nx-section-head > a:hover {
    color: #fff;
}

.nx-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 24px 16px;
}

.nx-grid--small {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.nx-card {
    min-width: 0;
}

.nx-card-pic {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 8px;
    aspect-ratio: 224 / 315;
    background: #171c26;
}

.nx-card:hover .nx-card-pic img,
.nx-hero-poster:hover img {
    transform: scale(1.045);
}

.nx-card-body h3 {
    min-width: 0;
    overflow: hidden;
    margin: 9px 0 2px;
    color: #fff;
    font-size: 15px;
    line-height: 1.35;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nx-card-body p {
    overflow: hidden;
    margin: 0;
    color: var(--nx-muted);
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nx-feed {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.nx-feed a {
    min-width: 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, .045);
}

.nx-feed strong,
.nx-feed span {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nx-feed strong {
    color: #fff;
}

.nx-feed span {
    color: var(--nx-muted);
    font-size: 13px;
}

.nx-list-hero,
.nx-filter,
.nx-panel,
.nx-watch {
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 8px;
    background: rgba(21, 25, 34, .86);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
}

.nx-list-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 20px;
    align-items: end;
    padding: 26px;
}

.nx-list-hero h1 {
    margin: 6px 0 6px;
    font-size: 34px;
}

.nx-list-search {
    background: #0f131b;
}

.nx-filter {
    padding: 12px 18px;
}

.nx-filter-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, .08);
}

.nx-filter-row:last-child {
    border-bottom: 0;
}

.nx-filter-row strong {
    color: var(--nx-soft);
    line-height: 32px;
}

.nx-filter-row div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nx-filter-row a,
.nx-pages a,
.nx-pages span {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    padding: 0 12px;
    color: var(--nx-soft);
    background: rgba(255, 255, 255, .045);
}

.nx-filter-row a:hover,
.nx-filter-row a.is-active,
.nx-pages a:hover,
.nx-pages span.is-active {
    color: #fff;
    border-color: rgba(255, 77, 93, .6);
    background: rgba(255, 77, 93, .22);
}

.nx-detail-hero {
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: center;
    min-height: 420px;
}

.nx-detail-copy p {
    margin-bottom: 16px;
}

.nx-credits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 860px;
    margin: 0 0 18px;
}

.nx-credits div {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, .045);
}

.nx-credits dt {
    color: var(--nx-muted);
    font-size: 12px;
}

.nx-credits dd {
    overflow: hidden;
    margin: 2px 0 0;
    color: #fff;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nx-panel,
.nx-watch {
    padding: 22px;
}

.nx-source + .nx-source {
    margin-top: 18px;
}

.nx-source h3 {
    margin: 0 0 10px;
    color: var(--nx-soft);
    font-size: 15px;
}

.nx-episodes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nx-episodes a {
    min-width: 74px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    padding: 0 12px;
    color: #dbe2ee;
    white-space: nowrap;
    text-overflow: ellipsis;
    background: rgba(255, 255, 255, .055);
}

.nx-episodes a:hover,
.nx-episodes a.is-active {
    color: #fff;
    border-color: rgba(255, 77, 93, .62);
    background: var(--nx-red);
}

.nx-title-links {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    margin-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 18px;
}

.nx-title-links strong {
    color: var(--nx-amber);
}

.nx-title-links div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nx-title-links a {
    max-width: 260px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    padding: 0 10px;
    color: var(--nx-soft);
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
    background: rgba(255, 255, 255, .045);
}

.nx-title-links a:hover {
    color: #fff;
    border-color: rgba(255, 77, 93, .58);
}

.nx-story {
    color: #c8d0dc;
}

.nx-story p {
    margin: 0 0 12px;
}

.nx-next {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nx-next a,
.nx-next span {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    padding: 0 14px;
    color: var(--nx-soft);
    background: rgba(255, 255, 255, .045);
}

.nx-watch-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.nx-watch-head h1 {
    margin: 4px 0 2px;
    font-size: 30px;
}

.nx-watch-head p {
    margin: 0;
    color: var(--nx-muted);
}

.nx-player {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    background: #000;
}

.nx-player-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 430px;
    background: #000;
}

.nx-play-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.nx-play-nav a,
.nx-play-nav span {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--nx-soft);
    white-space: nowrap;
    text-overflow: ellipsis;
    background: rgba(255, 255, 255, .045);
}

.nx-play-nav a:hover {
    color: #fff;
    border-color: rgba(255, 77, 93, .55);
}

.nx-pages {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.nx-empty {
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    padding: 44px;
    color: var(--nx-muted);
    text-align: center;
    background: rgba(255, 255, 255, .045);
}

.nx-hot-search {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 26px;
}

.nx-hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nx-hot-tags a {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    padding: 0 12px;
    color: var(--nx-soft);
    background: rgba(255, 255, 255, .045);
}

.nx-hot-tags a:hover {
    color: #fff;
    border-color: rgba(255, 77, 93, .5);
}

.nx-footer {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 28px 0 44px;
    color: var(--nx-muted);
    text-align: center;
}

.nx-footer strong {
    color: #fff;
}

.nx-footer p {
    margin: 6px 0 0;
}

@media (max-width: 1100px) {
    .nx-topbar {
        grid-template-columns: 230px minmax(260px, 1fr) 44px;
    }

    .nx-actions {
        display: none;
    }

    .nx-menu {
        display: block;
    }

    .nx-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: min(100% - 24px, 1400px);
        margin: 0 auto 14px;
        padding: 12px;
        border: 1px solid rgba(255, 255, 255, .08);
        border-radius: 8px;
        background: rgba(15, 19, 27, .96);
        box-shadow: var(--nx-shadow);
    }

    .is-nx-menu-open .nx-nav {
        display: flex;
    }

    .nx-nav > a,
    .nx-nav-label {
        width: 100%;
        min-height: 42px;
        justify-content: space-between;
        border: 1px solid rgba(255, 255, 255, .08);
        background: rgba(255, 255, 255, .045);
    }

    .nx-nav-label::after {
        content: "";
        width: 7px;
        height: 7px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform .18s ease;
    }

    .nx-nav-group.is-open .nx-nav-label::after {
        transform: rotate(225deg);
    }

    .nx-nav-group {
        width: 100%;
    }

    .nx-nav-drop {
        position: static;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 0;
        padding: 0 8px;
        border: 0;
        box-shadow: none;
        background: transparent;
        transition: max-height .22s ease, padding .22s ease, margin .22s ease;
    }

    .nx-nav-group.is-open .nx-nav-drop {
        max-height: 420px;
        margin-top: 8px;
        padding: 8px;
        border: 1px solid rgba(255, 255, 255, .08);
        background: rgba(255, 255, 255, .035);
        overflow-y: auto;
    }

    .nx-nav-drop a {
        min-height: 34px;
        display: inline-flex;
        align-items: center;
        background: rgba(255, 255, 255, .045);
    }

    .nx-hero {
        grid-template-columns: minmax(0, 1fr) 220px;
    }

    .nx-hero-side {
        grid-column: 1 / -1;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .1);
        padding: 18px 0 0;
    }

    .nx-hero-side strong {
        grid-column: 1 / -1;
    }

    .nx-feed {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nx-detail-hero {
        grid-template-columns: 220px minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .nx-wrap {
        width: min(100% - 24px, 1400px);
    }

    .nx-topbar,
    .nx-list-hero,
    .nx-hero,
    .nx-detail-hero {
        grid-template-columns: 1fr;
    }

    .nx-topbar {
        gap: 12px;
        padding: 12px 0;
    }

    .nx-menu {
        position: absolute;
        right: 12px;
        top: 16px;
    }

    .nx-brand {
        padding-right: 54px;
    }

    .nx-nav-drop {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nx-hero,
    .nx-detail-hero {
        min-height: auto;
        padding: 24px;
    }

    .nx-hero-copy h1,
    .nx-detail-copy h1 {
        font-size: 34px;
    }

    .nx-hero-poster,
    .nx-detail-poster {
        width: min(230px, 100%);
    }

    .nx-hero-side,
    .nx-feed,
    .nx-credits,
    .nx-play-nav,
    .nx-title-links,
    .nx-filter-row {
        grid-template-columns: 1fr;
    }

    .nx-hero-side {
        display: grid;
    }

    .nx-watch-head,
    .nx-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .nx-player-container {
        min-height: 230px;
    }
}
