:root{
 --bg:#090b12;
 --card:#151823;
 --line:#272a38;
 --primary:#854cf1;
 --text:#f7f7fc;
 --muted:#999cac;
 --gold:#eac36d;
}
*{box-sizing:border-box}
body{
 margin:0;
 font-family:Inter,system-ui,-apple-system,sans-serif;
 background:var(--bg);
 color:var(--text);
}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
img{max-width:100%;display:block}
h1,h2,h3{margin:0 0 12px}
p{line-height:1.65}
.muted{color:var(--muted)}
.brand{
 font-size:23px;
 font-weight:850;
 letter-spacing:-1px;
 white-space:nowrap;
}
.brand span{color:#ad83ff}
.primary{
 border:0;
 color:white;
 background:linear-gradient(135deg,#965af9,#6936db);
 padding:13px 20px;
 border-radius:11px;
 font-weight:700;
}
input,textarea,select{
 width:100%;
 background:#10131d;
 border:1px solid var(--line);
 border-radius:10px;
 color:var(--text);
 padding:12px;
 outline:none;
}
input:focus,textarea:focus,select:focus{
 border-color:var(--primary)
}
label{
 display:block;
 font-size:13px;
 font-weight:650;
 margin:15px 0 8px;
}
.auth-page{
 min-height:100dvh;
 display:grid;
 place-items:center;
 padding:20px;
}
.auth-card{
 background:var(--card);
 width:100%;
 max-width:420px;
 padding:28px;
 border:1px solid var(--line);
 border-radius:22px;
}
.auth-card h1{margin-top:28px}
.auth-card button{width:100%;margin-top:24px}
.auth-card p a{color:#b08cff}
.error{
 color:#ff9e9e;
 padding:12px;
 border-radius:10px;
 background:#43232c;
}
.container{
 width:min(1280px,100%);
 margin:auto;
 padding:18px;
}
.topbar{
 position:sticky;
 top:0;
 z-index:20;
 background:#090b12f5;
 border-bottom:1px solid var(--line);
}
.topbar-inner{
 max-width:1280px;
 margin:auto;
 padding:15px 18px;
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:14px;
}
.navlinks{display:flex;align-items:center;gap:20px}
.hero{
 position:relative;
 min-height:300px;
 padding:30px;
 display:flex;
 align-items:end;
 overflow:hidden;
 border:1px solid var(--line);
 border-radius:22px;
 background:linear-gradient(135deg,#30214f,#151823);
}
.hero h1{font-size:clamp(25px,5vw,48px)}
.categories{
 display:flex;
 gap:9px;
 overflow:auto;
 padding:18px 0;
 scrollbar-width:none;
}
.chip{
 padding:10px 16px;
 white-space:nowrap;
 border-radius:30px;
 background:var(--card);
 font-size:13px;
}
.chip:hover,.chip.active{background:var(--primary)}
.movie-grid{
 display:grid;
 grid-template-columns:repeat(5,minmax(0,1fr));
 gap:18px;
}
.movie-card{
 min-width:0;
 overflow:hidden;
 border-radius:13px;
 background:var(--card);
 border:1px solid var(--line);
}
.movie-card img,.movie-poster{
 width:100%;
 aspect-ratio:2/3;
 object-fit:cover;
 background:#252637;
}
.movie-info{padding:11px}
.movie-info h3{
 font-size:14px;
 overflow:hidden;
 text-overflow:ellipsis;
 white-space:nowrap;
}
.premium-badge{
 background:#302719;
 border:1px solid #7b6338;
 color:var(--gold);
 padding:5px 10px;
 border-radius:30px;
 font-size:12px;
}
.bottom-nav{
 display:none;
 position:fixed;
 bottom:0;
 left:0;
 right:0;
 background:#10121c;
 border-top:1px solid var(--line);
 padding:14px 8px;
 justify-content:space-around;
 z-index:30;
}
.bottom-nav a{font-size:12px;color:#b5b5c3}
@media(max-width:700px){
 .navlinks{display:none}
 .movie-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
 .container{padding:12px;padding-bottom:90px}
 .hero{padding:20px;min-height:250px}
 .bottom-nav{display:flex}
 .brand{font-size:21px}
 .movie-info{padding:8px}
 .movie-info h3{font-size:12px}
}

.brand{
 display:flex;
 align-items:center;
 gap:9px;
}
.brand-icon{
 display:grid;
 place-items:center;
 width:35px;
 height:35px;
 border-radius:10px;
 background:#854cf1;
 color:white!important;
 font-size:17px;
}
.account-link{
 font-size:13px;
 padding:8px 12px;
 background:#1c1e29;
 border-radius:9px;
}
.search-box{
 display:flex;
 gap:10px;
 margin:3px 0 18px;
}
.search-box input{
 background:#151823;
 min-width:0;
}
.featured-hero{
 min-height:390px;
}
.hero-image{
 position:absolute;
 inset:0;
 width:100%;
 height:100%;
 object-fit:cover;
}
.featured-hero:after{
 content:"";
 position:absolute;
 inset:0;
 background:linear-gradient(
  0deg,#090b12 0%,
  #090b1260 65%,transparent
 );
}
.hero-content{
 position:relative;
 z-index:1;
 padding-bottom:8px;
}
.featured-label{
 color:#c19cff;
 font-size:12px;
 font-weight:800;
 letter-spacing:2px;
}
.section-heading{
 display:flex;
 justify-content:space-between;
 align-items:center;
 margin:20px 0 14px;
}
.section-heading h2{
 margin:0;
 font-size:21px;
}
.section-heading a{
 color:#b58aff;
 font-size:13px;
}
.poster-wrap{
 position:relative;
 overflow:hidden;
}
.poster-play{
 position:absolute;
 left:50%;
 top:50%;
 transform:translate(-50%,-50%);
 width:40px;
 height:40px;
 border-radius:50%;
 background:#0009;
 display:grid;
 place-items:center;
 opacity:0;
 transition:.2s;
}
.movie-card:hover .poster-play{
 opacity:1;
}
.movie-card:hover{
 border-color:#854cf1;
}
.quality-label{
 position:absolute;
 top:8px;
 right:8px;
 background:#854cf1;
 color:white;
 padding:4px 7px;
 border-radius:5px;
 font-size:10px;
 font-weight:700;
}
.poster-placeholder{
 display:grid;
 place-items:center;
 font-size:35px;
 color:#b28dff;
}
.premium-banner{
 display:flex;
 justify-content:space-between;
 align-items:center;
 gap:12px;
 padding:20px;
 margin:25px 0;
 border-radius:16px;
 border:1px solid #6d5730;
 background:linear-gradient(120deg,#332817,#18151a);
}
.premium-banner strong{
 color:#eac36d;
}
.premium-banner p{
 margin:5px 0;
 color:#bcb19c;
 font-size:13px;
}
.premium-banner a{
 background:#eac36d;
 color:#201708;
 padding:11px 16px;
 border-radius:9px;
 font-size:13px;
 font-weight:750;
 white-space:nowrap;
}
.pagination{
 display:flex;
 justify-content:center;
 gap:12px;
 margin:20px 0;
}
.empty-state{
 padding:50px 15px;
 text-align:center;
 color:#a5a5b5;
}
.site-footer{
 border-top:1px solid #272a38;
 text-align:center;
 padding:35px 15px;
 color:#a5a5b5;
 font-size:13px;
}
.bottom-nav a{
 display:flex;
 flex-direction:column;
 gap:5px;
 align-items:center;
}
.bottom-nav a span{
 font-size:22px;
 color:#ad83ff;
}
.player-box{
 width:100%;
 position:relative;
 background:#000;
 aspect-ratio:16/9;
 border-radius:16px;
 overflow:hidden;
}
.player-box video{
 width:100%;
 height:100%;
 object-fit:contain;
}
.player-overlay{
 position:absolute;
 inset:0;
 display:flex;
 align-items:center;
 justify-content:center;
 flex-direction:column;
 gap:14px;
 background:#0005;
}
.player-overlay[hidden]{
 display:none;
}
.large-play{
 width:68px;
 height:68px;
 border-radius:50%;
 border:0;
 background:#854cf1;
 color:white;
 font-size:29px;
 box-shadow:0 0 35px #854cf155;
}
.watch-title{
 padding:20px 0;
}
.watch-title h1{
 font-size:clamp(20px,4vw,32px);
}
.watch-title button{
 border:1px solid #383848;
 color:white;
}
.episode-section,.description-box{
 background:#151823;
 border:1px solid #272a38;
 padding:20px;
 margin:18px 0;
 border-radius:15px;
}
.episode-grid{
 display:grid;
 grid-template-columns:repeat(8,minmax(0,1fr));
 gap:10px;
}
.episode-button{
 display:flex;
 flex-direction:column;
 align-items:center;
 gap:8px;
 padding:12px 5px;
 border-radius:9px;
 background:#222532;
 font-size:13px;
}
.episode-button.selected{
 background:#854cf1;
}
.next-episode{
 display:block;
 margin-top:18px;
 text-align:center;
}
.highlight-next{
 box-shadow:0 0 0 3px #b58aff;
}
.episode-list-item{
 display:flex;
 align-items:center;
 gap:14px;
 background:#20232e;
 margin:10px 0;
 padding:10px;
 border-radius:10px;
}
.episode-list-item img,
.episode-placeholder{
 width:130px;
 aspect-ratio:16/9;
 object-fit:cover;
 background:#333647;
 border-radius:8px;
 flex-shrink:0;
}
.episode-placeholder{
 display:grid;
 place-items:center;
 color:#b58aff;
}
.episode-details{
 flex:1;
 min-width:0;
}
.episode-details p{
 font-size:12px;
 margin:5px 0;
}
.episode-play-icon{
 color:#b58aff;
 padding:8px;
}
@media(max-width:700px){
 .featured-hero{min-height:280px}
 .hero-content h1{font-size:27px}
 .search-box button{padding:10px 13px}
 .episode-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .episode-list-item img,.episode-placeholder{width:95px}
 .episode-section,.description-box{padding:13px}
 .site-footer{padding-bottom:100px}
 .section-heading h2{font-size:18px}
 .premium-banner{padding:14px}
 .large-play{width:56px;height:56px;font-size:23px}
}

.profile-container,.premium-container{
 max-width:850px;
}
.profile-hero{
 text-align:center;
 background:#151823;
 border:1px solid #2a2c39;
 border-radius:22px;
 padding:30px 20px;
 margin:20px 0;
}
.profile-hero.vip-profile{
 background:linear-gradient(145deg,#342719,#151823);
 border-color:#81673c;
}
.profile-avatar{
 display:grid;
 place-items:center;
 margin:0 auto 18px;
 width:90px;
 height:90px;
 border-radius:50%;
 background:#292335;
 font-size:40px;
 font-weight:800;
 border:2px solid #854cf1;
}
.vip-profile .profile-avatar{
 border-color:#eac36d;
 color:#eac36d;
 box-shadow:0 0 25px #eac36d25;
}
.profile-hero h1{font-size:25px}
.gold-text{color:#eac36d}
.green-text{color:#54d39b}
.free-badge{
 display:inline-block;
 font-size:11px;
 padding:7px 13px;
 border-radius:25px;
 background:#292d3d;
}
.membership-card{
 background:linear-gradient(145deg,#292116,#17171d);
 border:1px solid #715934;
 padding:22px;
 border-radius:17px;
 margin:18px 0;
}
.membership-card h2{font-size:20px}
.profile-row{
 display:flex;
 justify-content:space-between;
 align-items:center;
 gap:12px;
 padding:15px 0;
 border-bottom:1px solid #ffffff10;
 font-size:14px;
}
.profile-row span{color:#b9b4aa}
.gold-button{
 display:block;
 width:100%;
 text-align:center;
 background:linear-gradient(135deg,#f6d788,#d5a84a);
 color:#21170b;
 border:0;
 border-radius:11px;
 padding:14px;
 font-weight:800;
 margin-top:18px;
}
.gold-button:disabled{
 opacity:.55;
 cursor:not-allowed;
}
.profile-panel{
 padding:18px;
 background:#151823;
 border:1px solid #292c39;
 border-radius:13px;
 margin:12px 0;
}
.profile-panel summary{
 cursor:pointer;
 font-weight:650;
}
.profile-panel button{
 margin-top:16px;
}
.profile-notice{
 background:#193528;
 border:1px solid #285a42;
 color:#8ee9b8;
 padding:14px;
 border-radius:10px;
 margin:15px 0;
}
.age-warning{
 border:1px solid #705431;
 background:#30251b;
 border-radius:12px;
 padding:15px;
}
.check-label{
 display:flex;
 align-items:center;
 gap:10px;
}
.check-label input{
 width:18px;
 height:18px;
}
.logout-button{
 width:100%;
 background:#34202a;
 color:#ff919b;
 padding:14px;
 border:1px solid #66333c;
 border-radius:11px;
 margin-top:15px;
}
.premium-intro{
 text-align:center;
 padding:35px 10px;
}
.premium-crown{
 font-size:70px;
 color:#eac36d;
 text-shadow:0 0 30px #eac36d40;
}
.premium-intro h1{font-size:36px}
.premium-benefits{
 display:flex;
 justify-content:center;
 flex-wrap:wrap;
 gap:12px;
 font-size:13px;
 color:#dfc68c;
 margin:25px 0;
}
.subscription-grid{
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:18px;
}
.subscription-card{
 position:relative;
 padding:25px;
 border-radius:18px;
 background:#171922;
 border:1px solid #39363a;
}
.popular-plan{
 border-color:#d6ad58;
 background:linear-gradient(145deg,#302618,#151823);
}
.popular-label{
 display:inline-block;
 background:#eac36d;
 color:#30220b;
 padding:6px 10px;
 font-size:10px;
 font-weight:800;
 border-radius:20px;
 margin-bottom:15px;
}
.subscription-card h2{font-size:20px}
.subscription-price{
 font-size:36px;
 color:#eac36d;
 font-weight:850;
}
.plan-benefit{
 font-size:13px;
 padding:8px 0;
 color:#c6c7d0;
}
.payment-caption{
 text-align:center;
 margin:25px 0;
}
button:disabled{
 opacity:.55;
 cursor:not-allowed;
}
@media(max-width:600px){
 .subscription-grid{gap:10px}
 .subscription-card{padding:15px}
 .subscription-price{font-size:28px}
 .subscription-card h2{font-size:16px}
 .premium-intro h1{font-size:28px}
 .plan-benefit{font-size:11px}
 .gold-button{font-size:13px}
}

.player-tools{
 display:flex;
 justify-content:space-between;
 gap:12px;
 margin-top:12px;
}
.player-tools button,
.player-tools select{
 background:#1a1d29;
 color:#e1e1ed;
 border:1px solid #303343;
 border-radius:9px;
 padding:10px 14px;
 font-size:12px;
}
.player-tools select{
 width:auto;
}
.player-box.buffering:after{
 content:"";
 position:absolute;
 top:50%;
 left:50%;
 width:32px;
 height:32px;
 margin:-16px;
 border:3px solid #ffffff40;
 border-top-color:#a477ff;
 border-radius:50%;
 animation:playerSpin .8s linear infinite;
 pointer-events:none;
}
@keyframes playerSpin{
 to{transform:rotate(360deg)}
}

html{scroll-behavior:smooth}

.movie-card{
 transition:transform .2s,border-color .2s;
}
.movie-card:hover{
 transform:translateY(-3px);
}
.primary,.gold-button{
 transition:filter .2s,transform .2s;
}
.primary:hover,.gold-button:hover{
 filter:brightness(1.1);
}
.primary:active,.gold-button:active{
 transform:scale(.98);
}
.movie-info h3{
 white-space:normal;
 display:-webkit-box;
 -webkit-line-clamp:2;
 -webkit-box-orient:vertical;
 overflow:hidden;
 line-height:1.4;
}
.bottom-nav{
 padding-bottom:calc(
  12px + env(safe-area-inset-bottom,0px)
 );
}
::selection{
 background:#854cf1;
 color:white;
}

/* MovieBD Fast Movie Card Fix */

.movie-grid{
 display:grid!important;
 grid-template-columns:repeat(6,minmax(0,1fr));
 align-items:start!important;
 gap:16px;
}

.movie-card{
 display:block!important;
 width:100%!important;
 height:auto!important;
 min-height:0!important;
 align-self:start!important;
 overflow:hidden;
 border-radius:12px;
}

.movie-card .poster-wrap{
 position:relative;
 width:100%!important;
 height:auto!important;
 aspect-ratio:2/3!important;
 overflow:hidden!important;
}

.movie-card img,
.movie-card .poster-wrap img{
 display:block!important;
 width:100%!important;
 height:100%!important;
 aspect-ratio:2/3!important;
 object-fit:cover!important;
 object-position:center!important;
}

.movie-card .poster-wrap img{
 position:absolute!important;
 inset:0;
}

.movie-card .movie-poster{
 width:100%!important;
 height:auto!important;
 aspect-ratio:2/3!important;
}

.movie-info{
 padding:10px!important;
 height:65px;
 overflow:hidden;
}

.movie-info h3{
 font-size:13px;
 line-height:1.4;
 margin:0 0 5px;
 display:-webkit-box;
 -webkit-line-clamp:2;
 -webkit-box-orient:vertical;
 overflow:hidden;
}

@media(max-width:1000px){
 .movie-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
 }
}

@media(max-width:700px){
 .movie-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
 }
 .movie-info{
  padding:8px!important;
  height:60px;
 }
 .movie-info h3{
  font-size:12px;
 }
}


.adult-switch{
 display:flex;
 align-items:center;
 width:54px;
 height:30px;
 padding:3px;
 border:0;
 border-radius:30px;
 background:#484b59;
 transition:background .2s;
}

.adult-switch span{
 width:24px;
 height:24px;
 background:#fff;
 border-radius:50%;
}

.adult-switch.enabled{
 background:#16a36f;
 justify-content:flex-end;
}

button.adult-switch {
 display:flex!important;
 position:relative!important;
 width:60px!important;
 min-width:60px!important;
 height:34px!important;
 min-height:34px!important;
 padding:4px!important;
 border:0!important;
 border-radius:50px!important;
 background:#555967!important;
 align-items:center!important;
 justify-content:flex-start!important;
 cursor:pointer;
}

button.adult-switch span {
 display:block!important;
 width:26px!important;
 height:26px!important;
 background:#ffffff!important;
 border-radius:50%!important;
 flex-shrink:0!important;
}

button.adult-switch.enabled {
 background:#22c55e!important;
 justify-content:flex-end!important;
}

button.adult-switch:disabled {
 opacity:0.6!important;
 cursor:not-allowed!important;
}

.adult-preference-row{
 display:flex!important;
 flex-direction:row!important;
 align-items:center!important;
 justify-content:space-between!important;
 flex-wrap:wrap!important;
 gap:12px!important;
 margin:0!important;
}
.adult-preference-row .adult-switch{
 margin:0!important;
}
.adult-consent{
 flex-basis:100%;
 font-size:12px;
}

.category-list,
.category-scroll,
.categories-scroll,
.category-bar,
.category-tabs{
 display:flex!important;
 flex-wrap:nowrap!important;
 overflow-x:auto!important;
 overflow-y:hidden!important;
 scroll-behavior:smooth;
 -webkit-overflow-scrolling:touch;
 scrollbar-width:none;
 touch-action:pan-x;
 gap:10px;
 padding:10px 12px;
 max-width:100%;
 box-sizing:border-box;
 scroll-snap-type:none!important;
}

.category-list::-webkit-scrollbar,
.category-scroll::-webkit-scrollbar,
.categories-scroll::-webkit-scrollbar,
.category-bar::-webkit-scrollbar,
.category-tabs::-webkit-scrollbar{
 display:none;
}

.category-list > *,
.category-scroll > *,
.categories-scroll > *,
.category-bar > *,
.category-tabs > *{
 flex:0 0 auto!important;
 white-space:nowrap;
 border-radius:12px;
 scroll-snap-align:none!important;
}


.category-list,
.category-scroll,
.categories-scroll,
.category-bar,
.category-tabs{
 display:flex!important;
 flex-direction:row!important;
 flex-wrap:nowrap!important;
 justify-content:flex-start!important;
 overflow-x:auto!important;
 overflow-y:hidden!important;
 direction:ltr!important;
 touch-action:pan-x pan-y!important;
 scroll-behavior:auto!important;
 scroll-snap-type:none!important;
 overscroll-behavior-x:contain;
 -webkit-overflow-scrolling:touch;
 scrollbar-width:none;
 width:100%!important;
 min-width:0!important;
}

.category-list > *,
.category-scroll > *,
.categories-scroll > *,
.category-bar > *,
.category-tabs > *{
 flex-shrink:0!important;
 white-space:nowrap!important;
 scroll-snap-align:none!important;
}

body:has(.chip){
 overflow-x:hidden;
}

*:has(> .chip){
 display:flex!important;
 flex-direction:row!important;
 flex-wrap:nowrap!important;
 justify-content:flex-start!important;
 overflow-x:auto!important;
 overflow-y:hidden!important;
 max-width:100%!important;
 min-width:0!important;
 gap:8px!important;
 scroll-snap-type:none!important;
 touch-action:auto!important;
 scrollbar-width:none;
 -webkit-overflow-scrolling:touch;
}

.chip{
 flex:0 0 auto!important;
 white-space:nowrap!important;
 padding:10px 18px!important;
 border-radius:30px!important;
 scroll-snap-align:none!important;
}


*:has(> .home-category-chip){
 display:flex!important;
 justify-content:flex-start!important;
 flex-wrap:nowrap!important;
 overflow-x:auto!important;
 overflow-y:hidden!important;
 width:100%!important;
 min-width:0!important;
 touch-action:pan-x pan-y!important;
 scroll-snap-type:none!important;
 scroll-behavior:auto!important;
 user-select:none!important;
 gap:10px!important;
}

.home-category-chip{
 flex:0 0 auto!important;
 white-space:nowrap!important;
 padding:10px 18px!important;
 border-radius:24px!important;
 touch-action:pan-x pan-y!important;
}


.home-special-switch{
 margin:12px;
 padding:14px 16px;
 background:#151823;
 border:1px solid #292d39;
 border-radius:14px;
}

.home-special-switch form{
 display:flex!important;
 align-items:center!important;
 justify-content:space-between!important;
 flex-direction:row!important;
 margin:0!important;
 gap:12px;
}

.home-special-switch button{
 margin:0!important;
}
