.vs-scene-gallery{display:none!important}.av-watch-meter,.av-watch-summary{box-sizing:border-box;padding:16px;margin:16px 0;border:1px solid #a875cf55;border-radius:12px;background:#16101f;color:#eee5f6;min-width:0}.av-watch-meter progress{display:block;width:100%;height:9px;accent-color:#c39ae5}.av-watch-meter p{margin:9px 0}.av-watch-meter small,.av-watch-summary p{display:block;line-height:1.6;color:#c4b4d0;font-size:13px}.av-watch-meter button{margin-top:12px;padding:10px 14px;border:1px solid #9364ad;border-radius:9px;background:#31203f;color:#fff;cursor:pointer}.av-watch-summary{max-width:1400px;margin:24px auto}.av-watch-summary strong{font-size:clamp(25px,4vw,38px)}.av-watch-meter [hidden]{display:none!important}.av-watch-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.av-watch-tabs a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border:1px solid #9e73b7;border-radius:10px;color:#eee0fa;text-decoration:none}.av-watch-tabs a[aria-current=page]{background:#b88ae0;color:#180d21}.top nav{flex-wrap:wrap}.top{gap:12px}.movie-intro{color:#c6b4d1}.watch-panel select{max-width:100%;box-sizing:border-box}.av-watch-meter,.av-watch-summary{overflow-wrap:anywhere}@media(max-width:700px){button:not(.card):not(.episode):not(.vs-scene-card),.av-watch-tabs a{min-height:44px}button:not(.card):not(.episode):not(.vs-scene-card){min-width:44px}.top{flex-wrap:wrap;padding:14px}.top nav{gap:12px}.top nav a{display:inline-flex;align-items:center;min-height:44px}.player-controls{align-items:stretch}.player-controls label{width:100%;min-width:0}.player-controls select,#avKodikTranslation{font-size:16px;min-height:44px}.av-watch-summary{margin:18px 8px}.av-watch-meter button{max-width:100%;white-space:normal}#avKodikLibrary{box-sizing:border-box;margin:18px 8px!important;padding:18px!important}.avp2.av-kodik .avk-toolbar{flex-wrap:wrap}.avp2.av-kodik .avk-toolbar select{max-width:100%;min-height:44px}}@media(prefers-reduced-motion:reduce){.av-watch-tabs *, .av-watch-meter *{scroll-behavior:auto!important;transition:none!important}}

@media(max-width:700px){#avAmbienceToggle{min-height:44px!important}.episode,.avp2-ep,.episode-grid button{min-width:44px!important;min-height:44px!important}.vs-home-rail{display:none!important}}
/* Keep rapid back/forward and player navigation native, without cross-document transition races. */
@view-transition{navigation:none}
/* Override later-injected sound-shell sizing as well as page-local rules. */
html body #avAmbienceToggle.av-ambience-toggle,html body #ruBtn,html body #enBtn,html body #editNameBtn{min-width:44px!important;min-height:44px!important;height:auto!important;max-height:none!important}


/* ANIME VOID 25.1 — home artwork and touch-friendly card polish.
   Pure CSS: no account, watch history, rewards, or message state changes. */
body.av-home{--av-card-radius:18px}
body.av-home main,body.av-home main>section{min-width:0}
body.av-home .hero{box-sizing:border-box;min-width:0;min-height:clamp(300px,34vw,430px);padding:clamp(24px,4.5vw,58px);isolation:isolate}
body.av-home .hero-content{width:100%;min-width:0;max-width:min(590px,100%)}
body.av-home .hero h1{font-size:clamp(30px,5vw,60px);line-height:1.12;overflow-wrap:break-word}
body.av-home .hero p{max-width:55ch}
body.av-home .grid,body.av-home .top-grid{min-width:0;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(10px,1.5vw,18px)}
body.av-home .card,body.av-home .top-card,body.av-home .airing-card{min-width:0;max-width:100%;box-sizing:border-box;overflow:hidden}
body.av-home .card{border-radius:var(--av-card-radius)}
body.av-home .card .poster{position:relative;width:100%;height:auto!important;aspect-ratio:2/3;overflow:hidden;background:var(--av-raised,#17121f)}
body.av-home .card .poster img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;display:block;object-fit:cover!important;object-position:center 22%;border-radius:0}
body.av-home .top-card img,body.av-home .airing-card img{display:block;width:100%;height:auto;aspect-ratio:2/3;object-fit:cover;object-position:center 22%;background:var(--av-raised,#17121f)}
body.av-home .top-card{border-radius:var(--av-card-radius);padding:9px}
body.av-home .top-name,body.av-home .airing-name,body.av-home .av-card-copy h3{overflow-wrap:anywhere}
body.av-home .card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
body.av-home .card-actions button,body.av-home .card-actions a{min-height:44px;max-width:100%}
body.av-home .card:focus-within,body.av-home .top-card:focus-visible,body.av-home .airing-card:focus-visible{outline:2px solid var(--av-accent,#bb8eea);outline-offset:2px}
body.av-home .top-card,body.av-home .airing-card{transition:transform .18s ease,border-color .18s ease}
@media(hover:hover) and (pointer:fine){
 body.av-home .top-card:hover,body.av-home .airing-card:hover{transform:translateY(-3px)}
}
@media(min-width:761px) and (max-width:1100px){
 body.av-home .grid,body.av-home .top-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
 body.av-home main{padding-inline:clamp(12px,4vw,22px)}
 body.av-home .hero{padding:clamp(20px,5vw,30px);min-height:285px;border-radius:18px}
 body.av-home .hero::after{font-size:clamp(90px,27vw,160px);right:-12px;bottom:-24px;letter-spacing:-.07em}
 body.av-home .hero h1{font-size:clamp(29px,7.5vw,44px)}
 body.av-home .hero p{font-size:14px;line-height:1.6}
 body.av-home .grid,body.av-home .top-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 body.av-home .card .poster,body.av-home .top-card img,body.av-home .airing-card img{aspect-ratio:2/3}
 body.av-home .top-card{padding:7px;border-radius:14px}
 body.av-home .av-card-copy{padding:11px 10px 0}
 body.av-home .av-card-copy h3{font-size:13px;line-height:1.35}
 body.av-home .top-name,body.av-home .airing-name{font-size:12px;line-height:1.35}
 body.av-home .card-actions{padding-inline:8px}
 body.av-home .card-actions button{white-space:normal}
 body.av-home .airing-row{scroll-padding-inline:12px;overscroll-behavior-inline:contain}
 body.av-home .airing-card{flex:0 0 clamp(148px,43vw,184px)}
}
@media(max-width:360px){
 body.av-home .grid,body.av-home .top-grid{gap:8px}
 body.av-home .hero{padding:18px}
 body.av-home .card-actions{gap:4px}
}
@media(prefers-reduced-motion:reduce){
 body.av-home .top-card,body.av-home .airing-card{transition:none!important;transform:none!important}
}


/* ANIME VOID 25.1.1 — defensive responsive text layout.
   Scoped to common UI surfaces to avoid changing player, profile data, or state. */
html{overflow-wrap:normal}
body{min-width:0}
main,main>section,article,.profile-hero,.anime-page,.av-insights,.av-watch-summary{min-width:0;max-width:100%;box-sizing:border-box}
h1,h2,h3,h4,p,summary,.profile-name,.anime-page .description,.av-card-copy h3,.top-name,.airing-name{overflow-wrap:break-word;hyphens:auto}
button,a,label,summary{overflow-wrap:break-word}
input,textarea,select{box-sizing:border-box;max-width:100%}
textarea{resize:vertical}
img,video,canvas,svg{max-width:100%}
img,video{height:auto}
dialog{box-sizing:border-box;max-width:min(96vw,720px);max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain}
pre,code{overflow-wrap:anywhere}
pre{max-width:100%;overflow-x:auto}
table{max-width:100%}
.av-watch-tabs,.list-tabs{scrollbar-width:thin}
@media(max-width:760px){
 body{max-width:100%}
 main{min-width:0}
 h1{font-size:clamp(24px,6.5vw,38px)}
 h2{font-size:clamp(20px,5vw,30px)}
 .av-home header .logo{min-width:0;overflow-wrap:anywhere}
 .av-home .card,.av-home .top-card,.av-home .airing-card{min-width:0}
 .av-watch-tabs a,.list-tab{flex-shrink:0}
 dialog{width:calc(100vw - 20px);margin:auto;padding:clamp(12px,4vw,24px)}
}
@media(prefers-reduced-motion:reduce){
 html:focus-within{scroll-behavior:auto}
}


/* ANIME VOID 25.2 foundation: keep existing profile, workshop and cloud data intact. */
body.av-profile-page .profile-hero,body.av-profile-page .profile-top,body.av-profile-page .profile-info,body.av-profile-page .name-row,body.av-profile-page .rank-row{min-width:0;max-width:100%;box-sizing:border-box}
body.av-profile-page #profileName{max-width:100%;overflow-wrap:anywhere;word-break:normal;hyphens:auto}
body.av-profile-page .name-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
body.av-profile-page .rank-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
body.av-profile-page #editNameBtn{flex:0 0 auto;min-width:44px;min-height:44px}
body.av-profile-page .profile-hero>.level-box{max-width:100%;box-sizing:border-box}
body.av-profile-page .share-row,body.av-profile-page .avp-toolbar,body.av-profile-page .pn-command{min-width:0;max-width:100%;box-sizing:border-box;flex-wrap:wrap}
body.av-profile-page .share-row a,body.av-profile-page .avp-toolbar button,body.av-profile-page .pn-command a,body.av-profile-page .pn-command button{min-height:44px;max-width:100%;white-space:normal}
body.av-profile-page .avp-dialog,body.av-profile-page .at-dialog,body.av-profile-page .at-full{max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);overscroll-behavior:contain}
body.av-profile-page .avp-dialog *,body.av-profile-page .at-dialog *,body.av-profile-page .at-full *{min-width:0}
body.av-profile-page .avp-dialog input,body.av-profile-page .at-dialog input,body.av-profile-page .avp-dialog select,body.av-profile-page .at-dialog select{max-width:100%;font-size:16px}
body.av-profile-page .at-scene{max-width:100%;background-position:center 42%}
@media(max-width:760px){
 body.av-profile-page .profile-hero{border-radius:16px!important}
 body.av-profile-page.vi-ready #avpBanner{height:clamp(170px,48vw,260px)}
 body.av-profile-page.vi-ready .profile-top{padding:0 16px 16px!important;gap:12px!important;margin-top:-38px!important;align-items:flex-start!important}
 body.av-profile-page.vi-ready #avatarButton{width:90px!important;height:90px!important;flex:0 0 90px;border-radius:18px!important}
 body.av-profile-page.vi-ready .profile-top .profile-info{flex:1 1 175px;padding-top:44px!important}
 body.av-profile-page.vi-ready #profileName{font-size:clamp(21px,5.5vw,32px);line-height:1.2}
 body.av-profile-page.vi-ready .profile-hero>.level-box{margin:0 16px 16px;width:calc(100% - 32px)}
 body.av-profile-page.vi-ready .profile-hero>.share-row{padding:0 16px 16px}
 body.av-profile-page .avp-toolbar,body.av-profile-page .pn-command{padding:14px 16px;gap:8px}
 body.av-profile-page .at-header{padding:16px;gap:10px}
 body.av-profile-page .at-body{padding:14px;gap:14px}
 body.av-profile-page .at-scene{height:clamp(175px,50vw,280px)}
}
@media(max-width:390px){
 body.av-profile-page.vi-ready .profile-top{gap:8px!important}
 body.av-profile-page.vi-ready #avatarButton{width:76px!important;height:76px!important;flex-basis:76px}
 body.av-profile-page.vi-ready .profile-top .profile-info{flex-basis:155px;padding-top:38px!important}
 body.av-profile-page.vi-ready #profileName{font-size:21px}
}
@media(prefers-reduced-motion:reduce){
 body.av-profile-page .pn-button,body.av-profile-page .at-button,body.av-profile-page .at-scene{animation:none!important;transition:none!important}
}

/* ANIME VOID 25.4: compact profile section navigation; existing sections stay mounted. */
.av-profile-page .av-profile-nav{position:relative;z-index:3;display:flex;align-items:center;gap:8px;max-width:100%;padding:12px 0 16px;margin:0 0 8px;overflow-x:auto;scrollbar-width:thin;scroll-snap-type:x proximity}
.av-profile-page .av-profile-nav a{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:44px;padding:10px 15px;border:1px solid var(--pn-line,#544263);border-radius:12px;background:var(--pn-panel,#201829);color:var(--pn-text,#f5efff);font:600 13px/1.3 system-ui,sans-serif;text-decoration:none;white-space:nowrap;scroll-snap-align:start;transition:background .18s,border-color .18s}
.av-profile-page .av-profile-nav a:hover,.av-profile-page .av-profile-nav a:focus-visible{background:#47305e;border-color:#c99cf4;color:#fff}
.av-profile-page .av-profile-nav a:focus-visible{outline:3px solid #d8b3ff;outline-offset:2px}
.av-profile-page .av-profile-nav-title{margin:0 8px 0 0;flex:0 0 auto;color:var(--pn-muted,#c4b8d0);font:700 12px/1.4 system-ui}
.av-profile-page .av-profile-nav-target{scroll-margin-top:90px}
@media(max-width:760px){.av-profile-page .av-profile-nav{margin:0 -8px 8px;padding:8px 8px 14px;gap:7px}.av-profile-page .av-profile-nav a{padding:10px 12px;font-size:12px}.av-profile-page .av-profile-nav-title{display:none}.av-profile-page .av-profile-nav-target{scroll-margin-top:68px}}
@media(prefers-reduced-motion:reduce){.av-profile-page .av-profile-nav a{transition:none}}

/* ANIME VOID 25.5 — quieter hero, progressive disclosure of secondary actions. */
.av-home .hero-content{max-width:min(100%,800px)}
.av-home .hero-content #heroText{max-width:49ch;line-height:1.55;text-wrap:pretty}
.av-home .av-home-more{display:inline-block;vertical-align:middle;position:relative;margin:8px 0 0 8px;max-width:100%;z-index:8}
.av-home .av-home-more>summary{list-style:none;display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:10px 16px;border:1px solid #725d87;border-radius:12px;background:#20182c;color:#f7f0ff;font:600 13px/1.3 system-ui;cursor:pointer}
.av-home .av-home-more>summary::-webkit-details-marker{display:none}
.av-home .av-home-more>summary:focus-visible{outline:3px solid #d5aaff;outline-offset:3px}
.av-home .av-home-more[open]>summary{background:#47305e;border-color:#c49ae9}
.av-home .av-home-more-actions{display:flex;flex-wrap:wrap;gap:8px;padding:12px;margin-top:8px;max-width:min(440px,calc(100vw - 36px));background:#181221;border:1px solid #6b547c;border-radius:14px;box-shadow:0 12px 35px #0007}
.av-home .av-home-more-actions>*{min-height:44px;max-width:100%;box-sizing:border-box}
.av-home .hero-content #openCatalogBtn,.av-home .hero-content #randomBtn{min-height:44px}
@media(max-width:640px){.av-home .av-home-more{display:block;width:max-content;margin:10px 0 0}.av-home .av-home-more-actions{width:min(330px,calc(100vw - 40px))}.av-home .av-home-more-actions>*{width:100%;justify-content:center}.av-home .hero-content #heroText{font-size:clamp(14px,3.8vw,16px)}}

/* ANIME VOID 25.6: one discoverable entry point for existing cosmetic tools. */
.av-profile-page .av-workshop-hub{position:relative;flex:0 0 auto;align-self:center}
.av-profile-page .av-workshop-hub>summary{list-style:none;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:1px solid #a87bcf;border-radius:12px;background:linear-gradient(120deg,#59336f,#302040);color:#fff;white-space:nowrap;font:700 13px/1.3 system-ui;cursor:pointer}
.av-profile-page .av-workshop-hub>summary::-webkit-details-marker{display:none}
.av-profile-page .av-workshop-hub>summary:focus-visible,.av-profile-page .av-workshop-hub-menu button:focus-visible{outline:3px solid #e3bdff;outline-offset:2px}
.av-profile-page .av-workshop-hub[open]>summary{border-color:#e4b6ff;background:#654187}
.av-profile-page .av-workshop-hub-menu{position:absolute;top:calc(100% + 8px);left:0;z-index:30;width:min(280px,calc(100vw - 40px));padding:9px;display:grid;gap:6px;border:1px solid #8b69a7;border-radius:14px;background:#1b1427;box-shadow:0 15px 35px #0009}
.av-profile-page .av-workshop-hub-menu button{display:block;width:100%;min-height:44px;text-align:left;white-space:normal;overflow-wrap:anywhere;padding:11px 13px;border:1px solid transparent;border-radius:9px;background:#2a2038;color:#f9f0ff;font:600 13px/1.3 system-ui;cursor:pointer}
.av-profile-page .av-workshop-hub-menu button:hover{border-color:#b990d8;background:#47315b}
@media(max-width:760px){.av-profile-page .av-workshop-hub>summary{font-size:12px;padding:10px 12px}}

/* Keep the workshop popover visible outside the horizontally scrolling navigation. */
.av-profile-page .av-workshop-hub-menu{position:fixed;top:clamp(96px,18vh,190px);left:clamp(12px,4vw,64px);max-height:min(340px,65dvh);overflow-y:auto}

/* ANIME VOID 25.7 — viewport-safe homepage hero at mobile and desktop sizes. */
.av-home main,.av-home main>*{min-width:0}
.av-home main .hero{box-sizing:border-box;width:100%;min-width:0;max-width:100%;overflow:hidden}
.av-home main .hero .hero-content{box-sizing:border-box;width:100%;min-width:0;max-width:720px}
.av-home main .hero #heroTitle{font-size:clamp(30px,4.5vw,58px);line-height:1.12;letter-spacing:-.035em;overflow-wrap:normal;text-wrap:balance;max-width:100%;margin:16px 0 14px}
.av-home main .hero #heroText{font-size:clamp(14px,1.5vw,17px);line-height:1.55;max-width:48ch;margin:0 0 18px;overflow-wrap:break-word;hyphens:none}
.av-home main .hero .av-hero-actions{display:flex;align-items:center;align-content:flex-start;gap:10px;flex-wrap:wrap;max-width:100%;min-width:0}
.av-home main .hero .av-hero-actions>#openCatalogBtn,.av-home main .hero .av-hero-actions>#randomBtn{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:46px;max-width:100%;margin:0;padding:12px 18px;text-align:center;font-size:clamp(13px,1.25vw,15px);line-height:1.35;white-space:normal;overflow-wrap:anywhere}
.av-home main .hero .av-hero-actions>.av-home-more{display:block;position:relative;box-sizing:border-box;flex:0 0 auto;margin:0;max-width:100%}
.av-home main .hero .av-hero-actions>.av-home-more>summary{box-sizing:border-box;min-height:46px;margin:0;padding:12px 16px}
.av-home main .hero .av-home-more-actions{box-sizing:border-box;position:absolute;top:calc(100% + 6px);left:0;z-index:20;margin:0;width:min(320px,calc(100vw - 48px));max-width:calc(100vw - 48px)}
.av-home main .hero .av-home-more-actions>.secondary{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:10px 12px;white-space:normal;text-align:center}
@media(min-width:761px){.av-home main .hero{padding:clamp(28px,4vw,56px)}.av-home main .hero .av-hero-actions{gap:12px}.av-home main .hero .av-home-more-actions{left:auto;right:0}}
@media(max-width:760px){.av-home main .hero{min-height:0;padding:clamp(18px,5vw,28px);border-radius:18px}.av-home main .hero #heroTitle{font-size:clamp(28px,7.6vw,42px);line-height:1.13;letter-spacing:-.035em;margin:12px 0}.av-home main .hero #heroText{font-size:clamp(13px,3.6vw,16px);line-height:1.5;margin:0 0 18px}.av-home main .hero .av-hero-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px;width:100%}.av-home main .hero .av-hero-actions>#openCatalogBtn{grid-column:1/-1;width:100%}.av-home main .hero .av-hero-actions>#randomBtn{grid-column:1;min-width:0;width:100%;padding:11px 8px}.av-home main .hero .av-hero-actions>.av-home-more{grid-column:2;width:100%}.av-home main .hero .av-hero-actions>.av-home-more>summary{width:100%;justify-content:center;padding:11px 8px}.av-home main .hero .av-home-more-actions{left:auto;right:0;width:min(320px,calc(100vw - 56px))}}
@media(max-width:350px){.av-home main .hero{padding:16px}.av-home main .hero #heroTitle{font-size:clamp(25px,8vw,30px)}.av-home main .hero .av-hero-actions{grid-template-columns:minmax(0,1fr)}.av-home main .hero .av-hero-actions>#openCatalogBtn,.av-home main .hero .av-hero-actions>#randomBtn,.av-home main .hero .av-hero-actions>.av-home-more{grid-column:1;width:100%}}

/* Expanded actions participate in hero height; never clip inside overflow-hidden hero. */
.av-home main .hero .av-hero-actions>.av-home-more[open]{flex-basis:100%}
.av-home main .hero .av-hero-actions>.av-home-more[open] .av-home-more-actions{position:static;display:flex;flex-wrap:wrap;margin-top:8px;width:min(100%,400px);max-width:100%}
@media(max-width:760px){.av-home main .hero .av-hero-actions>.av-home-more[open]{grid-column:1/-1}.av-home main .hero .av-hero-actions>.av-home-more[open] .av-home-more-actions{width:100%}}

/* ANIME VOID 25.8: shared responsive layout safety, without hiding interactive content. */
body.av-home,body.av-profile-page{max-width:100%;overflow-x:clip}
body.av-home main,body.av-profile-page main{box-sizing:border-box;min-width:0;max-width:100%}
body.av-home main :is(section,article,aside,nav,form,fieldset),body.av-profile-page main :is(section,article,aside,nav,form,fieldset){min-width:0}
body.av-home main :is(img,video,canvas,svg),body.av-profile-page main :is(img,video,canvas,svg){max-width:100%}
body.av-home main :is(input,select,textarea),body.av-profile-page main :is(input,select,textarea){box-sizing:border-box;max-width:100%}
body.av-home main :is(h1,h2,h3,p),body.av-profile-page main :is(h1,h2,h3,p){overflow-wrap:break-word}
body.av-home :is(.av-about-dialog,.av-ambience-panel,.vs-dialog,.at-dialog,.avp-dialog),body.av-profile-page :is(.av-about-dialog,.av-ambience-panel,.vs-dialog,.at-dialog,.avp-dialog){box-sizing:border-box;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}
body.av-home .av-shortcuts,body.av-profile-page .av-profile-nav{max-width:100%;box-sizing:border-box}
@media(max-width:600px){
 body.av-home main,body.av-profile-page main{padding-inline:max(12px,env(safe-area-inset-left)) max(12px,env(safe-area-inset-right))}
 body.av-home main :is(.hero,.support-panel),body.av-profile-page main :is(.profile-hero,.stats-section,.activity-section,.charts-section,.list-section,.achievements-section){box-sizing:border-box;max-width:100%}
 body.av-home main :is(button,a),body.av-profile-page main :is(button,a){touch-action:manipulation}
 body.av-home main :is(input,select,textarea),body.av-profile-page main :is(input,select,textarea){font-size:max(16px,1em)}
}

/* ANIME VOID 26.0 / Profile Reborn: distinct, responsive controls above profile content. */
.av-profile-page .av-profile-reborn-toolbar{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;max-width:100%;min-width:0;padding:18px clamp(16px,2.4vw,28px);margin:0 0 12px;border:1px solid var(--pn-line,#614a78);border-radius:18px;background:linear-gradient(115deg,#342144,#1a1428 65%);color:#f7f0ff}
.av-profile-page .av-profile-reborn-label{display:flex;flex-direction:column;gap:5px;min-width:0}
.av-profile-page .av-profile-reborn-label strong{font:800 clamp(15px,1.6vw,20px)/1.2 system-ui;letter-spacing:.09em}
.av-profile-page .av-profile-reborn-label span{color:#cdbbdb;font:400 12px/1.4 system-ui;overflow-wrap:anywhere}
.av-profile-page .av-profile-reborn-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap;min-width:0}
.av-profile-page .av-profile-reborn-link{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;border:1px solid #795b91;border-radius:12px;background:#2b203a;color:#f6edff;text-decoration:none;white-space:nowrap;font:650 13px/1.3 system-ui}
.av-profile-page .av-profile-reborn-link:hover{background:#49305d;border-color:#c49be5}
.av-profile-page .av-profile-reborn-link:focus-visible{outline:3px solid #e0b9ff;outline-offset:2px}
.av-profile-page .av-profile-reborn-toolbar .av-workshop-hub{position:relative;flex:0 0 auto}
.av-profile-page .av-profile-reborn-toolbar .av-workshop-hub-menu{position:absolute;top:calc(100% + 8px);left:auto;right:0;z-index:40;width:min(280px,calc(100vw - 36px));max-height:min(340px,65dvh);overflow-y:auto}
.av-profile-page .av-profile-reborn-toolbar .av-workshop-hub-menu button{white-space:normal}
.av-profile-page .av-profile-nav{margin-top:0}
@media(max-width:760px){.av-profile-page .av-profile-reborn-toolbar{padding:15px;gap:12px;border-radius:15px}.av-profile-page .av-profile-reborn-label{width:100%}.av-profile-page .av-profile-reborn-actions{width:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.av-profile-page .av-profile-reborn-actions>.av-workshop-hub{grid-column:1/-1;width:100%}.av-profile-page .av-profile-reborn-actions>.av-workshop-hub>summary{width:100%;box-sizing:border-box}.av-profile-page .av-profile-reborn-link{min-width:0;width:100%;padding:10px 8px;font-size:12px}.av-profile-page .av-profile-reborn-toolbar .av-workshop-hub-menu{left:0;right:auto;width:100%;box-sizing:border-box}}
@media(max-width:360px){.av-profile-page .av-profile-reborn-actions{grid-template-columns:minmax(0,1fr)}.av-profile-page .av-profile-reborn-actions>.av-workshop-hub{grid-column:1}.av-profile-page .av-profile-reborn-link{font-size:13px}}

/* ANIME VOID 26.1 — Profile Reborn hero: avatar, identity, XP and secondary actions. */
.av-profile-page .profile-hero{box-sizing:border-box;min-width:0;max-width:100%;isolation:isolate}
.av-profile-page .profile-hero>.profile-top{box-sizing:border-box;display:flex;align-items:center;gap:clamp(14px,2.3vw,26px);flex-wrap:wrap;min-width:0;max-width:100%}
.av-profile-page .profile-hero .profile-info{box-sizing:border-box;flex:1 1 260px;min-width:0;max-width:100%}
.av-profile-page .profile-hero .name-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}
.av-profile-page .profile-hero #profileName{margin:0;min-width:0;max-width:100%;overflow-wrap:anywhere;text-wrap:pretty}
.av-profile-page .profile-hero #editNameBtn{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border-radius:12px;line-height:1;cursor:pointer}
.av-profile-page .profile-hero #avatarButton{box-sizing:border-box;cursor:pointer;flex-shrink:0}
.av-profile-page .profile-hero #avatarButton:focus-visible,.av-profile-page .profile-hero #editNameBtn:focus-visible,.av-profile-page .profile-hero #profileExtraActions>summary:focus-visible{outline:3px solid #e0b4ff;outline-offset:3px}
.av-profile-page .profile-hero .rank-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}
.av-profile-page .profile-hero .rank-row>*{max-width:100%;overflow-wrap:anywhere}
.av-profile-page .profile-hero>.level-box{box-sizing:border-box;max-width:100%;min-width:0}
.av-profile-page .profile-hero .level-bar{overflow:hidden;max-width:100%;box-sizing:border-box}
.av-profile-page .profile-hero .level-bar>#levelFill{max-width:100%}
.av-profile-page .profile-hero .av-reborn-extras{box-sizing:border-box;min-width:0;max-width:100%;margin:12px clamp(12px,2.5vw,34px) 20px;border:1px solid #614778;border-radius:13px;background:#1b1426}
.av-profile-page .profile-hero .av-reborn-extras>summary{box-sizing:border-box;min-height:44px;padding:13px 16px;cursor:pointer;font:650 13px/1.4 system-ui;color:#e9d7f8}
.av-profile-page .profile-hero .av-reborn-extras[open]>summary{border-bottom:1px solid #614778}
.av-profile-page .profile-hero .av-reborn-extras .share-row{box-sizing:border-box;display:flex;flex-wrap:wrap;gap:8px;padding:12px 16px;min-width:0}
.av-profile-page .profile-hero .av-reborn-extras .share-btn{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0;max-width:100%;text-align:center;white-space:normal;overflow-wrap:anywhere}
.av-profile-page .profile-hero .av-reborn-extras .dc-basis{padding:0 16px 12px;max-width:100%;overflow-wrap:break-word}
@media(max-width:760px){
 .av-profile-page.vi-ready .profile-hero>.profile-top{align-items:center!important;gap:14px!important;padding:0 16px 18px!important;margin-top:-34px!important}
 .av-profile-page.vi-ready .profile-hero #avatarButton{width:96px!important;height:96px!important;flex:0 0 96px!important;border-radius:18px!important}
 .av-profile-page.vi-ready .profile-hero .profile-info{flex:1 1 150px;padding-top:40px!important}
 .av-profile-page .profile-hero #profileName{font-size:clamp(21px,5vw,30px);letter-spacing:-.025em}
 .av-profile-page.vi-ready .profile-hero>.level-box{margin:0 16px 16px!important;width:calc(100% - 32px)!important}
 .av-profile-page .profile-hero .av-reborn-extras{margin:12px 16px 18px}
 .av-profile-page .profile-hero .av-reborn-extras .share-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .av-profile-page .profile-hero .av-reborn-extras .share-btn{width:100%;font-size:12px!important}
}
@media(max-width:390px){
 .av-profile-page.vi-ready .profile-hero>.profile-top{gap:10px!important}
 .av-profile-page.vi-ready .profile-hero #avatarButton{width:80px!important;height:80px!important;flex-basis:80px!important}
 .av-profile-page.vi-ready .profile-hero .profile-info{flex-basis:145px}
 .av-profile-page .profile-hero .av-reborn-extras .share-row{grid-template-columns:minmax(0,1fr)}
}

/* ANIME VOID 26.2: coherent stat cards and responsive section hierarchy. */
.av-profile-page #profileStats{box-sizing:border-box;min-width:0;max-width:100%;margin-block:24px}
.av-profile-page .av-reborn-section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;min-width:0;margin:0 0 16px}
.av-profile-page .av-reborn-section-heading>div{min-width:0;flex:1 1 220px}
.av-profile-page .av-reborn-eyebrow{display:block;font:750 10px/1.5 system-ui;letter-spacing:.16em;color:#c9a1ef}
.av-profile-page .av-reborn-section-heading h2{font:750 clamp(21px,2.3vw,30px)/1.2 system-ui;color:var(--pn-text,#f8f0ff);margin:5px 0 7px;letter-spacing:-.02em}
.av-profile-page .av-reborn-section-heading p{margin:0;color:var(--pn-muted,#bfaed1);font:400 13px/1.5 system-ui}
.av-profile-page .av-reborn-section-link{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;border:1px solid #72558b;border-radius:11px;color:#f5e8ff;background:#281b35;text-decoration:none;font:650 12px/1.3 system-ui;white-space:nowrap}
.av-profile-page .av-reborn-section-link:hover{border-color:#c5a0e8;background:#422b55}
.av-profile-page .av-reborn-section-link:focus-visible{outline:3px solid #dfb6ff;outline-offset:2px}
.av-profile-page #profileStats>.stats-row{box-sizing:border-box;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;width:100%;min-width:0}
.av-profile-page #profileStats .stat-card{box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:9px;min-width:0;max-width:100%;min-height:154px;padding:clamp(13px,1.5vw,22px);border:1px solid var(--pn-line,#5c4671);border-radius:16px;background:linear-gradient(145deg,#2a1c39,#181321);text-align:left;overflow:hidden}
.av-profile-page #profileStats .stat-card .stat-icon{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;flex:0 0 36px;border-radius:11px;background:#a16bd11f;font-size:20px}
.av-profile-page #profileStats .stat-card strong{display:block;max-width:100%;min-width:0;font:800 clamp(23px,2.5vw,36px)/1.1 system-ui;letter-spacing:-.035em;color:#f8edff;overflow-wrap:anywhere}
.av-profile-page #profileStats .stat-card>span:last-child{font:500 12px/1.45 system-ui;color:#c9b9d7;max-width:100%;overflow-wrap:anywhere}
.av-profile-page #profileStats #dailyQuests{box-sizing:border-box;max-width:100%;min-width:0;margin-top:18px}
@media(max-width:1100px){.av-profile-page #profileStats>.stats-row{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.av-profile-page #profileStats{margin-block:18px}.av-profile-page .av-reborn-section-heading{align-items:flex-start;gap:10px}.av-profile-page #profileStats>.stats-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.av-profile-page #profileStats .stat-card{min-height:130px;padding:13px;gap:8px}.av-profile-page #profileStats .stat-card strong{font-size:clamp(22px,6vw,30px)}.av-profile-page #profileStats .stat-card>span:last-child{font-size:11px}}
@media(max-width:350px){.av-profile-page #profileStats .stat-card{padding:11px}.av-profile-page #profileStats .stat-card strong{font-size:22px}.av-profile-page .av-reborn-section-link{width:100%}}

/* ANIME VOID 26.3 — Profile Reborn achievements: flexible award gallery. */
.av-profile-page #profileAchievements{box-sizing:border-box;min-width:0;max-width:100%;margin-block:24px;padding:clamp(16px,2.5vw,28px);border:1px solid var(--pn-line,#5d4773);border-radius:20px;background:linear-gradient(150deg,#271a36,#171320 72%);overflow:hidden}
.av-profile-page .av-reborn-achievements-intro{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 16px}
.av-profile-page .av-reborn-achievements-intro p{margin:0;max-width:540px;color:#cbb9d9;font:400 12px/1.5 system-ui}
.av-profile-page #profileAchievements>.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;margin-bottom:18px}
.av-profile-page #profileAchievements>.section-heading h2{margin:0 0 6px;font:750 clamp(22px,2.6vw,30px)/1.2 system-ui;color:#f7ecff}
.av-profile-page #profileAchievements>.section-heading .subtitle{font:500 13px/1.5 system-ui;color:#c7b3d9}
.av-profile-page #profileAchievements #otakuPath{box-sizing:border-box;min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
.av-profile-page #profileAchievements #achievementsGrid{box-sizing:border-box;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;min-width:0;max-width:100%}
.av-profile-page #profileAchievements #achievementsGrid>*{box-sizing:border-box;min-width:0;max-width:100%;overflow-wrap:anywhere}
.av-profile-page #profileAchievements #achievementsGrid :is(img,svg){max-width:100%;height:auto}
.av-profile-page #profileAchievements #achievementsGrid :is(button,a){box-sizing:border-box;max-width:100%;overflow-wrap:anywhere}
@media(max-width:980px){.av-profile-page #profileAchievements #achievementsGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.av-profile-page #profileAchievements{padding:16px;border-radius:16px;margin-block:18px}.av-profile-page .av-reborn-achievements-intro{align-items:flex-start;flex-direction:column;gap:4px}.av-profile-page #profileAchievements #achievementsGrid{grid-template-columns:minmax(0,1fr);gap:10px}}

/* ANIME VOID 26.4 — Workshop Reborn entrypoint: readable actions and anchored popover. */
.av-profile-page .av-profile-reborn-toolbar{position:relative;z-index:15}
.av-profile-page .av-profile-reborn-toolbar .av-workshop-hub{position:relative;isolation:isolate}
.av-profile-page .av-profile-reborn-toolbar .av-workshop-hub>summary{display:flex;gap:8px;align-items:center;justify-content:center;min-height:44px;box-sizing:border-box}
.av-profile-page .av-profile-reborn-toolbar .av-workshop-hub-menu{position:absolute!important;inset:auto 0 auto auto!important;top:calc(100% + 9px)!important;left:auto!important;right:0!important;display:grid;gap:8px;width:min(340px,calc(100vw - 28px));max-height:min(420px,70dvh);overflow-y:auto;box-sizing:border-box;padding:12px;border:1px solid #8f6ca7;border-radius:16px;background:#1b1427;box-shadow:0 18px 46px #050209c9;z-index:80}
.av-profile-page .av-workshop-menu-heading{display:flex;flex-direction:column;gap:4px;padding:5px 6px 8px}
.av-profile-page .av-workshop-menu-heading strong{font:800 11px/1.4 system-ui;letter-spacing:.13em;color:#e9c8ff}
.av-profile-page .av-workshop-menu-heading span{font:400 12px/1.4 system-ui;color:#c4b2d5}
.av-profile-page .av-profile-reborn-toolbar .av-workshop-hub-menu button{display:flex;align-items:center;gap:12px;min-width:0;min-height:60px;box-sizing:border-box;padding:12px;border:1px solid #59436e;border-radius:12px;background:#2c203b;color:#fff;text-align:left;font-size:19px;white-space:normal;cursor:pointer}
.av-profile-page .av-profile-reborn-toolbar .av-workshop-hub-menu button:hover{background:#453057;border-color:#bb92df}
.av-profile-page .av-profile-reborn-toolbar .av-workshop-hub-menu button span{display:flex;flex-direction:column;min-width:0;gap:4px}
.av-profile-page .av-profile-reborn-toolbar .av-workshop-hub-menu button strong{font:700 13px/1.3 system-ui;overflow-wrap:anywhere}
.av-profile-page .av-profile-reborn-toolbar .av-workshop-hub-menu button small{font:400 11px/1.4 system-ui;color:#c6b5d5;overflow-wrap:anywhere}
@media(max-width:760px){.av-profile-page .av-profile-reborn-toolbar .av-workshop-hub-menu{width:100%!important;left:0!important;right:auto!important;max-height:min(420px,62dvh)}}

/* ANIME VOID 26.7 — scoped profile navigation and section geometry. */
.av-profile-page main{min-width:0}
.av-profile-page main>.av-profile-reborn-toolbar,.av-profile-page main>#profileSectionNav,.av-profile-page main>.av-profile-nav-target{box-sizing:border-box;max-width:100%;min-width:0}
.av-profile-page #profileSectionNav{display:flex;align-items:center;gap:8px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;overscroll-behavior-x:contain;scroll-padding-inline:12px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;padding:10px 4px 14px;margin:0 0 12px}
.av-profile-page #profileSectionNav a{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;box-sizing:border-box;min-height:44px;padding:10px 14px;white-space:nowrap;scroll-snap-align:start;border-radius:12px}
.av-profile-page #profileSectionNav a:focus-visible{outline:3px solid #e2b8ff;outline-offset:-3px}
.av-profile-page .av-profile-nav-target{scroll-margin-top:84px}
.av-profile-page .av-profile-nav-target:target{outline:2px solid #b887e5;outline-offset:4px;border-radius:14px}
.av-profile-page .av-profile-reborn-toolbar .av-profile-reborn-actions{min-width:0;max-width:100%}
.av-profile-page .av-profile-reborn-toolbar .av-profile-reborn-actions>*{box-sizing:border-box;min-width:0}
@media(max-width:700px){.av-profile-page #profileSectionNav{gap:7px;margin:0 -4px 10px;padding:8px 4px 12px}.av-profile-page #profileSectionNav a{font-size:12px;padding:10px 12px}.av-profile-page .av-profile-nav-target{scroll-margin-top:66px}.av-profile-page .av-profile-nav-target:target{outline-offset:1px}}
@media(prefers-reduced-motion:reduce){.av-profile-page #profileSectionNav{scroll-behavior:auto}.av-profile-page #profileSectionNav a{transition:none}}

/* ANIME VOID 26.9 — home dialog close alignment and narrow-screen bounds. */
body:not(.av-profile-page) #modal .modal-box{box-sizing:border-box;width:min(920px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;min-width:0;padding-top:clamp(54px,7vw,68px)}
body:not(.av-profile-page) #modal .modal-box>.close{box-sizing:border-box;position:absolute;top:12px;right:12px;display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;border-radius:50%;font:500 26px/1 system-ui;z-index:3;touch-action:manipulation}
body:not(.av-profile-page) #modal .modal-box>.close:focus-visible{outline:3px solid #e3b8ff;outline-offset:3px}
body:not(.av-profile-page) #modal .modal-box>#modalContent{box-sizing:border-box;max-width:100%;min-width:0;overflow-wrap:anywhere}
body:not(.av-profile-page) #modal .modal-box>#modalContent :is(img,video,iframe){max-width:100%}
body:not(.av-profile-page) #modal .modal-box>.modal-close-btn{box-sizing:border-box;min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere;touch-action:manipulation}
@media(max-width:600px){body:not(.av-profile-page) #modal .modal-box{width:calc(100vw - 12px);max-width:calc(100vw - 12px);max-height:calc(100dvh - 12px);padding-top:58px;border-radius:15px}body:not(.av-profile-page) #modal .modal-box>.close{top:8px;right:8px}body:not(.av-profile-page) #modal .modal-box>.modal-close-btn{width:100%}}
@media(prefers-reduced-motion:reduce){body:not(.av-profile-page) #modal .modal-box{animation:none}body:not(.av-profile-page) #modal .modal-box>.close:hover{transform:none}}

/* ANIME VOID 29.0 — Profile Reborn workshop dashboard, shared across all three editors. */
.av-profile-page .av-reborn-workshop{box-sizing:border-box;max-width:100%;min-width:0;margin:12px 0 24px;padding:clamp(16px,2.5vw,28px);border:1px solid #76598f88;border-radius:22px;background:radial-gradient(ellipse at 92% 0%,#6e3b8d3b,transparent 46%),linear-gradient(145deg,#21182f,#120f1c);color:#f6efff;overflow:visible}
.av-profile-page .av-reborn-workshop-head{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:12px 20px;margin-bottom:18px}
.av-profile-page .av-reborn-workshop-eyebrow{display:block;font:700 10px/1.5 system-ui;letter-spacing:.15em;color:#c7a7eb;margin-bottom:6px}
.av-profile-page .av-reborn-workshop-head h2{font:750 clamp(21px,2.6vw,30px)/1.2 system-ui;margin:0 0 7px;color:#fff}
.av-profile-page .av-reborn-workshop-head p{max-width:62ch;font:400 13px/1.6 system-ui;margin:0;color:#c9b9d6;overflow-wrap:anywhere}
.av-profile-page .av-reborn-workshop-back{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 13px;border:1px solid #755b8d;border-radius:11px;text-decoration:none;color:#e6d2ff;font:650 12px/1.3 system-ui}
.av-profile-page .av-reborn-workshop-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.av-profile-page .av-reborn-workshop-card{appearance:none;display:flex;align-items:flex-start;gap:12px;box-sizing:border-box;width:100%;min-width:0;min-height:146px;padding:17px;text-align:left;border:1px solid #75578e;border-radius:17px;background:linear-gradient(155deg,#332343,#1b1527);color:#f8f0ff;cursor:pointer;transition:background .16s,border-color .16s,transform .16s}
.av-profile-page .av-reborn-workshop-card:hover{background:linear-gradient(155deg,#48305e,#261b37);border-color:#c29ae8;transform:translateY(-2px)}
.av-profile-page .av-reborn-workshop-symbol{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border-radius:13px;background:#6d468b4a;font-size:24px}
.av-profile-page .av-reborn-workshop-card-copy{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:0}
.av-profile-page .av-reborn-workshop-card-copy strong{font:750 15px/1.3 system-ui;overflow-wrap:anywhere}
.av-profile-page .av-reborn-workshop-card-copy small{font:400 12px/1.55 system-ui;color:#cbbbd8;overflow-wrap:anywhere}
.av-profile-page .av-reborn-workshop-cta{margin-top:auto;font:700 11px/1.4 system-ui;color:#e4baff}
.av-profile-page :is(.av-reborn-workshop-card,.av-reborn-workshop-back,.av-workshop-shortcut):focus-visible{outline:3px solid #e3b8ff;outline-offset:3px}
@media(max-width:950px){.av-profile-page .av-reborn-workshop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.av-profile-page .av-reborn-workshop-card:last-child{grid-column:1/-1}}
@media(max-width:650px){.av-profile-page .av-reborn-workshop{padding:14px;border-radius:16px;margin:10px 0 18px}.av-profile-page .av-reborn-workshop-grid{grid-template-columns:minmax(0,1fr);gap:9px}.av-profile-page .av-reborn-workshop-card,.av-profile-page .av-reborn-workshop-card:last-child{grid-column:auto;min-height:108px;padding:13px}.av-profile-page .av-reborn-workshop-symbol{width:42px;height:42px;flex-basis:42px}.av-profile-page .av-reborn-workshop-back{width:100%;box-sizing:border-box}}
@media(prefers-reduced-motion:reduce){.av-profile-page .av-reborn-workshop-card{transition:none}.av-profile-page .av-reborn-workshop-card:hover{transform:none}}

/* ANIME VOID 30.0 — Profile Reborn: hero-first layout and consistent section rhythm. */
.av-profile-page main>#profileOverview{margin-top:10px;margin-bottom:18px}
.av-profile-page main>#profileWorkshop{margin-top:0;margin-bottom:20px}
.av-profile-page main>:is(#profileStats,#profileAchievements,#profileActivity,#profileCharts,#watchingSection,#favoritesSection){box-sizing:border-box;min-width:0;max-width:100%;scroll-margin-top:84px}
.av-profile-page #profileOverview .profile-top{box-sizing:border-box;max-width:100%;min-width:0}
.av-profile-page #profileOverview .profile-info,.av-profile-page #profileOverview .name-row,.av-profile-page #profileOverview .rank-row{min-width:0;max-width:100%}
.av-profile-page #profileOverview #profileName{min-width:0;max-width:100%;overflow-wrap:anywhere}
.av-profile-page #profileOverview .rank-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.av-profile-page #profileOverview .level-box{box-sizing:border-box;min-width:0;max-width:100%}
.av-profile-page #profileOverview .level-bar{box-sizing:border-box;max-width:100%;overflow:hidden}
.av-profile-page #profileOverview .av-reborn-extras{box-sizing:border-box;min-width:0;max-width:100%}
.av-profile-page #profileOverview .av-reborn-extras summary{min-height:44px;display:flex;align-items:center;cursor:pointer}
.av-profile-page #profileOverview .av-reborn-extras .share-row{min-width:0;max-width:100%;box-sizing:border-box}
.av-profile-page #profileOverview .av-reborn-extras .share-row>*{box-sizing:border-box;min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.av-profile-page :is(#profileStats,#profileAchievements) .av-reborn-section-heading{box-sizing:border-box;min-width:0;max-width:100%;gap:12px}
.av-profile-page :is(#profileStats,#profileAchievements) :is(h2,p){overflow-wrap:anywhere}
@media(max-width:700px){.av-profile-page main>#profileOverview{margin-top:8px;margin-bottom:12px}.av-profile-page main>#profileWorkshop{margin-bottom:16px}.av-profile-page #profileOverview .profile-top{gap:12px}.av-profile-page #profileOverview .rank-row{gap:6px}.av-profile-page #profileOverview .av-reborn-extras .share-row{gap:8px}.av-profile-page main>:is(#profileStats,#profileAchievements,#profileActivity,#profileCharts,#watchingSection,#favoritesSection){scroll-margin-top:66px}}
@media(max-width:390px){.av-profile-page #profileOverview .av-reborn-extras .share-row>*{width:100%;flex-basis:100%}}

/* ANIME VOID 31.0 — consistent Profile Reborn hero and achievement gallery. */
.av-profile-page #profileOverview{border-radius:22px}
.av-profile-page #profileOverview .name-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.av-profile-page #profileOverview .name-row #editNameBtn{flex:0 0 44px;display:grid;place-items:center;min-width:44px;min-height:44px}
.av-profile-page #profileOverview #avatarButton{flex-shrink:0;aspect-ratio:1;object-fit:cover}
.av-profile-page #profileOverview .rank-row>*{max-width:100%;overflow-wrap:anywhere}
.av-profile-page #profileAchievements{box-sizing:border-box;min-width:0;max-width:100%;overflow:hidden}
.av-profile-page #profileAchievements .av-reborn-achievements-intro{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.av-profile-page #profileAchievements .av-reborn-achievements-intro>div{min-width:0;flex:1 1 220px}
.av-profile-page #profileAchievements .av-reborn-achievements-jump{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;max-width:100%;padding:10px 14px;border:1px solid #795d91;border-radius:12px;background:#30203e;color:#f1dfff;text-decoration:none;font:650 12px/1.4 system-ui;overflow-wrap:anywhere}
.av-profile-page #profileAchievements .av-reborn-achievements-jump:focus-visible{outline:3px solid #e3b8ff;outline-offset:3px}
.av-profile-page #profileAchievements :is(#otakuPath,#achievementsGrid){min-width:0;max-width:100%;box-sizing:border-box}
.av-profile-page #profileAchievements #achievementsGrid>*{box-sizing:border-box;min-width:0;max-width:100%;overflow-wrap:anywhere}
@media(max-width:650px){.av-profile-page #profileOverview{border-radius:16px}.av-profile-page #profileAchievements .av-reborn-achievements-jump{width:100%}.av-profile-page #profileAchievements #achievementsGrid{gap:10px}}

/* ANIME VOID 32.0 — shared UI contract: modal bounds, focus, touch targets. */
/* Scope to known page shells to avoid altering third-party widgets. */
:is(body.av-profile-page,body:not(.av-profile-page)) :is(.avp-dialog,.at-dialog,.at-full,.vs-dialog){box-sizing:border-box;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overscroll-behavior:contain}
.av-profile-page :is(.avp-dialog,.at-dialog,.at-full,.vs-dialog) :is(button,a,input,select,textarea):focus-visible{outline:3px solid #e6bdff;outline-offset:2px}
.av-profile-page :is(.avp-dialog,.at-dialog,.at-full,.vs-dialog) :is(.avp-close,.at-close,.vs-close){box-sizing:border-box;display:grid;place-items:center;flex:0 0 44px;min-width:44px;min-height:44px;width:44px;height:44px;line-height:1}
.av-profile-page :is(.avp-dialog,.at-dialog,.at-full,.vs-dialog) :is(input,select,textarea){box-sizing:border-box;min-width:0;max-width:100%}
.av-profile-page :is(.avp-dialog,.at-dialog,.at-full,.vs-dialog) :is(h1,h2,h3,p,small,strong){overflow-wrap:anywhere}
body:not(.av-profile-page) #modal .modal-box{box-sizing:border-box;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overscroll-behavior:contain}
body:not(.av-profile-page) #modal .modal-box>.close{box-sizing:border-box;display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;line-height:1}
body:not(.av-profile-page) #modal .modal-box :is(button,a,input,select,textarea):focus-visible{outline:3px solid #e6bdff;outline-offset:2px}
body:not(.av-profile-page) #modal .modal-box :is(input,select,textarea){box-sizing:border-box;min-width:0;max-width:100%}
body:not(.av-profile-page) #modal #modalContent{min-width:0;max-width:100%;overflow-wrap:anywhere}
.av-profile-page :is(.av-profile-nav,.av-profile-reborn-toolbar,.av-reborn-workshop,.stats-section,.achievements-section){box-sizing:border-box;min-width:0;max-width:100%}
@media(max-width:650px){.av-profile-page :is(.avp-dialog,.at-dialog,.at-full,.vs-dialog){max-width:calc(100vw - 8px);max-height:calc(100dvh - 8px)}body:not(.av-profile-page) #modal .modal-box{max-width:calc(100vw - 8px);max-height:calc(100dvh - 8px)}}
@media(prefers-reduced-motion:reduce){.av-profile-page :is(.avp-dialog,.at-dialog,.at-full,.vs-dialog){scroll-behavior:auto}}

/* ANIME VOID 33.0 — title and watch page responsive UI contract. */
body.av-title-page,body.av-watch-page{max-width:100%;overflow-x:clip}
body.av-title-page :is(main,#content),body.av-watch-page :is(main,#avPlayer,#episodeGrid){box-sizing:border-box;min-width:0;max-width:100%}
body.av-title-page :is(button,a,input,select,textarea):focus-visible,body.av-watch-page :is(button,a,input,select,textarea):focus-visible{outline:3px solid #dfb8ff;outline-offset:2px}
body.av-watch-page #avPlayer{overflow:hidden;border-radius:14px}
body.av-watch-page #avPlayer :is(iframe,video){display:block;max-width:100%;width:100%}
body.av-watch-page #episodeGrid{overflow-wrap:anywhere}
body.av-watch-page :is(#prevBtn,#markWatchedBtn,#nextBtn){box-sizing:border-box;min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
body.av-title-page :is(#backCatalog,#langBtn,#profileLink,#themeToggle),body.av-watch-page :is(#backAnime,#langBtn,#profileLink,#themeToggle){box-sizing:border-box;min-height:44px;max-width:100%;overflow-wrap:anywhere}
@media(max-width:650px){body.av-title-page :is(main,#content),body.av-watch-page :is(main,#episodeGrid){min-width:0;max-width:100%}body.av-watch-page #avPlayer{border-radius:10px}body.av-watch-page :is(#prevBtn,#markWatchedBtn,#nextBtn){min-width:0}}

/* ANIME VOID 34.0 — shared header/navigation alignment across core pages. */
body:is(.av-title-page,.av-watch-page,.av-profile-page) header{box-sizing:border-box;max-width:100%;min-width:0}
body:is(.av-title-page,.av-watch-page,.av-profile-page) header :is(.logo,.header-actions,nav,.language-switch){box-sizing:border-box;min-width:0;max-width:100%}
body:is(.av-title-page,.av-watch-page,.av-profile-page) header :is(a,button){box-sizing:border-box;min-height:44px;max-width:100%;display:inline-flex;align-items:center;justify-content:center;overflow-wrap:anywhere}
body:is(.av-title-page,.av-watch-page,.av-profile-page) header .logo{justify-content:flex-start;white-space:nowrap}
body:is(.av-title-page,.av-watch-page,.av-profile-page) header :is(.theme-toggle,.lang-btn){flex:0 0 44px;min-width:44px}
body:is(.av-title-page,.av-watch-page,.av-profile-page) header :is(a,button):focus-visible{outline:3px solid #dfb8ff;outline-offset:2px}
body.av-profile-page header nav{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
body.av-profile-page header .header-actions,body.av-watch-page header .header-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}
body.av-title-page header{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
body.av-title-page header :is(.back,.profile-btn){white-space:normal;text-align:center}
body.av-watch-page header :is(.back,.profile-btn){white-space:normal;text-align:center}
@media(max-width:760px){body:is(.av-title-page,.av-watch-page,.av-profile-page) header{gap:8px;padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}body:is(.av-title-page,.av-watch-page,.av-profile-page) header .logo{flex:1 1 auto;min-width:100px}body.av-profile-page header nav{order:3;flex:1 0 100%;width:100%;overflow-x:auto;flex-wrap:nowrap;justify-content:flex-start;overscroll-behavior-x:contain}body.av-profile-page header nav a{flex:0 0 auto;white-space:nowrap}body.av-title-page header .back,body.av-watch-page header .back{flex:1 1 140px}body.av-title-page header .profile-btn,body.av-watch-page header .profile-btn{flex:0 1 auto}}
@media(max-width:390px){body.av-title-page header .back,body.av-watch-page header .back{order:4;flex:1 0 100%}body.av-watch-page header .header-actions{width:100%;justify-content:space-between}body.av-watch-page header .header-actions .back{order:4}body.av-profile-page header .header-actions{justify-content:flex-start}}

/* ANIME VOID 35.0 — responsive catalog layout and readable cards. */
body:not(.av-profile-page) #catalog{box-sizing:border-box;min-width:0;max-width:100%;scroll-margin-top:80px}
body:not(.av-profile-page) #catalog .section-heading{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;min-width:0;max-width:100%}
body:not(.av-profile-page) #catalog .filters{box-sizing:border-box;display:flex;flex-wrap:nowrap;align-items:center;gap:8px;min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding-bottom:8px}
body:not(.av-profile-page) #catalog .filters .filter{box-sizing:border-box;flex:0 0 auto;min-height:44px;white-space:nowrap;padding:9px 14px}
body:not(.av-profile-page) #catalog .advanced-filters{box-sizing:border-box;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:10px;min-width:0;max-width:100%}
body:not(.av-profile-page) #catalog .advanced-filters>*{box-sizing:border-box;min-width:0;max-width:100%;width:100%;min-height:44px}
body:not(.av-profile-page) #catalog #animeGrid{box-sizing:border-box;min-width:0;max-width:100%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(10px,1.6vw,20px)}
body:not(.av-profile-page) #catalog #animeGrid>*{box-sizing:border-box;min-width:0;max-width:100%;overflow-wrap:anywhere}
body:not(.av-profile-page) #catalog #animeGrid img{max-width:100%;height:auto}
body:not(.av-profile-page) #catalog #animeGrid :is(button,a):focus-visible{outline:3px solid #e2baff;outline-offset:2px}
body:not(.av-profile-page) #catalog .av-catalog-more{display:flex;align-items:center;justify-content:center;box-sizing:border-box;margin:26px 0 32px;min-width:0}
body:not(.av-profile-page) #catalog .av-catalog-load-more{box-sizing:border-box;min-height:48px;min-width:min(260px,100%);max-width:100%;padding:12px 22px;border:1px solid #b17ce7;border-radius:13px;background:linear-gradient(125deg,#8535c8,#5b2c97);color:white;font:700 14px/1.4 system-ui;cursor:pointer;white-space:normal}
body:not(.av-profile-page) #catalog .av-catalog-load-more:hover{filter:brightness(1.1)}
body:not(.av-profile-page) #catalog .av-catalog-load-more:focus-visible{outline:3px solid #e2baff;outline-offset:3px}
body:not(.av-profile-page) #catalog .av-catalog-load-more:disabled{opacity:.55;cursor:default}
@media(max-width:1200px){body:not(.av-profile-page) #catalog #animeGrid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:900px){body:not(.av-profile-page) #catalog #animeGrid{grid-template-columns:repeat(3,minmax(0,1fr))}body:not(.av-profile-page) #catalog .advanced-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){body:not(.av-profile-page) #catalog{scroll-margin-top:60px}body:not(.av-profile-page) #catalog #animeGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}body:not(.av-profile-page) #catalog .advanced-filters{gap:8px}body:not(.av-profile-page) #catalog .av-catalog-load-more{width:100%}}
@media(max-width:360px){body:not(.av-profile-page) #catalog #animeGrid{gap:7px}body:not(.av-profile-page) #catalog .advanced-filters{grid-template-columns:minmax(0,1fr)}}

/* ANIME VOID 36.0 — catalog card system; scope prevents changes to profile cards. */
body:not(.av-profile-page) #catalog #animeGrid>.card{display:flex;flex-direction:column;min-width:0;max-width:100%;height:100%;box-sizing:border-box;overflow:hidden;border-radius:16px;isolation:isolate}
body:not(.av-profile-page) #catalog #animeGrid>.card>.av-card-entry{display:block;flex:1 1 auto;min-width:0;max-width:100%;text-decoration:none;color:inherit}
body:not(.av-profile-page) #catalog #animeGrid .poster{position:relative;display:block;width:100%;aspect-ratio:2/3;overflow:hidden;box-sizing:border-box;background-color:#1d1529}
body:not(.av-profile-page) #catalog #animeGrid .poster>img{display:block;width:100%!important;height:100%!important;object-fit:cover;object-position:center;transition:transform .24s ease}
body:not(.av-profile-page) #catalog #animeGrid>.card:hover .poster>img{transform:scale(1.035)}
body:not(.av-profile-page) #catalog #animeGrid .poster :is(small,.season-count){max-width:calc(100% - 12px);box-sizing:border-box;overflow-wrap:anywhere}
body:not(.av-profile-page) #catalog #animeGrid .av-card-copy{box-sizing:border-box;min-width:0;max-width:100%;padding:12px 12px 8px;overflow-wrap:anywhere}
body:not(.av-profile-page) #catalog #animeGrid .av-card-copy h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.8em;max-height:2.8em;line-height:1.4;margin:0 0 7px;font-size:clamp(13px,1.15vw,16px);font-weight:750}
body:not(.av-profile-page) #catalog #animeGrid .av-card-copy :is(.year,.anime-meta){font-size:12px;line-height:1.5;overflow-wrap:anywhere}
body:not(.av-profile-page) #catalog #animeGrid .card-info{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;max-width:100%;padding:4px 12px}
body:not(.av-profile-page) #catalog #animeGrid .card-info .genre{min-width:0;overflow-wrap:anywhere}
body:not(.av-profile-page) #catalog #animeGrid .card-info .favorite{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;line-height:1}
body:not(.av-profile-page) #catalog #animeGrid .card-actions{box-sizing:border-box;display:flex;flex-direction:column;gap:8px;min-width:0;max-width:100%;padding:8px 12px 12px;margin-top:auto}
body:not(.av-profile-page) #catalog #animeGrid .card-actions :is(button,a){box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;white-space:normal;text-align:center;overflow-wrap:anywhere}
body:not(.av-profile-page) #catalog #animeGrid .card-actions .card-season-button{min-width:0}
body:not(.av-profile-page) #catalog #animeGrid>.card :is(button,a):focus-visible{outline:3px solid #e2baff;outline-offset:-3px}
@media(max-width:650px){body:not(.av-profile-page) #catalog #animeGrid>.card{border-radius:12px}body:not(.av-profile-page) #catalog #animeGrid .av-card-copy{padding:9px 9px 5px}body:not(.av-profile-page) #catalog #animeGrid .av-card-copy h3{font-size:13px}body:not(.av-profile-page) #catalog #animeGrid .card-info{padding:3px 8px}body:not(.av-profile-page) #catalog #animeGrid .card-actions{padding:6px 8px 9px;gap:6px}body:not(.av-profile-page) #catalog #animeGrid .av-card-copy :is(.year,.anime-meta){font-size:11px}}
@media(prefers-reduced-motion:reduce){body:not(.av-profile-page) #catalog #animeGrid .poster>img{transition:none}body:not(.av-profile-page) #catalog #animeGrid>.card:hover .poster>img{transform:none}}

/* ANIME VOID 37.0 — catalog loading, results and empty-state clarity. */
body:not(.av-profile-page) #catalog .av-catalog-status{box-sizing:border-box;min-height:22px;margin:14px 0 12px;color:#d8c7e8;font:600 12px/1.6 system-ui;letter-spacing:.015em}
body:not(.av-profile-page) #catalog .av-catalog-more:has(>button[hidden]){display:none}
body:not(.av-profile-page) #catalog .av-catalog-load-more[hidden]{display:none!important}
body:not(.av-profile-page) #catalog .av-catalog-load-more[aria-busy=true]{cursor:progress;opacity:.7}
body:not(.av-profile-page) #catalog #animeGrid[aria-busy=true]{min-height:160px}
body:not(.av-profile-page) #catalog #animeGrid>.empty{box-sizing:border-box;grid-column:1/-1;max-width:100%;margin:12px 0;padding:24px 16px;border:1px dashed #765c90;border-radius:14px;background:#20172c;color:#e9dbf2;text-align:center;line-height:1.6;overflow-wrap:anywhere}
@media(max-width:650px){body:not(.av-profile-page) #catalog .av-catalog-status{margin:10px 0}body:not(.av-profile-page) #catalog #animeGrid>.empty{padding:18px 12px}}


/* ANIME VOID 38.0 — aligned season actions and small-screen catalog controls.
   Changes are scoped to the home catalog; profile/editor/modal layouts are untouched. */
body.av-home #catalog #animeGrid .card-season-buttons{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;width:100%;min-width:0;
}
body.av-home #catalog #animeGrid .card-season-buttons>.card-season-button:last-child:nth-child(odd){
  grid-column:1/-1;
}
body.av-home #catalog #animeGrid .card-season-button{
  box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-width:0;
  max-width:100%;min-height:44px;padding:8px 7px;margin:0;line-height:1.3;text-align:center;
  white-space:normal;overflow-wrap:anywhere;
}
body.av-home #catalog #animeGrid .card-actions>.secondary,
body.av-home #catalog #animeGrid .card-actions>.card-watch-button{
  display:inline-flex;align-items:center;justify-content:center;width:100%;min-width:0;
  min-height:44px;box-sizing:border-box;text-align:center;white-space:normal;
}
body.av-home #catalog #animeGrid .card-info .genre{
  min-width:0;line-height:1.4;overflow-wrap:anywhere;
}
body.av-home #catalog .advanced-filters :is(input,select,button){
  border-radius:10px;min-height:44px;
}
@media(max-width:650px){
  body.av-home #catalog .advanced-filters :is(input,select,button){font-size:16px}
  body.av-home #catalog #animeGrid .card-season-buttons{gap:5px}
  body.av-home #catalog #animeGrid .card-season-button{font-size:11px;padding:7px 4px}
  body.av-home #catalog #animeGrid .card-info .genre{font-size:11px}
}
@media(max-width:360px){
  body.av-home #catalog #animeGrid .card-actions{padding:6px 7px 8px}
  body.av-home #catalog #animeGrid .card-season-button{font-size:10px}
}
@media(prefers-reduced-motion:reduce){
  body.av-home #catalog #animeGrid :is(.card-season-button,.card-actions>.secondary){transition:none}
}


/* ANIME VOID 40.0 — one predictable mobile header and profile navigation.
   Only header/section layout; no auth, player or saved user data changes. */
body:is(.av-home,.av-profile-page)>header{
  box-sizing:border-box;min-width:0;max-width:100%;column-gap:10px;row-gap:8px;
}
body:is(.av-home,.av-profile-page)>header .logo{min-width:0;max-width:100%;overflow-wrap:normal}
body:is(.av-home,.av-profile-page)>header .language-switch{
  box-sizing:border-box;display:flex;align-items:center;gap:4px;flex:0 0 auto;
}
body:is(.av-home,.av-profile-page)>header :is(.language-switch button,.theme-toggle){
  box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;
  min-width:44px;min-height:44px;flex:0 0 auto;
}
body:is(.av-home,.av-profile-page)>header nav a[aria-current=page]{
  color:var(--av-accent,#e0bbff);font-weight:750;
}
body:is(.av-home,.av-profile-page)>header nav a:focus-visible,
body.av-profile-page #profileSectionNav a:focus-visible,
body.av-profile-page .av-profile-reborn-actions a:focus-visible{
  outline:2px solid #e2baff;outline-offset:2px;
}
body.av-profile-page .av-profile-reborn-actions>.av-profile-reborn-link{
  box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;
  min-height:44px;text-align:center;
}
body.av-profile-page #profileSectionNav a[aria-current=location]{
  border-color:#bc90ed;background:#3e2952;color:#fff;
}
@media(max-width:1360px){
  body.av-home>header{height:auto;min-height:68px;display:flex;flex-wrap:wrap;align-items:center}
  body.av-home>header nav{
    order:5;display:flex;flex:1 0 100%;width:100%;min-width:0;max-width:100%;
    gap:6px;flex-wrap:nowrap;justify-content:flex-start;align-items:center;
    overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;
    -webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scroll-padding-inline:4px;
    padding:3px 0 7px;
  }
  body.av-home>header nav a{
    box-sizing:border-box;display:inline-flex;flex:0 0 auto;align-items:center;
    justify-content:center;min-width:0;min-height:44px;max-width:none;
    padding:8px 11px;border-radius:10px;white-space:nowrap;line-height:1.3;
  }
}
@media(max-width:760px){
  body:is(.av-home,.av-profile-page)>header{
    padding-left:max(12px,env(safe-area-inset-left));
    padding-right:max(12px,env(safe-area-inset-right));
  }
  body.av-home>header .logo,body.av-profile-page>header .logo{
    order:0;flex:1 1 125px;white-space:nowrap;
  }
  body.av-home>header .language-switch,
  body.av-home>header>.theme-toggle,
  body.av-profile-page>header .header-actions{order:1}
  body.av-home>header .search-wrap{
    order:4;box-sizing:border-box;flex:1 0 100%;width:100%;min-width:0;max-width:100%;
  }
  body.av-home>header .search-wrap .search{
    box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:44px;font-size:16px;
  }
  body.av-profile-page>header{
    height:auto;min-height:68px;display:flex;flex-wrap:wrap;align-items:center;
  }
  body.av-profile-page>header nav{
    order:5;display:flex;flex:1 0 100%;width:100%;max-width:100%;min-width:0;
    flex-wrap:nowrap;justify-content:flex-start;gap:6px;
    overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;
    -webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;
    padding:3px 0 7px;
  }
  body.av-profile-page>header nav a{
    box-sizing:border-box;flex:0 0 auto;min-height:44px;white-space:nowrap;
    padding:8px 12px;border-radius:10px;
  }
  body.av-profile-page .av-profile-reborn-actions{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;width:100%;max-width:100%;
  }
  body.av-profile-page .av-profile-reborn-actions>.av-workshop-shortcut{
    grid-column:1/-1;
  }
  body.av-profile-page .av-profile-reborn-actions>.av-profile-reborn-link{
    width:100%;min-width:0;max-width:100%;padding:10px 9px;
  }
  body.av-profile-page #profileSectionNav{
    display:flex;flex-wrap:nowrap;justify-content:flex-start;
    max-width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;
    -webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;
    scroll-padding-inline:8px;padding-bottom:12px;
  }
  body.av-profile-page #profileSectionNav a{
    box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;
    flex:0 0 auto;min-height:44px;max-width:none;white-space:nowrap;
    scroll-snap-align:start;
  }
  body.av-profile-page .av-profile-nav-target{scroll-margin-top:24px}
}
@media(max-width:360px){
  body:is(.av-home,.av-profile-page)>header{gap:6px}
  body.av-home>header nav a,body.av-profile-page>header nav a{padding-inline:9px}
  body.av-profile-page .av-profile-reborn-actions{
    grid-template-columns:minmax(0,1fr);
  }
  body.av-profile-page .av-profile-reborn-actions>.av-workshop-shortcut{
    grid-column:1;
  }
}
@media(prefers-reduced-motion:reduce){
  body:is(.av-home,.av-profile-page)>header nav,
  body.av-profile-page #profileSectionNav{scroll-behavior:auto}
}

/* ANIME VOID 41.0 — consistent modal/editor geometry and close-button alignment.
   Scoped to existing dialogs. No purchase, authentication or stored data logic. */
body:is(.av-home,.av-profile-page) :is(.vs-dialog,.at-dialog,.at-full,.avp-dialog,.avp-confirm){
  box-sizing:border-box;
  min-width:0;
  max-width:calc(100vw - 24px);
  max-height:calc(100dvh - 24px);
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
}
body:is(.av-home,.av-profile-page) :is(.vs-dialog,.at-dialog,.at-full,.avp-dialog,.avp-confirm) :is(h2,h3,p,small,strong){
  min-width:0;
  max-width:100%;
  overflow-wrap:anywhere;
}
body:is(.av-home,.av-profile-page) :is(.vs-dialog,.at-dialog,.avp-dialog) :is(.vs-dialog-head,.at-header,.avp-dialog-head){
  box-sizing:border-box;
  position:sticky;
  top:0;
  z-index:10;
  width:100%;
  min-width:0;
  max-width:100%;
}
body:is(.av-home,.av-profile-page) :is(.vs-dialog,.at-dialog,.avp-dialog) :is(.vs-close,.at-close,.avp-close){
  box-sizing:border-box;
  display:grid;
  place-items:center;
  flex:0 0 44px;
  align-self:start;
  width:44px;
  height:44px;
  min-width:44px;
  min-height:44px;
  max-width:44px;
  max-height:44px;
  margin:0;
  padding:0;
  line-height:1;
  font-size:25px;
  border-radius:12px;
  touch-action:manipulation;
}
body:is(.av-home,.av-profile-page) .at-full>button:first-child{
  position:sticky;
  top:8px;
  z-index:3;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  max-width:100%;
  margin:10px;
  white-space:normal;
}
body:is(.av-home,.av-profile-page) :is(.vs-dialog,.at-dialog,.at-full,.avp-dialog,.avp-confirm) :is(button,a,input,select,textarea):focus-visible{
  outline:3px solid #e7c6ff;
  outline-offset:2px;
}
body:is(.av-home,.av-profile-page) :is(.vs-dialog,.at-dialog,.avp-dialog) :is(.vs-settings-body,.at-body,.avp-studio-body){
  min-width:0;
  max-width:100%;
}
@media(max-width:760px){
  body:is(.av-home,.av-profile-page) :is(.vs-dialog,.at-dialog,.at-full,.avp-dialog,.avp-confirm){
    width:calc(100vw - 16px);
    max-width:calc(100vw - 16px);
    max-height:calc(100dvh - 16px);
    border-radius:14px;
    scrollbar-gutter:auto;
  }
  body:is(.av-home,.av-profile-page) :is(.vs-dialog,.at-dialog,.avp-dialog) :is(.vs-dialog-head,.at-header,.avp-dialog-head){
    padding:12px 14px;
    gap:8px;
  }
  body:is(.av-home,.av-profile-page) :is(.vs-dialog,.at-dialog,.avp-dialog) :is(.vs-dialog-head h2,.at-header h2,.avp-dialog-head h2){
    font-size:clamp(17px,4.6vw,24px);
    line-height:1.24;
    margin:0;
  }
  body.av-profile-page .avp-dialog .avp-dialog-head{
    display:grid;
    grid-template-columns:minmax(0,1fr) 44px;
    grid-template-rows:auto auto;
    align-items:center;
    column-gap:10px;
  }
  body.av-profile-page .avp-dialog .avp-dialog-head h2{
    grid-column:1;
    grid-row:1;
  }
  body.av-profile-page .avp-dialog .avp-dialog-head .avp-balance{
    grid-column:1;
    grid-row:2;
    margin:0;
    font-size:13px;
    line-height:1.4;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  body.av-profile-page .avp-dialog .avp-dialog-head .avp-close{
    grid-column:2;
    grid-row:1 / 3;
    justify-self:end;
  }
  body:is(.av-home,.av-profile-page) .at-dialog .at-header>div{
    flex:1 1 auto;
    min-width:0;
  }
  body:is(.av-home,.av-profile-page) .at-dialog .at-header .at-eyebrow{
    letter-spacing:.08em;
  }
  body:is(.av-home,.av-profile-page) .vs-dialog .vs-dialog-head h2{
    flex:1 1 auto;
  }
  body:is(.av-home,.av-profile-page) .vs-dialog :is(.vs-tabs,.vs-settings-body),
  body:is(.av-home,.av-profile-page) .at-dialog :is(.at-body,.at-filterbar),
  body.av-profile-page .avp-dialog :is(.avp-studio-body,.avp-filters){
    box-sizing:border-box;
    min-width:0;
    max-width:100%;
  }
  body:is(.av-home,.av-profile-page) :is(.vs-dialog,.at-dialog,.avp-dialog) :is(input,select,textarea){
    font-size:16px;
  }
}
@media(max-width:390px){
  body:is(.av-home,.av-profile-page) :is(.vs-dialog,.at-dialog,.avp-dialog) :is(.vs-dialog-head,.at-header,.avp-dialog-head){
    padding:10px 12px;
  }
  body.av-profile-page .avp-dialog .avp-dialog-head .avp-balance{font-size:12px}
}
@media(prefers-reduced-motion:reduce){
  body:is(.av-home,.av-profile-page) :is(.vs-dialog,.at-dialog,.avp-dialog) :is(button,a){transition:none}
}


/* ANIME VOID 42.0 — mobile saved lists and accessible search UI */
body.av-home>header .search-wrap{
  box-sizing:border-box;min-width:0;max-width:100%;z-index:12;
}
body.av-home>header .search-suggestions{
  box-sizing:border-box;
  width:min(380px,calc(100vw - 24px));
  max-width:calc(100vw - 24px);
  max-height:min(420px,60dvh);
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
}
body.av-home>header .search-suggestions[hidden]{display:none}
body.av-home>header .search-suggestion{
  box-sizing:border-box;
  min-height:56px;
  align-items:center;
  gap:10px;
  padding:7px 9px;
  white-space:normal;
  touch-action:manipulation;
}
body.av-home>header .search-suggestion :is(.sug-info,.sug-title,.sug-meta){
  min-width:0;max-width:100%;overflow-wrap:anywhere;
}
body.av-home>header .search-suggestion .sug-title{
  white-space:normal;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  line-height:1.35;
}
body.av-home>header .search-suggestion[aria-selected=true]{
  background:rgba(168,85,247,.22);
  outline:1px solid #a779d5;
  outline-offset:-1px;
}
body.av-home>header .search-suggestion:focus-visible{
  outline:2px solid #e3baff;outline-offset:-2px;
}
body.av-home #favorites #listTabs{
  box-sizing:border-box;
  display:flex;
  flex-wrap:nowrap;
  max-width:100%;
  gap:8px;
  overflow-x:auto;
  overflow-y:hidden;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  padding:4px 2px 10px;
}
body.av-home #favorites #listTabs .list-tab{
  box-sizing:border-box;
  flex:0 0 auto;
  min-height:44px;
  padding:10px 14px;
  white-space:nowrap;
  touch-action:manipulation;
}
body.av-home #favorites #listTabs .list-tab:focus-visible{
  outline:2px solid #e7c5ff;outline-offset:2px;
}
body.av-home #favorites #favoritesGrid{
  min-width:0;max-width:100%;
}
body.av-home #favorites #favoritesGrid .card{
  box-sizing:border-box;min-width:0;max-width:100%;overflow:hidden;
}
body.av-home #favorites #favoritesGrid .card-info{
  min-width:0;gap:6px;
}
body.av-home #favorites #favoritesGrid .card-info .favorite{
  box-sizing:border-box;display:grid;place-items:center;
  flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;
}
body.av-home #favorites #favoritesGrid .card-actions>button,
body.av-home #favorites #favoritesGrid .card-season-button{
  box-sizing:border-box;max-width:100%;min-width:0;min-height:44px;
  white-space:normal;overflow-wrap:anywhere;text-align:center;
}
body.av-home #favorites #favoritesGrid .card-season-buttons{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;
}
body.av-home #favorites #favoritesGrid .card-season-buttons>.card-season-button:last-child:nth-child(odd){
  grid-column:1/-1;
}
body.av-home :is(#catalog #animeGrid,#favorites #favoritesGrid) .card .av-card-copy{
  box-sizing:border-box;min-width:0;max-width:100%;
}
@media(max-width:760px){
  body.av-home>header .search-suggestions{
    left:0;right:0;width:100%;max-width:100%;max-height:min(330px,48dvh);
  }
  body.av-home #favorites #favoritesGrid{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;
  }
  body.av-home #favorites #favoritesGrid .card-season-button{
    font-size:11px;padding-inline:5px;
  }
  body.av-home #favorites #favoritesGrid>.empty{grid-column:1/-1}
}
@media(max-width:390px){
  body.av-home #favorites #favoritesGrid{gap:8px}
  body.av-home #favorites #favoritesGrid .card-season-button{font-size:10px}
  body.av-home #favorites #listTabs .list-tab{padding-inline:11px;font-size:12px}
}
@media(prefers-reduced-motion:reduce){
  body.av-home #favorites #favoritesGrid .card,
  body.av-home>header .search-suggestion{transition:none}
}

/* ANIME VOID 43.0 — saved-title placeholders and responsive collection cards.
   Display-only: no changes to favorite/status records or commerce data. */
body.av-home #favorites #favoritesGrid .av-saved-unknown{
  box-sizing:border-box;
  min-width:0;
  max-width:100%;
  min-height:220px;
  overflow:hidden;
  border:1px dashed var(--av-line,#785e96);
  border-radius:16px;
  background:var(--av-surface,#20172b);
}
body.av-home #favorites #favoritesGrid .av-saved-unknown>a{
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  width:100%;
  height:100%;
  min-width:0;
  color:var(--av-text,#f3eaff);
  text-decoration:none;
  overflow-wrap:anywhere;
}
body.av-home #favorites #favoritesGrid .av-saved-unknown img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:2/3;
  object-fit:cover;
  background:var(--av-raised,#191024);
}
body.av-home #favorites #favoritesGrid .av-saved-unknown span{
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  gap:7px;
  padding:12px;
  min-width:0;
}
body.av-home #favorites #favoritesGrid .av-saved-unknown strong{
  font:700 14px/1.4 system-ui;
  overflow-wrap:anywhere;
}
body.av-home #favorites #favoritesGrid .av-saved-unknown small{
  color:var(--av-muted,#c3b1d1);
  font:400 12px/1.5 system-ui;
}
body.av-home #favorites #favoritesGrid .av-saved-unknown a:focus-visible{
  outline:3px solid #ce9eff;outline-offset:-3px;
}
body.av-profile-page :is(#favoritesGrid,#watchingGrid) .mini-card.av-missing-title{
  box-sizing:border-box;
  border:1px dashed var(--av-line,#765d94);
  max-width:100%;
}
body.av-profile-page :is(#favoritesGrid,#watchingGrid) .mini-card.av-missing-title .av-missing-note{
  box-sizing:border-box;
  display:block;
  max-width:100%;
  padding:0 8px 10px;
  color:var(--av-muted,#c5b6d5);
  font:400 11px/1.45 system-ui;
  overflow-wrap:anywhere;
}
@media(max-width:390px){
  body.av-home #favorites #favoritesGrid .av-saved-unknown strong{font-size:12px}
  body.av-home #favorites #favoritesGrid .av-saved-unknown span{padding:10px;gap:5px}
  body.av-home #favorites #favoritesGrid .av-saved-unknown small{font-size:11px}
}


/* ANIME VOID 45.0 — measured playback stats, separate from manual episode marks. */
body.av-profile-page .av-measured-section{
  box-sizing:border-box;
  margin:clamp(18px,3vw,30px) 0;
  padding:clamp(16px,2.5vw,24px);
  border:1px solid rgba(174,133,214,.22);
  border-radius:20px;
  background:linear-gradient(145deg,rgba(40,29,58,.78),rgba(20,17,31,.92));
  min-width:0;
}
body.av-profile-page .av-measured-section .section-heading{margin-bottom:16px}
body.av-profile-page .av-measured-section h2{
  margin:0 0 5px;
  font-size:clamp(18px,2vw,22px);
}
body.av-profile-page .av-measured-section .subtitle{
  max-width:760px;
  color:var(--muted,#aaa0bb);
  font-size:12px;
  line-height:1.55;
}
body.av-profile-page .av-measured-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
body.av-profile-page .av-measured-card{
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:7px;
  min-width:0;
  min-height:104px;
  padding:14px;
  border:1px solid rgba(174,133,214,.16);
  border-radius:14px;
  background:rgba(9,8,16,.38);
}
body.av-profile-page .av-measured-card strong{
  min-width:0;
  font-size:clamp(18px,2vw,25px);
  line-height:1.15;
  font-weight:800;
  overflow-wrap:anywhere;
  color:#f2e8ff;
}
body.av-profile-page .av-measured-card span{
  min-width:0;
  color:var(--muted,#aaa0bb);
  font-size:11px;
  line-height:1.4;
  overflow-wrap:anywhere;
}
body.av-profile-page .av-measured-last{
  margin:14px 0 0;
  font-size:13px;
  line-height:1.55;
  overflow-wrap:anywhere;
}
body.av-profile-page .av-measured-note{
  margin:7px 0 0;
  color:var(--muted,#aaa0bb);
  font-size:11px;
  line-height:1.55;
}
@media(max-width:760px){
  body.av-profile-page .av-measured-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  body.av-profile-page .av-measured-card{min-height:88px;padding:12px}
}
@media(max-width:390px){
  body.av-profile-page .av-measured-section{padding:13px;border-radius:16px}
  body.av-profile-page .av-measured-card{min-height:80px;padding:10px}
  body.av-profile-page .av-measured-card strong{font-size:18px}
  body.av-profile-page .av-measured-card span{font-size:10px}
}


/* ANIME VOID 46.0 — one-tap home navigation and a useful profile journey.
   Keep these responsive elements independent of legacy header/catalog CSS. */
body.av-home .av-46-home-links{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  align-items:stretch;
  gap:11px;
  max-width:1180px;
  margin:clamp(13px,2vw,23px) auto 0;
  padding:0 max(14px,2%);
}
body.av-home .av-46-home-links .av-46-home-link{
  box-sizing:border-box;
  display:flex;
  align-items:center;
  min-width:0;
  min-height:96px;
  gap:11px;
  padding:15px;
  border:1px solid rgba(196,158,230,.2);
  border-radius:16px;
  text-decoration:none;
  background:linear-gradient(150deg,rgba(37,27,53,.94),rgba(21,18,32,.94));
  color:var(--text,#f4edff);
  transition:transform .18s,border-color .18s,background .18s;
  touch-action:manipulation;
}
body.av-home .av-46-home-links .av-46-home-link:hover{
  border-color:rgba(203,151,248,.55);
  background:linear-gradient(150deg,rgba(56,34,78,.95),rgba(27,20,42,.95));
  transform:translateY(-2px);
}
body.av-home .av-46-home-links .av-46-home-link:focus-visible,
body.av-profile-page .av-46-profile-journey :is(a,button):focus-visible{
  outline:3px solid #e9bafc;
  outline-offset:3px;
}
body.av-home .av-46-home-symbol{
  box-sizing:border-box;
  flex:0 0 39px;
  display:grid;
  place-items:center;
  width:39px;
  height:39px;
  border-radius:11px;
  background:rgba(170,103,222,.17);
  color:#e3baff;
  font:800 29px/1 system-ui,sans-serif;
}
body.av-home .av-46-home-link-text{
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  gap:5px;
  min-width:0;
}
body.av-home .av-46-home-link-text strong{
  font-size:14px;
  line-height:1.35;
  overflow-wrap:anywhere;
}
body.av-home .av-46-home-link-text small{
  font-size:11px;
  line-height:1.4;
  color:#bcaecb;
  overflow-wrap:anywhere;
}
body.av-home .av-46-home-chevron{
  align-self:center;
  flex:0 0 auto;
  color:#c69ae7;
  font-size:17px;
}
body.av-home .av-46-home-subnav{
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:wrap;
  gap:8px 18px;
  max-width:1180px;
  margin:9px auto 18px;
  padding:0 max(15px,2%);
}
body.av-home .av-46-home-subnav a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  color:#c8b3da;
  font-size:12px;
  font-weight:600;
  text-decoration:none;
}
body.av-home .av-46-home-subnav a:hover{color:#f1d5ff;text-decoration:underline}
body.av-home .av-46-home-subnav a:focus-visible{outline:2px solid #dcb5ff;outline-offset:2px}
body.av-profile-page .av-46-profile-journey{
  box-sizing:border-box;
  max-width:100%;
  min-width:0;
  padding:clamp(16px,2.5vw,24px);
  margin:18px 0 28px;
  border:1px solid rgba(196,158,230,.22);
  border-radius:20px;
  background:linear-gradient(145deg,rgba(36,27,54,.8),rgba(20,16,32,.9));
}
body.av-profile-page .av-46-profile-journey-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px 20px;
  flex-wrap:wrap;
  margin-bottom:17px;
}
body.av-profile-page .av-46-profile-journey-heading>div{min-width:0;flex:1 1 220px}
body.av-profile-page .av-46-profile-journey-heading h2{
  font-size:clamp(20px,2.5vw,26px);
  line-height:1.2;
  margin:4px 0 6px;
}
body.av-profile-page .av-46-profile-journey-heading p{
  font-size:13px;
  line-height:1.5;
  margin:0;
  color:var(--muted,#b4a7c4);
}
body.av-profile-page .av-46-profile-all{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 13px;
  border-radius:11px;
  border:1px solid rgba(210,163,246,.28);
  color:#f0cfff;
  background:rgba(178,121,226,.09);
  text-decoration:none;
  font-size:12px;
  font-weight:700;
}
body.av-profile-page .av-46-profile-journey-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
body.av-profile-page .av-46-profile-journey-link{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  min-height:88px;
  padding:13px;
  border:1px solid rgba(202,164,239,.17);
  border-radius:14px;
  background:rgba(11,9,20,.37);
  text-decoration:none;
  color:var(--text,#f3ebff);
  touch-action:manipulation;
}
body.av-profile-page .av-46-profile-journey-link:hover{
  border-color:rgba(215,161,254,.5);
  background:rgba(83,51,108,.24);
}
body.av-profile-page .av-46-journey-icon{
  display:grid;
  flex:0 0 34px;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:10px;
  background:rgba(168,101,227,.16);
  color:#e5bdff;
  font-size:23px;
  line-height:1;
}
body.av-profile-page .av-46-profile-journey-link>span:nth-child(2){
  display:flex;
  flex:1;
  flex-direction:column;
  gap:5px;
  min-width:0;
}
body.av-profile-page .av-46-profile-journey-link strong{
  font-size:13px;
  line-height:1.3;
  overflow-wrap:anywhere;
}
body.av-profile-page .av-46-profile-journey-link small{
  font-size:11px;
  color:#bbadcb;
  line-height:1.35;
  overflow-wrap:anywhere;
}
body.av-profile-page .av-46-journey-arrow{
  color:#c89df1;
  flex:0 0 auto;
}
@media(max-width:1050px){
  body.av-home .av-46-home-links{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.av-profile-page .av-46-profile-journey-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.av-profile-page .av-46-profile-journey-grid>a:first-child{grid-column:1/-1}
}
@media(max-width:760px){
  body.av-home .av-46-home-links{gap:8px;padding:0 12px}
  body.av-home .av-46-home-links .av-46-home-link{min-height:86px;gap:7px;padding:11px;border-radius:13px}
  body.av-home .av-46-home-symbol{flex-basis:31px;width:31px;height:31px;font-size:23px}
  body.av-home .av-46-home-link-text strong{font-size:12px}
  body.av-home .av-46-home-link-text small{font-size:10px}
  body.av-home .av-46-home-chevron{font-size:12px}
  body.av-home .av-46-home-subnav{padding:0 15px;gap:6px 15px;margin-bottom:12px}
  body.av-profile-page .av-46-profile-journey{padding:14px;border-radius:16px}
  body.av-profile-page .av-46-profile-journey-grid{gap:8px}
  body.av-profile-page .av-46-profile-journey-link{min-height:83px;padding:11px;gap:8px}
}
@media(max-width:390px){
  body.av-home .av-46-home-links .av-46-home-link{gap:5px;padding:9px}
  body.av-home .av-46-home-link-text strong{font-size:11px}
  body.av-home .av-46-home-link-text small{font-size:9.5px}
  body.av-profile-page .av-46-profile-journey-grid{grid-template-columns:minmax(0,1fr)}
  body.av-profile-page .av-46-profile-journey-grid>a:first-child{grid-column:auto}
}
@media(prefers-reduced-motion:reduce){
  body.av-home .av-46-home-link{transition:none!important;transform:none!important}
}


/* ANIME VOID 47.0 — measured history action, safe tap targets and compact phones. */
body.av-profile-page #measuredWatchStats .section-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  min-width:0;
}
body.av-profile-page #measuredWatchStats .section-heading>div{
  flex:1 1 220px;
  min-width:0;
}
body.av-profile-page #measuredWatchStats .av-47-measured-link{
  box-sizing:border-box;
  display:inline-flex;
  flex:0 0 auto;
  justify-content:center;
  align-items:center;
  min-height:44px;
  max-width:100%;
  padding:10px 13px;
  background:rgba(172,110,226,.12);
  border:1px solid rgba(205,151,244,.38);
  border-radius:11px;
  color:#ecd0fb;
  font-weight:700;
  font-size:12px;
  line-height:1.35;
  text-decoration:none;
  white-space:normal;
  text-align:center;
  touch-action:manipulation;
}
body.av-profile-page #measuredWatchStats .av-47-measured-link:hover{
  background:rgba(175,113,230,.22);
  border-color:rgba(224,184,252,.7);
}
body.av-profile-page #measuredWatchStats .av-47-measured-link:focus-visible{
  outline:3px solid #f1cbff;
  outline-offset:3px;
}
@media(max-width:540px){
  body.av-profile-page #measuredWatchStats .section-heading{
    align-items:stretch;
  }
  body.av-profile-page #measuredWatchStats .av-47-measured-link{
    width:100%;
    flex-basis:100%;
  }
  body.av-home .av-46-home-links{
    max-width:100%;
  }
}


/* ANIME VOID 47.0 — compact recent viewing preview on home and profile. */
body:is(.av-home,.av-profile-page) .av-47-recent-preview{
  box-sizing:border-box;
  max-width:1180px;
  min-width:0;
  margin:clamp(15px,2vw,24px) auto;
  padding:clamp(14px,2vw,19px);
  background:linear-gradient(140deg,rgba(32,24,47,.85),rgba(17,13,28,.93));
  border:1px solid rgba(203,164,237,.18);
  border-radius:17px;
}
body:is(.av-home,.av-profile-page) .av-47-recent-preview[hidden]{display:none!important}
body.av-home .av-47-recent-preview{
  width:calc(100% - 28px);
}
body:is(.av-home,.av-profile-page) .av-47-recent-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
  margin:0 0 12px;
}
body:is(.av-home,.av-profile-page) .av-47-recent-head h2{
  margin:0;
  font-size:clamp(16px,2vw,20px);
  font-weight:750;
  line-height:1.3;
}
body:is(.av-home,.av-profile-page) .av-47-recent-head>a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:8px 13px;
  border-radius:10px;
  border:1px solid rgba(209,167,245,.28);
  color:#efccff;
  font-size:12px;
  font-weight:750;
  text-decoration:none;
  touch-action:manipulation;
}
body:is(.av-home,.av-profile-page) .av-47-recent-list{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
body:is(.av-home,.av-profile-page) .av-47-recent-item{
  box-sizing:border-box;
  display:flex;
  align-items:center;
  min-width:0;
  min-height:96px;
  gap:11px;
  padding:10px;
  border-radius:13px;
  border:1px solid rgba(207,162,244,.14);
  background:rgba(10,7,19,.36);
  color:#f3eaff;
  text-decoration:none;
  touch-action:manipulation;
}
body:is(.av-home,.av-profile-page) .av-47-recent-item:hover{
  background:rgba(103,65,137,.24);
  border-color:rgba(221,177,255,.47);
}
body:is(.av-home,.av-profile-page) .av-47-recent-item>img{
  display:block;
  flex:0 0 52px;
  width:52px;
  height:76px;
  object-fit:cover;
  border-radius:8px;
  background:#271e33;
}
body:is(.av-home,.av-profile-page) .av-47-recent-info{
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  min-width:0;
  gap:5px;
}
body:is(.av-home,.av-profile-page) .av-47-recent-info>strong{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  overflow-wrap:anywhere;
  font-size:13px;
  line-height:1.4;
}
body:is(.av-home,.av-profile-page) .av-47-recent-info>small{
  overflow-wrap:anywhere;
  color:#bfb0d0;
  font-size:11px;
  line-height:1.4;
}
body:is(.av-home,.av-profile-page) .av-47-recent-arrow{
  flex:0 0 auto;
  color:#d3a6ed;
  font-size:14px;
}
body:is(.av-home,.av-profile-page) .av-47-recent-preview a:focus-visible{
  outline:3px solid #efc0ff;
  outline-offset:2px;
}
@media(max-width:860px){
  body:is(.av-home,.av-profile-page) .av-47-recent-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  body:is(.av-home,.av-profile-page) .av-47-recent-item:last-child:nth-child(odd){grid-column:1/-1}
}
@media(max-width:560px){
  body:is(.av-home,.av-profile-page) .av-47-recent-preview{
    padding:12px;
    border-radius:14px;
  }
  body:is(.av-home,.av-profile-page) .av-47-recent-list{grid-template-columns:minmax(0,1fr)}
  body:is(.av-home,.av-profile-page) .av-47-recent-item:last-child:nth-child(odd){grid-column:auto}
  body:is(.av-home,.av-profile-page) .av-47-recent-item{min-height:86px}
  body:is(.av-home,.av-profile-page) .av-47-recent-item>img{
    flex-basis:47px;
    width:47px;
    height:67px;
  }
  body:is(.av-home,.av-profile-page) .av-47-recent-info>strong{font-size:12px}
  body:is(.av-home,.av-profile-page) .av-47-recent-info>small{font-size:10px}
}
