/* Reference geometry lives in static/css; only local behavior and placeholders here. */
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #ec237f; outline-offset: 4px; }
[hidden] { display: none !important; }
.site-shell .header-design-coin[hidden] { display: flex !important; }
.site-shell .header-design-separator[hidden] { display: block !important; }
.home-page .header-menu-button[hidden] { display: none !important; }
.header-inner .header-menu-button { display: none; }
.home-mobile-menu.is-open { display: block; }
.header-account .account-avatar-photo { object-fit: cover; }
.site-shell .brand-logo { content: normal !important; }
.header-account .account-label { white-space: nowrap; }
.poster-status-flag { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(110deg,#ffdf32,#ffae28); color: #19130b; border-radius: 8px; font: 400 15px/1 "PingFang SC",sans-serif; box-shadow: 0 2px 10px #0002; }
.poster-status-flag--ongoing { background: linear-gradient(110deg,#ff69a9,#eb237f); color: #fff; }
.hero-card, .poster-card { -webkit-user-drag: none; }
.hero-thumb img { object-fit: cover; }
/* Keep the reference's full-bleed hero and glass CTA; portrait covers only adjust their crop focus. */
body.home-page .hero-image--cover-fallback { object-position: center 35%; }
.header-search-hot-item { text-align: left; }
.header-search-hot-keyword { max-width: 100%; }
.search-panel-heading .header-search-close { display: inline-flex; align-items: center; justify-content: center; color: #aaa; background: transparent; font: 24px/1 Arial,sans-serif; }
.search-result-status { padding: 0; margin: 0; color: #999; font-size: 12px; line-height: 1.6; }
.header-search-change:disabled { opacity: .35; cursor: default; }
.header-search-guess-list:empty { min-height: 0; }
.header-search-popover .header-search-hot-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 20px; }
[data-tag-url] { cursor: pointer; }
[data-tag-url]:hover { color: #fff; }
.hero-swiper:not(.swiper-initialized) .swiper-slide:not(:first-child) { visibility: hidden; }
.content-section { scroll-margin-top: 20px; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 12000; background: #ec237f; color: white; padding: 12px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-dialog { width: min(680px,calc(100vw - 32px)); max-height: 80dvh; padding: 28px; box-sizing: border-box; background: #161616; color: #eee; border: 1px solid #373737; border-radius: 22px; box-shadow: 0 24px 100px #0009; }
.site-dialog::backdrop { background: #000b; backdrop-filter: blur(8px); }
.compact-dialog { max-width: 440px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.dialog-head h2 { margin: 0; font-size: 22px; font-weight: 500; }
.dialog-close { width: 36px; height: 36px; background: #252525; border: 0; border-radius: 50%; color: #aaa; font-size: 26px; }
#localSearch { display: flex; gap: 10px; }
#localSearch input { width: 100%; min-width: 0; background: #222; color: #fff; padding: 13px 16px; border: 1px solid #383838; border-radius: 10px; outline-color: #ec237f; }
#localSearch button, .download-choice { background: #ec237f; color: white; padding: 12px 20px; border: 0; border-radius: 10px; flex-shrink: 0; text-decoration: none; }
.search-status, .notice-copy { color: #999; font-size: 14px; line-height: 1.8; }
.search-results { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.search-result { display: flex; gap: 12px; color: #eee; text-decoration: none; background: #202020; border-radius: 10px; overflow: hidden; align-items: center; }
.search-result img { width: 68px; height: 91px; object-fit: cover; }
.search-result span { padding-right: 10px; font-size: 14px; }
.download-choices { display: flex; gap: 10px; flex-wrap: wrap; }
.download-choice { margin-top: 6px; }
.noscript-note { padding: 16px; color: #999; text-align: center; }
.eight-pop-mask:not([hidden]) { display: flex; }
.eight-pop-card:focus { outline: none; }
body.modal-open { overflow: hidden; }
/* The legacy tablet frame added an inset and top gap to the desktop hero. */
@media (min-width:768px) and (max-width:1023px) {
  .home-page .page-shell { padding-top: 0; }
}
@media (max-width:767px) {
  html { scroll-padding-top: 70px; }
  .header-inner .header-menu-button { display: flex; background: transparent; border: 0; padding: 0; margin-right: auto; width: 24px; height: 24px; }
  .header-menu-button img { width: 24px; height: 24px; }
  .site-dialog { padding: 22px; }
  .search-results { grid-template-columns: 1fr; }
  .poster-status-flag { width: 42px; height: 26px; font-size: 12px; border-radius: 6px; }
  .home-page .header-inner { justify-content: flex-end; }
  .site-shell .header-design-coin[hidden], .site-shell .header-design-separator[hidden] { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
