:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#fff;background:#00050d}
body{background:#00050d}
.shell{grid-template-columns:190px minmax(0,1fr) 280px}
.nav{background:#0f171e;border-color:#263540}
.nav-item{color:#c5d5e1}.nav-item.active,.nav-item:hover{background:#1a3649}
.main{padding:28px 24px 48px}
.panel,.auth-card,#modal .dialog{background:#101b26;border-color:#263b4a}
.aside{padding-top:76px}
.primary{background:#1399de;color:#fff}.secondary{background:#253c4d}.ghost{border-color:#3b6680}
.link-button,.eyebrow,.profile-code{color:#69c8fa}
.pill{background:#1b3c53}
input{background:#101e2b;border-color:#355166}input:focus{border-color:#1399de}
.brand{letter-spacing:-.045em}.brand-mark{background-image:url('/joy-tv-two-cats.png?v=3');flex-basis:64px;width:64px;height:56px;border-radius:12px}
.auth{background:radial-gradient(circle at 50% 0,#124361,transparent 42%),#00050d}
.auth-card{box-shadow:0 30px 70px #0009}
.featured{position:relative;margin-bottom:24px}.featured-heading h2{margin:4px 0 14px;font-size:1.7rem;letter-spacing:-.04em}
.feature-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;border-radius:18px}.feature-track::-webkit-scrollbar{display:none}
.feature-slide{position:relative;flex:0 0 100%;height:clamp(280px,35vw,470px);overflow:hidden;scroll-snap-align:start;background:#122b3c}
.feature-image{position:absolute;inset:0;background:linear-gradient(120deg,#0b2333,#245471)}.feature-image img{width:100%;height:100%;object-fit:cover;filter:brightness(.75)}
.feature-slide:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#000a14 0%,#000a14dd 30%,transparent 80%),linear-gradient(0deg,#000a14a0,transparent 55%)}
.feature-copy{position:absolute;z-index:1;left:clamp(24px,5vw,70px);bottom:clamp(25px,5vw,65px);max-width:min(55%,490px)}
.feature-copy h3{font-size:clamp(2rem,4vw,3.5rem);letter-spacing:-.05em;margin:8px 0}.feature-copy p{color:#d7e5ee;line-height:1.5}
.movie{background:#111d29;border-color:#2b3c49}.poster{background:linear-gradient(135deg,#17384a,#0c1c2b 65%,#544023)}.poster img{background:#0c1c2b}
.live-card{background:#142634;border-color:#2d4b5e}.live-card .tag{color:#66d4ee}
.requests-panel{margin-top:8px}.request-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr));gap:12px}.request-card{min-width:0;display:grid;grid-template-columns:72px minmax(0,1fr);gap:14px;padding:14px;border:1px solid #2c4555;border-radius:12px;background:#152534}.request-art{grid-row:span 2;min-height:106px;display:grid;place-items:center;background:linear-gradient(150deg,#235574,#513a24);border-radius:7px;color:#fff;font-size:2.4rem;font-weight:800}.request-card h3{margin:5px 0;font-size:1.05rem}.request-card p{color:#b8cddd;font-size:.78rem;margin:0 0 8px}.request-card small{color:#81bfdc;font-size:.65rem;font-weight:750}.request-status{display:inline-block;border-radius:30px;background:#234760;padding:4px 9px;font-size:.7rem;text-transform:capitalize}.request-control{grid-column:1/-1;font-size:.72rem;color:#a9c1d2}.request-control select{display:block;width:100%;margin-top:4px;background:#0d1b27;color:white;border:1px solid #456174;border-radius:7px;padding:7px}
#toast{background:#164866}
@media(max-width:1100px){.shell{grid-template-columns:170px minmax(0,1fr)}}
@media(max-width:680px){.shell{display:block}.nav{position:sticky;top:0;z-index:4;gap:2px;padding:8px 12px;scrollbar-width:none}.nav .brand{margin-right:12px}.nav .brand-mark{flex-basis:44px;width:44px;height:38px}.nav-item{font-size:.82rem}.main{padding:16px 12px 32px}.featured-heading h2{font-size:1.45rem}.feature-slide{height:350px}.feature-copy{left:22px;right:22px;bottom:50px;max-width:none}.feature-copy h3{font-size:2.2rem}.feature-copy p{font-size:.86rem;overflow:hidden}.feature-slide:after{background:linear-gradient(0deg,#000a14 0%,#000a14b8 45%,transparent 100%)}.requests-panel .section-title{align-items:flex-start}.requests-panel .section-title button{font-size:.8rem;padding:9px}.aside{padding:0 12px}}
.request-control select{font-size:16px}
.request-card p,.request-card small,.request-status{font-size:.82rem}
#home,#library,#requests,#live,#members,#settings{scroll-margin-top:78px}
.format-help{margin:12px 0 18px;color:#b8cddd;font-size:.9rem}.format-help summary{cursor:pointer;color:#69c8fa;font-weight:700}.format-help p{line-height:1.55;margin:9px 0 0}
.viewing-history{max-height:270px;overflow:auto}.viewing-history p{margin:0;padding:9px 0;border-bottom:1px solid #263b4a;font-size:.83rem;line-height:1.4}.viewing-history small{display:block;color:#9fb8c9;margin-top:3px}
.request-delete{grid-column:1/-1;justify-self:end}
@media(max-width:680px){.nav{scrollbar-width:auto}.nav::-webkit-scrollbar{height:4px}.nav::-webkit-scrollbar-thumb{background:#47708a}.nav-item{flex:0 0 auto}}

/* Prime Video inspired browsing layout, with Joy TV's own identity. */
:root{color-scheme:dark;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#f7f8fa;background:#00050d}
body{background:#00050d}
.shell{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr auto;min-height:100vh;background:#00050d}
.nav{grid-row:1;position:sticky;top:0;z-index:8;display:flex;align-items:center;gap:4px;width:100%;height:auto;min-height:66px;padding:8px clamp(14px,2.4vw,34px);overflow-x:auto;overflow-y:hidden;white-space:nowrap;background:#0f171e;border:0;border-bottom:1px solid #26313b;scrollbar-width:none}
.nav::-webkit-scrollbar{display:none}
.nav .brand{flex:0 0 auto;gap:7px;margin:0 16px 0 0;font-size:1.22rem;letter-spacing:-.04em}
.nav .brand-mark{flex:0 0 68px;width:68px;height:52px;border-radius:9px;background-size:contain;background-position:center}
.nav .brand small{font-size:.57rem;color:#aab6c0}
.nav-item{flex:0 0 auto;display:inline-flex;align-items:center;min-height:42px;margin:0;padding:0 13px;border-radius:9px;color:#d5dce2;font-size:.88rem;font-weight:650}
.nav-item.active,.nav-item:hover{background:#29343d;color:#fff}
.nav-bottom{position:static;display:flex;align-items:center;flex:0 0 auto;margin-left:auto;padding:0 0 0 12px}
.nav-bottom small{font-size:.74rem;color:#aebac4}
.nav-bottom .link-button{padding:9px 12px;color:#dce5ec}
.main{grid-row:2;position:relative;width:100%;min-width:0;padding:0 clamp(18px,3.5vw,48px) 42px}
.top{justify-content:flex-end;min-height:54px;margin:0 -4px 0;padding:8px 0}
.top input{width:min(300px,48vw);padding:10px 14px;background:#111b24;border-color:#43505b;border-radius:22px;font-size:.88rem}
.pill{border-radius:22px;background:#29343d;color:#edf3f7;padding:7px 11px;font-size:.76rem;white-space:nowrap}
.featured{margin:0 calc(-1 * clamp(18px,3.5vw,48px)) 30px}
.featured-heading{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.feature-track{border-radius:0}
.feature-slide{height:clamp(360px,41vw,540px);background:#07121c}
.feature-image{background:linear-gradient(110deg,#0b2333,#1e4056)}
.feature-image img{object-fit:cover;filter:brightness(.8)}
.feature-slide:after{background:linear-gradient(90deg,#000b14 0%,#000b14e8 26%,#000b1475 49%,transparent 80%),linear-gradient(0deg,#000b14d9 0%,transparent 47%)}
.feature-copy{left:clamp(34px,6vw,88px);right:clamp(34px,6vw,88px);bottom:clamp(34px,5vw,68px);max-width:min(54%,650px)}
.feature-copy .eyebrow{color:#51d4fa;letter-spacing:.12em}
.feature-copy h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;overflow-wrap:anywhere;font-size:clamp(2.3rem,5vw,4.5rem);line-height:1.02;letter-spacing:-.045em;text-wrap:balance}
.feature-copy p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;overflow-wrap:anywhere;max-width:44ch;color:#e0e6eb;font-size:clamp(.95rem,1.4vw,1.08rem)}
.resume-film{margin:0 0 20px}
.main>.panel{margin:0 0 30px;padding:0;border:0;border-radius:0;background:transparent}
.main>.panel .section-title{margin:0 0 12px}
.section-title h2{font-size:clamp(1.12rem,1.7vw,1.4rem);letter-spacing:-.02em}
.cards{display:flex;gap:clamp(12px,1.8vw,22px);overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;padding:2px 2px 12px;scrollbar-width:thin;scrollbar-color:#4b5862 transparent}
.movie{flex:0 0 clamp(160px,14vw,220px);scroll-snap-align:start;background:transparent;border:0;border-radius:8px;overflow:visible;transition:transform .2s ease}
.movie:hover{transform:scale(1.035);z-index:1}
.movie-open{overflow:hidden;border-radius:8px;background:#111b24;box-shadow:0 5px 18px #0008}
.poster{aspect-ratio:37/64;background:linear-gradient(135deg,#15384d,#0c1b29 70%,#36516a);padding:0;font-size:1rem}
.poster img{object-fit:cover}
.movie strong{padding:8px 2px;color:#f1f4f6;font-size:.9rem;font-weight:650}
.movie-delete{width:auto;margin:0 0 0 2px;padding:4px 8px;background:transparent;border:0;color:#ffadb4}
.live-grid{display:flex;gap:14px;overflow-x:auto;padding:2px 2px 12px;scroll-snap-type:x proximity}
.live-card{flex:0 0 clamp(230px,25vw,320px);scroll-snap-align:start;border:1px solid #34434f;border-radius:9px;background:#101b25;padding:16px}
.live-card .tag{color:#5ee5bd}
.requests-panel{padding:18px!important;border:1px solid #293943!important;border-radius:12px!important;background:#0f171e!important}
.request-card{border-color:#2d3d49;background:#17232d}
.request-art{background:linear-gradient(150deg,#126088,#253d4d);border-radius:8px}
.aside{grid-row:3;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:14px;width:100%;padding:0 clamp(18px,3.5vw,48px) 36px}
.aside .panel{height:100%;margin:0;border-color:#293943;border-radius:12px;background:#0f171e}
.aside h2{font-size:1rem}
.primary{background:#0f6fae;color:white;border-radius:8px;box-shadow:none}
.primary:hover{background:#0b5e91}
.secondary{background:#29343d;border-radius:8px}
.ghost{border-color:#50616e;border-radius:8px;color:#e3ebf1}
.eyebrow,.link-button,.profile-code{color:#63d2f4}
.pill{background:#263641}
input{background:#101b25;border-color:#3b4b57}
input:focus{border-color:#18a4df}
#toast{background:#0d5376}
@media(max-width:760px){
 .nav{min-height:58px;padding:7px 10px;gap:1px}
 .nav .brand{margin-right:8px;font-size:1.04rem}
 .nav .brand-mark{flex-basis:58px;width:58px;height:48px}
 .nav .brand small{display:none}
 .nav-item{min-height:38px;padding:0 10px;font-size:.78rem}
 .nav-bottom{padding-left:4px}
 .nav-bottom small{display:none}
 .nav-bottom .link-button{padding:8px}
 .main{padding:0 14px 30px}
 .top{min-height:48px;padding:6px 0}
 .top input{width:min(220px,56vw)}
 .featured{margin-right:-14px;margin-left:-14px;margin-bottom:22px}
 .feature-slide{height:min(72vh,490px);min-height:350px}
 .feature-slide:after{background:linear-gradient(0deg,#000b14 0%,#000b14e8 28%,#000b1460 58%,transparent 100%)}
 .feature-copy{left:24px;right:24px;bottom:64px;max-width:none}
 .feature-copy h3{font-size:clamp(2.1rem,9vw,3.2rem)}
 .feature-copy p{overflow:hidden;font-size:.9rem}
 .main>.panel{margin-bottom:24px}
 .movie{flex-basis:clamp(165px,44vw,185px)}
 .live-card{flex-basis:min(78vw,320px)}
 .aside{grid-template-columns:1fr;padding:0 14px 24px}
 .requests-panel{padding:14px!important}
}
/* Reset legacy two-column placements after the main layout becomes one column. */
.aside{grid-column:1}
.aside .panel{width:auto;display:block}
@media(max-width:1100px){.nav-bottom small{display:none}}
@media(max-width:900px){
 .nav{scrollbar-width:thin}
 .nav::-webkit-scrollbar{display:block;height:4px}
 .nav::-webkit-scrollbar-thumb{background:#47708a}
}
@media(prefers-reduced-motion:reduce){.movie{transition:none}.cards{scroll-behavior:auto}}
.christmas-collection{margin:0 0 30px;padding:0 clamp(18px,3.5vw,48px)}
.christmas-collection .section-title{margin:0 0 12px}
.christmas-collection .eyebrow{display:block;margin-bottom:4px}
.movie-category-tag{position:absolute;z-index:2;inset:auto 8px 8px 8px;width:fit-content;max-width:calc(100% - 16px);padding:5px 8px;border:1px solid #ffffff3b;border-radius:20px;background:#102b3de8;color:#eafaff;font-size:.68rem;font-weight:750;line-height:1.2;text-shadow:none}
.movie strong{text-align:center}
@media(max-width:760px){.christmas-collection{padding:0 14px;margin-bottom:24px}}
.movie-open{text-align:center}
.movie strong{display:block;width:100%;min-height:3rem;padding:8px;text-align:center;line-height:1.35;text-wrap:balance}
.feature-copy{bottom:clamp(76px,8vw,98px)}
.feature-dots{position:absolute;z-index:3;left:50%;bottom:18px;display:flex;align-items:center;gap:0;transform:translateX(-50%);padding:4px 8px;border:1px solid #ffffff25;border-radius:22px;background:#07121cc9;backdrop-filter:blur(10px)}
.feature-dot{display:grid;width:28px;height:28px;flex:0 0 28px;place-items:center;padding:0;border:0;border-radius:50%;background:transparent}
.feature-dot:before{content:"";display:block;width:8px;height:8px;border-radius:9px;background:#d7e0e7bb;transition:width .18s ease,background-color .18s ease}
.feature-dot.active:before{width:22px;background:#fff}
.feature-dot:focus-visible,.request-list:focus-visible{outline:2px solid #69d6fb;outline-offset:3px}
.request-list{grid-template-columns:repeat(auto-fill,minmax(min(100%,235px),1fr));gap:8px;max-height:min(65vh,680px);overflow:auto;overscroll-behavior:contain;align-content:start;padding:2px 6px 6px 0;scrollbar-width:thin;scrollbar-color:#4b5862 transparent}
.request-card{position:relative;grid-template-columns:48px minmax(0,1fr) auto;grid-template-rows:auto;gap:5px 8px;padding:8px;align-items:center}
.request-art{grid-column:1;grid-row:1;width:48px;min-height:58px;height:auto;font-size:1.55rem}
.request-card .request-details{grid-column:2;grid-row:1;min-width:0}
.request-card h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;margin:3px 0;font-size:.94rem;line-height:1.2}
.request-card p{overflow-wrap:anywhere;margin:0 0 5px;font-size:.74rem;line-height:1.25}
.request-card small,.request-status{font-size:.64rem}
.request-status{padding:3px 7px}
.request-meta{display:flex;align-items:center;gap:7px;min-width:0;margin-top:4px}
.request-delete{grid-column:3;grid-row:1;align-self:center;padding:3px;font-size:.7rem}
.request-control{display:flex;align-items:center;gap:4px;grid-column:auto;grid-row:auto;margin:0;font-size:.64rem;white-space:nowrap}
.request-control select{display:inline-block;width:auto;max-width:144px;margin:0;padding:3px 12px 3px 6px;font-size:14px}
@media(max-width:760px){.feature-copy{left:24px;right:24px;bottom:70px}.feature-dots{bottom:12px;padding:4px 8px}.request-list{max-height:55vh}.request-card{grid-template-columns:42px minmax(0,1fr) auto;gap:4px 7px}.request-art{width:42px;min-height:54px}.request-card p{font-size:.72rem}.request-control{min-width:0}.request-control select{width:126px;max-width:100%;font-size:16px;padding-right:4px;box-sizing:border-box}}
@media(prefers-reduced-motion:reduce){.feature-dot{transition:none}}
