
/* Visual stability layer */
:root {
  color-scheme: dark;
  scrollbar-gutter: stable;
}
html {
  min-width: 320px;
  background: #09090b;
  overflow-y: scroll;
}
body {
  min-width: 320px;
  min-height: 100vh;
  font-family: 'Inter', system-ui, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
html:not([data-fukurou-page="index"]):not([data-fukurou-page="reader"]) body #page-root > header:empty {
  display: block;
  min-height: 61px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(9,9,11,.96);
}
img {
  height: auto;
}
[data-fukurou-stable-root] {
  overflow-anchor: none;
}
@media (max-width: 760px) {
  html:not([data-fukurou-page="index"]):not([data-fukurou-page="reader"]) body #page-root > header:empty {
    min-height: 93px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.fukurou-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
}
.fukurou-brand-link:hover { color: #fff; }
.fukurou-brand-link:active { color: #fff; }
.fukurou-brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 0;
  object-fit: contain;
  display: block;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  box-shadow: none !important;
}
.fukurou-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9,9,11,.96);
  border-bottom: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(18px);
}
.fukurou-header-inner {
  height: 60px;
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 42px;
}
.fukurou-main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 26px;
  font-size: 14px;
  font-weight: 650;
}
.fukurou-main-nav a {
  color: #f4f4f5;
  text-decoration: none;
  transition: color .2s ease;
}
.fukurou-main-nav a:hover,
.fukurou-main-nav a.is-active {
  color: #ff8533;
}
.fukurou-more-nav {
  position: relative;
}
.fukurou-more-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f4f4f5;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
  transition: color .2s ease;
}
.fukurou-more-trigger:hover,
.fukurou-more-trigger.is-active,
.fukurou-more-trigger[aria-expanded="true"] {
  color: #ff8533;
}
.fukurou-more-chevron {
  width: 11px;
  height: 7px;
  transition: transform .18s ease;
}
.fukurou-more-trigger[aria-expanded="true"] .fukurou-more-chevron {
  transform: rotate(180deg);
}
.fukurou-more-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: -16px;
  z-index: 100;
  display: none;
  width: 246px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 17px;
  background: rgba(19,19,22,.985);
  box-shadow: 0 24px 70px rgba(0,0,0,.58);
  backdrop-filter: blur(22px);
}
.fukurou-more-menu.is-open {
  display: grid;
  gap: 3px;
}
.fukurou-main-nav .fukurou-more-menu a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 11px;
  color: #d4d4d8;
  font-size: 13px;
  font-weight: 600;
}
.fukurou-main-nav .fukurou-more-menu a:hover,
.fukurou-main-nav .fukurou-more-menu a.is-active {
  background: rgba(255,133,51,.1);
  color: #fff;
}
.fukurou-more-menu a > span:first-child {
  display: inline-flex;
  width: 19px;
  flex: 0 0 19px;
  align-items: center;
  justify-content: center;
  color: #ff9147;
}
.fukurou-more-menu .fukurou-vector-icon {
  width: 17px;
  height: 17px;
}
.fukurou-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
  min-width: 0;
}
.fukurou-notification-link {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(21,21,25,.88);
  color: #e4e4e7;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.fukurou-notification-link:hover,
.fukurou-notification-link.is-active {
  color: #ff8533;
  border-color: rgba(255,133,51,.45);
  background: rgba(26,26,30,.96);
}
.fukurou-notification-link svg { width: 19px; height: 19px; }
.fukurou-theme-toggle {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(21,21,25,.88);
  color: #e4e4e7;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}
.fukurou-theme-toggle:hover {
  color: #ff8533;
  border-color: rgba(255,133,51,.45);
  background: rgba(26,26,30,.96);
  transform: translateY(-1px);
}
.fukurou-theme-toggle:active { transform: translateY(0); }
.fukurou-theme-toggle::before {
  content: "☀";
  font: 400 20px/1 system-ui, sans-serif;
}
html[data-theme="light"] .fukurou-theme-toggle::before {
  content: "☾";
  font-size: 22px;
}
.fukurou-notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #09090b;
  border-radius: 999px;
  background: #ff7417;
  color: #fff;
  font: 800 10px system-ui, sans-serif;
}
.fukurou-notification-badge[hidden] { display: none; }
.fukurou-login-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(255,133,51,.5);
  border-radius: 999px;
  background: rgba(255,133,51,.1);
  color: #ff9a52;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.fukurou-login-link:hover {
  background: #ff7a17;
  color: #fff;
  transform: translateY(-1px);
}
.fukurou-search-wrap {
  position: relative;
}
.fukurou-search-trigger {
  display: inline-flex;
  width: 38px;
  min-width: 38px;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(21,21,25,.88);
  color: #e4e4e7;
  font: 800 13px system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
}
.fukurou-search-trigger:hover {
  border-color: rgba(255,133,51,.45);
  background: rgba(26,26,30,.96);
}
.fukurou-search-trigger > svg {
  width: 18px;
  height: 18px;
  display: block;
}
.fukurou-search-popover {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(500px, 92vw);
  padding: 12px;
  border-radius: 18px;
  background: #151519;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 50px rgba(0,0,0,.5);
  z-index: 20;
}
.fukurou-search-popover.is-open { display: block; }
.fukurou-search {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: #0c0c0f;
  color: #fff;
  outline: none;
  padding: 0 14px;
  font: 500 14px system-ui, sans-serif;
}
.fukurou-search-tabs{display:flex;gap:6px;margin:10px 0 8px;overflow-x:auto;scrollbar-width:none}
.fukurou-search-tabs::-webkit-scrollbar{display:none}
.fukurou-search-tab{flex:0 0 auto;padding:7px 10px;border:1px solid transparent;border-radius:999px;background:#202024;color:#a1a1aa;font:700 11px system-ui,sans-serif;cursor:pointer}
.fukurou-search-tab.is-active{border-color:rgba(255,133,51,.32);background:#ff7417;color:#fff}
.fukurou-search-results{display:grid;gap:5px;max-height:min(480px,65vh);overflow-y:auto;padding:2px;overscroll-behavior:contain}
.fukurou-search-group-title{padding:10px 8px 4px;color:#71717a;font:800 10px system-ui,sans-serif;letter-spacing:.16em;text-transform:uppercase}
.fukurou-search-result{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:11px;padding:9px;border-radius:13px;color:#f4f4f5;text-decoration:none;transition:background .16s ease}
.fukurou-search-result:hover{background:#232328}
.fukurou-search-result img{width:48px;height:58px;border-radius:10px;object-fit:cover;background:#0c0c0f}
.fukurou-search-result.is-user img{height:48px;border-radius:50%}
.fukurou-search-result.is-card img{height:58px}
.fukurou-search-result strong{display:block;overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.fukurou-search-result small{display:block;margin-top:4px;overflow:hidden;color:#8d8d98;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.fukurou-search-result-meta{color:#ff9147;font-size:11px;font-weight:800}
.fukurou-search-message{padding:28px 14px;color:#8d8d98;font-size:13px;line-height:1.55;text-align:center}
.manga-catalog-card {
  display: block;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}
#manga-catalog-grid {
  min-width: 0;
  min-height: min(62vh, 720px);
  align-content: start;
}
.catalog-empty-state {
  display: grid;
  min-width: 0;
  min-height: min(58vh, 650px);
  grid-column: 1 / -1;
  place-items: center;
  padding: 32px 12px;
}
.catalog-empty-state__card {
  display: grid;
  width: min(100%, 460px);
  justify-items: center;
  padding: 34px 24px;
  border: 1px dashed rgba(255,255,255,.12);
  border-radius: 24px;
  background: rgba(24,24,27,.58);
  color: #a1a1aa;
  text-align: center;
}
.catalog-empty-state__mark { display:grid; width:48px; height:48px; place-items:center; margin-bottom:14px; border-radius:15px; background:rgba(249,115,22,.12); color:#fb923c; font-size:25px; }
.catalog-empty-state__card strong { color:#f4f4f5; font-size:17px; }
.catalog-empty-state__card p { max-width:34rem; margin:8px 0 18px; font-size:12px; line-height:1.6; }
.catalog-empty-state__card button { min-height:40px; padding:0 15px; border:1px solid rgba(249,115,22,.34); border-radius:12px; background:rgba(249,115,22,.13); color:#fb923c; font:800 11px system-ui,sans-serif; cursor:pointer; }
.catalog-card-enter { animation:catalog-card-enter .34s ease-out both; animation-delay:var(--catalog-card-delay,0ms); }
@keyframes catalog-card-enter { from { opacity:0; transform:translateY(7px); } to { opacity:1; transform:none; } }
html[data-motion="minimal"] .catalog-card-enter,
html[data-motion="reduced"] .catalog-card-enter,
html[data-performance-mode="low"] .catalog-card-enter,
html[data-background-refresh="economy"] .catalog-card-enter { animation:none; }
html[data-theme="light"] .catalog-empty-state__card { border-color:rgba(24,24,27,.14); background:rgba(255,255,255,.82); color:#626773; }
html[data-theme="light"] .catalog-empty-state__card strong { color:#202228; }
@media (prefers-reduced-motion: reduce) { .catalog-card-enter { animation:none!important; } }
@media (max-width: 640px) { #manga-catalog-grid { min-height:420px; } .catalog-empty-state { min-height:380px; padding:18px 0; } .catalog-empty-state__card { padding:28px 18px; border-radius:20px; } }
.manga-catalog-cover {
  position: relative;
  aspect-ratio: 3 / 4.25;
  overflow: hidden;
  border-radius: 18px;
  background: #18181b;
  border: 1px solid rgba(255,255,255,.08);
}
.manga-catalog-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.manga-catalog-card:hover img { transform: scale(1.04); }
.manga-catalog-rating {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  border-radius: 10px;
  background: rgba(10,10,12,.82);
  color: #4ade80;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}
.manga-catalog-title {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}
.manga-catalog-info {
  margin-top: 4px;
  color: #a1a1aa;
  font-size: 12px;
}
.manga-load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(260px, 100%);
  min-height: 48px;
  margin: 34px auto 0;
  border: 1px solid rgba(148, 163, 184, .26);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(148, 163, 184, .08), rgba(255, 255, 255, .035));
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.manga-load-more:hover {
  border-color: rgba(249, 115, 22, .38);
  background: linear-gradient(135deg, rgba(148, 163, 184, .12), rgba(249, 115, 22, .08));
  transform: translateY(-1px);
}
.manga-load-more[hidden] { display: none; }
.fukurou-profile-shell { position: relative; flex-shrink: 0; }
.fukurou-profile-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 0;
  font: inherit;
}
.fukurou-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8533, #ffb700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}
.fukurou-user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}
.fukurou-user-name { font-size: 14px; font-weight: 800; }
.fukurou-user-online {
  margin-top: 3px;
  color: #34d399;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.fukurou-user-online::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #34d399;
}
.fukurou-profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  width: 256px;
  background: rgba(24,24,27,.98);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 21px;
  box-shadow: 0 24px 70px rgba(0,0,0,.5);
  overflow: hidden;
  z-index: 10000;
  display: none;
}
.fukurou-profile-menu.is-open { display: block; }
.fukurou-profile-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 16px 13px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.fukurou-profile-head .fukurou-avatar {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  font-size: 18px;
}
.fukurou-profile-role { color: #a1a1aa; font-size: 12px; margin-top: 4px; }
.fukurou-profile-coins {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 7px 16px 2px;
  padding: 4px 0 2px;
  color: inherit;
  text-decoration: none;
}
.fukurou-profile-coins:hover .fukurou-coins-label {
  color: #fff;
}
.fukurou-coins-label {
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 700;
}
.fukurou-coins-value {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.fukurou-coins-value::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  background: url("/assets/images/profile/coin.png") center / contain no-repeat;
}
.fukurou-menu-list { padding: 9px 13px 12px; }
.fukurou-menu-item {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 38px;
  padding: 6px 7px;
  border-radius: 11px;
  color: #f4f4f5;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.fukurou-menu-icon {
  width: 20px;
  flex: 0 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  text-align: center;
}
.fukurou-menu-text {
  display: block;
  min-width: 0;
  line-height: 1.2;
}
.fukurou-menu-item:hover { color: #ff8533; }
.fukurou-menu-divider { height: 1px; background: rgba(255,255,255,.08); margin: 7px 0; }
@media (max-width: 1100px) {
  .fukurou-header-inner { gap: 24px; }
  .fukurou-main-nav { gap: 18px; }
}
@media (max-width: 760px) {
  .fukurou-user-meta { display: none; }
  .fukurou-brand-link { font-size: 20px; }
  .fukurou-brand-logo { width: 36px; height: 36px; }
  .fukurou-header-inner {
    height: auto;
    min-height: 92px;
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .fukurou-main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 20px;
    font-size: 12px;
    overflow-x: auto;
    padding: 3px 0 2px;
    scrollbar-width: none;
  }
  .fukurou-main-nav::-webkit-scrollbar { display: none; }
  .fukurou-header-actions { gap: 10px; }
}

/* Fukurou 5.16 — real profile avatars and vector menu icons */
.fukurou-avatar {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: rgba(255,255,255,.06);
}
.fukurou-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.fukurou-avatar img:not(.fukurou-avatar-frame) {
  position: relative;
  z-index: 1;
}
.fukurou-avatar .fukurou-avatar-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  object-fit: fill;
}
.fukurou-avatar.is-large {
  width: 44px;
  height: 44px;
  border-radius: 13px;
}
.fukurou-vector-icon {
  display: block;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
}
.fukurou-menu-icon .fukurou-vector-icon {
  width: 18px;
  height: 18px;
}
.notification-type-icon .fukurou-vector-icon {
  width: 13px;
  height: 13px;
}

/* Fukurou 5.16.1 — compact mobile header with a real navigation menu */
.fukurou-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 13px;
  background: rgba(24,24,28,.92);
  color: #e4e4e7;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.fukurou-nav-toggle:hover,
.fukurou-nav-toggle[aria-expanded="true"] {
  border-color: rgba(255,133,51,.42);
  background: rgba(255,133,51,.1);
  color: #ff9a52;
}
.fukurou-nav-toggle svg { width: 21px; height: 21px; }
.fukurou-nav-icon { display: none; }

html[data-theme="light"] .fukurou-nav-toggle {
  border-color: var(--theme-border, #dde2e8);
  background: var(--theme-surface-alt, #f7f8fa);
  color: var(--theme-text-secondary, #59606d);
  box-shadow: 0 3px 12px rgba(15,23,42,.05);
}
html[data-theme="light"] .fukurou-nav-toggle:hover,
html[data-theme="light"] .fukurou-nav-toggle[aria-expanded="true"] {
  border-color: color-mix(in srgb,var(--theme-accent, #c94f0c) 38%,var(--theme-border, #dde2e8));
  background: var(--theme-accent-soft, #fff0e5);
  color: var(--theme-accent, #c94f0c);
}

@media (max-width: 760px) {
  html:not([data-fukurou-page="index"]):not([data-fukurou-page="reader"]) body #page-root > header:empty { min-height: 64px; }
  .fukurou-header-inner {
    position: relative;
    height: 64px;
    min-height: 64px;
    padding: 0 12px;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .fukurou-brand-link { gap: 8px; font-size: 19px; }
  .fukurou-brand-logo { width: 34px; height: 34px; }
  .fukurou-nav-toggle { display: inline-flex; }
  .fukurou-main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    z-index: 90;
    display: none;
    width: auto;
    padding: 8px;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    overflow: visible;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    background: rgba(20,20,23,.985);
    box-shadow: 0 24px 70px rgba(0,0,0,.58);
    backdrop-filter: blur(22px);
  }
  .fukurou-main-nav.is-open { display: grid; }
  .fukurou-main-nav a {
    display: flex;
    min-width: 0;
    min-height: 46px;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border-radius: 13px;
    color: #d4d4d8;
    font-size: 12px;
    font-weight: 650;
  }
  .fukurou-main-nav a:hover,
  .fukurou-main-nav a.is-active {
    background: rgba(255,133,51,.1);
    color: #fff;
  }
  .fukurou-more-nav {
    min-width: 0;
  }
  .fukurou-more-trigger {
    width: 100%;
    min-height: 46px;
    gap: 10px;
    padding: 0 12px;
    border-radius: 13px;
    color: #d4d4d8;
    font-size: 12px;
    font-weight: 650;
  }
  .fukurou-more-trigger:hover,
  .fukurou-more-trigger.is-active,
  .fukurou-more-trigger[aria-expanded="true"] {
    background: rgba(255,133,51,.1);
    color: #fff;
  }
  .fukurou-more-chevron {
    margin-left: auto;
  }
  .fukurou-more-menu {
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    width: min(260px, calc(100vw - 40px));
  }
  .fukurou-nav-icon {
    display: inline-flex;
    width: 20px;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
    color: #ff9147;
  }
  .fukurou-nav-icon .fukurou-vector-icon { width: 18px; height: 18px; }
  .fukurou-header-actions { gap: 7px; margin-left: auto; }
  .fukurou-search-trigger {
    width: 40px;
    min-width: 40px;
    padding: 0;
    justify-content: center;
    gap: 0;
    font-size: 0;
  }
  .fukurou-search-trigger > svg { width: 19px; height: 19px; }
  .fukurou-search-popover { position: fixed; top: 72px; right: 10px; left: 10px; width: auto; }

  html[data-theme="light"] .fukurou-main-nav {
    border-color: var(--theme-border, #dde2e8);
    background: color-mix(in srgb,var(--theme-surface, #fff) 96%,transparent);
    box-shadow: 0 22px 52px rgba(15,23,42,.14);
  }
  html[data-theme="light"] .fukurou-main-nav a,
  html[data-theme="light"] .fukurou-more-trigger { color: var(--theme-text-secondary, #59606d); }
  html[data-theme="light"] .fukurou-main-nav a:hover,
  html[data-theme="light"] .fukurou-main-nav a.is-active,
  html[data-theme="light"] .fukurou-more-trigger:hover,
  html[data-theme="light"] .fukurou-more-trigger.is-active,
  html[data-theme="light"] .fukurou-more-trigger[aria-expanded="true"] {
    background: var(--theme-accent-soft, #fff0e5);
    color: var(--theme-accent, #c94f0c);
  }
}

@media (max-width: 430px) {
  .fukurou-brand-link span { display: none; }
  .fukurou-main-nav { grid-template-columns: 1fr; }
}

/* Fukurou 5.16.3 — mobile header order: menu first, brand second. */
@media (max-width: 760px) {
  .fukurou-nav-toggle { order: 1; }
  .fukurou-brand-link { order: 2; }
  .fukurou-header-actions { order: 3; }
  .fukurou-main-nav { order: 4; }
}

/* Fukurou 5.22.4 — centered global search */
.fukurou-search-popover {
  display: block;
  position: fixed;
  top: 84px;
  left: 50%;
  right: auto;
  width: min(720px, calc(100vw - 34px));
  max-height: calc(100vh - 112px);
  padding: 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 26px;
  background:
    radial-gradient(circle at 10% 0%,rgba(249,115,22,.09),transparent 35%),
    linear-gradient(145deg,rgba(25,25,29,.98),rgba(15,15,18,.985));
  box-shadow:
    0 0 0 100vmax rgba(3,3,5,.62),
    0 28px 90px rgba(0,0,0,.72),
    inset 0 1px rgba(255,255,255,.035);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%,-12px) scale(.975);
  transform-origin: top center;
  transition: opacity .18s ease, transform .22s cubic-bezier(.22,.61,.36,1), visibility .18s ease;
  z-index: 160;
}

.fukurou-search-popover.is-open {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%,0) scale(1);
}

.fukurou-search-popover__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 1px 2px 0;
}

.fukurou-search-popover__head small {
  display: block;
  color: #f97316;
  font: 800 9px/1.2 system-ui,sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.fukurou-search-popover__head strong {
  display: block;
  margin-top: 5px;
  color: #f4f4f5;
  font: 850 19px/1.2 system-ui,sans-serif;
}

.fukurou-search-close {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  color: #a1a1aa;
  font: 400 25px/1 system-ui,sans-serif;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

.fukurou-search-close:hover {
  border-color: rgba(249,115,22,.32);
  background: rgba(249,115,22,.09);
  color: #fb923c;
  transform: rotate(4deg);
}

.fukurou-search-field {
  display: grid;
  grid-template-columns: 21px minmax(0,1fr);
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 17px;
  background: rgba(7,7,10,.78);
  box-shadow: inset 0 1px rgba(255,255,255,.025);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.fukurou-search-field:focus-within {
  border-color: rgba(249,115,22,.54);
  background: rgba(8,8,11,.96);
  box-shadow: 0 0 0 4px rgba(249,115,22,.08);
}

.fukurou-search-field > svg {
  width: 21px;
  height: 21px;
  color: #71717a;
}

.fukurou-search-field .fukurou-search {
  width: 100%;
  height: 52px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
}

.fukurou-search-field .fukurou-search:focus {
  outline: none;
}

.fukurou-search-tabs {
  gap: 8px;
  margin: 13px 0 11px;
}

.fukurou-search-tab {
  min-height: 34px;
  padding: 0 13px;
  border-color: rgba(255,255,255,.035);
  background: rgba(255,255,255,.045);
  font-size: 11px;
}

.fukurou-search-results {
  max-height: min(500px, calc(100vh - 285px));
  gap: 6px;
  padding: 3px 2px 2px;
}

.fukurou-search-message {
  min-height: 116px;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 1px dashed rgba(255,255,255,.07);
  border-radius: 17px;
  background: rgba(255,255,255,.018);
}

.fukurou-search-result {
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 15px;
}

.fukurou-search-result:hover {
  border-color: rgba(249,115,22,.16);
  background: rgba(255,255,255,.055);
}

@media (max-width: 760px) {
  .fukurou-search-popover {
    top: 72px;
    left: 50%;
    right: auto;
    width: min(620px, calc(100vw - 20px));
    max-height: calc(100vh - 84px);
    padding: 14px;
    border-radius: 22px;
  }

  .fukurou-search-popover__head strong { font-size: 17px; }
  .fukurou-search-results { max-height: calc(100vh - 270px); }
}


/* Fukurou 5.50.2 — shared, compact footer and refined global shell */
html:not([data-fukurou-page="reader"]):not([data-fukurou-page="index"]):not([data-fukurou-page="age-warning"]) body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}
html:not([data-fukurou-page="reader"]):not([data-fukurou-page="index"]):not([data-fukurou-page="age-warning"]) body > main {
  flex: 1 0 auto;
}
.site-footer {
  width: 100%;
  flex: 0 0 auto;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,.065);
  background: linear-gradient(180deg, rgba(8,8,10,.7), rgba(7,7,9,.92));
}
.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(250px, 1.45fr) repeat(3, minmax(130px, .62fr));
  gap: 34px;
  width: min(1344px, calc(100% - 48px));
  margin: 0 auto;
  padding: 38px 0 25px;
}
.site-footer-intro { min-width: 0; }
.site-footer-brand {
  color: #fff;
  font-size: 23px;
  font-weight: 850;
  letter-spacing: -.035em;
}
.site-footer-brand span { color: #f97316; }
.site-footer-copy {
  max-width: 440px;
  margin: 11px 0 0;
  color: #71717a;
  font-size: 11px;
  line-height: 1.7;
}
.site-footer h3 {
  margin: 0 0 12px;
  color: #d4d4d8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.site-footer nav { display: grid; gap: 8px; }
.site-footer nav a {
  width: fit-content;
  max-width: 100%;
  color: #71717a;
  font-size: 11px;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .18s ease;
}
.site-footer nav a:hover { color: #fb923c; }
.site-footer-email {
  color: #a1a1aa !important;
  font-weight: 650;
}
.site-footer-email:hover { color: #fb923c !important; }
.site-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1344px, calc(100% - 48px));
  margin: 0 auto;
  padding: 17px 0 24px;
  border-top: 1px solid rgba(255,255,255,.05);
  color: #52525b;
  font-size: 9px;
}
@media (max-width: 900px) {
  .site-footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px 22px;
    width: min(100% - 36px, 760px);
    padding-top: 32px;
  }
  .site-footer-intro { grid-column: 1 / -1; }
  .site-footer-copy { max-width: 620px; }
  .site-footer-bottom { width: min(100% - 36px, 760px); }
}
@media (max-width: 640px) {
  .site-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 23px 18px;
    width: calc(100% - 32px);
    padding: 27px 0 19px;
  }
  .site-footer-intro { grid-column: 1 / -1; }
  .site-footer-section--info { grid-column: 1 / -1; }
  .site-footer-section--info nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
  .site-footer-brand { font-size: 21px; }
  .site-footer-copy { margin-top: 8px; font-size: 10px; line-height: 1.6; }
  .site-footer h3 { margin-bottom: 9px; font-size: 9px; }
  .site-footer nav { gap: 7px; }
  .site-footer nav a { font-size: 10px; }
  .site-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    width: calc(100% - 32px);
    padding: 14px 0 20px;
  }
}
/* Fukurou 5.52.5 — shared mobile horizontal swipe surface */
.fukurou-horizontal-swipe {
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
@media (hover: hover) and (pointer: fine) {
  .fukurou-horizontal-swipe {
    cursor: grab;
  }
}
.fukurou-horizontal-swipe.is-horizontal-swiping {
  scroll-snap-type: none !important;
  cursor: grabbing;
  user-select: none;
}
.fukurou-horizontal-swipe.is-horizontal-swiping *,
.fukurou-horizontal-swipe img {
  -webkit-user-drag: none;
  user-select: none;
}



/* Fukurou 5.59.2 — account-controlled 18+ cover privacy */
.fukurou-adult-cover-blur {
  overflow: hidden;
}
.fukurou-adult-cover-blur img {
  filter: blur(18px) saturate(.72);
  transform: scale(1.08);
}
.fukurou-adult-cover-blur img,
.fukurou-adult-cover-blur {
  transition: filter .18s ease, transform .18s ease;
}
@media (prefers-reduced-motion: reduce) {
  .fukurou-adult-cover-blur img, .fukurou-adult-cover-blur { transition: none; }
}

/* 5.60.1 — global performance preference contract */
html[data-page-visibility="hidden"][data-pause-hidden-tab="on"] *,
html[data-page-visibility="hidden"][data-pause-hidden-tab="on"] *::before,
html[data-page-visibility="hidden"][data-pause-hidden-tab="on"] *::after {
  animation-play-state: paused !important;
}
html[data-motion="reduced"] { scroll-behavior: auto; }
html[data-motion="reduced"] *,
html[data-motion="reduced"] *::before,
html[data-motion="reduced"] *::after {
  animation-duration: .2s !important;
  animation-iteration-count: 1 !important;
  transition-duration: .18s !important;
}
html[data-motion="minimal"] { scroll-behavior: auto; }
html[data-motion="minimal"] *,
html[data-motion="minimal"] *::before,
html[data-motion="minimal"] *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html[data-data-saver="on"] video[data-fukurou-card-video] { background-color: #111114; }

/* Fukurou 5.60.6 — premium low-cost rendering without visual degradation */
[data-render-visibility="parked"],
[data-render-visibility="parked"]::before,
[data-render-visibility="parked"]::after {
  animation-play-state: paused !important;
}

html[data-performance-mode="low"] [data-render-long-list="true"] > [data-render-item="true"] {
  content-visibility: auto;
  contain-intrinsic-size: auto 112px;
}

html[data-glass-effects="off"] :where(
  .fukurou-header,
  .fukurou-more-menu,
  .fukurou-profile-menu,
  .fukurou-search-popover,
  .manga-catalog-rating,
  .profile-gift-dialog,
  .title-suggest-modal,
  .title-report-modal,
  .title-rating-modal,
  .title-list-menu
) {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html[data-glass-effects="off"] .fukurou-header {
  background: linear-gradient(180deg, rgba(12,12,15,.995), rgba(9,9,11,.985));
}
html[data-glass-effects="off"] :where(
  .fukurou-more-menu,
  .fukurou-profile-menu,
  .fukurou-search-popover,
  .title-list-menu
) {
  background: linear-gradient(145deg, rgba(28,28,32,.995), rgba(17,17,20,.995));
  box-shadow: 0 18px 48px rgba(0,0,0,.46);
}
html[data-glass-effects="off"] :where(
  .profile-gift-dialog,
  .title-suggest-modal,
  .title-report-modal,
  .title-rating-modal
) {
  background: rgba(3,3,5,.88);
}
