/* Layout settings and native-inspired presentation. */
body{background:var(--bg)}button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--accent);outline-offset:4px}input[type=checkbox],input[type=radio],input[type=range]{accent-color:var(--accent)}.topbar,.bottom-nav{background:var(--bg)}.topbar nav button.active,.bottom-nav button.active{color:var(--accent)}.modal{background:var(--panel)}.action{background:var(--panel2)}.layout-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:28px}.layout-heading h1{font-size:32px;margin:8px 0}.layout-heading p{color:var(--muted);font-size:12px;margin:0}.layout-shell{display:grid;grid-template-columns:190px minmax(0,1fr);gap:32px}.layout-nav{display:flex;flex-direction:column;gap:4px;align-self:start;position:sticky;top:96px}.layout-nav button{border:0;background:transparent;border-radius:9px;padding:12px 14px;text-align:left;font-size:13px;color:var(--muted)}.layout-nav button.selected{background:var(--panel);color:var(--accent)}.layout-content{min-width:0;max-width:900px}.layout-group{margin:0 0 28px}.layout-group h2{font-size:13px;text-transform:uppercase;letter-spacing:1.3px;color:var(--muted);margin:0 0 12px 2px}.layout-panel{border:1px solid var(--line);border-radius:14px;background:var(--panel);overflow:hidden}.layout-control,.layout-link{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 18px;min-height:64px;border:0;border-bottom:1px solid #ffffff0b;width:100%;background:transparent;text-align:left}.layout-control:last-child,.layout-link:last-child{border-bottom:0}.layout-control>span:first-child,.layout-link>span:first-child{flex:1;min-width:0}.layout-control b,.layout-link b{display:block;font-size:14px;font-weight:600}.layout-control small,.layout-link small{display:block;margin-top:5px;font-size:11px;line-height:1.5;color:var(--muted)}.layout-link>span:last-child{font-size:23px;color:var(--muted)}.layout-control input:not([type=checkbox]):not([type=radio]):not([type=range]),.layout-control select,.layout-item input:not([type=checkbox]),.layout-item select,#badgeImport input{max-width:55%;min-width:0;border:1px solid var(--line);background:var(--bg);color:var(--text);border-radius:8px;padding:9px;font-size:12px}.layout-control input[type=checkbox]{width:20px;height:20px;flex:none}.layout-control select{max-width:45%}.layout-control input[type=color]{width:50px;padding:0}.layout-range{display:flex;align-items:center;gap:12px;max-width:45%;font-size:12px;color:var(--muted)}.layout-range input{width:150px;max-width:100%;min-width:0}.layout-range output{min-width:30px}.layout-note{font-size:12px;color:var(--muted);line-height:1.6;padding:12px 18px;margin:0}.layout-content>.layout-note{padding:12px 0}.theme-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(85px,1fr));gap:8px;padding:16px}.theme-choice{padding:12px 6px;border:1px solid transparent;background:var(--bg);border-radius:10px;color:var(--muted);font-size:11px;display:flex;flex-direction:column;align-items:center;gap:9px}.theme-choice>span{width:35px;height:35px;border-radius:50%;background:var(--swatch);border:7px solid var(--swatch-bg);box-shadow:0 0 0 1px #ffffff18}.theme-choice.selected{border-color:var(--accent);color:var(--text)}.custom-colors{display:flex;gap:24px;padding:10px 18px 18px}.custom-colors label{display:flex;gap:8px;align-items:center;font-size:12px}.layout-item{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid #ffffff10;min-width:0}.layout-item>div:first-child{flex:1;min-width:0}.layout-item b{display:block;font-size:13px;overflow-wrap:anywhere}.layout-item small{display:block;font-size:11px;color:var(--muted);margin:4px 0 7px}.layout-item input:not([type=checkbox]):not([type=radio]){max-width:100%;width:100%}.layout-item input[type=checkbox]{flex:none;width:18px;height:18px}.layout-item .action{font-size:11px;padding:7px 9px;flex:none}.order-buttons{display:flex;flex:none;gap:4px}.order-buttons button{border:1px solid var(--line);border-radius:6px;background:transparent;padding:5px 8px}.order-buttons button:disabled{opacity:.2;cursor:default}.layout-item.unavailable{opacity:.65}.layout-summary{padding:16px;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted);gap:8px}.layout-summary .action{font-size:11px}.layout-toolbar{display:flex;gap:8px;padding:15px 0;flex-wrap:wrap}.layout-panel>.layout-toolbar{padding:16px}.layout-toolbar .action{font-size:12px}.layout-preview{padding:18px;display:flex;align-items:center;gap:28px}.layout-preview .cards{flex:none;max-width:60%;padding:0}.layout-preview p{font-size:12px;line-height:1.7;color:var(--muted);max-width:240px}.cw-style-options{display:flex;padding:16px;gap:12px}.cw-style-options>button{flex:1;display:flex;flex-direction:column;align-items:center;gap:12px;border:1px solid var(--line);border-radius:10px;background:var(--bg);padding:12px 8px;font-size:12px}.cw-style-options .selected{border-color:var(--accent)}.cw-style-preview{width:80px;max-width:100%;height:45px;border:1px solid var(--line);border-radius:7px;background:linear-gradient(135deg,var(--panel2),var(--bg))}.style-wide{width:120px}.style-poster{height:75px;width:50px}.folder-setting-list{margin-left:20px;padding:0 12px 12px;border-left:1px solid var(--line)}.collection-setting+.collection-setting{border-top:1px solid var(--line)}#badgeImport{display:flex;gap:8px;padding:15px}#badgeImport input{flex:1;max-width:none}#badgeMessage{padding:0 16px;font-size:12px;color:var(--danger)}.modal textarea{width:100%;max-width:100%;border:1px solid var(--line);background:var(--bg);color:var(--text);font:12px/1.6 monospace;border-radius:8px;padding:12px;resize:vertical}.modal .layout-control{padding:13px 0}.modal input[type=checkbox]{width:19px;height:19px}.modal .layout-note{padding:12px 0}.modal .form-row input{min-width:0}
.media-card{flex:0 0 var(--poster-width);position:relative}.media-card .poster{height:var(--poster-height);border-radius:var(--poster-radius);background:var(--panel2)}.poster>img{width:100%;height:100%;display:block;object-fit:cover}.media-card .poster:after{display:none}.poster-fallback{position:absolute;inset:0;display:grid;place-items:center;text-align:center;padding:14px;font-weight:600;color:var(--muted)}.poster-logo{position:absolute;bottom:10px;left:10%;width:80%!important;height:auto!important;max-height:40%;object-fit:contain!important;filter:drop-shadow(0 2px 3px #000)}.media-card .card-label{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.3;max-height:2.6em;font-size:13px}.media-card .card-meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cards{gap:14px;scroll-snap-type:x proximity}.card{scroll-snap-align:start}.collection-row .cards{display:flex;grid-template-columns:none;overflow-x:auto}.collection-folder .folder-poster{height:auto!important;aspect-ratio:2/3;border-radius:var(--poster-radius);border:1px solid #ffffff25}.collection-folder{flex-basis:var(--poster-width)}.collection-folder.shape-square{flex-basis:180px}.collection-folder.shape-square .folder-poster{aspect-ratio:1}.collection-folder.shape-landscape,.collection-folder.shape-wide{flex-basis:300px}.collection-folder.shape-landscape .folder-poster{aspect-ratio:16/9}.collection-folder.shape-wide .folder-poster{aspect-ratio:2/1}.folder-title{position:absolute;bottom:14px;left:14px;right:14px;z-index:2;font-size:21px;font-weight:600;text-shadow:0 2px 5px #000}.folder-focus-gif{position:absolute;inset:0;opacity:0;transition:opacity .2s;z-index:1}.collection-folder:hover .folder-focus-gif,.collection-folder:focus .folder-focus-gif{opacity:1}.home-hero{min-height:420px;position:relative;overflow:hidden;border-radius:18px;margin:0 0 30px;background:var(--panel)}.hero-backdrop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.home-hero:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,var(--bg),transparent 70%),linear-gradient(90deg,#000d,transparent 95%)}.hero-copy{position:relative;z-index:1;padding:80px 35px 65px;max-width:650px;min-height:420px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end}.hero-copy h2{font-size:clamp(30px,4vw,48px);margin:0 0 15px;text-shadow:0 3px 12px #000}.hero-copy p{font-size:14px;line-height:1.6;color:#ddd;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:10px 0 18px}.hero-copy .hero-genres{font-size:12px;color:#bbb;margin:14px 0 0}.hero-logo{max-width:360px;width:80%;max-height:120px;object-fit:contain;object-position:left}.hero-dots{position:absolute;right:24px;bottom:30px;z-index:2;display:flex;gap:8px}.hero-dots button{width:7px;height:7px;border:0;border-radius:10px;background:#aaa;padding:0}.hero-dots button.active{width:22px;background:#fff}.cw-card{flex-basis:230px}.cw-card .poster{height:auto;aspect-ratio:16/9;border-radius:var(--poster-radius)}.cw-card .poster:after{display:none}.cw-wide{flex-basis:330px}.cw-poster{flex-basis:var(--poster-width)}.cw-poster .poster{aspect-ratio:2/3}.cw-card .card-label{white-space:normal;font-size:14px}.cw-tag{position:absolute;top:8px;right:8px;border-radius:5px;background:#000b;padding:5px 7px;font-size:10px;font-weight:700}.blur-next-up>img{filter:blur(14px)}.folder-tabs,.detail-tabs{display:flex;gap:8px;overflow-x:auto;margin:20px 0}.folder-tabs button,.detail-tabs button{padding:9px 15px;border:1px solid var(--line);border-radius:20px;background:transparent;white-space:nowrap;font-size:12px}.folder-tabs button.selected,.detail-tabs button.selected{background:var(--accent);color:#101010}.folder-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(var(--poster-width),1fr));overflow:visible}.folder-hero{height:250px;position:relative;overflow:hidden;border-radius:14px}.folder-hero>img{width:100%;height:100%;object-fit:cover}.folder-hero .folder-logo{position:absolute;bottom:20px;left:20px;width:40%;height:40%;object-fit:contain;object-position:left}.folder-hero video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000}.stream-content{min-width:0;flex:1}.stream-content small{white-space:pre-line;overflow-wrap:anywhere}.stream-badges{display:flex;gap:5px;flex-wrap:wrap;margin:8px 0}.stream-badge{font-size:10px;padding:4px 6px;display:inline-flex;align-items:center;gap:4px;border:1px solid #ffffff25;border-radius:5px;background:var(--panel2);font-weight:600}.badge-icon{height:18px;width:auto;max-width:50px;object-fit:contain}.addon-stream-logo{height:20px;width:20px;vertical-align:middle;object-fit:contain;margin-right:7px}.cinematic-stream{background:linear-gradient(130deg,color-mix(in srgb,var(--accent) 13%,var(--panel)),var(--bg));border:1px solid #ffffff15}.player-badges{position:absolute;left:20px;bottom:65px;right:20px}.nuvio-detail{width:min(1050px,100%);position:relative;isolation:isolate;padding:32px;max-height:92dvh}.detail-backdrop{position:absolute;inset:0 0 auto;height:400px;z-index:-1;overflow:hidden;opacity:.28;mask-image:linear-gradient(#000,transparent)}.detail-backdrop img{width:100%;height:100%;object-fit:cover}.nuvio-detail[data-background=dominant_color] .detail-backdrop{filter:blur(60px);opacity:.35}.nuvio-detail .detail-hero{gap:28px}.nuvio-detail .detail-hero>img{width:180px;max-height:270px;object-fit:cover;border-radius:var(--poster-radius)}.nuvio-detail .detail-hero>div{min-width:0;flex:1}.nuvio-detail .detail-hero h2{font-size:30px;line-height:1.15;margin:12px 0}.detail-chip{display:inline-block;background:#ffffff15;border:1px solid #ffffff20;border-radius:6px;padding:5px 8px;font-size:11px;margin:4px}.detail-section{margin-top:28px;min-width:0}.detail-section h3{font-size:17px;margin:0 0 15px}.episode-toolbar{display:flex;justify-content:space-between;gap:10px;margin-bottom:15px}.episode-toolbar select{width:auto;min-width:120px}.episode-cards{display:flex;gap:12px;overflow-x:auto;padding:3px 2px 10px}.episode-card{background:var(--panel2);padding:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;flex:0 0 230px;text-align:left}.episode-card.selected{border-color:var(--accent)}.episode-card>img{width:100%;height:125px;object-fit:cover;display:block}.episode-card>span{display:block;padding:12px}.episode-card b{font-size:12px;display:block}.episode-card small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--muted);font-size:11px;margin-top:7px;line-height:1.5}.episode-list{flex-direction:column;max-height:450px;overflow:auto}.episode-list .episode-card{flex:none;display:flex;align-items:center}.episode-list .episode-card>img{width:160px;height:90px;flex:none}.blur-episode>img{filter:blur(13px)}.detail-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:15px;font-size:12px}.detail-facts dt{color:var(--muted);margin-bottom:5px}.detail-facts dd{margin:0}.detail-cast{display:flex;overflow:auto;gap:15px}.cast-card{flex:0 0 90px;font-size:11px}.cast-card>img{width:90px;height:110px;object-fit:cover;border-radius:9px}.cast-card b,.cast-card small{display:block;margin-top:5px}.cast-card small{color:var(--muted)}.trailer-frame{aspect-ratio:16/9;width:100%;border:0;border-radius:10px;margin:12px 0}.poster-transition{animation:poster-in .3s ease-out}.hover-preview{position:absolute;top:0;left:0;width:280px;background:var(--panel);border:1px solid var(--line);border-radius:12px;z-index:8;box-shadow:0 15px 50px #000b;overflow:hidden;pointer-events:none}.hover-preview>img{width:100%;height:150px;object-fit:cover}.hover-preview b{display:block;margin:12px}.hover-preview p{font-size:11px;line-height:1.5;margin:12px;color:var(--muted);display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.hover-preview iframe{margin:0}.cards:has(.hover-preview){overflow:visible}.media-card:has(.hover-preview){z-index:7}
html[data-landscape=true] .media-card{flex-basis:calc(var(--poster-width)*1.8)}html[data-landscape=true] .media-card .poster{height:calc(var(--poster-width)*1.0125)}html[data-hide-labels=true] .media-card .card-label,html[data-hide-labels=true] .media-card .card-meta{display:none}html[data-glass=true] .topbar,html[data-glass=true] .bottom-nav{background:color-mix(in srgb,var(--bg) 72%,transparent);backdrop-filter:blur(28px) saturate(1.5)}html[data-glow=true] #nav .active,html[data-glow=true] .bottom-nav .active{filter:drop-shadow(0 0 8px color-mix(in srgb,var(--accent) 35%,transparent))}html[data-depth=true][data-depthposters=true] .media-card .poster,html[data-depth=true][data-depthcontinue-watching=true] .cw-card .poster,html[data-depth=true][data-depthepisode-cards=true] .episode-card,html[data-depth=true][data-depthcast=true] .cast-card>img,html[data-depth=true][data-depthtrailers=true] .trailer-frame{outline:1px solid rgb(255 255 255 / var(--edge-strength));box-shadow:inset 0 0 20px rgb(255 255 255 / var(--sheen-strength))}html[data-depth=true] .poster:before{content:'';position:absolute;z-index:3;inset:0;pointer-events:none;border-radius:inherit;background:linear-gradient(135deg,rgb(255 255 255 / var(--sheen-strength)),transparent calc(30% + var(--edge-coverage)))}
@keyframes poster-in{from{transform:translateY(12px);opacity:.5}to{transform:none;opacity:1}}@media(min-width:901px){html[data-navigation=Sidebar] .topbar{position:fixed;left:0;top:0;bottom:0;width:84px;height:100dvh;padding:24px 12px;flex-direction:column;border-right:1px solid var(--line);border-bottom:0;gap:30px}html[data-navigation=Sidebar] .brand>span:last-child{display:none}html[data-navigation=Sidebar] .topbar nav{display:flex;flex-direction:column;gap:16px;margin:auto 0}html[data-navigation=Sidebar] .topbar nav button{padding:12px 1px;font-size:10px}html[data-navigation=Sidebar] .topbar nav button:before{content:attr(data-icon);display:block;font-size:23px;margin-bottom:6px}html[data-navigation=Sidebar] .topbar nav button.active:after{display:none}html[data-navigation=Sidebar] .account{font-size:0;width:40px;height:40px;padding:0}html[data-navigation=Sidebar] .account:after{content:'☻';font-size:22px}html[data-navigation=Sidebar] main{max-width:none;margin-left:84px;padding:30px 34px 70px}html[data-navigation=Sidebar][data-navstyle=expanded] .topbar{width:180px;align-items:stretch}html[data-navigation=Sidebar][data-navstyle=expanded] .brand>span:last-child{display:inline}html[data-navigation=Sidebar][data-navstyle=expanded] main{margin-left:180px}html[data-navigation=Sidebar][data-navstyle=expanded] .topbar nav button{font-size:13px;text-align:left;display:flex;align-items:center;gap:14px}html[data-navigation=Sidebar][data-navstyle=expanded] .topbar nav button:before{margin:0}html[data-navstyle=compact] .topbar nav button{font-size:0!important}html[data-navigation=TopBar][data-navstyle=expanded] .topbar nav button{padding:14px 24px}html[data-navstyle=classic] .topbar nav button.active{background:var(--panel2);border-radius:10px}body.profile-gate main.main-app{margin:0!important}body.profile-gate .topbar{display:none!important}}
@media(max-width:700px){.layout-heading{gap:10px}.layout-heading h1{font-size:26px}.layout-heading .action{font-size:11px;padding:9px}.layout-shell{display:block}.layout-nav{position:static;flex-direction:row;overflow:auto;margin:0 -14px 22px;padding:0 14px 8px}.layout-nav button{white-space:nowrap;padding:10px;font-size:11px}.layout-control{padding:15px 12px;gap:10px}.layout-control b{font-size:12px}.layout-control small{font-size:10px}.layout-range input{width:90px}.layout-item{padding:12px 10px;gap:6px;flex-wrap:wrap}.layout-item>div:first-child{min-width:100px}.layout-item b{font-size:12px}.order-buttons button{padding:5px 7px}.layout-item .action{font-size:10px}.theme-grid{grid-template-columns:repeat(4,1fr);padding:12px;gap:6px}.theme-choice{font-size:10px}.custom-colors{gap:10px;padding:10px;flex-wrap:wrap}.layout-preview{gap:15px;padding:12px}.layout-preview p{font-size:10px}.layout-summary{padding:12px;font-size:11px}.layout-summary .action{font-size:10px;padding:8px}.collection-folder.shape-landscape,.collection-folder.shape-wide{flex-basis:230px}.collection-folder.shape-square{flex-basis:150px}.home-hero{min-height:365px;border-radius:12px}.hero-copy{padding:65px 20px 65px;min-height:365px}.hero-copy h2{font-size:32px}.hero-copy p{font-size:12px}.hero-dots{bottom:22px;right:18px}.cw-card{flex-basis:200px}.cw-wide{flex-basis:275px}.cw-poster{flex-basis:var(--poster-width)}.nuvio-detail{padding:22px 16px}.nuvio-detail .detail-hero{gap:14px}.nuvio-detail .detail-hero>img{width:90px;max-height:145px}.nuvio-detail .detail-hero h2{font-size:22px}.nuvio-detail .detail-hero p{font-size:11px}.episode-list .episode-card>img{width:110px;height:85px}.detail-facts{font-size:11px}.folder-grid{grid-template-columns:repeat(auto-fill,minmax(min(var(--poster-width),calc(50vw - 25px)),1fr))}.folder-setting-list{margin-left:10px;padding-right:0}.hover-preview{display:none}html[data-navstyle=compact] .bottom-nav button{font-size:0;gap:0}html[data-navstyle=expanded] .bottom-nav{padding-top:13px;padding-bottom:calc(13px + env(safe-area-inset-bottom))}html[data-navstyle=classic] .bottom-nav button.active{background:var(--panel2);border-radius:10px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.brand-mark{background:linear-gradient(135deg,var(--accent),var(--accent-secondary),var(--accent-third))}html[data-navigation=TopBar][data-navstyle=compact] .topbar nav button:before{content:attr(data-icon);font-size:23px;display:block}.hover-preview{position:fixed;z-index:9}.cards:has(.hover-preview){overflow-x:auto;overflow-y:clip}html[data-depth=true] .poster:before{display:none}html[data-depth=true][data-depthposters=true] .media-card .poster:before,html[data-depth=true][data-depthcontinue-watching=true] .cw-card .poster:before{display:block}
