:root {
    --nx-bg: #07050b;
    --nx-panel: rgba(22, 14, 31, .82);
    --nx-card: rgba(255, 255, 255, .065);
    --nx-card-2: rgba(255, 47, 146, .12);
    --nx-line: rgba(255, 255, 255, .1);
    --nx-pink: #ff2f92;
    --nx-purple: #9d4dff;
    --nx-cyan: #00e5ff;
    --nx-text: #fff7fb;
    --nx-muted: #cfc0d9;
    --nx-dim: #8d7a9b;
    --nx-shadow: 0 24px 80px rgba(0, 0, 0, .46);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--nx-bg); }
body.nx-body {
    min-height: 100vh;
    color: var(--nx-text);
    background:
        linear-gradient(90deg, rgba(255,47,146,.04) 1px, transparent 1px),
        radial-gradient(circle at 15% 4%, rgba(255,47,146,.25), transparent 32rem),
        radial-gradient(circle at 90% 0%, rgba(0,229,255,.16), transparent 28rem),
        #07050b;
    background-size: 44px 44px, auto, auto, auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.68;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.nx-wrap { width: min(1480px, calc(100% - 36px)); margin: 0 auto; }
.nx-header { position: sticky; top: 0; z-index: 50; background: rgba(7,5,11,.78); backdrop-filter: blur(18px); box-shadow: 0 12px 42px rgba(0,0,0,.42); }
.nx-header::before { content: ""; display: block; height: 5px; background: linear-gradient(90deg, var(--nx-pink), var(--nx-purple), var(--nx-cyan), var(--nx-pink)); }
.nx-header__bar { width: min(1480px, calc(100% - 36px)); min-height: 70px; margin: 0 auto; display: grid; grid-template-columns: auto minmax(260px, 520px) auto; gap: 16px; align-items: center; }
.nx-logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 950; font-size: 22px; white-space: nowrap; }
.nx-logo__mark { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; background: linear-gradient(135deg, var(--nx-pink), var(--nx-purple) 58%, var(--nx-cyan)); box-shadow: 0 0 28px rgba(255,47,146,.44); }
.nx-search, .nx-list-search { display: grid; grid-template-columns: minmax(0, 1fr) 82px; height: 44px; border: 1px solid var(--nx-line); border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.07); }
.nx-search input, .nx-list-search input { min-width: 0; border: 0; outline: 0; padding: 0 18px; color: var(--nx-text); background: transparent; }
.nx-search input::placeholder, .nx-list-search input::placeholder { color: var(--nx-dim); }
.nx-search button, .nx-list-search button, .nx-btn, .nx-enter, .nx-panel__head button { border: 0; color: #fff; font-weight: 900; background: linear-gradient(135deg, var(--nx-pink), var(--nx-purple)); cursor: pointer; box-shadow: 0 12px 28px rgba(255,47,146,.24); }
.nx-menu { display: none; width: 44px; height: 44px; border: 1px solid var(--nx-line); border-radius: 14px; background: rgba(255,255,255,.07); }
.nx-menu span { display: block; width: 20px; height: 2px; margin: 5px auto; background: #fff; }
.nx-nav { width: min(1480px, calc(100% - 36px)); margin: 0 auto; display: flex; gap: 8px; padding: 0 0 16px; overflow: visible; }
.nx-nav > a, .nx-nav__group > a { height: 38px; display: inline-flex; align-items: center; padding: 0 15px; border: 1px solid var(--nx-line); border-radius: 999px; color: var(--nx-muted); background: rgba(255,255,255,.055); }
.nx-nav > a:hover, .nx-nav__group > a:hover, .nx-nav .is-active { color: #fff; border-color: rgba(255,47,146,.58); background: rgba(255,47,146,.18); box-shadow: 0 0 26px rgba(255,47,146,.16); }
.nx-nav__group { position: relative; }
.nx-nav__group::after { content: ""; position: absolute; left: 0; right: 0; top: 38px; height: 12px; display: none; }
.nx-nav__drop { position: absolute; left: 0; top: 40px; z-index: 10; width: 260px; display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px; border: 1px solid var(--nx-line); border-radius: 18px; background: rgba(10,6,15,.96); box-shadow: var(--nx-shadow); }
.nx-nav__group:hover::after { display: block; }
.nx-nav__group:hover .nx-nav__drop { display: grid; }
.nx-nav__drop a, .nx-drawer a, .nx-drawer strong { min-width: 0; padding: 8px 10px; border-radius: 12px; color: var(--nx-muted); background: rgba(255,255,255,.06); }
.nx-drawer { position: fixed; top: 75px; right: 0; bottom: 0; z-index: 49; width: min(360px, 90vw); padding: 18px; display: grid; align-content: start; gap: 8px; overflow: auto; background: rgba(8,5,12,.98); border-left: 1px solid rgba(255,47,146,.2); transform: translateX(105%); transition: transform .22s ease; }
body.is-nx-menu-open .nx-drawer { transform: translateX(0); }
.nx-main { padding-bottom: 30px; }
.nx-hero { position: relative; min-height: 610px; display: flex; align-items: end; overflow: hidden; }
.nx-hero__bg { position: absolute; inset: 0; opacity: .78; filter: saturate(1.2) contrast(1.08); }
.nx-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.nx-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,5,11,.96), rgba(7,5,11,.45) 52%, rgba(7,5,11,.9)), linear-gradient(0deg, var(--nx-bg), transparent 48%); }
.nx-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: end; padding: 80px 0 34px; }
.nx-hero__copy { min-width: 0; max-width: 820px; }
.nx-kicker, .nx-tags, .nx-stats, .nx-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.nx-kicker span, .nx-kicker b, .nx-tags span, .nx-stats span { padding: 5px 10px; border: 1px solid rgba(255,47,146,.28); border-radius: 999px; color: #ffd8eb; background: rgba(255,47,146,.1); }
.nx-hero h1 { margin-top: 16px; font-size: clamp(46px, 7vw, 96px); line-height: .96; letter-spacing: 0; overflow-wrap: anywhere; text-shadow: 0 0 32px rgba(255,47,146,.3); }
.nx-hero p, .nx-list-hero p, .nx-detail-info p, .nx-watch-head p { max-width: 760px; margin-top: 14px; color: var(--nx-muted); }
.nx-stats { margin-top: 18px; }
.nx-actions { margin-top: 22px; }
.nx-btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border-radius: 999px; }
.nx-btn:not(.nx-btn--primary) { border: 1px solid var(--nx-line); color: var(--nx-text); background: rgba(255,255,255,.08); box-shadow: none; }
.nx-hero__rail { display: grid; gap: 10px; }
.nx-hero__rail a { display: grid; grid-template-columns: 34px 62px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--nx-line); border-radius: 18px; background: rgba(255,255,255,.07); }
.nx-hero__rail img { width: 62px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; }
.nx-hero__rail span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-channel-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.nx-channel-strip a { min-height: 96px; display: flex; flex-direction: column; justify-content: end; padding: 16px; border: 1px solid var(--nx-line); border-radius: 22px; background: linear-gradient(135deg, rgba(255,47,146,.2), rgba(157,77,255,.1)), var(--nx-card); }
.nx-channel-strip small, .nx-card p, .nx-mini { color: var(--nx-muted); }
.nx-section { margin-top: 24px; }
.nx-section--recommend { padding: 18px; border: 1px solid rgba(255,47,146,.18); border-radius: 26px; background: linear-gradient(135deg, rgba(255,47,146,.08), rgba(157,77,255,.055)); }
.nx-section-head, .nx-panel__head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.nx-section-head span, .nx-panel__head span, .nx-list-hero span, .nx-watch-head span { color: #ff78bd; font-size: 12px; font-weight: 950; letter-spacing: .08em; }
.nx-section-head h2, .nx-panel__head h2 { font-size: 28px; line-height: 1.15; }
.nx-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.nx-card { min-width: 0; padding: 10px; border: 1px solid var(--nx-line); border-radius: 20px; background: var(--nx-card); overflow: hidden; }
.nx-card--wide { grid-column: span 2; grid-row: span 2; }
.nx-card__poster { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 16px; background: #050308; }
.nx-card__poster img, .nx-list-card__pic img, .nx-detail-poster img, .nx-related img { width: 100%; height: 100%; object-fit: cover; }
.nx-card__poster span { position: absolute; left: 8px; top: 8px; max-width: calc(100% - 16px); padding: 3px 8px; border-radius: 999px; background: linear-gradient(135deg, var(--nx-pink), var(--nx-purple)); font-size: 12px; }
.nx-card h3 { margin-top: 9px; font-size: 16px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nx-card p { margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-list-hero, .nx-filter, .nx-sidebar, .nx-rank, .nx-panel, .nx-play-side, .nx-watch-main { margin-top: 22px; padding: 20px; border: 1px solid var(--nx-line); border-radius: 24px; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035)); box-shadow: var(--nx-shadow); }
.nx-list-hero { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.nx-list-hero h1 { font-size: clamp(34px, 5vw, 64px); line-height: 1; }
.nx-result-count { display: inline-flex; align-items: baseline; gap: 8px; margin-top: 12px; padding: 8px 13px; border: 1px solid rgba(255,47,146,.32); border-radius: 999px; color: #ffd8eb; background: rgba(255,47,146,.1); }
.nx-result-count strong { color: #fff; font-size: 22px; line-height: 1; }
.nx-result-count span { color: var(--nx-muted); }
.nx-list-search { width: min(420px, 100%); flex: 0 0 auto; }
.nx-filter__head, .nx-filter__row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 12px; }
.nx-filter__head { margin-top: 0; }
.nx-filter-entry { margin-top: 12px; }
.nx-filter-entry a, .nx-filter__footer a { display: inline-flex; min-height: 34px; align-items: center; padding: 0 13px; border: 1px solid rgba(255,47,146,.36); border-radius: 999px; color: #ffd8eb; background: rgba(255,47,146,.12); }
.nx-filter__hint { grid-column: 1 / -1; margin: 10px 0 4px; color: var(--nx-dim); }
.nx-filter__row div { display: flex; flex-wrap: wrap; gap: 8px; }
.nx-filter a, .nx-sidebar a, .nx-pagination a, .nx-pagination span { padding: 7px 12px; border: 1px solid var(--nx-line); border-radius: 999px; color: var(--nx-muted); background: rgba(255,255,255,.06); }
.nx-filter a.is-active, .nx-sidebar a.is-active, .nx-pagination span { color: #fff; border-color: rgba(255,47,146,.55); background: rgba(255,47,146,.18); }
.nx-filter__footer { display: flex; justify-content: flex-end; margin-top: 14px; }
.nx-list-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.nx-sidebar, .nx-rank, .nx-detail-side, .nx-play-side { position: sticky; top: 112px; }
.nx-sidebar { display: grid; gap: 8px; }
.nx-sidebar strong, .nx-rank strong { margin-bottom: 6px; }
.nx-list { display: grid; gap: 14px; margin-top: 22px; }
.nx-list-card { min-width: 0; display: grid; grid-template-columns: 126px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--nx-line); border-radius: 22px; background: var(--nx-card); overflow: hidden; }
.nx-list-card__pic { aspect-ratio: 2 / 3; overflow: hidden; border-radius: 16px; }
.nx-list-card__body { min-width: 0; }
.nx-list-card h2 { font-size: 24px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.nx-list-card p { color: var(--nx-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nx-enter { min-width: 70px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; }
.nx-rank { display: grid; gap: 9px; }
.nx-rank a { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; align-items: center; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.055); }
.nx-rank span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.nx-crumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 12px; color: var(--nx-dim); }
.nx-detail-hero { position: relative; min-height: 560px; display: grid; grid-template-columns: minmax(230px, 320px) minmax(0, 1fr); gap: 24px; align-items: end; padding: clamp(18px, 4vw, 44px); border: 1px solid var(--nx-line); border-radius: 30px; overflow: hidden; background: var(--nx-panel); box-shadow: var(--nx-shadow); }
.nx-detail-hero__bg { position: absolute; inset: 0; opacity: .22; filter: blur(6px) saturate(1.25); }
.nx-detail-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.nx-detail-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,5,11,.92), rgba(7,5,11,.58)); }
.nx-detail-poster, .nx-detail-info { position: relative; z-index: 1; }
.nx-detail-poster { width: 100%; aspect-ratio: 2 / 3; border-radius: 24px; overflow: hidden; box-shadow: 0 28px 70px rgba(0,0,0,.55); }
.nx-detail-info { min-width: 0; }
.nx-detail-info h1 { margin-top: 12px; font-size: clamp(38px, 6vw, 82px); line-height: .98; overflow-wrap: anywhere; }
.nx-meta { display: grid; gap: 8px; margin-top: 16px; }
.nx-meta div { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; }
.nx-meta dd { min-width: 0; color: var(--nx-muted); overflow-wrap: anywhere; }
.nx-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.nx-source + .nx-source { margin-top: 18px; }
.nx-source h3 { margin-bottom: 10px; color: var(--nx-muted); }
.nx-episodes { display: flex; flex-wrap: wrap; gap: 8px; }
.nx-episodes a { min-width: 72px; padding: 8px 12px; border: 1px solid var(--nx-line); border-radius: 999px; text-align: center; color: var(--nx-muted); background: rgba(255,255,255,.06); }
.nx-episodes a:hover, .nx-episodes a.is-active { color: #fff; border-color: rgba(255,47,146,.55); background: rgba(255,47,146,.18); }
.nx-story__content { color: var(--nx-muted); line-height: 1.9; }
.nx-story-title { margin-top: 18px; color: #fff; font-size: 18px; font-weight: 950; }
.nx-story-title:first-child { margin-top: 0; }
.nx-next a, .nx-next > span, .nx-play-nav a, .nx-play-nav > span { display: block; padding: 13px; margin-top: 10px; border: 1px solid var(--nx-line); border-radius: 16px; background: rgba(255,255,255,.06); }
.nx-next small, .nx-play-nav small { display: block; color: #ff78bd; }
.nx-next strong, .nx-play-nav strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-related { display: grid; gap: 10px; }
.nx-related a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px; border-radius: 14px; background: rgba(255,255,255,.055); }
.nx-related img { aspect-ratio: 2 / 3; border-radius: 10px; }
.nx-related span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.nx-watch-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 14px; }
.nx-watch-head h1 { font-size: clamp(28px, 4vw, 56px); line-height: 1.08; overflow-wrap: anywhere; }
.nx-player { width: 100%; overflow: hidden; border-radius: 22px; background: #000; }
.nx-player-container, .nx-player video, .nx-player iframe { width: 100% !important; max-width: 100% !important; aspect-ratio: 16 / 9; min-height: 0 !important; background: #000; }
.nx-play-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.nx-play-side { max-height: calc(100vh - 130px); overflow: auto; }
.nx-episodes--side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nx-search-cloud { margin-top: 28px; padding: 24px 0; border-top: 1px solid var(--nx-line); border-bottom: 1px solid var(--nx-line); background: rgba(255,255,255,.03); }
.nx-search-cloud__list { display: flex; flex-wrap: wrap; gap: 9px; }
.nx-search-cloud__list a { padding: 7px 12px; border-radius: 999px; color: var(--nx-muted); background: rgba(255,255,255,.06); }
.nx-footer { padding: 26px 0; color: var(--nx-dim); text-align: center; }
.nx-empty { padding: 28px; border: 1px solid var(--nx-line); border-radius: 20px; background: var(--nx-card); color: var(--nx-muted); }
@media (max-width: 1180px) {
    .nx-hero__inner, .nx-list-layout, .nx-detail-layout, .nx-watch-layout { grid-template-columns: 1fr; }
    .nx-sidebar, .nx-rank, .nx-detail-side, .nx-play-side { position: static; max-height: none; }
    .nx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .nx-channel-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .nx-wrap, .nx-header__bar, .nx-nav { width: min(100% - 22px, 1480px); }
    .nx-header__bar { grid-template-columns: 1fr auto; }
    .nx-search { grid-column: 1 / -1; }
    .nx-menu { display: block; }
    .nx-nav { display: none; }
    .nx-hero { min-height: 500px; }
    .nx-hero__inner { padding-top: 54px; }
    .nx-hero h1, .nx-detail-info h1 { font-size: 38px; }
    .nx-hero__rail { display: none; }
    .nx-list-hero { display: grid; align-items: start; }
    .nx-list-search { width: 100%; }
    .nx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .nx-card--wide { grid-column: span 2; grid-row: auto; }
    .nx-channel-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nx-list-card { grid-template-columns: 92px minmax(0, 1fr); align-items: start; }
    .nx-enter { grid-column: 1 / -1; }
    .nx-detail-hero { grid-template-columns: 1fr; min-height: 0; padding: 16px; }
    .nx-detail-poster { width: min(250px, 68vw); }
    .nx-watch-head { flex-direction: column; align-items: start; }
}
@media (max-width: 520px) {
    .nx-hero { min-height: 430px; }
    .nx-hero h1, .nx-detail-info h1 { font-size: 32px; }
    .nx-channel-strip { grid-template-columns: 1fr; }
    .nx-list-card { grid-template-columns: 78px minmax(0, 1fr); gap: 10px; }
    .nx-play-nav { grid-template-columns: 1fr; }
    .nx-episodes--side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
