/* ============================================================
   NetShort Web Drama - style2.css
   Dark cinematic theme inspired by short-drama apps.
   ============================================================ */
:root {
    --ns-bg: #0b0b0f;
    --ns-bg-soft: #101017;
    --ns-surface: #16161f;
    --ns-surface-2: #1d1d28;
    --ns-border: #272733;
    --ns-text: #f4f4f7;
    --ns-muted: #9a9aad;
    --ns-accent: #7c5cff;
    --ns-accent-2: #22d3ee;
    --ns-gold: #e7c873;
    --ns-radius: 16px;
    --ns-nav-h: 68px;
    --ns-max: 480px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body.ns-body {
    background:
        radial-gradient(1200px 600px at 50% -200px, rgba(124, 92, 255, .18), transparent 60%),
        radial-gradient(900px 500px at 100% 10%, rgba(34, 211, 238, .07), transparent 55%),
        var(--ns-bg);
    color: var(--ns-text);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, sans-serif;
    min-height: 100vh;
    padding-bottom: calc(var(--ns-nav-h) + 24px);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ---------- Header ---------- */
.ns-header {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 14px 16px 0;
    background: linear-gradient(180deg, rgba(11, 11, 15, .96), rgba(11, 11, 15, .72) 70%, transparent);
    backdrop-filter: blur(14px);
}
.ns-header-inner {
    max-width: var(--ns-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}
.ns-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
}
.ns-brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .1), 0 8px 22px rgba(124, 92, 255, .35);
}
.ns-brand-text {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: .2px;
    background: linear-gradient(90deg, #fff, #c9c2ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.ns-search {
    flex: 0 1 580px;
    max-width: 640px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px 0 18px;
    height: 46px;
    background: rgba(28, 28, 38, .9);
    border: 1px solid var(--ns-border);
    border-radius: 999px;
    transition: border-color .2s, box-shadow .2s;
}
.ns-search:focus-within {
    border-color: rgba(124, 92, 255, .7);
    box-shadow: 0 0 0 4px rgba(124, 92, 255, .12);
}
.ns-search-icon { color: var(--ns-muted); font-size: .95rem; }
.ns-search input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--ns-text);
    font-size: .95rem;
}
.ns-search input::placeholder { color: #6f6f82; }
.ns-search input::-webkit-search-cancel-button { display: none; }
.ns-globe {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--ns-muted);
    border: 1px solid var(--ns-border);
    transition: color .2s, border-color .2s;
}
.ns-globe:hover { color: #fff; border-color: var(--ns-accent); }

.ns-tabs {
    max-width: var(--ns-max);
    margin: 14px auto 0;
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 0 4px 12px;
    scrollbar-width: none;
}
.ns-tabs::-webkit-scrollbar { display: none; }
.ns-tab {
    flex-shrink: 0;
    color: var(--ns-muted);
    font-size: .92rem;
    font-weight: 600;
    white-space: nowrap;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
}
.ns-tab:hover { color: #d8d8e4; }
.ns-tab.active { color: #fff; border-color: var(--ns-accent); }

/* ---------- Main ---------- */
.ns-main {
    max-width: var(--ns-max);
    margin: 0 auto;
    padding: 12px 20px 40px;
}
.ns-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 18px;
    padding: 13px 16px;
    border-radius: 12px;
    background: #2a1420;
    border: 1px solid #5b2338;
    color: #ffb4c8;
    font-size: .9rem;
}
.ns-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 16px;
    color: var(--ns-muted);
    font-size: .88rem;
    transition: color .2s;
}
.ns-back:hover { color: #fff; }

/* ---------- Hero carousel ---------- */
.ns-hero {
    position: relative;
    padding: 12px 0 6px;
}
.ns-hero-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-height: 0;
    padding: 12px 0 4px;
}
.ns-hero-main {
    position: relative;
    z-index: 2;
    width: min(300px, 74vw);
    aspect-ratio: 3 / 4.2;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .06);
    transition: transform .35s ease;
}
.ns-hero-main:hover { transform: translateY(-4px) scale(1.01); }
.ns-hero-main img { width: 100%; height: 100%; object-fit: cover; }
.ns-hero-side {
    display: none;
    position: relative;
    z-index: 1;
    width: min(220px, 30vw);
    aspect-ratio: 3 / 4.2;
    border-radius: 16px;
    overflow: hidden;
    opacity: .32;
    filter: saturate(.7) brightness(.8);
    transform: scale(.88);
    transition: opacity .35s, transform .35s;
    pointer-events: none;
}
.ns-hero-side img { width: 100%; height: 100%; object-fit: cover; }
.ns-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(18, 18, 26, .72);
    color: #ddd;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background .2s, color .2s;
}
.ns-hero-arrow:hover { background: var(--ns-accent); color: #fff; }
.ns-hero-prev { left: 0; }
.ns-hero-next { right: 0; }
.ns-hero-info {
    max-width: 620px;
    margin: 20px auto 0;
    text-align: center;
    padding: 0 10px;
}
.ns-hero-title {
    margin: 0 0 8px;
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
    font-weight: 800;
    letter-spacing: -.2px;
}
.ns-hero-desc {
    margin: 0 auto;
    color: var(--ns-muted);
    font-size: .9rem;
    line-height: 1.55;
    max-width: 560px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ns-hero-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 16px;
}
.ns-dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #3a3a48;
    cursor: pointer;
    transition: width .25s, background .25s;
}
.ns-dot.active { width: 22px; border-radius: 999px; background: var(--ns-accent); }

/* ---------- Section ---------- */
.ns-section { margin-top: 34px; }
.ns-section-title {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 22px;
    color: var(--ns-gold);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .4px;
    text-align: center;
    justify-content: center;
}
.ns-section-title::before,
.ns-section-title::after {
    content: "";
    height: 1px;
    width: min(120px, 18vw);
    background: linear-gradient(90deg, transparent, rgba(231, 200, 115, .55));
}
.ns-section-title::after { transform: scaleX(-1); }
.ns-section-title span {
    position: relative;
    padding: 0 20px;
    white-space: nowrap;
}
.ns-section-title span::before,
.ns-section-title span::after {
    content: "❖";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: .5rem;
    color: rgba(231, 200, 115, .6);
}
.ns-section-title span::before { left: 0; }
.ns-section-title span::after { right: 0; }

/* ---------- Grid ---------- */
.ns-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
}
.ns-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.ns-poster {
    position: relative;
    aspect-ratio: 3 / 4.2;
    border-radius: 14px;
    overflow: hidden;
    background: var(--ns-surface);
    border: 1px solid rgba(255, 255, 255, .05);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
    transition: transform .25s ease, box-shadow .25s ease;
}
.ns-card:hover .ns-poster {
    transform: translateY(-5px);
    box-shadow: 0 22px 44px rgba(0, 0, 0, .55), 0 0 0 1px rgba(124, 92, 255, .35);
}
.ns-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ns-card:hover .ns-poster img { transform: scale(1.04); }
.ns-poster-badge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(8, 8, 12, .75);
    border: 1px solid rgba(255, 255, 255, .1);
    color: #eee;
    font-size: .66rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
}
.ns-card-title {
    margin: 0;
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ns-card-meta { color: var(--ns-muted); font-size: .72rem; }
.ns-empty {
    text-align: center;
    color: var(--ns-muted);
    padding: 50px 20px;
}
.ns-empty i { font-size: 1.8rem; margin-bottom: 10px; }
.ns-pager {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

/* ---------- Buttons ---------- */
.ns-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--ns-accent), #5b3df5);
    color: #fff;
    font-size: .86rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(124, 92, 255, .28);
    transition: transform .2s, box-shadow .2s, background .2s;
}
.ns-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(124, 92, 255, .4); }
.ns-btn.ghost {
    background: transparent;
    border-color: var(--ns-border);
    color: #dcdce6;
    box-shadow: none;
}
.ns-btn.ghost:hover { border-color: var(--ns-accent); color: #fff; }

/* ---------- Detail ---------- */
.ns-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
    margin-top: 6px;
}
.ns-detail-cover {
    width: min(240px, 70vw);
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 26px 60px rgba(0, 0, 0, .6);
    border: 1px solid rgba(255, 255, 255, .06);
}
.ns-detail-cover img { width: 100%; aspect-ratio: 3 / 4.2; object-fit: cover; }
.ns-detail-title {
    margin: 4px 0 14px;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -.4px;
    text-align: center;
}
.ns-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 14px; }
.ns-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--ns-surface);
    border: 1px solid var(--ns-border);
    color: #cfcfda;
    font-size: .74rem;
}
.ns-tagrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-bottom: 16px; }
.ns-tag {
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(124, 92, 255, .12);
    border: 1px solid rgba(124, 92, 255, .25);
    color: #c7bcff;
    font-size: .72rem;
    font-weight: 600;
}
.ns-detail-desc {
    color: var(--ns-muted);
    font-size: .92rem;
    line-height: 1.7;
    margin: 0 auto 22px;
    max-width: 680px;
    text-align: center;
}
.ns-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Episode grid (detail) ---------- */
.ns-epgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 10px;
}
.ns-ep {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 11px 8px;
    border-radius: 12px;
    background: var(--ns-surface);
    border: 1px solid var(--ns-border);
    transition: border-color .2s, background .2s, transform .2s;
}
.ns-ep:hover { border-color: var(--ns-accent); background: var(--ns-surface-2); transform: translateY(-2px); }
.ns-ep-no { font-size: 1rem; font-weight: 700; }
.ns-ep-state { font-size: .62rem; color: var(--ns-muted); text-transform: uppercase; letter-spacing: .4px; }

/* ---------- Watch (app-style player) ---------- */
.ns-watch-body {
    padding-bottom: 0;
    height: 100dvh;
    overflow: hidden;
    background: #000;
}
.ns-watch-app {
    position: relative;
    width: 100%;
    max-width: var(--ns-max);
    height: 100dvh;
    margin: 0 auto;
    background: #000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.ns-watch-stage {
    position: relative;
    flex: 1;
    min-height: 0;
    background: #000;
    overflow: hidden;
    user-select: none;
}
.ns-watch-stage video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
}
.ns-player-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, .55);
    z-index: 12;
    transition: opacity .25s;
}
.ns-player-loading.hidden { opacity: 0; pointer-events: none; }
.ns-spinner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .22);
    border-top-color: #fff;
    animation: ns-spin .8s linear infinite;
}
@keyframes ns-spin { to { transform: rotate(360deg); } }

.ns-watch-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: calc(env(safe-area-inset-top, 0px) + 12px) 14px 26px;
    background: linear-gradient(180deg, rgba(0, 0, 0, .82), transparent);
}
.ns-watch-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .42);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
    font-size: .9rem;
    backdrop-filter: blur(8px);
    transition: background .2s;
}
.ns-watch-icon:hover { background: rgba(124, 92, 255, .75); }
.ns-watch-heading { flex: 1; min-width: 0; }
.ns-watch-heading strong {
    display: block;
    font-size: .84rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ns-watch-heading span { display: block; margin-top: 2px; color: rgba(255, 255, 255, .62); font-size: .66rem; }

.ns-bigplay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 14;
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(10, 10, 16, .55);
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: opacity .2s, transform .2s;
}
.ns-bigplay:hover { transform: translate(-50%, -50%) scale(1.06); }
.ns-watch-stage.playing .ns-bigplay { opacity: 0; pointer-events: none; }

.ns-watch-grad {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 190px;
    background: linear-gradient(0deg, rgba(0, 0, 0, .92), rgba(0, 0, 0, .35) 55%, transparent);
    pointer-events: none;
    z-index: 9;
}
.ns-watch-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 16;
    padding: 0 16px calc(env(safe-area-inset-bottom, 0px) + 14px);
}
.ns-progress {
    position: relative;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .2);
    cursor: pointer;
}
.ns-progress::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -9px;
    bottom: -9px;
}
.ns-progress span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--ns-accent), var(--ns-accent-2));
}
.ns-control-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
}
.ns-ctrl {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: .98rem;
    cursor: pointer;
}
.ns-time { color: rgba(255, 255, 255, .72); font-size: .68rem; font-variant-numeric: tabular-nums; }
.ns-spacer { flex: 1; }
.ns-epnav { display: flex; gap: 9px; margin-top: 12px; }
.ns-epnav a,
.ns-epnav span,
.ns-epnav button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    padding: 10px 8px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(16, 16, 24, .62);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    transition: border-color .2s, background .2s;
}
.ns-epnav a:hover, .ns-epnav button:hover { border-color: var(--ns-accent); }
.ns-epnav .disabled { opacity: .35; }
.ns-epnav-list {
    flex: 1.15 !important;
    background: linear-gradient(135deg, var(--ns-accent), #5b3df5) !important;
    border-color: transparent !important;
    box-shadow: 0 8px 20px rgba(124, 92, 255, .3);
}
.ns-next-overlay {
    position: absolute;
    inset: 0;
    z-index: 25;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, .74);
    backdrop-filter: blur(4px);
}
.ns-next-overlay[hidden] { display: none; }
.ns-next-card { text-align: center; }
.ns-next-card p { margin: 0 0 14px; color: #d8d8e4; font-size: .9rem; }

.ns-sheet {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.ns-sheet[hidden] { display: none; }
.ns-sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .62); }
.ns-sheet-panel {
    position: relative;
    max-height: 62%;
    display: flex;
    flex-direction: column;
    padding: 16px 16px calc(env(safe-area-inset-bottom, 0px) + 16px);
    background: #121219;
    border-radius: 20px 20px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 -20px 50px rgba(0, 0, 0, .6);
}
.ns-sheet-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.ns-sheet-head strong { font-size: .95rem; }
.ns-sheet-head span { color: var(--ns-muted); font-size: .72rem; }
.ns-sheet-head button {
    margin-left: auto;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--ns-border);
    background: transparent;
    color: #cfcfda;
    cursor: pointer;
}
.ns-sheet-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    overflow-y: auto;
    padding-bottom: 4px;
}
.ns-sheet-ep {
    display: grid;
    place-items: center;
    height: 42px;
    border-radius: 11px;
    background: #1b1b25;
    border: 1px solid #2a2a36;
    color: #cfcfda;
    font-size: .78rem;
    font-weight: 600;
    transition: background .2s, border-color .2s;
}
.ns-sheet-ep:hover { border-color: var(--ns-accent); }
.ns-sheet-ep.active { background: var(--ns-accent); border-color: var(--ns-accent); color: #fff; }

.ns-watch-app-error { justify-content: center; align-items: center; }
.ns-watch-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px;
    text-align: center;
}
.ns-watch-error i { font-size: 2rem; color: #ff9aa8; }
.ns-watch-error h1 { margin: 0; font-size: 1.1rem; }
.ns-watch-error p { margin: 0 0 8px; color: var(--ns-muted); font-size: .82rem; line-height: 1.6; }

/* ---------- Episodes list ---------- */
.ns-eplist { display: flex; flex-direction: column; gap: 8px; }
.ns-eprow {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--ns-surface);
    border: 1px solid var(--ns-border);
    transition: border-color .2s, background .2s;
}
.ns-eprow:hover { border-color: var(--ns-accent); background: var(--ns-surface-2); }
.ns-eprow-no {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(124, 92, 255, .12);
    color: #c7bcff;
    font-weight: 700;
    font-size: .82rem;
}
.ns-eprow-title { font-size: .88rem; font-weight: 600; }
.ns-eprow-state { font-size: .74rem; color: var(--ns-muted); }
.ns-eprow-state.ok { color: #7de2b0; }
.ns-eprow-state.bad { color: #ff9aa8; }

/* ---------- Search note ---------- */
.ns-search-note { color: var(--ns-muted); font-size: .86rem; margin: -8px 0 20px; text-align: center; }

/* ---------- Bottom nav ---------- */
.ns-bottomnav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    z-index: 50;
    width: 100%;
    max-width: var(--ns-max);
    height: var(--ns-nav-h);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 10px calc(env(safe-area-inset-bottom, 0px));
    background: rgba(13, 13, 19, .94);
    border-top: 1px solid rgba(255, 255, 255, .07);
    backdrop-filter: blur(16px);
}
.ns-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #7f7f92;
    font-size: .62rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 12px;
    transition: color .2s, background .2s;
}
.ns-nav-item i { font-size: 1.15rem; }
.ns-nav-item:hover { color: #d8d8e4; }
.ns-nav-item.active { color: #fff; }
.ns-nav-center i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f43f8e, #7c5cff);
    color: #fff;
    box-shadow: 0 8px 20px rgba(124, 92, 255, .3);
}

/* ---------- Category page ---------- */
.ns-catgrid { display: flex; flex-direction: column; gap: 10px; }
.ns-catcard {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--ns-surface);
    border: 1px solid var(--ns-border);
    transition: border-color .2s, background .2s, transform .2s;
}
.ns-catcard:hover { border-color: var(--ns-accent); background: var(--ns-surface-2); transform: translateY(-2px); }
.ns-catcard-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(124, 92, 255, .14);
    color: #c7bcff;
    font-size: 1.05rem;
}
.ns-catcard-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.ns-catcard-body strong { font-size: .9rem; font-weight: 700; }
.ns-catcard-body small { color: var(--ns-muted); font-size: .72rem; }
.ns-catcard-arrow { color: #5f5f72; font-size: .75rem; }

/* ---------- Info / license page ---------- */
.ns-infocard {
    padding: 16px 18px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: var(--ns-surface);
    border: 1px solid var(--ns-border);
}
.ns-infocard h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 8px;
    font-size: .92rem;
    font-weight: 700;
    color: #e9e9f2;
}
.ns-infocard h3 i { color: #c7bcff; }
.ns-infocard p { margin: 0 0 8px; color: var(--ns-muted); font-size: .8rem; line-height: 1.65; }
.ns-infocard p:last-child { margin-bottom: 0; }
.ns-info-links { display: flex; flex-direction: column; gap: 6px; }
.ns-info-links a { color: #c7bcff; font-weight: 600; }
.ns-license-note { text-align: center; color: #5c5c6d; font-size: .7rem; margin-top: 18px; }

/* ---------- Watch history (Daftar) ---------- */
.ns-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.ns-history-clear {
    border: 1px solid var(--ns-border);
    background: transparent;
    color: var(--ns-muted);
    border-radius: 999px;
    padding: 7px 13px;
    font-size: .72rem;
    font-weight: 600;
    cursor: pointer;
    transition: color .2s, border-color .2s;
}
.ns-history-clear:hover { color: #ff9aa8; border-color: #5b2338; }
.ns-history-page-title { margin: 0; font-size: 1.15rem; font-weight: 800; }
.ns-history-page-sub { margin: 4px 0 0; color: var(--ns-muted); font-size: .74rem; }
.ns-history-list { display: flex; flex-direction: column; gap: 12px; }
.ns-history-item {
    display: grid;
    grid-template-columns: 74px 1fr auto;
    gap: 13px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: var(--ns-surface);
    border: 1px solid var(--ns-border);
    transition: border-color .2s, background .2s;
}
.ns-history-item:hover { border-color: rgba(124, 92, 255, .55); background: var(--ns-surface-2); }
.ns-history-cover {
    width: 74px;
    aspect-ratio: 3 / 4.2;
    border-radius: 10px;
    object-fit: cover;
    background: #0d0d12;
}
.ns-history-body { min-width: 0; }
.ns-history-title {
    margin: 0 0 4px;
    font-size: .88rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ns-history-meta { margin: 0 0 7px; color: var(--ns-muted); font-size: .7rem; }
.ns-history-progress {
    height: 5px;
    border-radius: 999px;
    background: #262632;
    overflow: hidden;
}
.ns-history-progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--ns-accent), var(--ns-accent-2));
}
.ns-history-sub { margin: 6px 0 0; color: #7d7d91; font-size: .64rem; }
.ns-history-remove {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--ns-border);
    background: transparent;
    color: var(--ns-muted);
    cursor: pointer;
    transition: color .2s, border-color .2s;
}
.ns-history-remove:hover { color: #ff9aa8; border-color: #5b2338; }
.ns-history-continue {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    color: #c7bcff;
    font-size: .7rem;
    font-weight: 700;
}
.ns-history-empty {
    text-align: center;
    color: var(--ns-muted);
    padding: 56px 20px;
}
.ns-history-empty i { font-size: 2rem; color: #4a4a5c; margin-bottom: 12px; }
.ns-history-empty h3 { margin: 0 0 6px; color: #cfcfda; font-size: 1rem; }
.ns-history-empty p { margin: 0; font-size: .8rem; line-height: 1.6; }

/* ---------- Footer ---------- */
.ns-footer {
    max-width: var(--ns-max);
    margin: 10px auto 0;
    padding: 18px 20px 30px;
    text-align: center;
    color: #5c5c6d;
    font-size: .72rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .ns-hero-stage { min-height: 0; padding: 18px 0; }
}
@media (max-width: 420px) {
    .ns-hero-arrow { display: none; }
}

@media (max-width: 640px) {
    .ns-header { padding: 10px 12px 0; }
    .ns-header-inner { gap: 10px; }
    .ns-brand-text { display: none; }
    .ns-brand-logo { width: 34px; height: 34px; }
    .ns-search { height: 42px; padding-left: 14px; }
    .ns-tabs { gap: 20px; }
    .ns-main { padding: 8px 14px 30px; }
    .ns-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
    .ns-detail { grid-template-columns: 1fr; }
    .ns-detail-cover { width: min(240px, 70vw); margin: 0 auto; }
    .ns-detail-title { text-align: center; }
    .ns-chips, .ns-tagrow, .ns-actions { justify-content: center; }
    .ns-detail-desc { text-align: center; }
    .ns-hero-main { width: min(300px, 74vw); }
    .ns-hero-desc { font-size: .82rem; }
    .ns-section-title { font-size: .95rem; }
    .ns-nav-item { padding: 8px 8px; font-size: .58rem; }
    .ns-eprow { grid-template-columns: 40px 1fr; }
    .ns-eprow-state { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
