/* Slitz local UI replica — desktop glass theme */
:root{
  --viewport-h:100dvh;
  --bg:#0a0711;
  --surface:#17102a;
  --surface-2:#221a38;
  --text:#f5eef8;
  --muted:#a293b3;
  --accent:#ff3d6e;
  --accent-deep:#c9124a;
  --amber:#ffc857;
  --app-w:460px;
  --tab-h:calc(56px + env(safe-area-inset-bottom,0px));
  --rail-w:0px;
  --pane-w:0px;
  --page-gutter:40px;
  --frame-r:22px;
  --frame-gap:16px;
  --row:56px;
  --safe-top:env(safe-area-inset-top,0px);
  --safe-bottom:env(safe-area-inset-bottom,0px);
  --font-bricolage:"Bricolage Grotesque",system-ui,sans-serif;
  --font-instrument:"Instrument Serif",Georgia,serif;
  --font-ui:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display",system-ui,"Segoe UI",Roboto,sans-serif;
  --font-display:var(--font-bricolage),var(--font-ui);
  --glass-blur:blur(24px) saturate(180%);
  --glass:rgba(40,40,46,.54);
  --glass-line:rgba(255,255,255,.18);
  --glass-hi:rgba(255,255,255,.2);
  --spring:cubic-bezier(.34,1.56,.64,1);
  color-scheme:dark;
}
*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;height:100%;background:#000;color:var(--text);font-family:var(--font-bricolage),var(--font-ui);-webkit-font-smoothing:antialiased;overscroll-behavior:none}
button,input{font:inherit;color:inherit}
button{border:0;background:none;cursor:pointer;padding:0}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
[hidden]{display:none!important}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:10px}

/* ===== Desktop rail / pane ===== */
@media (min-width:840px) and (min-height:480px) and (orientation:landscape){
  :root{--rail-w:120px;--pane-w:clamp(340px,30vw,440px);--tab-h:34px;--frame-gap:16px;--frame-r:22px;--row:70px}
}
@media (min-width:1200px) and (min-height:480px) and (orientation:landscape){
  :root{--pane-w:clamp(380px,28vw,440px)}
}

/* ===== Age gate ===== */
.gate{
  position:fixed;inset:0;z-index:200;
  display:grid;place-items:safe center;overflow-y:auto;
  background:rgba(32,32,34,.72);
  padding:max(16px,var(--safe-top)) 24px max(16px,var(--safe-bottom));
}
.gate-card{
  width:min(100%,400px);
  background:rgba(232,230,233,.92);
  backdrop-filter:blur(40px) saturate(180%);
  -webkit-backdrop-filter:blur(40px) saturate(180%);
  border-radius:30px;
  padding:22px 22px 20px;
  box-shadow:inset 0 .5px 0 rgba(255,255,255,.45),0 24px 70px rgba(40,20,60,.28);
  color:#1a1222;
  display:grid;gap:10px;
}
.gate-mark{
  display:inline-flex;align-items:center;justify-content:center;
  height:28px;padding:0 10px;margin-bottom:8px;
  border-radius:999px;background:var(--accent);color:#fff;
  font-weight:800;font-size:13px;letter-spacing:-.02em;
  font-family:var(--font-display);width:fit-content;
}
.gate-card h2{
  margin:0;font-size:26px;letter-spacing:-.03em;line-height:1.05;font-weight:800;
  font-family:var(--font-display);
}
.gate-card p{margin:0;color:#6e6379;font-size:14.5px;line-height:1.45}
.gate-actions{display:grid;gap:8px;margin-top:8px}
.btn-age{
  height:46px;border-radius:999px;font-weight:700;font-size:15px;
}
.btn-age.yes{background:var(--accent);color:#fff}
.btn-age.yes:hover{background:#ff4d7a}
.btn-age.no{background:#ece8ef;color:#1a1222}
.gate-fine{color:#8a8390;font-size:11.5px;text-align:center;line-height:1.5}
.gate-fine a{text-decoration:underline;text-underline-offset:2px;text-decoration-color:color-mix(in srgb,currentColor 45%,transparent)}

/* Blocked (under 18) */
.blocked{
  position:fixed;inset:0;z-index:200;display:grid;place-items:center;
  background:#f4f1f7;color:#1a1222;padding:24px;text-align:center;
}
.blocked-card{max-width:420px}
.blocked h1{font-size:28px;letter-spacing:-.03em;margin:0 0 12px}
.blocked p{color:#6e6379;font-size:15px;line-height:1.5;margin:0 0 18px}
.blocked button{height:44px;padding:0 22px;border-radius:999px;background:#ece8ef;font-weight:700}

/* Loading spinner card */
.loader{
  position:fixed;inset:0;z-index:180;display:grid;place-items:center;
  background:rgba(10,8,12,.19);backdrop-filter:blur(8px);
}
.loader-card{
  width:min(440px,85vw);height:min(244px,75dvh);border-radius:28px;
  background:rgba(236,232,235,.86);
  backdrop-filter:blur(40px) saturate(180%);
  box-shadow:0 20px 60px rgba(0,0,0,.35),inset 0 .5px 0 rgba(255,255,255,.5);
  display:grid;place-content:center;justify-items:center;gap:12px;color:#1a1222;font-size:21px;
}
.welcome-check{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;background:#36ba71;color:#fff;font-size:32px;font-weight:750}

/* ===== App shell ===== */
.app{min-height:100%;background:#000}
.rail-glass{
  display:none;position:fixed;left:0;top:0;bottom:0;width:var(--rail-w);z-index:44;pointer-events:none;
  background:linear-gradient(155deg,#0b0c10,#14161c);
  backdrop-filter:blur(40px) saturate(180%);
  -webkit-backdrop-filter:blur(40px) saturate(180%);
  box-shadow:inset -.5px 0 0 rgba(255,255,255,.12),8px 0 32px rgba(0,0,0,.18);
}
.app.is-light .rail-glass{
  background:#f3f2f3;
  box-shadow:10px 0 28px rgba(30,20,40,.05);
}
.rail-logo{
  display:none;position:fixed;left:0;width:var(--rail-w);top:22px;height:44px;z-index:46;
  align-items:center;justify-content:center;color:#fff;text-decoration:none;
}
.app.is-light .rail-logo{color:#181022}
.wordmark-lockup{display:inline-flex;align-items:center;gap:8px;line-height:1}
.wordmark-lockup b{font-weight:800;font-size:20px;letter-spacing:0;font-variation-settings:"opsz" 96,"wdth" 100}
.wordmark-lockup svg{width:22px;height:22px}

/* Tab pill */
.tabbar{position:fixed;z-index:45}
.tabbar:not(:has(.tab.is-on)) .tab-bubble{display:none}
.pill{
  position:relative;display:grid;
  grid-template-columns:repeat(3,1fr);
  height:var(--tab-h);
  padding:6px;border-radius:999px;
  background:rgba(36,36,42,.44);
  backdrop-filter:var(--glass-blur);
  box-shadow:inset 0 0 0 .5px rgba(255,255,255,.2),inset 0 1px 0 rgba(255,255,255,.2),0 12px 32px rgba(0,0,0,.4);
}
.tab{
  position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:3px;color:rgba(255,255,255,.56);text-decoration:none;border-radius:999px;height:100%;
}
.tab.is-on{color:#fff}
.tab-ic{width:27px;height:27px;display:block}
.tab-icw{position:relative;display:grid;place-items:center}
.tab-l{font-size:10.5px;font-weight:600;letter-spacing:.01em}
.tab-bubble{
  position:absolute;top:6px;left:6px;width:calc((100% - 12px)/3);height:calc(100% - 12px);
  border-radius:999px;background:rgba(255,255,255,.17);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.2);
  transform:translateX(calc(var(--at,0) * 100%));
  transition:transform .55s var(--spring);
  pointer-events:none;
}
.tab-crown{position:absolute;top:-4px;right:-9px;width:13px;height:13px;color:#ffc857;filter:drop-shadow(0 1px 2px rgba(0,0,0,.55))}
.tab-prog{display:none}
.tabbar[data-watching] .tab.is-on .tab-prog{
  display:block;position:absolute;left:50%;top:50%;width:42px;height:42px;
  translate:-50% -50%;rotate:-90deg;pointer-events:none;
}
.tab-prog circle{fill:none;stroke-width:2.2}
.tab-prog .trk{stroke:rgba(255,255,255,.16)}
.tab-prog .bar{stroke:#fff;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:calc((1 - var(--prog,0)) * 100)}

@media (min-width:840px) and (min-height:480px) and (orientation:landscape){
  .rail-glass,.rail-logo{display:flex}
  .rail-logo{top:18px}
  .tabbar{
    left:calc((var(--rail-w) - 84px) / 2);right:auto;top:80px;bottom:auto;height:auto;
  }
  .pill{
    grid-template-columns:72px;
    grid-template-rows:repeat(3,var(--row));
    height:auto;background:rgba(209,205,216,.36);
    transition:grid-template-rows .55s cubic-bezier(.22,1.2,.36,1);
  }
  .tabbar[data-compact]{--row:56px}
  .tabbar[data-compact] .tab-l{opacity:0;max-height:0;overflow:hidden}
  .tabbar .tab{color:#383241}
  .tabbar .tab.is-on{color:#21182b}
  .tab-l{transition:opacity .25s,max-height .55s cubic-bezier(.22,1.2,.36,1);max-height:14px}
  .tab-bubble{
    width:calc(100% - 12px);height:var(--row);
    transform:translateY(calc(var(--at,0) * var(--row)));
    transition:transform .55s var(--spring),height .55s cubic-bezier(.22,1.2,.36,1);
  }
  .mobile-tabbar{display:none !important}
}
@media (width < 840px) or (height < 480px) or (orientation: portrait){
  .tabbar.rail-tabs{display:none !important}
  .mobile-tabbar{
    position:fixed;left:0;right:0;bottom:0;z-index:45;height:var(--tab-h);
    display:grid;grid-template-columns:repeat(3,1fr);
    padding:0 env(safe-area-inset-right,0px) var(--safe-bottom) env(safe-area-inset-left,0px);
    background:rgba(8,5,14,.94);backdrop-filter:blur(14px);
  }
  .mobile-tabbar .tab{color:rgba(255,255,255,.55)}
  .mobile-tabbar .tab.is-on{color:#fff}
  .app.is-light .mobile-tabbar{background:rgba(255,255,255,.94);color:#181022}
  .app.is-light .mobile-tabbar .tab{color:rgba(24,16,34,.45)}
  .app.is-light .mobile-tabbar .tab.is-on{color:#181022}
}

.app.is-light .pill{
  background:rgba(222,221,223,.55);
  box-shadow:inset 0 0 0 .5px rgba(255,255,255,.4),0 12px 32px rgba(40,20,60,.14);
}
.app.is-light .tab{color:rgba(24,16,34,.5)}
.app.is-light .tab.is-on{color:#181022}
.app.is-light .tab-bubble{background:rgba(24,16,34,.12)}

/* ===== HOME ===== */
.stage{
  position:fixed;inset:0;left:var(--rail-w);overflow:hidden;background:#000;
}
@media (min-width:840px) and (min-height:480px) and (orientation:landscape){
  html.pane-docked .stage{right:var(--pane-w)}
}
.backdrop{
  position:absolute;inset:-12%;background:#000 center/cover no-repeat;
  filter:blur(56px) saturate(.92) brightness(.69);
  transform:scale(1.2);
}
.backdrop::after{content:"";position:absolute;inset:0;background:rgba(0,0,0,.23)}
.backdrop[data-drama="exit-interview"]{inset:0;transform:none;filter:none;background-position:left center;background-size:calc(100vw - var(--rail-w)) 100%}
.backdrop[data-drama="exit-interview"]::after{background:none}
.feed{
  position:relative;z-index:1;height:100%;overflow-y:auto;scroll-snap-type:y mandatory;scrollbar-width:none;
}
.feed::-webkit-scrollbar{display:none}
.slide{
  position:relative;height:100%;scroll-snap-align:start;scroll-snap-stop:always;
  display:grid;place-items:center;
}
.frame{
  position:relative;
  width:min(100%, calc((var(--viewport-h) - 2 * var(--frame-gap)) * 9 / 16));
  aspect-ratio:9/16;
  border-radius:var(--frame-r);
  overflow:hidden;background:#111;
  box-shadow:0 0 0 .5px rgba(255,255,255,.08),0 20px 60px rgba(0,0,0,.4);
}
.frame img,.frame .still{
  width:100%;height:100%;object-fit:cover;display:block;
}
.chrome{position:absolute;inset:0;opacity:0;transition:opacity .2s ease;pointer-events:none;color:#fff}
.frame:focus-within .chrome,.frame.show-chrome .chrome{opacity:1;pointer-events:auto}
@media (hover:hover){.frame:hover .chrome{opacity:1;pointer-events:auto}}
.cap-drama{position:absolute;left:16px;top:16px;text-shadow:0 1px 8px rgba(0,0,0,.6);display:grid;gap:1px}
.cap-drama .t{font-weight:800;font-size:15px}
.cap-drama .e,.cap-drama .n,.cap-drama .tm{font-size:13px;font-weight:500;opacity:.92}
.ctrls-mid{
  position:absolute;left:50%;top:50%;translate:-50% -50%;
  display:flex;align-items:center;gap:16px;
}
.skipbtn,.playbtn{
  width:46px;height:46px;border-radius:50%;color:#fff;
  background:var(--glass);backdrop-filter:var(--glass-blur);
  box-shadow:inset 0 0 0 .5px var(--glass-line),inset 0 1px 0 var(--glass-hi),0 8px 24px rgba(0,0,0,.28);
  display:grid;place-items:center;
}
.playbtn{width:54px;height:54px}
.side-chrome{
  position:absolute;right:14px;bottom:82px;
  display:flex;flex-direction:column;gap:10px;
}
.side-chrome button{
  width:44px;height:44px;border-radius:50%;color:#fff;
  background:var(--glass);backdrop-filter:var(--glass-blur);
  box-shadow:inset 0 0 0 .5px var(--glass-line),0 8px 24px rgba(0,0,0,.28);
  display:grid;place-items:center;font-size:12px;font-weight:800;
}
.side-chrome button.is-on{color:#fff;background:rgba(255,61,110,.3);box-shadow:inset 0 0 0 2px var(--accent)}
.player-subtitles{
  position:absolute;z-index:5;right:68px;bottom:80px;width:min(220px,calc(100% - 80px));
  max-height:min(420px,calc(100% - 110px));overflow:auto;padding:8px;border-radius:16px;
  background:rgba(250,248,251,.97);color:#1a1222;box-shadow:0 10px 36px rgba(0,0,0,.25);
}
.player-subtitles strong{display:block;padding:5px 8px;font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:#6e6379}
.player-subtitles button{display:block;width:100%;padding:8px;border-radius:8px;text-align:left;font-weight:600}
.player-subtitles button:is(.is-on,:hover,:focus-visible){background:#ece8ef}
.player-subtitles button.is-on::after{content:"✓";float:right}
.frame:has(.player-subtitles:not([hidden])) .chrome{opacity:1;pointer-events:auto}
.scrubber{
  position:absolute;left:20px;right:20px;bottom:14px;height:18px;
  display:flex;align-items:center;touch-action:none;cursor:pointer;
}
.scrub-track{position:relative;width:100%;height:3px;background:rgba(255,255,255,.32);border-radius:99px}
.frame:hover .scrub-track,.frame.show-chrome .scrub-track{height:4px}
.scrub-fill{position:absolute;left:0;top:0;bottom:0;background:var(--accent);border-radius:99px}
.scrub-knob{
  position:absolute;top:50%;translate:-50% -50%;
  width:12px;height:12px;border-radius:50%;background:var(--accent);
  box-shadow:0 0 0 2px #fff0;
}
.scrub-tick{position:absolute;top:50%;width:2px;height:8px;translate:-50% -50%;background:rgba(255,255,255,.7);border-radius:1px;pointer-events:none}

/* side reel nav between frame and pane */
.reel-nav{
  display:none;position:fixed;z-index:8;
  top:50%;translate:0 -50%;
  flex-direction:column;gap:10px;
}
@media (min-width:840px) and (min-height:480px) and (orientation:landscape){
  .reel-nav{display:flex;right:calc(var(--pane-w) + 16px)}
  html:not(.pane-docked) .reel-nav{right:24px}
  .slide{padding-inline:72px}
}
.rn-btn{
  width:48px;height:48px;border-radius:50%;color:#fff;
  background:rgba(238,232,242,.27);backdrop-filter:var(--glass-blur);
  box-shadow:inset 0 0 0 .5px var(--glass-line),inset 0 1px 0 rgba(255,255,255,.14),0 8px 24px rgba(0,0,0,.3);
  display:grid;place-items:center;
}
#btn-episodes[aria-expanded="true"]{background:rgba(249,247,252,.94);color:#1a1222}

/* player status overlays */
.status-stack{position:absolute;left:50%;top:50%;translate:-50% -50%;display:grid;justify-items:center;gap:12px;z-index:6;pointer-events:none}
.buf-ring{width:64px;height:64px;position:relative;display:grid;place-items:center}
.buf-ring svg{position:absolute;inset:0;rotate:-90deg}
.buf-ring .pct{font-size:14px;font-weight:700;color:#fff;text-shadow:0 1px 6px #000}
.status-pill{
  display:grid;gap:2px;padding:8px 16px 9px;border-radius:16px;text-align:center;color:#fff;
  background:rgba(28,28,32,.62);backdrop-filter:blur(24px) saturate(180%);
  box-shadow:inset 0 0 0 .5px rgba(255,255,255,.16),0 10px 28px rgba(0,0,0,.35);
}
.status-pill b{font-size:13.5px;font-weight:700}
.status-pill small{font-size:11.5px;opacity:.85}
.upnext{
  display:none;position:absolute;left:14px;bottom:56px;z-index:7;
  align-items:center;gap:8px;padding:5px 6px 5px 8px;border-radius:999px;color:#fff;
  background:rgba(28,28,32,.62);backdrop-filter:blur(24px) saturate(180%);
  box-shadow:inset 0 0 0 .5px rgba(255,255,255,.16),0 10px 28px rgba(0,0,0,.35);
  pointer-events:auto;
}
.upnext.is-on{display:flex}
.upnext .k{font-size:10px;letter-spacing:.08em;font-weight:700;opacity:.75}
.upnext .v{font-size:13px;font-weight:700}

/* ===== Right pane ===== */
.panels{
  display:none;position:fixed;right:0;top:0;bottom:0;width:var(--pane-w);z-index:50;
  background:linear-gradient(135deg,#d6d0cb,#d2d3d5);color:#1a1222;color-scheme:light;
}
@media (min-width:840px) and (min-height:480px) and (orientation:landscape){
  html.pane-docked .panels{display:flex;flex-direction:column}
}
.panel-head{
  position:sticky;top:0;z-index:3;
  display:flex;align-items:center;gap:8px;
  padding:10px;
  background:linear-gradient(#e9e8ea,rgba(233,232,234,.92) 70%);
}
.panel-head h2{
  flex:1;margin:0;text-align:center;font-size:18px;font-weight:800;letter-spacing:-.02em;
  font-family:var(--font-display);
}
.page-back,.savebtn{
  width:40px;height:40px;border-radius:50%;display:grid;place-items:center;color:#1a1222;flex:none;
  background:rgba(24,16,34,.09);
}
.savebtn.is-on{color:var(--accent)}
.panel-body{flex:1;overflow-y:auto;padding:4px 16px 40px;scrollbar-width:thin;scrollbar-color:rgba(24,16,34,.16) transparent}
.section-t{
  margin:18px 0 10px;font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#6e6379;font-weight:600;
  display:flex;align-items:center;gap:6px;
}
.section-t em{font-style:normal;font-size:11px;letter-spacing:.04em;color:#9a93a3}
.eplist{display:grid;gap:6px;padding-bottom:32px}
.eprow{
  display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:12px;
  padding:10px 12px;min-height:56px;border-radius:16px;text-align:left;cursor:pointer;
  background:rgba(255,255,255,.26);
  box-shadow:inset 0 0 0 .5px rgba(255,255,255,.12);
  color:#1a1222;
}
.eprow:hover{background:rgba(24,16,34,.108)}
.eprow.is-current{box-shadow:inset 0 0 0 1.5px var(--accent);background:rgba(255,255,255,.5)}
.eprow .num{font-weight:800;font-size:18px;font-family:var(--font-display);font-variant-numeric:tabular-nums;font-variation-settings:"opsz" 48,"wdth" 94}
.eprow .t{font-size:15px;font-weight:600}
.eprow .d,.eprow .syn{font-size:12px;color:#6e6379;margin-top:1px}
.eprow .playing{font-size:11px;font-weight:700;color:var(--accent);padding-left:8px}
.ep-done{color:#766e7f;font-size:12px}
.dh-head{display:flex;align-items:center;gap:16px;padding:10px 0 0}
.dh-poster{flex:none;width:96px;aspect-ratio:3/4;border-radius:12px;overflow:hidden;background:#ddd;box-shadow:0 8px 24px rgba(40,20,60,.16)}
.dh-poster img{width:100%;height:100%;object-fit:cover}
.dh-id h1{margin:0;font-size:22px;font-weight:800;letter-spacing:-.02em;line-height:1.05;font-family:var(--font-display)}
.dh-meta{margin:6px 0 0;font-size:13px;color:#6e6379}
.dh-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.gchip{font-size:11px;padding:3px 8px;border-radius:999px;background:rgba(24,16,34,.08);color:#1a1222;font-weight:600}
.gchip.is-1{background:#1a1222;color:#fff}
.dh-langs{margin-top:6px;font-size:11px;color:#8a8390;letter-spacing:.02em}
.dh-hook{margin:16px 0 0;font-size:16px;font-weight:700;letter-spacing:-.01em;line-height:1.4}
.dh-syn{margin:8px 0 0;font-size:15px;line-height:1.5;color:rgba(24,16,34,.81)}
.dh-cast{display:flex;gap:14px;flex-wrap:wrap;margin:22px 0 38px}
.cast{display:grid;justify-items:center;gap:9px;width:120px;text-align:center}
.cast img{width:86px;height:86px;border-radius:50%;object-fit:cover;background:#ddd;padding:2px;border:2px solid transparent;background:linear-gradient(#ddd,#ddd) padding-box,linear-gradient(145deg,#ff3770,#ffae39,#9862ef) border-box}
.cast b{font-size:14px;font-weight:700}
.cast small{font-size:11px;color:#6e6379}
.dh-next-list{display:grid;gap:8px}
.dh-next-row{display:flex;align-items:center;gap:12px;padding:8px;border-radius:16px;background:rgba(24,16,34,.045);text-align:left;color:#1a1222}
.dh-next-row:hover{background:rgba(24,16,34,.09)}
.dh-next-img{flex:none;width:46px;aspect-ratio:9/16;border-radius:9px;overflow:hidden;background:#e8e6ea}
.dh-next-img img{width:100%;height:100%;object-fit:cover}
.dh-next-t b{font-size:14.5px;font-weight:700;display:block}
.dh-next-t small{font-size:12.5px;color:#6e6379}
.dh-foot{margin:22px 0 8px;font-size:11.5px;color:#8a8390;line-height:1.5}
.dh-foot a{text-decoration:underline;text-underline-offset:2px}

/* comments / keys */
.drawer,.modal-scrim{
  position:fixed;inset:0;z-index:80;background:rgba(0,0,0,.45);display:none;
}
.drawer.is-on,.modal-scrim.is-on{display:block}
.drawer-panel{
  position:absolute;right:0;top:0;bottom:0;width:min(420px,100%);background:#fff;color:#1a1222;
  box-shadow:-16px 0 40px rgba(0,0,0,.2);display:flex;flex-direction:column;
  animation:slide-in .35s cubic-bezier(.32,.72,0,1);
}
@keyframes slide-in{from{transform:translateX(24px);opacity:.6}}
.drawer-h{display:flex;align-items:center;justify-content:space-between;padding:16px 16px 10px}
.drawer-h h3{margin:0;font-size:18px;font-weight:800}
.drawer-x{width:36px;height:36px;border-radius:50%;background:rgba(24,16,34,.08);display:grid;place-items:center}
.modal-scrim.is-on{background:rgba(224,221,222,.42);backdrop-filter:blur(10px)}
.keys-card{
  position:absolute;left:50%;top:50%;translate:-50% -50%;
  width:min(440px,92vw);max-height:calc(var(--viewport-h) - 32px);overflow:auto;
  background:rgba(246,243,245,.91);color:#1a1222;backdrop-filter:blur(30px);
  border-radius:22px;padding:22px 24px;box-shadow:0 20px 60px rgba(0,0,0,.4);
}
.keys-card h3{margin:0 0 12px;font-size:18px}
.keys-row{display:grid;grid-template-columns:106px 1fr;align-items:center;gap:10px;padding:4px 0;font-size:14px}
.keys-row kbd{display:inline-grid;place-items:center;min-width:26px;height:23px;padding:0 5px;border-radius:5px;background:#e4e0e7;border:1px solid #d5d1d9;font-size:11px;margin-right:3px}

/* ===== Browse ===== */
.view{display:none;min-height:var(--viewport-h)}
.view.is-on{display:block}
.browse{
  background:#fff;color:#1a1222;min-height:var(--viewport-h);
  margin-left:var(--rail-w);padding-bottom:48px;
}
.br-top{
  position:relative;z-index:5;
  display:flex;align-items:center;justify-content:center;
  gap:10px;padding:18px 24px 0;
}
.br-seg{
  display:flex;align-items:center;background:rgba(250,249,252,.73);border-radius:999px;padding:3px;
  height:40px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.67),0 2px 18px rgba(30,21,43,.08);
}
.br-seg button{
  min-width:156px;height:34px;padding:0 18px;border-radius:999px;font-weight:700;font-size:14px;color:#5c5663;
}
.br-seg button.is-on{background:rgba(35,26,45,.2);color:#1a1222}
.br-ico{
  width:40px;height:40px;flex:none;border-radius:50%;background:#ecebed;display:grid;place-items:center;color:#1a1222;
}
.br-ico.is-on{background:#1a1222;color:#fff}

/* Hero */
.br-hero{position:relative;height:min(788px,74dvh);margin-top:-58px;overflow:hidden;background:linear-gradient(110deg,#dfdfdb,#d8d9d4 50%,#c1bab3)}
.br-hero-dormitory{background:url("../img/browse/featured-dormitory-left.jpg") left top / 50% 100% no-repeat,#d8d9d4}
.br-hero-bella{background:linear-gradient(110deg,#dfdcd9,#b5a89d 55%,#c3b4a7)}
.br-hero-img{position:absolute;inset:0 0 0 auto;width:67%;height:100%;object-fit:cover;object-position:center;mask-image:linear-gradient(90deg,transparent,#000 27%)}
.br-hero-poster .br-hero-img{object-position:center 22%}
.br-hero-fade{
  position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(255,255,255,.32),transparent 65%),
             linear-gradient(180deg,transparent 48%,rgba(255,255,255,.2) 63%,#fff 100%);
  pointer-events:none;
}
.br-hero-body{
  position:relative;z-index:2;height:100%;
  display:flex;flex-direction:column;justify-content:flex-end;
  padding:0 var(--page-gutter) clamp(24px,6dvh,60px);max-width:650px;
}
.br-hero-title{font-size:42px;line-height:1.05;letter-spacing:-.04em;margin:0 0 16px}
.br-hero-mark{margin:0 0 16px;line-height:1}
.br-hero-logo{width:auto;max-width:min(100%,70vw);max-height:clamp(80px,19dvh,195px);height:auto;filter:drop-shadow(0 5px 8px rgba(0,0,0,.18))}
.br-hero-meta{font-size:14px;font-weight:700;margin:0 0 8px}
.br-hero-syn{margin:0 0 18px;font-size:16px;line-height:1.5;color:#3b3540;max-width:565px}
.br-hero-cta{display:flex;align-items:center;gap:10px;margin-bottom:18px}
.btn-watch{
  display:inline-flex;align-items:center;gap:8px;
  height:50px;padding:0 24px;border-radius:999px;background:var(--accent);color:#fff;font-weight:700;font-size:16px;
}
.btn-watch:hover{background:#ff4d7a}
.br-hero-cta .bk{width:50px;height:50px;border-radius:50%;background:rgba(24,16,34,.12);display:grid;place-items:center}
.br-hero-nav{display:flex;align-items:center;gap:10px}
.hero-dashes{display:flex;gap:6px;align-items:center;flex:1;max-width:280px}
.hero-dashes i{height:3px;flex:1;background:rgba(24,16,34,.18);border-radius:99px}
.hero-dashes i.is-on{flex:2.2;background:#1a1222}
.hero-chevs{display:flex;gap:6px}
.hero-chevs button{width:32px;height:32px;border-radius:50%;background:rgba(24,16,34,.12);display:grid;place-items:center}

/* Quick picks */
.chips{
  display:flex;gap:8px;overflow-x:auto;padding:8px var(--page-gutter) 6px;scrollbar-width:none;
}
.chips::-webkit-scrollbar{display:none}
.chip{
  flex:none;display:inline-flex;align-items:center;gap:6px;
  height:34px;padding:0 12px;border-radius:999px;
  background:#f1eef2;color:#1a1222;font-size:13.5px;font-weight:650;white-space:nowrap;
}
.chip em{font-style:normal;font-size:12px;color:#8a8390;font-weight:600}
.chip.is-on{background:#1a1222;color:#fff}
.chip.is-on em{color:rgba(255,255,255,.7)}

/* Shelves */
.shelf{padding:18px 0 8px var(--page-gutter)}
.top10{padding-top:24px}
.top10 .shelf-h{margin-bottom:24px}
.shelf-h{display:flex;align-items:baseline;justify-content:space-between;padding-right:var(--page-gutter);margin-bottom:12px}
.shelf-h h2{margin:0;font-size:18px;font-weight:800;letter-spacing:-.02em}
.seeall{font-size:13.5px;color:#6e6379;font-weight:600}
.shelf-row{display:flex;gap:18px;overflow-x:auto;padding:0 var(--page-gutter) 10px 0;scrollbar-width:none;scroll-snap-type:x proximity}
.shelf-row::-webkit-scrollbar{display:none}
.pcard{flex:none;width:215px;color:#1a1222;text-align:left;scroll-snap-align:start;position:relative}
.pcard .poster{
  position:relative;width:100%;aspect-ratio:215/287;border-radius:16px;overflow:hidden;background:#ecebed;
}
.pcard .poster img{width:100%;height:100%;object-fit:cover}
.pcard .name{margin:8px 0 0;font-size:13.5px;font-weight:700;line-height:1.25}
.pcard .meta{margin:2px 0 0;font-size:12.5px;color:#6e6379}
.badge-new{
  position:absolute;left:8px;top:8px;z-index:2;
  background:#fff;color:#1a1222;font-size:10px;font-weight:800;letter-spacing:.04em;
  padding:3px 7px;border-radius:999px;
}
.badge-ep{
  position:absolute;left:8px;top:8px;z-index:2;
  background:rgba(20,16,24,.72);color:#fff;font-size:10.5px;font-weight:700;
  padding:3px 7px;border-radius:999px;backdrop-filter:blur(8px);
}
.p-save{
  position:absolute;right:8px;top:8px;z-index:2;opacity:0;
  width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.92);
  display:grid;place-items:center;color:#1a1222;transition:opacity .15s;
}
.pcard .poster:hover .p-save,.pcard .poster:focus-within .p-save,.p-save.is-on{opacity:1}
@media (hover:none){.p-save{opacity:1}}
.chili{font-size:12px}

/* Top 10 */
.top10 .pcard{width:215px}
.t10{position:relative;flex:none;width:268px;padding-left:48px}
.t10 .rank{
  position:absolute;left:-4px;bottom:42px;z-index:0;
  font-size:148px;font-weight:800;line-height:.8;letter-spacing:-.08em;
  color:#f0eef2;font-family:var(--font-display);pointer-events:none;
  -webkit-text-stroke:0;
}
.t10 .pcard{position:relative;z-index:1}

/* Continue watching compact */
.cw{display:flex;gap:16px;padding:0 var(--page-gutter) 3px 0;overflow-x:auto;scrollbar-width:none}
.cw-card{
  display:flex;align-items:center;gap:12px;padding:8px 14px 8px 8px;flex:none;
  background:#fff;border:1px solid #ece9ee;border-radius:16px;width:min(236px,100%);text-align:left;color:#1a1222;
}
.cw-card img{width:48px;height:64px;flex:none;border-radius:8px;object-fit:cover}
.cw-card b{display:block;font-size:14px}
.cw-card small{color:#6e6379;font-size:12.5px}

/* Meet the cast */
.cast-row{display:flex;gap:18px;overflow-x:auto;padding-right:var(--page-gutter);scrollbar-width:none}
.cast-row::-webkit-scrollbar{display:none}
.mcast{flex:none;width:92px;text-align:center;color:#1a1222}
.mcast img{width:80px;height:80px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px #fff,0 0 0 3.5px rgba(255,61,110,.7);margin:0 auto}
.mcast b{display:block;margin-top:8px;font-size:12.5px;font-weight:700}
.mcast small{font-size:11.5px;color:#6e6379}
.cast-more{
  flex:none;width:80px;height:80px;border-radius:50%;background:#f1eef2;display:grid;place-items:center;align-self:start;color:#1a1222;
}

/* Comedy text cards */
.text-row{display:flex;gap:12px;overflow-x:auto;padding-right:var(--page-gutter);scrollbar-width:none}
.text-row::-webkit-scrollbar{display:none}
.tcard{
  display:flex;align-items:flex-start;gap:12px;
  flex:none;width:440px;min-height:128px;border-radius:18px;background:#fff;border:1px solid #efebf1;
  padding:10px;text-align:left;color:#1a1222;position:relative;
}
.tcard img{width:84px;height:112px;object-fit:cover;border-radius:10px;flex:none}
.story-copy{flex:1;min-width:0;padding:6px 25px 0 0}
.tcard b{display:block;font-size:15px;font-weight:800;margin-bottom:6px}
.tcard p{margin:0 0 10px;font-size:13.5px;color:#4a4450;line-height:1.4}
.tcard .chips-mini{display:flex;flex-wrap:wrap;gap:6px}
.tcard .gchip{background:#ecebed;font-size:11px}
.tcard .meta{margin-top:10px;font-size:12.5px;color:#6e6379}
.tcard .bk{position:absolute;right:12px;top:12px;color:#9a93a3}

/* All 204 grid */
.all-h{display:flex;align-items:center;justify-content:space-between;padding:22px var(--page-gutter) 8px}
.all-h h2{margin:0;font-size:18px;font-weight:800}
.sorts{display:flex;flex-wrap:wrap;gap:8px;padding:4px var(--page-gutter) 16px}
.sorts button{
  height:30px;padding:0 12px;border-radius:999px;background:#f1eef2;font-size:13px;font-weight:650;color:#1a1222;
}
.sorts button.is-on{background:#1a1222;color:#fff}
.grid-204{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:18px 16px;
  padding:0 var(--page-gutter) 80px;
}
.grid-204 .pcard{width:100%;max-width:240px}

/* Actors tab */
.actors-page{padding:10px var(--page-gutter) 80px}
.actors-page .chips{margin:0 0 28px;padding-right:0}
.agrid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,142px),1fr));gap:29px 18px;
}
.acell{text-align:center;color:#1a1222}
.acell img{width:100%;aspect-ratio:1;border-radius:33px;object-fit:cover;background:#ecebed}
.acell b{display:block;margin-top:8px;font-size:13.5px;font-weight:600}
.acell:hover img{box-shadow:0 0 0 2px var(--accent)}
.actor-profile{padding:14px 16px 36px}
.actor-head{display:flex;align-items:center;gap:16px}
.actor-head img{width:90px;height:90px;flex:none;object-fit:cover;border:2px solid var(--accent);border-radius:50%;padding:2px}
.actor-head h2{font-size:24px;margin:0 0 3px}
.actor-head p,.actor-head small,.actor-profile>p{color:#6e6379}
.actor-head p{margin:0 0 5px}
.actor-profile>p{line-height:1.5}
.actor-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:20px}
.actor-actions button{display:grid;position:relative;place-content:center;justify-items:center;gap:4px;min-height:64px;border-radius:14px;background:#e5e2e8;font-size:13px;font-weight:700}
.actor-actions button:disabled{color:#706779;cursor:default}
.actor-actions em{position:absolute;left:50%;top:0;translate:-50% -50%;background:#ffd57a;color:#342318;padding:2px 5px;border-radius:9px;font-size:10px;font-style:normal}
.actor-drama{display:flex;gap:12px;align-items:center;padding:10px;border-radius:14px;background:#fff;margin-bottom:8px}
.actor-drama img{width:58px;height:90px;object-fit:cover;border-radius:9px}
.actor-drama small{display:block;color:#6e6379;margin-top:3px}
.actor-clip img{width:105px;aspect-ratio:9/16;object-fit:cover;border-radius:12px}

/* Filters drawer */
.filters-panel{width:min(436px,100%);background:#fff;color:#1a1222}
.f-search{height:40px;border-radius:999px;background:#f3f0f5;border:0;padding:0 16px 0 40px;width:100%;color:#1a1222}
.f-wrap{position:relative;margin:0 16px 12px}
.f-wrap svg{position:absolute;left:13px;top:11px;color:#8a8390;pointer-events:none}
.f-body{flex:1;overflow-y:auto;padding:0 16px 24px}
.f-sec{margin:16px 0 6px;font-size:11px;letter-spacing:.1em;font-weight:700;color:#8a8390}
.f-chips{display:flex;flex-wrap:wrap;gap:8px}
.f-chips button,.fchip{
  height:32px;padding:0 11px;border-radius:999px;background:#f3f0f5;font-size:13px;font-weight:600;color:#1a1222;
  display:inline-flex;align-items:center;gap:6px;
}
.f-chips button.is-on,.fchip.is-on{background:#1a1222;color:#fff}
.f-chips button.is-excluded,.fchip.is-excluded{background:#ffe5eb;color:#922745;text-decoration:line-through}
.f-chips button em,.fchip em{font-style:normal;font-size:11.5px;color:#8a8390}
.f-chips button.is-on em,.fchip.is-on em{color:rgba(255,255,255,.7)}
.f-tog{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 12px}
.f-tog label{display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 12px;border-radius:999px;background:#f3f0f5;font-size:13.5px;font-weight:600}
.f-hint{margin:12px 0;font-size:12px;color:#8a8390}
.f-foot{
  position:sticky;bottom:0;display:flex;gap:10px;padding:12px 16px 16px;
  background:#fff;box-shadow:0 -8px 20px rgba(255,255,255,.8);
}
.f-foot .reset{flex:none;height:46px;padding:0 18px;border-radius:999px;background:#f3f0f5;font-weight:700;color:#b0abb4}
.f-foot .reset.is-on{color:#1a1222}
.f-foot .show{flex:1;height:46px;border-radius:999px;background:var(--accent);color:#fff;font-weight:700;font-size:15px}
.favat{width:18px;height:18px;border-radius:50%;object-fit:cover}

/* Search overlay */
.search-ov{
  position:fixed;inset:0;z-index:70;background:#fff;color:#1a1222;
  margin-left:var(--rail-w);overflow-y:auto;display:none;
}
.search-ov.is-on{display:block}
.search-tabs{padding-top:18px}
.search-bar-wrap{display:flex;justify-content:center;padding:12px var(--page-gutter) 8px;gap:10px;align-items:center}
.search-field{position:relative;flex:0 1 640px;min-width:0}
.search-field svg{position:absolute;left:16px;top:13px;color:#8a8390;pointer-events:none}
.search-input{width:100%;height:44px;border:0;border-radius:12px;padding:0 18px 0 44px;background:#eeebf0;color:#1a1222;font-size:15px}
.s-sec{padding:16px var(--page-gutter) 8px}
.s-sec h4{margin:0 0 10px;font-size:11px;letter-spacing:.1em;color:#8a8390;font-weight:700}
.trend{display:flex;flex-wrap:wrap;gap:8px}
.trend button{height:32px;padding:0 12px;border-radius:999px;background:#f3f0f5;font-weight:600;font-size:13.5px}
.for-you{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));gap:14px;max-width:1090px}
.for-you img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:16px}
.search-grid{padding:0 0 36px}

/* ===== Account ===== */
.account{
  min-height:var(--viewport-h);
  background:#f4f1f7;color:#1a1222;
  margin-left:var(--rail-w);
  display:flex;flex-direction:column;align-items:center;
  padding:28px 24px 40px;
}
.acc-col{width:min(688px,100%)}
.acc-head{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;margin-bottom:22px}
.acc-av{
  width:60px;height:60px;border-radius:50%;
  background:linear-gradient(145deg,#ff5772,#a029b5);
  border:2px solid #fff;outline:2px solid #ec548d;
  color:#fff;font-weight:800;font-size:24px;display:grid;place-items:center;
}
.acc-head h1{margin:0;font-size:26px;letter-spacing:-.03em;font-weight:800}
.acc-prem-badge{display:inline-flex;align-items:center;gap:4px;color:#c9a227;font-weight:700;font-size:13px;margin-top:2px}
.acc-gear{width:44px;height:44px;border-radius:50%;background:rgba(24,16,34,.08);display:grid;place-items:center}
.acc-sec-h{display:flex;align-items:baseline;justify-content:space-between;margin:0 0 10px}
.acc-sec-h h2{margin:0;font-size:16px;font-weight:800}
.acc-sec-h a{font-size:13.5px;color:#6e6379;font-weight:600}

.cw-acc{
  display:flex;align-items:center;gap:14px;padding:10px 14px;
  background:#e6e2ea;border-radius:22px;margin-bottom:12px;
}
.cw-acc img{width:72px;height:128px;flex:none;border-radius:10px;object-fit:cover}
.cw-acc .mid{flex:1;min-width:0}
.cw-acc b{display:block;font-size:16px}
.cw-acc small{color:#6e6379;font-size:13px}
.progress-segments{display:flex;gap:3px;margin:8px 0 6px}
.progress-segments i{height:4px;flex:1;background:#c6c0cb;border-radius:99px}
.progress-segments .is-done{background:#1a1222}
.play-pink{width:48px;height:48px;border-radius:50%;background:linear-gradient(#ff668a,#eb124d);box-shadow:0 7px 20px #ff3d6e52;color:#fff;display:grid;place-items:center;flex:none}
.cw-recent{display:flex;gap:10px;margin-bottom:30px}
.cw-recent a{width:104px;font-size:13px;line-height:1.2}
.cw-recent img{width:100%;aspect-ratio:9/16;object-fit:cover;border-radius:12px;margin-bottom:6px}

.prem-card{
  border-radius:22px;padding:16px 18px 14px;margin:0 0 18px;
  background:radial-gradient(ellipse at top right,#f3abc4,transparent 62%),radial-gradient(ellipse at bottom left,#d3c3f2,transparent 49%),#e7e2ec;
  position:relative;overflow:hidden;
}
.prem-top{display:flex;justify-content:space-between;align-items:center}
.prem-lab{display:flex;align-items:center;gap:6px;color:#9a7a18;font-weight:800;font-size:12px;letter-spacing:.1em}
.prem-active{display:flex;align-items:center;gap:6px;color:#1f8a4c;font-weight:700;font-size:13px}
.dot-g{width:7px;height:7px;border-radius:50%;background:#22a555}
.prem-count{display:flex;align-items:flex-end;gap:6px;margin:8px 0 10px;font-variant-numeric:tabular-nums}
.prem-count .n{font-size:26px;font-weight:800;letter-spacing:-.03em;line-height:1;font-family:var(--font-display)}
.prem-count .col{font-size:18px;font-weight:700;opacity:.55;padding-bottom:10px}
.prem-count .u{font-size:11px;color:#6e6379;font-weight:600;margin-top:2px}
.prem-count .block{display:grid;justify-items:center}
.prem-bar{height:3px;border-radius:99px;background:linear-gradient(90deg,#ffc44e,#ff3d6e);margin:0 0 8px}
.prem-foot{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:#6e6379}
.prem-foot .buy{font-weight:650;color:#4a4450;border-radius:999px;background:rgba(24,16,34,.06);padding:5px 9px;text-align:right}

.bm-h{display:flex;align-items:center;justify-content:space-between;margin:4px 0 8px}
.bm-h h2{margin:0;font-size:16px;font-weight:800}
.bm-seg{display:flex;background:rgba(24,16,34,.08);border-radius:999px;padding:3px}
.bm-seg button{height:28px;padding:0 12px;border-radius:999px;font-size:13px;font-weight:700;color:#6e6379}
.bm-seg button.is-on{background:#5b555e;color:#fff}
.bm-empty{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  background:#e7e3eb;border-radius:18px;padding:14px 14px;color:#6e6379;margin-bottom:28px;
}
.bm-empty span{display:flex;align-items:center;gap:8px}
.bm-empty button{height:34px;padding:0 14px;border-radius:999px;background:#fff;font-weight:700;font-size:13.5px;color:#1a1222}

.acc-list{background:#e7e3ec;border-radius:20px;overflow:hidden;margin-bottom:28px}
.acc-row{
  display:flex;align-items:center;gap:12px;width:100%;padding:14px 16px;text-align:left;color:#1a1222;
  border-bottom:1px solid rgba(24,16,34,.06);
}
.acc-row:last-child{border-bottom:0}
.acc-row b{flex:1;font-size:15px}
.acc-row .n{color:#6e6379;font-weight:700;margin-right:6px}
.acc-row .go{color:#b0abb4}
.acc-row .who{flex:1;display:grid}
.acc-row .who b{display:flex;align-items:center;gap:6px;font-size:14.5px}
.acc-row .who small{color:#6e6379;font-size:12.5px}
.acc-row img.chloe{width:36px;height:36px;border-radius:50%;object-fit:cover}

.acc-foot{text-align:center;color:#8a8390;font-size:13px;line-height:1.7;padding:8px 0 20px}
.acc-foot .crypto{margin-bottom:16px}
.acc-foot a{text-decoration:underline;text-underline-offset:2px}
.legal-nav{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 0;margin:8px 0}
.legal-nav a{padding:0 8px;text-decoration:none}
.legal-nav a + a{border-left:0}
.legal-nav{color:#6e6379}
.copy-fine{font-size:11.5px;color:#9a93a3;margin-top:8px}

/* Settings drawer */
.settings-panel{width:min(440px,100%);background:#f0eff1;color:#1a1222;color-scheme:light}
.set-sec{margin:8px 16px 4px;font-size:11px;letter-spacing:.1em;font-weight:700;color:#8a8390}
.set-card{margin:0 16px 14px;background:#efeaf2;border-radius:18px;overflow:hidden}
.set-row{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;gap:10px;min-height:48px}
.set-row + .set-row{border-top:1px solid rgba(24,16,34,.05)}
.set-row .k{color:#6e6379;font-weight:600;font-size:14px}
.set-row .v{font-weight:700;font-size:14px;display:flex;align-items:center;gap:8px}
.set-hint{margin:0 22px 16px;font-size:12.5px;color:#8a8390;line-height:1.45}
.change{color:var(--accent);font-weight:700;font-size:14px}
.status-on{color:#1f8a4c;font-weight:700}
.set-select{
  display:inline-flex;align-items:center;gap:8px;width:min(160px,48%);height:32px;padding:0 12px;border:0;border-radius:999px;
  background:#dedce0;color:#1a1222;font-weight:700;font-size:13.5px;
}
.sw{
  width:44px;height:26px;border-radius:999px;background:#d9d4db;position:relative;transition:background .2s;
}
.sw i{position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:left .2s;box-shadow:0 1px 4px rgba(0,0,0,.2)}
.sw.is-on{background:var(--accent)}
.sw.is-on i{left:21px}
.signout{
  margin:8px 16px 24px;height:48px;width:calc(100% - 32px);
  border-radius:16px;background:#efeaf2;color:var(--accent);font-weight:700;
  display:flex;align-items:center;justify-content:center;gap:8px;
}
/* Watched */
.watched{background:#fff;color:#1a1222;min-height:var(--viewport-h);margin-left:var(--rail-w);padding:28px var(--page-gutter)}
.history-col{max-width:688px;margin-inline:auto}
.history-title{display:flex;align-items:center;gap:12px}
.history-title h1{font-size:25px;margin:0}
.history-title .page-back{font-size:28px;line-height:1}
.history-row{display:flex;align-items:center;gap:6px;margin-bottom:14px}
.history-row>a{display:flex;flex:1;min-width:0;align-items:center;gap:14px}
.history-row img{width:54px;height:96px;object-fit:cover;border-radius:12px;flex:none}
.history-row a>span{width:min(220px,100%);min-width:0}
.history-row b,.history-row small{display:block;margin-bottom:5px}
.history-row small,.history-row time{color:#756d80;font-size:13px}
.history-row time{white-space:nowrap}
.history-progress{display:block;height:3px;background:#e7e3e9;border-radius:99px}
.history-row .drawer-x{flex:none}
.premium-body h2{font-size:22px;margin:10px 0 14px}
.premium-plans{display:grid;gap:10px}
.premium-plan{display:flex;align-items:center;gap:14px;min-height:66px;padding:10px 16px;border-radius:18px;background:#fff;text-align:left}
.premium-plan:hover{box-shadow:inset 0 0 0 1px #e0d6e4}
.premium-plan strong,.premium-plan small{display:block}
.premium-plan small{color:#6e6379;font-size:13px;margin-top:3px}
.plan-price{margin-left:auto;text-align:right}
.plan-price b{font-size:22px}
.premium-plan .plan-badge{background:#d9f2e4;color:#147d57;border-radius:99px;padding:1px 8px}
.premium-plan:last-child .plan-badge{background:#ffcc65;color:#38280e}
.premium-plan i{font-style:normal;color:#7f748b;font-size:21px}
.premium-close{display:block;margin:32px auto;color:#6e6379;text-decoration:underline}
#actor-panel,#premium-panel{background:#f0eff1}
.docked-drawer .drawer-h{position:relative;justify-content:center;min-height:60px;background:#e9e7eb}
.docked-drawer .drawer-x{position:absolute;right:10px}
@media (min-width:840px) and (min-height:480px) and (orientation:landscape){
  .docked-drawer{left:auto;width:var(--pane-w);background:transparent}
  .docked-drawer .drawer-panel{width:100%;box-shadow:-8px 0 24px rgba(35,20,42,.1)}
  html:has(#actor-drawer.is-on) .browse{margin-right:var(--pane-w)}
  html:has(#settings-drawer.is-on,#premium-drawer.is-on) .account{margin-right:var(--pane-w)}
}

/* Bottom navigation and reel controls share the space below the player. */
@media (width < 840px) or (height < 480px) or (orientation: portrait){
  :root{--page-gutter:max(clamp(16px,4vw,32px),env(safe-area-inset-left,0px),env(safe-area-inset-right,0px));--frame-gap:8px;--reel-tools-h:50px}
  .stage{top:var(--safe-top);bottom:calc(var(--tab-h) + var(--reel-tools-h))}
  .slide{padding-inline:max(8px,env(safe-area-inset-left,0px)) max(8px,env(safe-area-inset-right,0px))}
  .frame{width:min(100%, calc((var(--viewport-h) - var(--safe-top) - var(--tab-h) - var(--reel-tools-h) - 2 * var(--frame-gap)) * 9 / 16))}
  .reel-nav{display:flex;flex-direction:row;justify-content:center;align-items:center;inset:auto 0 var(--tab-h);height:var(--reel-tools-h);translate:none}
  .reel-nav .rn-btn{width:44px;height:44px}
  #btn-pip,#btn-keys{display:none}
  .panels.is-open{display:flex;flex-direction:column;width:min(440px,100%);padding-top:var(--safe-top);padding-bottom:var(--safe-bottom);box-shadow:-16px 0 40px rgba(0,0,0,.3)}
  .cap-drama{right:12px;left:12px}
  .ctrls-mid{gap:8px}
  .ctrls-mid .skipbtn{width:clamp(24px,8dvh,44px);height:auto;aspect-ratio:1}
  .ctrls-mid .playbtn{width:clamp(30px,10dvh,54px);height:auto;aspect-ratio:1}
  .side-chrome{right:50%;top:auto;bottom:34px;translate:50% 0;flex-direction:row;gap:3px}
  .side-chrome button{width:clamp(22px,7dvh,40px);height:auto;aspect-ratio:1}
  .player-subtitles{right:12px;bottom:76px;width:min(220px,calc(100% - 24px))}
  .upnext{bottom:76px;right:8px;left:8px;width:fit-content;max-width:calc(100% - 16px)}
  .browse,.account,.watched{padding-bottom:calc(var(--tab-h) + 16px)}
  .br-hero{height:auto;min-height:clamp(300px,60dvh,520px);margin-top:0;display:flex}
  .br-hero-body{height:auto;min-width:0;padding-top:clamp(48px,18dvh,168px);padding-bottom:20px}
  .br-hero-img{width:100%;mask-image:none;object-position:center top}
  .br-hero-fade{background:linear-gradient(180deg,transparent 22%,rgba(255,255,255,.82) 66%,#fff 98%)}
  .br-hero-title{font-size:clamp(26px,5vw,42px)}
  .br-top{gap:8px;padding:calc(var(--safe-top) + 12px) var(--page-gutter) 10px}
  .br-seg button{min-width:0;padding-inline:clamp(12px,4vw,18px)}
  .grid-204{grid-template-columns:repeat(auto-fill,minmax(min(100%,128px),1fr));padding-bottom:16px;gap:12px}
  .actors-page{padding-top:12px;padding-bottom:24px}
  .actors-page .chips{margin-bottom:12px}
  .agrid{grid-template-columns:repeat(auto-fill,minmax(min(100%,84px),1fr));gap:14px}
  .acell img{border-radius:18px}
  .search-bar-wrap{padding-top:calc(var(--safe-top) + 12px)}
  .search-grid{padding-inline:0}
  .search-ov{padding-bottom:var(--safe-bottom)}
  .account{padding:calc(var(--safe-top) + 22px) var(--page-gutter) calc(var(--tab-h) + 16px)}
  .acc-head h1{font-size:clamp(21px,5.8vw,26px)}
  .prem-count .n{font-size:clamp(23px,6.5vw,26px)}
  .prem-foot{gap:8px}
  .drawer-panel{padding-top:var(--safe-top);padding-bottom:var(--safe-bottom)}
}
@media (height < 480px){
  .cap-drama{top:8px}
  .cap-drama .n,.cap-drama .tm{display:none}
  .cap-drama .t{font-size:13px}
  .scrubber{bottom:6px;left:10px;right:10px}
  .side-chrome{bottom:26px}
}
@media (width < 480px){
  .shelf-row,.cast-row{gap:12px}
  .shelf-row .pcard{width:clamp(124px,42vw,176px)}
  .t10{width:auto;padding-left:34px}
  .t10 .rank{font-size:104px}
  .tcard{width:min(320px,calc(100% - var(--page-gutter)))}
  .cw-acc{gap:10px}
  .cw-acc img{width:54px;height:72px}
  .history-row img{height:76px;width:43px}
  .history-row>a{gap:8px}
  .history-row b{font-size:14px}
  .eprow{grid-template-columns:24px minmax(0,1fr) auto;gap:8px}
  .br-hero-logo{margin-left:0}
}

.skipbtn{position:relative}
.skipbtn span{position:absolute;left:50%;top:50%;translate:-50% -50%;font-size:8px;font-weight:800;pointer-events:none}
