:root{color-scheme:dark;font-family:system-ui,sans-serif;background:#0d1020;color:#edf0ff}*{box-sizing:border-box}body{margin:0}header{display:flex;gap:14px;align-items:center;padding:18px 24px;background:#171c31;flex-wrap:wrap}header a{color:white;font-weight:800;text-decoration:none;font-size:22px}.beta{font-size:11px;background:#ffc857;color:#171717;border-radius:5px;padding:3px 6px}nav{display:flex;gap:8px;flex:1}main{max-width:1440px;margin:auto;padding:22px}button,input,select{font:inherit;color:inherit;border:1px solid #39435f;border-radius:9px;background:#212942;padding:11px 15px}button{cursor:pointer}button:hover,button.active{background:#3a4264}button:disabled{opacity:.45;cursor:default}.primary{background:#ed3e69}input{min-width:160px;flex:1}#toolbar,.connection,.controls,#folders{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:16px}#status{color:#b7c6df;min-height:28px}#content{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}.card{background:#192139;border:1px solid #303954;border-radius:14px;overflow:hidden;padding:12px;min-width:0}.card img{width:100%;height:135px;object-fit:cover;border-radius:8px}.card h3{font-size:16px;margin:10px 0}.card p{font-size:13px;color:#b7c6df}.card .actions{display:flex;gap:7px;flex-wrap:wrap}.list{grid-template-columns:1fr!important}.list .card{display:grid;grid-template-columns:150px 1fr;gap:16px}.list .card img{height:100px}.notice{padding:24px;background:#192139;border-radius:14px;grid-column:1/-1}video{max-height:50vh;width:100%;background:black;border-radius:12px}#player{margin-top:24px}#subtitle{text-align:center;font-size:24px;min-height:34px}#account{font-size:13px}label{display:flex;gap:8px;align-items:center}canvas.xr{position:fixed;inset:0;pointer-events:none;visibility:hidden}.controls{margin-top:12px}a{color:#9dc9ff}@media(max-width:650px){header,main{padding:14px}.list .card{grid-template-columns:100px 1fr}#content{grid-template-columns:repeat(2,minmax(0,1fr))}.card img{height:100px}button,input,select{padding:9px;font-size:14px}}
#library-filters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}.facet{position:relative;min-width:110px}.facet summary{cursor:pointer;border:1px solid #39435f;background:#212942;border-radius:8px;padding:10px}.facet-options{position:absolute;z-index:8;background:#192139;border:1px solid #39435f;padding:8px;max-height:260px;overflow:auto;min-width:200px;max-width:300px;display:flex;flex-direction:column;gap:4px}.facet-options button{text-align:left}.facet-options button[aria-pressed=true]{color:#ffc857}
#library-header{position:sticky;top:0;z-index:5;background:#0d1020;padding:12px 0 2px;border-bottom:1px solid #303954;margin-bottom:16px}#toolbar{flex-wrap:nowrap}#toolbar input{min-width:100px}#folders{max-height:24vh;overflow-y:auto;padding-bottom:6px}.library-source{white-space:nowrap;font-weight:700}.stars{display:inline-flex;gap:3px}.stars button{padding:5px 7px;font-size:21px;line-height:1}.stars button.on{color:#ffc857}@media(max-width:650px){#toolbar{gap:5px}.library-source{font-size:12px}#toolbar select{max-width:115px}#toolbar input{width:80px;min-width:70px}}
.card-cover{display:flex;align-items:center;justify-content:center;min-height:135px;background:#111b2b;border-radius:8px;color:#a2b2cc;font-size:12px}.card-cover img{object-fit:contain}.card-detail{min-width:0}.card .card-studio{color:#a7d3ff;font-weight:600}.card .card-subtitles{color:#a7f3d0}.card-play{min-width:100px;font-weight:700}.card .actions{align-items:center;margin-top:12px}.list .card-cover{min-height:110px}.list .card-cover img{height:130px}.card h3{line-height:1.4}.stars button{min-width:30px;min-height:36px}.list .card{grid-template-columns:180px 1fr}@media(max-width:650px){.list .card{grid-template-columns:110px 1fr}.card .actions{gap:5px}.stars{gap:1px}.stars button{padding:4px;min-width:25px}}
#library-filters .facet-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));min-width:340px;max-width:min(500px,90vw)}#library-filters .facet-options button{white-space:normal;font-size:14px}
.mirror-mode,.mirror-mode body{width:100%;height:100%;overflow:hidden;background:#000}
.mirror-mode header,.mirror-mode .connection,.mirror-mode #library-header,.mirror-mode #folders{display:none!important}
.mirror-mode:not(.mirror-live) header{display:flex!important;position:fixed;left:0;right:0;top:0;z-index:4}
.mirror-mode:not(.mirror-live) .connection{display:flex!important;position:fixed;left:12px;right:12px;top:76px;z-index:4;padding:12px;border-radius:10px;background:#172239}
.mirror-mode main{max-width:none;width:100%;height:100%;margin:0;padding:0}
.mirror-mode #content{display:block;width:100%;height:100%}
.mirror-mode #windows-screen-preview{position:fixed;inset:0;margin:0;padding:0;border:0;border-radius:0;background:#000}
.mirror-mode #windows-screen-preview video{position:fixed;inset:0;width:100%;height:100%;max-height:none!important;object-fit:contain;border-radius:0;background:#000}
.mirror-mode #windows-screen-preview [data-ui-status]{position:fixed;left:12px;right:12px;bottom:12px;z-index:2;margin:0;padding:10px 14px;border-radius:8px;background:rgba(12,18,28,.9);color:#edf0ff}
.mirror-mode.mirror-live #windows-screen-preview [data-ui-status]{display:none}
.mirror-mode #status{position:fixed;left:12px;right:12px;bottom:12px;z-index:3;margin:0;padding:10px 14px;border-radius:8px;background:rgba(12,18,28,.9)}
.mirror-mode.mirror-live #status{display:none}
.mirror-mode.mirror-live.mirror-alert #status{display:block}
.mirror-mode #remote-play-request{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:5;width:min(560px,calc(100% - 24px));padding:24px;border:2px solid #9dc9ff;border-radius:16px;background:#172239;box-shadow:0 0 0 100vmax #0009,0 12px 40px #000a;text-align:center}
.mirror-mode #remote-play-request h2{margin:0 0 8px;font-size:clamp(20px,4vw,28px)}
.mirror-mode #remote-play-request p{margin:0 0 18px;line-height:1.4}
.mirror-mode #remote-play-request button{margin:4px;min-height:52px}
.mirror-mode #remote-play-request .primary{display:block;width:100%;font-weight:700}
@media(max-width:650px){.mirror-mode:not(.mirror-live) .connection{top:105px}}
@media(max-width:650px){.mirror-mode:not(.mirror-live) .connection{align-items:stretch}}

/* The public WebXR page is an entry point; the DOM client stays mounted behind
   it so the decoded Windows stream can be used as an immersive video texture. */
html:not(.mirror-mode) #webxr-entry{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;min-height:100vh;min-height:100dvh;padding:24px;background:radial-gradient(circle at 50% 28%,#223453 0,#11192b 45%,#0d1020 100%)}
html.webxr-immersive #webxr-entry{display:none}
html:not(.mirror-mode) .entry-panel{width:min(100%,670px);margin:auto 0;text-align:center}
html:not(.mirror-mode) .entry-beta{margin:0 0 26px;color:#ffcf5e;font-size:clamp(26px,5vw,46px);font-weight:900;letter-spacing:.055em;line-height:1.12;text-shadow:0 3px 16px #0008}
html:not(.mirror-mode) .entry-feedback{max-width:670px;margin:18px 0 0;text-align:center;color:#d1dbef;font-size:clamp(15px,2vw,18px);line-height:1.45}
html:not(.mirror-mode) .entry-feedback a{color:#9dc9ff;font-weight:800}
html:not(.mirror-mode) .entry-windows{margin:28px auto 0;padding:22px 24px;border:1px solid #39435f;border-radius:16px;background:#172239;text-align:left;box-shadow:0 12px 30px #0005}
html:not(.mirror-mode) .entry-windows h2{margin:0 0 10px;font-size:clamp(22px,3vw,28px)}
html:not(.mirror-mode) .entry-windows h3{margin:24px 0 8px;font-size:18px}
html:not(.mirror-mode) .entry-windows p{margin:10px 0;line-height:1.5}
html:not(.mirror-mode) .entry-windows ol{padding-left:22px;margin:8px 0}
html:not(.mirror-mode) .entry-windows li{margin:10px 0;line-height:1.5}
html:not(.mirror-mode) .entry-windows .entry-download{display:inline-block;margin:8px 0;padding:12px 18px;border-radius:9px;background:#ed3e69;color:#fff;font-weight:800;text-decoration:none}
html:not(.mirror-mode) .entry-windows .entry-download[hidden],html:not(.mirror-mode) .entry-windows #appSignIn[hidden]{display:none}
html:not(.mirror-mode) .entry-windows .entry-download:hover,html:not(.mirror-mode) .entry-windows .entry-download:focus-visible{background:#ff547d;outline:2px solid #9dc9ff;outline-offset:2px}
html:not(.mirror-mode) .entry-windows #appDownloadStatus{font-size:15px;color:#d1dbef}
html:not(.mirror-mode) #webxr-runtime .connection{display:none}
html:not(.mirror-mode) #enter{width:min(100%,520px);min-height:100px;padding:24px 32px;border:2px solid #ff7798;border-radius:20px;background:#ed3e69;color:white;box-shadow:0 14px 45px #ed3e6944;font-size:clamp(28px,5vw,42px);font-weight:800;letter-spacing:.01em}
html:not(.mirror-mode) #enter:hover,html:not(.mirror-mode) #enter:focus-visible{background:#ff547d;outline:3px solid #9dc9ff;outline-offset:4px}
html:not(.mirror-mode) .entry-copy{margin:28px auto 0;max-width:590px;color:#d1dbef;font-size:clamp(16px,2vw,20px);line-height:1.5}
html:not(.mirror-mode) .entry-copy p{margin:0 0 18px}
html:not(.mirror-mode) .entry-copy a{font-weight:700}
html:not(.mirror-mode) .entry-note{font-size:15px;color:#aebdd7}
html:not(.mirror-mode) #entry-error:not([hidden]){padding:12px 16px;border:1px solid #ef476f;border-radius:9px;background:#3a1d32;color:#fff}
html:not(.mirror-mode) #webxr-runtime{position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.mirror-mode #webxr-entry{display:none}
