.home-banners{min-width:0;margin:0 0 28px;color:var(--text,#edf4fa)}
.home-banners .home-banners-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.home-banners .home-banners-heading h2{margin:0;font-size:1rem;line-height:1.6;font-weight:800}
.home-banners .home-banners-heading h2>span{color:#36caec;margin-inline-end:5px}
.home-banners .home-banners-stage{position:relative;overflow:hidden;border:0;background:transparent;box-shadow:none}
.home-banners .home-banners-track{display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;min-width:0;outline-offset:-3px}
.home-banners .home-banners-track::-webkit-scrollbar{display:none}
.home-banners .home-banner{position:relative;display:block;flex:0 0 100%;min-width:0;aspect-ratio:3.3/1;overflow:hidden;scroll-snap-align:start;scroll-snap-stop:normal;color:#fff;text-decoration:none;background:transparent}
.home-banners .home-banner:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#030c15e8 0%,#030c156b 30%,transparent 65%);pointer-events:none}
.home-banners .home-banner-image{display:block;width:100%;height:100%;object-fit:cover;object-position:center 35%;transition:transform .35s ease}
.home-banners .home-banner picture{display:block;width:100%;height:100%}
@media(hover:hover) and (pointer:fine){.home-banners .home-banner:hover img{transform:scale(1.025)}}
.home-banners .home-banner-caption{position:absolute;inset-inline:28px;bottom:43px;z-index:1;display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-shadow:0 2px 8px #000;max-width:85%}
.home-banners .home-banner-action{font-size:.73rem;font-weight:700;color:#a7ecfb}
.home-banners .home-banner-copy>strong{font-size:clamp(1.05rem,2.3vw,1.75rem);line-height:1.5;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.home-banners .home-banners-arrows{display:flex;gap:6px}
.home-banners .home-banners-arrows>button{display:grid;place-items:center;min-width:36px;width:36px;height:36px;padding:0;border-radius:50%;border:1px solid #31434f;background:#15212c;color:#f2f8fc;font-size:1.65rem;line-height:1;cursor:pointer;box-shadow:none}
.home-banners .home-banners-arrows>button:disabled{opacity:.35;cursor:default}
.home-banners .home-banners-dots{position:absolute;bottom:5px;inset-inline:0;display:flex;align-items:center;justify-content:center;gap:0;z-index:2;pointer-events:none}
.home-banners .home-banners-dots>button{position:relative;display:block;flex:none;width:30px;min-width:30px;height:30px;padding:0;border:0;background:transparent;box-shadow:none;cursor:pointer;pointer-events:auto}
.home-banners .home-banners-dots>button:before{content:"";position:absolute;inset-block-start:11px;inset-inline-start:11px;width:8px;height:8px;border-radius:20px;background:#d6e6ed8c;transition:width .15s ease,background .15s ease,inset-inline-start .15s ease}
.home-banners .home-banners-dots>button[aria-current=true]:before{width:24px;inset-inline-start:3px;background:#25c9eb;box-shadow:0 0 13px #25c9eb66}
.home-banners button:focus-visible,.home-banners .home-banner:focus-visible,.home-banners .home-banners-track:focus-visible{outline:2px solid #6ce1fc;outline-offset:-3px}
.home-banners [hidden]{display:none!important}
.home-banners .home-banners-heading{flex-wrap:wrap}
@media(max-width:640px),(max-width:1100px) and (pointer:coarse){.home-banners{margin-bottom:22px}.home-banners .home-banner{aspect-ratio:auto;display:flex;flex-direction:column}.home-banners .home-banner-image{height:auto;aspect-ratio:3.3/1;object-fit:contain;object-position:center;flex:none;transform:none}.home-banners .home-banner:after{display:none}.home-banners .home-banner-caption{position:static;inset:auto;max-width:none;padding:9px 0 0;gap:2px;background:transparent;text-shadow:none}.home-banners .home-banner-copy>strong{font-size:.95rem}.home-banners .home-banners-dots{position:static;min-height:30px;background:transparent}.home-banners .home-banners-arrows>button{min-width:44px;width:44px;height:44px}.home-banners .home-banners-heading{margin-bottom:7px}.home-banners .home-banners-heading h2{font-size:.95rem}}
@media(prefers-reduced-motion:reduce){.home-banners .home-banner-image,.home-banners .home-banners-dots>button:before{transition:none}.home-banners .home-banner:hover img{transform:none}}
@media(max-width:640px),(max-width:1100px) and (pointer:coarse){.home-banners .home-banner picture{height:auto;flex:none}}

/* Use the desktop overlay in the reader while keeping wide artwork intact. */
@media(max-width:1100px){
  [data-android-reader] .home-banners-stage{margin-inline:-24px}
  [data-android-reader] .home-banners .home-banner{display:block;aspect-ratio:2.5/1}
  [data-android-reader] .home-banners .home-banner picture{height:100%}
  [data-android-reader] .home-banners .home-banner-image{height:100%;aspect-ratio:auto;object-fit:contain;object-position:center top;transform:none}
  [data-android-reader] .home-banners [data-banner-cover] .home-banner-image{object-fit:cover;object-position:center 35%}
  [data-android-reader] .home-banners .home-banner:after{display:block}
  [data-android-reader] .home-banners .home-banner-caption{position:absolute;inset:auto 18px 25px;padding:0;gap:1px;text-shadow:0 2px 8px #000}
  [data-android-reader] .home-banners .home-banner-copy>strong{font-size:clamp(.95rem,2.3vw,1.45rem)}
  [data-android-reader] .home-banners .home-banners-dots{position:absolute;bottom:0}
}
@media(max-width:700px){
  [data-android-reader] .home-banners-stage{margin-inline:-18px}
}

.home-banner-details,.home-banner-poster{display:none}
.home-banner-copy{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.home-lead{display:flex;flex-direction:column;min-width:0}

/* Break the two carousels out of the centered content without crossing the scrollbar. */
body:has(#app>.home-lead){container-type:inline-size}
html:not([data-android-reader]) #app:has(>.home-lead>.home-banners){padding-top:0}
html:not([data-android-reader]) .home-lead>:is(.home-banners,.popular-section){
 width:100cqw;
 max-width:none;
 margin-inline:calc((100% - 100cqw)/2);
}
.home-lead .home-banners{position:relative;margin-block:0 18px}
.home-lead .home-banners-heading{
 position:absolute;
 z-index:3;
 inset-inline:clamp(12px,3vw,48px);
 top:50%;
 margin:0;
 pointer-events:none;
}
.home-lead .home-banners-heading h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.home-lead .home-banners-arrows{width:100%;justify-content:space-between}
.home-lead .home-banners-arrows button{pointer-events:auto;background:#131c29d9;color:var(--text);border-color:#b1c1d94d}

html:not([data-android-reader]) .home-lead .home-banner{
 display:block;
 aspect-ratio:auto;
 height:clamp(340px,29vw,530px);
 background:var(--bg);
}
html:not([data-android-reader]) .home-lead .home-banner picture{height:100%}
html:not([data-android-reader]) .home-lead .home-banner-image{
 height:100%;
 aspect-ratio:auto;
 object-fit:cover;
 object-position:center 36%;
 -webkit-mask-image:radial-gradient(ellipse 82% 110% at 50% 0%,#000 63%,transparent);
 mask-image:radial-gradient(ellipse 82% 110% at 50% 0%,#000 63%,transparent);
}
html:not([data-android-reader]) .home-lead .home-banner::after{
 display:block;
 background:linear-gradient(to top,var(--bg) 0%,#0b1019ba 27%,#0b10192b 98%),linear-gradient(to left,#0b10197a,transparent 76%);
}
html:not([data-android-reader])[dir=ltr] .home-lead .home-banner::after{
 background:linear-gradient(to top,var(--bg) 0%,#0b1019ba 27%,#0b10192b 98%),linear-gradient(to right,#0b10197a,transparent 76%);
}
html:not([data-android-reader]) .home-lead [data-banner-cover] .home-banner-image{object-position:center 29%}
html:not([data-android-reader]) .home-lead .home-banner-caption{
 position:absolute;
 display:flex;
 flex-direction:row;
 align-items:center;
 gap:clamp(16px,2.4vw,38px);
 inset-block:30px 55px;
 inset-inline:0;
 width:min(calc(100% - 144px),1240px);
 max-width:none;
 padding:0;
 margin-inline:auto;
 text-shadow:0 2px 8px #000b;
}
.home-lead .home-banner-copy{gap:8px;max-width:min(100%,635px)}
.home-lead .home-banner-copy>strong{
 display:-webkit-box;
 -webkit-box-orient:vertical;
 -webkit-line-clamp:2;
 overflow:hidden;
 font-size:clamp(1.8rem,2.8vw,3.1rem);
 line-height:1.25;
}
.home-lead .home-banner-action{color:#c2edff;font-size:.8rem;font-weight:800}
html:not([data-android-reader]) .home-lead .home-banner-poster{
 display:block;
 flex:none;
 width:clamp(136px,11vw,208px);
 height:auto;
 aspect-ratio:2/3;
 object-fit:cover;
 border:1px solid #d4e5f340;
 border-radius:12px;
 box-shadow:0 14px 36px #0007;
}
html:not([data-android-reader]) .home-lead .home-banner-details{display:grid;gap:8px}
.home-banner-badges,.home-banner-genres{display:flex;flex-wrap:wrap;gap:6px}
.home-banner-badges span,.home-banner-genres span{
 padding:2px 9px;
 border-radius:30px;
 color:#e0e8f1;
 background:#111b2be6;
 font-size:.72rem;
 line-height:1.65;
}
.home-banner-badges .home-banner-type{color:#b5dcff;background:#133954}
.home-banner-badges .home-banner-status{color:#b5e8d1;background:#173c35}
.home-banner-description{
 display:-webkit-box;
 -webkit-box-orient:vertical;
 -webkit-line-clamp:3;
 overflow:hidden;
 margin:0;
 color:#e1e8f1;
 font-size:clamp(.82rem,1.07vw,.99rem);
 line-height:1.75;
 text-align:start;
}

/* Announcements can contain text in the image, so preserve the whole design. */
html:not([data-android-reader]) .home-lead [data-banner-kind=external]{background:radial-gradient(ellipse at 50% 45%,#262842,transparent 74%)}
html:not([data-android-reader]) .home-lead [data-banner-kind=external] .home-banner-image{
 object-fit:contain;
 object-position:center;
 width:100%;
 padding:12px clamp(0px,4vw,72px) 76px;
 -webkit-mask-image:none;
 mask-image:none;
}
html:not([data-android-reader]) .home-lead [data-banner-kind=external]::after{background:linear-gradient(to top,var(--bg) 0%,#0b10194d 25%,transparent 48%)}
html:not([data-android-reader]) .home-lead [data-banner-kind=external] .home-banner-caption{
 inset-block:auto 45px;
 justify-content:center;
 text-align:center;
}
.home-lead [data-banner-kind=external] .home-banner-copy{align-items:center;gap:2px}
.home-lead [data-banner-kind=external] .home-banner-copy>strong{font-size:clamp(1.05rem,1.8vw,1.6rem)}
html:not([data-android-reader]) .home-lead .home-banners-dots{position:absolute;bottom:6px}
.home-lead .home-banners-dots>button{width:30px;height:40px}
.home-lead .home-banners-dots>button::before{inset-block-start:16px}

.home-lead .popular-section{margin-block:0 22px}
.popular-heading{
 display:flex;
 align-items:center;
 justify-content:center;
 gap:clamp(10px,1.2vw,18px);
 width:min(100% - 36px,1180px);
 margin:0 auto 12px;
}
.popular-heading::before,.popular-heading::after{content:"";height:1px;flex:1;background:var(--line)}
.popular-heading h2{margin:0;color:#bdc9d8;font-size:clamp(.93rem,1.25vw,1.12rem);font-weight:700;white-space:nowrap}
.popular-stage{position:relative}
.home-lead .popular-track{
 grid-auto-columns:clamp(142px,11.8vw,244px);
 justify-content:safe center;
 gap:8px;
 padding:2px clamp(10px,1.6vw,28px) 7px;
 scroll-padding-inline:clamp(10px,1.6vw,28px);
}
.popular-card>a{
 display:block;
 position:relative;
 isolation:isolate;
 overflow:hidden;
 aspect-ratio:4/5;
 border:1px solid #b0bfd82e;
 border-radius:8px;
 color:#f4f7fc;
 background:#172436;
}
.popular-card>a:focus-visible{outline:2px solid #7bdce9;outline-offset:-3px}
.popular-card-art,.popular-card-art img,.popular-card>a::after{position:absolute;inset:0;width:100%;height:100%}
.popular-card-art{display:grid;place-items:center;background:#172436;z-index:-2}
.popular-card-art img{display:block;object-fit:cover;object-position:center 29%;transition:transform .22s ease}
.popular-card>a::after{content:"";z-index:-1;background:linear-gradient(to top,#050a13 0%,#050a13cc 29%,transparent 68%)}
.popular-card-labels,.popular-card-copy{position:absolute;inset-inline:9px}
.popular-card-labels{top:7px;display:flex;align-items:flex-start;justify-content:space-between;gap:4px}
.popular-rank,.popular-kind{padding:1px 6px;border-radius:4px;font-size:.7rem;font-weight:800;line-height:1.6}
.popular-rank{color:#ffd889;background:#121922e8}
.popular-kind{color:#d4e6ff;background:#284d86db}
.popular-card-copy{bottom:9px}
.popular-card .popular-card-copy h3{
 display:-webkit-box;
 -webkit-box-orient:vertical;
 -webkit-line-clamp:2;
 overflow:hidden;
 min-height:0;
 margin:0;
 line-height:1.4;
 font-size:clamp(.875rem,1.1vw,1rem);
 text-align:match-parent;
}
.popular-card-copy small{color:#e0e9f4;font-size:.75rem}
.popular-arrows{position:absolute;inset-inline:7px;top:50%;transform:translateY(-50%);display:flex;justify-content:space-between;pointer-events:none}
.popular-arrows button{min-width:38px;min-height:44px;pointer-events:auto;padding:0;background:#131c29e6;font-size:1.48rem;line-height:1}
.popular-arrows button[hidden]{display:none}
@media(hover:hover) and (pointer:fine){.popular-card>a:hover img{transform:scale(1.035)}}

@media(max-width:700px){
 html:not([data-android-reader]) .home-lead .home-banner{height:clamp(265px,77vw,410px)}
 [data-android-reader] .home-lead .home-banner-copy>strong{font-size:.95rem}
 html:not([data-android-reader]) .home-lead .home-banner-caption{align-items:flex-end;width:calc(100% - 36px);inset-block:20px 46px}
 .home-lead .home-banner-copy>strong{font-size:clamp(1.3rem,5.3vw,2rem)}
 .home-lead .home-banners-heading{top:8px;inset-inline:8px}
 .home-lead .home-banners-arrows button{min-width:38px;width:38px;height:38px}
 .home-lead .home-banner-description{-webkit-line-clamp:2}
 .home-lead .popular-track{grid-auto-columns:clamp(138px,38vw,175px)}
 .popular-arrows{display:none}
}
@media(max-width:520px){
 html:not([data-android-reader]) .home-lead .home-banner-poster{display:none}
 .home-lead [data-banner-kind=series] .home-banner-action{display:none}
}
@media(prefers-reduced-motion:reduce){.popular-card-art img{transition:none}.popular-card>a:hover img{transform:none}}

.home-intro{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-block:0 22px;min-width:0}
.home-intro h1{margin:0;font-size:clamp(1.3rem,2.6vw,2.15rem);line-height:1.4}
.home-intro .button{flex:none}
.home-resume{display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:16px;margin-block:0 24px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--panel,#131d29)}
.home-small-cover{display:grid;place-items:center;align-self:center;width:100%;aspect-ratio:2/3;overflow:hidden;border-radius:8px;background:#172436}
.home-small-cover img{display:block;width:100%;height:100%;object-fit:cover}
.home-small-cover .cover-symbol{font-size:2rem}
.home-resume h2{margin:0 0 4px;color:var(--cyan);font-size:1rem}
.home-resume strong{display:block;font-size:1.1rem;overflow-wrap:anywhere}
.home-resume p{margin:2px 0 0;color:var(--muted);font-size:.85rem}
.home-resume-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px}
.home-library-link{color:var(--cyan);text-decoration:underline;text-underline-offset:3px}
.home-main>.app-promo{margin-block:0 26px}
.home-starters h2{font-size:1.35rem;margin:0 0 12px}
.home-starters ul{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr));gap:10px;margin:0;padding:0}
.home-starters a{display:grid;grid-template-columns:52px minmax(0,1fr);align-items:center;gap:12px;height:100%;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--panel,#131d29);overflow-wrap:anywhere}
.home-starters a:hover,.home-starters a:focus-visible{border-color:var(--cyan)}
.home-starters h3{font-size:.95rem;line-height:1.5;margin:0 0 4px}
.home-starters p{font-size:.82rem;line-height:1.55;color:var(--muted);margin:0}
@media(max-width:560px){
 .home-intro{gap:10px}
 .home-intro .button{padding-inline:11px;font-size:.84rem}
 .home-resume{grid-template-columns:48px minmax(0,1fr);gap:9px 11px}
 .home-resume-actions{grid-column:1/-1;justify-content:space-between}
 .home-resume-actions .button,.home-intro .button{min-height:44px}
}
#login-background-form{
 display:grid;
 grid-template-columns:minmax(0,1fr) minmax(180px,2fr);
 align-items:center;
 gap:1.5rem;
}
#login-background-form h2{margin-block-start:0}
#login-background-form label{display:grid;gap:.35rem;margin-block:1rem}
#login-background-form .row{flex-wrap:wrap}
.login-background-preview{
 display:block;
 width:100%;
 height:auto;
 aspect-ratio:16/9;
 object-fit:cover;
 border-radius:.75rem;
 background:var(--panel);
 border:1px solid var(--line);
}
@media(max-width:720px){
 #login-background-form{grid-template-columns:1fr;gap:1rem}
 #login-background-form .login-background-preview{max-height:240px}
}
