:root{
  color-scheme:dark;
  --bg:#0a0a0b;--panel:#141416;--panel2:#1c1c1f;--line:#26262a;
  --text:#f5f5f6;--muted:#9a9aa2;--dim:#6b6b73;--white:#fff;--accent:#ff3b5c;
  --r:14px;--nav:68px;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font:14px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer}
img{display:block}
.hidden{display:none!important}
.app{max-width:760px;margin:0 auto;min-height:100vh;padding-bottom:calc(var(--nav) + 24px);position:relative}

/* ---------- brand / header ---------- */
.logo{font-weight:800;letter-spacing:-.02em;font-size:24px;color:var(--white)}
.logo b{color:var(--accent);font-weight:800}
.topbar{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;position:sticky;top:0;z-index:20;background:linear-gradient(#0a0a0bf2 60%,#0a0a0b00)}
.topbar.float{position:absolute;left:0;right:0;background:linear-gradient(#000a,#0000)}
.icon-btn{width:38px;height:38px;border:0;background:transparent;display:grid;place-items:center;border-radius:50%}
.icon-btn:active{background:#ffffff1a}
.icon-btn svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.icon-btn.on svg{fill:var(--accent);stroke:var(--accent)}
.tb-actions{display:flex;gap:2px}

/* ---------- bottom nav ---------- */
.bottom-nav{position:fixed;left:50%;transform:translateX(-50%);bottom:0;width:100%;max-width:760px;height:var(--nav);display:grid;grid-template-columns:repeat(4,1fr);background:#0c0c0def;backdrop-filter:blur(18px);border-top:1px solid var(--line);z-index:50;padding-bottom:env(safe-area-inset-bottom)}
.bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--dim);font-size:11px}
.bottom-nav a svg{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.bottom-nav a.active{color:var(--white)}
.bottom-nav a.active svg{fill:currentColor}

/* ---------- hero ---------- */
.hero{position:relative;margin-top:-66px}
.hero-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
.hero-track::-webkit-scrollbar{display:none}
.hero-slide{position:relative;flex:0 0 100%;scroll-snap-align:start;height:min(78vh,560px);min-height:430px;overflow:hidden;background:var(--panel)}
.hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity .5s}
.hero-slide::after{content:"";position:absolute;inset:0;background:linear-gradient(#0a0a0b55 0%,#0a0a0b00 30%,#0a0a0bcc 72%,#0a0a0b 100%)}
.hero-body{position:absolute;left:18px;right:18px;bottom:40px;z-index:2}
.badge{display:inline-block;padding:3px 10px;border-radius:7px;background:#ffffff26;backdrop-filter:blur(8px);font-size:12px;margin-bottom:8px;border:1px solid #ffffff1f}
.hero h1{margin:0 0 4px;font-size:30px;line-height:1.1;letter-spacing:-.02em}
.meta{color:var(--muted);font-size:13px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.meta .star{color:#ffd24d}
.hero p{margin:8px 0 14px;color:#d7d7db;font-size:13px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.cta-row{display:flex;gap:10px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:11px;background:var(--white);color:#0a0a0b;font-weight:700;padding:12px 20px}
.btn svg{width:17px;height:17px;fill:currentColor}
.btn.block{width:100%;padding:14px}
.btn.sq{width:46px;padding:0;background:#ffffff24;color:#fff;border:1px solid #ffffff22;backdrop-filter:blur(8px)}
.btn.sq.on{background:var(--accent);border-color:var(--accent)}
.btn.sq svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2}
.dots{position:absolute;left:18px;bottom:16px;z-index:3;display:flex;gap:5px}
.dots i{cursor:pointer;width:6px;height:6px;border-radius:9px;background:#ffffff55;transition:.25s}
.dots i.on{width:22px;background:#fff}

/* ---------- sections / rows ---------- */
.section{padding:0 18px;margin-top:24px}
.sec-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:12px}
.sec-head h2{margin:0;font-size:17px;font-weight:700;letter-spacing:-.01em}
.sec-head button{border:0;background:none;color:var(--muted);font-size:12px;padding:0}
.row{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x proximity;scroll-padding:0 18px;margin:0 -18px;padding:0 18px 4px;scrollbar-width:none}
.row::-webkit-scrollbar{display:none}
.row .card{flex:0 0 112px;scroll-snap-align:start}
.row.expanded{flex-wrap:wrap;overflow:visible}
.row.expanded .card{flex:0 0 calc(33.33% - 8px)}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px 10px}
.card{cursor:pointer;min-width:0}
.poster{position:relative;aspect-ratio:2/3;border-radius:10px;overflow:hidden;background:var(--panel2)}
.poster img{width:100%;height:100%;object-fit:cover}
.poster-fb{position:absolute;inset:0;display:grid;place-items:center;font-weight:800;font-size:28px;color:var(--dim)}
.card h3{margin:7px 0 2px;font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card .sub{font-size:11px;color:var(--muted);display:flex;gap:6px;align-items:center}
.tag{display:inline-block;margin-top:5px;padding:2px 8px;border-radius:5px;background:var(--panel2);color:#c9c9ce;font-size:10px}
.status{margin:30px 18px;padding:18px;border-radius:var(--r);background:var(--panel);color:var(--muted);text-align:center}
.empty{grid-column:1/-1;padding:30px 10px;text-align:center;color:var(--muted)}

/* ---------- search ---------- */
.page-title{font-size:24px;font-weight:800;margin:6px 18px 14px;letter-spacing:-.02em}
.searchbox{display:flex;align-items:center;gap:10px;margin:0 18px;padding:0 14px;height:46px;background:var(--panel2);border-radius:12px;border:1px solid var(--line)}
.searchbox svg{width:19px;height:19px;stroke:var(--muted);fill:none;stroke-width:2;flex:none}
.searchbox input{flex:1;min-width:0;border:0;outline:0;background:transparent;font-size:14px}
.searchbox input::placeholder{color:var(--dim)}
.chips{display:flex;gap:8px;overflow-x:auto;padding:0 18px;margin:14px 0 4px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;border:0;padding:7px 16px;border-radius:999px;background:transparent;color:var(--muted);font-size:13px}
.chip.on{background:#fff;color:#0a0a0b;font-weight:600}
.hint{padding:0 18px;color:var(--muted);font-size:12px;margin:8px 0}
.list{padding:0 18px}
.li{display:flex;gap:14px;align-items:center;padding:12px 0;cursor:pointer}
.li .poster{flex:0 0 64px;aspect-ratio:2/3;border-radius:8px}
.li-body{flex:1;min-width:0}
.li-body h3{margin:0 0 3px;font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.li-body .meta{font-size:12px;gap:6px}
.li .chev{width:18px;height:18px;stroke:var(--dim);fill:none;stroke-width:2;flex:none}
.hot{display:flex;flex-wrap:wrap;gap:8px;padding:0 18px}
.hot .chip{background:var(--panel2);color:#d6d6da}

/* ---------- categories ---------- */
.cat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;padding:0 18px}
.cat{position:relative;aspect-ratio:16/10;border-radius:14px;overflow:hidden;border:0;text-align:left;padding:0;background:var(--panel2);color:#fff}
.cat-bg{position:absolute;inset:0}
.cat::after{content:"";position:absolute;inset:0;background:linear-gradient(#0000 25%,#000000b8)}
.cat span{position:absolute;left:12px;bottom:10px;z-index:2;font-weight:700;font-size:15px}

/* ---------- detail ---------- */
.d-hero{position:relative;height:340px;overflow:hidden;background:var(--panel2)}
.d-hero img{width:100%;height:100%;object-fit:cover}
.d-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(#0000 35%,#0a0a0b 100%)}
.d-main{padding:0 18px;margin-top:-84px;position:relative;z-index:2}
.d-main h1{margin:0 0 6px;font-size:27px;letter-spacing:-.02em;line-height:1.15}
.pills{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 4px}
.pill{padding:5px 14px;border-radius:999px;background:var(--panel2);color:#d8d8dc;font-size:12px;border:1px solid var(--line)}
.d-h{font-size:15px;font-weight:700;margin:20px 0 8px}
.d-syn{color:#cfcfd4;font-size:13.5px;margin:0}
.info{display:grid;grid-template-columns:84px 1fr;gap:9px 8px;margin:20px 0;font-size:13px}
.info dt{color:var(--muted)}.info dd{margin:0;color:#e5e5e8}
.tabs{display:flex;gap:26px;border-bottom:1px solid var(--line);margin:24px 0 4px}
.tab{border:0;background:none;padding:10px 0;color:var(--muted);font-size:15px;position:relative}
.tab.on{color:#fff;font-weight:600}
.tab.on::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:#fff;border-radius:2px}
.ep{display:flex;gap:14px;align-items:center;padding:10px 0;cursor:pointer;border-bottom:1px solid #ffffff0a}
.ep:last-child{border:0}
.ep.cur{background:#ffffff0a;margin:0 -18px;padding-left:18px;padding-right:18px}
.thumb{position:relative;flex:0 0 112px;aspect-ratio:16/9;border-radius:8px;overflow:hidden;background:var(--panel2)}
.thumb img{width:100%;height:100%;object-fit:cover}
.ep-body{flex:1;min-width:0}
.ep-body h3{margin:0;font-size:14px;font-weight:600}
.ep-body p{margin:2px 0 0;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.play-c{width:34px;height:34px;flex:none;border:1.6px solid #fff;border-radius:50%;display:grid;place-items:center}
.play-c svg{width:13px;height:13px;fill:#fff;margin-left:2px}

/* ---------- player ---------- */
.p-top{display:flex;align-items:center;gap:6px;padding:10px 12px;position:sticky;top:0;z-index:20;background:#0a0a0bf2}
.p-top h1{flex:1;margin:0;font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.video-shell{position:relative;aspect-ratio:16/9;background:#000}
.video-shell video{width:100%;height:100%;background:#000}
.player-msg{position:absolute;inset:0;display:grid;place-items:center;text-align:center;padding:20px;background:#000c;color:#ddd;font-size:13px;pointer-events:none}
.player-msg.hide{display:none}
.err{color:#ff8a9c;font-size:12px;padding:10px 18px 0;margin:0}
.panel{margin:16px 18px 0;background:var(--panel);border-radius:16px;padding:4px 16px 8px}
.panel .tabs{margin:0;gap:34px}
.opt{display:flex;align-items:center;justify-content:space-between;width:100%;padding:15px 0;border:0;background:none;border-bottom:1px solid #ffffff0a;text-align:left;font-size:15px}
.opt:last-child{border:0}
.opt .hd{font-size:9px;padding:1px 5px;border-radius:4px;background:#ffffff26;margin-left:7px;vertical-align:2px}
.radio{width:21px;height:21px;border-radius:50%;border:1.6px solid #55555c;display:grid;place-items:center}
.opt.on .radio{border-color:#fff}
.opt.on .radio::after{content:"";width:11px;height:11px;border-radius:50%;background:#fff}
.next{display:flex;gap:14px;align-items:center;cursor:pointer}

/* ---------- splash ---------- */
.splash{position:fixed;inset:0;z-index:200;background:radial-gradient(120% 70% at 80% 0%,#1d1d22,#0a0a0b 60%);display:flex;flex-direction:column;align-items:center;justify-content:center;transition:opacity .2s,visibility .2s}
.splash.out{opacity:0;visibility:hidden}
.splash .logo{font-size:46px}
.splash p{margin:12px 0 0;color:#d5d5d9;font-size:14px;text-align:center}
.splash .load{position:absolute;bottom:60px;display:flex;flex-direction:column;align-items:center;gap:10px;color:var(--muted);font-size:12px}
.spin{width:26px;height:26px;border:3px solid #ffffff22;border-top-color:#fff;border-radius:50%;animation:sp 1s linear infinite}
@keyframes sp{to{transform:rotate(360deg)}}

/* ---------- desktop ---------- */
@media(min-width:700px){
  .row .card{flex-basis:140px}
  .hero-track{border-radius:0 0 20px 20px}
  .cat-grid{grid-template-columns:repeat(3,1fr)}
  .grid3{grid-template-columns:repeat(4,1fr)}
}

/* ---------- tambahan v2 ---------- */
button{-webkit-appearance:none;appearance:none}
img[data-src]{opacity:0;transition:opacity .25s}
img.in{opacity:1}
.poster img,.thumb img{position:absolute;inset:0}
.hero-img{opacity:0}.hero-img.in{opacity:1}
.sec-head{margin-bottom:12px}
.sec-head small{color:var(--dim);font-size:12px}
.searchbox .clr{border:0;background:none;padding:0;width:22px;height:22px;display:none;place-items:center;color:var(--muted)}
.searchbox .clr.show{display:grid}
.searchbox .clr svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round}
.toast{position:fixed;left:50%;bottom:calc(var(--nav) + 18px);transform:translate(-50%,12px);background:#fff;color:#0a0a0b;padding:10px 18px;border-radius:999px;font-weight:600;font-size:13px;opacity:0;pointer-events:none;transition:.22s;z-index:300}
.toast.show{opacity:1;transform:translate(-50%,0)}

/* dropdown kustom */
.dd{position:relative;display:inline-block}
.dd-btn{display:flex;align-items:center;gap:7px;border:1px solid #ffffff2e;background:#1c1c1fe6;border-radius:10px;padding:7px 10px 7px 12px;font-size:13px;color:#fff;backdrop-filter:blur(10px)}
.dd-l{color:var(--muted);font-size:12px}
.dd-v{font-weight:600;max-width:110px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dd .caret{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
.dd.open .caret{transform:rotate(180deg)}
.dd-menu{display:none;position:absolute;z-index:80;top:calc(100% + 6px);left:0;min-width:170px;max-height:260px;overflow-y:auto;background:#17171a;border:1px solid #ffffff22;border-radius:12px;padding:5px;box-shadow:0 14px 40px #000c}
.dd.up .dd-menu{top:auto;bottom:calc(100% + 8px)}
.dd.right .dd-menu{left:auto;right:0}
.dd.open .dd-menu{display:block}
.dd-opt{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;border:0;background:none;text-align:left;padding:10px 11px;border-radius:8px;font-size:14px;color:#e9e9ec;white-space:nowrap}
.dd-opt:hover,.dd-opt:active{background:#ffffff14}
.dd-opt.on{color:#fff;font-weight:600}
.dd-opt svg{width:16px;height:16px;stroke:#fff;fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.dd-opt i{font-style:normal;font-size:9px;padding:1px 5px;border-radius:4px;background:#ffffff26;margin-left:7px;vertical-align:2px}

/* player kustom */
.player-wrap{position:relative}
.video-shell{position:relative;aspect-ratio:16/9;background:#000;overflow:hidden;user-select:none;-webkit-user-select:none;touch-action:manipulation}
.video-shell:fullscreen{aspect-ratio:auto;width:100vw;height:100vh}
.video-shell video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000}
.p-msg{position:absolute;inset:0;display:grid;place-items:center;text-align:center;padding:20px;background:#000b;color:#ddd;font-size:13px;pointer-events:none;z-index:4}
.p-msg.hide{display:none}
.p-msg .spin{margin:0 auto 10px}
.sub-layer{position:absolute;left:0;right:0;bottom:7%;display:flex;justify-content:center;padding:0 5%;pointer-events:none;z-index:3;transition:bottom .2s}
.video-shell.ui .sub-layer{bottom:78px}
.sub-layer span{display:inline-block;max-width:100%;background:#000b;color:#fff;text-align:center;font-size:clamp(13px,3.6vw,20px);line-height:1.35;padding:3px 10px;border-radius:6px;white-space:pre-line;text-shadow:0 1px 2px #000}
.video-shell:fullscreen .sub-layer span{font-size:clamp(18px,2.6vw,30px)}
.sub-layer span:empty{display:none}
.big-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:64px;height:64px;border-radius:50%;border:0;background:#0009;backdrop-filter:blur(8px);display:grid;place-items:center;z-index:5;color:#fff;transition:opacity .2s}
.big-play svg{width:28px;height:28px;fill:#fff;stroke:none;margin-left:3px}
.big-play.hide{opacity:0;pointer-events:none}
.ctrl{position:absolute;left:0;right:0;bottom:0;padding:26px 12px 8px;background:linear-gradient(#0000,#000d);z-index:6;opacity:0;pointer-events:none;transition:opacity .2s}
.video-shell.ui .ctrl{opacity:1;pointer-events:auto}
.seek{position:relative;height:22px;display:flex;align-items:center;cursor:pointer;touch-action:none}
.seek .bar{position:relative;width:100%;height:4px;border-radius:4px;background:#ffffff33}
.seek .buf,.seek .prog{position:absolute;left:0;top:0;bottom:0;border-radius:4px;width:0}
.seek .buf{background:#ffffff40}.seek .prog{background:var(--accent)}
.seek .knob{position:absolute;top:50%;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;background:#fff;left:0;box-shadow:0 1px 6px #0009}
.crow{display:flex;align-items:center;gap:2px}
.cbtn{width:38px;height:38px;border:0;background:none;color:#fff;display:grid;place-items:center;border-radius:50%;flex:none}
.cbtn:active{background:#ffffff22}
.cbtn svg{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.cbtn.f svg{fill:currentColor;stroke:none}
.time{font-size:12px;color:#ddd;font-variant-numeric:tabular-nums;margin:0 6px;white-space:nowrap}
.sp{flex:1}
.crow .dd-btn{padding:6px 8px 6px 10px;font-size:12px}
.crow .dd-l{display:none}
.crow .dd-menu{min-width:150px}
.crow .dd:last-of-type .dd-menu{left:auto;right:0}
.dd-row{display:flex;gap:10px;padding:12px 18px 0;flex-wrap:wrap}
.dd-row .dd-btn{background:var(--panel2)}
.err{color:#ff8a9c;font-size:12px;padding:10px 18px 0;margin:0}
.err:empty{display:none}
@media(max-width:420px){.crow .dd-v{max-width:64px}.cbtn{width:34px}}

.more{padding:26px 18px 8px;text-align:center;color:var(--dim);font-size:12px;min-height:60px}

/* ---------- rapih v2.0.3 ---------- */
.section{margin-top:30px}
.grid3{gap:20px 12px}
.card{display:flex;flex-direction:column}
.poster{box-shadow:inset 0 0 0 1px #ffffff12}
.card h3{margin:9px 0 5px;font-size:12.5px;font-weight:600;line-height:1.3;height:2.6em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;overflow:hidden;text-overflow:clip;color:#f1f1f3}
.cmeta{display:flex;align-items:center;gap:8px;min-height:18px;font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden}
.cmeta .ep{overflow:hidden;text-overflow:ellipsis;color:#b4b4bb}
.sc{display:inline-flex;align-items:center;gap:3px;color:#ececef;font-weight:600;flex:none}
.star-i{width:12px;height:12px;fill:#ffc83d;stroke:none;flex:none}
.meta .sc{font-size:13px}
.meta .star-i{width:14px;height:14px}
.li-body .meta{gap:10px}
.li-body .meta .sc{font-size:12px}
.sec-head{align-items:center}
.sec-head h2{font-size:17px}
.sec-head small{font-size:11.5px;color:var(--dim)}
