/* Cinematic UI 3.0; scoped to the public document, never the admin shell. */
html[data-cx402]{--cx402-accent:#f5b942;--cx402-rgb:245,185,66;--cx402-ink:#15120a;--cx402-deep:#090d16;--cx402-panel:#192133;--cx402-edge:#35445b;--cx402-halo:#56401e;--cx402-light:#795000;--cx-gold:var(--cx402-accent);--cx-accent:var(--cx402-accent);--bs-warning-rgb:var(--cx402-rgb)}
html[data-cx402-theme=red]{--cx402-accent:#ff626d;--cx402-rgb:255,98,109;--cx402-deep:#100a0e;--cx402-panel:#25191e;--cx402-edge:#51333e;--cx402-halo:#662832;--cx402-light:#b41436}
html[data-cx402-theme=purple]{--cx402-accent:#b6a0ff;--cx402-rgb:182,160,255;--cx402-deep:#0d0918;--cx402-panel:#211a35;--cx402-edge:#48385e;--cx402-halo:#503779;--cx402-light:#6438b3}
html[data-cx402-theme=blue]{--cx402-accent:#55caff;--cx402-rgb:85,202,255;--cx402-deep:#070e1c;--cx402-panel:#14243d;--cx402-edge:#294866;--cx402-halo:#195177;--cx402-light:#08658b}
html[data-cx402-theme=green]{--cx402-accent:#45dfa7;--cx402-rgb:69,223,167;--cx402-deep:#071311;--cx402-panel:#142b25;--cx402-edge:#32554a;--cx402-halo:#1d5c49;--cx402-light:#087353}
html[data-cx402][data-bs-theme=dark]{--bs-body-bg:var(--cx402-deep);--bs-body-color:#f8fafc;--bs-secondary-color:#aab6c9;--bs-tertiary-bg:var(--cx402-panel);--bs-border-color:var(--cx402-edge);--cx-card:var(--cx402-panel);--cx-top:var(--cx402-deep)}
html[data-cx402][data-bs-theme=light]{--cx-accent:var(--cx402-light);--bs-warning-rgb:var(--cx402-rgb)}
html[data-cx402] .text-warning,html[data-cx402] .btn-warning{--bs-warning-rgb:var(--cx402-rgb)}
html[data-cx402][data-bs-theme=light] .cx-main .text-warning{color:var(--cx402-light)!important}
html[data-cx402] .btn-warning{--bs-btn-bg:var(--cx402-accent);--bs-btn-border-color:var(--cx402-accent);--bs-btn-color:var(--cx402-ink);--bs-btn-hover-bg:var(--cx402-accent);--bs-btn-hover-border-color:var(--cx402-accent);--bs-btn-hover-color:var(--cx402-ink);--bs-btn-active-bg:var(--cx402-accent);--bs-btn-active-border-color:var(--cx402-accent);--bs-btn-active-color:var(--cx402-ink);--bs-btn-focus-shadow-rgb:var(--cx402-rgb)}
html[data-cx402] .btn-outline-warning{--bs-btn-color:var(--cx-accent);--bs-btn-border-color:var(--cx-accent);--bs-btn-hover-color:var(--cx402-ink);--bs-btn-hover-bg:var(--cx402-accent);--bs-btn-hover-border-color:var(--cx402-accent)}
html[data-cx402] .cx-card{border-radius:15px}html[data-cx402] .cx-title{letter-spacing:-.012em}html[data-cx402] .cx-hl{font-weight:750;letter-spacing:-.025em}
html[data-cx402-hero] .cx-hero{height:clamp(420px,70svh,740px);isolation:isolate}html[data-cx402-hero] .cx-hero-info{bottom:16%;max-width:min(43rem,85vw)}
html[data-cx402-hero] .cx-hero-shade{background:linear-gradient(0deg,var(--cx402-deep),#080b138f 43%,transparent 88%),linear-gradient(90deg,#080b13b8,transparent 88%)}
html[data-cx402-hero] .cx-featured{color:var(--cx402-accent);letter-spacing:.15em;text-transform:uppercase}
html[data-cx402-hero] .cx-hero-info h1{font-size:clamp(2rem,5vw,5.3rem);letter-spacing:-.05em;max-width:14ch;overflow-wrap:anywhere}
.cx402-hero-thumbs{position:absolute;right:4rem;bottom:2.6rem;display:flex;gap:6px;z-index:3;max-width:45%;overflow:auto;padding:4px;scrollbar-width:thin}.cx402-hero-thumbs button{padding:0;border:2px solid transparent;border-radius:8px;overflow:hidden;flex:0 0 66px;background:transparent;opacity:.7;aspect-ratio:16/9}.cx402-hero-thumbs img{width:100%;height:100%;object-fit:cover;display:block}.cx402-hero-thumbs button.active,.cx402-hero-thumbs button:focus-visible{border-color:var(--cx402-accent);opacity:1}
@media(min-width:768px){html[data-cx402-hero] .cx-hero-shade{background:linear-gradient(90deg,#090c14fa 0%,#090c1499 38%,transparent 82%),linear-gradient(0deg,var(--cx402-deep),transparent 50%)}html[data-cx402-hero] .cx-hero-info{left:clamp(1.5rem,4vw,4rem);bottom:16%}}
@media(max-width:767.98px){.cx402-hero-thumbs{right:1rem;left:1rem;max-width:none;bottom:2.1rem;justify-content:flex-start}.cx402-hero-thumbs button{flex-basis:50px}html[data-cx402-hero] .cx-hero-info{bottom:7rem;max-width:100%}html[data-cx402-hero] .cx-hero{height:clamp(470px,76svh,650px)}}
/* Quick-view controls never overlap the existing watchlist button or episode badge. */
.cx402-quick{display:flex;align-items:center;justify-content:center;gap:.35rem;width:calc(100% - 1.1rem);margin:0 .55rem .55rem;border:1px solid var(--bs-border-color);color:var(--bs-body-color);background:var(--bs-tertiary-bg);font-size:.75rem;min-height:30px}.cx402-quick:hover,.cx402-quick:focus-visible{color:var(--cx-accent);border-color:var(--cx-accent)}
.cx402-dialog{color:var(--bs-body-color);background:var(--bs-body-bg);border:1px solid var(--bs-border-color);border-radius:20px;padding:0;width:min(680px,calc(100% - 24px));max-height:88dvh;overflow:auto;box-shadow:0 30px 100px #0009}.cx402-dialog::backdrop{background:#000b;backdrop-filter:blur(7px)}.cx402-dialog img.cx402-preview-art{width:100%;aspect-ratio:16/9;object-fit:cover;display:block;background:var(--cx-card)}.cx402-dialog-close{margin:.8rem .8rem 0 auto;display:block;min-width:42px;min-height:36px}.cx402-dialog-body{padding:clamp(1rem,4vw,2rem)}.cx402-dialog-body p{overflow-wrap:anywhere}.cx402-dialog-actions{display:flex;flex-wrap:wrap;gap:.6rem}.cx402-dialog-actions>*{min-height:42px}.cx402-dialog-meta{color:var(--bs-secondary-color);font-size:.9rem}.cx402-dialog-title{font-size:clamp(1.4rem,4vw,2.3rem);font-weight:800;letter-spacing:-.03em;overflow-wrap:anywhere}
/* The existing search form and handlers are moved into a native modal only when opened. */
.cx402-search-launch{background:#ffffff13;color:#f8fafc;border:1px solid #ffffff30;border-radius:100px;white-space:nowrap;min-height:38px}.cx402-search-launch:hover{color:var(--cx402-accent);border-color:var(--cx402-accent)}.cx402-search-launch[hidden]{display:none!important}.cx402-search-dialog{width:100%;height:100dvh;max-width:100%;max-height:100%;border-radius:0;margin:0;padding:clamp(1rem,4vw,3rem);overflow:auto}.cx402-search-shell{max-width:900px;margin:auto}.cx402-search-dialog .cx-search{margin:0!important;width:100%;display:block!important}.cx402-search-dialog input[type=search]{font-size:clamp(1.15rem,3vw,1.8rem);width:100%;border-radius:14px;padding:1rem 3rem 1rem 1rem;background:var(--bs-tertiary-bg)!important;color:var(--bs-body-color)!important;border-color:var(--bs-border-color)!important}.cx402-search-dialog [data-clear-search]{color:var(--bs-body-color)!important;min-width:42px;min-height:48px;font-size:1.2rem}.cx402-search-dialog .cx-sugg{position:static!important;width:100%;max-height:none;box-shadow:none!important}.cx402-search-dialog .cx-sugg img{width:66px;height:83px;object-fit:cover;border-radius:7px}.cx402-search-dialog .cx-sugg .list-group-item{min-height:54px;background:var(--cx-card);color:var(--bs-body-color)}.cx402-search-links{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}
.cx402-collection-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(140px,100%),1fr));gap:.65rem}.cx402-collection{position:relative;display:flex;flex-direction:column;justify-content:flex-end;min-height:110px;border:1px solid #ffffff24;border-radius:16px;padding:1rem;color:#fff!important;text-decoration:none;background:linear-gradient(135deg,#1d2434,var(--cx402-halo));overflow:hidden}.cx402-collection strong{font-size:clamp(1rem,2vw,1.25rem);overflow-wrap:anywhere}.cx402-collection small{opacity:.83}.cx402-collection span{position:absolute;right:.75rem;top:.7rem;color:white}.cx402-collection:hover,.cx402-collection:focus-visible{outline:2px solid var(--cx-accent);outline-offset:2px}.cx402-tile-1{background:linear-gradient(125deg,#172442,#355b88)}.cx402-tile-2{background:linear-gradient(125deg,#271b3d,#6a457e)}.cx402-tile-3{background:linear-gradient(125deg,#422228,#904355)}.cx402-tile-4{background:linear-gradient(125deg,#172f29,#326950)}.cx402-tile-5{background:linear-gradient(125deg,#392b21,#805638)}
.cx402-row-title{border-left:3px solid var(--cx-accent);padding-left:.75rem;margin-bottom:.75rem}.cx402-row-title h2{font-weight:750;letter-spacing:-.025em}
.cx402-title-hero{position:relative;min-height:clamp(250px,42vh,440px);isolation:isolate;overflow:hidden;display:flex;align-items:flex-end;background:#0a0d15;color:#fff}.cx402-title-hero>img,.cx402-title-shade{position:absolute;inset:0;width:100%;height:100%;z-index:-1}.cx402-title-hero>img{object-fit:cover;object-position:center 28%}.cx402-title-shade{background:linear-gradient(0deg,#080b12f7,#080b1290 45%,#080b1220),linear-gradient(90deg,#080b12c4,transparent)}.cx402-title-copy{padding:clamp(1rem,4vw,3rem);max-width:58rem}.cx402-title-copy h2{font-weight:800;letter-spacing:-.045em;font-size:clamp(2rem,5vw,4rem);overflow-wrap:anywhere}.cx402-kicker{color:var(--cx402-accent);font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;font-weight:700}.cx402-watch-layout{scroll-margin-top:64px}html[data-cx402-details] .cx402-watch-layout aside{background:var(--cx-card);border:1px solid var(--bs-border-color);border-radius:0 0 16px 16px}html[data-cx402-details] .cx-eps{max-height:20rem;overflow:auto;scrollbar-width:thin;padding:4px}html[data-cx402-details] .cx402-watch-layout .cx-eps button{min-height:36px}
html[data-cx402-glass] .cx-top.solid{background:color-mix(in srgb,var(--cx402-deep) 86%,transparent);backdrop-filter:blur(18px);border-bottom:1px solid #ffffff12}html[data-cx402-glass] .cx-tabbar{background:color-mix(in srgb,var(--cx402-deep) 88%,transparent);backdrop-filter:blur(20px)}html[data-cx402-glass] .cx-tabbar a[aria-current=page]{background:rgba(var(--cx402-rgb),.15)}
@media(prefers-reduced-motion:no-preference){html[data-motion][data-cx402-motion] .cx402-collection{transition:transform .24s,box-shadow .24s}html[data-motion][data-cx402-motion] .cx402-collection:hover{transform:translateY(-3px);box-shadow:0 10px 25px #0003}html[data-motion][data-cx402-motion] .cx402-dialog[open]{animation:cx402-enter .2s ease-out}html[data-motion][data-cx402-motion] .cx-hero .carousel-item.active .cx-hero-img{animation:cx402-hero-zoom 12s linear both}@keyframes cx402-enter{from{opacity:0;translate:0 10px}to{opacity:1;translate:0 0}}@keyframes cx402-hero-zoom{from{scale:1}to{scale:1.05}}}
@media(prefers-reduced-motion:reduce){html[data-cx402] .cx-track{scroll-behavior:auto!important}.cx402-dialog,.cx402-collection,.cx402-hero-thumbs button{animation:none!important;transition:none!important}}
@media(max-width:480px){.cx402-collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cx402-collection{min-height:90px;padding:.75rem}.cx402-dialog-body{padding:1rem}.cx402-dialog{max-height:94dvh}.cx402-search-dialog{max-height:100dvh}.cx402-quick{min-height:32px}}

html:not(.cx402-quick-ready) .cx402-quick{display:none!important}

@media(max-width:767.98px){html[data-cx402-hero] .cx-hero:not(:has(.cx402-hero-thumbs)) .cx-hero-info{bottom:3.8rem}}
