:root {
    --bg: #150f1c;
    --bg2: #1e1628;
    --line: #33283f;
    --text: #f3eef7;
    --mute: #a79bb5;
    --red: #d6343f;
    --red-d: #b12630;
    --gold: #e8b968;
    --gold-d: #c99643;
    --r: 14px;
    --font-h: "Bricolage Grotesque", system-ui, sans-serif;
    --font-b: "Instrument Sans", system-ui, sans-serif;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}
body {
    background: var(--bg);
    color: var(--text);
    font: 400 15px/1.55 var(--font-b);
    -webkit-font-smoothing: antialiased;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    font: inherit;
    color: inherit;
    cursor: pointer;
    border: 0;
    background: none;
}
input {
    font: inherit;
    color: inherit;
}
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}
[hidden] {
    display: none !important;
}
h1,
h2,
h3,
h4 {
    font-family: var(--font-h);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

/* Topbar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 14px 5vw;
    background: rgba(21, 15, 28, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.logo {
    font: 800 24px var(--font-h);
}
.logo span {
    color: var(--red);
}
.nav {
    display: flex;
    gap: 22px;
    color: var(--mute);
}
.nav a:hover,
.nav a.active {
    color: var(--text);
}
.tools {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}
.search {
    display: block;
}
.search input {
    width: 220px;
    padding: 9px 14px;
    border-radius: 99px;
    background: var(--bg2);
    border: 1px solid var(--line);
}
.search input::placeholder {
    color: var(--mute);
}
#authArea {
    display: flex;
    gap: 8px;
    align-items: center;
}
.user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 6px 5px 14px;
    border-radius: 99px;
    background: var(--bg2);
    border: 1px solid var(--line);
}
.vip-tag {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 99px;
    background: var(--gold);
    color: #2a1d05;
}
.vip-tag.off {
    background: var(--line);
    color: var(--mute);
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 99px;
    font-weight: 600;
    transition: background 0.15s;
}
.btn.red {
    background: var(--red);
}
.btn.red:hover {
    background: var(--red-d);
}
.btn.gold {
    background: var(--gold);
    color: #2a1d05;
}
.btn.gold:hover {
    background: var(--gold-d);
}
.btn.ghost {
    border: 1px solid var(--line);
}
.btn.ghost:hover {
    background: var(--bg2);
}
.btn.sm {
    padding: 6px 14px;
    font-size: 14px;
}
.block-btn {
    width: 100%;
    margin-top: 6px;
}

/* Hero */
.hero {
    position: relative;
    min-height: 62vh;
    display: flex;
    align-items: flex-end;
    padding: 0 5vw 48px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    transition: opacity 0.5s;
}
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, var(--bg) 4%, transparent 70%),
        linear-gradient(90deg, var(--bg) 0, transparent 65%);
}
.hero-ch {
    position: absolute;
    right: 6vw;
    top: 50%;
    transform: translateY(-55%);
    font: 800 clamp(180px, 30vw, 420px)/1 var(--font-h);
    opacity: 0.12;
    pointer-events: none;
}
.hero-txt {
    position: relative;
    max-width: 560px;
}
.hero-txt h1 {
    font-size: clamp(34px, 5.5vw, 64px);
    margin: 10px 0 14px;
}
.hero-txt p {
    color: #d3c8de;
    margin-bottom: 22px;
}
.hero-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.hero-dots {
    position: absolute;
    right: 5vw;
    bottom: 48px;
    display: flex;
    gap: 8px;
}
.hero-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--line);
}
.hero-dots button.on {
    background: var(--gold);
    width: 26px;
    border-radius: 99px;
}
.badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.12);
}
.badge.vip {
    background: var(--gold);
    color: #2a1d05;
}

/* Sections */
.block {
    padding: 36px 5vw 8px;
}
.block-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}
.block-head h2 {
    font-size: 26px;
}
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.chip {
    padding: 6px 14px;
    border-radius: 99px;
    border: 1px solid var(--line);
    color: var(--mute);
    font-size: 14px;
}
.chip:hover {
    color: var(--text);
}
.chip.on {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 18px;
}
.rail {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x proximity;
}
.rail .card {
    flex: 0 0 170px;
    scroll-snap-align: start;
}
.empty {
    color: var(--mute);
    padding: 30px 0;
}

/* Card */
.card {
    text-align: left;
    display: block;
    width: 100%;
}
.poster {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: var(--r);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 12px;
    transition: transform 0.2s;
}
.card:hover .poster {
    transform: translateY(-4px);
}
.poster .ch {
    position: absolute;
    right: -6px;
    top: -10px;
    font: 800 120px/1 var(--font-h);
    opacity: 0.18;
}
.poster .tag {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
}
.poster .eps-n {
    position: relative;
    font-size: 12px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.45);
    padding: 3px 9px;
    border-radius: 99px;
}
.card h3 {
    font: 600 15px/1.3 var(--font-b);
    margin-top: 10px;
}
.card small {
    color: var(--mute);
}

/* VIP banner */
.vip-banner {
    margin: 44px 5vw;
    padding: 30px 34px;
    border-radius: 20px;
    background: linear-gradient(120deg, #3a1a2c, #2a1f10);
    border: 1px solid #5a3b24;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
}
.vip-banner h2 {
    font-size: 26px;
    margin-bottom: 6px;
}
.vip-banner p {
    color: #d8c7ae;
}

.foot {
    padding: 34px 5vw 50px;
    border-top: 1px solid var(--line);
    color: var(--mute);
    display: grid;
    gap: 4px;
}
.foot strong {
    color: var(--text);
    font: 800 18px var(--font-h);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 5vh 16px;
    background: rgba(8, 5, 12, 0.78);
    overflow-y: auto;
}
.modal.open {
    display: flex;
}
.sheet {
    position: relative;
    width: 100%;
    max-width: 760px;
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 28px;
    animation: pop 0.2s ease-out;
}
.sheet.narrow {
    max-width: 400px;
}
@keyframes pop {
    from {
        transform: translateY(12px) scale(0.98);
        opacity: 0;
    }
    to {
        transform: none;
        opacity: 1;
    }
}
.x {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 2;
    font-size: 28px;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
}
.sheet h3 {
    font-size: 24px;
    margin-bottom: 6px;
}
.sub {
    color: var(--mute);
    margin-bottom: 20px;
}
.note {
    color: var(--mute);
    font-size: 13px;
    margin-top: 16px;
}

/* Auth */
.tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
    background: var(--bg);
    padding: 4px;
    border-radius: 99px;
}
.tab {
    flex: 1;
    padding: 8px;
    border-radius: 99px;
    color: var(--mute);
    font-weight: 600;
}
.tab.on {
    background: var(--red);
    color: #fff;
}
.form {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}
.form label {
    display: grid;
    gap: 6px;
    font-size: 14px;
    color: var(--mute);
}
.form input {
    padding: 11px 14px;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--text);
}
.err {
    color: #ff8a8a;
    font-size: 14px;
    min-height: 1em;
}

/* Plans */
.plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}
.plan {
    padding: 18px 12px;
    border-radius: var(--r);
    border: 1px solid var(--line);
    background: var(--bg);
    text-align: center;
    transition: border-color 0.15s;
}
.plan:hover {
    border-color: var(--gold);
}
.plan b {
    display: block;
    font: 800 30px var(--font-h);
    color: var(--gold);
}
.plan span {
    display: block;
    color: var(--mute);
    font-size: 13px;
}
.plan em {
    display: block;
    font-style: normal;
    font-weight: 600;
    margin: 10px 0 12px;
}
.plan.best {
    border-color: var(--gold);
    position: relative;
}
.plan.best::before {
    content: "Paling hemat";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 600;
    background: var(--gold);
    color: #2a1d05;
    padding: 2px 10px;
    border-radius: 99px;
    white-space: nowrap;
}

/* Halaman detail */
.d-hero {
    position: relative;
    padding: 44px 5vw 36px;
    overflow: hidden;
}
.d-hero-bg {
    position: absolute;
    inset: 0;
}
.d-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, var(--bg) 2%, rgba(21, 15, 28, 0.55) 100%);
}
.d-hero-ch {
    position: absolute;
    right: 5vw;
    top: -20px;
    font: 800 clamp(200px, 32vw, 440px)/1 var(--font-h);
    opacity: 0.1;
    pointer-events: none;
}
.crumb {
    position: relative;
    color: var(--mute);
    font-size: 14px;
    margin-bottom: 22px;
}
.crumb a:hover {
    color: var(--text);
}
.d-main {
    position: relative;
    display: flex;
    gap: 30px;
    align-items: flex-end;
}
.d-poster {
    flex: 0 0 210px;
    aspect-ratio: 3/4;
    border-radius: var(--r);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.d-info {
    max-width: 640px;
}
.d-info h1 {
    font-size: clamp(30px, 4.5vw, 52px);
    margin-bottom: 10px;
}
.d-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 14px;
}
.d-genres a {
    padding: 4px 12px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 13px;
}
.d-genres a:hover {
    background: rgba(255, 255, 255, 0.2);
}
.meta {
    color: var(--mute);
}
.d-info > p {
    color: #d3c8de;
    margin: 12px 0 22px;
}
.d-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.watch {
    padding: 8px 5vw 0;
    display: grid;
    gap: 18px;
}
.player {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--r);
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
}
.player-inner {
    text-align: center;
    padding: 24px;
    display: grid;
    gap: 14px;
    justify-items: center;
    color: var(--mute);
}
.player.playing .player-inner {
    color: var(--text);
}
.play-ico {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--red);
    display: grid;
    place-items: center;
}
.play-ico::before {
    content: "";
    margin-left: 5px;
    border-left: 20px solid #fff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}
.lock-ico {
    font: 800 15px var(--font-h);
    padding: 8px 16px;
    border-radius: 99px;
    background: var(--gold);
    color: #2a1d05;
}
.player.locked {
    background: linear-gradient(135deg, #2a1d10, #150f1c);
}
.pbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.pbar h2 {
    font-size: 20px;
}
.pbar .btns {
    display: flex;
    gap: 8px;
}
.btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

.eps-wrap {
    padding: 30px 5vw 0;
}
.eps-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.eps-head h2 {
    font-size: 24px;
}
.eps-head span {
    color: var(--mute);
    font-size: 14px;
}
.eps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
    gap: 10px;
}
.ep {
    position: relative;
    padding: 11px 0;
    border-radius: 10px;
    background: var(--bg2);
    border: 1px solid var(--line);
    font-weight: 600;
}
.ep:hover {
    border-color: var(--text);
}
.ep.now {
    background: var(--red);
    border-color: var(--red);
}
.ep.lock {
    color: var(--gold);
}
.ep.lock::after {
    content: "VIP";
    position: absolute;
    top: -6px;
    right: -4px;
    font-size: 9px;
    background: var(--gold);
    color: #2a1d05;
    padding: 1px 5px;
    border-radius: 99px;
}
.notfound {
    padding: 120px 5vw;
    text-align: center;
}
.notfound h1 {
    font-size: 32px;
    margin-bottom: 10px;
}
.notfound p {
    color: var(--mute);
    margin-bottom: 20px;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 20px);
    background: var(--text);
    color: var(--bg);
    padding: 11px 20px;
    border-radius: 99px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: 0.25s;
    z-index: 200;
}
.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 720px) {
    .nav,
    .search {
        display: none;
    }
    .topbar {
        gap: 12px;
    }
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .hero {
        min-height: 56vh;
    }
    .hero-dots {
        display: none;
    }
    .d-main {
        flex-direction: column;
        align-items: flex-start;
    }
    .d-poster {
        flex-basis: auto;
        width: 150px;
    }
    .d-hero {
        padding-top: 28px;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    html {
        scroll-behavior: auto;
    }
}
/* Refined streaming interface */
:root {
    --bg: #0c0d12;
    --bg2: #161820;
    --line: #282a35;
    --text: #f6f5f8;
    --mute: #9395a5;
    --red: #ee4566;
    --red-d: #d73254;
    --gold: #eacb91;
    --r: 12px;
}
body {
    font-size: 14px;
}
.topbar {
    padding: 18px max(4vw, 20px);
    background: rgba(12, 13, 18, 0.94);
    gap: 42px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -1px;
    font-size: 26px;
}
.logo .brand-mark {
    display: grid;
    place-items: center;
    width: 30px;
    height: 34px;
    background: var(--red);
    color: white;
    border-radius: 9px;
    font-size: 23px;
    font-style: italic;
}
.nav {
    font-size: 14px;
    gap: 30px;
}
.nav a.active {
    position: relative;
}
.nav a.active:after {
    content: "";
    position: absolute;
    bottom: -25px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--red);
}
.search input {
    width: 240px;
    background: #1a1c24;
    padding: 10px 18px;
    font-size: 13px;
}
.auth-btns {
    display: flex;
    gap: 10px;
}
.btn {
    border-radius: 8px;
    padding: 12px 22px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn.sm {
    padding: 8px 16px;
}
.btn.ghost {
    background: rgba(255, 255, 255, 0.025);
}
.hero {
    min-height: 580px;
    align-items: center;
    padding: 70px 6vw;
}
.hero-bg {
    opacity: 0.52;
}
.hero-bg:after {
    background:
        linear-gradient(90deg, #0c0d12 2%, rgba(12, 13, 18, 0.3) 100%),
        linear-gradient(0deg, #0c0d12, transparent 60%);
}
.hero-ch {
    right: 10vw;
    font-size: 380px;
    opacity: 0.18;
    text-shadow: 0 0 120px currentColor;
    transform: translateY(-50%) rotate(-8deg);
}
.hero-txt {
    max-width: 600px;
}
.hero-txt h1 {
    font-size: clamp(38px, 4.8vw, 66px);
    letter-spacing: -2px;
    line-height: 1.08;
    margin: 20px 0;
}
.hero-txt p {
    font-size: 16px;
    line-height: 1.8;
    color: #b8b8c7;
    max-width: 500px;
    margin-bottom: 30px;
}
.eyebrow {
    font-size: 11px;
    letter-spacing: 2.5px;
    font-weight: 600;
    color: var(--red);
}
.hero-meta {
    color: #a9a6b6;
    font-size: 12px;
    margin-top: 16px;
}
.hero-dots {
    bottom: 44px;
}
.hero-dots button {
    width: 7px;
    height: 7px;
}
.hero-dots button.on {
    width: 24px;
}
.block {
    padding: 34px 4vw 10px;
}
.block-head {
    gap: 20px;
    margin-bottom: 24px;
}
.block-head h2 {
    font-size: 25px;
    letter-spacing: -0.7px;
}
.chips {
    gap: 7px;
}
.chip {
    font-size: 12px;
    border-radius: 6px;
    padding: 7px 12px;
    background: #14161e;
}
.chip.on {
    background: #ee45661a;
    border-color: #ee45664d;
    color: #ff819b;
}
.grid {
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 28px 18px;
}
.poster {
    aspect-ratio: 2/3;
    padding: 14px;
    border: 1px solid #ffffff09;
    box-shadow: 0 10px 25px #0003;
}
.poster:before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 20%, #ffffff14, transparent 55%),
        linear-gradient(0deg, #0009, transparent 65%);
}
.poster .ch {
    right: 8px;
    top: 24px;
    font-size: 140px;
    opacity: 0.24;
    writing-mode: vertical-rl;
}
.poster .eps-n {
    font-size: 10px;
    background: #0007;
    border: 1px solid #ffffff1a;
}
.badge.vip {
    border-radius: 4px;
    font-size: 9px;
    padding: 2px 7px;
    background: #edce99;
}
.card h3 {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 12px;
}
.card small {
    font-size: 12px;
    display: block;
    margin-top: 4px;
}
.rail .card {
    flex-basis: 176px;
}
.rail {
    gap: 20px;
    scrollbar-width: thin;
    scrollbar-color: #343642 transparent;
}
.vip-banner {
    margin: 50px 4vw;
    padding: 34px;
    border-radius: 12px;
    background: linear-gradient(110deg, #25211c, #17171e);
    border-color: #54432e;
}
.vip-banner h2 {
    font-size: 25px;
}
.vip-banner p {
    font-size: 13px;
    color: #afa393;
}
.foot {
    padding: 30px 4vw;
    grid-template-columns: 1fr auto;
    gap: 8px;
    font-size: 12px;
}
.foot strong {
    grid-column: 1/-1;
}
.foot p:last-child {
    grid-column: 2;
    grid-row: 2;
}
.watch-heading {
    padding: 28px 4vw 22px;
    display: flex;
    justify-content: space-between;
    color: var(--mute);
    font-size: 12px;
}
.watch-heading span {
    font-size: 10px;
    letter-spacing: 2px;
    color: #646778;
}
.watch-heading a:hover {
    color: var(--text);
}
.watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    margin: 0 4vw;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #101117;
}
.watch {
    padding: 0;
    gap: 0;
    align-content: start;
    min-width: 0;
}
.player {
    border: 0;
    border-radius: 0;
    aspect-ratio: 16/10;
    background: radial-gradient(ellipse at 50% 40%, #22202f, #08090d 70%);
}
.player-inner {
    gap: 16px;
    width: 100%;
    padding: 30px;
}
.player-inner h3 {
    font-size: 22px;
    max-width: 480px;
}
.player-inner p {
    font-size: 12px;
    color: var(--mute);
}
.player-series {
    font-size: 10px;
    letter-spacing: 4px;
    color: #7f7c91;
    margin-bottom: 18px;
}
.play-ico {
    width: 64px;
    height: 64px;
    background: #ee45661a;
    border: 1px solid #ee45665c;
    box-shadow: 0 0 45px #ee456612;
}
.play-ico:before {
    border-left-color: var(--red);
    border-left-width: 16px;
    border-top-width: 10px;
    border-bottom-width: 10px;
}
.preview-note {
    font-size: 11px;
    color: #727584;
}
.player.locked {
    background: radial-gradient(ellipse at center, #34291f, #090a0e 75%);
}
.pbar {
    padding: 20px 22px;
    border-top: 1px solid var(--line);
    gap: 15px;
}
.pbar h2 {
    font: 500 13px var(--font-b);
    color: #c1c1ce;
    width: 100%;
}
.pbar .btns {
    justify-content: space-between;
    width: 100%;
}
.pbar .btn {
    font-size: 12px;
    padding: 8px 12px;
}
.episode-panel {
    padding: 26px 22px;
    background: #16171f;
    border-left: 1px solid var(--line);
    min-width: 0;
}
.panel-kicker {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--red);
    margin-bottom: 12px;
}
.episode-panel > h2 {
    font-size: 23px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}
.panel-note {
    font-size: 12px;
    color: var(--mute);
    margin: 12px 0 24px;
}
.eps-wrap {
    padding: 0;
}
.eps-head {
    border-top: 1px solid var(--line);
    padding-top: 20px;
    gap: 8px;
    margin-bottom: 16px;
}
.eps-head h2 {
    font: 600 13px var(--font-b);
}
.eps-head span {
    font-size: 11px;
}
.eps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
    max-height: 320px;
    overflow-y: auto;
    padding: 6px 5px 8px 0;
    scrollbar-width: thin;
    scrollbar-color: #393b48 transparent;
}
.ep {
    font-size: 12px;
    padding: 11px 0;
    border-radius: 6px;
    background: #20212c;
}
.ep.lock {
    color: #b0a28b;
}
.ep.lock:after {
    font-size: 7px;
    top: -3px;
    right: -2px;
    border-radius: 3px;
    padding: 0 3px;
}
.ep.now {
    background: var(--red);
    color: white;
}
.episode-note {
    border-top: 1px solid var(--line);
    margin-top: 20px;
    padding-top: 16px;
    font-size: 10px;
    color: var(--mute);
    display: flex;
    gap: 8px;
    align-items: center;
}
.episode-note .vip-tag {
    border-radius: 4px;
    font-size: 9px;
}
.d-hero {
    margin: 30px 4vw 0;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}
.d-hero-bg,
.d-hero-ch {
    display: none;
}
.crumb {
    font-size: 11px;
    margin-bottom: 22px;
    color: #777b8e;
}
.d-main {
    align-items: flex-start;
    gap: 24px;
}
.d-poster {
    flex-basis: 125px;
    min-height: 180px;
    box-shadow: none;
}
.d-poster .ch {
    font-size: 85px;
}
.d-info {
    max-width: 820px;
}
.d-info h1 {
    font-size: 28px;
    letter-spacing: -0.7px;
}
.d-info > p {
    font-size: 13px;
    line-height: 1.9;
    color: #a5a6b6;
    margin: 10px 0;
}
.d-genres {
    margin: 12px 0;
}
.d-genres a {
    border-radius: 5px;
    font-size: 10px;
    background: #20212a;
}
.d-cta {
    margin-top: 20px;
}
.d-cta .btn {
    font-size: 12px;
    padding: 9px 15px;
}
.sheet {
    background: #171820;
    border-radius: 14px;
}
.form input {
    background: #101117;
}
.plan {
    border-radius: 9px;
}
.tab {
    border-radius: 7px;
}
.tabs {
    border-radius: 9px;
}
.modal {
    backdrop-filter: blur(7px);
}
@media (min-width: 1500px) {
    .watch-layout,
    .watch-heading,
    .d-hero,
    main > .block {
        max-width: 1440px;
        margin-left: auto;
        margin-right: auto;
    }
    .watch-heading {
        padding-left: 0;
        padding-right: 0;
    }
}
@media (max-width: 1000px) {
    .topbar {
        gap: 24px;
    }
    .search input {
        width: 180px;
    }
    .watch-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
    }
    .episode-panel {
        padding: 22px 16px;
    }
    .hero {
        min-height: 500px;
    }
    .chips {
        width: 100%;
    }
}
@media (max-width: 720px) {
    .topbar {
        padding: 14px 5vw;
    }
    .nav,
    .search {
        display: none;
    }
    .logo {
        font-size: 23px;
    }
    .logo .brand-mark {
        width: 26px;
        height: 29px;
        font-size: 20px;
    }
    .hero {
        padding: 52px 5vw;
        min-height: 490px;
    }
    .hero-txt h1 {
        font-size: 42px;
    }
    .hero-ch {
        right: -35px;
        font-size: 300px;
        opacity: 0.1;
    }
    .hero-txt p {
        font-size: 14px;
    }
    .hero-meta {
        font-size: 11px;
    }
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 14px;
    }
    .block {
        padding: 28px 5vw 8px;
    }
    .block-head h2 {
        font-size: 23px;
    }
    .chips {
        flex-wrap: nowrap;
        overflow: auto;
        padding-bottom: 6px;
    }
    .chip {
        flex-shrink: 0;
    }
    .watch-heading {
        padding: 22px 5vw 16px;
    }
    .watch-heading span {
        display: none;
    }
    .watch-layout {
        display: flex;
        flex-direction: column;
        margin: 0 4vw;
    }
    .player {
        aspect-ratio: 4/3;
    }
    .player-inner h3 {
        font-size: 20px;
    }
    .player-series {
        margin-bottom: 4px;
    }
    .episode-panel {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding: 22px;
    }
    .episode-panel > h2 {
        font-size: 20px;
    }
    .panel-note {
        margin-bottom: 18px;
    }
    .eps {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        max-height: 230px;
    }
    .d-hero {
        padding: 20px 0;
    }
    .d-main {
        flex-direction: row;
        gap: 18px;
    }
    .d-poster {
        width: 90px;
        flex: 0 0 90px;
        min-height: 135px;
    }
    .d-info h1 {
        font-size: 22px;
    }
    .d-cta .btn {
        width: 100%;
    }
    .foot {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    .vip-banner {
        padding: 24px;
    }
    .vip-banner h2 {
        font-size: 22px;
    }
    .plans {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* Drama overview: centered introduction and editorial content */
.movie-detail {
    overflow: hidden;
}
.movie-hero {
    position: relative;
    padding: 28px 4vw 16px;
    isolation: isolate;
}
.movie-backdrop {
    position: absolute;
    inset: -80px;
    z-index: -2;
    filter: blur(65px);
    opacity: 0.3;
    transform: scale(1.1);
}
.movie-backdrop-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, var(--bg) 0%, rgba(12, 13, 18, 0.35) 80%);
}
.movie-crumb {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    line-height: 1.6;
}
.movie-crumb > span:last-child {
    color: #b7b6c5;
}
.movie-intro {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 28px 0 8px;
}
.movie-poster {
    width: 180px;
    max-width: 100%;
    height: 270px;
    flex: none;
    aspect-ratio: 2/3;
    box-shadow: 0 24px 65px #0008;
    margin-bottom: 28px;
    border: 1px solid #ffffff20;
}
.movie-poster .ch {
    font-size: 150px;
    top: 28px;
    right: 12px;
}
.movie-poster-label {
    position: relative;
    text-align: left;
    font-size: 10px;
    letter-spacing: 3px;
    line-height: 1.8;
    font-weight: 600;
    color: #fff9;
}
.movie-intro > .eyebrow {
    font-size: 9px;
    letter-spacing: 3px;
}
.movie-intro h1 {
    font-size: clamp(27px, 3.2vw, 42px);
    letter-spacing: -1px;
    max-width: 720px;
    line-height: 1.2;
    margin: 14px 0;
}
.movie-genres {
    justify-content: center;
    margin: 3px 0 14px;
}
.movie-genres a {
    border: 1px solid #ffffff1a;
    background: #ffffff06;
    padding: 5px 12px;
}
.movie-meta {
    font-size: 12px;
    color: var(--mute);
}
.movie-total {
    display: grid;
    gap: 2px;
    margin: 20px 0;
    color: var(--mute);
    font-size: 11px;
}
.movie-total strong {
    font: 600 26px var(--font-h);
    color: var(--text);
}
.movie-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.movie-actions .btn {
    min-height: 44px;
}
.share-status {
    font-size: 12px;
    color: var(--gold);
    max-width: 90vw;
    overflow-wrap: anywhere;
    min-height: 20px;
    margin-top: 12px;
}
.movie-content {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 32px 48px;
}
.movie-section {
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
}
.movie-section:last-child {
    border-bottom: 0;
}
.movie-section > .eyebrow {
    display: block;
    margin-bottom: 10px;
    font-size: 9px;
    letter-spacing: 2px;
}
.movie-section h2 {
    font-size: 21px;
    letter-spacing: -0.4px;
    line-height: 1.4;
    margin-bottom: 15px;
}
.movie-section > p,
.movie-faq p {
    font-size: 14px;
    color: #a5a6b6;
    line-height: 1.9;
}
.movie-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}
.movie-section-head > span {
    font-size: 12px;
    color: var(--mute);
    white-space: nowrap;
}
.movie-section-head > a {
    font-size: 11px;
    color: var(--red);
    white-space: nowrap;
}
.movie-section .section-note {
    font-size: 12px;
    margin-bottom: 22px;
}
.movie-episodes .eps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
    max-height: none;
    overflow: visible;
    gap: 12px;
    padding: 0;
}
.movie-episodes .ep {
    display: grid;
    place-items: center;
    min-height: 44px;
    padding: 12px 0;
    font-size: 13px;
    transition:
        border-color 0.15s,
        background 0.15s;
}
.movie-episodes .ep:hover {
    background: #ee456619;
    border-color: var(--red);
    color: var(--text);
}
.movie-episodes .ep.lock:after {
    font-size: 7px;
    right: 3px;
    top: -5px;
}
.movie-vip-note {
    margin-top: 22px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    color: var(--mute);
    font-size: 11px;
}
.movie-vip-note .vip-tag {
    border-radius: 4px;
    font-size: 10px;
}
.movie-vip-note button {
    margin-left: auto;
    font-size: 11px;
    color: var(--gold);
}
.movie-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 22px;
    gap: 20px;
    background: #15161e;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 22px;
}
.movie-facts dt {
    font-size: 11px;
    color: var(--mute);
    margin-bottom: 8px;
}
.movie-facts dd {
    font-size: 13px;
    margin: 0;
    font-weight: 500;
}
.movie-faq details {
    padding: 17px 0;
    border-bottom: 1px solid #ffffff08;
}
.movie-faq details:first-child {
    padding-top: 2px;
}
.movie-faq details:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.movie-faq summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.6;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.movie-faq summary::-webkit-details-marker {
    display: none;
}
.movie-faq summary:after {
    content: "+";
    color: var(--red);
    font-size: 18px;
    line-height: 1.2;
}
.movie-faq details[open] summary:after {
    content: "-";
}
.movie-faq p {
    margin-top: 8px;
    font-size: 13px;
}
.movie-recommendations {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}
.movie-recommendations .card {
    min-width: 0;
}
.movie-recommendations .card h3 {
    font-size: 12px;
}
.movie-recommendations .card small {
    font-size: 10px;
}
.movie-recommendations .poster .ch {
    font-size: 110px;
}
.movie-recommendations .poster {
    padding: 10px;
}
@media (max-width: 720px) {
    .movie-hero {
        padding: 22px 5vw 0;
    }
    .movie-crumb {
        font-size: 10px;
    }
    .movie-intro {
        padding-top: 32px;
    }
    .movie-poster {
        width: 150px;
        height: 225px;
        margin-bottom: 24px;
    }
    .movie-poster .ch {
        font-size: 125px;
    }
    .movie-intro h1 {
        font-size: 29px;
        max-width: 95%;
        letter-spacing: -0.7px;
    }
    .movie-content {
        padding: 0 5vw 24px;
    }
    .movie-section {
        padding: 25px 0;
    }
    .movie-section h2 {
        font-size: 19px;
    }
    .movie-section > p {
        font-size: 13px;
    }
    .movie-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 18px;
        gap: 20px 14px;
    }
    .movie-recommendations {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 14px;
    }
    .movie-recommendations .card:last-child {
        display: none;
    }
    .movie-recommendations .poster .ch {
        font-size: 130px;
    }
    .movie-episodes .eps {
        grid-template-columns: repeat(auto-fill, minmax(43px, 1fr));
        gap: 11px;
    }
    .movie-actions .btn {
        font-size: 13px;
        padding: 11px 17px;
    }
    .movie-section-head {
        gap: 10px;
    }
    .movie-vip-note button {
        margin-left: 0;
    }
    .movie-total {
        margin: 16px 0;
    }
}
/* Centered account and membership dialogs */
.modal {
    align-items: center;
    padding: 24px;
    background: rgba(3, 4, 9, 0.8);
    backdrop-filter: blur(12px);
    overflow: hidden;
}
.sheet {
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #393b48 transparent;
    padding: 36px;
    border: 1px solid #ffffff14;
    border-radius: 22px;
    background: radial-gradient(ellipse at top left, #242331 0, transparent 55%), #15161e;
    box-shadow: 0 32px 120px #0009;
    max-width: 860px;
}
.sheet.narrow {
    max-width: 440px;
    padding: 34px;
}
.x {
    top: 16px;
    right: 16px;
    width: 30px;
    height: 30px;
    font-size: 23px;
    background: #ffffff07;
    border: 1px solid #ffffff0d;
    color: var(--mute);
    display: grid;
    place-items: center;
}
.x:hover {
    color: white;
    background: #ffffff12;
}
.auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
    font-size: 10px;
    letter-spacing: 2px;
    color: #a9a6b8;
    font-weight: 600;
}
.auth-brand .brand-mark {
    width: 30px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--red);
    color: white;
    font: 800 italic 24px var(--font-h);
    letter-spacing: 0;
}
.tabs {
    padding: 5px;
    border: 1px solid #ffffff0a;
    background: #0c0d1380;
    border-radius: 11px;
    margin-bottom: 26px;
    gap: 4px;
}
.tab {
    font-size: 13px;
    padding: 10px;
    border-radius: 7px;
}
.tab.on {
    background: #2b2c39;
    box-shadow: 0 2px 8px #0003;
}
.sheet h3 {
    font-size: 28px;
    letter-spacing: -0.7px;
    margin-bottom: 8px;
}
.auth-sub {
    font-size: 13px;
    color: var(--mute);
    line-height: 1.7;
    margin-bottom: 24px;
}
.form {
    gap: 16px;
    margin-top: 0;
}
.form label {
    font-size: 12px;
    gap: 8px;
    color: #b5b5c6;
}
.form input {
    width: 100%;
    min-height: 46px;
    background: #0e0f1680;
    border: 1px solid #ffffff13;
    border-radius: 9px;
    padding: 12px 14px;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}
.form input:focus {
    outline: none;
    border-color: #ee456680;
    box-shadow: 0 0 0 3px #ee456612;
}
.form .err {
    margin: 0;
    font-size: 11px;
    min-height: 0;
}
.form .err:empty {
    display: none;
}
.form .block-btn {
    margin-top: 6px;
    min-height: 46px;
}
.form .btn.red {
    box-shadow: 0 6px 24px #ee45661a;
}
#m-vip .sheet {
    text-align: center;
}
.vip-heading-icon {
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid #eacb912e;
    border-radius: 14px;
    background: #eacb9110;
    color: var(--gold);
    font-size: 28px;
}
#m-vip .eyebrow {
    color: var(--gold);
    font-size: 9px;
    letter-spacing: 3px;
}
#m-vip h3 {
    margin-top: 10px;
    font-size: 32px;
}
#m-vip .sub {
    font-size: 13px;
    margin: 0 0 18px;
    color: var(--mute);
}
.vip-benefits {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 24px;
    color: #c0b7a5;
    font-size: 11px;
    margin-bottom: 30px;
}
.plans {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    text-align: left;
}
.plan {
    position: relative;
    text-align: left;
    border: 1px solid #ffffff13;
    border-radius: 12px;
    background: #0e0f1680;
    padding: 16px;
    transition:
        background 0.15s,
        border-color 0.15s;
    min-width: 0;
}
.plan:hover {
    background: #eacb9109;
    border-color: #eacb9166;
}
.plan.selected {
    border-color: var(--gold);
    background: linear-gradient(140deg, #eacb9117, #eacb9105);
    box-shadow: 0 0 0 1px #eacb9122;
}
.plan-top {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 14px;
}
.plan .plan-code {
    font-size: 11px;
    color: #b9b8c6;
    font-weight: 600;
}
.plan .plan-check {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    border: 1px solid #565566;
    border-radius: 50%;
}
.plan.selected .plan-check {
    border: 4px solid var(--gold);
    background: #201b14;
}
.plan b {
    font: 600 23px var(--font-h);
    letter-spacing: -1px;
    color: var(--text);
    white-space: nowrap;
}
.plan .plan-duration {
    font-size: 12px;
    color: #c2becd;
    margin-top: 7px;
}
.plan .plan-caption {
    font-size: 9px;
    line-height: 1.5;
    color: #777b8e;
    margin-top: 12px;
}
.plan.best {
    border-color: #eacb9155;
}
.plan.best.selected {
    border-color: var(--gold);
}
.plan.best:before {
    content: "Populer";
    font-size: 9px;
    letter-spacing: 0.3px;
    top: -9px;
    left: 16px;
    transform: none;
    border-radius: 4px;
    padding: 2px 7px;
}
.vip-selection {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    margin-top: 24px;
    text-align: left;
}
.vip-selection > div > span {
    display: block;
    font-size: 10px;
    color: var(--mute);
    margin-bottom: 6px;
}
.vip-selection strong {
    font-size: 14px;
    font-weight: 500;
}
.vip-selection .btn {
    min-width: 160px;
}
.vip-status {
    font-size: 11px;
    color: var(--gold);
    margin-top: 12px;
    line-height: 1.6;
}
.vip-status:empty {
    display: none;
}
@media (max-width: 720px) {
    .modal {
        padding: 16px;
    }
    .sheet,
    .sheet.narrow {
        padding: 28px 22px;
        max-height: calc(100dvh - 32px);
        border-radius: 18px;
    }
    .plans {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 12px;
    }
    .plan {
        padding: 14px;
    }
    .plan b {
        font-size: 23px;
    }
    #m-vip h3 {
        font-size: 26px;
    }
    .vip-benefits {
        gap: 7px 14px;
        font-size: 10px;
        margin-bottom: 25px;
    }
    .vip-selection {
        gap: 12px;
    }
    .vip-selection strong {
        font-size: 12px;
    }
    .vip-selection .btn {
        min-width: 0;
        padding: 12px 16px;
        font-size: 12px;
    }
    .sheet h3 {
        font-size: 26px;
    }
    .auth-brand {
        margin-bottom: 22px;
    }
}
@media (max-height: 650px) {
    .sheet {
        padding-top: 24px;
        padding-bottom: 24px;
    }
    .auth-brand {
        margin-bottom: 16px;
    }
    .tabs {
        margin-bottom: 18px;
    }
    .auth-sub {
        margin-bottom: 16px;
    }
    .form {
        gap: 12px;
    }
}
