/* Tsukiro 3.6.67 hotfixes */
html,body{scroll-behavior:auto!important}
body[data-page="home"]{overscroll-behavior-y:auto!important}
.card-meta:empty,.card-genres:empty{display:none!important}
.toast-stack{z-index:1320!important}
.community-chat,.community-chat-panel{z-index:1700!important}
body.community-chat-open .toast-stack{z-index:1250!important;right:min(440px,calc(100vw - 20px))!important}
.watch-upscale-badge:not(.hidden){box-shadow:0 8px 32px rgba(255,79,163,.2);backdrop-filter:blur(10px)}
@media(max-width:820px){body.community-chat-open .toast-stack{top:76px!important;bottom:auto!important;left:12px!important;right:12px!important}.community-chat-panel{z-index:1750!important}}

/* Readable page headings: leave room for Cyrillic descenders and accents. */
html[data-candy-ui] body[data-page] :is(h1, h2) {
  line-height: 1.18 !important;
  letter-spacing: -.02em !important;
  padding-block: .08em !important;
  overflow: visible !important;
  max-height: none !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  clip-path: none !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
  background-image: none !important;
  color: #eee7f0 !important;
  -webkit-text-fill-color: currentColor !important;
}
html[data-candy-ui] body[data-page] :is(h1, h2) :is(em, span, strong) {
  background-image: none !important;
  -webkit-text-fill-color: currentColor !important;
  color: inherit !important;
  clip-path: none !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}
/* Browser-managed anchor scrolling; the existing wheel controller uses instant writes. */
@media (prefers-reduced-motion: no-preference) {
  html[data-candy-ui="true"] { scroll-behavior: smooth !important; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-candy-ui="true"] { scroll-behavior: auto !important; }
}
