@font-face{font-family:"DM Sans";src:url(dm-sans.ttf);font-weight:100 1000;font-display:swap}
@font-face{font-family:"Instrument Serif";src:url(instrument-serif.ttf);font-display:swap}
:root{
    color-scheme:dark;
    --ink:#0b0c10;--panel:#14161d;--edge:#2a2b32;
    --text:#f6f1e8;--quiet:#b5b5be;--gold:#efd6a3;
    --inset:clamp(28px,5.3vw,112px);--header:clamp(65px,9.6vh,103px);
    font-family:"DM Sans",sans-serif;
    font-size:clamp(15px,1.38vw,25px);
}
*{box-sizing:border-box}
html{scrollbar-width:none}
html::-webkit-scrollbar{display:none}
body{margin:0;background:var(--ink);color:var(--text);min-height:100vh;overflow-x:hidden}
[hidden]{display:none!important}
button,input,select{font:inherit}
button{cursor:pointer;border:0;color:inherit}
button,input,select{outline:none}
button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--gold);outline-offset:4px}
.top{position:sticky;top:0;z-index:3;height:var(--header);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 var(--inset);background:#101116;border-bottom:1px solid #edca8a26}
.brand-lockup{display:flex;align-items:center;justify-self:start;gap:.78rem;white-space:nowrap}
.brand{display:flex;align-items:center;gap:.55rem;padding:.28rem .16rem;background:none;border-radius:8px;font-size:1.3rem;font-weight:750;letter-spacing:-.045em}
.brand:hover,.brand:focus-visible{background:#ffffff0d}
.all7{display:inline-flex;align-items:baseline;gap:.025em;padding-left:.78rem;border-left:1px solid #ffffff35;color:#fff;font-size:1.04rem;font-weight:850;line-height:1;letter-spacing:-.085em}
.all7-seven{font-style:italic;font-weight:900}
.brand-icon{display:grid;place-items:center;width:1.52rem;height:1.52rem;border:1px solid #eddaaf7a;border-radius:.44rem;background:#f3dfaf10}
.brand-icon::after,.play-icon::before{content:"";display:block;border-top:.28rem solid transparent;border-bottom:.28rem solid transparent;border-left:.46rem solid var(--gold);margin-left:.09rem}
.brand-tv{font-size:.65rem;letter-spacing:.12em;color:var(--gold);font-weight:650;margin-left:-.19rem;align-self:center}
nav{display:flex;align-items:center;gap:.35rem}
nav button,.account{background:transparent;border-radius:8px;min-height:2.35rem;padding:.48rem .85rem;color:var(--quiet);font-weight:650;font-size:.91rem}
nav button[aria-current="page"],.account[aria-current="page"]{background:#ebc48013;color:var(--gold)}
.account{justify-self:end;display:flex;align-items:center;gap:.55rem}
.profile-icon{width:1.05rem;height:1.05rem;border:1px solid #f3dfaf75;border-radius:50%;background:radial-gradient(circle at 50% 35%,var(--gold) 15%,transparent 17%),radial-gradient(ellipse at 50% 85%,var(--gold) 33%,transparent 36%)}
.detail-art{position:absolute;z-index:-2;top:0;right:0;width:76%;height:100%;object-fit:cover;object-position:center 43%}
.feature-dialog::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#090b10 2%,#090b10ed 28%,#090b1060 61%,#090b1015),linear-gradient(0deg,#090b10 0%,transparent 42%)}
.eyebrow{display:flex;align-items:center;gap:.55rem;color:var(--gold);font-size:.68rem;letter-spacing:.13em;text-transform:uppercase;font-weight:750;margin:0 0 .7rem}
.eyebrow::before{content:"";height:1px;width:1.1rem;background:currentColor}
h1,h2,h3,p{margin:0}
h1{font-family:"Instrument Serif",Georgia,serif;font-weight:400;letter-spacing:-.025em;font-size:clamp(3rem,6.2vw,7.2rem);line-height:.96;margin-bottom:.7rem;overflow-wrap:anywhere}
.feature-dialog h1{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
h2{font-size:1.28rem;letter-spacing:-.025em;font-weight:750}
h3{font-size:1rem;font-weight:700}
.meta,.muted{color:var(--quiet);line-height:1.45}
.meta{font-size:.86rem}
.actions{display:flex;gap:.66rem;flex-wrap:wrap;margin-top:1.25rem}
.action{background:#202129;border:1px solid #ffffff26;min-height:2.65rem;padding:.55rem 1.05rem;border-radius:8px;font-weight:720;display:inline-flex;align-items:center;justify-content:center;gap:.5rem}
.action.primary{background:var(--gold);color:#111016;border-color:var(--gold)}
.primary .play-icon::before{border-left-color:#111016}
.row-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:.78rem;gap:1rem}
.row-head h2{display:flex;align-items:center;gap:.55rem}
.row-head h2::before{content:"";width:3px;height:.9em;border-radius:2px;background:var(--gold)}
.rail,.grid{display:grid;gap:.7rem;padding:5px;margin:-5px}
.rail{grid-auto-flow:column;grid-auto-columns:calc((100% - 3.5rem)/6);overflow-x:auto;scrollbar-width:none;padding:8px 8px max(8px,.65rem);margin:-8px}
.rail::-webkit-scrollbar{display:none}
.grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.tile{display:flex;flex-direction:column;min-width:0;background:var(--panel);text-align:left;border:1px solid #ffffff1c;border-radius:11px;padding:0;overflow:hidden;scroll-margin-top:calc(var(--header) + .65rem)}
.tile:focus-visible{background:#22232c;border-color:#efd6a36b}
.art{position:relative;width:100%;aspect-ratio:16/9;background:linear-gradient(135deg,#28252d,#14161e)}
.art img{display:block;width:100%;height:100%;object-fit:cover}
.art-mark{position:absolute;left:.48rem;top:.48rem;font-size:.59rem;letter-spacing:.055em;background:#131116e8;color:#eee9db;border:1px solid #ffffff24;padding:.16rem .35rem;border-radius:4px;font-weight:700}
.progress{position:absolute;bottom:0;left:0;height:3px;background:var(--gold)}
.tile-copy{display:flex;flex:1;flex-direction:column;gap:.46rem;width:100%;padding:.65rem .67rem .6rem}
.tile-name{font-size:.76rem;font-weight:700;line-height:1.22;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.tile-facts{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:.42rem}
.tile-meta{min-width:0;font-size:.6rem;color:var(--quiet);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chips{display:flex;flex-wrap:wrap;gap:.55rem}
.chip{background:#181920;border:1px solid #ffffff22;border-radius:7px;padding:.42rem .7rem;color:var(--text)}
.chip[aria-pressed=true]{border-color:var(--gold);color:var(--gold);background:#f3dfaf15}
.page{padding:1.6rem var(--inset) 2.5rem}
.page h1{font-size:clamp(2.8rem,4.9vw,5.2rem);margin-bottom:.9rem}
.searchbar{display:flex;gap:.64rem;margin-bottom:1.2rem;max-width:42rem}
.field{display:block;border:1px solid var(--edge);background:#16171e;color:var(--text);border-radius:9px;min-height:2.65rem;padding:.58rem .72rem;min-width:0}
.searchbar input{flex:1}
.filters{display:flex;align-items:center;justify-content:space-between;gap:.8rem;flex-wrap:wrap;margin-bottom:1.35rem}
.selects{display:flex;gap:.6rem}
.selects select{font-size:.78rem;min-height:2rem}
.group+.group{margin-top:1.75rem}
.page :is(button,input,select){scroll-margin-top:calc(var(--header) + .65rem);scroll-margin-bottom:.6rem}
.continue-shelf+.featured,.continue-shelf+.discover-heading{margin-top:1.45rem}
.continue-shelf .row-head{justify-content:flex-start;margin-bottom:.55rem}
.continue-shelf .row-head .chip{font-size:.76rem}
.continue-card{min-height:5.6rem;background:linear-gradient(150deg,#302729,var(--panel) 82%)}
.continue-card .tile-copy{justify-content:center;padding:.7rem .8rem;gap:.28rem}
.continue-card .tile-name{font-size:.87rem}
.continue-action{font-size:.72rem;font-weight:750;color:var(--gold)}
.quick-queries{margin:0 0 .95rem}
.quick-queries h2{font-size:.79rem;color:var(--quiet);margin-bottom:.45rem}
.query-rail{display:flex;gap:.5rem;padding-bottom:8px}
.query-rail .chip{flex:none;max-width:min(16rem,80vw);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.selects{flex-wrap:wrap}
.search-status{margin-bottom:.9rem}
.status{margin-top:1rem;color:var(--quiet)}
.pages{margin-top:1.15rem}
.veil{position:fixed;inset:0;background:#07090ddb;z-index:8;display:grid;place-items:center;padding:var(--inset)}
#dialog{width:min(100%,57rem);max-height:94vh;overflow:auto;border:1px solid #ffffff23;border-radius:15px;background:#15161e;box-shadow:0 12px 40px #0008}
.feature-dialog{position:relative;isolation:isolate;overflow:hidden;min-height:17rem;padding:2.7rem 1.8rem 1.65rem;display:flex;justify-content:flex-end;flex-direction:column}
.feature-dialog::after{background:linear-gradient(90deg,#111722 4%,#111722ee 31%,#11172220),linear-gradient(0deg,#111722 0%,transparent 82%)}
.feature-dialog h1{font-size:clamp(2.6rem,5vw,5.3rem);max-width:75%}
.close{position:absolute;top:.75rem;right:.75rem;z-index:2;min-height:1.9rem;padding:.25rem .55rem;font-size:.72rem}
.account-box{max-width:31rem;background:var(--panel);border:1px solid var(--edge);padding:1.25rem;border-radius:12px}
.account-box form{display:grid;gap:.72rem;margin-top:1rem}
.account-box label{display:grid;gap:.28rem;color:var(--quiet);font-size:.8rem}
.notice{position:fixed;z-index:12;right:var(--inset);bottom:1.25rem;max-width:min(36rem,80vw);background:#252a33;border:1px solid #eadab35c;border-radius:10px;padding:.65rem .85rem;box-shadow:0 8px 32px #0009}
@media(max-width:740px){.rail{grid-auto-columns:calc((100% - 2.1rem)/4)}.grid{grid-template-columns:repeat(4,minmax(0,1fr))}}

.discover-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.15rem}
.discover-heading h1{margin-bottom:0}
.discover .rail{grid-auto-columns:calc((100% - 2.8rem)/5)}

.account-feedback{color:var(--quiet);font-size:.86rem;line-height:1.4}
.account-feedback.error{color:#ffb4a5}

.account-box{max-width:42rem}
.account-box form{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.account-box form .action{justify-self:start}
.account-feedback{grid-column:1/-1}
@media(max-width:580px){.account-box form{grid-template-columns:1fr}}

@media(max-width:740px){.brand-lockup{gap:.42rem}.brand{gap:.36rem;font-size:1.12rem}.all7{padding-left:.42rem;font-size:.9rem}.top nav button{padding-inline:.45rem}}

.latest-description{margin-bottom:.9rem}
.exit-confirmation{max-width:26rem;padding:1.6rem}
.veil:has(.exit-confirmation) #dialog{width:min(100%,26rem)}

.tile-resolution{flex:none;white-space:nowrap;font-size:.58rem;font-weight:750;color:var(--gold);padding:.14rem .35rem;border:1px solid #edca8a2d;border-radius:4px;background:#edca8a0c}
.detail-resolution{color:var(--gold);font-size:.82rem;margin-top:.3rem}


.featured{
    position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:flex-end;
    min-height:clamp(205px,40vh,500px);margin-bottom:1.35rem;padding:1.5rem 1.55rem;
    background:#191922;border:1px solid #edca8a34;border-radius:15px;
}
.featured-art{position:absolute;z-index:-2;inset:0 0 0 auto;width:77%;height:100%;object-fit:cover;object-position:center 43%}
.featured::after{
    content:"";position:absolute;z-index:-1;inset:0;
    background:linear-gradient(90deg,#15151dfc 0%,#15151ded 27%,#15151d37 70%,#15151d08),
               linear-gradient(0deg,#15151db8,transparent 66%);
}
.featured-copy{width:64%}
.page .featured h1{
    display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;
    font-size:clamp(2.55rem,5.2vw,6.35rem);margin-bottom:.52rem;
}
.featured .actions{margin-top:.95rem}
.grid-more{margin-top:1rem;scroll-margin-top:calc(var(--header) + .65rem)}
@media(max-width:740px){.featured-copy{width:78%}.featured{padding:1rem 1.2rem}}

@media(prefers-reduced-motion:no-preference){
    .tile{transition:background-color 110ms ease-out,border-color 110ms ease-out}
    .veil:not([hidden]) #dialog{animation:dialog-in 135ms ease-out}
    @keyframes dialog-in{
        from{opacity:0;transform:translateY(5px)}
        to{opacity:1;transform:translateY(0)}
    }
}


.filter-dialog{padding:1.15rem 1.4rem 1.4rem}
.veil:has(.filter-dialog) #dialog{width:min(100%,26rem)}
.filter-options{display:grid;gap:.45rem;margin:.85rem 0}
.filter-options button{justify-content:flex-start}
.filter-options button[aria-pressed=true]{border-color:var(--gold);color:var(--gold)}

.playback-issue{color:#f2c6ad;margin-top:.7rem;font-size:.82rem}

.art-online{position:absolute;right:.48rem;top:.48rem;padding:.16rem .35rem;border-radius:4px;background:#131116eb;color:var(--gold);font-size:.58rem;font-weight:700}

.app-settings{margin-top:1rem;display:flex;align-items:center;justify-content:space-between;gap:1rem}
.remember-session{display:inline-flex;align-items:center;gap:.55rem;justify-self:start;align-self:center;
    background:transparent;padding:.45rem .2rem;color:var(--text);border-radius:5px;font-size:.84rem}
.account-box> .remember-session{margin-top:.65rem}
.checkmark{width:1.05rem;height:1.05rem;border:1px solid var(--quiet);border-radius:4px;display:grid;place-items:center}
.remember-session[aria-checked=true] .checkmark{background:var(--gold);border-color:var(--gold);color:#15151b}
.remember-session[aria-checked=true] .checkmark::after{content:"✓";font-weight:900;font-size:.77rem}

.history-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.history-heading h1{margin:0}
.history-actions{display:flex;gap:.5rem}
.history-list{display:grid;gap:.42rem}
.history-entry{width:100%;display:grid;grid-template-columns:minmax(0,1fr) max-content max-content;
    align-items:center;gap:1rem;padding:.68rem .8rem;border:1px solid var(--edge);border-radius:8px;
    background:var(--panel);color:var(--text);text-align:left;scroll-margin-top:calc(var(--header) + .65rem)}
.history-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:650}
.history-size,.history-date{font-size:.73rem;color:var(--quiet);white-space:nowrap}
.history-date{color:var(--gold)}
.series-episode{grid-template-columns:max-content minmax(0,1fr) max-content}
.series-tile-text{min-height:7.5rem;background:linear-gradient(155deg,#2a2427,var(--panel) 75%)}
.series-tile-text .tile-copy{justify-content:flex-end;padding:.85rem}
.series-tile-text .tile-name{font:400 1.35rem/1.06 "Instrument Serif",Georgia,serif;color:var(--text)}

.film-preview{
    position:fixed;right:var(--inset);bottom:1rem;z-index:4;pointer-events:none;
    width:min(35rem,calc(100vw - 2 * var(--inset)));padding:.8rem 1.05rem;
    background:#171820;border:1px solid #efd6a34d;border-left:3px solid var(--gold);
    border-radius:10px;box-shadow:0 6px 22px #0009
}
.film-preview-top{top:calc(var(--header) + .55rem);bottom:auto}
.film-preview-title,.film-detail-title{color:var(--gold);font-size:1rem}
.film-preview-copy,.film-detail-copy{
    display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;
    font-size:.83rem;line-height:1.38;color:var(--text);overflow-wrap:anywhere
}
.film-preview-copy{margin:.26rem 0 .38rem;-webkit-line-clamp:3}
.film-preview-source{font-size:.64rem;color:var(--quiet)}
.film-detail{padding:.92rem 1.8rem 1.25rem;border-top:1px solid #efd6a32b}
.film-detail-copy{margin:.34rem 0 .6rem;-webkit-line-clamp:6}
.film-detail-source{font-size:.68rem;color:var(--quiet)}
.episode-file{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.episode-next{padding:1.4rem 1.6rem}
.episode-next h2{margin-bottom:.45rem}
.veil:has(.episode-next) #dialog{width:min(100%,30rem)}
