/* Fassarar Algaita — website styles (dark + light themes) */
:root{
  --bg:#0b0d12;--surface:#141822;--surface-2:#1c2130;--line:rgba(255,255,255,.08);--line-2:rgba(255,255,255,.14);
  --text:#f4f5f7;--muted:#a3abbb;--accent:#f5b301;--accent-ink:#15130c;--red:#e0353b;--blue:#3b62c9;
  --ok:#22c55e;--ok-soft:rgba(34,197,94,.13);--bad:#ef4444;--bad-soft:rgba(239,68,68,.12);--wait-soft:rgba(245,179,1,.12);
  --radius:14px;--radius-lg:20px;--shadow:0 18px 40px rgba(0,0,0,.35);--wrap:1280px;--gutter:16px;
  --bottom-nav:64px;--safe-b:env(safe-area-inset-bottom,0px);
  color-scheme:dark;
}
[data-theme="light"]{
  --bg:#f5f6fa;--surface:#ffffff;--surface-2:#eef0f5;--line:rgba(15,20,35,.09);--line-2:rgba(15,20,35,.16);
  --text:#12151c;--muted:#5b6475;--accent:#e9a800;--accent-ink:#15130c;--shadow:0 12px 30px rgba(20,25,40,.12);
  color-scheme:light;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font:16px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,Inter,Arial,sans-serif;overflow-x:hidden}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
a:hover{color:var(--accent)}
button,input,select,textarea{font:inherit;color:inherit}
h1,h2,h3{line-height:1.2;margin:0;letter-spacing:-.01em}
.wrap{width:100%;max-width:var(--wrap);margin:0 auto;padding:0 var(--gutter)}
.page{padding-top:20px;padding-bottom:48px}
.sr,.skip:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip:focus{position:fixed;top:8px;left:8px;z-index:100;background:var(--accent);color:var(--accent-ink);padding:8px 14px;border-radius:8px}
.ic{flex:0 0 auto}
.muted{color:var(--muted)}
[hidden]{display:none!important}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 22px;border-radius:999px;border:0;background:var(--accent);color:var(--accent-ink);font-weight:800;font-size:15px;cursor:pointer;text-align:center;line-height:1.2;transition:filter .15s,transform .1s}
.btn:hover{filter:brightness(1.07);color:var(--accent-ink)}
.btn:active{transform:translateY(1px)}
.btn[disabled]{opacity:.55;cursor:not-allowed}
.btn-ghost{background:transparent;color:var(--text);border:1px solid var(--line-2)}
.btn-ghost:hover{color:var(--text);border-color:var(--accent)}
.btn-soft{background:var(--surface-2);color:var(--text);border:1px solid var(--line)}
.btn-soft:hover{color:var(--text)}
.btn-danger{background:transparent;color:var(--bad);border:1px solid rgba(239,68,68,.45)}
.btn-sm{min-height:40px;padding:0 16px;font-size:14px}
.btn-block{width:100%}
.icon-btn{position:relative;display:inline-grid;place-items:center;width:44px;height:44px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--text);cursor:pointer}
.icon-btn:hover{color:var(--accent)}
.badge{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--accent);color:var(--accent-ink);font-size:11px;font-weight:800;display:grid;place-items:center}
.row-btns{display:flex;flex-wrap:wrap;gap:10px}

/* Header */
.top{position:sticky;top:0;z-index:40;background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.top-row{display:flex;align-items:center;gap:14px;min-height:64px}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:17px;min-width:0}
.brand img{width:40px;height:40px;border-radius:10px;background:#fff}
.brand span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.main-nav{display:flex;gap:22px;font-weight:600;font-size:15px}
.main-nav a{color:var(--muted)}
.main-nav a.on,.main-nav a:hover{color:var(--text)}
.main-nav a.on{color:var(--accent)}
.search{flex:1 1 220px;display:flex;align-items:center;gap:8px;height:44px;padding:0 14px;border-radius:999px;background:var(--surface);border:1px solid var(--line);color:var(--muted);min-width:0}
.search input{flex:1;min-width:0;border:0;outline:0;background:transparent;font-size:16px;color:var(--text)}
.top-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
[data-theme="dark"] .when-light,[data-theme="light"] .when-dark{display:none}

/* Install bar */
.install-bar{position:relative;z-index:39;display:flex;align-items:center;gap:12px;padding:10px var(--gutter);background:var(--surface);border-bottom:1px solid var(--line)}
.install-bar img{border-radius:10px;background:#fff}
.ib-text{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}
.ib-text strong{font-size:14px}
.ib-text span{font-size:12.5px;color:var(--muted)}

/* Alerts */
.alert{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:12px;margin:0 0 16px;font-size:15px;border:1px solid var(--line)}
.alert-success,.alert-ok{background:var(--ok-soft);border-color:rgba(34,197,94,.35)}
.alert-error,.alert-bad{background:var(--bad-soft);border-color:rgba(239,68,68,.35)}
.alert-info,.alert-wait{background:var(--wait-soft);border-color:rgba(245,179,1,.35)}

/* Hero */
.hero{position:relative;border-radius:var(--radius-lg);overflow:hidden;background:#0b0d12;min-height:clamp(340px,56vw,520px);display:grid;margin-bottom:28px}
/* all slides share one grid cell: the active one always fills the whole banner */
.hero-slide{grid-area:1/1;position:relative;opacity:0;visibility:hidden;transition:opacity .6s,visibility .6s;display:flex;align-items:flex-end;min-height:100%}
.hero-slide.on{opacity:1;visibility:visible}
.hero-slide img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 22%}
.hero-slide::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(8,10,14,.95) 0%,rgba(8,10,14,.55) 45%,rgba(8,10,14,.1) 80%)}
.hero-body{position:relative;z-index:1;padding:clamp(18px,4vw,40px);max-width:640px;color:#fff;display:flex;flex-direction:column;gap:12px}
.hero-body h1,.hero-body h2{font-size:clamp(1.7rem,5vw,3.2rem);font-weight:800;letter-spacing:-.02em}
.hero-meta{display:flex;flex-wrap:wrap;gap:6px 14px;color:#d6dae3;font-size:14px}
.kicker{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:999px;background:var(--accent);color:var(--accent-ink);font-size:12px;font-weight:800;letter-spacing:.06em}
.hero-dots{position:absolute;right:18px;bottom:18px;z-index:2;display:flex;gap:6px}
.hero-dots button{width:10px;height:10px;border-radius:999px;border:0;background:rgba(255,255,255,.4);cursor:pointer;padding:0}
.hero-dots button.on{width:26px;background:var(--accent)}

/* Sections + grids */
.sec{margin:0 0 34px}
.sec-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.sec-head h2{display:flex;align-items:center;gap:8px;font-size:20px;font-weight:800}
.sec-head h2 .ic{color:var(--accent)}
.sec-head a{display:inline-flex;align-items:center;gap:2px;color:var(--accent);font-weight:700;font-size:14px;white-space:nowrap}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}
@media (min-width:520px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:860px){.grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:20px 16px}}
@media (min-width:1180px){.grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
.rail{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(130px,42%);gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:6px;scrollbar-width:thin}
@media (min-width:520px){.rail{grid-auto-columns:minmax(150px,28%)}}
@media (min-width:860px){.rail{grid-auto-columns:calc((100% - 5*16px)/6);gap:16px}}
.rail>*{scroll-snap-align:start}
.card{display:flex;flex-direction:column;gap:8px;min-width:0}
.poster{position:relative;aspect-ratio:3/4;border-radius:var(--radius);overflow:hidden;background:var(--surface-2)}
.poster img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.card:hover .poster img{transform:scale(1.04)}
.card-title{font-weight:700;font-size:14px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-sub{margin-top:-4px;color:var(--muted);font-size:12.5px}
.tag{position:absolute;left:8px;top:8px;display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:999px;background:var(--accent);color:var(--accent-ink);font-size:11.5px;font-weight:800}
.tag-free{background:var(--ok);color:#052e16}
.tag-owned,.tag-dark{background:rgba(10,12,17,.85);color:#e8ecf3}
.tag-owned{color:#86efac}
.wide-card{display:flex;flex-direction:column;gap:8px}
.wide-card .thumb{position:relative;aspect-ratio:16/9;border-radius:var(--radius);overflow:hidden;background:var(--surface-2)}
.wide-card .thumb img{width:100%;height:100%;object-fit:cover}
.progress{position:absolute;left:0;right:0;bottom:0;height:4px;background:rgba(255,255,255,.2)}
.progress i{display:block;height:4px;background:var(--accent)}

/* Filters */
.page-title{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:16px}
.page-title h1{font-size:clamp(1.5rem,4vw,2.1rem);font-weight:800}
.chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;margin-bottom:18px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{flex:0 0 auto;display:inline-flex;align-items:center;min-height:38px;padding:0 16px;border-radius:999px;background:var(--surface);border:1px solid var(--line);color:var(--muted);font-weight:600;font-size:14px;white-space:nowrap}
.chip.on{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
select.sel{min-height:44px;padding:0 12px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--text)}

/* Watch page */
.watch{display:grid;gap:24px}
@media (min-width:980px){.watch{grid-template-columns:minmax(0,1fr) 360px}}
.player{position:relative;aspect-ratio:16/9;background:#000;border-radius:var(--radius-lg);overflow:hidden}
.player video{position:absolute;inset:0;width:100%;height:100%;background:#000}
.player-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.player-badge{position:absolute;left:12px;top:12px;z-index:3;display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;background:rgba(10,12,17,.85);color:var(--accent);font-size:13px;font-weight:800}
/* Locked player: the movie picture stays visible behind a see-through dark layer, text always white (light and dark mode) */
.player-lock{position:absolute;inset:0;z-index:4;display:flex;align-items:center;justify-content:center;padding:14px;background:linear-gradient(180deg,rgba(6,8,12,.35),rgba(6,8,12,.78));-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);color:#fff;text-align:center}
.player-lock .box{max-width:420px;display:flex;flex-direction:column;align-items:center;gap:10px;background:none;border:0;box-shadow:none;padding:0;color:#fff}
.player-lock h2{font-size:clamp(1.1rem,4vw,1.6rem);color:#fff;text-shadow:0 1px 8px rgba(0,0,0,.6)}
.player-lock p{margin:0;color:#e6e9ef;font-size:14px;text-shadow:0 1px 6px rgba(0,0,0,.6)}
@media (max-width:520px){.player-lock p{display:none}.player-lock .lock-ic{width:44px;height:44px}}
.lock-ic{width:56px;height:56px;border-radius:16px;background:rgba(245,179,1,.16);color:var(--accent);display:grid;place-items:center}
.player-start{position:absolute;inset:0;z-index:3;display:grid;place-items:center;border:0;background:transparent;cursor:pointer}
.player-start span{width:74px;height:74px;border-radius:50%;background:var(--accent);color:var(--accent-ink);display:grid;place-items:center;box-shadow:var(--shadow)}
.player-start.busy span{animation:pulse 1s ease-in-out infinite}
@keyframes pulse{50%{transform:scale(.88);opacity:.7}}
.title-block{display:flex;flex-direction:column;gap:8px;margin-top:16px}
.title-block h1{font-size:clamp(1.5rem,4vw,2.2rem);font-weight:800}
.eyebrow{color:var(--accent);font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.facts{display:flex;flex-wrap:wrap;gap:6px 16px;color:var(--muted);font-size:14px}
.facts span{display:inline-flex;align-items:center;gap:6px}
.desc{color:var(--muted);line-height:1.75;font-size:15.5px;white-space:pre-line;overflow-wrap:anywhere}
.box{padding:18px;border-radius:var(--radius-lg);background:var(--surface);border:1px solid var(--line);display:flex;flex-direction:column;gap:14px}
.price{font-size:30px;font-weight:800;line-height:1}
.price-row{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 10px}
.checks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px;font-size:14.5px;color:var(--muted)}
.checks li{display:flex;gap:10px;align-items:center}
.checks .ic{color:var(--ok)}
.note{display:flex;gap:10px;align-items:flex-start;font-size:13.5px;color:var(--muted);line-height:1.5}
.note .ic{color:var(--accent);margin-top:2px}
.owned-line{display:flex;align-items:center;gap:8px;color:var(--ok);font-weight:800}

/* Series */
.plans{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));margin-bottom:24px}
.plan{padding:18px;border-radius:var(--radius-lg);background:var(--surface);border:1px solid var(--line);display:flex;flex-direction:column;gap:8px}
.plan.best{border-color:rgba(245,179,1,.6);background:color-mix(in srgb,var(--accent) 7%,var(--surface))}
.plan small{color:var(--muted);font-weight:800;font-size:12px;letter-spacing:.05em}
.plan .price{font-size:26px}
.plan form{margin-top:auto}
.eps{display:grid;gap:10px}
@media (min-width:860px){.eps{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ep{display:flex;gap:12px;align-items:center;padding:10px;border-radius:var(--radius);background:var(--surface);border:1px solid var(--line);min-width:0}
.ep .thumb{flex:0 0 112px;aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:var(--surface-2)}
.ep .thumb img{width:100%;height:100%;object-fit:cover}
.ep-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.ep-body strong{font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ep-body span{font-size:12.5px;color:var(--muted)}
.ep-price{display:inline-flex;align-items:center;gap:4px;color:var(--accent);font-weight:800;font-size:14px;white-space:nowrap}
.tabs{display:flex;gap:8px;overflow-x:auto;margin-bottom:14px;scrollbar-width:none}
.tab{flex:0 0 auto;min-height:40px;display:inline-flex;align-items:center;padding:0 16px;border-radius:999px;border:1px solid var(--line);background:var(--surface);font-weight:700;font-size:14px}
.tab.on{background:var(--text);color:var(--bg);border-color:var(--text)}

/* Lists (cart, library) */
.two-col{display:grid;gap:22px;align-items:start}
@media (min-width:900px){.two-col{grid-template-columns:minmax(0,1fr) 360px}}
.list{display:flex;flex-direction:column;gap:10px}
.li{display:flex;align-items:center;gap:12px;padding:12px;border-radius:var(--radius);background:var(--surface);border:1px solid var(--line);min-width:0}
.li img{flex:0 0 52px;width:52px;height:74px;border-radius:9px;object-fit:cover;background:var(--surface-2)}
.li-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.li-body strong{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.li-body span{font-size:13px;color:var(--muted)}
.li-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
@media (max-width:520px){.li{flex-wrap:wrap}.li-actions{width:100%;justify-content:stretch}.li-actions>*{flex:1}}
.sum-row{display:flex;justify-content:space-between;gap:10px;font-size:15px}
.sum-total{padding-top:12px;border-top:1px solid var(--line);font-size:19px;font-weight:800}
.radio{display:flex;align-items:center;gap:12px;padding:14px;border-radius:14px;border:1px solid var(--line-2);background:var(--surface-2);cursor:pointer}
.radio input{width:20px;height:20px;accent-color:var(--accent)}
.radio:has(input:checked){border-color:var(--accent)}
.status{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;font-size:12.5px;font-weight:800}
.status-ok{background:var(--ok-soft);color:var(--ok)}
.status-bad{background:var(--bad-soft);color:var(--bad)}
.status-wait{background:var(--wait-soft);color:var(--accent)}
.table-wrap{overflow-x:auto;border-radius:var(--radius);border:1px solid var(--line);background:var(--surface)}
table{width:100%;border-collapse:collapse;font-size:14px}
th,td{padding:11px 14px;text-align:left;border-bottom:1px solid var(--line);white-space:nowrap}
th{color:var(--muted);font-size:12px;letter-spacing:.04em}

/* Forms */
.auth{max-width:440px;margin:10px auto 0}
.auth h1{font-size:26px;font-weight:800;text-align:center}
.auth .sub{margin:6px 0 20px;text-align:center;color:var(--muted)}
.form{display:flex;flex-direction:column;gap:14px}
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-size:14px;font-weight:700}
.field input,.field select,.field textarea{width:100%;min-height:50px;padding:0 14px;border-radius:12px;border:1px solid var(--line-2);background:var(--surface);color:var(--text);font-size:16px}
.field textarea{padding:12px 14px;min-height:120px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:transparent}
.field.has-err input{border-color:var(--bad)}
.err{color:var(--bad);font-size:13px}
.hint{color:var(--muted);font-size:13px}
.pw-wrap{position:relative}
.pw-wrap input{padding-right:52px}
.pw-wrap button{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:44px;height:44px;border:0;background:transparent;color:var(--muted);cursor:pointer}
.form-foot{text-align:center;color:var(--muted);font-size:14.5px}
.form-foot a{color:var(--accent);font-weight:700}

/* Info pages */
.prose{max-width:780px}
.prose h1{font-size:clamp(1.6rem,4vw,2.2rem);margin-bottom:10px}
.prose h2{font-size:19px;margin:26px 0 8px}
.prose p,.prose li{color:var(--muted);line-height:1.75}
.prose a{color:var(--accent)}

.empty{text-align:center;padding:40px 10px;display:flex;flex-direction:column;align-items:center;gap:12px}
.empty .ic{color:var(--accent)}
.empty p{margin:0;color:var(--muted)}
.pager{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:22px}
.pager a,.pager span{display:inline-flex;align-items:center;gap:4px;min-width:42px;min-height:42px;justify-content:center;padding:0 12px;border-radius:10px;border:1px solid var(--line);background:var(--surface);font-weight:700;font-size:14px}
.pager span[aria-current]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}

/* Footer */
.foot{margin-top:24px;border-top:1px solid var(--line);background:var(--surface)}
.foot-grid{display:grid;gap:26px;padding-top:30px;padding-bottom:20px;grid-template-columns:repeat(2,minmax(0,1fr))}
@media (min-width:860px){.foot-grid{grid-template-columns:2fr 1fr 1fr 1fr}}
.foot-about{grid-column:1/-1}
@media (min-width:860px){.foot-about{grid-column:auto}}
.foot-about p{color:var(--muted);font-size:14px;margin:10px 0}
.foot nav{display:flex;flex-direction:column;gap:9px;font-size:14px}
.foot nav a{color:var(--muted)}
.foot h2{font-size:12.5px;letter-spacing:.08em;text-transform:uppercase;margin-bottom:4px}
.socials{display:flex;flex-wrap:wrap;gap:8px}
.socials a{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--surface-2);color:var(--muted)}
.foot-bottom{padding-top:14px;padding-bottom:24px;border-top:1px solid var(--line);color:var(--muted);font-size:13px}

/* WhatsApp button */
.wa-fab{position:fixed;right:16px;bottom:calc(20px + var(--safe-b));z-index:45;width:58px;height:58px;border-radius:50%;background:#25d366;color:#fff;display:grid;place-items:center;box-shadow:0 10px 24px rgba(37,211,102,.4)}
.wa-fab:hover{color:#fff;filter:brightness(1.05)}

/* Toasts */
.toasts{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(20px + var(--safe-b));z-index:60;display:flex;flex-direction:column;gap:8px;width:min(92vw,420px)}
.toast{padding:12px 16px;border-radius:12px;background:var(--surface);border:1px solid var(--line-2);box-shadow:var(--shadow);font-weight:600;font-size:14.5px}

/* Phone bottom navigation */
.bottom-nav{display:none}
@media (max-width:859px){
  .main-nav,.hide-sm{display:none}
  .top-row{flex-wrap:wrap;gap:10px;padding-top:8px;padding-bottom:8px}
  .brand span{font-size:16px}
  .search{order:3;flex-basis:100%;height:42px}
  body{padding-bottom:calc(var(--bottom-nav) + var(--safe-b))}
  .bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:50;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));height:calc(var(--bottom-nav) + var(--safe-b));padding-bottom:var(--safe-b);background:var(--surface);border-top:1px solid var(--line)}
  .bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--muted);font-size:11px;font-weight:600;min-width:0}
  .bottom-nav a span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .bottom-nav a.on{color:var(--accent);font-weight:800}
  .wa-fab{bottom:calc(var(--bottom-nav) + 16px + var(--safe-b))}
  .toasts{bottom:calc(var(--bottom-nav) + 14px + var(--safe-b))}
  .foot{padding-bottom:8px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
.hero-slide{color:#fff;text-decoration:none}
/* Light mode: gold TEXT uses a deeper gold so it is readable on white (buttons keep bright gold) */
[data-theme="light"]{--accent-text:#8a6500}
[data-theme="light"] .eyebrow,[data-theme="light"] .sec-head a,[data-theme="light"] .ep-price,[data-theme="light"] .form-foot a,
[data-theme="light"] .bottom-nav a.on,[data-theme="light"] .status-wait,[data-theme="light"] .note .ic,[data-theme="light"] a.link{color:var(--accent-text)}
/* Spinner for "Confirming payment" */
.spinner{width:52px;height:52px;border-radius:50%;border:4px solid var(--surface-2);border-top-color:var(--accent);animation:spin 1s linear infinite;flex:0 0 auto}
.spinner.sm{width:26px;height:26px;border-width:3px}
@keyframes spin{to{transform:rotate(360deg)}}
/* Confirm purchase popup */
.cm-backdrop{position:fixed;inset:0;z-index:200;background:rgba(0,0,0,.6);display:flex;align-items:flex-end;justify-content:center;padding:12px;animation:cmfade .15s ease}
@media (min-width:600px){.cm-backdrop{align-items:center}}
.cm{background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:18px;width:100%;max-width:440px;padding:20px;display:flex;flex-direction:column;gap:12px;box-shadow:0 20px 60px rgba(0,0,0,.4);animation:cmup .2s ease;max-height:92vh;overflow:auto}
.cm h2{font-size:19px;margin:0}
.cm-item{display:flex;gap:12px;align-items:center;background:var(--surface-2);border-radius:12px;padding:10px}
.cm-item img{width:60px;height:80px;object-fit:cover;border-radius:8px;flex:0 0 auto}
.cm-item div{display:flex;flex-direction:column;gap:3px;min-width:0}
.cm-item strong{font-size:15px;line-height:1.3}
.cm-item .muted{font-size:13px}
.cm-row{display:flex;justify-content:space-between;gap:12px;font-size:14px;align-items:center}
.cm-row span:last-child{overflow:hidden;text-overflow:ellipsis}
.cm-total{font-size:17px;padding:4px 0;border-bottom:1px solid var(--line)}
.cm-total strong{color:var(--accent-text,var(--accent))}
.cm-label{font-weight:700;font-size:14px}
.cm-note{display:flex;gap:8px;font-size:13px;color:var(--muted);margin:0;align-items:flex-start}
.cm-note svg{flex:0 0 auto;margin-top:2px;color:var(--ok)}
.cm-actions{display:grid;grid-template-columns:1fr 1.4fr;gap:10px}
.cm-actions .btn{justify-content:center}
@keyframes cmfade{from{opacity:0}}
@keyframes cmup{from{transform:translateY(20px);opacity:0}}
.orig-title{margin:2px 0 6px;color:var(--muted);font-size:14px}
/* Hero label at the top right */
.hero-tag{position:absolute;top:clamp(12px,2.5vw,22px);right:clamp(12px,2.5vw,22px);z-index:2;box-shadow:0 4px 14px rgba(0,0,0,.35)}
.hero-slide::before{content:"";position:absolute;inset:0 0 auto 0;height:90px;z-index:1;background:linear-gradient(180deg,rgba(8,10,14,.45),transparent)}
/* Connection bar */
.net-bar{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(var(--bottom-nav,0px) + 14px + var(--safe-b,0px));z-index:300;background:#2a2f3a;color:#fff;padding:10px 16px;border-radius:999px;font-size:14px;box-shadow:var(--shadow);max-width:92vw;text-align:center}
.net-bar.ok{background:var(--ok)}
/* Series page: poster + title side by side, details below (phone and computer) */
.show-hero{position:relative;border-radius:var(--radius-lg);overflow:hidden;margin-bottom:22px;background:#0b0d12;color:#fff}
.show-bg{position:absolute;inset:-30px;background-size:cover;background-position:center 25%;filter:blur(22px) brightness(.4);transform:scale(1.1)}
.show-inner{position:relative;display:grid;grid-template-columns:200px 1fr;grid-template-areas:"poster head" "poster more";column-gap:28px;row-gap:12px;padding:28px;align-items:end}
.show-poster{grid-area:poster;width:100%;height:auto;aspect-ratio:3/4;object-fit:cover;border-radius:14px;box-shadow:0 18px 40px rgba(0,0,0,.5);align-self:start}
.show-head{grid-area:head;display:flex;flex-direction:column;gap:6px;min-width:0;align-self:end}
.show-more{grid-area:more;display:flex;flex-direction:column;gap:12px;min-width:0;align-self:start}
.show-head h1{font-size:clamp(1.5rem,4vw,2.6rem);font-weight:800;letter-spacing:-.02em;line-height:1.12;margin:0;overflow-wrap:anywhere}
.show-head .orig-title{color:#c9ced8;margin:0}
.show-hero .chips{display:flex;flex-wrap:wrap;gap:8px;overflow:visible;padding:0;margin:0}
.show-hero .chips span{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.12);font-size:13px;font-weight:700}
.show-hero .chips .chip-ok{background:rgba(34,197,94,.22);color:#b8f5cc}
.show-desc{color:#d6dae3;line-height:1.65;font-size:15px;margin:0;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-line}
.show-more .btn-ghost{color:#fff;border-color:rgba(255,255,255,.35)}
@media (max-width:640px){
  .show-inner{grid-template-columns:108px 1fr;grid-template-areas:"poster head" "more more";column-gap:14px;row-gap:14px;padding:16px}
  .show-poster{border-radius:10px;align-self:end}
  .show-head h1{font-size:1.45rem}
  .show-head .eyebrow{font-size:11px}
  .show-head .orig-title{font-size:13px}
  .show-hero .chips span{padding:5px 10px;font-size:12px}
  .show-desc{font-size:14px;-webkit-line-clamp:3}
  .show-more .row-btns{flex-wrap:nowrap;gap:8px}
  .show-more .row-btns .btn{flex:1 1 auto;padding:0 14px;font-size:14px;white-space:nowrap;min-width:0}
  .show-more .row-btns .btn-ghost{flex:0 0 auto}
}
.sec-title{font-size:19px;margin:6px 0 12px;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.sec-title .muted{font-size:14px;font-weight:600}
@media (min-width:900px){.eps{grid-template-columns:1fr 1fr}}
.ep{transition:border-color .15s,transform .15s}
.ep:hover{border-color:var(--accent);transform:translateY(-1px)}
.ep .thumb{position:relative;flex-basis:132px}
.ep-num{position:absolute;left:6px;top:6px;background:rgba(0,0,0,.7);color:#fff;font-size:11px;font-weight:800;padding:2px 7px;border-radius:6px}
.ep-play{position:absolute;inset:0;display:grid;place-items:center;color:#fff;opacity:0;transition:opacity .15s;background:rgba(0,0,0,.35)}
.ep:hover .ep-play{opacity:1}
.ep-prog{position:absolute;left:0;right:0;bottom:0;height:4px;background:rgba(255,255,255,.25)}
.ep-prog i{display:block;height:100%;background:var(--accent)}
/* ---------- Our own player controls (full movie length on the bar; the part after the free preview is locked) ---------- */
.pc{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;justify-content:flex-end;color:#fff;opacity:0;transition:opacity .2s;cursor:pointer;-webkit-tap-highlight-color:transparent}
.pc.on,.pc.paused,.pc.drag{opacity:1}
.pc::before{content:"";position:absolute;inset:auto 0 0 0;height:55%;background:linear-gradient(0deg,rgba(0,0,0,.78),transparent);pointer-events:none}
.player.has-pc:not(:hover) .pc:not(.on):not(.paused){cursor:none}
.pc-big{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:68px;height:68px;border-radius:50%;border:0;background:rgba(0,0,0,.55);color:#fff;display:grid;place-items:center;cursor:pointer;opacity:0;pointer-events:none;transition:opacity .2s}
.pc.paused .pc-big{opacity:1;pointer-events:auto;background:var(--accent);color:var(--accent-ink)}
.pc.paused .pc-big svg{margin-left:3px}
.pc-spin{position:absolute;left:50%;top:50%;width:46px;height:46px;margin:-23px 0 0 -23px;border-radius:50%;border:4px solid rgba(255,255,255,.25);border-top-color:var(--accent);animation:spin 1s linear infinite;pointer-events:none}
.pc-spin[hidden]{display:none}
.pc-bar{position:relative;padding:0 12px 8px;cursor:default}
.pc-track{position:relative;height:22px;display:flex;align-items:center;cursor:pointer;touch-action:none;outline:none}
.pc-rail{position:relative;width:100%;height:4px;border-radius:4px;background:rgba(255,255,255,.28);overflow:hidden;transition:height .15s}
.pc-track:hover .pc-rail,.pc.drag .pc-rail{height:6px}
.pc-rail i{position:absolute;top:0;bottom:0;left:0}
.pc-buf{background:rgba(255,255,255,.45)}
.pc-played{background:var(--accent)}
.pc-locked{right:0;width:auto!important;background:repeating-linear-gradient(135deg,rgba(255,255,255,.10) 0 6px,rgba(255,255,255,.22) 6px 12px)}
.pc-locked[hidden]{display:none}
.pc-knob{position:absolute;top:50%;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 3px rgba(0,0,0,.25);pointer-events:none;transform:scale(.85);transition:transform .15s}
.pc-track:hover .pc-knob,.pc.drag .pc-knob{transform:scale(1.1)}
.pc-tip{position:absolute;bottom:24px;transform:translateX(-50%);background:rgba(10,12,17,.92);color:#fff;font-size:12px;font-weight:700;padding:4px 8px;border-radius:6px;white-space:nowrap;display:inline-flex;align-items:center;gap:4px}
.pc-tip[hidden]{display:none}
.pc-row{display:flex;align-items:center;gap:2px}
.pc-btn{width:40px;height:40px;border:0;background:none;color:#fff;display:grid;place-items:center;border-radius:50%;cursor:pointer}
.pc-btn:hover,.pc-btn:focus-visible{background:rgba(255,255,255,.14)}
.pc-time{font-size:13px;font-variant-numeric:tabular-nums;margin-left:6px;white-space:nowrap;color:#e6e9ef}
.pc-time b{color:#fff}
.pc-sp{flex:1}
.pc-pv{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:800;color:var(--accent);background:rgba(0,0,0,.5);padding:4px 9px;border-radius:999px;margin-right:4px}
.pc-msg{position:absolute;left:50%;bottom:78px;transform:translateX(-50%);width:max-content;max-width:calc(100% - 24px);display:flex;align-items:center;gap:10px;background:rgba(10,12,17,.94);border:1px solid rgba(255,255,255,.12);padding:10px 12px;border-radius:12px;font-size:13.5px;line-height:1.4;z-index:2;cursor:default}
.pc-msg[hidden]{display:none}
.pc-msg svg{flex:0 0 auto;color:var(--accent)}
.pc-msg button{flex:0 0 auto;border:0;border-radius:999px;background:var(--accent);color:var(--accent-ink);font-weight:800;padding:7px 14px;cursor:pointer}
@media (max-width:480px){.pc-btn{width:36px;height:36px}.pc-vol{display:none}.pc-time{font-size:12px}.pc-pv{display:none}.pc-msg{bottom:70px;font-size:12.5px}}
.player.is-fs{border-radius:0;aspect-ratio:auto;width:100vw;height:100vh}
.player.is-fs video{object-fit:contain}
@media (hover:none){.pc.on .pc-big{opacity:1;pointer-events:auto}}
.pc-big svg{width:30px;height:30px}
.player:fullscreen{border-radius:0;aspect-ratio:auto;width:100%;height:100%;background:#000}
.player:-webkit-full-screen{border-radius:0;aspect-ratio:auto;width:100%;height:100%;background:#000}
.player.is-fs .pc-bar{padding:0 max(18px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left))}
.player.is-fs .pc-btn{width:46px;height:46px}
.player.is-fs .pc-big{width:80px;height:80px}
.player.is-fs .player-badge{top:max(14px,env(safe-area-inset-top));left:max(14px,env(safe-area-inset-left))}
.show-more .chips,.show-more .show-desc,.show-more .row-btns{margin:0}
