/* THE X_X MOVIE / HTML Template Edition. 3 intentionally distinct cinematic layouts.
   Original references: user-supplied Mobile Cinema App, BRT Movie, Netflix Style.
   No demo images, mock scores, or third-party brand assets are loaded. */
html[data-theme]{--theme-red:#f0142a;--brand-ink:#fff;--theme-card:#1b1a20;--theme-line:#39313c;--theme-accent:#f0142a;--theme-hero-shade:#100f14;--theme-nav:#120f18;color-scheme:dark}
html[data-theme] body{overflow-x:hidden;background:var(--bg);color:var(--text)}
html[data-theme] .theme-launch{min-height:44px;min-width:44px;display:inline-flex;gap:7px;align-items:center;justify-content:center;border-radius:12px;padding:8px 12px;background:#24212d;color:#fff;border:1px solid #5e5364;font-size:13px;font-weight:800;white-space:nowrap}
html[data-theme] .theme-launch:hover,html[data-theme] .theme-launch:focus-visible{border-color:var(--theme-accent);filter:brightness(1.1)}
.theme-launch-icon{font-size:21px;line-height:1}.theme-dialog{width:min(850px,calc(100% - 20px));max-height:min(86vh,900px);overflow:auto;padding:26px;border-radius:22px;background:#17141c;color:#fff;border:1px solid #574b59;box-shadow:0 22px 100px #000c}
.theme-dialog::backdrop{background:#000c;backdrop-filter:blur(8px)}.theme-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.theme-dialog-head h2{font-size:clamp(20px,3vw,30px);margin:6px 0}.theme-dialog-head p,.theme-dialog-foot{line-height:1.6;font-size:13px;color:#c2b7ca}.theme-close{color:#fff;background:#292531;border:1px solid #62556a;border-radius:12px;width:44px;height:44px;flex:none;font-size:25px}.theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:22px 0}.theme-option{background:#221e2a;border:2px solid #4b4354;border-radius:17px;color:#fff;padding:10px;text-align:left;display:flex;flex-direction:column;gap:8px;min-height:220px}.theme-option[aria-pressed=true]{border-color:#ff405c;box-shadow:0 0 0 2px #fa2b5340}.theme-option-name{font-size:15px;font-weight:900}.theme-option-desc{font-size:12px;line-height:1.55;color:#cfc2d2}.theme-option-action{font-size:12px;color:#ff9bac;font-weight:800;margin-top:auto}.theme-thumb{aspect-ratio:16/10;width:100%;border-radius:10px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;padding:13px;position:relative;overflow:hidden;isolation:isolate}.theme-thumb::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(circle at 80% 20%,#a3415d 0,transparent 48%),linear-gradient(115deg,#251523,#3c2136)}.theme-thumb small{font-size:9px;opacity:.8;letter-spacing:.12em}.theme-thumb b{font-size:22px;line-height:1.08;letter-spacing:-.02em}.theme-thumb i{display:block;width:56px;height:7px;background:#f01535;border-radius:999px;margin-top:10px}.thumb-mobile{border:6px solid #151019;border-radius:22px}.thumb-mobile::before{background:radial-gradient(circle at 65% 20%,#7d3355,transparent 55%),linear-gradient(140deg,#371c32,#100f14)}.thumb-brt::before{background:linear-gradient(100deg,#26252cf7,#45313fa8),radial-gradient(circle at 75% 20%,#aa4752,transparent 55%)}.thumb-noir::before{background:radial-gradient(circle at 75% 12%,#5e1624,transparent 58%),linear-gradient(110deg,#060709,#270a14)}
/* Shared shelves, based on live D1 catalog. Empty shelves are hidden by the app. */
.cinematic-rail{min-width:0}.rail-grid{display:flex;gap:15px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:8px;padding:5px 3px 18px;scrollbar-width:thin}.rail-grid .movie-card{flex:0 0 clamp(146px,16vw,210px);scroll-snap-align:start}.rail-grid .movie-card .cover{width:100%}.rail-grid .movie-card h3{margin-top:11px}.rail-grid:focus-visible{outline:2px solid var(--mint);outline-offset:4px}#resumeList{scroll-padding-inline:5px}html[data-theme] .rail-grid .movie-card{transition:transform .22s}html[data-theme] .rail-grid .movie-card:hover{transform:translateY(-4px)}
html[data-theme] .cover,html[data-theme] .video-shell{overflow:hidden}.theme-dialog button:focus-visible{outline:3px solid #ff657b;outline-offset:2px}
/* 01 — MOBILE CINEMA / user-uploaded Mobile Cinema App template */
html[data-theme=mobile]{--bg:#100f14;--panel:#1c1b24;--line:#39313e;--text:#fff;--muted:#aaa3b1;--mint:#f01435;--blue:#e81a43;--radius:23px;--theme-accent:#f01435}
html[data-theme=mobile] body{background:#100f14}
html[data-theme=mobile] .header{background:#100f14ef;border-bottom:1px solid #ffffff12}
html[data-theme=mobile] .brand-icon{background:#f01435;color:#fff;box-shadow:0 12px 30px #f0143544;border-radius:14px}
html[data-theme=mobile] .brand strong,html[data-theme=mobile] .kicker,html[data-theme=mobile] .overline{color:#f14664}
html[data-theme=mobile] .searchbox{background:#201d27;border-color:#484050;border-radius:17px}
html[data-theme=mobile] .searchbox input{color:white}
html[data-theme=mobile] .account-button{background:#231e2c;border-color:#5d4b60;color:#fff;border-radius:15px}
html[data-theme=mobile] .hero{min-height:430px;max-width:810px;margin:22px auto 15px;background-color:#2c1a30;border:0;border-radius:28px;background-position:center 27%;box-shadow:0 20px 60px #000a;align-items:flex-end}
html[data-theme=mobile] .hero-fade{background:linear-gradient(0deg,#110d18 0%,#110d1888 44%,#251c2a12 100%)}
html[data-theme=mobile] .hero-inner{padding:32px 34px;width:100%}
html[data-theme=mobile] .hero h1{font-size:clamp(30px,4.3vw,54px);margin:10px 0;max-width:620px}
html[data-theme=mobile] .hero p{font-size:14px;color:#e9dbe8;line-height:1.7}
html[data-theme=mobile] .hero-tag{margin-top:12px;border-color:#fe9eae90;color:#ffafc2;background:#1f122ba6}
html[data-theme=mobile] .btn-primary,html[data-theme=mobile] .chip.active{background:#f01435;color:#fff;border-color:#fa4259;box-shadow:0 10px 25px #f0143550}
html[data-theme=mobile] .btn-soft{background:#2e2537;border-color:#68566e;color:#fff}
html[data-theme=mobile] .shelf{margin:34px 0}
html[data-theme=mobile] .cover{border-radius:18px;border:1px solid #483b51;background:#25182f}
html[data-theme=mobile] .movie-card h3{font-weight:800}
html[data-theme=mobile] .movie-card p{color:#b7aeba}
html[data-theme=mobile] .mini-progress span{background:#f01435}
html[data-theme=mobile] .fav-mini.is-fav{color:#ff5873}
html[data-theme=mobile] .chip{background:transparent;border-color:#5b4658;color:#c6b9ca}
html[data-theme=mobile] .details-aside,html[data-theme=mobile] .dialog{background:#1b1822;border-color:#53475b}
html[data-theme=mobile] select,html[data-theme=mobile] .account-form input{background:#201b27;border-color:#55475c;color:#fff}
html[data-theme=mobile] .mobile-nav{background:#18131dea;border-color:#ffffff22;backdrop-filter:blur(18px);border-radius:24px 24px 0 0}
html[data-theme=mobile] .mobile-nav a.nav-active{color:#ff3a59}
/* 02 — BRT CINEMA / user-uploaded BRT Movie template */
html[data-theme=brt]{--bg:#1a1a20;--panel:#272935;--line:#444652;--text:#fff;--muted:#b4b4bf;--mint:#ff3131;--blue:#f0242a;--radius:16px;--theme-accent:#ff3131}
html[data-theme=brt] body{background:#1a1a20}
html[data-theme=brt] .header{background:#13141aaf;border-bottom:0;backdrop-filter:blur(18px)}
html[data-theme=brt] .navbar{border:1px solid #ffffff23;background:#fff1;border-radius:18px;padding-inline:19px;margin-top:8px;margin-bottom:8px;height:66px;box-shadow:0 10px 32px #0005}
html[data-theme=brt] .brand-icon{background:#ff242b;color:#fff;border-radius:8px}
html[data-theme=brt] .brand strong,html[data-theme=brt] .overline,html[data-theme=brt] .kicker{color:#ff434e}
html[data-theme=brt] .searchbox{background:#10101590;border-color:#5c5560;border-radius:999px}
html[data-theme=brt] .searchbox input{color:#fff}
html[data-theme=brt] .account-button,html[data-theme=brt] .theme-launch{background:#241f2a;border-color:#574b55;color:#fff}
html[data-theme=brt] .hero{width:100vw;max-width:none;left:50%;transform:translateX(-50%);margin:0 0 45px;min-height:min(700px,78vh);background-color:#30262c;background-position:center 35%;border:0;border-radius:0;align-items:flex-end}
html[data-theme=brt] .hero-fade{background:linear-gradient(0deg,#1a1a20 0%,#1a1a20b3 27%,transparent 75%),linear-gradient(90deg,#151319ae,transparent 75%)}
html[data-theme=brt] .hero-inner{padding:55px max(22px,calc((100vw - 1240px)/2)) 80px;width:100%;max-width:1300px}
html[data-theme=brt] .hero h1{font-size:clamp(40px,6.5vw,78px);margin:15px 0;line-height:1.08;letter-spacing:-.04em;text-shadow:0 13px 30px #000a}
html[data-theme=brt] .hero-tag{color:#ff8995;border-color:#df4c5888}
html[data-theme=brt] .hero p{max-width:720px;color:#f6e6e7;line-height:1.7}
html[data-theme=brt] .btn-primary,html[data-theme=brt] .chip.active{background:#fb2028;color:#fff;border-color:#ff343a;box-shadow:0 8px 26px #fb202851;border-radius:999px}
html[data-theme=brt] .btn-soft{background:#27262dbd;border-color:#77707b;color:#fff;border-radius:999px}
html[data-theme=brt] .shelf{margin:30px 0 52px}
html[data-theme=brt] .shelf h2{border-left:4px solid #ff3235;padding-left:12px}
html[data-theme=brt] .rail-grid .movie-card{flex-basis:clamp(160px,18vw,215px)}
html[data-theme=brt] .cover{border-radius:14px;border:1px solid #5f5760;box-shadow:0 12px 25px #0007;background:#34313b}
html[data-theme=brt] .cover:hover{border-color:#f64249;box-shadow:0 14px 35px #f71b2a45}
html[data-theme=brt] .cover-label{background:#e91522ed;color:#fff}
html[data-theme=brt] .movie-card p{color:#b6aeb8}
html[data-theme=brt] .chip{background:#393b46;border-color:#63616a;color:#f0ebf1}
html[data-theme=brt] .mini-progress span{background:#f12530}
html[data-theme=brt] .details-aside{background:#25232b;border-color:#514850}
html[data-theme=brt] .dialog{background:#23202b;border-color:#5e5058}
html[data-theme=brt] select,html[data-theme=brt] .account-form input{background:#302d37;border-color:#62535f;color:#fff}
html[data-theme=brt] .mobile-nav{background:#171419f0;border-color:#4a3942}
html[data-theme=brt] .mobile-nav a.nav-active{color:#ff3943}
/* 03 — RED PREMIERE / user-uploaded Netflix-style desktop reference; original X_X branding. */
html[data-theme=noir]{--bg:#09090b;--panel:#18191b;--line:#343237;--text:#fff;--muted:#b0aab0;--mint:#ed1a2b;--blue:#f13c49;--radius:12px;--theme-accent:#ed1a2b}
html[data-theme=noir] body{background:radial-gradient(ellipse at 6% 58%,#51102020,transparent 36rem),#09090b}
html[data-theme=noir] .header{background:#080809ee;border:0;backdrop-filter:blur(16px)}
html[data-theme=noir] .brand{font-weight:950;letter-spacing:-.035em}
html[data-theme=noir] .brand strong{color:#e9182c}
html[data-theme=noir] .brand-icon{background:#e9182c;color:#fff;border-radius:3px;box-shadow:none}
html[data-theme=noir] .searchbox{background:#161617;border-color:#39343b}
html[data-theme=noir] .searchbox input{color:#fff}
html[data-theme=noir] .account-button,html[data-theme=noir] .theme-launch{background:#252529;border-color:#58505a;color:#fff;border-radius:5px}
html[data-theme=noir] .hero{min-height:min(820px,86vh);width:100vw;left:50%;transform:translateX(-50%);border:0;border-radius:0;margin:0 0 0;background-color:#09090c;background-position:center 25%;align-items:center}
html[data-theme=noir] .hero-fade{background:linear-gradient(90deg,#060607f2 0%,#09090bc9 29%,#09090b20 78%),linear-gradient(0deg,#09090b 0%,transparent 64%)}
html[data-theme=noir] .hero-inner{padding-left:max(28px,calc((100vw - 1210px)/2));padding-right:20px;width:min(820px,85%)}
html[data-theme=noir] .hero h1{font-size:clamp(44px,6.5vw,86px);font-weight:950;line-height:1.05;letter-spacing:-.045em;text-shadow:0 10px 28px #000b}
html[data-theme=noir] .hero p{font-size:16px;line-height:1.7;max-width:620px;color:#f2e7ea}
html[data-theme=noir] .kicker{color:#ff5c64}
html[data-theme=noir] .hero-tag{color:#ffb9c0;border-color:#a62938;background:#660e222e}
html[data-theme=noir] .btn-primary{background:#f0eff0;border:0;color:#101012;box-shadow:0 8px 28px #0007;border-radius:6px}
html[data-theme=noir] .btn-soft{background:#68686a99;border:0;color:#fff;border-radius:6px}
html[data-theme=noir] .chip.active{background:#e50927;color:#fff;border-color:#e50927}
html[data-theme=noir] .chip{background:#1f1f22;border-color:#4c444a;color:#eee;border-radius:7px}
html[data-theme=noir] .shelf{position:relative;margin:15px 0 40px}
html[data-theme=noir] #featuredRailSection{margin-top:-75px;z-index:3}
html[data-theme=noir] .section-heading h2{font-size:23px}
html[data-theme=noir] .rail-grid{padding-top:10px;gap:11px}
html[data-theme=noir] .rail-grid .movie-card{flex:0 0 clamp(200px,21vw,285px)}
html[data-theme=noir] .rail-grid .cover{aspect-ratio:16/9;border-radius:6px;border:0;box-shadow:0 9px 20px #0007}
html[data-theme=noir] .rail-grid .cover img{object-fit:cover}
html[data-theme=noir] .rail-grid .movie-card:hover{transform:scale(1.035);z-index:5}
html[data-theme=noir] .cover{border-radius:9px;border-color:#333;background:#18181b}
html[data-theme=noir] .cover-label{background:#e3182a;color:#fff}
html[data-theme=noir] .movie-card p{color:#aba4aa}
html[data-theme=noir] .mini-progress span{background:#e50927}
html[data-theme=noir] .fav-mini.is-fav{color:#ff365a}
html[data-theme=noir] .details-aside{background:#171618;border-color:#443a41}
html[data-theme=noir] .dialog{background:#1b191c;border-color:#5c454d}
html[data-theme=noir] select,html[data-theme=noir] .account-form input{background:#242227;border-color:#5a4852;color:#fff}
html[data-theme=noir] .mobile-nav{background:#080709ef;border-color:#423039}
html[data-theme=noir] .mobile-nav a.nav-active{color:#f5293e}
/* Shared adjustments for real mobile screen, 390px and Galaxy S24 widths */
@media(max-width:900px){html[data-theme] .theme-launch-label{display:none}html[data-theme] .theme-launch{padding:7px;min-width:44px}}
@media(max-width:600px){
 .theme-dialog{padding:18px;border-radius:16px}.theme-options{grid-template-columns:1fr;gap:10px}.theme-option{display:grid;grid-template-columns:105px 1fr;gap:5px 13px;align-items:center;min-height:auto}.theme-thumb{grid-row:span 3;aspect-ratio:4/5;height:116px}.theme-option-name{font-size:14px}.theme-option-desc{font-size:11px}.theme-option-action{font-size:11px}
 html[data-theme] .hero-inner{max-width:100%}
 html[data-theme=mobile] .navbar{height:70px}html[data-theme=mobile] .hero{min-height:405px;margin-top:14px;border-radius:24px;background-position:center 20%}html[data-theme=mobile] .hero-inner{padding:22px 21px 28px}html[data-theme=mobile] .hero h1{font-size:clamp(28px,7.8vw,43px)}html[data-theme=mobile] .hero p{font-size:13px}
 html[data-theme=brt] .navbar{gap:9px;height:62px;padding-inline:9px;margin:5px auto}html[data-theme=brt] .hero{min-height:530px;background-position:65% 25%;margin-bottom:20px}html[data-theme=brt] .hero-fade{background:linear-gradient(0deg,#1a1a20 0%,#1a1a20dc 32%,#1a1a2025 94%)}html[data-theme=brt] .hero-inner{padding:28px 20px;align-self:flex-end}html[data-theme=brt] .hero h1{font-size:clamp(34px,8vw,47px)}html[data-theme=brt] .hero p{font-size:13px}
 html[data-theme=noir] .hero{min-height:520px;align-items:flex-end;background-position:60% 24%}html[data-theme=noir] .hero-fade{background:linear-gradient(0deg,#09090b 0%,#09090bd8 38%,#09090b36 90%)}html[data-theme=noir] .hero-inner{padding:30px 19px 65px;width:100%}html[data-theme=noir] .hero h1{font-size:clamp(34px,8vw,52px)}html[data-theme=noir] .hero p{font-size:13px}html[data-theme=noir] #featuredRailSection{margin-top:-35px}
 .rail-grid .movie-card{flex:0 0 145px}html[data-theme=noir] .rail-grid .movie-card{flex-basis:196px}
 html[data-theme] .fav-mini{min-width:44px;min-height:44px;width:44px;height:44px}
}
@media(prefers-reduced-motion:reduce){html[data-theme] *,html[data-theme] *::before,html[data-theme] *::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
