/* Midnight violet atmosphere, crimson-first brand. Never recolor the logo, cursor,
   featured anime art, catalogue posters or third-party video frame. */
:root {
  --brand-crimson:#ff4659; --action-crimson:#c52d43; --action-hover:#ab263b;
  --bg:#0d0c15; --panel:#1b1829; --line:#393149; --ink:#f5f3ff;
  --dim:#bdb8cc; --peach:#ff8995; --violet:#a88ae9;
  --glass:#211b30; --glass-dark:#161322;
}
html {background:var(--bg);color:var(--ink)}
body {background:radial-gradient(ellipse at 95% 12%,#29203d45,transparent 48rem),var(--bg)}
.mast,body[data-page=home] .mast{background:#15111f}
@media(min-width:1025px){
 .mast,body[data-page=home] .mast{background:linear-gradient(110deg,#211a30f2,#14111de8);border-color:#57436d55}
}
@media(max-width:1024px){
 .mast,body[data-page=home] .mast{background:#15111ff5!important}
 .mobile-dock{background:#211a30ed;border-color:#5947719c}
}
.brand span {color:var(--brand-crimson)}
.mast nav [aria-current=page]:after,.feature-label i{background:var(--brand-crimson)}
.mobile-dock a[aria-current=page] {background:#ff46591c;color:var(--ink)}
.mobile-dock a[aria-current=page] svg{color:var(--brand-crimson)}
.mast form,.mast .library,.mast .account-trigger,.rail-controls button,.button:not(.primary):not(.play):not(.google-btn),.pills a,.pills button,.reference a{background-color:#252033;border-color:#483c59}
.mast .account-trigger{border:1px solid #483c59;border-radius:9px;min-height:38px}
.button.primary,.mascot-callout .button.primary,.empty-collection .button.primary,.account-dialog .button.primary,#community-thread .button.primary,.play{background:var(--action-crimson);color:#fff;border-color:#ff4659;box-shadow:0 4px 18px #c52d431e}
.button.primary:hover,.mascot-callout .button.primary:hover,.empty-collection .button.primary:hover,.account-dialog .button.primary:hover,#community-thread .button.primary:hover,.play:hover{background:var(--action-hover);color:#fff;border-color:#ff7887}
.play svg{color:#fff}
.button:not(.primary):not(.play):not(.google-btn):hover,.pills a:hover,.pills button:hover,.reference a:hover,.mast .account-trigger:hover{border-color:var(--violet);color:var(--ink)}
.button[aria-current=true],.queue [aria-current=true],.mast .library[aria-current=page],.billboard .save-label[aria-pressed=true],.community-post button[aria-pressed=true]{border-color:var(--brand-crimson);color:#ff8995;background:#ff46591a}
.title-card .save[aria-pressed=true]{color:#ff8995}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid #ff8995;outline-offset:3px}
.filters,.queue,dl,.resume,.anime-preview,.preview-art{background-color:var(--panel);border-color:var(--line)}
.detail{background:linear-gradient(125deg,#2c223c,#191522 75%);border-color:var(--line)}
.player{background:#070709}.player-tools,.day a,.rank,.relation,footer{border-color:var(--line)}
.ranked-film>b{color:var(--bg)}
.mascot-callout,.anime-note,.empty-collection{background:radial-gradient(ellipse at 90% 55%,#6445a042,transparent 64%),linear-gradient(115deg,#211b30,#161322);border-color:#57436d80}
.mascot-callout img,.anime-note img,.empty-collection img{filter:none;mask-image:radial-gradient(ellipse 66% 70% at center,#000 55%,transparent 100%);-webkit-mask-image:radial-gradient(ellipse 66% 70% at center,#000 55%,transparent 100%)}
.mascot-callout .eyebrow,.anime-note .eyebrow,.empty-collection .eyebrow,.community-hero .eyebrow,.account-art span{color:#ff8995}
.account-dialog,#community-thread,.community-hero{--peach:#ff8995}
.account-dialog{background:#1b1829;border-color:#5b4774;box-shadow:0 28px 100px #000c,0 0 36px #6741a125}
.account-dialog::backdrop{background:#080611d9}
.account-art{background:linear-gradient(0deg,#14101ef5 0%,#14101e55 24%,transparent 66%),url('assets/community-mascot.webp') center/cover;background-color:#211b30}
.account-form input:not([type=checkbox]),.community-form textarea,.reply-form textarea{background:#13101e;border-color:#4b3d60}
.account-sep:before,.account-sep:after,.community-replies,.community-reply{border-color:#463953}
.account-sep:before,.account-sep:after{background:#463953}
.community-hero{background:linear-gradient(90deg,#1b1729fa 0%,#1b1729e8 40%,#1b17292b 70%,transparent 100%),url('assets/characters/community.webp') right center/auto 100% no-repeat,radial-gradient(ellipse at right,#4b326f,#1b1729 70%);border-color:#57436d80}
.community-form,.community-post,.community-empty{background:#1b1829;border-color:#423750}
#community-thread .community-empty{background-color:#1b1829;background-image:linear-gradient(90deg,#1b1829 0%,#1b1829ee 55%,transparent 90%),url('assets/characters/watchlist.webp');background-position:center,right 12px center;background-size:cover,125px auto;background-repeat:no-repeat}
.community-avatar{background:#403050;color:#f5e5ff}
.google-btn{background:#f8f7fa!important;color:#252632!important;border-color:transparent!important;box-shadow:none!important}
@media(max-width:720px){
 .account-art{background:linear-gradient(90deg,#14101ef0 0%,#14101e80 47%,transparent 100%),url('assets/community-mascot.webp') right 28%/cover}
}
@media(max-width:600px){
 .community-hero{background:linear-gradient(0deg,#1b1729 6%,#1b1729e8 30%,#1b172915 82%),url('assets/characters/community.webp') center top/auto 78% no-repeat,#1b1729}
}
@media(max-width:480px){
 #community-thread .community-empty{background-image:linear-gradient(180deg,#1b1829 0%,#1b1829ee 40%,transparent 90%),url('assets/characters/watchlist.webp');background-position:center,center bottom 12px;background-size:cover,160px auto}
}
@media(prefers-reduced-motion:reduce){.mascot-callout img,.anime-note img,.empty-collection img,.account-dialog[open],.community-post{animation:none;transition:none;transform:none}}
/* Blend local illustration edges into the card without altering their colors. */
.mascot-callout img,.anime-note img,.empty-collection img{
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent),linear-gradient(0deg,transparent,#000 13%,#000 87%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent),linear-gradient(0deg,transparent,#000 13%,#000 87%,transparent);
  -webkit-mask-composite:source-in;mask-composite:intersect;
}
@media(min-width:601px){.community-hero{background-image:linear-gradient(90deg,#1b1729 0%,#1b1729 45%,#1b1729f5 64%,#1b172900 88%),url('assets/characters/community.webp'),radial-gradient(ellipse at right,#4b326f,#1b1729 70%)}}
