/* TopMuvie — public theme */
:root{
  --bg:#08090d; --bg2:#0e1117; --card:#141821; --card2:#1b2030; --line:#232a3a; --line2:var(--line2);
  --text:#eef0f5; --text2:var(--text2); --mute:#9aa3b5; --dim:#6b7488;
  --accent:#ffb627; --accent2:#ff5a4e; --on-accent:var(--on-accent); --ok:#3ecf8e;
  --bg-rgb:8,9,13; --bg2-rgb:14,17,23; --accent-rgb:255,182,39; --fg-rgb:255,255,255;
  --radius:14px; --gut:clamp(16px,3.2vw,40px);
  --head:"Bricolage Grotesque",system-ui,sans-serif; --body:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font:15px/1.55 var(--body);overflow-x:hidden}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block;color:transparent;font-size:0}
button,input,select,textarea{font:inherit;color:inherit}
h1,h2,h3{font-family:var(--head);letter-spacing:-.01em;line-height:1.15;margin:0}
.wrap{max-width:1480px;margin:0 auto;padding:0 var(--gut)}
.muted{color:var(--mute)} .dim{color:var(--dim)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* header */
.hdr{position:sticky;top:0;z-index:50;background:linear-gradient(180deg,rgba(var(--bg-rgb),.96),rgba(var(--bg-rgb),.86));backdrop-filter:blur(12px);border-bottom:1px solid rgba(var(--fg-rgb),.05)}
.hdr .wrap{display:flex;align-items:center;gap:22px;height:64px}
.logo{font-family:var(--head);font-weight:800;font-size:22px;letter-spacing:-.03em;display:flex;align-items:center;gap:8px;white-space:nowrap}
.logo b{color:var(--accent)}
.logo img{height:34px;width:auto}
.logo .mark{width:28px;height:28px;border-radius:8px;background:conic-gradient(from 200deg,var(--accent),var(--accent2),var(--accent));display:grid;place-items:center;color:#111;font-size:14px}
.nav{display:flex;gap:4px}
.nav a{padding:8px 12px;border-radius:10px;color:var(--mute);font-weight:500;font-size:14.5px}
.nav a:hover{color:var(--text);background:rgba(var(--fg-rgb),.05)}
.nav a.on{color:var(--text);background:rgba(var(--accent-rgb),.12)}
.search{flex:1;max-width:420px;margin-left:auto;position:relative}
.search input{width:100%;height:40px;border-radius:12px;border:1px solid var(--line);background:var(--bg2);padding:0 14px 0 38px;outline:none;transition:border .15s}
.search input:focus{border-color:var(--accent)}
.search svg{position:absolute;left:12px;top:11px;width:18px;height:18px;color:var(--dim)}
.ac{position:absolute;top:46px;left:0;right:0;background:var(--card);border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:0 18px 50px rgba(0,0,0,.5);display:none;z-index:60}
.ac.show{display:block}
.ac a{display:flex;gap:10px;align-items:center;padding:8px 10px}
.ac a:hover,.ac a.sel{background:var(--card2)}
.ac img{width:34px;height:50px;border-radius:5px;object-fit:cover;background:var(--card2)}
.ac small{color:var(--dim);display:block}
.ac .all{justify-content:center;color:var(--accent);font-weight:600;font-size:13px}
.uact{display:flex;gap:8px;align-items:center}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 16px;border-radius:12px;border:1px solid var(--line);background:var(--card);font-weight:600;font-size:14px;cursor:pointer;white-space:nowrap;transition:transform .12s,background .15s,border-color .15s}
.btn:hover{background:var(--card2)}
.btn:active{transform:scale(.97)}
.btn.pri{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.btn.pri:hover{background:var(--accent);filter:brightness(1.1)}
.btn.ghost{background:rgba(var(--fg-rgb),.08);border-color:rgba(var(--fg-rgb),.12);backdrop-filter:blur(6px)}
.btn.sm{height:32px;padding:0 12px;font-size:13px;border-radius:10px}
.btn svg{width:18px;height:18px}
.avatar{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,var(--accent),var(--accent2));display:grid;place-items:center;font-weight:800;color:var(--on-accent)}

/* hero */
.hero{position:relative;height:min(78vh,680px);min-height:440px;overflow:hidden;margin-bottom:8px}
.hero .slide{position:absolute;inset:0;opacity:0;transition:opacity .8s;pointer-events:none}
.hero .slide.on{opacity:1;pointer-events:auto}
.hero .bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 20%;transform:scale(1.04);transition:transform 7s ease-out}
.hero .slide.on .bg{transform:scale(1)}
.hero::after,.hero .slide::after{content:"";position:absolute;inset:0;pointer-events:none}
.hero .slide::after{background:linear-gradient(90deg,rgba(var(--bg-rgb),.95) 0%,rgba(var(--bg-rgb),.7) 38%,rgba(var(--bg-rgb),.1) 70%),linear-gradient(0deg,var(--bg) 0%,rgba(var(--bg-rgb),0) 40%)}
.hero .info{position:absolute;z-index:2;left:0;right:0;bottom:12%}
.hero .info .wrap>div{max-width:620px}
.hero h1{font-size:clamp(30px,5vw,60px);font-weight:800;margin:10px 0 12px}
.hero p{color:var(--text2);font-size:16px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 22px}
.hero .acts{display:flex;gap:10px;flex-wrap:wrap}
.hero .btn{height:48px;padding:0 22px;font-size:15px}
.hero .dots{position:absolute;z-index:3;right:var(--gut);bottom:14%;display:flex;gap:6px}
.hero .dots button{width:28px;height:4px;border-radius:4px;border:0;background:rgba(var(--fg-rgb),.25);cursor:pointer;padding:0}
.hero .dots button.on{background:var(--accent)}
.meta{display:flex;gap:8px;flex-wrap:wrap;align-items:center;font-size:13.5px;color:var(--text2)}
.chip{display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 10px;border-radius:8px;background:rgba(var(--fg-rgb),.08);font-size:12.5px;font-weight:600;color:var(--text2)}
.chip.star{color:var(--accent);background:rgba(var(--accent-rgb),.12)}
.chip.kind{background:var(--accent2);color:#fff}
a.chip:hover{background:rgba(var(--fg-rgb),.15)}

/* rails */
.row{margin:28px 0}
.row-h{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:12px}
.row-h h2{font-size:clamp(19px,2vw,24px);font-weight:700}
.row-h a{color:var(--mute);font-size:13.5px;font-weight:600}
.row-h a:hover{color:var(--accent)}
.rail{position:relative}
.rail .track{display:grid;grid-auto-flow:column;grid-auto-columns:clamp(128px,14.2vw,196px);gap:14px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;padding:4px 2px 10px}
.rail .track::-webkit-scrollbar{display:none}
.rail .track>*{scroll-snap-align:start}
.rail .nb{position:absolute;top:calc(50% - 30px);width:42px;height:42px;border-radius:50%;border:1px solid var(--line);background:rgba(var(--bg2-rgb),.92);display:grid;place-items:center;cursor:pointer;z-index:3;opacity:0;transition:opacity .2s}
.rail:hover .nb{opacity:1}
.rail .nb.l{left:-14px} .rail .nb.r{right:-14px}
.rail.shorts .track{grid-auto-columns:clamp(150px,15vw,200px)}

/* cards */
.card{position:relative;display:block}
.card .pst{position:relative;aspect-ratio:2/3;border-radius:var(--radius);overflow:hidden;background:var(--card);box-shadow:0 0 0 1px rgba(var(--fg-rgb),.04)}
.card .pst img{width:100%;height:100%;object-fit:cover;transition:transform .35s,filter .35s}
.card:hover .pst img{transform:scale(1.06);filter:brightness(.7)}
.card .pst::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.7),transparent 40%);opacity:.8}
.card .play{position:absolute;inset:0;display:grid;place-items:center;opacity:0;transition:opacity .25s;z-index:2}
.card:hover .play{opacity:1}
.card .play span{width:52px;height:52px;border-radius:50%;background:var(--accent);display:grid;place-items:center;color:var(--on-accent);box-shadow:0 8px 24px rgba(var(--accent-rgb),.45)}
.card .rt{position:absolute;z-index:2;top:8px;left:8px;padding:2px 7px;border-radius:7px;background:rgba(var(--bg-rgb),.78);font-size:12px;font-weight:700;color:var(--accent)}
.card .tg{position:absolute;z-index:2;top:8px;right:8px;padding:2px 7px;border-radius:7px;background:var(--accent2);font-size:11px;font-weight:700}
.card .cap{padding:8px 2px 0}
.card .cap b{display:block;font-weight:600;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card .cap small{color:var(--dim);font-size:12.5px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:22px 16px}
.scard{display:block;position:relative;aspect-ratio:9/14;border-radius:var(--radius);overflow:hidden;background:var(--card)}
.scard img{width:100%;height:100%;object-fit:cover;transition:transform .35s}
.scard:hover img{transform:scale(1.06)}
.scard::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.85),transparent 55%)}
.scard b{position:absolute;z-index:2;left:10px;right:10px;bottom:10px;font-size:13px;line-height:1.3}
.scard i{position:absolute;z-index:2;top:10px;left:10px;font-style:normal;font-size:11px;font-weight:700;padding:3px 7px;border-radius:6px;background:rgba(0,0,0,.6)}

/* page head + filters */
.ph{padding:30px 0 6px}
.ph h1{font-size:clamp(24px,3.4vw,38px);font-weight:800}
.ph p{margin:6px 0 0;color:var(--mute)}
.filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:18px 0 22px}
.filters a.f{height:34px;padding:0 14px;border-radius:10px;background:var(--card);border:1px solid var(--line);display:inline-flex;align-items:center;font-size:13.5px;font-weight:600;color:var(--mute)}
.filters a.f.on{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.filters select{height:34px;border-radius:10px;background:var(--card);border:1px solid var(--line);padding:0 10px;font-size:13.5px}
.pager{display:flex;gap:6px;justify-content:center;margin:34px 0;flex-wrap:wrap}
.pager a,.pager span{min-width:40px;height:40px;padding:0 12px;border-radius:10px;background:var(--card);border:1px solid var(--line);display:grid;place-items:center;font-weight:600;font-size:14px}
.pager .on{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}

/* title page */
.tbg{position:absolute;inset:0 0 auto 0;height:620px;z-index:-1;overflow:hidden}
.tbg img{width:100%;height:100%;object-fit:cover;filter:blur(28px) saturate(1.2);opacity:.38;transform:scale(1.15)}
.tbg::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(var(--bg-rgb),.2),var(--bg) 92%)}
.tpage{position:relative;padding-top:22px}
.tlay{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:26px;align-items:start}
.tlay>*,.tinfo>*{min-width:0}
.crumbs{font-size:13px;color:var(--dim);margin-bottom:12px;display:flex;gap:6px;flex-wrap:wrap}
.crumbs a:hover{color:var(--accent)}
.pcard{background:var(--card);border-radius:18px;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.55),0 0 0 1px rgba(var(--fg-rgb),.05)}
.servers{display:flex;align-items:center;gap:8px;padding:12px 14px;flex-wrap:wrap;border-top:1px solid var(--line)}
.servers .lbl{font-size:12.5px;color:var(--dim);font-weight:700;text-transform:uppercase;letter-spacing:.06em;margin-right:4px}
.servers button{height:34px;padding:0 14px;border-radius:10px;border:1px solid var(--line);background:var(--bg2);font-size:13.5px;font-weight:600;cursor:pointer;color:var(--mute)}
.servers button.on{border-color:var(--accent);color:var(--accent);background:rgba(var(--accent-rgb),.08)}
.servers .tip{margin-left:auto;font-size:12.5px;color:var(--dim)}
.tinfo{display:grid;grid-template-columns:180px minmax(0,1fr);gap:26px;margin-top:26px}
.tinfo .pst{border-radius:var(--radius);overflow:hidden;aspect-ratio:2/3;background:var(--card);box-shadow:0 18px 40px rgba(0,0,0,.4)}
.tinfo h1{font-size:clamp(26px,3.6vw,42px);font-weight:800;margin-bottom:6px}
.tinfo .orig{color:var(--dim);font-size:14px;margin-bottom:12px}
.tagline{font-style:italic;color:var(--mute);margin:14px 0 4px}
.overview{color:var(--text2);max-width:800px;font-size:15.5px}
.facts{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px 22px;margin:18px 0;font-size:14px}
.facts div span{display:block;color:var(--dim);font-size:12px;text-transform:uppercase;letter-spacing:.06em;font-weight:700}
.tacts{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.btn.saved{border-color:var(--accent);color:var(--accent)}
.cast{display:grid;grid-auto-flow:column;grid-auto-columns:96px;gap:12px;overflow-x:auto;scrollbar-width:thin;padding-bottom:8px}
.cast div,.cast a{text-align:center;font-size:12.5px;display:block}
.cast a:hover b{color:var(--accent)}
.cast img,.cast .ph0{width:96px;height:96px;border-radius:50%;object-fit:cover;background:var(--card2);margin-bottom:6px}
.cast b{display:block;font-size:13px;line-height:1.25}
.cast small{color:var(--dim)}
.sec{margin:34px 0}
.sec>h2{font-size:21px;font-weight:700;margin-bottom:14px}
.side .box{background:var(--card);border-radius:var(--radius);padding:16px;margin-bottom:18px;border:1px solid var(--line)}
.side .box h3{font-size:16px;margin-bottom:12px}
.mini{display:flex;gap:12px;padding:8px 0;border-bottom:1px solid var(--line)}
.mini:last-child{border:0}
.mini img{width:54px;height:80px;border-radius:8px;object-fit:cover;background:var(--card2);flex:none}
.mini b{font-size:14px;line-height:1.3;display:block;margin-bottom:4px}
.mini small{color:var(--dim)}
.mini:hover b{color:var(--accent)}
.seasons{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.seasons a{height:34px;padding:0 14px;border-radius:10px;background:var(--card);border:1px solid var(--line);display:inline-flex;align-items:center;font-weight:600;font-size:13.5px}
.seasons a.on{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}
.eps{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
.ep{display:flex;gap:12px;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:8px;align-items:center}
.ep img{width:112px;aspect-ratio:16/9;border-radius:8px;object-fit:cover;background:var(--card2);flex:none}
.ep b{font-size:13.5px;display:block;line-height:1.3}
.ep small{color:var(--dim);font-size:12px}
.ep.on{border-color:var(--accent);background:rgba(var(--accent-rgb),.07)}
.ep:hover{border-color:var(--line2)}

/* player */
.player{position:relative;aspect-ratio:var(--ar,16/9);width:100%;max-height:82vh;background:#000;overflow:hidden}
.player .wm{position:absolute;z-index:2;top:14px;right:16px;font-weight:800;font-size:14px;letter-spacing:.04em;opacity:.75;text-shadow:0 2px 10px #000}
.gbg-blur .gate img{filter:blur(18px) brightness(.8);transform:scale(1.1)}
.gbg-poster .gate img{object-fit:contain;opacity:.9}
.gbg-none .gate img{display:none}
.ov-ad{position:absolute;z-index:7;right:12px;bottom:12px;width:min(36%,340px);min-width:180px;aspect-ratio:16/9;background:#000;border-radius:10px;overflow:hidden;box-shadow:0 10px 40px rgba(0,0,0,.6),0 0 0 1px rgba(255,255,255,.15);animation:ovin .35s ease}
.ov-ad.out{opacity:0;transform:translateY(10px);transition:all .35s}
@keyframes ovin{from{opacity:0;transform:translateY(14px)}}
.ov-ad video{width:100%;height:100%;object-fit:cover;cursor:pointer}
.ov-ad .os-lbl{position:absolute;z-index:2;left:8px;top:8px}
.ov-x{position:absolute;z-index:3;right:6px;top:6px;width:26px;height:26px;border-radius:50%;border:0;background:rgba(0,0,0,.7);color:#fff;cursor:pointer}
.ov-ad .os-snd{width:28px;height:28px;bottom:8px;left:8px}
.endscr{position:absolute;inset:0;z-index:8;display:grid;place-items:center;background:radial-gradient(circle,rgba(0,0,0,.6),#000)}
.endscr div{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.next-ep{margin-left:auto;height:34px;padding:0 14px;border-radius:10px;background:var(--accent);color:var(--on-accent);font-weight:700;font-size:13.5px;display:inline-flex;align-items:center}
@media (max-width:720px){.ov-ad{width:46%;min-width:150px;right:8px;bottom:8px}.next-ep{margin-left:0}}
.player iframe{position:absolute;inset:0;width:100%;height:100%;border:0;background:#000}
.player .gate{position:absolute;inset:0;z-index:5;cursor:pointer;display:grid;place-items:center;background:#000}
.player .gate img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.55;transition:opacity .3s,transform .6s}
.player .gate:hover img{opacity:.42;transform:scale(1.02)}
.player .gate .pb{position:relative;width:88px;height:88px;border-radius:50%;background:var(--accent);display:grid;place-items:center;color:var(--on-accent);box-shadow:0 0 0 12px rgba(var(--accent-rgb),.18),0 20px 60px rgba(0,0,0,.6);transition:transform .2s}
.player .gate:hover .pb{transform:scale(1.08)}
.player .gate .pb svg{width:36px;height:36px;margin-left:5px}
.player .gate .gt{position:absolute;left:0;right:0;bottom:22px;text-align:center;font-weight:700;font-size:15px;text-shadow:0 2px 12px #000;padding:0 16px}
.player .ad{position:absolute;inset:0;z-index:6;background:#000;display:none}
.player .ad.on{display:block}
.player .ad video{width:100%;height:100%;object-fit:contain;background:#000}
.player .ad .bar{position:absolute;left:0;right:0;top:0;display:flex;justify-content:space-between;align-items:center;padding:10px 12px;background:linear-gradient(180deg,rgba(0,0,0,.7),transparent);font-size:13px;font-weight:600}
.player .ad .lbl{background:var(--accent);color:var(--on-accent);padding:2px 8px;border-radius:6px;font-size:11px;font-weight:800;letter-spacing:.04em;margin-right:8px}
.player .ad .visit{color:#fff;background:rgba(var(--fg-rgb),.14);border:0;border-radius:8px;height:30px;padding:0 12px;font-weight:600;cursor:pointer}
.player .ad .skip{position:absolute;right:0;bottom:56px;background:rgba(0,0,0,.78);border:1px solid rgba(var(--fg-rgb),.35);border-right:0;color:#fff;height:46px;padding:0 18px 0 20px;font-size:15px;font-weight:700;border-radius:10px 0 0 10px;cursor:default;display:flex;gap:8px;align-items:center}
.player .ad .skip.ready{cursor:pointer;background:rgba(0,0,0,.9)}
.player .ad .skip.ready:hover{background:#000;border-color:#fff}
.player .ad .unmute{position:absolute;left:12px;bottom:14px;background:rgba(0,0,0,.7);border:1px solid rgba(var(--fg-rgb),.3);border-radius:10px;height:36px;padding:0 12px;color:#fff;font-weight:600;display:none;cursor:pointer}
.player .ad .prog{position:absolute;left:0;right:0;bottom:0;height:4px;background:rgba(var(--fg-rgb),.15)}
.player .ad .prog i{display:block;height:100%;width:0;background:var(--accent);transition:width .25s linear}
.player .ad .click{position:absolute;inset:50px 0 64px 0;cursor:pointer}
.player .ld{position:absolute;inset:0;z-index:4;display:none;place-items:center;background:#000}
.player .ld.on{display:grid}
.spin{width:44px;height:44px;border-radius:50%;border:4px solid rgba(var(--fg-rgb),.15);border-top-color:var(--accent);animation:sp .8s linear infinite}
@keyframes sp{to{transform:rotate(360deg)}}

/* forms */
.form{max-width:440px;margin:40px auto;background:var(--card);border:1px solid var(--line);border-radius:18px;padding:28px}
.form h1{font-size:26px;margin-bottom:6px}
.fld{margin:14px 0}
.fld label{display:block;font-size:13px;font-weight:600;color:var(--mute);margin-bottom:6px}
.fld input,.fld select,.fld textarea{width:100%;height:44px;border-radius:12px;border:1px solid var(--line);background:var(--bg2);padding:0 14px;outline:none}
.fld textarea{height:auto;min-height:90px;padding:10px 14px}
.fld input:focus,.fld select:focus,.fld textarea:focus{border-color:var(--accent)}
.alert{padding:12px 14px;border-radius:12px;margin:12px 0;font-size:14px}
.alert.err{background:rgba(255,90,78,.12);border:1px solid rgba(255,90,78,.35);color:#ffb1aa}
.alert.ok{background:rgba(62,207,142,.1);border:1px solid rgba(62,207,142,.35);color:#9ff0c9}
.hp{position:absolute;left:-9999px}
.panel{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:20px;margin-bottom:20px}
.panel h2{font-size:18px;margin-bottom:12px}
.tbl{width:100%;border-collapse:collapse;font-size:14px}
.tbl th,.tbl td{text-align:left;padding:10px 8px;border-bottom:1px solid var(--line)}
.tbl th{color:var(--dim);font-size:12px;text-transform:uppercase;letter-spacing:.05em}
.pos{color:var(--ok)} .neg{color:var(--accent2)}
.bal{font-family:var(--head);font-size:40px;font-weight:800;color:var(--accent)}
.cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px}

/* genres page */
.gtiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
.gtile{position:relative;height:120px;border-radius:var(--radius);overflow:hidden;background:var(--card);display:flex;align-items:end;padding:14px}
.gtile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.45;transition:transform .4s,opacity .3s}
.gtile:hover img{transform:scale(1.07);opacity:.6}
.gtile::after{content:"";position:absolute;inset:0;background:linear-gradient(60deg,rgba(var(--bg-rgb),.9),transparent)}
.gtile b{position:relative;z-index:2;font-family:var(--head);font-size:20px}
.gtile small{position:relative;z-index:2;margin-left:8px;color:var(--mute)}

/* outstream video ad */
.outstream{max-width:640px;margin:0 auto;max-height:0;overflow:hidden;opacity:0;transition:max-height .5s ease,opacity .4s,margin .4s}
.outstream.on{max-height:420px;opacity:1;margin:26px auto}
.os-box{position:relative;aspect-ratio:16/9;background:#000;border-radius:var(--radius);overflow:hidden;box-shadow:0 0 0 1px rgba(var(--fg-rgb),.08),0 20px 50px rgba(0,0,0,.45)}
.os-box video{width:100%;height:100%;object-fit:contain;cursor:pointer;display:block}
.os-bar{position:absolute;z-index:2;left:0;right:0;top:0;display:flex;justify-content:space-between;align-items:center;padding:8px 10px;background:linear-gradient(180deg,rgba(0,0,0,.6),transparent);pointer-events:none}
.os-lbl{background:var(--accent);color:var(--on-accent);font-size:10.5px;font-weight:800;letter-spacing:.06em;padding:2px 7px;border-radius:5px;text-transform:uppercase}
.os-x{pointer-events:auto;width:28px;height:28px;border-radius:50%;border:0;background:rgba(0,0,0,.6);color:#fff;cursor:pointer;font-size:13px}
.os-snd{position:absolute;z-index:2;left:10px;bottom:12px;width:34px;height:34px;border-radius:50%;border:1px solid rgba(255,255,255,.3);background:rgba(0,0,0,.6);color:#fff;cursor:pointer}
.os-prog{position:absolute;left:0;right:0;bottom:0;height:3px;background:rgba(255,255,255,.15)}.os-prog i{display:block;height:100%;width:0;background:var(--accent);transition:width .25s linear}
.adslot{display:flex;justify-content:center;margin:18px auto;max-width:100%;overflow:hidden}
.adslot-movie_sidebar_square{margin:0 0 18px}
.adslot-mobile_sticky{position:fixed;left:0;right:0;bottom:62px;z-index:40;margin:0;background:rgba(var(--bg-rgb),.94);padding:4px 0;border-top:1px solid var(--line);min-height:50px}
.adslot-mobile_sticky{overflow:visible}.mstk-x{position:absolute;z-index:2;right:4px;top:-24px;width:30px;height:24px;border-radius:8px 8px 0 0;border:1px solid var(--line);border-bottom:0;background:var(--bg2);color:var(--mute);font-size:12px;cursor:pointer}
.grid-ad{grid-column:1/-1}.grid-ad:empty{display:none}.grid-ad .adslot{margin:4px auto}
/* burger + mobile drawer */
.burger{display:none;width:40px;height:40px;border-radius:12px;border:1px solid var(--line);background:var(--card);color:var(--text);place-items:center;cursor:pointer;flex:none}
.burger svg{width:20px;height:20px}
.drawer-bg{position:fixed;inset:0;z-index:70;background:rgba(0,0,0,.55);opacity:0;pointer-events:none;transition:opacity .25s;backdrop-filter:blur(2px)}
.drawer{position:fixed;top:0;bottom:0;left:0;z-index:71;width:min(84vw,330px);background:var(--bg2);border-right:1px solid var(--line);transform:translateX(-102%);transition:transform .28s cubic-bezier(.2,.8,.2,1);overflow-y:auto;padding:14px 16px calc(24px + env(safe-area-inset-bottom));box-shadow:20px 0 60px rgba(0,0,0,.4)}
.dr-open .drawer{transform:none}.dr-open .drawer-bg{opacity:1;pointer-events:auto}.dr-open body{overflow:hidden}
.dr-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.dr-x{width:36px;height:36px;border-radius:10px;border:1px solid var(--line);background:var(--card);color:var(--mute);cursor:pointer}
.dr-user{display:flex;gap:12px;align-items:center;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:10px 12px;margin-bottom:12px}
.dr-user b{display:block}.dr-user small{color:var(--mute)}
.dr-auth{display:flex;gap:8px;margin-bottom:12px}.dr-auth .btn{flex:1}
.dr-nav a{display:flex;align-items:center;gap:12px;padding:11px 10px;border-radius:11px;font-weight:600;color:var(--text2)}
.dr-nav a span{width:24px;text-align:center}
.dr-nav a.on{background:rgba(var(--accent-rgb),.12);color:var(--accent)}
.dr-sec{font-size:11.5px;text-transform:uppercase;letter-spacing:.1em;color:var(--dim);font-weight:700;margin:16px 4px 8px}
.dr-genres{display:flex;flex-wrap:wrap;gap:6px}
.dr-genres a{padding:6px 11px;border-radius:999px;background:var(--card);border:1px solid var(--line);font-size:13px;color:var(--text2)}
.dr-foot{display:flex;gap:8px;margin-top:18px;flex-wrap:wrap}
.dr-links{display:flex;gap:14px;margin-top:16px;font-size:12.5px;color:var(--dim)}
.drawer .adslot{margin:14px 0}
@media (max-width:980px){.burger{display:grid}}
/* ad slots */

/* footer */
.ftr{margin-top:60px;border-top:1px solid var(--line);background:var(--bg2);padding:36px 0 90px;color:var(--mute);font-size:14px}
.ftr .cols{grid-template-columns:2fr 1fr 1fr}
.ftr h4{color:var(--text);margin:0 0 10px;font-size:14px}
.ftr a{display:inline-block;margin:0 14px 8px 0}
.ftr a:hover{color:var(--accent)}
.ftr .copy{margin-top:22px;font-size:12.5px;color:var(--dim)}

/* mobile tab bar */
.tabbar{display:none}
@media (max-width:980px){
  .nav{display:none}
  .tlay{grid-template-columns:minmax(0,1fr)}
  .side{order:2}
}
@media (max-width:720px){
  .hdr .wrap{height:58px;gap:12px}
  .logo span.t{display:none}
  .search{max-width:none}
  .uact .btn.login{display:none}
  .hero{height:66vh;min-height:420px}
  .hero .slide::after{background:linear-gradient(0deg,var(--bg) 8%,rgba(var(--bg-rgb),.55) 55%,rgba(var(--bg-rgb),.25))}
  .hero .info{bottom:8%}
  .hero p{-webkit-line-clamp:2;font-size:14.5px}
  .hero .dots{bottom:auto;top:16px}
  .rail .nb{display:none}
  .grid{grid-template-columns:repeat(auto-fill,minmax(108px,1fr));gap:16px 10px}
  .card .cap b{font-size:13px}
  .tinfo{grid-template-columns:110px minmax(0,1fr);gap:14px}
  .tinfo .facts{grid-column:1/-1}
  .tinfo h1{font-size:22px}
  .pcard{border-radius:0;margin:0 calc(var(--gut)*-1)}
  .player .gate .pb{width:68px;height:68px}
  .servers .tip{display:none}
  .ftr .cols{grid-template-columns:1fr}
  .tabbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:45;height:62px;background:rgba(var(--bg2-rgb),.97);border-top:1px solid var(--line);backdrop-filter:blur(10px);padding-bottom:env(safe-area-inset-bottom)}
  .tabbar a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:11px;color:var(--dim);font-weight:600}
  .tabbar a.on{color:var(--accent)}
  .tabbar svg{width:22px;height:22px}
}

/* players & media overlays stay dark in every theme */
.player,.hero .dots{--fg-rgb:255,255,255;color:#eef0f5}
.card .pst .rt{background:rgba(8,9,13,.78)}
.nocap .card .cap{display:none}
.nocap .grid{gap:14px}
.mode-btn{width:40px;height:40px;border-radius:12px;border:1px solid var(--line);background:var(--card);display:grid;place-items:center;cursor:pointer;color:var(--mute)}
.mode-btn:hover{color:var(--text)}
.mode-btn svg{width:18px;height:18px}

/* ================= PRESTIGE (premium theme) ================= */
.hero .eyebrow{display:none}
.th-prestige{--gold:linear-gradient(135deg,#f7e7a9 0%,#d4af37 42%,#a07c1e 70%,#f1d98a 100%);--radius:4px;letter-spacing:.005em}
.th-prestige::before{content:"";position:fixed;inset:0;z-index:100;pointer-events:none;opacity:.06;mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
.th-prestige h1,.th-prestige h2,.th-prestige h3{font-weight:700;letter-spacing:-.005em}
/* header: glass + gold hairline */
.th-prestige .hdr{background:linear-gradient(180deg,rgba(var(--bg-rgb),.92),rgba(var(--bg-rgb),.72));border-bottom:1px solid transparent;border-image:linear-gradient(90deg,transparent,rgba(212,175,55,.55),transparent) 1}
.th-prestige .logo{font-family:var(--head);font-style:italic;font-weight:700;letter-spacing:0}
.th-prestige .logo b{background:var(--gold);-webkit-background-clip:text;background-clip:text;color:transparent}
.th-prestige .logo .mark{background:var(--gold);color:#1a1405;border-radius:50%}
.th-prestige .nav a{text-transform:uppercase;font-size:12px;letter-spacing:.16em;font-weight:600;border-radius:0;padding:8px 10px;position:relative}
.th-prestige .nav a.on{background:none;color:var(--accent)}
.th-prestige .nav a.on::after{content:"";position:absolute;left:10px;right:10px;bottom:2px;height:1px;background:var(--gold)}
.th-prestige .search input{border-radius:999px;background:rgba(var(--fg-rgb),.04);border-color:rgba(212,175,55,.25)}
/* buttons */
.th-prestige .btn{border-radius:999px;letter-spacing:.04em}
.th-prestige .btn.pri{background:var(--gold);background-size:200% 200%;border:0;color:#1a1405;box-shadow:0 6px 24px rgba(212,175,55,.25);transition:background-position .6s,transform .12s}
.th-prestige .btn.pri:hover{background-position:100% 0;filter:none}
.th-prestige .btn.ghost{background:transparent;border:1px solid rgba(212,175,55,.6);color:#f4efe3}
.th-prestige .btn.ghost:hover{background:rgba(212,175,55,.1)}
/* hero: letterbox + vignette + serif */
.th-prestige .hero{height:min(88vh,760px)}
.th-prestige .hero::before,.th-prestige .hero::after{content:"";position:absolute;left:0;right:0;height:5.5%;background:#000;z-index:4;pointer-events:none}
.th-prestige .hero::before{top:0}.th-prestige .hero::after{bottom:0}
.th-prestige .hero .slide::after{background:radial-gradient(ellipse at 70% 40%,transparent 30%,rgba(var(--bg-rgb),.55) 75%),linear-gradient(90deg,rgba(var(--bg-rgb),.96) 0%,rgba(var(--bg-rgb),.65) 40%,transparent 72%),linear-gradient(0deg,var(--bg) 2%,transparent 38%)}
.th-prestige .hero .eyebrow{display:inline-flex;align-items:center;gap:12px;font-size:12px;letter-spacing:.32em;text-transform:uppercase;color:var(--accent);font-weight:700;margin-bottom:6px}
.th-prestige .hero .eyebrow::before{content:"";width:42px;height:1px;background:var(--gold)}
.th-prestige .hero h1,.th-prestige .hero h2{font-size:clamp(36px,6vw,78px)!important;font-weight:700!important;line-height:1.02;text-shadow:0 4px 40px rgba(0,0,0,.5)}
.th-prestige .hero p{font-style:italic;font-size:17px;color:#e9e1cd}
.th-prestige .hero .info{bottom:15%}
.th-prestige .hero .dots button{height:2px;width:34px}
.th-prestige .hero .dots button.on{background:var(--gold)}
.th-prestige .chip{background:transparent;border:1px solid rgba(var(--fg-rgb),.18);border-radius:999px;font-weight:600}
.th-prestige .chip.star{border-color:rgba(212,175,55,.55);background:rgba(212,175,55,.08)}
/* section titles */
.th-prestige .row-h h2,.th-prestige .sec>h2,.th-prestige .ph h1{display:flex;align-items:center;gap:14px}
.th-prestige .row-h h2::before,.th-prestige .sec>h2::before{content:"";width:28px;height:2px;background:var(--gold);flex:none}
.th-prestige .row-h a{text-transform:uppercase;font-size:11.5px;letter-spacing:.18em;color:var(--accent)}
/* cards */
.th-prestige .card .pst{box-shadow:0 0 0 1px rgba(212,175,55,.08);transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s}
.th-prestige .card:hover .pst{transform:translateY(-6px);box-shadow:0 0 0 1px rgba(212,175,55,.7),0 22px 50px rgba(0,0,0,.6),0 0 40px rgba(212,175,55,.12)}
.th-prestige .card:hover .pst img{transform:scale(1.04);filter:brightness(.62) sepia(.15)}
.th-prestige .card .play span{background:var(--gold);color:#1a1405}
.th-prestige .card .rt{background:rgba(10,9,7,.82);border:1px solid rgba(212,175,55,.5);color:#f1d98a;border-radius:999px}
.th-prestige .card .tg{background:transparent;border:1px solid #e8d5a3;color:#e8d5a3}
.th-prestige .card .cap b{font-family:var(--head);font-size:15px;font-weight:600}
/* Top-10 ranked rail */
.th-prestige .row.rank .track{counter-reset:rk;grid-auto-columns:clamp(180px,19vw,262px);gap:6px}
.th-prestige .row.rank .card{counter-increment:rk;padding-left:clamp(58px,6vw,86px)}
.th-prestige .row.rank .card::before{content:counter(rk);position:absolute;left:-4px;bottom:56px;z-index:0;font-family:var(--head);font-weight:800;font-size:clamp(88px,9vw,138px);line-height:.8;color:var(--bg);-webkit-text-stroke:2px #d4af37;letter-spacing:-.06em}
.th-prestige .row.rank .card .pst{z-index:1}
.th-prestige.nocap .row.rank .card::before{bottom:0}
/* title page */
.th-prestige .pcard{border-radius:6px;box-shadow:0 0 0 1px rgba(212,175,55,.35),0 40px 90px rgba(0,0,0,.65)}
.th-prestige .player .gate .pb{background:var(--gold);box-shadow:0 0 0 14px rgba(212,175,55,.14),0 0 0 28px rgba(212,175,55,.06),0 20px 60px rgba(0,0,0,.6)}
.th-prestige .servers button{border-radius:999px}
.th-prestige .servers button.on{border-color:#d4af37;color:#f1d98a}
.th-prestige .tinfo .pst{border-radius:4px;box-shadow:0 0 0 1px rgba(212,175,55,.5),0 0 0 6px rgba(10,9,7,1),0 0 0 7px rgba(212,175,55,.25),0 30px 60px rgba(0,0,0,.6)}
.th-prestige .tinfo h1{font-size:clamp(30px,4.2vw,52px)}
.th-prestige .overview{font-size:16.5px;line-height:1.7}
.th-prestige .tagline{color:var(--accent)}
.th-prestige .side .box{border-radius:6px;border-color:rgba(212,175,55,.18)}
.th-prestige .cast img,.th-prestige .cast .ph0{box-shadow:0 0 0 2px var(--bg),0 0 0 3px rgba(212,175,55,.5)}
.th-prestige .filters a.f{border-radius:999px}
.th-prestige .filters a.f.on{background:var(--gold);border:0}
.th-prestige .pager .on{background:var(--gold)}
.th-prestige .ftr{border-top:0;position:relative;background:#070605}
.th-prestige .ftr::before{content:"✦";position:absolute;top:-11px;left:50%;transform:translateX(-50%);color:#d4af37;background:var(--bg);padding:0 14px;font-size:14px}
.th-prestige .ftr::after{content:"";position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,rgba(212,175,55,.5),transparent)}
.th-prestige .tabbar a.on{color:#f1d98a}
@media (max-width:720px){
  .th-prestige .hero{height:72vh}
  .th-prestige .hero::before,.th-prestige .hero::after{height:3%}
  .th-prestige .row.rank .track{grid-auto-columns:178px}
  .th-prestige .row.rank .card{padding-left:46px}
  .th-prestige .row.rank .card::before{font-size:84px;bottom:52px;-webkit-text-stroke:1.5px #d4af37}
}

/* ---------- multi-language ---------- */
.lsw{position:relative}
.lsw summary{list-style:none;display:flex;align-items:center;gap:5px;height:40px;padding:0 10px;border-radius:12px;border:1px solid var(--line);background:var(--card);cursor:pointer;font-size:12px;font-weight:700;color:var(--mute)}
.lsw summary::-webkit-details-marker{display:none}
.lsw summary svg{width:18px;height:18px}
.lsw[open] summary{border-color:var(--accent);color:var(--fg,#fff)}
.lmenu{position:absolute;right:0;top:46px;z-index:80;width:min(440px,92vw);max-height:70vh;overflow:auto;background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:0 20px 60px rgba(0,0,0,.5);padding:8px;display:grid;grid-template-columns:repeat(2,1fr);gap:2px}
.lmenu a,.dr-langs a{padding:8px 10px;border-radius:9px;font-size:13.5px;color:var(--mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lmenu a:hover,.dr-langs a:hover{background:var(--card2);color:var(--fg,#fff)}
.lmenu a.on,.dr-langs a.on{color:var(--accent);font-weight:700;background:rgba(255,182,39,.08)}
.dr-langs{display:grid;grid-template-columns:1fr 1fr;gap:2px;padding:0 10px 8px}
.lbar{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(76px + env(safe-area-inset-bottom));z-index:90;display:flex;align-items:center;gap:10px;max-width:calc(100% - 24px);background:var(--card);border:1px solid var(--accent);border-radius:999px;padding:8px 8px 8px 14px;box-shadow:0 14px 40px rgba(0,0,0,.5);font-size:14px}
.lbar a{color:var(--accent);font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lbar button{flex:none;width:28px;height:28px;border-radius:50%;border:0;background:var(--card2);color:var(--mute);cursor:pointer}
@media(min-width:900px){.lbar{bottom:22px}}
@media(max-width:760px){.lsw{display:none}}
[dir=rtl] .lmenu{right:auto;left:0}
[dir=rtl] .search svg{left:auto;right:12px}
[dir=rtl] .search input{padding:0 38px 0 14px}
[dir=rtl] .rail .nb.l{transform:scaleX(-1)}[dir=rtl] .rail .nb.r{transform:scaleX(-1)}
[dir=rtl] .card .rt{left:auto;right:8px}
