:root {
  --bg: #0c0c0c;
  --bg-soft: #151515;
  --surface: #ffffff;
  --surface-dark: #191919;
  --surface-dark-2: #242424;
  --ink: #111111;
  --text: #ffffff;
  --muted: #b6b6b6;
  --muted-dark: #667085;
  --line: #343434;
  --line-light: #dde1e7;
  --accent: #dc0914;
  --accent-dark: #a80710;
  --yellow: #ffd600;
  --green: #51c300;
  --shadow: 0 20px 54px rgba(0, 0, 0, 0.28);
}

/* Hybrid TruyenShelf experience */
:root {
  --hy-bg: #080b10;
  --hy-bg-2: #0d1118;
  --hy-surface: #111720;
  --hy-surface-2: #171e28;
  --hy-line: rgba(255, 255, 255, 0.1);
  --hy-text: #f7f8fb;
  --hy-muted: #9ba5b4;
  --hy-accent: #ff4655;
  --hy-accent-deep: #d8283b;
  --hy-gold: #ffb11b;
  --hy-blue: #7dd3fc;
  --hy-radius: 18px;
  --hy-shell: min(1440px, calc(100vw - 64px));
}

body {
  background: var(--hy-bg);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header {
  min-height: 76px;
  gap: 28px;
  padding: 12px max(32px, calc((100vw - 1440px) / 2));
  border-bottom-color: var(--hy-line);
  background: rgba(8, 11, 16, 0.94);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
}

.brand {
  gap: 11px;
  flex: 0 0 auto;
  text-transform: none;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--hy-accent), #ff784f 76%);
  box-shadow: 0 10px 30px rgba(255, 70, 85, 0.28);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
}

.brand-mark i,
.brand-mark b {
  position: absolute;
  top: 12px;
  width: 8px;
  height: 18px;
  border-radius: 3px 3px 7px 3px;
  background: #fff;
  transform: skewY(-11deg);
}

.brand-mark i {
  left: 11px;
}

.brand-mark b {
  right: 11px;
  transform: skewY(11deg);
}

.brand-copy {
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  line-height: 1;
}

.brand-copy strong,
.brand-copy em {
  font-size: 19px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: -0.8px;
}

.brand-copy em {
  color: var(--hy-accent);
}

.brand-copy small {
  grid-column: 1 / -1;
  margin-top: 5px;
  color: #7f8997;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.main-nav {
  gap: clamp(14px, 1.8vw, 28px);
  font-size: 13px;
  font-weight: 750;
}

.main-nav a {
  position: relative;
  padding: 25px 0;
  color: #b9c1cc;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 14px;
  left: 50%;
  height: 2px;
  border-radius: 2px;
  background: var(--hy-accent);
  transition: right 0.2s ease, left 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  right: 0;
  left: 0;
}

.search-form {
  width: min(24vw, 300px);
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #121821;
}

.search-form input {
  padding: 11px 14px;
  font-size: 12px;
}

.search-form button {
  min-width: 44px;
  border-left-color: rgba(255, 255, 255, 0.07);
  background: transparent;
}

.header-account {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--hy-line);
  border-radius: 50%;
  background: #121821;
}

.header-account span,
.user-icon {
  position: relative;
  width: 14px;
  height: 14px;
  border: 2px solid #c8d0da;
  border-radius: 50%;
}

.header-account span::after,
.user-icon::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 19px;
  height: 10px;
  border: 2px solid #c8d0da;
  border-bottom: 0;
  border-radius: 13px 13px 0 0;
  transform: translateX(-50%);
}

.mobile-bottom-nav {
  display: none;
}

/* Homepage */
.hy-home {
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 70, 85, 0.09), transparent 27%),
    var(--hy-bg);
  color: var(--hy-text);
}

.hy-home-hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--hy-line);
}

.hy-hero-art,
.hy-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hy-hero-art {
  z-index: -3;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.88) contrast(1.06);
  transform: scale(1.035);
}

.hy-hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 10, 15, 0.99) 0%, rgba(7, 10, 15, 0.9) 34%, rgba(7, 10, 15, 0.27) 70%, rgba(7, 10, 15, 0.58) 100%),
    linear-gradient(0deg, var(--hy-bg) 0%, transparent 36%);
}

.hy-hero-content {
  display: flex;
  width: var(--hy-shell);
  min-height: 610px;
  margin: 0 auto;
  padding: 72px 0 82px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hy-hero-kicker,
.hy-detail-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #eef1f5;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.hy-hero-kicker span,
.hy-detail-status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hy-accent);
  box-shadow: 0 0 0 5px rgba(255, 70, 85, 0.13);
}

.hy-hero-breadcrumb {
  display: flex;
  gap: 10px;
  margin: 20px 0 0;
  color: #8f99a7;
  font-size: 11px;
  font-weight: 700;
}

.hy-hero-breadcrumb i {
  width: 18px;
  height: 1px;
  align-self: center;
  background: #68717f;
}

.hy-hero-tags,
.hy-detail-genres {
  display: flex;
  gap: 8px;
  margin: 42px 0 16px;
  flex-wrap: wrap;
}

.hy-hero-tags span,
.hy-detail-genres a {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(10, 13, 18, 0.34);
  color: #dce1e8;
  font-size: 10px;
  font-weight: 750;
  backdrop-filter: blur(10px);
}

.hy-hero-content h1,
.hy-hero-content h2 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(54px, 6vw, 92px);
  letter-spacing: -4px;
  line-height: 0.94;
}

/* Crawler titles are often much longer than the hand-picked R3 demo data.
   Keep the hero readable and retain its primary actions in the first viewport. */
.hy-hero-content h1.hy-hero-title.is-long,
.hy-hero-content h2.hy-hero-title.is-long {
  display: -webkit-box;
  overflow: hidden;
  max-width: 820px;
  font-size: clamp(40px, 4.5vw, 68px);
  letter-spacing: -2.8px;
  line-height: 1;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.hy-hero-summary {
  max-width: 640px;
  margin: 0 0 22px;
  color: #c3cbd5;
  font-size: 15px;
  line-height: 1.75;
}

.hy-hero-meta {
  display: flex;
  gap: 22px;
  color: #9fa9b7;
  font-size: 11px;
  font-weight: 700;
}

.hy-hero-meta span + span {
  position: relative;
}

.hy-hero-meta span + span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -12px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #697380;
}

.hy-hero-meta b {
  color: var(--hy-gold);
}

.hy-hero-actions,
.hy-detail-actions,
.hy-reader-finish div {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hy-primary-cta,
.hy-secondary-cta,
.hy-bookmark-button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 19px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.hy-primary-cta {
  background: var(--hy-accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(255, 70, 85, 0.22);
}

.hy-secondary-cta,
.hy-bookmark-button {
  border-color: rgba(255, 255, 255, 0.17);
  background: rgba(17, 23, 32, 0.68);
  color: #f4f6f8;
  backdrop-filter: blur(12px);
}

.hy-primary-cta:hover,
.hy-secondary-cta:hover,
.hy-bookmark-button:hover {
  transform: translateY(-2px);
}

.hy-bookmark-button.saved {
  border-color: rgba(125, 211, 252, 0.48);
  background: rgba(125, 211, 252, 0.13);
  color: var(--hy-blue);
}

.hy-hero-index {
  position: absolute;
  right: max(32px, calc((100vw - 1440px) / 2));
  bottom: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.hy-hero-index strong {
  font-size: 20px;
}

.hy-hero-index span {
  width: 90px;
  height: 2px;
  background: linear-gradient(90deg, var(--hy-accent) 33%, rgba(255, 255, 255, 0.28) 33%);
}

.hy-hero-index small {
  color: #828d9c;
}

.hy-genre-rail {
  display: flex;
  min-height: 70px;
  padding: 0 max(32px, calc((100vw - 1440px) / 2));
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  border-bottom: 1px solid var(--hy-line);
  background: #0b0f15;
  color: #adb6c2;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
  scrollbar-width: none;
}

.hy-genre-rail::-webkit-scrollbar,
.hy-shelf-rail::-webkit-scrollbar {
  display: none;
}

.hy-genre-rail > span {
  color: var(--hy-accent);
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.hy-genre-rail a:hover {
  color: #fff;
}

.hy-genre-rail .hy-all-link {
  margin-left: auto;
  padding: 11px 15px;
  border: 1px solid var(--hy-line);
  border-radius: 9px;
  color: #fff;
}

.hy-all-link b {
  margin-left: 10px;
  color: var(--hy-accent);
}

.hy-home-shell,
.hy-detail-content,
.hy-related-section,
.hy-personal-page {
  width: var(--hy-shell);
  margin: 0 auto;
}

.hy-section {
  padding: 74px 0 0;
}

.hy-section-head {
  display: flex;
  margin-bottom: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hy-section-head > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hy-section-head h2 {
  font-size: 24px;
  letter-spacing: -0.7px;
}

.hy-section-head > a {
  color: #9aa5b4;
  font-size: 12px;
  font-weight: 750;
}

.hy-section-head > a:hover {
  color: var(--hy-accent);
}

.hy-section-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 70, 85, 0.13);
  color: var(--hy-accent);
  font-size: 15px;
  font-weight: 900;
}

.hy-shelf-rail,
.hy-new-grid,
.hy-related-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.hy-shelf-card {
  min-width: 0;
}

.hy-shelf-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 0.72;
  border-radius: 15px;
  background: var(--hy-surface);
}

.hy-shelf-cover::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, rgba(4, 6, 9, 0.8));
}

.hy-shelf-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.hy-shelf-card:hover .hy-shelf-cover img {
  filter: saturate(1.1);
  transform: scale(1.04);
}

.hy-cover-rank,
.hy-cover-label {
  position: absolute;
  z-index: 2;
  font-weight: 900;
}

.hy-cover-rank {
  right: 11px;
  bottom: 8px;
  font-size: 30px;
  letter-spacing: -2px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.7);
}

.hy-cover-label {
  top: 11px;
  left: 11px;
  padding: 6px 8px;
  border-radius: 7px;
  background: rgba(8, 11, 16, 0.78);
  color: #fff;
  font-size: 8px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.hy-shelf-copy {
  display: grid;
  gap: 5px;
  padding: 13px 2px 0;
}

.hy-shelf-copy > a:first-child {
  overflow: hidden;
  color: #f4f6f8;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hy-shelf-copy > span {
  overflow: hidden;
  color: #7f8997;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hy-chapter-pill {
  display: inline-flex;
  min-height: 24px;
  width: fit-content;
  margin-top: 3px;
  align-items: center;
  color: var(--hy-accent) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.hy-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 0.7fr);
  gap: 48px;
  align-items: start;
}

.hy-update-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hy-fresh-section {
  padding-top: 8px;
}

.hy-section-head h2 + small {
  margin-left: 12px;
  color: #778392;
  font-size: 9px;
  font-weight: 700;
}

.hy-fresh-chapter-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--hy-line);
  border-left: 1px solid var(--hy-line);
  background: #0d1218;
}

.hy-fresh-series {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  min-height: 128px;
  padding: 12px;
  border-right: 1px solid var(--hy-line);
  border-bottom: 1px solid var(--hy-line);
  background: linear-gradient(135deg, rgba(19, 27, 37, 0.8), rgba(12, 17, 23, 0.9));
  transition: background 0.18s ease;
}

.hy-fresh-series:hover {
  background: linear-gradient(135deg, rgba(31, 41, 54, 0.9), rgba(15, 22, 29, 0.96));
}

.hy-fresh-cover {
  align-self: start;
  overflow: hidden;
  height: 104px;
  border-radius: 6px;
  background: #1e2732;
}

.hy-fresh-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hy-fresh-copy {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 10px;
}

.hy-fresh-title {
  overflow: hidden;
  color: #f1f4f7;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hy-fresh-title:hover,
.hy-fresh-series li a:hover strong {
  color: var(--hy-accent);
}

.hy-fresh-series ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hy-fresh-series li a {
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr) auto;
  gap: 7px;
  min-height: 24px;
  align-items: center;
  color: #dce3ea;
  font-size: 12px;
}

.hy-fresh-series li a::before {
  grid-column: 1;
  grid-row: 1;
  width: 4px;
  height: 4px;
  margin-right: -2px;
  border-radius: 50%;
  background: #1887ff;
  content: "";
}

.hy-fresh-series li a strong {
  grid-column: 2;
  min-width: 0;
  font-weight: 650;
}

.hy-fresh-series li a time {
  grid-column: 3;
  grid-row: 1;
  color: #8190a0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hy-empty-feed {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--hy-line);
  color: #8995a2;
  text-align: center;
}

.hy-update-row {
  display: grid;
  min-width: 0;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--hy-line);
  border-radius: 15px;
  background: linear-gradient(145deg, #10161e, #0d1219);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.hy-update-row:hover {
  border-color: rgba(255, 70, 85, 0.36);
  transform: translateY(-2px);
}

.hy-update-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 0.78;
  border-radius: 10px;
}

.hy-update-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hy-update-cover > span {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 5px 7px;
  border-radius: 6px;
  background: var(--hy-accent-deep);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.hy-update-info {
  min-width: 0;
  padding: 4px 0;
}

.hy-update-topline {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}

.hy-update-topline span {
  color: var(--hy-blue);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.hy-update-title {
  display: block;
  overflow: hidden;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hy-update-info > p {
  overflow: hidden;
  margin-bottom: 17px;
  color: #818b99;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hy-update-chapter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding-top: 11px;
  border-top: 1px solid var(--hy-line);
}

.hy-update-chapter strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hy-update-chapter span,
.hy-update-chapter small {
  color: #737e8d;
  font-size: 12px;
}

.hy-update-chapter span {
  grid-row: 1;
  grid-column: 2;
}

.hy-home-sidebar {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 18px;
  padding-top: 74px;
}

.hy-top-card,
.hy-discover-card {
  overflow: hidden;
  border: 1px solid var(--hy-line);
  border-radius: var(--hy-radius);
  background: var(--hy-surface);
}

.hy-sidebar-head {
  padding: 22px 22px 0;
}

.hy-sidebar-head > span,
.hy-discover-card > span,
.hy-panel-kicker,
.hy-personal-head > div > span {
  color: var(--hy-accent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.hy-sidebar-head h2 {
  margin-top: 7px;
  font-size: 22px;
}

.hy-rank-switcher {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.hy-rank-choice {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.hy-rank-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 18px 22px 8px;
  padding: 4px;
  border-radius: 9px;
  background: #0b1016;
}

.hy-rank-tabs label {
  display: flex;
  min-height: 32px;
  padding: 4px 3px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: transparent;
  color: #778290;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.hy-rank-choice:focus-visible ~ .hy-rank-tabs {
  outline: 2px solid var(--hy-blue);
  outline-offset: 2px;
}

#rank-today:checked ~ .hy-rank-tabs label[for="rank-today"],
#rank-week:checked ~ .hy-rank-tabs label[for="rank-week"],
#rank-all:checked ~ .hy-rank-tabs label[for="rank-all"] {
  background: #202834;
  color: #fff;
}

.hy-top-panel {
  display: none;
  padding: 5px 14px 12px;
}

#rank-today:checked ~ .hy-panel-today,
#rank-week:checked ~ .hy-panel-week,
#rank-all:checked ~ .hy-panel-all {
  display: block;
}

.hy-top-row {
  display: grid;
  grid-template-columns: 28px 45px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px 6px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.hy-top-row > strong {
  color: #98a3b0;
  font-size: 13px;
}

.hy-top-row:first-child > strong {
  color: var(--hy-gold);
}

.hy-top-row img {
  width: 45px;
  height: 57px;
  border-radius: 7px;
  object-fit: cover;
}

.hy-top-row > span {
  min-width: 0;
}

.hy-top-row b,
.hy-top-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hy-top-row b {
  font-size: 12px;
}

.hy-top-row small {
  margin-top: 5px;
  color: #77818e;
  font-size: 12px;
}

.hy-top-row em {
  color: #98a3b0;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.hy-sidebar-link {
  display: flex;
  padding: 15px 20px;
  align-items: center;
  justify-content: space-between;
  background: #0c1118;
  color: #aeb7c3;
  font-size: 12px;
  font-weight: 800;
}

.hy-sidebar-link span {
  color: var(--hy-accent);
}

.hy-discover-card {
  padding: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(125, 211, 252, 0.14), transparent 45%),
    linear-gradient(145deg, #121923, #0d131b);
}

.hy-discover-card h3 {
  margin: 8px 0 10px;
  font-size: 21px;
  line-height: 1.14;
}

.hy-discover-card p {
  color: #8b96a4;
  font-size: 12px;
  line-height: 1.6;
}

.hy-discover-card a {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  color: var(--hy-blue);
  font-size: 12px;
  font-weight: 850;
}

.hy-new-section {
  padding-bottom: 90px;
}

/* Series detail */
.hy-detail-page {
  min-height: 100vh;
  background: var(--hy-bg);
  color: var(--hy-text);
}

.hy-detail-hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
}

.hy-detail-backdrop,
.hy-detail-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hy-detail-backdrop {
  z-index: -3;
  object-fit: cover;
  filter: blur(2px) saturate(0.75);
  transform: scale(1.035);
}

.hy-detail-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 10, 15, 0.98), rgba(7, 10, 15, 0.76) 55%, rgba(7, 10, 15, 0.55)),
    linear-gradient(0deg, var(--hy-bg), transparent 45%);
}

.hy-detail-shell {
  width: var(--hy-shell);
  margin: 0 auto;
  padding: 34px 0 70px;
}

.hy-detail-crumb {
  display: flex;
  gap: 10px;
  margin-bottom: 46px;
  color: #7e8996;
  font-size: 10px;
}

.hy-detail-crumb b {
  overflow: hidden;
  color: #d1d6dd;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hy-detail-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 760px);
  gap: 48px;
  align-items: end;
}

.hy-detail-cover-wrap {
  position: relative;
  margin: 0;
}

.hy-detail-cover {
  width: 100%;
  aspect-ratio: 0.73;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
  object-fit: cover;
}

.hy-detail-cover-wrap figcaption {
  position: absolute;
  right: 13px;
  bottom: 13px;
  display: grid;
  min-width: 82px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(8, 11, 16, 0.86);
  backdrop-filter: blur(12px);
}

.hy-detail-cover-wrap figcaption strong {
  color: var(--hy-gold);
  font-size: 17px;
}

.hy-detail-cover-wrap figcaption span {
  color: #8b95a2;
  font-size: 8px;
}

.hy-detail-status {
  margin-bottom: 15px;
  color: #aab3bf;
}

.hy-detail-info h1 {
  max-width: 850px;
  margin-bottom: 15px;
  font-size: clamp(46px, 5.2vw, 76px);
  letter-spacing: -3.4px;
}

.hy-detail-byline {
  margin-bottom: 20px;
  color: #9da7b4;
  font-size: 12px;
}

.hy-detail-byline strong {
  color: #fff;
}

.hy-detail-summary {
  max-width: 680px;
  margin-bottom: 0;
  color: #c0c8d2;
  font-size: 14px;
  line-height: 1.7;
}

.hy-detail-genres {
  margin: 22px 0;
}

.hy-detail-stats {
  display: grid;
  max-width: 650px;
  margin: 0;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hy-line);
  border-bottom: 1px solid var(--hy-line);
}

.hy-detail-stats div {
  padding: 15px 18px;
  border-right: 1px solid var(--hy-line);
}

.hy-detail-stats div:first-child {
  padding-left: 0;
}

.hy-detail-stats div:last-child {
  border-right: 0;
}

.hy-detail-stats dt {
  margin-bottom: 5px;
  color: #727d8b;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.hy-detail-stats dd {
  margin: 0;
  font-size: 12px;
  font-weight: 850;
}

.hy-detail-content {
  padding: 30px 0 0;
}

.hy-detail-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--hy-line);
}

.hy-detail-tabs button {
  position: relative;
  padding: 17px 0;
  border: 0;
  background: transparent;
  color: #788392;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.hy-detail-tabs button::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: -1px;
  left: 50%;
  height: 2px;
  background: var(--hy-accent);
  transition: right 0.18s ease, left 0.18s ease;
}

.hy-detail-tabs button.active {
  color: #fff;
}

.hy-detail-tabs button.active::after {
  right: 0;
  left: 0;
}

.hy-detail-tabs button span {
  margin-left: 5px;
  color: var(--hy-accent);
}

.hy-detail-panel {
  padding: 44px 0;
}

.hy-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.7fr);
  gap: 80px;
}

.hy-overview-grid h2,
.hy-chapter-head h2 {
  margin: 8px 0 18px;
  font-size: 30px;
  letter-spacing: -1px;
}

.hy-overview-grid article p {
  max-width: 760px;
  color: #a6b0bd;
  font-size: 13px;
  line-height: 1.8;
}

.hy-overview-grid aside {
  padding: 24px;
  border: 1px solid var(--hy-line);
  border-radius: 15px;
  background: var(--hy-surface);
}

.hy-overview-grid dl {
  margin: 15px 0 0;
}

.hy-overview-grid dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hy-line);
  font-size: 10px;
}

.hy-overview-grid dl div:last-child {
  border-bottom: 0;
}

.hy-overview-grid dt {
  color: #6f7a89;
}

.hy-overview-grid dd {
  margin: 0;
  color: #dfe4ea;
  font-weight: 750;
}

.hy-chapter-head {
  display: flex;
  margin-bottom: 24px;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.hy-chapter-head p {
  margin: 0;
  color: #727e8c;
  font-size: 10px;
}

.hy-chapter-search {
  display: flex;
  width: min(320px, 100%);
  align-items: center;
  border: 1px solid var(--hy-line);
  border-radius: 10px;
  background: var(--hy-surface);
}

.hy-chapter-search span,
.bottom-search,
.bottom-search::after {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.hy-chapter-search span {
  position: relative;
  width: 13px;
  height: 13px;
  margin-left: 14px;
  color: #6e7885;
}

.hy-chapter-search span::after,
.bottom-search::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 2px;
  border: 0;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.hy-chapter-search span::after {
  right: -5px;
  bottom: -3px;
}

.hy-chapter-search input {
  width: 100%;
  padding: 12px 13px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 11px;
  outline: 0;
}

.hy-chapter-list {
  border-top: 1px solid var(--hy-line);
}

.hy-chapter-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 130px 26px;
  gap: 16px;
  padding: 9px 0;
  align-items: center;
  border-bottom: 1px solid var(--hy-line);
  transition: background 0.15s ease, padding 0.15s ease;
}

.hy-chapter-row:hover {
  padding-right: 8px;
  padding-left: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.hy-chapter-cover {
  width: 62px;
  height: 82px;
  border-radius: 6px;
  object-fit: cover;
  background: #151d26;
}

.hy-chapter-copy,
.hy-chapter-date {
  display: grid;
  gap: 5px;
}

.hy-chapter-copy strong {
  font-size: 12px;
}

.hy-chapter-copy small,
.hy-chapter-date,
.hy-chapter-date small {
  color: #737e8c;
  font-size: 9px;
}

.hy-chapter-date {
  text-align: right;
}

.hy-chapter-views {
  display: inline-flex;
  justify-content: flex-end;
  gap: 5px;
  color: #dbe3eb;
  font-size: 11px;
  font-weight: 800;
}

.hy-chapter-views i {
  color: #9eabb9;
  font-size: 10px;
  font-style: normal;
}

.hy-chapter-arrow {
  color: #65707e;
}

.hy-no-chapters {
  padding: 34px;
  color: #8d97a4;
  text-align: center;
}

.hy-related-section {
  padding: 20px 0 90px;
}

.hy-related-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Series detail: compact editorial layout with reading actions first. */
.hy-series-page {
  --series-card: #10151e;
  --series-card-2: #141b25;
  --series-line: rgba(255, 255, 255, 0.09);
  --series-muted: #8e99a8;
  background:
    radial-gradient(circle at 82% 20%, rgba(67, 83, 113, 0.08), transparent 34%),
    var(--hy-bg);
}

.hy-series-mast {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--series-line);
  background:
    radial-gradient(circle at 9% -24%, rgba(255, 70, 85, 0.2), transparent 38%),
    radial-gradient(circle at 92% 10%, rgba(125, 211, 252, 0.08), transparent 28%),
    linear-gradient(145deg, #0d1118 0%, #090c12 54%, #0b1018 100%);
}

.hy-series-mast::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.19;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000, transparent 70%);
}

.hy-series-mast::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 70, 85, 0.55), transparent 52%);
}

.hy-series-shell,
.hy-series-body,
.hy-series-community {
  width: var(--hy-shell);
  margin-right: auto;
  margin-left: auto;
}

.hy-series-shell {
  position: relative;
  z-index: 1;
  padding: 24px 0 48px;
}

.hy-series-breadcrumb {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  margin-bottom: 27px;
  color: #667180;
  font-size: 10px;
  font-weight: 750;
}

.hy-series-breadcrumb a {
  color: #9da7b4;
  transition: color 0.16s ease;
}

.hy-series-breadcrumb a:hover {
  color: #fff;
}

.hy-series-breadcrumb > span:last-child {
  overflow: hidden;
  color: #cdd4dd;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hy-series-hero {
  display: grid;
  grid-template-columns: 216px minmax(360px, 1fr) 300px;
  gap: clamp(26px, 3vw, 44px);
  align-items: center;
}

.hy-series-cover-card {
  position: relative;
  align-self: start;
  margin: 0;
}

.hy-series-cover-card::before {
  content: "";
  position: absolute;
  inset: 14px -11px -14px 14px;
  z-index: -1;
  border-radius: 17px;
  background: rgba(255, 70, 85, 0.12);
  transform: rotate(2.2deg);
}

.hy-series-cover-card > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  background: #171d26;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.42);
  object-fit: cover;
}

.hy-series-cover-status {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  min-height: 27px;
  padding: 0 9px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(8, 11, 16, 0.9);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.hy-series-cover-status i,
.hy-series-facts dd i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #5fe08b;
  box-shadow: 0 0 0 4px rgba(95, 224, 139, 0.12);
}

.hy-series-cover-card figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  min-width: 76px;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 5px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 9px;
  background: rgba(8, 11, 16, 0.92);
  color: var(--hy-gold);
}

.hy-series-cover-card figcaption > span {
  font-size: 12px;
}

.hy-series-cover-card figcaption strong {
  color: #fff;
  font-size: 14px;
}

.hy-series-cover-card figcaption small {
  grid-column: 1 / -1;
  margin-top: 2px;
  color: #818c9a;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.hy-series-copy {
  min-width: 0;
}

.hy-series-kicker {
  display: flex;
  margin: 0 0 12px;
  align-items: center;
  gap: 9px;
  color: #a9b3c0;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.15px;
  text-transform: uppercase;
}

.hy-series-kicker span {
  width: 20px;
  height: 2px;
  border-radius: 4px;
  background: var(--hy-accent);
  box-shadow: 0 0 15px rgba(255, 70, 85, 0.65);
}

.hy-series-copy h1 {
  max-width: 780px;
  margin: 0;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: clamp(38px, 4vw, 58px);
  letter-spacing: -2.5px;
  line-height: 1.02;
  text-wrap: balance;
}

.hy-series-copy h1.is-long {
  font-size: clamp(31px, 3.25vw, 47px);
  letter-spacing: -1.8px;
  line-height: 1.06;
}

.hy-series-copy h1.is-very-long {
  font-size: clamp(27px, 2.8vw, 40px);
  letter-spacing: -1.35px;
  line-height: 1.08;
}

.hy-series-credits {
  display: flex;
  margin: 13px 0 0;
  gap: 18px;
  flex-wrap: wrap;
  color: #7f8a99;
  font-size: 11px;
}

.hy-series-credits span + span {
  position: relative;
}

.hy-series-credits span + span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -10px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #505b69;
}

.hy-series-credits strong {
  color: #dce3eb;
}

.hy-series-genres {
  display: flex;
  margin-top: 17px;
  gap: 7px;
  flex-wrap: wrap;
}

.hy-series-genres a {
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  color: #b9c3cf;
  font-size: 9px;
  font-weight: 800;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.hy-series-genres a:hover {
  border-color: rgba(255, 70, 85, 0.44);
  background: rgba(255, 70, 85, 0.08);
  color: #fff;
}

.hy-series-summary {
  display: -webkit-box;
  overflow: hidden;
  max-width: 720px;
  margin: 17px 0 0;
  color: #a7b1be;
  font-size: 12px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.hy-series-meta {
  display: flex;
  margin-top: 18px;
  gap: 20px;
  flex-wrap: wrap;
  color: #7c8795;
  font-size: 10px;
  font-weight: 750;
}

.hy-series-meta span + span {
  position: relative;
}

.hy-series-meta span + span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -11px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #586271;
}

.hy-series-meta strong {
  color: #e8edf3;
}

.hy-series-actions {
  display: flex;
  margin-top: 22px;
  gap: 9px;
  flex-wrap: wrap;
}

.hy-series-primary,
.hy-series-secondary,
.hy-series-bookmark {
  display: inline-flex;
  min-height: 44px;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.hy-series-primary {
  min-width: 132px;
  background: linear-gradient(135deg, #ff4655, #ea2f43);
  box-shadow: 0 12px 27px rgba(255, 70, 85, 0.2);
}

.hy-series-secondary,
.hy-series-bookmark {
  border-color: rgba(255, 255, 255, 0.12);
  background: #151b24;
}

.hy-series-bookmark.saved {
  border-color: rgba(125, 211, 252, 0.42);
  background: rgba(125, 211, 252, 0.1);
  color: var(--hy-blue);
}

.hy-series-primary:hover,
.hy-series-secondary:hover,
.hy-series-bookmark:hover {
  transform: translateY(-2px);
}

.hy-series-secondary:hover,
.hy-series-bookmark:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: #1a222d;
}

.hy-series-play {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

.hy-series-release {
  align-self: stretch;
  display: flex;
  min-width: 0;
  min-height: 292px;
  flex-direction: column;
  padding: 21px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 70, 85, 0.08), transparent 43%),
    #111720;
  box-shadow: 0 21px 50px rgba(0, 0, 0, 0.22);
}

.hy-series-release-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hy-series-release-head span,
.hy-series-rail-kicker,
.hy-series-related-head span,
.hy-series-community-head > div > span,
.hy-series-section-head > div > span {
  color: var(--hy-accent);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 1.35px;
  text-transform: uppercase;
}

.hy-series-release-head i {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5fe08b;
  box-shadow: 0 0 0 5px rgba(95, 224, 139, 0.1);
}

.hy-series-release h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 27px 0 7px;
  color: #fff;
  font-size: 21px;
  letter-spacing: -0.65px;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hy-series-release > p {
  display: flex;
  margin: 0;
  gap: 13px;
  color: #7d8998;
  font-size: 9px;
}

.hy-series-release > p span {
  position: relative;
}

.hy-series-release > p span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -7px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #4f5a68;
}

.hy-series-release-cta {
  display: flex;
  min-height: 42px;
  margin-top: 19px;
  padding: 0 13px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 8px;
  background: #f5f7fa;
  color: #10141b;
  font-size: 10px;
  font-weight: 950;
  transition: background 0.16s ease, transform 0.16s ease;
}

.hy-series-release-cta b {
  font-size: 15px;
}

.hy-series-release-cta:hover {
  background: #fff;
  transform: translateY(-1px);
}

.hy-series-picker {
  position: relative;
  display: grid;
  min-height: 44px;
  margin-top: auto;
  align-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #0c1118;
  color: #e9edf2;
}

.hy-series-picker::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 14px;
  width: 6px;
  height: 6px;
  border-right: 2px solid #8f9baa;
  border-bottom: 2px solid #8f9baa;
  pointer-events: none;
  transform: rotate(45deg);
}

.hy-series-picker > span {
  position: absolute;
  top: 6px;
  left: 11px;
  z-index: 1;
  color: #697483;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.65px;
  text-transform: uppercase;
}

.hy-series-picker select {
  width: 100%;
  min-height: 42px;
  padding: 15px 36px 2px 11px;
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 850;
  outline: 0;
}

.hy-series-picker select:focus-visible {
  box-shadow: inset 0 0 0 2px var(--hy-accent);
}

.hy-series-picker option {
  background: #111720;
  color: #fff;
}

.hy-series-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  padding: 34px 0 30px;
  align-items: start;
}

.hy-series-chapters,
.hy-series-facts,
.hy-series-related,
.hy-series-community {
  border: 1px solid var(--series-line);
  border-radius: 17px;
  background: var(--series-card);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.13);
}

.hy-series-chapters {
  min-width: 0;
  overflow: hidden;
  scroll-margin-top: 96px;
}

.hy-series-section-head {
  display: flex;
  min-height: 104px;
  padding: 21px 23px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid var(--series-line);
  background: linear-gradient(110deg, rgba(255, 70, 85, 0.055), transparent 34%);
}

.hy-series-section-head h2 {
  margin: 5px 0 2px;
  color: #fff;
  font-size: 24px;
  letter-spacing: -0.75px;
}

.hy-series-section-head p {
  margin: 0;
  color: #778392;
  font-size: 9px;
}

.hy-series-search {
  display: flex;
  width: min(270px, 100%);
  min-height: 42px;
  align-items: center;
  border: 1px solid var(--series-line);
  border-radius: 9px;
  background: #0b1017;
}

.hy-series-search > span {
  position: relative;
  width: 13px;
  height: 13px;
  margin-left: 13px;
  flex: 0 0 auto;
  border: 2px solid #657180;
  border-radius: 50%;
}

.hy-series-search > span::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 2px;
  border-radius: 3px;
  background: #657180;
  transform: rotate(45deg);
}

.hy-series-search input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 10px;
  outline: 0;
}

.hy-series-search:focus-within {
  border-color: rgba(255, 70, 85, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 70, 85, 0.08);
}

.hy-series-chapter-list {
  padding: 0 13px;
}

.hy-series-chapter-row {
  position: relative;
  display: grid;
  min-height: 74px;
  padding: 10px 10px;
  grid-template-columns: 64px minmax(0, 1fr) 138px 27px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--series-line);
  color: #fff;
  content-visibility: auto;
  contain-intrinsic-size: auto 74px;
  transition: background 0.15s ease, color 0.15s ease;
}

.hy-series-chapter-row[hidden],
.hy-series-chapter-toggle[hidden],
.hy-series-empty[hidden] {
  display: none !important;
}

.hy-series-chapter-row::before {
  content: "";
  position: absolute;
  top: 17px;
  bottom: 17px;
  left: -13px;
  width: 2px;
  border-radius: 4px;
  background: transparent;
  transition: background 0.15s ease;
}

.hy-series-chapter-row:hover {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.hy-series-chapter-row:hover::before {
  background: var(--hy-accent);
}

.hy-series-chapter-number {
  display: grid;
  min-width: 0;
  min-height: 48px;
  padding: 5px 8px;
  place-content: center;
  justify-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #151c26;
}

.hy-series-chapter-number small {
  color: #687483;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.hy-series-chapter-number strong {
  overflow: hidden;
  max-width: 100%;
  color: #f1f4f8;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hy-series-chapter-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.hy-series-chapter-copy > strong {
  overflow: hidden;
  color: #e7ecf2;
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hy-series-chapter-copy small,
.hy-series-chapter-meta {
  color: #707c8b;
  font-size: 8px;
}

.hy-series-chapter-meta {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.hy-series-chapter-meta small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #aab4c0;
  font-size: 9px;
  font-weight: 800;
}

.hy-series-chapter-meta i {
  width: 9px;
  height: 6px;
  border: 1px solid #667181;
  border-radius: 50%;
}

.hy-series-chapter-arrow {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 7px;
  color: #667281;
  font-size: 13px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.hy-series-chapter-row:hover .hy-series-chapter-arrow {
  background: var(--hy-accent);
  color: #fff;
  transform: translateX(2px);
}

.hy-series-chapter-toggle {
  display: flex;
  width: calc(100% - 26px);
  min-height: 43px;
  margin: 12px 13px 13px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  background: #0d131b;
  color: #b7c1cc;
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 900;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.hy-series-chapter-toggle:hover {
  border-color: rgba(255, 70, 85, 0.35);
  background: rgba(255, 70, 85, 0.06);
  color: #fff;
}

.hy-series-chapter-toggle i {
  color: var(--hy-accent);
  font-size: 12px;
  font-style: normal;
  transition: transform 0.18s ease;
}

.hy-series-chapter-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.hy-series-empty {
  margin: 0;
  padding: 32px 20px;
  color: #778392;
  font-size: 11px;
  text-align: center;
}

.hy-series-rail {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.hy-series-facts,
.hy-series-related {
  overflow: hidden;
}

.hy-series-facts {
  padding: 21px;
}

.hy-series-facts h2,
.hy-series-related h2,
.hy-series-community h2 {
  margin: 5px 0 0;
  color: #fff;
  letter-spacing: -0.55px;
}

.hy-series-facts h2,
.hy-series-related h2 {
  font-size: 19px;
}

.hy-series-facts dl {
  margin: 17px 0 0;
}

.hy-series-facts dl > div {
  display: grid;
  min-height: 36px;
  padding: 8px 0;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  border-top: 1px solid var(--series-line);
}

.hy-series-facts dt {
  color: #6f7b8a;
  font-size: 8px;
  font-weight: 800;
}

.hy-series-facts dd {
  display: flex;
  min-width: 0;
  margin: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  overflow-wrap: anywhere;
  color: #d6dde5;
  font-size: 9px;
  font-weight: 800;
  text-align: right;
}

.hy-series-related-head {
  display: flex;
  padding: 20px 20px 15px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.hy-series-related-head > a {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--series-line);
  border-radius: 8px;
  color: #adb7c3;
}

.hy-series-related-head > a:hover {
  border-color: var(--hy-accent);
  color: #fff;
}

.hy-series-related-list {
  display: grid;
}

.hy-series-related-list > a {
  display: grid;
  min-width: 0;
  min-height: 89px;
  padding: 7px 13px;
  grid-template-columns: 54px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  border-top: 1px solid var(--series-line);
  color: #fff;
  transition: background 0.15s ease;
}

.hy-series-related-list > a:hover {
  background: rgba(255, 255, 255, 0.035);
}

.hy-series-related-list img {
  width: 54px;
  height: 76px;
  border-radius: 7px;
  background: #171e28;
  object-fit: cover;
}

.hy-series-related-list span {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.hy-series-related-list strong {
  display: -webkit-box;
  overflow: hidden;
  color: #e7ecf2;
  font-size: 10px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hy-series-related-list small {
  overflow: hidden;
  color: #74808e;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hy-series-related-list b {
  color: #606c7b;
  font-size: 11px;
}

.hy-series-community {
  scroll-margin-top: 96px;
  margin-bottom: 68px;
  padding: clamp(21px, 2.7vw, 32px);
}

.hy-series-community-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.hy-series-community-head h2 {
  font-size: 25px;
}

.hy-series-community-head p {
  margin: 6px 0 0;
  color: #7d8998;
  font-size: 10px;
}

.hy-series-community-head > a {
  padding: 7px 10px;
  border: 1px solid var(--series-line);
  border-radius: 999px;
  color: #c6d0dc;
  font-size: 9px;
  font-weight: 850;
}

.hy-reaction-grid {
  display: grid;
  margin: 23px 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.hy-reaction-grid form {
  min-width: 0;
}

.hy-reaction-grid button,
.hy-reaction-grid a {
  display: grid;
  width: 100%;
  min-height: 56px;
  padding: 8px 10px;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--series-line);
  border-radius: 10px;
  background: #141b25;
  color: #b9c4d0;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.hy-reaction-grid button:hover,
.hy-reaction-grid button.active,
.hy-reaction-grid a:hover {
  border-color: rgba(255, 70, 85, 0.45);
  background: rgba(255, 70, 85, 0.085);
  color: #fff;
}

.hy-reaction-grid i {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 70, 85, 0.11);
  color: #ff6673;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.hy-reaction-grid span {
  overflow: hidden;
  font-size: 9px;
  font-weight: 850;
  text-align: left;
  text-overflow: ellipsis;
}

.hy-reaction-grid strong {
  color: #fff;
  font-size: 10px;
}

.hy-community-login,
.hy-comment-compose {
  border: 1px solid var(--series-line);
  border-radius: 11px;
  background: #0c121a;
}

.hy-community-login {
  display: flex;
  min-height: 70px;
  padding: 14px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hy-community-login > div {
  display: grid;
  gap: 4px;
}

.hy-community-login strong {
  color: #eef2f7;
  font-size: 11px;
}

.hy-community-login span {
  color: #768291;
  font-size: 9px;
}

.hy-community-login > a,
.hy-comment-compose button {
  display: inline-flex;
  min-height: 38px;
  padding: 0 14px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--hy-accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 900;
}

.hy-comment-compose {
  display: grid;
  gap: 9px;
  padding: 15px;
}

.hy-comment-compose label {
  color: #e6ebf1;
  font-size: 10px;
  font-weight: 850;
}

.hy-comment-compose textarea {
  min-height: 96px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 9px;
  background: #111923;
  color: #fff;
  font: inherit;
  line-height: 1.55;
  padding: 11px;
}

.hy-comment-compose textarea:focus {
  border-color: rgba(255, 70, 85, 0.58);
  outline: 3px solid rgba(255, 70, 85, 0.08);
}

.hy-comment-compose > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.hy-comment-compose small {
  color: #717d8b;
  font-size: 8px;
}

.hy-comment-list {
  display: grid;
  margin-top: 20px;
}

.hy-comment-card {
  display: grid;
  padding: 17px 0;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid var(--series-line);
}

.hy-comment-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff5365, #7d50df);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.hy-comment-card header {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}

.hy-comment-card header a {
  color: #f2f5f8;
  font-size: 10px;
}

.hy-comment-card header span,
.hy-comment-card header time {
  color: #707c8a;
  font-size: 8px;
}

.hy-comment-card p {
  margin: 7px 0 0;
  overflow-wrap: anywhere;
  color: #bac4cf;
  font-size: 10px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.hy-comment-empty {
  margin: 0;
  padding: 22px 0 5px;
  border-top: 1px solid var(--series-line);
  color: #737f8e;
  font-size: 10px;
}

@media (max-width: 1100px) {
  .hy-series-hero {
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: start;
  }

  .hy-series-release {
    display: grid;
    min-height: 0;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 7px 20px;
  }

  .hy-series-release-head,
  .hy-series-picker {
    grid-column: 1 / -1;
  }

  .hy-series-release h2 {
    margin-top: 11px;
  }

  .hy-series-release-cta {
    grid-column: 2;
    grid-row: 2 / span 2;
    align-self: center;
    margin-top: 0;
  }

  .hy-series-picker {
    margin-top: 8px;
  }

  .hy-series-body {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

  .hy-reaction-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .hy-series-shell {
    padding-bottom: 36px;
  }

  .hy-series-body {
    grid-template-columns: 1fr;
  }

  .hy-series-rail {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hy-series-cover-card {
    width: 176px;
  }

  .hy-series-hero {
    grid-template-columns: 176px minmax(0, 1fr);
    gap: 28px;
  }

  .hy-series-copy h1 {
    font-size: clamp(34px, 6vw, 48px);
  }

  .hy-series-copy h1.is-long,
  .hy-series-copy h1.is-very-long {
    font-size: clamp(27px, 4.9vw, 38px);
  }
}

@media (max-width: 620px) {
  .hy-series-page {
    overflow-x: clip;
  }

  .hy-series-mast::before {
    background-size: 34px 34px;
  }

  .hy-series-shell {
    max-width: calc(100vw - 28px);
    padding: 17px 0 27px;
  }

  .hy-series-breadcrumb {
    margin-bottom: 19px;
    font-size: 8px;
  }

  .hy-series-hero {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px 16px;
  }

  .hy-series-hero > * {
    min-width: 0;
  }

  .hy-series-cover-card {
    width: 112px;
    grid-row: 1 / span 4;
  }

  .hy-series-cover-card::before {
    inset: 9px -6px -8px 8px;
    border-radius: 11px;
  }

  .hy-series-cover-card > img {
    border-radius: 10px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.36);
  }

  .hy-series-cover-status {
    top: 6px;
    left: 6px;
    min-height: 20px;
    padding: 0 6px;
    gap: 5px;
    font-size: 6px;
  }

  .hy-series-cover-status i {
    width: 4px;
    height: 4px;
    box-shadow: 0 0 0 3px rgba(95, 224, 139, 0.12);
  }

  .hy-series-cover-card figcaption {
    right: 5px;
    bottom: 5px;
    min-width: 51px;
    padding: 5px 6px;
  }

  .hy-series-cover-card figcaption > span,
  .hy-series-cover-card figcaption strong {
    font-size: 9px;
  }

  .hy-series-cover-card figcaption small {
    display: none;
  }

  .hy-series-copy {
    display: contents;
  }

  .hy-series-kicker {
    align-self: end;
    margin: 0;
    font-size: 7px;
    letter-spacing: 0.7px;
  }

  .hy-series-kicker span {
    width: 12px;
  }

  .hy-series-copy h1 {
    align-self: center;
    font-size: clamp(24px, 7.6vw, 34px);
    letter-spacing: -1.25px;
    line-height: 1.04;
  }

  .hy-series-copy h1.is-long,
  .hy-series-copy h1.is-very-long {
    font-size: clamp(20px, 6.2vw, 28px);
    letter-spacing: -0.9px;
    line-height: 1.08;
  }

  .hy-series-credits {
    margin: 0;
    align-self: start;
    gap: 5px;
    flex-direction: column;
    font-size: 8px;
  }

  .hy-series-credits span + span::before {
    display: none;
  }

  .hy-series-genres {
    min-width: 0;
    margin-top: 0;
    align-self: start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .hy-series-genres::-webkit-scrollbar {
    display: none;
  }

  .hy-series-genres a {
    flex: 0 0 auto;
    padding: 5px 7px;
    font-size: 7px;
  }

  .hy-series-summary,
  .hy-series-meta,
  .hy-series-actions {
    grid-column: 1 / -1;
  }

  .hy-series-summary {
    margin-top: 4px;
    font-size: 10px;
    -webkit-line-clamp: 3;
  }

  .hy-series-meta {
    margin-top: 1px;
    font-size: 8px;
  }

  .hy-series-actions {
    display: grid;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: 2px;
    grid-template-columns: calc((100% - 54px) / 2) calc((100% - 54px) / 2) 40px;
    gap: 7px;
  }

  .hy-series-primary,
  .hy-series-secondary,
  .hy-series-bookmark {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 0 10px;
    overflow: hidden;
    font-size: 8px;
    white-space: nowrap;
  }

  .hy-series-bookmark {
    width: 40px;
    padding: 0;
  }

  .hy-series-bookmark [data-bookmark-label] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .hy-series-release {
    width: 100%;
    padding: 16px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px 12px;
    border-radius: 12px;
  }

  .hy-series-release-head,
  .hy-series-release h2,
  .hy-series-release > p,
  .hy-series-release-cta,
  .hy-series-picker {
    grid-column: 1;
  }

  .hy-series-release h2 {
    margin: 8px 0 3px;
    font-size: 16px;
  }

  .hy-series-release-cta {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    margin-top: 8px;
    padding: 0 10px;
    grid-row: auto;
    font-size: 8px;
  }

  .hy-series-picker {
    min-height: 40px;
  }

  .hy-series-body {
    gap: 14px;
    padding: 16px 0 18px;
  }

  .hy-series-chapters,
  .hy-series-facts,
  .hy-series-related,
  .hy-series-community {
    border-radius: 13px;
  }

  .hy-series-section-head {
    min-height: 0;
    padding: 17px;
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
  }

  .hy-series-section-head h2 {
    font-size: 21px;
  }

  .hy-series-search {
    width: 100%;
  }

  .hy-series-chapter-list {
    padding: 0 7px;
  }

  .hy-series-chapter-row {
    min-height: 67px;
    padding: 8px 6px;
    grid-template-columns: 52px minmax(0, 1fr) 25px;
    gap: 9px;
    contain-intrinsic-size: auto 67px;
  }

  .hy-series-chapter-row::before {
    left: -7px;
  }

  .hy-series-chapter-number {
    min-height: 44px;
    padding: 4px;
  }

  .hy-series-chapter-copy > strong {
    font-size: 10px;
  }

  .hy-series-chapter-meta {
    display: none;
  }

  .hy-series-chapter-toggle {
    width: calc(100% - 14px);
    margin: 9px 7px 8px;
  }

  .hy-series-rail {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hy-series-community {
    margin-bottom: 34px;
    padding: 17px;
  }

  .hy-series-community-head h2 {
    font-size: 22px;
  }

  .hy-reaction-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .hy-reaction-grid button,
  .hy-reaction-grid a {
    min-height: 68px;
    padding: 7px;
    grid-template-columns: 23px minmax(0, 1fr);
    gap: 5px;
  }

  .hy-reaction-grid strong {
    grid-column: 2;
    color: #788493;
    font-size: 8px;
  }

  .hy-community-login,
  .hy-comment-compose > div {
    align-items: stretch;
    flex-direction: column;
  }

  .hy-community-login > a,
  .hy-comment-compose button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hy-series-primary,
  .hy-series-secondary,
  .hy-series-bookmark,
  .hy-series-release-cta,
  .hy-series-chapter-arrow,
  .hy-series-chapter-toggle i {
    transition: none;
  }
}

/* Reader */
.reader-mode {
  background: #050608;
  color: #f4f6f8;
}

.hy-reader-app {
  min-height: 100vh;
}

.hy-reader-progress {
  position: fixed;
  top: 0;
  z-index: 90;
  width: 100%;
  height: 3px;
  border: 0;
  appearance: none;
}

.hy-reader-progress::-webkit-progress-bar {
  background: transparent;
}

.hy-reader-progress::-webkit-progress-value {
  background: var(--hy-accent);
}

.hy-reader-progress::-moz-progress-bar {
  background: var(--hy-accent);
}

.hy-reader-header {
  position: sticky;
  top: 0;
  z-index: 70;
  display: grid;
  min-height: 76px;
  padding: 10px 22px;
  grid-template-columns: auto minmax(180px, 1fr) minmax(220px, 0.7fr) auto;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(7, 9, 12, 0.95);
  backdrop-filter: blur(18px);
}

.hy-reader-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hy-reader-brand .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.hy-reader-brand .brand-mark i,
.hy-reader-brand .brand-mark b {
  top: 10px;
  width: 7px;
  height: 15px;
}

.hy-reader-brand .brand-mark i {
  left: 9px;
}

.hy-reader-brand .brand-mark b {
  right: 9px;
}

.hy-reader-brand strong {
  font-size: 14px;
}

.hy-reader-brand strong span {
  color: var(--hy-accent);
}

.hy-reader-back {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  padding-left: 20px;
  border-left: 1px solid var(--hy-line);
}

.hy-reader-back > span:first-child {
  color: var(--hy-accent);
}

.hy-reader-back > span:last-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.hy-reader-back small {
  color: #697483;
  font-size: 8px;
  text-transform: uppercase;
}

.hy-reader-back strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hy-reader-select {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.hy-reader-select > span {
  color: #697483;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.hy-reader-select select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--hy-line);
  border-radius: 9px;
  background: #111720;
  color: #e8ecf1;
  font-size: 10px;
}

.hy-reader-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.hy-reader-nav a,
.hy-reader-nav > span,
.hy-reader-nav button {
  display: flex;
  min-height: 38px;
  padding: 0 11px;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--hy-line);
  border-radius: 8px;
  background: #111720;
  color: #dce2e9;
  font-size: 9px;
  font-weight: 800;
}

.hy-reader-nav button {
  border-color: rgba(255, 70, 85, 0.3);
  color: var(--hy-accent);
  cursor: pointer;
}

.hy-reader-nav .disabled {
  opacity: 0.35;
}

.hy-reader-settings {
  position: sticky;
  top: 76px;
  z-index: 60;
  display: grid;
  padding: 13px max(22px, calc((100vw - 1100px) / 2));
  grid-template-columns: repeat(4, auto);
  justify-content: center;
  gap: 28px;
  border-bottom: 1px solid var(--hy-line);
  background: #0d1218;
}

.hy-reader-settings[hidden] {
  display: none;
}

.hy-reader-settings > div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.hy-reader-settings > div > span {
  margin-right: 5px;
  color: #6f7a88;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.hy-reader-settings button {
  padding: 7px 9px;
  border: 1px solid var(--hy-line);
  border-radius: 7px;
  background: transparent;
  color: #9ba5b2;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}

.hy-reader-settings button.active {
  border-color: rgba(255, 70, 85, 0.42);
  background: rgba(255, 70, 85, 0.11);
  color: #fff;
}

.hy-reader-main {
  min-height: 100vh;
  padding: 58px 16px 90px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 70, 85, 0.06), transparent 22%),
    #050608;
}

.hy-reader-intro {
  width: min(760px, 100%);
  margin: 0 auto 48px;
  text-align: center;
}

.hy-reader-intro > span,
.hy-reader-finish > span {
  color: var(--hy-accent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hy-reader-intro h1 {
  margin: 10px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
}

.hy-reader-intro p {
  color: #929ca9;
  font-size: 12px;
  line-height: 1.65;
}

.hy-reader-intro small {
  color: #626c79;
  font-size: 9px;
}

.hy-reader-pages {
  display: grid;
  width: min(880px, 100%);
  margin: 0 auto;
  gap: 28px;
  transition: width 0.2s ease, gap 0.2s ease;
}

.hy-reader-pages figure {
  position: relative;
  margin: 0;
}

.hy-reader-pages img {
  width: 100%;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.45);
}

.hy-reader-pages figcaption {
  position: absolute;
  top: 12px;
  right: -48px;
  color: #555f6c;
  font-size: 8px;
  font-weight: 800;
  writing-mode: vertical-rl;
}

.reader-page-jump {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 75;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(17, 23, 32, 0.92);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
  color: #fff;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.reader-page-jump:hover,
.reader-page-jump:focus-visible {
  border-color: var(--hy-accent);
  background: var(--hy-accent);
  outline: none;
  transform: translateY(2px);
}

.reader-page-jump:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 70, 85, 0.3), 0 10px 28px rgba(0, 0, 0, 0.42);
}

.reader-page-jump:disabled {
  cursor: default;
  opacity: 0.38;
  transform: none;
}

.reader-page-jump svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.reader-page-jump span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.reader-wide .hy-reader-pages {
  width: min(1180px, 100%);
}

.reader-compact .hy-reader-pages {
  gap: 2px;
}

.reader-compact .hy-reader-pages img {
  border-radius: 0;
}

.reader-paper,
.reader-paper .hy-reader-main {
  background: #d8d0c0;
}

.reader-paper .hy-reader-intro h1,
.reader-paper .hy-reader-intro p,
.reader-paper .hy-reader-finish h2 {
  color: #17191d;
}

.hy-reader-finish {
  width: min(760px, 100%);
  margin: 70px auto 0;
  padding: 46px 20px;
  border-top: 1px solid var(--hy-line);
  text-align: center;
}

.hy-reader-finish h2 {
  margin: 10px 0 0;
  font-size: 32px;
}

.hy-reader-finish div {
  justify-content: center;
}

/* Device-local shelf */
.hy-personal-page {
  min-height: 70vh;
  padding: 74px 0 100px;
  color: var(--hy-text);
}

.hy-personal-head {
  display: flex;
  margin-bottom: 38px;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.hy-personal-head h1 {
  margin: 9px 0 10px;
  font-size: clamp(42px, 6vw, 70px);
  letter-spacing: -3px;
}

.hy-personal-head p {
  margin: 0;
  color: #8994a2;
  font-size: 12px;
}

.hy-personal-head > a {
  padding-bottom: 8px;
  color: var(--hy-accent);
  font-size: 11px;
  font-weight: 850;
}

.hy-personal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hy-personal-loading {
  color: #7a8593;
}

.hy-personal-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 13px;
  border: 1px solid var(--hy-line);
  border-radius: 15px;
  background: var(--hy-surface);
}

.hy-personal-card > a {
  overflow: hidden;
  aspect-ratio: 0.75;
  border-radius: 10px;
}

.hy-personal-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hy-personal-card > div {
  display: flex;
  min-width: 0;
  padding: 5px 0;
  flex-direction: column;
}

.hy-personal-card > div > span {
  margin-bottom: 12px;
  color: var(--hy-accent);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hy-personal-card > div > a {
  overflow: hidden;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.hy-personal-card p {
  margin: 8px 0;
  color: #7e8997;
  font-size: 10px;
}

.hy-personal-card > div > div {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.hy-personal-card > div > div a,
.hy-personal-card button,
.hy-personal-empty a {
  padding: 8px 10px;
  border: 1px solid var(--hy-line);
  border-radius: 8px;
  background: transparent;
  color: #cbd2db;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.hy-personal-card > div > div a {
  border-color: rgba(255, 70, 85, 0.35);
  background: rgba(255, 70, 85, 0.08);
  color: #fff;
}

.hy-personal-empty {
  display: grid;
  min-height: 340px;
  grid-column: 1 / -1;
  place-items: center;
  align-content: center;
  padding: 50px 20px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: var(--hy-radius);
  background: rgba(255, 255, 255, 0.018);
  text-align: center;
}

.hy-personal-empty > span {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 15px;
  background: rgba(255, 70, 85, 0.12);
  color: var(--hy-accent);
  font-size: 21px;
}

.hy-personal-empty h2 {
  margin-bottom: 8px;
}

.hy-personal-empty p {
  margin-bottom: 22px;
  color: #7d8896;
  font-size: 11px;
}

.hy-personal-empty a {
  border-color: rgba(255, 70, 85, 0.38);
  color: #fff;
}

/* Footer */
.site-footer {
  display: grid;
  width: 100%;
  padding: 58px max(32px, calc((100vw - 1440px) / 2)) 30px;
  grid-template-columns: minmax(260px, 0.8fr) minmax(420px, 1fr);
  gap: 50px 90px;
  justify-items: stretch;
  border-top: 1px solid var(--hy-line);
  background: #080b10;
  color: #c6ced8;
  text-align: left;
}

.footer-brand-block p {
  max-width: 360px;
  margin: 20px 0 0;
  color: #778290;
  font-size: 12px;
  line-height: 1.7;
}

.footer-wordmark .brand-copy small {
  display: none;
}

.footer-wordmark {
  min-height: 44px;
  padding: 4px 0;
}

.footer-directory {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.footer-directory nav {
  display: grid;
  align-content: start;
  gap: 11px;
}

.footer-directory strong {
  margin-bottom: 6px;
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
}

.footer-directory a {
  display: flex;
  min-height: 24px;
  align-items: center;
  color: #778290;
  font-size: 12px;
}

.footer-directory a:hover {
  color: var(--hy-accent);
}

.footer-meta {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--hy-line);
  color: #8b96a4;
  text-align: center;
}

.site-footer .footer-meta small {
  color: inherit;
}

@media (max-width: 1180px) {
  :root {
    --hy-shell: min(100% - 40px, 1040px);
  }

  .site-header {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 14px;
    padding: 12px 20px;
  }

  .main-nav {
    display: none;
  }

  .mobile-nav-drawer {
    display: block;
    order: -1;
  }

  .mobile-nav-drawer summary {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--hy-line);
    border-radius: 11px;
    background: #111720;
  }

  .mobile-nav-panel {
    top: 65px;
    left: 20px;
    min-width: 220px;
    border: 1px solid var(--hy-line);
    border-radius: 12px;
    background: #111720;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  }

  .search-form {
    width: min(34vw, 320px);
    justify-self: end;
  }

  .hy-shelf-rail,
  .hy-new-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hy-home-grid {
    grid-template-columns: 1fr 320px;
    gap: 28px;
  }

  .hy-update-grid {
    grid-template-columns: 1fr;
  }

  .hy-fresh-chapter-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hy-detail-grid {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 34px;
  }

  .hy-personal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Laravel admin editing panels */
.admin-ops-panel { display: block; padding: 0; overflow: hidden; }
.admin-ops-panel > p,
.admin-ops-panel > form:not(.admin-settings-form) { margin: 0 18px 16px; }
.admin-editor { position: relative; }
.admin-editor > summary {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid #dfe7f0;
  border-radius: 7px;
  background: #f7f8ff;
  color: #6653bd;
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
  list-style: none;
  padding: 0 9px;
}
.admin-editor > summary::-webkit-details-marker { display: none; }
.admin-editor[open] > summary { margin-bottom: 10px; background: #eeeaff; }
.admin-editor form { display: grid; gap: 11px; width: min(680px, 70vw); border: 1px solid #e1e7ef; border-radius: 10px; background: #fbfcfe; box-shadow: 0 12px 28px rgba(24, 39, 62, 0.09); padding: 13px; }
.admin-editor label,
.admin-settings-form label { display: grid; gap: 5px; color: #52657c; font-size: 10px; font-weight: 800; }
.admin-editor input,
.admin-editor textarea,
.admin-editor select,
.admin-settings-form select { width: 100%; border: 1px solid #dce5ef; border-radius: 7px; background: #fff; color: #253449; font: inherit; padding: 8px 9px; }
.admin-editor textarea { min-height: 72px; resize: vertical; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.admin-editor .admin-check,
.admin-settings-form .admin-check { display: flex; align-items: center; gap: 8px; color: #40536b; }
.admin-editor .admin-check input,
.admin-settings-form .admin-check input { width: auto; }
.admin-settings-form { display: grid; gap: 12px; max-width: 720px; padding: 18px; }
.admin-settings-form p { margin: 0; color: #68798f; font-size: 12px; line-height: 1.55; }
.admin-settings-form > label:not(.admin-check) { max-width: 260px; }
@media (max-width: 800px) {
  .admin-editor form { width: min(540px, 74vw); }
  .admin-form-grid { grid-template-columns: 1fr; }
}

/* Homepage story slider: blurred source art behind a crisp, tilted cover. */
.hy-home-hero.hy-slider {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--hy-line);
  background: #05080d;
}

.hy-slider-viewport {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-x pan-y;
}

.hy-slider-viewport::-webkit-scrollbar {
  display: none;
}

.hy-slider-viewport:focus-visible {
  outline: 2px solid var(--hy-accent);
  outline-offset: -3px;
}

.hy-slider-viewport.is-dragging {
  scroll-behavior: auto;
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}

.hy-slider-viewport.is-dragging a {
  pointer-events: none;
}

.hy-slider.is-single .hy-slider-viewport {
  cursor: default;
}

.hy-slider.is-single .hy-slider-controls {
  display: none;
}

.hy-slider-track {
  display: flex;
  min-width: 100%;
}

.hy-slider-slide {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 650px;
  flex: 0 0 100%;
  overflow: hidden;
  isolation: isolate;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hy-slider-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 0.7px, transparent 0.7px);
  background-size: 6px 6px;
  mask-image: linear-gradient(90deg, transparent, #000 50%, transparent);
}

.hy-slider-backdrop,
.hy-slider-shade {
  position: absolute;
  pointer-events: none;
}

.hy-slider-backdrop {
  inset: -42px;
  z-index: -3;
  width: calc(100% + 84px);
  height: calc(100% + 84px);
  object-fit: cover;
  object-position: center 28%;
  opacity: 0.62;
  filter: blur(24px) saturate(0.9) contrast(1.08);
  transform: scale(1.08);
}

.hy-slider-shade {
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 78% 43%, rgba(255, 255, 255, 0.1), transparent 26%),
    linear-gradient(90deg, rgba(5, 8, 13, 0.99) 0%, rgba(5, 8, 13, 0.91) 42%, rgba(5, 8, 13, 0.52) 72%, rgba(5, 8, 13, 0.78) 100%),
    linear-gradient(0deg, #080b10 0%, transparent 28%);
}

.hy-slider-shell {
  position: relative;
  z-index: 1;
  display: grid;
  width: var(--hy-shell);
  min-height: 650px;
  margin: 0 auto;
  padding: 54px 0 92px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 410px);
  align-items: center;
  gap: clamp(44px, 7vw, 118px);
}

.hy-slider-copy {
  max-width: 780px;
  min-width: 0;
  opacity: 0.64;
  transform: translateX(18px);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.hy-slider-slide.is-active .hy-slider-copy {
  opacity: 1;
  transform: translateX(0);
}

.hy-slider-chapter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  color: #fff;
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}

.hy-slider-chapter span {
  width: 26px;
  height: 3px;
  border-radius: 999px;
  background: var(--hy-accent);
  box-shadow: 0 0 18px rgba(255, 70, 85, 0.8);
}

.hy-slider-title {
  display: -webkit-box;
  overflow: hidden;
  max-width: 780px;
  color: #fff;
  font-size: clamp(34px, 4.2vw, 62px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.hy-slider-title:hover {
  color: #fff;
}

.hy-slider-summary {
  display: -webkit-box;
  overflow: hidden;
  max-width: 690px;
  margin: 19px 0 20px;
  color: rgba(241, 245, 249, 0.82);
  font-size: 14px;
  font-weight: 450;
  line-height: 1.7;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.38);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.hy-slider-genres {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.hy-slider-genres a {
  display: inline-flex;
  min-height: 27px;
  padding: 4px 10px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 6px;
  background: rgba(7, 10, 15, 0.25);
  color: #fff;
  font-size: 10px;
  font-weight: 750;
  backdrop-filter: blur(9px);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.hy-slider-genres a:hover {
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.1);
}

.hy-slider-meta {
  display: flex;
  gap: 21px;
  margin-top: 18px;
  flex-wrap: wrap;
  color: rgba(226, 232, 240, 0.68);
  font-size: 11px;
  font-weight: 700;
}

.hy-slider-meta span + span {
  position: relative;
}

.hy-slider-meta span + span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -12px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
}

.hy-slider-meta b {
  color: var(--hy-gold);
}

.hy-slider-actions {
  display: flex;
  gap: 10px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.hy-slider-actions .hy-primary-cta,
.hy-slider-actions .hy-secondary-cta {
  min-height: 45px;
  border-radius: 8px;
}

.hy-slider-actions .hy-primary-cta span {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.hy-slider-actions .hy-primary-cta:hover span {
  transform: translateX(3px);
}

.hy-slider-cover-stage {
  position: relative;
  display: grid;
  min-height: 470px;
  place-items: center;
  perspective: 1200px;
  opacity: 0.72;
  transform: translateX(28px) scale(0.96);
  transition: opacity 0.5s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.hy-slider-slide.is-active .hy-slider-cover-stage {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.hy-slider-cover-stage::before {
  content: "";
  position: absolute;
  width: min(30vw, 410px);
  height: min(30vw, 410px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(54px);
}

.hy-slider-cover-frame {
  position: absolute;
  width: clamp(220px, 21vw, 322px);
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 0 0 10px rgba(5, 8, 13, 0.18);
  transform: rotate(-5deg) translate(-19px, 10px);
}

.hy-slider-cover {
  position: relative;
  z-index: 1;
  display: block;
  width: clamp(220px, 21vw, 322px);
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.62), 0 8px 25px rgba(0, 0, 0, 0.48);
  transform: rotateY(-8deg) rotateZ(4deg);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.hy-slider-slide.is-active .hy-slider-cover {
  transform: rotateY(-8deg) rotateZ(4deg) translateY(-4px);
}

.hy-slider-controls {
  position: absolute;
  right: 0;
  bottom: 25px;
  left: 0;
  z-index: 8;
  display: grid;
  width: var(--hy-shell);
  margin: 0 auto;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  pointer-events: none;
}

.hy-slider-count {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.hy-slider-count strong {
  min-width: 24px;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.hy-slider-count span {
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, var(--hy-accent), rgba(255, 255, 255, 0.25));
}

.hy-slider-count small {
  color: rgba(255, 255, 255, 0.52);
  font-variant-numeric: tabular-nums;
}

.hy-slider-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  pointer-events: auto;
}

.hy-slider-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hy-slider-dots button[aria-current="true"] {
  width: 25px;
  background: var(--hy-accent);
}

.hy-slider-arrows {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.hy-slider-arrows button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(8, 11, 16, 0.56);
  color: #fff;
  cursor: pointer;
  font: inherit;
  backdrop-filter: blur(12px);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.hy-slider-arrows button:hover {
  border-color: var(--hy-accent);
  background: var(--hy-accent);
  transform: translateY(-2px);
}

@media (max-width: 1080px) {
  .hy-home-hero.hy-slider,
  .hy-slider-slide,
  .hy-slider-shell {
    min-height: 620px;
  }

  .hy-slider-shell {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 38px;
  }

  .hy-slider-title {
    font-size: clamp(34px, 5vw, 52px);
  }

  .hy-slider-cover,
  .hy-slider-cover-frame {
    width: 238px;
  }
}

@media (max-width: 720px) {
  .hy-home-hero.hy-slider,
  .hy-slider-slide,
  .hy-slider-shell {
    min-height: 850px;
  }

  .hy-slider-backdrop {
    opacity: 0.5;
    filter: blur(22px) saturate(0.86) contrast(1.05);
  }

  .hy-slider-shade {
    background:
      linear-gradient(0deg, #080b10 0%, rgba(5, 8, 13, 0.86) 57%, rgba(5, 8, 13, 0.55) 100%),
      linear-gradient(90deg, rgba(5, 8, 13, 0.86), rgba(5, 8, 13, 0.38));
  }

  .hy-slider-shell {
    display: flex;
    padding: 38px 0 96px;
    flex-direction: column;
    justify-content: flex-start;
    gap: 22px;
  }

  .hy-slider-cover-stage {
    min-height: 270px;
    order: -1;
  }

  .hy-slider-cover,
  .hy-slider-cover-frame {
    width: 180px;
  }

  .hy-slider-cover-stage::before {
    width: 260px;
    height: 260px;
  }

  .hy-slider-copy {
    width: 100%;
    max-width: none;
  }

  .hy-slider-chapter {
    margin-bottom: 10px;
    font-size: 14px;
  }

  .hy-slider-title {
    max-width: none;
    font-size: clamp(28px, 8vw, 42px);
    letter-spacing: -0.035em;
    line-height: 1.04;
    -webkit-line-clamp: 3;
  }

  .hy-slider-summary {
    margin: 14px 0 16px;
    font-size: 12px;
    line-height: 1.6;
    -webkit-line-clamp: 4;
  }

  .hy-slider-meta {
    margin-top: 14px;
  }

  .hy-slider-actions {
    margin-top: 20px;
  }

  .hy-slider-controls {
    bottom: 22px;
    gap: 12px;
  }

  .hy-slider-count span {
    width: 34px;
  }

  .hy-slider-arrows button {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 460px) {
  .hy-home-hero.hy-slider,
  .hy-slider-slide,
  .hy-slider-shell {
    min-height: 790px;
  }

  .hy-slider-shell {
    padding-top: 30px;
    gap: 15px;
  }

  .hy-slider-cover-stage {
    min-height: 230px;
  }

  .hy-slider-cover,
  .hy-slider-cover-frame {
    width: 150px;
  }

  .hy-slider-title {
    font-size: 27px;
  }

  .hy-slider-genres a:nth-child(n + 4),
  .hy-slider-meta span:last-child {
    display: none;
  }

  .hy-slider-actions .hy-secondary-cta {
    display: none;
  }

  .hy-slider-count {
    display: none;
  }

  .hy-slider-controls {
    grid-template-columns: 1fr auto;
  }

  .hy-slider-dots {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hy-slider-viewport {
    scroll-behavior: auto;
  }

  .hy-slider-copy,
  .hy-slider-cover-stage,
  .hy-slider-cover,
  .hy-slider-dots button,
  .hy-slider-arrows button {
    transition: none;
  }
}

/* Numbered pagination shared by catalog, community, profile, and admin pages. */
.pagination-wrap {
  display: flex;
  width: min(100%, 1290px);
  margin: 52px auto 0;
  justify-content: center;
}

.ts-pagination {
  --ts-page-bg: rgba(11, 15, 22, 0.9);
  --ts-page-surface: rgba(255, 255, 255, 0.055);
  --ts-page-border: rgba(255, 255, 255, 0.14);
  --ts-page-text: #f7f9fc;
  --ts-page-muted: #98a4b4;
  --ts-page-active-bg: #fff;
  --ts-page-active-text: #17191e;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--ts-page-border);
  border-radius: 18px;
  background: var(--ts-page-bg);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
  color: var(--ts-page-text);
  margin: 28px auto 0;
  padding: 12px 14px;
}

.pagination-wrap .ts-pagination {
  margin-top: 0;
}

.ts-pagination__pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.ts-pagination__control,
.ts-pagination__number,
.ts-pagination__ellipsis {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  height: 42px;
  border-radius: 11px;
  color: var(--ts-page-text);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.ts-pagination__control,
.ts-pagination__number {
  border: 1px solid var(--ts-page-border);
  background: var(--ts-page-surface);
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.ts-pagination__control {
  gap: 8px;
  min-width: 42px;
  padding: 0 13px;
}

.ts-pagination__number,
.ts-pagination__ellipsis {
  width: 42px;
}

.ts-pagination__ellipsis {
  color: var(--ts-page-muted);
  letter-spacing: 0.08em;
}

.ts-pagination a:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  transform: translateY(-2px);
}

.ts-pagination a:focus-visible {
  outline: 3px solid rgba(92, 154, 255, 0.5);
  outline-offset: 2px;
}

.ts-pagination__number.is-current {
  border-color: var(--ts-page-active-bg);
  background: var(--ts-page-active-bg);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.2);
  color: var(--ts-page-active-text);
}

.ts-pagination__control.is-disabled {
  cursor: not-allowed;
  opacity: 0.34;
}

.ts-pagination--simple {
  grid-template-columns: 1fr;
}

.ts-pagination--simple .ts-pagination__pages {
  justify-content: center;
}

.admin-mode .ts-pagination {
  --ts-page-bg: #fff;
  --ts-page-surface: #f5f7fb;
  --ts-page-border: #dfe6ef;
  --ts-page-text: #24334a;
  --ts-page-muted: #718198;
  --ts-page-active-bg: #6754c8;
  --ts-page-active-text: #fff;
  box-shadow: 0 10px 28px rgba(29, 45, 69, 0.08);
}

.admin-mode .ts-pagination a:hover {
  border-color: #b8c4d3;
  background: #edf1f7;
  color: #17253a;
}

.admin-mode .ts-pagination__number.is-current {
  border-color: #6754c8;
  background: #6754c8;
  color: #fff;
}

@media (max-width: 720px) {
  .pagination-wrap {
    margin-top: 32px;
  }

  .ts-pagination {
    grid-template-columns: 1fr;
    border-radius: 15px;
    padding: 8px;
  }

  .ts-pagination__pages {
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    row-gap: 8px;
  }

  .ts-pagination__control,
  .ts-pagination__number,
  .ts-pagination__ellipsis {
    width: 40px;
    height: 40px;
  }

  .ts-pagination__control {
    padding: 0;
  }

  .ts-pagination__ellipsis {
    width: 18px;
  }

  .ts-pagination__control-label {
    display: none;
  }
}

/* Direct chapter picker on series pages. */
.hy-chapter-picker,
.detail-chapter-picker {
  position: relative;
  display: grid;
  min-width: 220px;
  min-height: 48px;
  align-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 11px;
  background: rgba(17, 23, 32, 0.82);
  color: #f4f6f8;
}

.hy-chapter-picker::after,
.detail-chapter-picker::after {
  content: "";
  position: absolute;
  top: 19px;
  right: 15px;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  pointer-events: none;
  transform: rotate(45deg);
}

.hy-chapter-picker > span,
.detail-chapter-picker > span {
  position: absolute;
  z-index: 1;
  top: 7px;
  left: 13px;
  color: #8995a4;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.08em;
  pointer-events: none;
  text-transform: uppercase;
}

.hy-chapter-picker select,
.detail-chapter-picker select {
  width: 100%;
  min-height: 46px;
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  outline: 0;
  padding: 17px 40px 4px 13px;
}

.hy-chapter-picker select:focus-visible,
.detail-chapter-picker select:focus-visible {
  box-shadow: inset 0 0 0 2px var(--hy-blue);
}

.hy-chapter-picker option {
  background: #111720;
  color: #f4f6f8;
}

.theme-classic .detail-chapter-picker {
  border-color: #4a4a4a;
  border-radius: 6px;
  background: #282828;
  color: #fff;
}

.theme-classic .detail-chapter-picker option {
  background: #282828;
  color: #fff;
}

@media (max-width: 620px) {
  .hy-chapter-picker,
  .detail-chapter-picker {
    min-width: min(100%, 220px);
    min-height: 39px;
  }

  .hy-chapter-picker::after,
  .detail-chapter-picker::after {
    top: 14px;
  }

  .hy-chapter-picker select,
  .detail-chapter-picker select {
    min-height: 37px;
    padding-top: 15px;
    font-size: 9px;
  }

  .hy-chapter-picker > span,
  .detail-chapter-picker > span {
    top: 5px;
    font-size: 7px;
  }
}

/* Public catalog guardrails: imported data can contain exceptionally long titles. */
.theme-hybrid .hy-detail-grid {
  align-items: start;
}

.theme-hybrid .hy-detail-info h1.is-long {
  max-width: 780px;
  font-size: clamp(34px, 3.4vw, 50px);
  line-height: 1.04;
  letter-spacing: -2.2px;
  text-wrap: balance;
}

.theme-hybrid .hy-detail-info h1.is-very-long {
  max-width: 760px;
  font-size: clamp(31px, 3.1vw, 45px);
  letter-spacing: -1.8px;
}

.series-card:not(.compact) {
  height: 196px;
}

.series-card:not(.compact) .cover-link,
.series-card:not(.compact) .cover-link img {
  height: 100%;
}

.series-card:not(.compact) .cover-link img {
  aspect-ratio: auto;
}

.series-card:not(.compact) .series-card-body {
  overflow: hidden;
  gap: 6px;
}

.series-card:not(.compact) .series-title,
.series-card:not(.compact) .series-description {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  -webkit-box-orient: vertical;
}

.series-card:not(.compact) .series-title {
  -webkit-line-clamp: 2;
}

.series-card:not(.compact) .series-description {
  color: #aeb8c5;
  font-size: 11px;
  line-height: 1.38;
  -webkit-line-clamp: 2;
}

.series-card:not(.compact) .meta-row,
.series-card:not(.compact) .genre-row {
  display: flex;
  min-width: 0;
  gap: 7px;
  color: #8995a3;
  font-size: 9px;
  font-weight: 750;
}

.series-card:not(.compact) .meta-row {
  overflow: hidden;
  white-space: nowrap;
}

.series-card:not(.compact) .meta-row span + span::before {
  content: "•";
  margin-right: 7px;
  color: #48525e;
}

.series-card:not(.compact) .genre-row {
  overflow: hidden;
  white-space: nowrap;
}

.series-card:not(.compact) .genre-row a {
  overflow: hidden;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #c5ced8;
  text-overflow: ellipsis;
}

.series-card:not(.compact) .chapter-link {
  overflow: hidden;
  margin-top: auto;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .theme-hybrid .hy-detail-info h1.is-long,
  .theme-hybrid .hy-detail-info h1.is-very-long {
    font-size: clamp(25px, 7.2vw, 36px);
    line-height: 1.04;
    letter-spacing: -1.4px;
  }

  .series-card:not(.compact),
  .series-card:not(.compact) .cover-link,
  .series-card:not(.compact) .cover-link img {
    height: 180px;
  }
}

/* Public theme is selected by the administrator.  Language remains a compact
   reader preference and the configured default is intentionally listed first. */
.language-menu {
  z-index: 95;
}

.language-menu > summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.language-menu > summary::-webkit-details-marker {
  display: none;
}

.language-menu .language-switch {
  min-height: 40px;
  gap: 7px;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: #121821;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  padding: 8px 10px;
  transition: border-color .16s ease, background .16s ease;
}

.language-menu .language-switch:hover,
.language-menu[open] .language-switch {
  border-color: rgba(76, 156, 255, 0.7);
  background: #172131;
}

.language-menu .language-switch span {
  color: #aeb9c6;
  font-size: 11px;
}

.language-menu .language-switch strong {
  min-width: 20px;
  color: #fff;
  font-size: 11px;
  letter-spacing: .08em;
}

.language-menu[open] .language-switch i {
  transform: rotate(225deg) translateY(-1px);
}

.language-menu .language-options {
  min-width: 176px;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: #121821;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .42);
}

.language-menu[open] .language-options {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.language-menu .language-options a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #dce5ef;
  padding: 11px 12px;
}

.language-menu .language-options a:first-child {
  border-radius: 9px 9px 0 0;
}

.language-menu .language-options a:last-child {
  border-radius: 0 0 9px 9px;
}

.language-menu .language-options a:hover,
.language-menu .language-options a.active {
  background: #1c2b40;
  color: #fff;
}

.language-menu .language-options a.active::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: -8px;
  border-radius: 50%;
  background: var(--hy-accent);
  box-shadow: 0 0 0 3px rgba(37, 137, 255, .14);
}

.language-menu .language-options small {
  color: #7f91a5;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.search-bottom-icon {
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: scale(.72);
}

.search-bottom-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}

.account-bottom-icon {
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: scale(.72);
}

.account-bottom-icon::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -6px;
  left: -4px;
  height: 8px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

/* Local brand assets for the classic shell.  The old prototype used third-party
   reference artwork here; R4 keeps the same information architecture with a
   first-party wordmark instead. */
.theme-classic .classic-brand {
  align-items: center;
  color: #202020;
  text-decoration: none;
}

.theme-classic .classic-brand-tile,
.footer-local-app {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ff535e, #f62e49);
  color: #fff;
  font-weight: 950;
  letter-spacing: -.06em;
}

.theme-classic .classic-brand-tile {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .22);
  font-size: 17px;
}

.theme-classic .brand-name {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.theme-classic .footer-local-app {
  flex: 0 0 auto;
  font-size: 22px;
}

.theme-classic .footer-store-link {
  display: inline-grid;
  min-height: 40px;
  align-items: center;
  border: 1px solid #d6d6d6;
  border-radius: 5px;
  color: #202020;
  font-size: 12px;
  font-weight: 850;
  padding: 0 13px;
}

.theme-classic .footer-store-link:hover {
  background: #f2f2f2;
}

.theme-classic .footer-local-abj {
  display: grid;
  width: 60px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #202020;
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}

@media (max-width: 860px) {
  :root {
    --hy-shell: calc(100vw - 32px);
  }

  .hy-fresh-chapter-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-copy small,
  .header-account {
    display: none;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .brand {
    justify-self: center;
  }

  .search-form {
    display: none;
  }

  .mobile-search-link {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--hy-line);
    border-radius: 11px;
    background: #111720;
  }

  .hy-home-hero,
  .hy-hero-content {
    min-height: 560px;
  }

  .hy-hero-content {
    padding-top: 48px;
  }

  .hy-hero-content h1 {
    font-size: clamp(48px, 11vw, 76px);
  }

  .hy-hero-index {
    display: none;
  }

  .hy-genre-rail {
    padding: 0 16px;
  }

  .hy-genre-rail .hy-all-link {
    margin-left: 0;
  }

  .hy-shelf-rail {
    display: flex;
    margin-right: -16px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .hy-shelf-rail .hy-shelf-card {
    display: block;
    width: 180px;
    flex: 0 0 180px;
    scroll-snap-align: start;
  }

  .hy-home-grid {
    grid-template-columns: 1fr;
  }

  .hy-home-sidebar {
    position: static;
    padding-top: 20px;
  }

  .hy-new-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hy-shelf-card:nth-child(6) {
    display: block;
  }

  .hy-detail-hero {
    min-height: auto;
  }

  .hy-detail-shell {
    padding-bottom: 46px;
  }

  .hy-detail-grid {
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: start;
  }

  .hy-detail-info h1 {
    font-size: clamp(38px, 8vw, 58px);
  }

  .hy-detail-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hy-detail-stats div:nth-child(2) {
    border-right: 0;
  }

  .hy-detail-stats div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--hy-line);
  }

  .hy-overview-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hy-reader-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .hy-reader-brand strong,
  .hy-reader-back,
  .hy-reader-nav a span,
  .hy-reader-nav > span span,
  .hy-reader-nav button span:last-child {
    display: none;
  }

  .hy-reader-select {
    grid-column: 2;
  }

  .hy-reader-settings {
    top: 76px;
    grid-template-columns: repeat(2, auto);
  }

  .hy-reader-pages figcaption {
    right: 8px;
    padding: 4px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.5);
    color: #c8d0da;
    writing-mode: horizontal-tb;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 620px) {
  .hy-fresh-chapter-board {
    grid-template-columns: 1fr;
  }

  .hy-fresh-series {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 102px;
    padding: 9px;
  }

  .hy-fresh-cover {
    height: 84px;
  }

  :root {
    --hy-shell: calc(100vw - 28px);
  }

  body:not(.reader-mode) {
    padding-bottom: 68px;
  }

  .site-header {
    min-height: 64px;
    padding: 10px 14px;
  }

  .mobile-nav-drawer summary,
  .mobile-search-link {
    width: 40px;
    height: 40px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .brand-mark i,
  .brand-mark b {
    top: 10px;
    width: 7px;
    height: 16px;
  }

  .brand-mark i {
    left: 10px;
  }

  .brand-mark b {
    right: 10px;
  }

  .brand-copy strong,
  .brand-copy em {
    font-size: 16px;
  }

  .mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    display: grid;
    min-height: 64px;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--hy-line);
    background: rgba(8, 11, 16, 0.97);
    box-shadow: 0 -12px 38px rgba(0, 0, 0, 0.28);
    backdrop-filter: none;
  }

  .mobile-bottom-nav a {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 5px;
    color: #6f7a88;
    font-size: 12px;
    font-weight: 750;
  }

  .mobile-bottom-nav a.active {
    color: var(--hy-accent);
  }

  .bottom-icon {
    position: relative;
    display: block;
    width: 17px;
    height: 17px;
  }

  .home-icon {
    border: 2px solid currentColor;
    border-radius: 4px;
    transform: rotate(45deg) scale(0.76);
  }

  .library-icon,
  .bookmark-icon {
    border: 2px solid currentColor;
    border-radius: 3px;
  }

  .library-icon::after {
    content: "";
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 50%;
    border-left: 1px solid currentColor;
  }

  .bookmark-icon {
    border-bottom: 0;
    border-radius: 3px 3px 0 0;
  }

  .bottom-search {
    width: 15px;
    height: 15px;
  }

  .bottom-search::after {
    right: -6px;
    bottom: -3px;
  }

  .user-icon {
    width: 12px;
    height: 12px;
  }

  .user-icon::after {
    top: 9px;
    width: 17px;
    height: 9px;
  }

  .hy-home-hero,
  .hy-hero-content {
    min-height: 590px;
  }

  .hy-hero-art {
    object-position: 62% center;
  }

  .hy-hero-shade {
    background:
      linear-gradient(0deg, var(--hy-bg) 0%, rgba(7, 10, 15, 0.7) 50%, rgba(7, 10, 15, 0.42) 100%),
      linear-gradient(90deg, rgba(7, 10, 15, 0.82), transparent);
  }

  .hy-hero-content {
    justify-content: end;
    padding-bottom: 46px;
  }

  .hy-hero-breadcrumb {
    display: none;
  }

  .hy-hero-tags {
    margin: 22px 0 12px;
  }

  .hy-hero-content h1 {
    font-size: clamp(43px, 14vw, 64px);
    letter-spacing: -2.6px;
  }

  .hy-hero-summary {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .hy-hero-meta {
    gap: 15px;
    flex-wrap: wrap;
  }

  .hy-hero-meta span:last-child {
    display: none;
  }

  .hy-primary-cta,
  .hy-secondary-cta,
  .hy-bookmark-button {
    min-height: 45px;
  }

  .hy-section {
    padding-top: 54px;
  }

  .hy-section-head h2 {
    font-size: 20px;
  }

  .hy-section-head > a {
    font-size: 12px;
  }

  .hy-shelf-rail .hy-shelf-card {
    width: 150px;
    flex-basis: 150px;
  }

  .hy-update-row {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
  }

  .hy-update-title {
    font-size: 12px;
  }

  .hy-new-grid,
  .hy-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hy-detail-shell {
    padding-top: 22px;
  }

  .hy-detail-crumb {
    margin-bottom: 24px;
  }

  .hy-detail-grid {
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 18px;
  }

  .hy-detail-cover-wrap figcaption {
    right: 6px;
    bottom: 6px;
    min-width: 62px;
    padding: 6px 8px;
  }

  .hy-detail-cover-wrap figcaption strong {
    font-size: 13px;
  }

  .hy-detail-cover-wrap figcaption span {
    font-size: 6px;
  }

  .hy-detail-status {
    font-size: 8px;
  }

  .hy-detail-info h1 {
    margin-bottom: 9px;
    font-size: clamp(30px, 9vw, 42px);
    letter-spacing: -2px;
  }

  .hy-detail-byline {
    font-size: 9px;
  }

  .hy-detail-summary,
  .hy-detail-stats {
    display: none;
  }

  .hy-detail-genres {
    margin: 13px 0;
  }

  .hy-detail-genres a {
    padding: 5px 7px;
    font-size: 7px;
  }

  .hy-detail-actions {
    grid-column: 1 / -1;
    margin-top: 13px;
  }

  .hy-detail-actions .hy-primary-cta,
  .hy-detail-actions .hy-secondary-cta,
  .hy-detail-actions .hy-bookmark-button {
    min-height: 39px;
    padding: 0 11px;
    font-size: 9px;
  }

  .hy-detail-panel {
    padding: 32px 0;
  }

  .hy-overview-grid h2,
  .hy-chapter-head h2 {
    font-size: 24px;
  }

  .hy-chapter-head {
    align-items: stretch;
    flex-direction: column;
  }

  .hy-chapter-row {
    grid-template-columns: 48px minmax(0, 1fr) 20px;
    gap: 10px;
    padding: 8px 4px;
  }

  .hy-chapter-date {
    display: none;
  }

  .hy-chapter-cover {
    width: 48px;
    height: 64px;
  }

  .hy-chapter-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hy-reader-header {
    min-height: 64px;
    padding: 8px 10px;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .hy-reader-brand .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hy-reader-select > span {
    display: none;
  }

  .hy-reader-select {
    display: block;
  }

  .hy-reader-select select {
    padding: 9px;
  }

  .hy-reader-nav a,
  .hy-reader-nav > span,
  .hy-reader-nav button {
    min-height: 36px;
    padding: 0 8px;
  }

  .hy-reader-nav > a:first-child,
  .hy-reader-nav > span:first-child {
    display: none;
  }

  .hy-reader-settings {
    top: 64px;
    padding: 11px;
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 9px;
  }

  .hy-reader-settings > div {
    justify-content: space-between;
  }

  .hy-reader-settings > div > span {
    margin-right: auto;
  }

  .hy-reader-main {
    padding: 42px 0 70px;
  }

  .hy-reader-intro,
  .hy-reader-finish {
    padding-right: 14px;
    padding-left: 14px;
  }

  .hy-reader-intro h1 {
    font-size: 34px;
  }

  .hy-reader-pages {
    gap: 12px;
  }

  .hy-reader-pages img {
    border-radius: 0;
  }

  .hy-personal-page {
    padding-top: 52px;
  }

  .hy-personal-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hy-personal-head h1 {
    font-size: 46px;
  }

  .hy-personal-grid {
    grid-template-columns: 1fr;
  }

  .hy-personal-card {
    grid-template-columns: 102px minmax(0, 1fr);
  }

  .site-footer {
    padding: 46px 20px 32px;
  }

  .footer-directory {
    grid-template-columns: repeat(2, 1fr);
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family:
    Poppins, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 800;
  line-height: 1.02;
}

h2 {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 1.15;
}

.site-header,
.brand,
.main-nav,
.search-form,
.hero-actions,
.reader-actions,
.footer-links,
.table-actions,
.updates-tabs,
.update-meta {
  display: flex;
  align-items: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  gap: clamp(16px, 2vw, 24px);
  min-height: 88px;
  padding: 16px clamp(24px, 6vw, 122px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #191919;
  color: #fff;
}

.mobile-nav-drawer,
.mobile-search-link {
  display: none;
}

.brand {
  gap: 12px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-logo {
  width: auto;
  height: 54px;
  flex: 0 0 auto;
}

.brand-name {
  display: none;
}

.main-nav {
  gap: clamp(12px, 1.5vw, 22px);
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a,
.admin-link {
  opacity: 0.94;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.main-nav a:hover,
.admin-link:hover {
  color: var(--yellow);
  opacity: 1;
}

.main-nav a.active {
  color: #fff;
  opacity: 1;
}

.search-form {
  width: min(26vw, 330px);
  min-width: 0;
  overflow: hidden;
  border: 1px solid #303030;
  border-radius: 4px;
  background: #303030;
}

.search-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  outline: 0;
  padding: 13px 14px;
}

.search-form input::placeholder {
  color: #a2a2a2;
}

.search-form button {
  display: grid;
  min-width: 48px;
  place-items: center;
  border: 0;
  border-left: 1px solid #444;
  background: #252525;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  padding: 13px 14px;
}

.search-form button:hover {
  background: var(--accent);
}

.search-icon {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.admin-link {
  justify-self: end;
  max-width: 120px;
  overflow: hidden;
  border: 1px solid #5c5c5c;
  border-radius: 5px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-switch {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  border: 1px solid #505155;
  border-radius: 4px;
  background: #191919;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 12px;
}

.language-menu {
  position: relative;
  flex: 0 0 auto;
}

.language-switch span {
  color: #b6b6b6;
  font-weight: 500;
}

.language-switch strong {
  font-size: 13px;
}

.language-switch i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  transform: rotate(45deg) translateY(-2px);
}

main {
  width: 100%;
}

.catalog-hero,
.updates-hero {
  position: relative;
  display: grid;
  min-height: 560px;
  align-items: end;
  gap: 28px;
  overflow: hidden;
  padding: 34px clamp(18px, 4vw, 56px) 30px;
  background:
    linear-gradient(180deg, rgba(12, 12, 12, 0.52) 0%, rgba(12, 12, 12, 0.92) 86%),
    linear-gradient(90deg, rgba(12, 12, 12, 0.36), rgba(12, 12, 12, 0.1)),
    url("/assets/og.svg") center top / cover no-repeat;
  color: #fff;
}

.catalog-hero {
  grid-template-columns: minmax(280px, 520px) minmax(320px, 1fr);
}

.updates-hero {
  grid-template-columns: minmax(0, 1fr) 220px;
  min-height: 390px;
}

.catalog-hero > *,
.updates-hero > * {
  min-width: 0;
}

.hero-breadcrumb {
  position: absolute;
  top: 28px;
  left: clamp(18px, 4vw, 56px);
  z-index: 1;
  display: flex;
  gap: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-transform: lowercase;
}

.hero-breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-breadcrumb span::before {
  content: ">";
  margin-right: 10px;
  color: var(--muted);
}

.hero-panel {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 560px;
}

.hero-panel p:not(.eyebrow),
.updates-hero p:not(.eyebrow) {
  max-width: 660px;
  color: #d9d9d9;
  font-size: 16px;
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-light);
  border-radius: 5px;
  cursor: pointer;
  font-weight: 850;
  line-height: 1;
  padding: 0 18px;
  text-transform: uppercase;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.button.ghost:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.button.ghost.dark {
  border-color: var(--line);
  color: var(--ink);
}

.button.ghost.dark:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(126px, 1fr));
  gap: 16px;
  align-self: end;
  min-width: 0;
}

.series-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-dark);
  color: #fff;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.series-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.series-card.compact {
  grid-template-columns: 1fr;
  background: rgba(18, 18, 18, 0.84);
  backdrop-filter: blur(3px);
}

.cover-link {
  display: block;
  min-width: 0;
  overflow: hidden;
  background: #303030;
}

.cover-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.series-card:hover .cover-link img,
.update-card:hover .update-cover img {
  transform: scale(1.04);
}

.series-card-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.series-title {
  overflow: hidden;
  color: #fff;
  font-weight: 850;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.series-title:hover,
.chapter-link:hover,
.section-heading a:hover,
.update-title:hover,
.update-chapter:hover {
  color: var(--yellow);
}

.meta-line,
.muted {
  color: var(--muted);
  font-size: 13px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  border-radius: 999px;
  background: #303030;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 6px 8px;
}

.chapter-link {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
}

.home-updates,
.content-grid,
.page-shell,
.detail-page {
  padding: 30px clamp(18px, 4vw, 56px) 56px;
}

.home-updates {
  background: #0f0f0f;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  background: #101010;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  color: #fff;
}

.section-heading a,
.section-heading span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.section-heading.tight {
  margin-bottom: 10px;
}

.catalog-import-section {
  margin: 30px 0;
}

.catalog-import-note {
  margin: -12px 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.theme-hybrid .hy-catalog-imports {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(13, 18, 28, 0.72);
}

.theme-hybrid .hy-catalog-imports .section-heading h2 {
  color: #f3f5f8;
}

/* Compact imported-title cards: intentionally separate from the full catalog card. */
.hy-import-section {
  padding-top: 48px;
}

.hy-import-section .hy-section-head {
  margin-bottom: 16px;
}

.hy-import-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 12px;
}

.hy-import-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  min-height: 132px;
  overflow: hidden;
  border: 1px solid var(--hy-line);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(19, 26, 36, 0.96), rgba(11, 15, 22, 0.96));
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hy-import-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 70, 85, 0.55);
  background: linear-gradient(135deg, rgba(27, 35, 47, 0.98), rgba(13, 17, 24, 0.98));
}

.hy-import-cover {
  position: relative;
  display: block;
  min-height: 132px;
  overflow: hidden;
  background: var(--hy-surface);
}

.hy-import-cover::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(3, 5, 9, 0.84));
}

.hy-import-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.hy-import-card:hover .hy-import-cover img {
  transform: scale(1.05);
}

.hy-import-cover span {
  position: absolute;
  z-index: 1;
  bottom: 8px;
  left: 8px;
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.hy-import-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 14px 14px 13px;
}

.hy-import-title {
  display: -webkit-box;
  overflow: hidden;
  color: #f6f7fa;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.2px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hy-import-title:hover,
.hy-import-chapter:hover {
  color: var(--hy-accent);
}

.hy-import-copy p {
  overflow: hidden;
  margin: 5px 0 0;
  color: #8792a2;
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hy-import-meta {
  display: flex;
  gap: 8px;
  margin-top: 9px;
  color: #9fa9b6;
  font-size: 9px;
  font-weight: 700;
}

.hy-import-meta span + span::before {
  content: "•";
  margin-right: 8px;
  color: #4e5967;
}

.hy-import-chapter {
  overflow: hidden;
  margin-top: 9px;
  color: #f5c447;
  font-size: 10px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .hy-import-section {
    padding-top: 38px;
  }

  .hy-import-grid {
    grid-template-columns: 1fr;
  }

  .hy-import-card,
  .hy-import-cover {
    min-height: 118px;
  }

  .hy-import-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }
}

.catalog-page-head,
.catalog-content-band {
  width: var(--hy-shell);
  margin-right: auto;
  margin-left: auto;
}

.catalog-page-head {
  padding: clamp(36px, 4vw, 60px) 0 24px;
}

.catalog-page-head .eyebrow {
  margin: 0 0 10px;
}

.catalog-page-head h1 {
  max-width: 1100px;
  margin: 0;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.06;
  letter-spacing: -1.8px;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.catalog-page-head > p:last-child {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--hy-muted);
  font-size: 14px;
  line-height: 1.6;
}

.catalog-content-band {
  padding: 0 0 clamp(52px, 7vw, 90px);
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.catalog-series-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.catalog-series-grid.is-single {
  grid-template-columns: minmax(0, 640px);
}

.series-grid.wide {
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}

.result-range {
  margin: -6px 0 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.pager a,
.pager span {
  display: grid;
  min-width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-size: 13px;
  font-weight: 900;
  padding: 0 10px;
}

.pager a.active,
.pager a:hover {
  background: var(--accent);
  color: #fff;
}

.admin-content .result-range {
  color: var(--muted-dark);
}

.admin-content .pager a,
.admin-content .pager span {
  border-color: var(--line-light);
  background: #fff;
  color: var(--ink);
}

.admin-content .pager a.active,
.admin-content .pager a:hover {
  background: var(--accent);
  color: #fff;
}

.mp-updates {
  min-height: calc(100vh - 88px);
  background: #191919;
}

.mp-bg {
  min-height: calc(100vh - 88px);
  background-image: url("/assets/og.svg");
  background-repeat: no-repeat;
  background-position: center -88px;
  background-size: 100% auto;
  padding: 0 clamp(24px, 6vw, 122px) 56px;
}

.mp-bg .hero-breadcrumb {
  position: static;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 1704px;
  margin: 0 0 48px;
  padding-top: 30px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: lowercase;
}

.mp-bg .hero-breadcrumb a {
  color: #fff;
  text-decoration: underline;
}

.mp-bg .hero-breadcrumb span::before {
  content: ">";
  margin-right: 12px;
  color: rgba(255, 255, 255, 0.76);
}

.mp-flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  max-width: 1704px;
  margin: 0;
  padding-top: 0;
}

.updates-main {
  width: calc(100% - 360px);
  min-width: 0;
}

.updates-sub {
  width: 320px;
  flex: 0 0 320px;
}

.mp-daily-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 40%) minmax(360px, 60%);
  min-height: clamp(330px, 23vw, 400px);
  overflow: hidden;
  border-radius: 24px;
  background: rgba(12, 12, 12, 0.8);
}

.mp-daily-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  pointer-events: none;
  z-index: 2;
}

.daily-feature-image {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  overflow: hidden;
}

.daily-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}

.daily-feature-copy {
  position: relative;
  z-index: 3;
  grid-column: 1 / 3;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(44%, 560px);
  padding: 46px 40px;
  background: linear-gradient(90deg, rgba(12, 12, 12, 0.92), rgba(12, 12, 12, 0.72) 68%, transparent);
}

.daily-badge {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 24px 0 8px 0;
  background: #ff4747;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  padding: 10px 18px;
}

.daily-badge::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border: 2px solid currentColor;
  transform: rotate(45deg);
}

.language-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  display: grid;
  min-width: 180px;
  overflow: hidden;
  border: 1px solid #4a4a4a;
  border-radius: 4px;
  background: #202020;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.language-menu:hover .language-options,
.language-menu:focus-within .language-options {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.language-options a {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 12px 14px;
}

.language-options a:hover {
  background: #303030;
}

body.locale-ja {
  font-family: Inter, "Noto Sans JP", "Yu Gothic UI", "Hiragino Kaku Gothic ProN", sans-serif;
}

.theme-hybrid .language-switch {
  border-color: #273446;
  border-radius: 9px;
  background: #111a28;
}

.theme-hybrid .language-options {
  border-color: #273446;
  border-radius: 9px;
  background: #111a28;
}

.theme-hybrid .language-options a:hover,
.theme-hybrid .language-options a.active {
  background: #1b2a40;
}

.daily-feature-copy h1,
.daily-feature-copy h2 {
  margin: 18px 0 8px;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.08;
}

.daily-feature-copy p {
  margin: 0 0 24px;
  color: #b6b6b6;
  font-size: 20px;
  font-weight: 600;
}

.daily-feature-copy a {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.sns-panel {
  display: flex;
  width: 320px;
  min-height: 118px;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 34px;
  border-radius: 8px;
  background: rgba(12, 12, 12, 0.6);
  padding: 16px 0;
  text-align: center;
}

.sns-panel h2,
.hottest-heading h2 {
  font-size: 16px;
  font-weight: 800;
}

.sns-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.sns-icons a {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #191919;
  font-size: 10px;
  font-weight: 900;
}

.sns-icons img {
  max-width: 19px;
  max-height: 19px;
}

.sns-icons span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.sns-icons .sns-instagram {
  background: radial-gradient(circle at 30% 110%, #feda75 0 22%, #fa7e1e 34%, #d62976 52%, #962fbf 70%, #4f5bd5 100%);
  color: #fff;
}

.sns-icons a:nth-child(1)::before {
  content: "X";
}

.sns-icons a:nth-child(2)::before {
  content: "IG";
}

.sns-icons a:nth-child(3)::before {
  content: "YT";
}

.sns-icons a:nth-child(4)::before {
  content: "DC";
}

.sns-icons a:nth-child(5)::before {
  content: "f";
  font-size: 16px;
}

.sns-icons a:nth-child(4) {
  background: #5865f2;
  color: #fff;
}

.sns-icons a:nth-child(5) {
  background: #1877f2;
  color: #fff;
}

.hottest-panel {
  padding-top: 54px;
}

.updates-sub .sns-panel + .hottest-panel {
  padding-top: clamp(206px, calc(23vw - 124px), 276px);
}

.hottest-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.hottest-heading h2 {
  font-size: 28px;
}

.hottest-heading a {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.hottest-heading a::after {
  content: ">";
  margin-left: 8px;
  font-size: 18px;
}

.hot-list {
  display: grid;
  gap: 12px;
}

.hot-row {
  display: grid;
  grid-template-columns: 60px 24px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 12px;
  align-items: center;
}

.hot-row img {
  grid-row: 1 / 4;
  width: 60px;
  height: 90px;
  border-radius: 4px;
  object-fit: cover;
}

.hot-row span {
  grid-row: 1 / 4;
  color: #b6b6b6;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
}

.hot-row strong,
.hot-row em,
.hot-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hot-row strong {
  font-size: 16px;
  line-height: 1.2;
}

.hot-row em {
  color: #979797;
  font-style: normal;
  font-size: 13px;
}

.hot-row small {
  color: #979797;
  font-size: 12px;
}

.hot-row small::before {
  content: "";
}

.view-all-bottom {
  display: block;
  margin-top: 26px;
  border: 1px solid #fff;
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05rem;
  padding: 15px;
  text-align: center;
  text-transform: uppercase;
}

.view-all-bottom::after {
  content: ">";
  margin-left: 10px;
  font-size: 16px;
}

.updates-tabs {
  position: sticky;
  top: 88px;
  z-index: 30;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  border-top: 1px solid #2b2b2b;
  border-bottom: 1px solid #343434;
  background: #1f1f1f;
}

.updates-tabs a {
  min-width: 180px;
  border-bottom: 2px solid transparent;
  color: rgba(255, 255, 255, 0.66);
  font-weight: 850;
  padding: 17px 24px 15px;
  text-align: center;
  white-space: nowrap;
}

.updates-tabs a.active,
.updates-tabs a:hover {
  border-bottom-color: #fff;
  color: #fff;
}

.updates-hero-count {
  align-self: end;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.34);
  padding: 22px;
  text-align: center;
}

.updates-hero-count strong {
  display: block;
  font-size: 42px;
  line-height: 1;
}

.updates-hero-count span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.updates-content {
  display: grid;
  gap: 30px;
  margin-top: 34px;
}

.mp-latest-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.mp-daily-feature + .mp-latest-strip {
  margin-top: 28px;
}

.mp-title-card {
  min-width: 0;
  color: #fff;
}

.mp-title-cover {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  background: #262626;
}

.mp-title-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.mp-title-card:hover .mp-title-cover img,
.mp-title-card:focus-within .mp-title-cover img {
  transform: scale(1.03);
}

.mp-card-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  border-radius: 6px 0 5px 0;
  background: #ff4747;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  padding: 7px 10px;
  white-space: nowrap;
}

.mp-card-badge::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.mp-hover-panel {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 34px 12px 12px;
  background: rgba(255, 255, 255, 0.88);
  color: #191919;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.mp-title-card:hover .mp-hover-panel,
.mp-title-card:focus-within .mp-hover-panel {
  opacity: 1;
  transform: translateY(0);
}

.mp-hover-panel strong,
.mp-hover-panel em,
.mp-hover-panel span,
.mp-hover-panel small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-hover-panel strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 20px;
  line-height: 1.12;
}

.mp-hover-panel em {
  color: #6e6e6e;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.mp-hover-panel b {
  width: max-content;
  margin-top: 14px;
  background: #191919;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  padding: 4px 7px;
}

.mp-hover-panel span {
  color: #595959;
  font-size: 16px;
  white-space: nowrap;
}

.mp-hover-panel small {
  color: #595959;
  font-size: 13px;
  white-space: nowrap;
}

.mp-card-title {
  display: block;
  overflow: hidden;
  margin-top: 10px;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.16;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-card-chapter {
  display: inline-block;
  margin-top: 6px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.mp-card-views {
  margin-left: 8px;
  color: #a8a8a8;
  font-size: 15px;
  font-weight: 700;
}

.mp-card-time {
  display: block;
  margin-top: 5px;
  color: #8e98a3;
  font-size: 11px;
  font-weight: 700;
}

.mp-banner-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.mp-promo-banner {
  position: relative;
  display: grid;
  min-height: 150px;
  overflow: hidden;
  align-content: end;
  border-radius: 6px;
  background: #111;
  padding: 18px 24px;
}

.mp-promo-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.mp-promo-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.12));
}

.mp-promo-banner span,
.mp-promo-banner strong,
.mp-promo-banner small {
  position: relative;
  z-index: 1;
}

.mp-promo-banner span {
  position: absolute;
  top: 8px;
  left: 10px;
  border-radius: 2px;
  background: #ce1722;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  padding: 5px 10px;
}

.mp-promo-banner strong {
  overflow: hidden;
  max-width: 60%;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-promo-banner small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  font-weight: 700;
}

.mp-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px 16px;
}

.mp-grid-section .update-day-heading {
  display: none;
}

.mp-static-page {
  min-height: calc(100vh - 88px);
  background: #191919;
  color: #fff;
  padding: 28px clamp(18px, 4vw, 70px) 70px;
}

.mp-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1440px;
  margin: 0 auto 34px;
}

.mp-page-heading h1 {
  display: inline-block;
  margin: 0 24px 0 0;
  font-size: 28px;
  line-height: 1;
}

.mp-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.mp-breadcrumb a {
  text-decoration: underline;
}

.mp-breadcrumb span::before {
  content: ">";
  margin-right: 12px;
  color: #9c9c9c;
}

.mp-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: none;
  margin: 0 calc(clamp(18px, 4vw, 70px) * -1) 40px;
  border-bottom: 1px solid #3a3a3a;
}

.mp-tabs a {
  min-width: 160px;
  border-bottom: 2px solid transparent;
  color: #a8a8a8;
  font-size: 18px;
  font-weight: 900;
  padding: 15px 22px 17px;
  text-align: center;
}

.mp-tabs a.active {
  border-bottom-color: #fff;
  color: #fff;
}

.featured-banner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1144px;
  margin: 0 auto 18px;
}

.feature-hero-banner,
.feature-archive-banner {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: #111;
}

.feature-hero-banner {
  aspect-ratio: 2 / 1;
}

.feature-hero-banner:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.feature-hero-banner img,
.feature-archive-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-hero-banner::after,
.feature-archive-banner::after {
  display: none;
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), transparent 60%);
}

.feature-hero-banner strong,
.feature-hero-banner span,
.feature-archive-banner strong,
.feature-archive-banner span {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-hero-banner strong {
  bottom: 42px;
  font-size: 25px;
  font-weight: 900;
}

.feature-hero-banner span {
  bottom: 16px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.feature-archive-stack {
  display: grid;
  gap: 10px;
  max-width: 572px;
  margin: 0 auto 24px;
}

.feature-archive-banner {
  aspect-ratio: 143 / 45;
}

.feature-archive-banner span {
  top: 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.feature-archive-banner strong {
  bottom: 22px;
  font-size: 34px;
  font-weight: 900;
}

.feature-rails {
  display: grid;
  gap: 28px;
  max-width: 1144px;
  margin: 36px auto 0;
}

.feature-rail {
  min-width: 0;
}

.feature-rail h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.feature-rail-row {
  display: grid;
  grid-auto-columns: 120px;
  grid-auto-flow: column;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.feature-rail-row::-webkit-scrollbar {
  display: none;
}

.feature-rail .mp-list-card {
  width: 120px;
}

.feature-rail .mp-list-cover {
  border-radius: 0;
}

.feature-rail .mp-list-title,
.feature-rail .mp-list-card p,
.feature-rail .mp-lang-tags {
  display: none;
}

.mp-ranking-grid,
.mp-list-grid {
  display: grid;
  max-width: 1290px;
  margin: 0 auto;
}

.mp-ranking-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 86px 16px;
}

.mp-ranking-card,
.mp-list-card {
  min-width: 0;
  color: #fff;
}

.mp-ranking-cover,
.mp-list-cover {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: #2a2a2a;
  aspect-ratio: 2 / 3;
}

.mp-ranking-cover {
  aspect-ratio: 1;
}

.mp-ranking-cover img,
.mp-list-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-ranking-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px;
  margin-top: 12px;
}

.mp-ranking-meta strong {
  font-size: 34px;
  line-height: 1;
}

.mp-ranking-meta small {
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.mp-ranking-meta small::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 14px;
  margin-right: 4px;
  border-radius: 8px 8px 8px 0;
  background: #ff3f3f;
}

.mp-ranking-title,
.mp-list-title {
  display: block;
  overflow: hidden;
  margin-top: 8px;
  color: #fff;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-ranking-title {
  font-size: 20px;
}

.mp-ranking-card p,
.mp-list-card p {
  overflow: hidden;
  margin: 4px 0 7px;
  color: #cfcfcf;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  text-overflow: ellipsis;
}

.mp-lang-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.mp-lang-tags span {
  border-radius: 2px;
  background: #efefef;
  color: #202020;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  padding: 2px 3px;
}

.mp-list-controls {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  max-width: 1440px;
  margin: -26px auto 28px;
}

.mp-list-controls button {
  min-width: 94px;
  border: 1px solid #616161;
  border-radius: 4px;
  background: #202020;
  color: #fff;
  font-weight: 900;
  padding: 10px 14px;
}

.mp-list-grid {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 28px 16px;
}

.mp-list-title {
  font-size: 16px;
}

.favorite-page {
  display: flex;
  flex-direction: column;
}

.favorite-empty {
  display: grid;
  min-height: 48vh;
  place-content: center;
  gap: 54px;
  text-align: center;
}

.favorite-empty h2 {
  color: #828282;
  font-size: 38px;
  letter-spacing: 0.08em;
}

.favorite-empty p {
  color: #fff;
  font-size: 26px;
  letter-spacing: 0.08em;
}

.favorite-empty span {
  display: inline-block;
  margin: 0 18px;
  border: 1px solid #fff;
  border-radius: 4px;
  padding: 12px 28px;
  font-weight: 900;
}

.language-panel {
  display: grid;
  max-width: 520px;
  margin: 0 auto;
  border: 1px solid #3f3f3f;
  border-radius: 6px;
  overflow: hidden;
}

.language-panel p {
  margin: 0;
  border-bottom: 1px solid #343434;
  color: #b6b6b6;
  font-size: 13px;
  line-height: 1.6;
  padding: 18px 20px;
}

.language-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #343434;
  color: #fff;
  font-weight: 900;
  padding: 18px 20px;
}

.language-panel a span {
  color: #c8a34b;
  font-size: 11px;
}

.language-panel a.active,
.language-panel a:hover {
  background: #303030;
}

.creator-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1120px;
  margin: 0 auto;
}

.creator-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 14px;
  min-width: 0;
  border-bottom: 1px solid #333;
  color: #fff;
  padding: 12px 0;
}

.creator-row img {
  width: 72px;
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  object-fit: cover;
}

.creator-row span {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.creator-row strong,
.creator-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-row strong {
  font-size: 17px;
  font-weight: 900;
}

.creator-row small {
  color: #bdbdbd;
  font-size: 13px;
  font-weight: 800;
}

.mp-about-page {
  min-height: 100vh;
  overflow: hidden;
  background: #f8f1dc;
  color: #202020;
}

.about-hero {
  position: relative;
  display: flex;
  min-height: 720px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #fff7dd 0%, #ffe2a6 100%);
  padding: 74px 24px 120px;
  text-align: center;
}

.about-hero-cuts {
  position: absolute;
  inset: auto -70px 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  align-items: end;
  gap: 0;
  pointer-events: none;
}

.about-hero-cuts img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  object-position: bottom center;
}

.about-title-lockup {
  position: relative;
  z-index: 1;
  width: min(560px, 84vw);
  min-height: 520px;
  margin-top: -120px;
}

.about-logo {
  position: absolute;
  top: 116px;
  left: 50%;
  width: min(360px, 72vw);
  transform: translateX(-50%);
}

.about-title-what,
.about-title-question {
  position: absolute;
  width: min(172px, 34vw);
}

.about-title-what {
  top: 0;
  left: 18%;
}

.about-title-question {
  top: 220px;
  right: 0;
}

.about-title-lockup h1 {
  position: absolute;
  top: 410px;
  left: 0;
  right: 0;
  color: #202020;
  font-size: clamp(24px, 4vw, 46px);
  font-weight: 900;
  line-height: 1.05;
}

.about-copy {
  max-width: 920px;
  margin: 0 auto;
  padding: 70px 24px 100px;
  text-align: center;
}

.about-copy h2 {
  margin: 54px 0 16px;
  color: #d30d18;
  font-size: 38px;
  font-weight: 900;
}

.about-copy p {
  color: #202020;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.7;
}

.about-story-cuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 42px auto;
}

.about-story-cuts img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
}

.about-service-banner {
  width: min(520px, 100%);
  margin: 34px auto 0;
}

.update-day {
  display: grid;
  gap: 14px;
}

.update-day-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid #343434;
  padding-bottom: 10px;
}

.update-day-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.compact-list {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.update-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  color: #fff;
}

.update-card:hover .update-title {
  color: #d7d7d7;
}

.update-cover {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 2 / 3;
  background: #303030;
}

.update-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  border-radius: 8px 0;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 7px 10px;
}

.update-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.update-body {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 6px;
  padding-top: 12px;
}

.update-title {
  overflow: hidden;
  color: #fff;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-chapter {
  overflow: hidden;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  color: #cfcfcf;
  font-size: 13px;
  line-height: 1.45;
}

.update-meta {
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.read-pill {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--yellow);
  border-radius: 2px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  padding: 9px 12px;
  text-align: center;
  text-transform: uppercase;
}

.read-pill:hover {
  background: rgba(255, 214, 0, 0.08);
}

.chapter-list,
.ranking-list {
  display: grid;
  gap: 8px;
}

.chapter-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #191919;
  color: #fff;
  padding: 8px;
}

.chapter-row:hover {
  border-color: var(--accent);
}

.chapter-row img {
  width: 48px;
  height: 64px;
  border-radius: 5px;
  object-fit: cover;
}

.chapter-main {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.chapter-main strong,
.chapter-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chapter-main span,
.chapter-date {
  color: var(--muted);
  font-size: 13px;
}

.rank-row {
  display: grid;
  grid-template-columns: 34px 48px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #191919;
  color: #fff;
  padding: 9px;
}

.rank-row:hover {
  border-color: var(--yellow);
}

.rank-row span {
  color: var(--yellow);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  width: 48px;
  height: 64px;
  border-radius: 5px;
  object-fit: cover;
}

.page-shell {
  min-height: 70vh;
  background: #0f0f0f;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.genre-tile {
  display: grid;
  gap: 6px;
  min-height: 96px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #191919;
  color: #fff;
  padding: 18px;
}

.genre-tile:hover {
  border-color: var(--yellow);
}

.genre-tile span {
  color: var(--muted);
}

.detail-page {
  min-height: 70vh;
  background: #0f0f0f;
}

.detail-hero {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
}

.detail-cover {
  width: 260px;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.detail-info {
  min-width: 0;
  border-top: 4px solid var(--accent);
  border-radius: 0 0 8px 8px;
  background: #191919;
  color: #fff;
  padding: 24px;
}

.detail-info p {
  color: #d6d6d6;
  line-height: 1.7;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.detail-stats div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.detail-stats dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-stats dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.chapter-panel {
  max-width: 980px;
}

.chapter-list.full .chapter-row {
  grid-template-columns: 54px 1fr 120px;
}

.reader-page {
  background: #0d0f14;
  min-height: calc(100vh - 88px);
}

.reader-toolbar {
  position: sticky;
  top: 88px;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid #252a34;
  background: rgba(13, 15, 20, 0.94);
  color: #fff;
  padding: 0 clamp(12px, 4vw, 32px);
}

.reader-toolbar strong {
  overflow: hidden;
  max-width: 42vw;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reader-actions {
  justify-content: end;
  gap: 10px;
}

.reader-actions a,
.reader-actions span {
  border: 1px solid #343842;
  border-radius: 7px;
  color: #fff;
  padding: 8px 10px;
}

.reader-actions span {
  color: #697080;
}

.reader-stack {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px 10px 44px;
}

.reader-stack img {
  width: min(100%, 900px);
  border-radius: 2px;
  background: #fff;
}

.empty-state,
.admin-auth {
  display: grid;
  min-height: 65vh;
  place-items: center;
  padding: 32px 16px;
  background: #0f0f0f;
  text-align: center;
}

.auth-box {
  display: grid;
  width: min(100%, 420px);
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--ink);
  padding: 24px;
  text-align: left;
}

.auth-logo {
  width: 140px;
  margin: 0 auto 4px;
}

label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd6df;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: 0;
  padding: 11px 12px;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(220, 9, 20, 0.12);
}

.form-error {
  border-radius: 8px;
  background: #ffe8ea;
  color: #a60f1b;
  padding: 10px 12px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
  background: #f4f5f7;
  color: var(--ink);
}

.admin-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
  border-right: 1px solid var(--line-light);
  background: #fff;
  padding: 22px;
}

.admin-sidebar strong {
  margin-bottom: 14px;
}

.admin-sidebar a,
.admin-sidebar button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #344054;
  cursor: pointer;
  padding: 10px 12px;
  text-align: left;
}

.admin-sidebar a:hover,
.admin-sidebar button:hover {
  background: #f1f3f7;
}

.admin-content {
  min-width: 0;
  padding: 28px;
}

.admin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-heading h1,
.admin-table-wrap h2 {
  color: var(--ink);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat-grid div {
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.stat-grid span {
  color: var(--muted-dark);
  font-size: 13px;
}

.stat-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 26px;
}

.admin-ops-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: #fff;
  margin-bottom: 20px;
  padding: 16px;
}

.admin-ops-panel h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 20px;
}

.admin-ops-panel p {
  max-width: 780px;
  margin: 0 0 8px;
  color: #475467;
  line-height: 1.45;
}

.admin-ops-panel small {
  color: var(--muted-dark);
}

.admin-ops-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-cache-panel {
  overflow: hidden;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 20px;
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.06);
}

.admin-cache-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  background: linear-gradient(135deg, #111827, #27364b);
  color: #fff;
}

.admin-cache-hero h2 {
  margin: 3px 0 8px;
  color: #fff;
  font-size: 24px;
}

.admin-cache-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.admin-cache-meter {
  height: 8px;
  background: #e7ecf4;
}

.admin-cache-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #18a058, #ffd23f, #ff4747);
}

.cache-fill-0 { width: 0; }
.cache-fill-1 { width: 10%; }
.cache-fill-2 { width: 20%; }
.cache-fill-3 { width: 30%; }
.cache-fill-4 { width: 40%; }
.cache-fill-5 { width: 50%; }
.cache-fill-6 { width: 60%; }
.cache-fill-7 { width: 70%; }
.cache-fill-8 { width: 80%; }
.cache-fill-9 { width: 90%; }
.cache-fill-10 { width: 100%; }

.admin-cache-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid #edf0f5;
}

.admin-cache-grid div {
  display: grid;
  gap: 5px;
  border-right: 1px solid #edf0f5;
  padding: 16px 18px;
}

.admin-cache-grid div:last-child {
  border-right: 0;
}

.admin-cache-grid span,
.admin-cache-grid small {
  color: var(--muted-dark);
  font-size: 12px;
  font-weight: 800;
}

.admin-cache-grid strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.15;
}

.admin-cache-checks {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 18px 18px;
}

.admin-cache-checks span {
  border: 1px solid #d8eadf;
  border-radius: 999px;
  background: #f0fbf4;
  color: #207043;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
}

.admin-cache-notes {
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.admin-cache-notes h2 {
  margin: 0 0 14px;
  color: var(--ink);
}

.admin-cache-notes div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px 14px;
}

.admin-cache-notes span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  font-weight: 900;
}

.admin-cache-notes p {
  margin: 6px 0 0;
  color: #475467;
  line-height: 1.45;
}

.seo-audit-panel {
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: #fff;
  margin-bottom: 20px;
  padding: 18px;
}

.seo-audit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.seo-audit-head h2 {
  margin: 3px 0 0;
  color: var(--ink);
}

.seo-audit-score,
.seo-audit-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.seo-audit-score span {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 11px;
}

.seo-audit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.seo-audit-list article {
  display: grid;
  gap: 5px;
  border: 1px solid #e5eaf2;
  border-left-width: 4px;
  border-radius: 8px;
  padding: 12px;
}

.seo-audit-list strong {
  color: var(--ink);
}

.seo-audit-list p {
  margin: 0;
  color: #475467;
  line-height: 1.4;
}

.seo-audit-list a {
  width: max-content;
  color: #1a56db;
  font-weight: 900;
}

.seo-audit-more {
  margin: 12px 0 0;
  color: var(--muted-dark);
  font-size: 13px;
  font-weight: 800;
}

.seo-audit-panel .is-error,
.seo-audit-list .is-error {
  border-color: #f4b5b8;
  background: #fff5f5;
  color: #b42318;
}

.seo-audit-panel .is-warn,
.seo-audit-list .is-warn {
  border-color: #f6d18b;
  background: #fffbeb;
  color: #925400;
}

.seo-audit-panel .is-ok,
.seo-audit-list .is-ok {
  border-color: #a9dec0;
  background: #f0fbf4;
  color: #207043;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: #fff;
  margin-top: 18px;
  padding: 16px;
}

.admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line-light);
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted-dark);
  font-size: 12px;
  text-transform: uppercase;
}

.admin-table td span {
  display: block;
  color: var(--muted-dark);
  font-size: 13px;
}

.status-pill {
  display: inline-flex;
  width: max-content;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 9px;
}

.status-pill.is-live {
  background: #ecfdf3;
  color: #027a48;
}

.status-pill.is-hidden {
  background: #fff1f3;
  color: #b42318;
}

.table-actions {
  gap: 8px;
  flex-wrap: wrap;
}

.table-actions a,
.table-actions button,
.table-actions .muted {
  border: 1px solid var(--line-light);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  padding: 7px 9px;
}

.table-actions .muted {
  cursor: default;
  color: var(--muted-dark);
}

.admin-search-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.admin-search-panel form,
.latest-updated-panel {
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.admin-search-panel form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.latest-updated-panel {
  margin-bottom: 18px;
}

.latest-updated-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.latest-updated-list a {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  padding: 8px;
}

.latest-updated-list img {
  width: 52px;
  height: 68px;
  border-radius: 6px;
  object-fit: cover;
}

.latest-updated-list strong,
.latest-updated-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.latest-updated-list strong {
  color: var(--ink);
}

.latest-updated-list small {
  color: var(--muted-dark);
  font-size: 12px;
}

.latest-updated-list .status-pill {
  grid-column: 2;
}

.admin-form {
  display: grid;
  gap: 16px;
  max-width: 980px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.form-grid,
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

fieldset {
  border: 1px solid var(--line-light);
  border-radius: 8px;
  margin: 0;
  padding: 14px;
}

legend {
  color: var(--muted-dark);
  font-weight: 900;
  padding: 0 6px;
}

.checkline,
.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkline input,
.checkbox-grid input {
  width: auto;
}

.seo-preview {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
}

.seo-preview span {
  color: var(--muted-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.seo-preview strong {
  color: #1a0dab;
  font-size: 18px;
  line-height: 1.25;
}

.seo-preview em {
  color: #006621;
  font-style: normal;
  font-size: 13px;
}

.seo-preview p {
  margin: 0;
  color: #545454;
  line-height: 1.45;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 34px 16px 46px;
  background: #fff;
  color: #202020;
  text-align: center;
}

.footer-app {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-app strong {
  width: 100%;
  color: #202020;
  font-size: 16px;
  font-weight: 900;
}

.footer-app-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
}

.footer-app a img {
  display: block;
  width: 120px;
  max-height: 40px;
  object-fit: contain;
}

.footer-app a:last-child img {
  width: 134px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  width: min(568px, 100%);
  border-top: 1px solid #dedede;
  border-left: 1px solid #dedede;
}

.footer-links a {
  display: grid;
  min-height: 44px;
  place-items: center;
  border-right: 1px solid #dedede;
  border-bottom: 1px solid #dedede;
  color: #202020;
  font-size: 14px;
  font-weight: 800;
}

.footer-links a:hover {
  background: #f4f4f4;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.footer-social a {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
}

.footer-social img {
  max-width: 20px;
  max-height: 20px;
}

.footer-social .sns-instagram {
  border-radius: 50%;
  background: radial-gradient(circle at 30% 110%, #feda75 0 22%, #fa7e1e 34%, #d62976 52%, #962fbf 70%, #4f5bd5 100%);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
}

.footer-abj {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  max-width: 568px;
  color: #555;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
}

.footer-abj img {
  width: 60px;
}

.site-footer small {
  color: #5f5f5f;
  font-size: 12px;
}

@media (max-width: 1180px) {
  .site-header {
    flex-wrap: wrap;
  }

  .search-form {
    order: 5;
    width: 100%;
  }

  .mp-flex {
    flex-direction: column;
  }

  .updates-main {
    width: 100%;
  }

  .updates-sub {
    display: none;
  }

  .mp-latest-strip,
  .mp-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .catalog-hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero-strip {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    min-height: 78px;
  }

  .main-nav {
    order: 3;
    flex: 0 0 100%;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 2px;
    font-size: 13px;
  }

  .language-switch {
    margin-left: auto;
  }

  .language-menu {
    margin-left: auto;
  }

  .mp-bg {
    background-size: 180% auto;
    background-position: center -73px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .mp-bg .hero-breadcrumb {
    margin-bottom: 24px;
  }

  .mp-daily-feature {
    grid-template-columns: 1fr;
    min-height: 300px;
  }

  .daily-feature-image {
    grid-column: 1;
  }

  .daily-feature-copy {
    width: 100%;
    padding: 52px 24px 28px;
  }

  .catalog-hero,
  .updates-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 88px;
  }

  .hero-strip {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .updates-tabs {
    top: 154px;
    justify-content: flex-start;
  }

  .updates-tabs a {
    min-width: 150px;
  }

  .update-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mp-latest-strip,
  .mp-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .featured-banner-grid,
  .mp-ranking-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-title-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .creator-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mp-list-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .mp-banner-row {
    grid-template-columns: 1fr;
  }

  .detail-hero,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    width: min(260px, 100%);
  }

  .detail-stats,
  .stat-grid,
  .form-grid,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .admin-ops-panel {
    display: grid;
  }

  .admin-ops-actions {
    justify-content: flex-start;
  }

  .admin-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-heading-actions,
  .admin-cache-hero,
  .seo-audit-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-cache-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-search-panel,
  .admin-search-panel form,
  .latest-updated-list {
    grid-template-columns: 1fr;
  }

  .seo-audit-list {
    grid-template-columns: 1fr;
  }

  .admin-cache-grid div {
    border-bottom: 1px solid #edf0f5;
  }

  .admin-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-self: start;
    border-right: 0;
    border-bottom: 1px solid var(--line-light);
    padding: 14px;
  }

  .admin-sidebar strong,
  .admin-sidebar form {
    grid-column: 1 / -1;
  }

  .admin-sidebar strong {
    margin-bottom: 2px;
  }

  .admin-sidebar a,
  .admin-sidebar button {
    padding: 8px 10px;
  }

  .reader-toolbar {
    top: 154px;
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 10px 14px;
  }

  .reader-toolbar strong {
    max-width: 100%;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: 31px;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: 22px;
    overflow-wrap: anywhere;
  }

  .site-header {
    gap: 14px;
    padding: 12px 14px;
  }

  .brand {
    font-size: 15px;
  }

  .brand-logo {
    width: 112px;
    height: auto;
    max-height: 44px;
  }

  .admin-link {
    order: 2;
    justify-self: start;
    max-width: 130px;
    padding: 10px 11px;
  }

  .admin-cache-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    width: 100%;
    gap: 10px;
  }

  .main-nav a {
    flex: 0 0 auto;
    font-size: 12px;
  }

  .mp-latest-strip,
  .mp-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-banner-grid,
  .mp-ranking-grid,
  .mp-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-title-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .creator-directory {
    grid-template-columns: 1fr;
  }

  .about-hero {
    min-height: 600px;
    padding-top: 48px;
  }

  .about-hero-cuts {
    inset: auto -170px 0;
    min-width: 760px;
  }

  .about-title-lockup {
    margin-top: -170px;
  }

  .about-story-cuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mp-page-heading {
    display: grid;
    margin-bottom: 24px;
  }

  .mp-tabs {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .mp-tabs a {
    min-width: 128px;
    font-size: 15px;
  }

  .mp-list-controls {
    margin-top: 0;
  }

  .favorite-empty h2 {
    font-size: 28px;
  }

  .favorite-empty p {
    font-size: 18px;
  }

  .mp-card-title {
    font-size: 15px;
  }

  .mp-card-chapter {
    font-size: 16px;
  }

  .mp-hover-panel {
    padding: 32px 10px 10px;
  }

  .mp-hover-panel strong {
    font-size: 17px;
  }

  .mp-hover-panel em,
  .mp-hover-panel span {
    font-size: 14px;
  }

  .mp-promo-banner {
    min-height: 128px;
  }

  .mp-promo-banner strong {
    max-width: 72%;
    font-size: 28px;
  }

  .search-form {
    width: 100%;
  }

  .mp-bg {
    padding: 20px 12px 48px;
  }

  .mp-daily-feature {
    border-radius: 14px;
  }

  .daily-badge {
    border-radius: 14px 0 8px 0;
    font-size: 13px;
  }

  .daily-feature-copy h1,
  .daily-feature-copy h2 {
    font-size: 28px;
  }

  .daily-feature-copy p {
    font-size: 16px;
  }

  .catalog-hero,
  .updates-hero {
    max-width: 100vw;
    overflow: hidden;
  }

  .updates-hero p:not(.eyebrow) {
    max-width: 34ch;
  }

  .updates-hero h1 {
    max-width: 12ch;
  }

  .updates-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
  }

  .updates-tabs a {
    min-width: 0;
    overflow: hidden;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 14px;
    text-overflow: ellipsis;
  }

  .update-day-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .search-form button {
    min-width: 48px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .home-updates,
  .content-grid,
  .page-shell,
  .detail-page,
  .admin-content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-breadcrumb {
    left: 14px;
  }

  .hero-strip {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .series-card {
    grid-template-columns: 92px 1fr;
  }

  .series-card.compact {
    grid-template-columns: 1fr;
  }

  .update-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
  }

  .chapter-row,
  .chapter-list.full .chapter-row {
    grid-template-columns: 44px 1fr;
  }

  .chapter-date {
    display: none;
  }

  .site-footer,
  .admin-heading {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  .site-header {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    gap: 0;
    min-height: 70px;
    height: 70px;
    padding: 0 16px;
    border-bottom: 0;
  }

  .brand {
    grid-column: 2;
    justify-self: center;
    align-self: center;
  }

  .brand-logo {
    width: 75px;
    height: 40px;
    max-height: 40px;
    object-fit: contain;
  }

  .main-nav,
  .search-form,
  .language-menu {
    display: none;
  }

  .mobile-nav-drawer {
    position: relative;
    z-index: 90;
    display: block;
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    width: 44px;
    height: 44px;
  }

  .mobile-nav-drawer summary {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    cursor: pointer;
    list-style: none;
  }

  .mobile-nav-drawer summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav-drawer summary span,
  .mobile-nav-drawer summary span::before,
  .mobile-nav-drawer summary span::after {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    content: "";
  }

  .mobile-nav-drawer summary span {
    position: relative;
  }

  .mobile-nav-drawer summary span::before,
  .mobile-nav-drawer summary span::after {
    position: absolute;
    left: 0;
  }

  .mobile-nav-drawer summary span::before {
    top: -7px;
  }

  .mobile-nav-drawer summary span::after {
    top: 7px;
  }

  .mobile-nav-panel {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid #2f2f2f;
    border-bottom: 1px solid #2f2f2f;
    background: #191919;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  }

  .mobile-nav-panel a {
    border-right: 1px solid #2d2d2d;
    border-bottom: 1px solid #2d2d2d;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    padding: 16px;
  }

  .mobile-nav-panel a.active {
    background: #252525;
  }

  .mobile-search-link {
    display: grid;
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #fff;
  }

  .mobile-search-link .search-icon {
    width: 18px;
    height: 18px;
  }

  .mp-static-page {
    min-height: calc(100vh - 70px);
    padding: 0 16px 56px;
  }

  .mp-page-heading {
    min-height: 44px;
    margin: 0 0 16px;
    align-items: center;
  }

  .mp-page-heading h1 {
    margin: 0;
    font-size: 20px;
  }

  .mp-breadcrumb {
    display: none;
  }

  .mp-tabs {
    justify-content: center;
    margin: 0 -16px 18px;
    overflow: hidden;
  }

  .mp-tabs a {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 4px 13px;
    font-size: 18px;
  }

  .featured-page {
    padding-top: 5px;
  }

  .featured-page .mp-page-heading {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .featured-banner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 18px;
  }

  .feature-hero-banner:first-child {
    grid-column: 1 / -1;
  }

  .feature-archive-stack {
    gap: 0;
    max-width: none;
    margin-bottom: 18px;
  }

  .feature-archive-banner {
    border-radius: 0;
  }

  .feature-rails {
    gap: 26px;
    margin-top: 24px;
  }

  .feature-rail-row {
    margin-right: -16px;
  }

  .mp-ranking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }

  .mp-ranking-card {
    min-height: 366px;
  }

  .mp-ranking-meta {
    margin-top: 9px;
  }

  .mp-ranking-meta strong {
    font-size: 28px;
  }

  .mp-ranking-title {
    font-size: 17px;
  }

  .mp-ranking-card p {
    font-size: 13px;
  }

  .mp-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }

  .mp-list-controls {
    margin: -4px 0 18px;
  }

  .favorite-empty {
    min-height: 340px;
    gap: 28px;
  }

  .site-footer {
    display: grid;
    align-items: initial;
  }

  .footer-app {
    justify-content: center;
  }

  .about-hero {
    min-height: 982px;
    align-items: flex-start;
    padding: 0;
  }

  .about-hero-cuts {
    inset: 0;
    display: block;
    min-width: 0;
  }

  .about-hero-cuts img {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(607px, 102vw);
    max-height: none;
    transform: translateX(-50%);
  }

  .about-title-lockup {
    width: 100%;
    min-height: 982px;
    margin-top: 0;
  }

  .about-title-what {
    top: 172px;
    left: 27.4vw;
    width: min(234px, 39.1vw);
  }

  .about-logo {
    top: 286px;
    width: min(444px, 74.1vw);
  }

  .about-title-question {
    top: 392px;
    right: 15px;
    width: min(234px, 39.1vw);
  }

  .about-title-lockup h1 {
    top: 780px;
    left: 29px;
    right: 29px;
    font-size: 36px;
    line-height: 1.1;
  }

  .about-copy {
    padding-top: 46px;
  }
}

/* Reader accounts and discussion. */
.community-panel,
.account-page {
  width: min(1180px, calc(100% - 40px));
  margin: 34px auto 58px;
}

.community-panel {
  border: 1px solid #27364b;
  border-radius: 18px;
  background: #101a28;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.18);
  color: #edf4fc;
  padding: clamp(20px, 3vw, 34px);
}

.community-heading,
.comment-login,
.comment-compose > div,
.comment-item header,
.comment-item footer,
.comment-sort,
.account-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.community-kicker {
  color: #9bb0c9;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.3px;
}

.community-heading h2 {
  margin: 5px 0 4px;
  color: #fff;
  font-size: clamp(23px, 3vw, 32px);
}

.community-heading p,
.community-heading span,
.comment-login span,
.comment-item time,
.comment-item footer,
.comment-empty,
.comment-compose small {
  color: #9aacc0;
  font-size: 12px;
}

.community-profile-link {
  border: 1px solid #30445d;
  border-radius: 999px;
  color: #d8e8ff;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
}

.reaction-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 25px 0;
}

.reaction-grid form,
.reaction-grid a { min-width: 0; }

.reaction-grid button,
.reaction-grid a {
  display: grid;
  width: 100%;
  min-height: 91px;
  align-content: center;
  justify-items: center;
  gap: 3px;
  border: 1px solid #2d4058;
  border-radius: 12px;
  background: #142033;
  color: #c6d7e9;
  cursor: pointer;
  font: inherit;
  padding: 10px 6px;
}

.reaction-grid button:hover,
.reaction-grid button.active,
.reaction-grid a:hover {
  border-color: #fb4059;
  background: #2a1f32;
  color: #fff;
}

.reaction-grid i { color: #fb4b61; font-size: 16px; font-style: normal; }
.reaction-grid span { font-size: 11px; font-weight: 800; }
.reaction-grid strong { font-size: 16px; }

.comment-compose,
.comment-login {
  border: 1px solid #2b3d53;
  border-radius: 13px;
  background: #0d1623;
  padding: 16px;
}

.comment-compose { display: grid; gap: 9px; }
.comment-compose label,
.comment-login strong { color: #f4f8fc; font-size: 13px; font-weight: 850; }
.comment-compose textarea {
  min-height: 108px;
  resize: vertical;
  border: 1px solid #344961;
  border-radius: 10px;
  background: #101c2b;
  color: #fff;
  font: inherit;
  line-height: 1.55;
  padding: 12px;
}

.comment-compose textarea:focus { outline: 2px solid #e33d55; outline-offset: 1px; }
.comment-login > div { display: grid; gap: 4px; }
.comment-error { margin: 12px 0 0; color: #ff9baa; font-size: 13px; font-weight: 800; }

.comment-sort { justify-content: flex-start; margin-top: 24px; border-bottom: 1px solid #293c53; padding-bottom: 11px; }
.comment-sort span { color: #91a4b8; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.comment-sort a { color: #adbed0; font-size: 12px; font-weight: 800; }
.comment-sort a.active { color: #fff; }

.comment-list { display: grid; gap: 0; }
.comment-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid #223349;
  padding: 18px 0;
}

.comment-avatar,
.account-avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #fe5367, #7a4edd);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.comment-avatar { width: 40px; height: 40px; }
.comment-item header { align-items: baseline; justify-content: flex-start; flex-wrap: wrap; gap: 6px 10px; }
.comment-item header a { color: #f5f9ff; }
.comment-item header span { margin-left: 5px; color: #91a8be; font-size: 11px; }
.comment-item p { margin: 8px 0 10px; color: #d3deea; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-wrap; }
.comment-item footer { justify-content: flex-start; gap: 15px; }
.comment-empty { margin: 22px 0 5px; }

.account-page { color: #edf4fc; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 850px; margin: 0 auto; }
.account-card,
.profile-comments {
  border: 1px solid #2b3d53;
  border-radius: 16px;
  background: #101a28;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
  padding: clamp(20px, 3vw, 32px);
}

.account-card { display: grid; align-content: start; gap: 13px; }
.account-card h1,
.account-card h2,
.profile-comments h2 { margin: 0; color: #fff; }
.account-card label { display: grid; gap: 6px; color: #b8c8d9; font-size: 12px; font-weight: 800; }
.account-card input { min-height: 42px; border: 1px solid #344961; border-radius: 9px; background: #0d1623; color: #fff; padding: 0 11px; }
.account-card small { color: #8fa5ba; font-size: 11px; line-height: 1.5; }
.account-profile-card { grid-template-columns: 82px minmax(0, 1fr); align-items: center; max-width: 850px; margin: 0 auto; }
.account-profile-card p { margin: 7px 0 0; color: #afc0d1; }
.account-avatar { width: 82px; height: 82px; font-size: 28px; }
.account-actions { justify-content: flex-start; flex-wrap: wrap; margin-top: 17px; }
.account-actions form { margin: 0; }
.profile-comments { max-width: 850px; margin: 18px auto 0; }
.profile-comments article { border-top: 1px solid #293b50; margin-top: 16px; padding-top: 16px; }
.profile-comments article a { color: #f0f6ff; font-weight: 800; }
.profile-comments article time { margin-left: 9px; color: #92a8bd; font-size: 11px; }
.profile-comments article p { margin: 7px 0 0; color: #bed0df; line-height: 1.6; white-space: pre-wrap; }

@media (max-width: 760px) {
  .community-panel,
  .account-page { width: min(100% - 24px, 1180px); margin-top: 22px; }
  .reaction-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reaction-grid button,
  .reaction-grid a { min-height: 78px; }
  .comment-login,
  .comment-compose > div,
  .community-heading { align-items: flex-start; flex-direction: column; }
  .account-grid { grid-template-columns: 1fr; }
  .account-profile-card { grid-template-columns: 1fr; }
}

/* Admin workspace refresh */
.admin-shell {
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
  background: #f5f7fb;
  color: #152033;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  min-height: 620px;
  flex-direction: column;
  gap: 24px;
  border: 0;
  background: #101827;
  color: #d7e0eb;
  padding: 20px 14px 16px;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 7px 8px 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.admin-brand > span:first-child {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff5d70, #d9263f);
  box-shadow: 0 8px 20px rgba(217, 38, 63, 0.28);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: -0.5px;
}

.admin-brand > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-brand small,
.admin-nav-label {
  color: #7f91a7;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
}

.admin-brand strong {
  overflow: hidden;
  margin: 0;
  color: #f9fbff;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-nav {
  display: grid;
  gap: 4px;
}

.admin-nav-label {
  margin: 17px 8px 5px;
  text-transform: uppercase;
}

.admin-nav a,
.admin-site-link,
.admin-sidebar-footer button {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #aebdce;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 0 11px;
  text-align: left;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.admin-nav a i,
.admin-site-link i,
.admin-sidebar-footer button i {
  display: grid;
  width: 18px;
  flex: 0 0 18px;
  place-items: center;
  color: #7f91a7;
  font-size: 15px;
  font-style: normal;
}

.admin-nav a:hover,
.admin-site-link:hover,
.admin-sidebar-footer button:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.admin-nav a.active {
  background: rgba(255, 89, 108, 0.14);
  box-shadow: inset 2px 0 0 #ff5d70;
  color: #fff;
}

.admin-nav a.active i {
  color: #ff6d7e;
}

.admin-sidebar-footer {
  display: grid;
  gap: 5px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar-footer form {
  margin: 0;
}

.admin-sidebar-footer button {
  color: #ffa7b1;
}

.admin-sidebar-footer button i {
  color: #ff8391;
}

.admin-content {
  padding: clamp(22px, 3vw, 42px);
  background: #f5f7fb;
}

.admin-content-inner {
  width: min(100%, 1500px);
  margin: 0 auto;
}

.admin-page-header {
  align-items: flex-end;
  margin-bottom: 26px;
}

.admin-page-header .eyebrow,
.admin-panel-heading > div > span {
  color: #7a8ca3;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.15px;
}

.admin-page-header h1 {
  margin: 5px 0 8px;
  color: #142034;
  font-size: clamp(27px, 3vw, 36px);
  letter-spacing: -1px;
}

.admin-page-header > div > p:last-child {
  margin: 0;
  color: #68798f;
  font-size: 13px;
}

.admin-heading-actions .button,
.admin-table-toolbar .button {
  min-height: 38px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 850;
  padding: 0 13px;
}

.admin-heading-actions .button.primary {
  box-shadow: 0 8px 18px rgba(217, 38, 63, 0.2);
}

.stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-grid .admin-stat-card {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(30, 47, 72, 0.055);
  padding: 17px 17px 15px;
}

.stat-grid .admin-stat-card::after {
  position: absolute;
  right: -22px;
  bottom: -26px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(31, 111, 235, 0.055);
  content: "";
}

.stat-grid .admin-stat-card:nth-child(2)::after { background: rgba(139, 92, 246, 0.065); }
.stat-grid .admin-stat-card:nth-child(3)::after { background: rgba(15, 163, 100, 0.065); }
.stat-grid .admin-stat-card:nth-child(4)::after { background: rgba(255, 159, 67, 0.075); }

.admin-stat-card > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: #eef5ff;
  color: #2872cf;
  font-size: 15px;
}

.admin-stat-card:nth-child(2) > span { background: #f3efff; color: #7f56d9; }
.admin-stat-card:nth-child(3) > span { background: #eaf9f0; color: #178750; }
.admin-stat-card:nth-child(4) > span { background: #fff5e8; color: #bd6b09; }

.admin-stat-card p {
  margin: 11px 0 2px;
  color: #677a92;
  font-size: 12px;
  font-weight: 750;
}

.admin-stat-card strong {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #18253a;
  font-size: 27px;
  letter-spacing: -1px;
}

.admin-stat-card small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 5px;
  color: #8a9aab;
  font-size: 10px;
  font-weight: 750;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.admin-dashboard-main,
.admin-dashboard-side {
  display: grid;
  gap: 18px;
}

.admin-search-card,
.admin-quick-card,
.latest-updated-panel,
.admin-table-wrap,
.admin-fold,
.admin-form,
.admin-cache-notes,
.seo-audit-panel {
  border-color: #e1e7ef;
  border-radius: 15px;
  box-shadow: 0 9px 24px rgba(30, 47, 72, 0.045);
}

.admin-search-card,
.admin-quick-card,
.latest-updated-panel {
  border: 1px solid #e1e7ef;
  background: #fff;
  padding: 17px;
}

.admin-panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-panel-heading h2 {
  margin: 3px 0 0;
  color: #17243a;
  font-size: 17px;
  letter-spacing: -0.25px;
}

.admin-panel-heading > small,
.admin-panel-heading > a {
  color: #778a9f;
  font-size: 10px;
  font-weight: 750;
}

.admin-panel-heading > a:hover { color: #d9263f; }

.admin-search-panel {
  gap: 10px;
  margin: 0;
}

.admin-search-panel form {
  min-width: 0;
  border: 1px solid #e9eef4;
  border-radius: 11px;
  background: #fafcff;
  padding: 11px;
}

.admin-search-panel label {
  color: #53677f;
  font-size: 11px;
  font-weight: 850;
}

.admin-search-panel input {
  margin-top: 5px;
  border-color: #dde6f0;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
}

.admin-search-panel .button {
  min-height: 38px;
  border-radius: 8px;
  font-size: 11px;
}

.admin-chapter-search {
  display: flex;
  align-items: end;
  gap: 10px;
  padding-top: 14px;
}

.admin-chapter-search label {
  display: grid;
  flex: 1 1 360px;
  gap: 6px;
  color: #53677f;
  font-size: 11px;
  font-weight: 850;
}

.admin-chapter-search input {
  min-width: 0;
  min-height: 40px;
  border: 1px solid #dde6f0;
  border-radius: 8px;
  background: #fff;
  color: #233148;
  padding: 0 12px;
}

.admin-chapter-manager-table .admin-chapter-table { min-width: 760px; }
.admin-comment-table { min-width: 900px; }
.admin-comment-body { display: -webkit-box !important; max-width: 330px !important; overflow: hidden; color: #52657c !important; font-size: 11px !important; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 3; white-space: normal !important; }

.admin-table-wrap {
  margin-top: 0;
  border-color: #e1e7ef;
  background: #fff;
  padding: 0;
}

.admin-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 18px 14px;
  border-bottom: 1px solid #edf1f5;
}

.admin-table-toolbar h2 {
  margin: 0;
  color: #19263a;
  font-size: 17px;
}

.admin-table-toolbar .result-range {
  margin: 4px 0 0;
  color: #8191a2;
  font-size: 11px;
}

.admin-table {
  min-width: 800px;
}

.admin-table th,
.admin-table td {
  border-bottom-color: #edf1f5;
  padding: 13px 14px;
}

.admin-table th {
  background: #fafbfc;
  color: #7b8ca0;
  font-size: 10px;
  letter-spacing: 0.55px;
}

.admin-table tbody tr { transition: background 0.15s ease; }
.admin-table tbody tr:hover { background: #fbfcfe; }

.admin-table td > strong {
  display: block;
  max-width: 280px;
  overflow: hidden;
  color: #233148;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table td span,
.admin-table td code {
  max-width: 220px;
  overflow: hidden;
  color: #8190a0;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table td code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.inline-edit-link {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-top: 7px;
  border-radius: 6px;
  background: #f2f4ff;
  color: #5846b7;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  padding: 6px 8px;
}

.inline-edit-link:hover {
  background: #e8ebff;
  color: #42318f;
}

.status-pill {
  font-size: 10px;
  padding: 5px 8px;
}

.table-actions {
  gap: 5px;
  flex-wrap: nowrap;
}

.table-actions form { margin: 0; }

.table-actions a,
.table-actions button,
.table-actions .muted {
  min-height: 30px;
  border-color: #dfe7f0;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 850;
  padding: 0 8px;
}

.table-actions .table-action-view { background: #f7fbff; color: #2570c7; }
.table-actions .table-action-edit { background: #f7f8ff; color: #6653bd; }
.table-actions .table-action-toggle { background: #fffaf0; color: #a96712; }
.table-actions .table-action-danger { border-color: #ffcdd3; background: #fff4f5; color: #c33346; }

.table-actions a:hover,
.table-actions button:hover { filter: brightness(0.97); transform: translateY(-1px); }

.admin-primary-table .pager {
  justify-content: flex-end;
  margin: 0;
  padding: 13px 16px 16px;
}

.admin-fold {
  overflow: hidden;
  border: 1px solid #e1e7ef;
  background: #fff;
}

.admin-fold summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
  padding: 15px 18px;
}

.admin-fold summary::-webkit-details-marker { display: none; }

.admin-fold summary b {
  display: block;
  color: #233148;
  font-size: 13px;
}

.admin-fold summary small {
  display: block;
  margin-top: 3px;
  color: #8292a4;
  font-size: 10px;
}

.admin-fold summary i {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  background: #f2f5f9;
  color: #61748b;
  font-size: 15px;
  font-style: normal;
  transition: transform 0.16s ease;
}

.admin-fold[open] summary {
  border-bottom: 1px solid #edf1f5;
  background: #fbfcfe;
}

.admin-fold[open] summary i { transform: rotate(180deg); }

.admin-fold-body { padding: 14px 16px 16px; }
.admin-fold-body .admin-table-wrap { box-shadow: none; }
.admin-fold-body .admin-cache-panel,
.admin-fold-body .seo-audit-panel { margin: 0 0 14px; }
.admin-fold-body .seo-audit-panel:last-child { margin-bottom: 0; }

.admin-quick-card { padding: 13px; }
.admin-quick-card .admin-panel-heading { margin: 4px 5px 10px; }

.admin-quick-card > a {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  border-radius: 10px;
  color: #304157;
  padding: 10px 8px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.admin-quick-card > a:hover { background: #f6f8fc; transform: translateX(2px); }

.admin-quick-card > a > i {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  background: #eef5ff;
  color: #2e75ce;
  font-size: 14px;
  font-style: normal;
}

.admin-quick-card > a:nth-of-type(2) > i { background: #f3efff; color: #7c5ad1; }
.admin-quick-card > a:nth-of-type(3) > i { background: #fff2f4; color: #d83a50; }
.admin-quick-card > a:nth-of-type(4) > i { background: #fff7e9; color: #b96d15; }

.admin-quick-card b,
.admin-quick-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-quick-card b { color: #304157; font-size: 11px; }
.admin-quick-card small { margin-top: 3px; color: #8392a3; font-size: 9px; }
.admin-quick-card em { color: #98a8ba; font-size: 15px; font-style: normal; }

.latest-updated-panel { margin: 0; }
.latest-updated-list { grid-template-columns: 1fr; gap: 7px; }

.latest-updated-list a {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  border-color: transparent;
  border-radius: 9px;
  background: #fafcff;
  padding: 7px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.latest-updated-list a:hover { background: #f2f6fb; transform: translateX(2px); }
.latest-updated-list img { width: 38px; height: 50px; border-radius: 6px; }
.latest-updated-list strong { color: #34445b; font-size: 10px; }
.latest-updated-list small { font-size: 9px; }
.latest-updated-list .status-pill { display: none; }

.admin-form {
  max-width: 1080px;
  border-color: #e1e7ef;
  padding: 22px;
}

.admin-form fieldset {
  border-color: #e6ebf1;
  border-radius: 11px;
  background: #fafcff;
  padding: 16px;
}

.admin-form legend {
  color: #34445b;
  font-size: 11px;
  font-weight: 900;
  padding: 0 7px;
}

.admin-form label {
  color: #52657c;
  font-size: 11px;
  font-weight: 800;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  margin-top: 5px;
  border-color: #dce5ef;
  border-radius: 8px;
  background: #fff;
  color: #253449;
}

.admin-cache-panel { border-color: #e1e7ef; border-radius: 13px; box-shadow: none; }
.admin-cache-hero { padding: 17px; background: linear-gradient(135deg, #162338, #263b5b); }
.admin-cache-hero h2 { font-size: 19px; }
.admin-cache-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.admin-cache-grid div { padding: 13px; }
.admin-cache-grid strong { font-size: 18px; }
.admin-cache-checks { padding: 12px 13px 14px; }
.admin-cache-checks span { font-size: 10px; padding: 5px 8px; }

@media (max-width: 1180px) {
  .admin-shell { grid-template-columns: 218px minmax(0, 1fr); }
  .admin-dashboard-grid { grid-template-columns: 1fr; }
  .admin-dashboard-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .latest-updated-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-cache-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; min-height: 0; gap: 13px; padding: 14px; }
  .admin-brand { padding: 4px 4px 12px; }
  .admin-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .admin-nav-label { display: none; }
  .admin-nav a { min-height: 38px; padding: 0 8px; font-size: 10px; }
  .admin-sidebar-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 0; padding-top: 12px; }
  .admin-content { padding: 18px 14px 30px; }
  .admin-page-header { align-items: flex-start; flex-direction: column; margin-bottom: 20px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .stat-grid .admin-stat-card { min-height: 118px; padding: 13px; }
  .admin-dashboard-side { grid-template-columns: 1fr; }
  .latest-updated-list { grid-template-columns: 1fr; }
  .admin-search-panel { grid-template-columns: 1fr; }
  .admin-search-panel form { grid-template-columns: 1fr auto; }
  .admin-chapter-search { align-items: stretch; flex-direction: column; }
  .admin-chapter-search .button { justify-content: center; }
  .admin-cache-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .admin-nav { grid-template-columns: 1fr; }
  .admin-sidebar-footer { grid-template-columns: 1fr; }
  .admin-page-header h1 { font-size: 27px; }
  .admin-heading-actions { width: 100%; }
  .admin-heading-actions .button { flex: 1; justify-content: center; }
  .admin-table-toolbar { align-items: flex-start; flex-direction: column; }
  .admin-table-toolbar .button { width: 100%; justify-content: center; }
  .admin-cache-grid { grid-template-columns: 1fr; }
}

/* Cascade lock: keep the hybrid shell above legacy component defaults. */
body {
  background: var(--hy-bg);
}

header.site-header {
  min-height: 76px;
  gap: 28px;
  padding: 12px max(32px, calc((100vw - 1440px) / 2));
  border-bottom-color: var(--hy-line);
  background: rgba(8, 11, 16, 0.94);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
}

.site-header .brand {
  gap: 11px;
  flex: 0 0 auto;
  font-size: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.site-header .main-nav {
  gap: clamp(14px, 1.8vw, 28px);
  font-size: 13px;
  font-weight: 750;
}

.site-header .main-nav a {
  padding: 25px 0;
  color: #b9c1cc;
}

.site-header .search-form {
  width: min(24vw, 300px);
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #121821;
}

footer.site-footer {
  display: grid;
  width: 100%;
  padding: 58px max(32px, calc((100vw - 1440px) / 2)) 30px;
  grid-template-columns: minmax(260px, 0.8fr) minmax(420px, 1fr);
  gap: 50px 90px;
  justify-items: stretch;
  border-top: 1px solid var(--hy-line);
  background: #080b10;
  color: #c6ced8;
  text-align: left;
}

@media (max-width: 1180px) {
  header.site-header {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: 14px;
    padding: 12px 20px;
  }

  .site-header .main-nav {
    display: none;
  }

  .site-header .mobile-nav-drawer {
    display: block;
    order: -1;
  }

  .site-header .search-form {
    display: flex;
    width: min(34vw, 320px);
    justify-self: end;
  }
}

@media (max-width: 860px) {
  header.site-header {
    grid-template-columns: auto 1fr auto;
  }

  .site-header .brand {
    justify-self: center;
  }

  .site-header .search-form,
  .site-header .header-account {
    display: none;
  }

  .site-header .mobile-search-link {
    display: grid;
  }

  footer.site-footer {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 620px) {
  header.site-header {
    min-height: 64px;
    padding: 10px 14px;
  }

  footer.site-footer {
    display: grid;
    padding: 46px 20px 32px;
  }
}

/* Theme selector shared by the two independent public themes. */
.theme-picker {
  position: relative;
  z-index: 85;
  flex: 0 0 auto;
  color: #fff;
}

.theme-picker summary {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  list-style: none;
  padding: 8px 11px;
  white-space: nowrap;
}

.theme-picker summary::-webkit-details-marker {
  display: none;
}

.theme-picker summary span {
  color: #8f99a7;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.theme-picker summary strong {
  font-size: 12px;
}

.theme-picker summary i {
  width: 6px;
  height: 6px;
  margin: -3px 1px 0 2px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

.theme-picker[open] summary i {
  margin-top: 3px;
  transform: rotate(225deg);
}

.theme-options {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  width: 250px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #111720;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}

.theme-options a {
  position: relative;
  display: grid;
  gap: 4px;
  color: #e8ecf2;
  padding: 13px 16px;
}

.theme-options a + a {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.theme-options a:hover,
.theme-options a.active {
  background: rgba(255, 70, 85, 0.12);
}

.theme-options a.active::after {
  content: "✓";
  position: absolute;
  top: 17px;
  right: 16px;
  color: var(--hy-accent);
  font-weight: 900;
}

.theme-options b {
  font-size: 13px;
}

.theme-options small {
  color: #8f99a7;
  font-size: 10px;
}

/* Classic shell: preserve the original Manga-style navigation and footer. */
.theme-classic {
  background: #191919;
  color: #fff;
}

.theme-classic:not(.reader-mode) {
  padding-bottom: 0;
}

.theme-classic header.site-header {
  display: flex;
  min-height: 88px;
  gap: clamp(16px, 2vw, 24px);
  padding: 16px clamp(24px, 6vw, 122px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #191919;
  box-shadow: none;
  backdrop-filter: none;
}

.theme-classic .site-header .brand {
  display: flex;
  gap: 12px;
  flex: 0 0 auto;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.theme-classic .site-header .brand-logo {
  width: auto;
  height: 54px;
  max-height: 54px;
  object-fit: contain;
}

.theme-classic .site-header .main-nav {
  display: flex;
  gap: clamp(12px, 1.5vw, 22px);
  flex: 1 1 auto;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.theme-classic .site-header .main-nav a {
  padding: 0;
  color: #fff;
}

.theme-classic .site-header .main-nav a::after {
  display: none;
}

.theme-classic .site-header .main-nav a:hover {
  color: var(--yellow);
}

.theme-classic .site-header .search-form {
  width: min(26vw, 330px);
  border: 1px solid #303030;
  border-radius: 4px;
  background: #303030;
}

.theme-classic .site-header .search-form input {
  padding: 13px 14px;
}

.theme-classic .site-header .search-form button {
  min-width: 48px;
  border-left: 1px solid #444;
  background: #252525;
  padding: 13px 14px;
}

.theme-classic .theme-picker summary {
  border-color: #505155;
  border-radius: 4px;
  background: #191919;
}

.theme-classic .theme-options {
  border-color: #4a4a4a;
  border-radius: 4px;
  background: #202020;
}

.theme-classic .theme-options a:hover,
.theme-classic .theme-options a.active {
  background: #303030;
}

.theme-classic footer.site-footer {
  display: grid;
  width: 100%;
  grid-template-columns: none;
  justify-items: center;
  gap: 20px;
  padding: 34px 16px 46px;
  border-top: 0;
  background: #fff;
  color: #202020;
  text-align: center;
}

.theme-classic .mobile-bottom-nav {
  display: none !important;
}

@media (max-width: 1180px) {
  .theme-hybrid .site-header > .theme-picker {
    display: none;
  }

  .theme-classic header.site-header {
    display: flex;
    flex-wrap: wrap;
    grid-template-columns: none;
  }

  .theme-classic .site-header .main-nav {
    display: flex;
  }

  .theme-classic .site-header .mobile-nav-drawer {
    display: none;
  }

  .theme-classic .site-header .search-form {
    display: flex;
    width: 100%;
    order: 5;
  }
}

@media (max-width: 700px) {
  .theme-classic header.site-header {
    display: grid;
    min-height: 70px;
    height: 70px;
    grid-template-columns: 44px 1fr 44px;
    gap: 0;
    padding: 0 16px;
    border-bottom: 0;
  }

  .theme-classic .site-header .brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  .theme-classic .site-header .brand-logo {
    width: 75px;
    height: 40px;
    max-height: 40px;
  }

  .theme-classic .site-header .main-nav,
  .theme-classic .site-header .search-form,
  .theme-classic .site-header .language-menu,
  .theme-classic .site-header > .theme-picker {
    display: none;
  }

  .theme-classic .site-header .mobile-nav-drawer {
    position: relative;
    z-index: 90;
    display: block;
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    width: 44px;
    height: 44px;
  }

  .theme-classic .site-header .mobile-search-link {
    display: grid;
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    justify-self: end;
  }
}

/* Laravel admin editing panels: declared last so they win over legacy theme rules. */
.admin-ops-panel { display: block; padding: 0; overflow: hidden; }
.admin-ops-panel > p,
.admin-ops-panel > form:not(.admin-settings-form) { margin: 0 18px 16px; }
.admin-editor { position: relative; }
.admin-editor > summary { display: inline-flex; min-height: 30px; align-items: center; border: 1px solid #dfe7f0; border-radius: 7px; background: #f7f8ff; color: #6653bd; cursor: pointer; font-size: 10px; font-weight: 850; list-style: none; padding: 0 9px; }
.admin-editor > summary::-webkit-details-marker { display: none; }
.admin-editor[open] > summary { margin-bottom: 10px; background: #eeeaff; }
.admin-editor form { display: grid; gap: 11px; width: min(680px, 70vw); border: 1px solid #e1e7ef; border-radius: 10px; background: #fbfcfe; box-shadow: 0 12px 28px rgba(24, 39, 62, 0.09); padding: 13px; }
.admin-editor label,
.admin-settings-form label { display: grid; gap: 5px; color: #52657c; font-size: 10px; font-weight: 800; }
.admin-editor input,
.admin-editor textarea,
.admin-editor select,
.admin-settings-form select { width: 100%; border: 1px solid #dce5ef; border-radius: 7px; background: #fff; color: #253449; font: inherit; padding: 8px 9px; }
.admin-editor textarea { min-height: 72px; resize: vertical; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.admin-editor .admin-check,
.admin-settings-form .admin-check { display: flex; align-items: center; gap: 8px; color: #40536b; }
.admin-editor .admin-check input,
.admin-settings-form .admin-check input { width: auto; }
.admin-settings-form { display: grid; gap: 12px; max-width: 720px; padding: 18px; }
.admin-settings-form p { margin: 0; color: #68798f; font-size: 12px; line-height: 1.55; }
.admin-settings-form > label:not(.admin-check) { max-width: 260px; }
@media (max-width: 800px) {
  .admin-editor form { width: min(540px, 74vw); }
  .admin-form-grid { grid-template-columns: 1fr; }
}

/* Compact Rawkuma-style hero. Kept last to override the earlier cinematic draft. */
.hy-home-hero.hy-slider {
  width: min(1280px, calc(100vw - 64px));
  height: 350px;
  min-height: 350px;
  margin: 0 auto 10px;
  border: 0;
  background: #080b10;
}

.hy-slider-viewport,
.hy-slider-track,
.hy-slider-slide,
.hy-slider-shell {
  height: 350px;
  min-height: 350px;
}

.hy-slider.is-ready .hy-slider-viewport {
  overflow: hidden;
  scroll-behavior: auto;
  scroll-snap-type: none;
  touch-action: pan-y pinch-zoom;
}

.hy-slider-track {
  min-width: 0;
}

.hy-slider.is-ready .hy-slider-track {
  will-change: transform;
  transition: transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hy-slider-viewport.is-dragging .hy-slider-track {
  transition: none;
}

.hy-slider-slide::after {
  display: none;
}

.hy-slider-backdrop {
  inset: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  opacity: 1;
  filter: blur(4px) saturate(0.86);
  transform: scale(1.025);
}

.hy-slider-shade {
  background:
    linear-gradient(90deg, rgba(8, 11, 16, 0.82) 0%, rgba(8, 11, 16, 0.64) 53%, rgba(8, 11, 16, 0.56) 100%),
    rgba(8, 11, 16, 0.58);
}

.hy-slider-shell {
  display: block;
  width: 100%;
  padding: 0;
}

.hy-slider-copy,
.hy-slider-slide.is-active .hy-slider-copy {
  position: absolute;
  top: 44%;
  left: 50px;
  width: 48%;
  max-width: 610px;
  opacity: 1;
  transform: translateY(-50%);
  transition: none;
}

.hy-slider-chapter {
  gap: 0;
  margin-bottom: 3px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0;
  text-shadow: none;
}

.hy-slider-chapter span {
  display: none;
}

.hy-slider-title {
  max-width: 100%;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.16;
  text-wrap: wrap;
  text-shadow: none;
  -webkit-line-clamp: 2;
}

.hy-slider-summary {
  max-width: 520px;
  max-height: 65px;
  margin: 5px 0 15px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  text-shadow: none;
  -webkit-line-clamp: 3;
}

.hy-slider-genres {
  max-width: 540px;
  max-height: 26px;
  gap: 5px;
  overflow: hidden;
}

.hy-slider-genres a {
  min-height: 23px;
  padding: 2px 10px;
  border-color: rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  background: transparent;
  font-size: 11px;
  font-weight: 500;
  backdrop-filter: none;
}

.hy-slider-meta,
.hy-slider-count,
.hy-slider-arrows,
.hy-slider-cover-frame {
  display: none;
}

.hy-slider-actions {
  margin-top: 15px;
}

.hy-slider-actions .hy-primary-cta {
  min-height: 35px;
  padding: 0 20px;
  border-radius: 4px;
  background: var(--hy-gold);
  box-shadow: none;
  color: #17130a;
  font-size: 14px;
  font-weight: 650;
}

.hy-slider-actions .hy-primary-cta:hover {
  background: #ffc449;
  color: #17130a;
}

.hy-slider-cover-stage,
.hy-slider-slide.is-active .hy-slider-cover-stage {
  position: absolute;
  top: -58px;
  right: 12%;
  display: block;
  width: 390px;
  height: 538px;
  min-height: 0;
  overflow: hidden;
  opacity: 1;
  transform: rotate(12deg);
  transition: none;
}

.hy-slider-cover-stage::before {
  display: none;
}

.hy-slider-cover,
.hy-slider-slide.is-active .hy-slider-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 30px 30px rgba(0, 0, 0, 0.2);
  transform: none;
  transition: none;
}

.hy-slider-controls {
  right: 30px;
  bottom: 20px;
  left: auto;
  display: block;
  width: auto;
  margin: 0;
}

.hy-slider-dots {
  justify-content: flex-end;
  gap: 6px;
}

.hy-slider-dots button {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.42);
}

.hy-slider-dots button[aria-current="true"] {
  width: 18px;
  background: var(--hy-gold);
}

@media (max-width: 1096px) {
  .hy-slider-copy,
  .hy-slider-slide.is-active .hy-slider-copy {
    left: 25px;
  }

  .hy-slider-cover-stage,
  .hy-slider-slide.is-active .hy-slider-cover-stage {
    right: 5%;
  }
}

@media (max-width: 950px) {
  .hy-slider-cover-stage,
  .hy-slider-slide.is-active .hy-slider-cover-stage {
    top: 0;
    right: 0;
    width: 250px;
    height: 350px;
    transform: none;
  }

  .hy-slider-copy,
  .hy-slider-slide.is-active .hy-slider-copy {
    width: calc(100% - 300px);
  }
}

@media (max-width: 750px) {
  .hy-home-hero.hy-slider {
    width: calc(100vw - 32px);
    height: 245px;
    min-height: 245px;
  }

  .hy-slider-viewport,
  .hy-slider-track,
  .hy-slider-slide,
  .hy-slider-shell {
    height: 245px;
    min-height: 245px;
  }

  .hy-slider-cover-stage,
  .hy-slider-slide.is-active .hy-slider-cover-stage {
    top: 33px;
    right: 35px;
    width: 155px;
    height: 215px;
  }

  .hy-slider-copy,
  .hy-slider-slide.is-active .hy-slider-copy {
    top: 46%;
    left: 30px;
    width: calc(100% - 230px);
  }

  .hy-slider-chapter {
    font-size: 15px;
  }

  .hy-slider-title {
    font-size: 20px;
  }

  .hy-slider-summary {
    max-height: 48px;
    margin: 4px 0 10px;
    font-size: 12px;
    line-height: 1.45;
    -webkit-line-clamp: 3;
  }

  .hy-slider-genres {
    display: none;
  }

  .hy-slider-actions {
    margin-top: 8px;
  }

  .hy-slider-actions .hy-primary-cta {
    min-height: 31px;
    padding: 0 14px;
    font-size: 12px;
  }

  .hy-slider-controls {
    right: 12px;
    bottom: 8px;
  }
}

@media (max-width: 650px) {
  .hy-slider-cover-stage,
  .hy-slider-slide.is-active .hy-slider-cover-stage {
    right: auto;
    left: 20px;
    width: 120px;
    height: 170px;
  }

  .hy-slider-copy,
  .hy-slider-slide.is-active .hy-slider-copy {
    left: 135px;
    width: calc(100% - 150px);
  }

  .hy-slider-chapter {
    display: none;
  }
}

@media (max-width: 500px) {
  .hy-home-hero.hy-slider {
    width: calc(100vw - 20px);
    height: 200px;
    min-height: 200px;
  }

  .hy-slider-viewport,
  .hy-slider-track,
  .hy-slider-slide,
  .hy-slider-shell {
    height: 200px;
    min-height: 200px;
  }

  .hy-slider-cover-stage,
  .hy-slider-slide.is-active .hy-slider-cover-stage {
    top: 38px;
    left: 10px;
    width: 70px;
    height: 95px;
    border-radius: 10px;
  }

  .hy-slider-copy,
  .hy-slider-slide.is-active .hy-slider-copy {
    top: 44%;
    right: 10px;
    left: 80px;
    width: auto;
  }

  .hy-slider-title {
    font-size: 18px;
    line-height: 1.12;
  }

  .hy-slider-summary {
    height: 48px;
    max-height: 48px;
    margin-bottom: 5px;
    font-size: 11px;
    -webkit-line-clamp: 3;
  }

  .hy-slider-actions {
    margin-top: 5px;
  }

  .hy-slider-actions .hy-primary-cta {
    min-height: 28px;
    padding: 0 11px;
    font-size: 11px;
  }

  .hy-slider-controls {
    right: 8px;
    bottom: 5px;
  }

  .hy-slider-dots {
    gap: 4px;
  }

  .hy-slider-dots button {
    width: 5px;
    height: 5px;
  }

  .hy-slider-dots button[aria-current="true"] {
    width: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hy-slider.is-ready .hy-slider-track {
    transition: none;
  }
}

/* TruyenShelf hero sizing and interaction: fluid to this site's shell, not a copied preset. */
.hy-home-hero.hy-slider {
  --hy-slider-height: clamp(300px, 23vw, 330px);
  width: var(--hy-shell);
  height: var(--hy-slider-height);
  min-height: var(--hy-slider-height);
  margin: clamp(14px, 1.6vw, 22px) auto 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: #080b10;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.hy-home-hero .hy-slider-viewport,
.hy-home-hero .hy-slider-track,
.hy-home-hero .hy-slider-slide,
.hy-home-hero .hy-slider-shell {
  height: var(--hy-slider-height);
  min-height: var(--hy-slider-height);
}

.hy-slider.is-ready .hy-slider-viewport {
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
}

.hy-slider.is-ready .hy-slider-track {
  min-width: 0;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  transition: none;
  will-change: transform;
}

.hy-slider-viewport.is-dragging,
.hy-slider.is-settling .hy-slider-viewport {
  cursor: grabbing;
}

.hy-slider-viewport.is-dragging,
.hy-slider-viewport.is-dragging * {
  user-select: none;
}

.hy-slider-viewport img,
.hy-slider-viewport a {
  -webkit-user-drag: none;
}

.hy-slider-slide {
  contain: layout paint;
}

.hy-slider-backdrop {
  inset: -14px;
  width: calc(100% + 28px);
  height: calc(100% + 28px);
  opacity: 0.76;
  filter: blur(8px) saturate(0.82) contrast(1.04);
  transform: scale(1.055) translateZ(0);
}

.hy-slider-shade {
  background:
    linear-gradient(90deg, rgba(7, 10, 15, 0.92) 0%, rgba(7, 10, 15, 0.78) 48%, rgba(7, 10, 15, 0.42) 100%),
    linear-gradient(0deg, rgba(7, 10, 15, 0.44), transparent 48%);
}

.hy-home-hero .hy-slider-shell {
  display: block;
  width: 100%;
  padding: 0;
}

.hy-slider-copy,
.hy-slider-slide.is-active .hy-slider-copy {
  position: absolute;
  top: 50%;
  left: clamp(26px, 4.2vw, 60px);
  width: min(54%, 650px);
  max-width: 650px;
  opacity: 1;
  transform: translateY(-50%);
  transition: none;
}

.hy-slider-chapter {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.025em;
}

.hy-slider-title {
  max-width: 100%;
  color: #fff;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 780;
  letter-spacing: -0.025em;
  line-height: 1.14;
  text-wrap: balance;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.34);
  -webkit-line-clamp: 2;
}

.hy-slider-summary {
  max-width: 590px;
  max-height: 58px;
  margin: 8px 0 12px;
  color: rgba(237, 241, 246, 0.82);
  font-size: 12.5px;
  line-height: 1.5;
  text-shadow: none;
  -webkit-line-clamp: 3;
}

.hy-slider-genres {
  max-width: 560px;
  max-height: 24px;
  gap: 5px;
  overflow: hidden;
}

.hy-slider-genres a {
  min-height: 22px;
  padding: 2px 9px;
  border-color: rgba(255, 255, 255, 0.34);
  border-radius: 6px;
  background: rgba(9, 13, 19, 0.18);
  font-size: 10px;
  font-weight: 650;
  backdrop-filter: blur(5px);
}

.hy-slider-actions {
  margin-top: 12px;
}

.hy-slider-actions .hy-primary-cta {
  min-height: 34px;
  padding: 0 16px;
  border-radius: 7px;
  background: var(--hy-gold);
  box-shadow: 0 8px 22px rgba(255, 177, 27, 0.15);
  color: #17130a;
  font-size: 12px;
  font-weight: 750;
}

.hy-slider-cover-stage,
.hy-slider-slide.is-active .hy-slider-cover-stage {
  position: absolute;
  top: 50%;
  right: clamp(34px, 8vw, 116px);
  display: block;
  width: clamp(205px, 18.5vw, 270px);
  height: auto;
  min-height: 0;
  aspect-ratio: 320 / 454;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  opacity: 1;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.43);
  transform: translateY(-50%) rotate(6.5deg);
  transform-origin: center;
  transition: none;
}

.hy-slider-cover-stage {
  cursor: pointer;
}

.hy-slider-cover,
.hy-slider-slide.is-active .hy-slider-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
  object-fit: cover;
  object-position: center top;
  box-shadow: none;
  transform: none;
  transition: none;
}

.hy-slider-controls {
  right: clamp(14px, 2vw, 28px);
  bottom: 13px;
}

.hy-slider-dots {
  gap: 5px;
}

.hy-slider-dots button {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.38);
  transition: width 180ms ease, background 180ms ease;
}

.hy-slider-dots button[aria-current="true"] {
  width: 17px;
  background: var(--hy-gold);
}

@media (max-width: 900px) {
  .hy-home-hero.hy-slider {
    --hy-slider-height: 264px;
    margin-top: 14px;
  }

  .hy-slider-copy,
  .hy-slider-slide.is-active .hy-slider-copy {
    left: 28px;
    width: calc(100% - 260px);
  }

  .hy-slider-title {
    font-size: clamp(20px, 3vw, 24px);
  }

  .hy-slider-summary {
    max-height: 42px;
    margin: 6px 0 9px;
    font-size: 11.5px;
    line-height: 1.4;
    -webkit-line-clamp: 3;
  }

  .hy-slider-genres {
    display: none;
  }

  .hy-slider-actions {
    margin-top: 9px;
  }

  .hy-slider-cover-stage,
  .hy-slider-slide.is-active .hy-slider-cover-stage {
    right: 24px;
    width: 178px;
    transform: translateY(-50%) rotate(5deg);
  }
}

@media (max-width: 640px) {
  .hy-home-hero.hy-slider {
    --hy-slider-height: 210px;
    margin: 12px auto 10px;
    border-radius: 14px;
  }

  .hy-slider-backdrop {
    filter: blur(6px) saturate(0.8);
  }

  .hy-slider-shade {
    background:
      linear-gradient(90deg, rgba(7, 10, 15, 0.72), rgba(7, 10, 15, 0.82)),
      rgba(7, 10, 15, 0.3);
  }

  .hy-slider-cover-stage,
  .hy-slider-slide.is-active .hy-slider-cover-stage {
    right: auto;
    left: 14px;
    width: clamp(96px, 18vw, 112px);
    border-radius: 8px;
    transform: translateY(-50%) rotate(-3deg);
  }

  .hy-slider-copy,
  .hy-slider-slide.is-active .hy-slider-copy {
    top: 50%;
    right: 14px;
    left: clamp(124px, 23vw, 150px);
    width: auto;
  }

  .hy-slider-chapter {
    display: none;
  }

  .hy-slider-title {
    font-size: clamp(17px, 4.6vw, 20px);
    line-height: 1.13;
  }

  .hy-slider-summary {
    height: auto;
    max-height: 34px;
    margin: 5px 0 7px;
    font-size: 10.5px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
  }

  .hy-slider-actions {
    margin-top: 7px;
  }

  .hy-slider-actions .hy-primary-cta {
    min-height: 29px;
    padding: 0 11px;
    font-size: 10.5px;
  }

  .hy-slider-controls {
    right: 9px;
    bottom: 7px;
  }
}

@media (max-width: 420px) {
  .hy-home-hero.hy-slider {
    --hy-slider-height: 196px;
  }

  .hy-slider-cover-stage,
  .hy-slider-slide.is-active .hy-slider-cover-stage {
    left: 12px;
    width: 82px;
  }

  .hy-slider-copy,
  .hy-slider-slide.is-active .hy-slider-copy {
    right: 11px;
    left: 108px;
  }

  .hy-slider-title {
    font-size: 16.5px;
  }

  .hy-slider-summary {
    max-height: 30px;
    font-size: 10px;
  }

  .hy-slider-dots button {
    width: 5px;
    height: 5px;
  }

  .hy-slider-dots button[aria-current="true"] {
    width: 14px;
  }
}

/* MangaRawNow brand system */
.brand-icon {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 11px;
}

.brand .brand-copy {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  line-height: 1;
}

.brand-word {
  display: flex;
  align-items: baseline;
  color: #f7f8fa;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.75px;
  text-transform: none;
}

.brand-copy .brand-word strong,
.brand-copy .brand-word em,
.brand-copy .brand-word b {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}

.brand-copy .brand-word em {
  color: #ff3042;
}

.brand .brand-copy > small {
  display: block;
  margin-top: 5px;
  color: #7f8997;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 1.45px;
  line-height: 1;
  text-transform: uppercase;
}

.theme-classic .classic-brand .brand-word {
  color: #fff;
}

.footer-brand-icon {
  display: block;
  height: auto;
  object-fit: contain;
}

.theme-classic .footer-local-abj.footer-brand-icon {
  width: 42px;
  height: 42px;
  justify-self: center;
  border-radius: 10px;
  background: none;
}

.admin-brand > span:first-child img {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.hy-reader-brand .brand-icon {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-radius: 9px;
}

.hy-reader-brand strong {
  color: #f7f8fa;
  letter-spacing: -0.35px;
}

.hy-reader-brand strong span {
  color: #ff3042;
}

@media (max-width: 620px) {
  .site-header .brand-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 9px;
  }

  .site-header .brand-word {
    font-size: 16px;
  }

  .site-header .brand-copy > small {
    display: none;
  }
}

@media (max-width: 370px) {
  .site-header .brand-word {
    font-size: 14px;
  }
}

/* Homepage genre directory: a fast, crawlable route into the catalog. */
.genre-directory-bar {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1704px, 100%);
  min-height: 50px;
  margin: 10px auto 35px;
  padding: 0 8px 0 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 214, 70, 0.62);
  border-radius: 7px;
  background: linear-gradient(105deg, #f2ad12, #ffc52f 58%, #eda40b);
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.28);
  font-weight: 700;
}

.genre-directory-track {
  display: flex;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scrollbar-width: none;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
}

.genre-directory-track::-webkit-scrollbar {
  display: none;
}

.genre-directory-track a {
  display: inline-flex;
  min-height: 50px;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 20px;
  color: #17191f;
  font-size: 15px;
  line-height: 1;
  transition: color 0.16s ease, background 0.16s ease;
}

.genre-directory-track a:hover,
.genre-directory-track a:focus-visible {
  background: rgba(20, 23, 30, 0.13);
  color: #fff;
  outline: none;
}

.genre-directory-all {
  display: inline-flex;
  min-height: 34px;
  margin-left: 12px;
  padding: 0 19px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 6px;
  background: #171a21;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: #ffc52f;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.4px;
  line-height: 1;
  white-space: nowrap;
}

.genre-directory-all b {
  transition: transform 0.16s ease;
}

.genre-directory-all:hover,
.genre-directory-all:focus-visible {
  background: #090b0f;
  color: #fff;
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: -2px;
}

.genre-directory-all:hover b,
.genre-directory-all:focus-visible b {
  transform: translateX(3px);
}

.mp-bg .hero-breadcrumb + .genre-directory-bar {
  margin-top: -38px;
}

.hy-home > .genre-directory-bar {
  width: var(--hy-shell);
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .genre-directory-bar {
    padding-left: 4px;
  }

  .genre-directory-track a {
    padding: 0 15px;
    font-size: 13px;
  }

  .genre-directory-all {
    margin-left: 7px;
    padding: 0 14px;
  }
}

@media (max-width: 640px) {
  .genre-directory-bar {
    display: none;
  }
}

/* Admin control center: configuration forms only; public presentation is unchanged. */
.admin-settings-panel {
  overflow: visible;
  border: 1px solid #e1e7ef;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(30, 47, 72, 0.045);
}

.admin-settings-panel .admin-table-toolbar p {
  max-width: 760px;
  margin: 5px 0 0;
  color: #74859a;
  font-size: 11px;
  line-height: 1.55;
}

.admin-control-form {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.admin-control-form h3 {
  margin: 0;
  color: #1b2a40;
  font-size: 15px;
}

.admin-control-form fieldset,
.admin-checkbox-fieldset {
  display: grid;
  min-width: 0;
  gap: 12px;
  border: 1px solid #e5ebf2;
  border-radius: 12px;
  background: #fafcff;
  padding: 15px;
}

.admin-control-form legend,
.admin-checkbox-fieldset legend {
  color: #354960;
  font-size: 11px;
  font-weight: 900;
  padding: 0 7px;
}

.admin-control-form label,
.admin-seo-fields label {
  display: grid;
  gap: 6px;
  color: #50647d;
  font-size: 11px;
  font-weight: 850;
}

.admin-control-form label > small,
.admin-seo-fields label > small {
  color: #8998a9;
  font-size: 9px;
  font-weight: 700;
}

.admin-control-form input,
.admin-control-form select,
.admin-control-form textarea,
.admin-seo-fields input,
.admin-seo-fields select,
.admin-seo-fields textarea,
.admin-editor input,
.admin-editor select,
.admin-editor textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  background: #fff;
  color: #213149;
  font: inherit;
  font-size: 12px;
  padding: 9px 10px;
}

.admin-control-form textarea,
.admin-seo-fields textarea,
.admin-editor textarea {
  min-height: 74px;
  line-height: 1.5;
  resize: vertical;
}

.admin-control-form input:focus,
.admin-control-form select:focus,
.admin-control-form textarea:focus,
.admin-seo-fields input:focus,
.admin-seo-fields select:focus,
.admin-seo-fields textarea:focus,
.admin-editor input:focus,
.admin-editor select:focus,
.admin-editor textarea:focus {
  border-color: #6b8fd9;
  box-shadow: 0 0 0 3px rgba(64, 112, 206, 0.1);
  outline: 0;
}

.admin-form-grid-wide {
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.5fr) 110px minmax(260px, 1.2fr);
}

.admin-control-form .admin-check,
.admin-editor .admin-check {
  display: flex;
  min-height: 30px;
  align-items: center;
  gap: 8px;
}

.admin-control-form .admin-check input,
.admin-editor .admin-check input {
  width: 16px;
  min-height: 16px;
  flex: 0 0 16px;
  padding: 0;
}

.admin-seo-page-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-seo-page-list .admin-fold {
  align-self: start;
  border-radius: 12px;
  box-shadow: none;
}

.admin-seo-page-list .admin-fold[open] {
  grid-column: 1 / -1;
}

.admin-seo-fields {
  display: grid;
  gap: 12px;
}

.admin-field-help {
  margin: 0;
  border-radius: 8px;
  background: #f1f6fd;
  color: #61758e;
  font-size: 10px;
  line-height: 1.55;
  padding: 9px 11px;
}

.admin-field-help code {
  color: #315f9c;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 800;
}

.admin-sticky-submit {
  position: sticky;
  z-index: 4;
  bottom: 12px;
  display: flex;
  justify-content: flex-end;
  border: 1px solid rgba(220, 229, 239, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(30, 47, 72, 0.12);
  padding: 10px;
  backdrop-filter: blur(12px);
}

.admin-number-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.admin-number-grid > label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 6px 10px;
  align-items: center;
  border: 1px solid #e6ebf1;
  border-radius: 11px;
  background: #fafcff;
  padding: 12px;
}

.admin-number-grid > label > span {
  color: #34485f;
  font-size: 11px;
  font-weight: 900;
}

.admin-number-grid > label > input {
  grid-column: 2;
  grid-row: 1 / span 2;
  text-align: center;
}

.admin-number-grid > label > small {
  color: #8393a5;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.45;
}

.admin-number-grid.compact {
  grid-template-columns: 1fr;
}

.admin-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px 12px;
  max-height: 180px;
  overflow: auto;
}

.admin-editor .admin-checkbox-fieldset {
  padding: 12px;
}

.admin-operations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
}

.admin-operations-grid .admin-control-form {
  align-content: start;
  border: 1px solid #e3e9f0;
  border-radius: 12px;
  background: #fafcff;
  padding: 16px;
}

.admin-cache-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 18px 18px;
  border: 1px solid #e1e8f0;
  border-radius: 12px;
  background: linear-gradient(135deg, #f7faff, #fff);
  padding: 15px;
}

.admin-cache-action h3 {
  margin: 0 0 4px;
  color: #24364d;
  font-size: 13px;
}

.admin-cache-action p {
  margin: 0;
  color: #73859a;
  font-size: 10px;
}

.admin-content-inner > .admin-ops-panel {
  margin-bottom: 18px;
  scroll-margin-top: 18px;
}

.admin-filter-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid #edf1f5;
  background: #fafcff;
  padding: 12px 16px;
}

.admin-filter-bar label { flex: 1 1 360px; }

.admin-filter-bar input,
.admin-filter-bar select {
  min-height: 38px;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  background: #fff;
  color: #263850;
  font-size: 11px;
  padding: 0 11px;
}

.admin-filter-bar input { width: 100%; }
.admin-filter-bar select { min-width: 155px; }
.admin-filter-bar .button { min-height: 38px; white-space: nowrap; }

.admin-table-toolbar > div > span {
  color: #7a8ca3;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
}

.admin-mode .flash-message {
  position: fixed;
  z-index: 100;
  top: 16px;
  right: 18px;
  max-width: min(460px, calc(100vw - 36px));
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(24, 39, 62, 0.18);
}

@media (max-width: 1180px) {
  .admin-form-grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-number-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-checkbox-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .admin-seo-page-list,
  .admin-number-grid,
  .admin-operations-grid { grid-template-columns: 1fr; }
  .admin-seo-page-list .admin-fold[open] { grid-column: auto; }
  .admin-checkbox-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-sticky-submit { bottom: 8px; }
  .admin-filter-bar { align-items: stretch; flex-direction: column; }
  .admin-filter-bar label { width: 100%; flex-basis: auto; }
  .admin-filter-bar select,
  .admin-filter-bar .button { width: 100%; justify-content: center; }
}

@media (max-width: 520px) {
  .admin-control-form,
  .admin-operations-grid { padding: 13px; }
  .admin-form-grid-wide { grid-template-columns: 1fr; }
  .admin-number-grid > label { grid-template-columns: minmax(0, 1fr) 72px; }
  .admin-checkbox-grid { grid-template-columns: 1fr; }
  .admin-cache-action { align-items: stretch; flex-direction: column; }
  .admin-cache-action .button { width: 100%; justify-content: center; }
}

/* Library discovery controls */
.mp-library-browser {
  display: grid;
  max-width: 1440px;
  margin: 0 auto;
  grid-template-columns: 352px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.mp-library-sidebar,
.mp-library-content {
  min-width: 0;
}

.mp-library-filter-panel {
  position: sticky;
  top: 104px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: oklab(0.25 0 0 / 0.3);
  box-shadow: none;
}

@media (min-width: 921px) {
  .mp-library-filter-panel {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #555960 transparent;
    scrollbar-width: thin;
  }
}

.mp-library-filter-panel > summary,
.mp-genre-filter > summary,
.mp-taxonomy-filter > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.mp-library-filter-panel > summary::-webkit-details-marker,
.mp-genre-filter > summary::-webkit-details-marker,
.mp-taxonomy-filter > summary::-webkit-details-marker {
  display: none;
}

.mp-library-filter-panel > summary {
  display: none;
  min-height: 52px;
  padding: 0 16px;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.mp-library-filter-panel > summary b {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #dc2532;
  font-size: 11px;
}

.mp-library-filter-panel > summary i,
.mp-genre-filter > summary i,
.mp-taxonomy-filter > summary i {
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}

.mp-library-filter-panel[open] > summary i,
.mp-genre-filter[open] > summary i,
.mp-taxonomy-filter[open] > summary i {
  transform: rotate(225deg) translate(-1px, -1px);
}

.mp-library-filter-panel > .mp-library-filter-form {
  display: grid;
}

.mp-library-filter-form {
  gap: 24px;
  padding: 24px;
}

.mp-filter-field,
.mp-filter-field-row {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.mp-filter-field > span {
  color: #c8ccd3;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.mp-filter-field input,
.mp-filter-field select,
.mp-genre-search input,
.mp-library-toolbar select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #474a51;
  border-radius: 8px;
  outline: 0;
  background: #15171b;
  color: #f5f6f8;
  font: inherit;
  font-size: 12px;
  padding: 0 11px;
}

.mp-filter-field input::placeholder,
.mp-genre-search input::placeholder {
  color: #7e828a;
}

.mp-filter-field input:focus,
.mp-filter-field select:focus,
.mp-genre-search input:focus,
.mp-library-toolbar select:focus {
  border-color: #e13b48;
  box-shadow: 0 0 0 3px rgba(225, 59, 72, 0.14);
}

.mp-filter-search input {
  padding-right: 34px;
  background-image: radial-gradient(circle, transparent 55%, #8d929b 58%, #8d929b 67%, transparent 70%);
  background-position: calc(100% - 15px) 14px;
  background-repeat: no-repeat;
  background-size: 12px 12px;
}

.mp-filter-check-section {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 8px;
  border: 0;
}

.mp-filter-check-section legend {
  margin-bottom: 7px;
  color: #c8ccd3;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.mp-filter-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.mp-filter-check-grid label,
.mp-project-toggle {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.mp-filter-check-grid label {
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid #3e4249;
  border-radius: 7px;
  background: #191b1f;
  color: #d7dae0;
  font-size: 11px;
  font-weight: 750;
}

.mp-filter-check-grid input,
.mp-project-toggle input,
.mp-taxonomy-options input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #df2f3d;
  flex: 0 0 auto;
}

.mp-project-toggle {
  min-height: 50px;
  padding: 9px 11px;
  border: 1px solid rgba(223, 47, 61, 0.38);
  border-radius: 8px;
  background: rgba(223, 47, 61, 0.08);
}

.mp-project-toggle > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.mp-project-toggle b {
  color: #f2f3f5;
  font-size: 11px;
}

.mp-project-toggle small {
  color: #858a93;
  font-size: 9px;
  line-height: 1.35;
}

.mp-genre-filter {
  overflow: hidden;
}

.mp-taxonomy-filter {
  overflow: hidden;
  border: 0;
}

.mp-taxonomy-filter > summary {
  display: flex;
  width: 100%;
  min-height: 24px;
  padding: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #fff;
}

.mp-taxonomy-summary {
  color: oklch(0.56 0.19 256.32);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.mp-taxonomy-summary[hidden] {
  display: none;
}

.mp-genre-filter > summary {
  display: flex;
  width: 100%;
  min-height: 24px;
  padding: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #fff;
}

.mp-genre-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.mp-genre-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
}

.mp-genre-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mp-genre-summary > span {
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.mp-genre-summary > span[hidden] {
  display: none;
}

.mp-genre-summary .is-include {
  color: oklch(0.56 0.19 256.32);
}

.mp-genre-summary .is-exclude {
  color: oklch(0.645 0.246 16.439);
}

.mp-genre-chevron {
  display: flex;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  align-items: center;
  color: #fff;
}

.mp-taxonomy-filter-body {
  display: block;
  overflow: hidden;
}

.mp-genre-filter-body {
  display: block;
  overflow: hidden;
}

.mp-taxonomy-options {
  display: flex;
  max-height: 200px;
  margin: 8px 0 16px;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  scrollbar-color: #555960 transparent;
  scrollbar-width: thin;
}

.mp-taxonomy-options > label {
  display: block;
  max-width: 100%;
  min-height: 36px;
  padding: 8px 12px;
  border: 2px solid oklab(0.25 0 0 / 0.4);
  border-radius: 8px;
  background: oklab(0.999994 0.0000455678 0.0000200868 / 0.05);
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 16px;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.mp-taxonomy-options > label:hover {
  opacity: 0.8;
}

.mp-taxonomy-options > label:focus-within {
  box-shadow: 0 0 0 3px oklch(0.56 0.19 256.32 / 0.25);
}

.mp-taxonomy-options > label.is-selected,
.mp-taxonomy-options > label:has(input:checked) {
  border-color: oklch(0.56 0.19 256.32 / 0.9);
  background: oklch(0.56 0.19 256.32 / 0.7);
}

.mp-taxonomy-options > label[hidden] {
  display: none;
}

.mp-taxonomy-options > label > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mp-taxonomy-options > label span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-taxonomy-options > p {
  width: 100%;
  margin: 0;
  padding: 12px;
  color: #858a93;
  font-size: 10px;
}

.mp-genre-search {
  display: flex;
  width: 100%;
  min-height: 42px;
  margin-top: 16px;
  padding: 10px 16px;
  align-items: center;
  gap: 16px;
  border: 1px solid oklab(0.25 0 0 / 0.9);
  border-radius: 8px;
  background: oklab(0.25 0 0 / 0.7);
}

.mp-genre-search input {
  width: 100%;
  min-height: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f8fafc;
  font: inherit;
  font-size: 12px;
  line-height: 16px;
}

.mp-genre-search input:focus {
  box-shadow: none;
}

.mp-genre-search-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: #f8fafc;
}

.mp-genre-filter-list {
  display: flex;
  max-height: 200px;
  margin: 8px 0 16px;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  scrollbar-color: #555960 transparent;
  scrollbar-width: thin;
}

.mp-genre-choice {
  min-width: 0;
}

.mp-genre-choice[hidden] {
  display: none;
}

.mp-genre-choice > button {
  display: block;
  width: auto;
  min-height: 36px;
  padding: 8px 12px;
  border: 2px solid oklab(0.25 0 0 / 0.4);
  border-radius: 8px;
  outline: 0;
  background: oklab(0.999994 0.0000455678 0.0000200868 / 0.05);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 16px;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.mp-genre-choice > button:hover {
  opacity: 0.8;
}

.mp-genre-choice > button:active {
  opacity: 0.7;
}

.mp-genre-choice > button:focus-visible {
  box-shadow: 0 0 0 3px oklch(0.56 0.19 256.32 / 0.25);
}

.mp-genre-choice.is-include > button {
  border-color: oklch(0.56 0.19 256.32 / 0.9);
  background: oklch(0.56 0.19 256.32 / 0.7);
  color: #fff;
}

.mp-genre-choice.is-exclude > button {
  border-color: oklch(0.645 0.246 16.439 / 0.9);
  background: oklch(0.645 0.246 16.439 / 0.7);
  color: #fff;
}

.mp-genre-filter-list > p,
.mp-genre-search-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 11px;
  color: #8e939b;
  font-size: 10px;
  text-align: center;
}

.mp-genre-search-empty[hidden] {
  display: none;
}

.mp-genre-mode-grid {
  display: block;
}

.mp-genre-mode-grid .mp-filter-field {
  display: flex;
  min-height: 100px;
  padding: 16px 0;
  flex-direction: column;
  gap: 8px;
}

.mp-genre-mode-grid .mp-filter-field > span {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.mp-genre-mode-grid .mp-filter-field select {
  min-height: 40px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: oklab(0.25 0 0 / 0.7);
  color: #fff;
  font-size: 12px;
}

.mp-filter-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.mp-filter-actions button {
  min-height: 43px;
  border: 0;
  border-radius: 8px;
  background: #df2f3d;
  box-shadow: 0 8px 20px rgba(223, 47, 61, 0.2);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.mp-filter-actions button:hover {
  background: #f03b49;
}

.mp-filter-actions a {
  color: #aeb2b9;
  font-size: 11px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mp-library-toolbar {
  display: flex;
  min-height: 58px;
  margin-bottom: 20px;
  padding: 8px 10px 8px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #373a40;
  border-radius: 10px;
  background: #202227;
}

.mp-library-result-count {
  display: grid;
  gap: 3px;
}

.mp-library-result-count strong {
  color: #fff;
  font-size: 13px;
}

.mp-library-result-count a {
  color: #e44a56;
  font-size: 10px;
  font-weight: 800;
}

.mp-library-toolbar-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.mp-library-toolbar-actions > label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mp-library-toolbar-actions > label > span:not(.sr-only) {
  color: #9ca1aa;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.mp-library-toolbar select {
  width: auto;
  min-width: 132px;
  min-height: 38px;
  background-color: #15171b;
}

.mp-library-toolbar-actions > label:nth-child(2) select {
  min-width: 112px;
}

.mp-library-view-switch {
  display: grid;
  grid-template-columns: repeat(2, 38px);
  overflow: hidden;
  border: 1px solid #474a51;
  border-radius: 8px;
}

.mp-library-view-switch a {
  display: grid;
  min-height: 36px;
  place-items: center;
  border-right: 1px solid #474a51;
  background: #15171b;
  color: #969ba4;
  font-size: 18px;
}

.mp-library-view-switch a:last-child {
  border-right: 0;
}

.mp-library-view-switch a.active {
  background: #dc2f3d;
  color: #fff;
}

.mp-library-content .mp-list-grid {
  max-width: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 15px;
}

.mp-library-card-copy {
  min-width: 0;
}

.mp-library-card .mp-list-title {
  margin-top: 10px;
}

.mp-library-card p {
  min-height: 16px;
  margin: 5px 0 8px;
  white-space: nowrap;
}

.mp-library-card-stats,
.mp-library-card-genres {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 5px;
}

.mp-library-card-stats span,
.mp-library-card-genres a {
  display: inline-flex;
  min-height: 19px;
  padding: 2px 5px;
  align-items: center;
  border-radius: 4px;
  background: #2c2f34;
  color: #c7cbd1;
  font-size: 9px;
  font-weight: 750;
  line-height: 1;
}

.mp-library-card-stats span.is-project {
  background: rgba(223, 47, 61, 0.16);
  color: #f06a75;
}

.mp-library-card-genres {
  margin-top: 7px;
}

.mp-library-card-genres a {
  background: rgba(223, 47, 61, 0.12);
  color: #ef737d;
}

.mp-library-chapters {
  display: grid;
  min-height: 49px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mp-library-latest {
  display: flex;
  min-height: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #f0b84b;
  font-size: 10px;
  font-weight: 800;
}

.mp-library-latest span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-library-latest time {
  flex: 0 0 auto;
  color: #8e99a7;
  font-size: 9px;
  font-weight: 650;
  white-space: nowrap;
}

.mp-library-content .mp-list-grid.is-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mp-list-grid.is-list .mp-library-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 14px;
  padding: 10px;
  border: 1px solid #363940;
  border-radius: 10px;
  background: #202227;
}

.mp-list-grid.is-list .mp-list-cover {
  border-radius: 7px;
}

.mp-list-grid.is-list .mp-library-card-copy {
  align-self: center;
}

.mp-list-grid.is-list .mp-library-card .mp-list-title {
  margin-top: 0;
  white-space: normal;
}

.mp-list-grid.is-list .mp-library-card p {
  white-space: normal;
}

.mp-library-empty {
  display: grid;
  min-height: 280px;
  grid-column: 1 / -1;
  place-content: center;
  gap: 14px;
  border: 1px dashed #3d4047;
  border-radius: 12px;
  color: #aeb3bb;
  text-align: center;
}

.mp-library-empty a {
  color: #e6505c;
  font-size: 12px;
  font-weight: 850;
}

@media (max-width: 1200px) {
  .mp-library-browser {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 20px;
  }

  .mp-library-content .mp-list-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .mp-library-toolbar-actions > label > span:not(.sr-only) {
    display: none;
  }
}

@media (max-width: 920px) {
  .mp-library-browser {
    grid-template-columns: 1fr;
  }

  .mp-library-filter-panel {
    position: static;
  }

  .mp-library-filter-panel > summary {
    display: flex;
  }

  .mp-library-filter-panel:not([open]) > .mp-library-filter-form {
    display: none;
  }

  .mp-library-filter-form {
    border-top: 1px solid #393c42;
  }

  .mp-genre-filter-list {
    max-height: 200px;
  }
}

@media (max-width: 700px) {
  .mp-library-browser {
    gap: 16px;
  }

  .mp-library-toolbar {
    align-items: stretch;
    flex-direction: column;
    padding: 12px;
  }

  .mp-library-result-count {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .mp-library-toolbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(112px, 0.65fr) 78px;
  }

  .mp-library-toolbar-actions > label,
  .mp-library-toolbar select {
    width: 100%;
  }

  .mp-library-toolbar select {
    min-width: 0;
  }

  .mp-library-content .mp-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mp-library-content .mp-list-grid.is-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .mp-library-filter-form {
    padding: 14px;
  }

  .mp-library-toolbar-actions {
    grid-template-columns: minmax(0, 1fr) 104px;
  }

  .mp-library-view-switch {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, 1fr);
  }

  .mp-filter-actions {
    grid-template-columns: 1fr;
  }

  .mp-filter-actions a {
    padding: 4px;
    text-align: center;
  }

  .mp-list-grid.is-list .mp-library-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 11px;
  }
}

/* Featured shelf: a focused editorial page, separate from the full library. */
.featured-page.mp-static-page {
  position: relative;
  min-height: calc(100vh - 90px);
  overflow: hidden;
  padding: 0 0 clamp(64px, 7vw, 96px);
  background:
    radial-gradient(circle at 82% 4%, rgba(255, 70, 85, 0.12), transparent 28%),
    radial-gradient(circle at 15% 24%, rgba(125, 211, 252, 0.07), transparent 24%),
    var(--hy-bg);
  color: var(--hy-text);
}

.featured-page-heading,
.featured-showcase,
.featured-more-section,
.featured-empty-state,
.featured-page > .pagination-wrap {
  width: var(--hy-shell);
  margin-right: auto;
  margin-left: auto;
}

.featured-page-heading {
  display: flex;
  padding: clamp(42px, 5vw, 70px) 0 30px;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.featured-page-heading > div:first-child {
  min-width: 0;
}

.featured-page-kicker,
.featured-card-kicker,
.featured-more-section > header span {
  color: var(--hy-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.featured-page-heading h1 {
  margin: 9px 0 10px;
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 0.98;
  letter-spacing: -2.8px;
}

.featured-page-heading p {
  max-width: 680px;
  margin: 0;
  color: var(--hy-muted);
  font-size: 14px;
  line-height: 1.65;
}

.featured-page-stat {
  display: grid;
  min-width: 118px;
  min-height: 78px;
  padding: 13px 18px;
  align-content: center;
  border: 1px solid var(--hy-line);
  border-radius: 16px;
  background: rgba(17, 23, 32, 0.78);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}

.featured-page-stat strong,
.featured-page-stat span {
  display: block;
}

.featured-page-stat strong {
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.featured-page-stat span {
  margin-top: 7px;
  color: #8e99a8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.featured-showcase {
  display: grid;
  min-height: 520px;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
  gap: 16px;
}

.featured-showcase.is-solo {
  max-width: 940px;
  grid-template-columns: minmax(0, 1fr);
}

.featured-lead-card,
.featured-support-card {
  border: 1px solid var(--hy-line);
  background: var(--hy-surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.featured-lead-card {
  position: relative;
  isolation: isolate;
  display: grid;
  min-width: 0;
  min-height: 520px;
  padding: clamp(28px, 3.4vw, 50px);
  grid-template-columns: minmax(0, 1fr) minmax(180px, 235px);
  align-items: center;
  gap: clamp(22px, 3vw, 44px);
  overflow: hidden;
  border-radius: 24px;
}

.featured-lead-card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 10, 15, 0.97) 0%, rgba(7, 10, 15, 0.88) 52%, rgba(7, 10, 15, 0.58) 100%),
    linear-gradient(0deg, rgba(7, 10, 15, 0.55), transparent 48%);
  content: "";
}

.featured-lead-backdrop {
  position: absolute;
  z-index: -2;
  inset: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  opacity: 0.58;
  filter: blur(13px) saturate(0.82);
  object-fit: cover;
  transform: scale(1.06);
}

.featured-lead-copy,
.featured-lead-poster {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.featured-card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.featured-card-kicker b {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  background: var(--hy-accent);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0;
}

.featured-lead-copy h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 18px 0 16px;
  color: #fff;
  font-size: clamp(35px, 4vw, 58px);
  line-height: 0.98;
  letter-spacing: -2.2px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.featured-lead-copy h2 a:hover,
.featured-support-copy h2 a:hover {
  color: var(--hy-accent);
}

.featured-lead-copy > p {
  display: -webkit-box;
  overflow: hidden;
  max-width: 560px;
  margin: 0;
  color: #bac4d0;
  font-size: 13px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.featured-lead-genres {
  display: flex;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 7px;
}

.featured-lead-genres a {
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #d7dee7;
  font-size: 9px;
  font-weight: 800;
}

.featured-lead-actions {
  display: flex;
  margin-top: 28px;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.featured-primary-link {
  display: inline-flex;
  min-height: 43px;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 10px;
  background: var(--hy-accent);
  box-shadow: 0 12px 28px rgba(255, 70, 85, 0.24);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.featured-primary-link:hover {
  background: #ff5b68;
  color: #fff;
}

.featured-chapter-link {
  overflow: hidden;
  color: var(--hy-gold);
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-lead-poster {
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 2 / 3;
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.54);
  transform: rotate(2.5deg);
  transition: transform 0.22s ease;
}

.featured-lead-poster:hover {
  transform: rotate(0) translateY(-3px);
}

.featured-lead-poster img,
.featured-support-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-support-grid {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-auto-rows: minmax(0, 1fr);
  gap: 12px;
}

.featured-support-card {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-columns: clamp(104px, 9vw, 132px) minmax(0, 1fr);
  overflow: hidden;
  border-radius: 17px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.featured-support-card:hover {
  border-color: rgba(255, 70, 85, 0.48);
  transform: translateY(-2px);
}

.featured-support-cover {
  display: block;
  min-height: 0;
  overflow: hidden;
  background: #202936;
}

.featured-support-copy {
  display: flex;
  min-width: 0;
  padding: 16px;
  flex-direction: column;
  justify-content: center;
}

.featured-support-copy > span {
  color: var(--hy-accent);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.featured-support-copy h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 5px;
  color: #f5f7f9;
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 1.18;
  letter-spacing: -0.35px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.featured-support-copy p {
  overflow: hidden;
  margin: 0;
  color: #818d9c;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-support-chapter {
  overflow: hidden;
  margin-top: 12px;
  color: var(--hy-gold);
  font-size: 10px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-more-section {
  padding-top: clamp(52px, 6vw, 78px);
}

.featured-more-section > header {
  display: flex;
  margin-bottom: 19px;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.featured-more-section > header h2 {
  margin: 7px 0 0;
  font-size: 25px;
  letter-spacing: -0.7px;
}

.featured-more-section > header small {
  color: #85919f;
  font-size: 11px;
}

.featured-empty-state {
  display: grid;
  min-height: 390px;
  place-content: center;
  justify-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  background: rgba(17, 23, 32, 0.58);
  text-align: center;
}

.featured-empty-state > span {
  color: var(--hy-gold);
  font-size: 46px;
}

.featured-empty-state h2 {
  margin: 10px 0 8px;
  font-size: 27px;
}

.featured-empty-state p {
  margin: 0;
  color: var(--hy-muted);
}

.featured-empty-state a {
  margin-top: 22px;
  color: var(--hy-accent);
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 960px) {
  .featured-showcase {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .featured-support-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: auto;
  }

  .featured-support-card {
    grid-template-columns: 1fr;
  }

  .featured-support-cover {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 700px) {
  .featured-page.mp-static-page {
    min-height: calc(100vh - 70px);
    padding: 0 0 58px;
  }

  .featured-page-heading {
    display: grid;
    padding: 30px 0 20px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 14px;
  }

  .featured-page-heading h1 {
    margin: 7px 0 8px;
    font-size: clamp(31px, 9vw, 39px);
    line-height: 1;
    letter-spacing: -1.6px;
  }

  .featured-page-heading p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .featured-page-stat {
    min-width: 68px;
    min-height: 64px;
    padding: 10px;
    border-radius: 13px;
  }

  .featured-page-stat strong {
    font-size: 22px;
  }

  .featured-page-stat span {
    font-size: 7px;
  }

  .featured-lead-card {
    min-height: 350px;
    padding: 20px;
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 14px;
    border-radius: 18px;
  }

  .featured-card-kicker {
    gap: 7px;
    font-size: 8px;
    letter-spacing: 1px;
  }

  .featured-card-kicker b {
    width: 27px;
    height: 27px;
  }

  .featured-lead-copy h2 {
    margin: 13px 0;
    font-size: clamp(26px, 7.5vw, 34px);
    line-height: 1.02;
    letter-spacing: -1.2px;
  }

  .featured-lead-copy > p {
    display: none;
  }

  .featured-lead-genres {
    margin-top: 0;
    gap: 5px;
  }

  .featured-lead-genres a {
    padding: 5px 7px;
    font-size: 7px;
  }

  .featured-lead-actions {
    display: grid;
    margin-top: 19px;
    gap: 10px;
  }

  .featured-primary-link {
    min-height: 37px;
    width: fit-content;
    padding: 0 12px;
  }

  .featured-chapter-link {
    max-width: 180px;
  }

  .featured-lead-poster {
    border-radius: 10px;
    transform: rotate(2deg);
  }

  .featured-support-grid {
    grid-template-columns: 1fr;
  }

  .featured-support-card {
    min-height: 132px;
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .featured-support-cover {
    min-height: 132px;
    aspect-ratio: auto;
  }

  .featured-support-copy {
    padding: 14px;
  }

  .featured-support-copy h2 {
    font-size: 16px;
  }

  .featured-more-section {
    padding-top: 46px;
  }

  .featured-more-section > header {
    display: block;
  }

  .featured-more-section > header small {
    display: block;
    margin-top: 7px;
  }

  .featured-empty-state {
    min-height: 330px;
    padding: 30px 18px;
  }
}

@media (max-width: 380px) {
  .featured-page-stat {
    display: none;
  }

  .featured-page-heading {
    grid-template-columns: 1fr;
  }

  .featured-lead-card {
    grid-template-columns: minmax(0, 1fr) 88px;
    padding: 17px;
  }
}

/* Discovery pages: aligned page headers, chart hierarchy, and a calmer catalog. */
.discovery-page.mp-static-page {
  position: relative;
  min-height: calc(100vh - 90px);
  padding: 0 0 clamp(68px, 7vw, 98px);
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 70, 85, 0.1), transparent 25%),
    radial-gradient(circle at 8% 20%, rgba(125, 211, 252, 0.045), transparent 24%),
    var(--hy-bg);
  color: var(--hy-text);
}

.discovery-page-heading,
.ranking-board,
.library-page .mp-library-browser,
.discovery-page > .pagination-wrap {
  width: var(--hy-shell);
  max-width: none;
  margin-right: auto;
  margin-left: auto;
}

.discovery-page-heading {
  padding: clamp(30px, 4vw, 50px) 0 26px;
}

.discovery-breadcrumb {
  display: flex;
  margin-bottom: 23px;
  align-items: center;
  gap: 9px;
  color: #687484;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.discovery-breadcrumb a {
  color: #aeb7c4;
}

.discovery-breadcrumb a:hover {
  color: var(--hy-accent);
}

.discovery-breadcrumb span:last-child {
  color: #7f8997;
}

.discovery-page-heading-main {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 34px;
}

.discovery-page-heading-copy {
  min-width: 0;
}

.discovery-page-kicker {
  color: var(--hy-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.65px;
  text-transform: uppercase;
}

.discovery-page-heading h1 {
  margin: 8px 0 10px;
  color: #fff;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 0.98;
  letter-spacing: -2.2px;
}

.discovery-page-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--hy-muted);
  font-size: 13px;
  line-height: 1.65;
}

.discovery-page-stat {
  display: grid;
  min-width: 124px;
  min-height: 74px;
  padding: 13px 17px;
  align-content: center;
  flex: 0 0 auto;
  border: 1px solid var(--hy-line);
  border-radius: 15px;
  background: rgba(17, 23, 32, 0.76);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.discovery-page-stat strong,
.discovery-page-stat span {
  display: block;
}

.discovery-page-stat strong {
  color: #fff;
  font-size: 25px;
  line-height: 1;
}

.discovery-page-stat span {
  margin-top: 7px;
  color: #8994a3;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.75px;
  text-transform: uppercase;
}

.discovery-page .discovery-mode-tabs {
  display: grid;
  width: min(560px, var(--hy-shell));
  max-width: none;
  margin: 0 auto 34px;
  padding: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  overflow: visible;
  border: 1px solid var(--hy-line);
  border-radius: 15px;
  background: rgba(17, 23, 32, 0.82);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.discovery-page .discovery-mode-tabs a {
  min-width: 0;
  padding: 11px 16px;
  border: 0;
  border-radius: 10px;
  color: #919caa;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.discovery-page .discovery-mode-tabs a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.discovery-page .discovery-mode-tabs a.active {
  background: var(--hy-accent);
  box-shadow: 0 10px 24px rgba(255, 70, 85, 0.25);
  color: #fff;
}

.ranking-board {
  display: grid;
  gap: clamp(46px, 5vw, 68px);
}

.chart-section-heading {
  display: flex;
  margin-bottom: 18px;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.chart-section-heading > div > span {
  color: var(--hy-accent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.45px;
}

.chart-section-heading h2 {
  margin: 6px 0 0;
  color: #fff;
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.7px;
}

.chart-section-heading > p {
  margin: 0;
  color: #818d9c;
  font-size: 10px;
  font-weight: 700;
}

.chart-podium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.chart-podium-card {
  display: grid;
  min-width: 0;
  min-height: 268px;
  grid-template-columns: clamp(142px, 12vw, 178px) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--hy-line);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 52%),
    var(--hy-surface);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.24);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.chart-podium-card:hover {
  border-color: rgba(255, 70, 85, 0.48);
  transform: translateY(-3px);
}

.chart-podium-card.is-champion {
  border-color: rgba(255, 177, 27, 0.44);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 177, 27, 0.13), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 52%),
    #141922;
}

.chart-podium-cover {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  background: #202936;
}

.chart-podium-cover::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 10, 15, 0.3), transparent 42%);
  content: "";
  pointer-events: none;
}

.chart-podium-cover img,
.chart-row-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.chart-podium-card:hover .chart-podium-cover img,
.chart-row:hover .chart-row-cover img {
  transform: scale(1.035);
}

.chart-position {
  position: absolute;
  z-index: 1;
  right: 11px;
  bottom: 11px;
  display: flex;
  min-width: 54px;
  height: 48px;
  padding: 0 9px;
  align-items: baseline;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(7, 10, 15, 0.84);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
  color: #fff;
}

.chart-position small {
  color: var(--hy-accent);
  font-size: 9px;
  font-weight: 900;
}

.chart-position strong {
  font-size: 24px;
  line-height: 1;
  letter-spacing: -1px;
}

.is-champion .chart-position small {
  color: var(--hy-gold);
}

.chart-podium-copy {
  display: flex;
  min-width: 0;
  padding: 22px 18px;
  flex-direction: column;
  justify-content: center;
}

.chart-podium-copy > span {
  color: var(--hy-accent);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.is-champion .chart-podium-copy > span {
  color: var(--hy-gold);
}

.chart-podium-copy h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 7px;
  color: #fff;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.14;
  letter-spacing: -0.38px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.chart-podium-copy h2 a:hover,
.chart-row-copy h2 a:hover {
  color: var(--hy-accent);
}

.chart-podium-copy > p {
  overflow: hidden;
  margin: 0;
  color: #8994a2;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-card-stats,
.chart-row-tags {
  display: flex;
  min-width: 0;
  margin-top: 14px;
  flex-wrap: wrap;
  gap: 5px;
}

.chart-card-stats span,
.chart-row-tags span {
  display: inline-flex;
  min-height: 21px;
  padding: 3px 6px;
  align-items: center;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  color: #b6c0cc;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
}

.chart-chapter-link {
  display: block;
  overflow: hidden;
  margin-top: 14px;
  color: var(--hy-gold);
  font-size: 9px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.chart-row {
  display: grid;
  min-width: 0;
  min-height: 132px;
  padding: 9px 13px 9px 9px;
  grid-template-columns: 53px 76px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  border: 1px solid var(--hy-line);
  border-radius: 15px;
  background: rgba(17, 23, 32, 0.84);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.15);
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.chart-row:hover {
  border-color: rgba(255, 70, 85, 0.38);
  background: #151c26;
  transform: translateY(-2px);
}

.chart-row-position {
  display: grid;
  align-self: stretch;
  place-items: center;
  border-right: 1px solid var(--hy-line);
}

.chart-row-position strong {
  color: #e9edf2;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.8px;
}

.chart-row-cover {
  display: block;
  overflow: hidden;
  width: 76px;
  height: 114px;
  border-radius: 9px;
  background: #202936;
}

.chart-row-copy {
  min-width: 0;
}

.chart-row-copy h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #f7f8fa;
  font-size: 14px;
  line-height: 1.18;
  letter-spacing: -0.16px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.chart-row-copy > p {
  overflow: hidden;
  margin: 5px 0 0;
  color: #858f9c;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-row-tags {
  margin-top: 8px;
}

.chart-row-tags span {
  min-height: 18px;
  padding: 2px 5px;
  font-size: 7px;
}

.chart-row .chart-chapter-link {
  margin-top: 8px;
}

.chart-row-views {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.chart-row-views strong {
  color: #fff;
  font-size: 13px;
}

.chart-row-views span {
  color: #687484;
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.chart-row-mobile-views {
  display: none !important;
}

.ranking-empty {
  display: grid;
  min-height: 320px;
  place-items: center;
  border: 1px dashed var(--hy-line);
  border-radius: 20px;
  background: rgba(17, 23, 32, 0.55);
  color: var(--hy-muted);
  text-align: center;
}

/* Library page refinements. */
.library-page .mp-library-browser {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
}

.library-page .mp-library-filter-panel {
  overflow: hidden;
  border: 1px solid var(--hy-line);
  border-radius: 16px;
  background: rgba(17, 23, 32, 0.86);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.2);
}

.library-page .mp-library-filter-panel > summary {
  display: flex;
  border-bottom: 1px solid var(--hy-line);
  background: rgba(255, 255, 255, 0.025);
}

.library-page .mp-library-filter-panel:not([open]) > summary {
  border-bottom-color: transparent;
}

.library-page .mp-library-filter-form {
  gap: 21px;
  padding: 20px;
}

.library-page .mp-library-toolbar {
  min-height: 62px;
  margin-bottom: 18px;
  padding: 9px 11px 9px 17px;
  border-color: var(--hy-line);
  border-radius: 14px;
  background: rgba(17, 23, 32, 0.9);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.16);
}

.library-page .mp-library-result-count strong {
  font-size: 12px;
}

.library-page .mp-library-content .mp-list-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 14px;
}

.library-page .mp-library-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--hy-line);
  border-radius: 13px;
  background: rgba(17, 23, 32, 0.9);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.16);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.library-page .mp-library-card:hover {
  border-color: rgba(255, 70, 85, 0.38);
  transform: translateY(-3px);
}

.library-page .mp-library-card .mp-list-cover {
  overflow: hidden;
  border-radius: 0;
}

.library-page .mp-library-card .mp-list-cover img {
  transition: transform 0.25s ease;
}

.library-page .mp-library-card:hover .mp-list-cover img {
  transform: scale(1.025);
}

.library-page .mp-library-card-copy {
  padding: 12px;
}

.library-page .mp-library-card .mp-list-title {
  display: -webkit-box;
  min-height: 34px;
  margin: 0;
  overflow: hidden;
  color: #f6f8fb;
  font-size: 14px;
  line-height: 1.2;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.library-page .mp-library-card p {
  min-height: 14px;
  margin: 6px 0 8px;
  color: #8e99a7;
  font-size: 9px;
}

.library-page .mp-library-card-stats span,
.library-page .mp-library-card-genres a {
  border-radius: 5px;
}

.library-page .mp-library-card-genres {
  margin-top: 8px;
}

.library-page .mp-library-latest {
  min-height: 25px;
}

.library-page .mp-list-grid.is-list .mp-library-card {
  grid-template-columns: 96px minmax(0, 1fr);
  padding: 9px;
}

.library-page .mp-list-grid.is-list .mp-library-card-copy {
  padding: 4px;
}

.discovery-page > .pagination-wrap {
  margin-top: 52px;
}

@media (max-width: 1240px) {
  .chart-podium-grid {
    grid-template-columns: 1fr;
  }

  .chart-podium-card {
    min-height: 220px;
    grid-template-columns: 148px minmax(0, 1fr);
  }

  .library-page .mp-library-browser {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 20px;
  }

  .library-page .mp-library-content .mp-list-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1050px) {
  .chart-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .library-page .mp-library-browser {
    grid-template-columns: 1fr;
  }

  .library-page .mp-library-filter-panel {
    position: static;
    max-height: none;
    overflow: hidden;
  }

  .library-page .mp-library-filter-panel:not([open]) > .mp-library-filter-form {
    display: none;
  }
}

@media (max-width: 700px) {
  .discovery-page.mp-static-page {
    min-height: calc(100vh - 70px);
    padding-bottom: 58px;
  }

  .discovery-page-heading {
    padding: 24px 0 18px;
  }

  .discovery-breadcrumb {
    margin-bottom: 17px;
    font-size: 8px;
  }

  .discovery-page-heading-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
  }

  .discovery-page-kicker {
    font-size: 8px;
    letter-spacing: 1.15px;
  }

  .discovery-page-heading h1 {
    margin: 6px 0 7px;
    font-size: clamp(30px, 9vw, 38px);
    line-height: 1;
    letter-spacing: -1.45px;
  }

  .discovery-page-heading p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .discovery-page-stat {
    min-width: 72px;
    min-height: 61px;
    padding: 9px 10px;
    border-radius: 12px;
  }

  .discovery-page-stat strong {
    font-size: 19px;
  }

  .discovery-page-stat span {
    font-size: 6px;
  }

  .library-page .discovery-page-heading-main {
    grid-template-columns: 1fr;
  }

  .library-page .discovery-page-stat {
    display: none;
  }

  .library-page .discovery-page-heading h1 {
    font-size: clamp(29px, 8.2vw, 34px);
  }

  .discovery-page .discovery-mode-tabs {
    margin-bottom: 25px;
    padding: 5px;
    gap: 4px;
    border-radius: 13px;
  }

  .discovery-page .discovery-mode-tabs a {
    padding: 10px 6px;
    border-radius: 9px;
    font-size: 10px;
  }

  .ranking-board {
    gap: 42px;
  }

  .chart-section-heading {
    margin-bottom: 14px;
  }

  .chart-section-heading h2 {
    font-size: 20px;
  }

  .chart-section-heading > p {
    display: none;
  }

  .chart-podium-grid {
    gap: 10px;
  }

  .chart-podium-card {
    min-height: 186px;
    grid-template-columns: 122px minmax(0, 1fr);
    border-radius: 14px;
  }

  .chart-podium-copy {
    padding: 16px 14px;
  }

  .chart-podium-copy h2 {
    margin: 8px 0 5px;
    font-size: 16px;
    -webkit-line-clamp: 2;
  }

  .chart-card-stats {
    margin-top: 10px;
  }

  .chart-card-stats span:nth-child(3) {
    display: none;
  }

  .chart-position {
    right: 8px;
    bottom: 8px;
    min-width: 47px;
    height: 41px;
    border-radius: 10px;
  }

  .chart-position strong {
    font-size: 20px;
  }

  .chart-list {
    gap: 8px;
  }

  .chart-row {
    min-height: 112px;
    padding: 7px 9px 7px 7px;
    grid-template-columns: 39px 66px minmax(0, 1fr);
    gap: 9px;
    border-radius: 12px;
  }

  .chart-row-position strong {
    font-size: 18px;
  }

  .chart-row-cover {
    width: 66px;
    height: 99px;
    border-radius: 7px;
  }

  .chart-row-copy h2 {
    font-size: 12px;
  }

  .chart-row-copy > p {
    margin-top: 4px;
    font-size: 8px;
  }

  .chart-row-tags {
    margin-top: 6px;
    gap: 3px;
  }

  .chart-row-tags span {
    min-height: 16px;
    font-size: 6px;
  }

  .chart-row-tags span:nth-child(2) {
    display: none;
  }

  .chart-row .chart-chapter-link {
    margin-top: 6px;
    font-size: 8px;
  }

  .chart-row-views {
    display: none;
  }

  .chart-row-mobile-views {
    display: inline-flex !important;
  }

  .library-page .mp-library-browser {
    gap: 14px;
  }

  .library-page .mp-library-toolbar {
    margin-bottom: 14px;
    padding: 11px;
  }

  .library-page .mp-library-content .mp-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 9px;
  }

  .library-page .mp-library-card {
    border-radius: 10px;
  }

  .library-page .mp-library-card-copy {
    padding: 9px;
  }

  .library-page .mp-library-card .mp-list-title {
    min-height: 31px;
    font-size: 12px;
  }

  .library-page .mp-library-card p {
    margin: 5px 0 7px;
    font-size: 8px;
  }

  .library-page .mp-library-card-stats,
  .library-page .mp-library-card-genres {
    gap: 3px;
  }

  .library-page .mp-library-card-stats span,
  .library-page .mp-library-card-genres a {
    min-height: 17px;
    padding: 2px 4px;
    font-size: 7px;
  }

  .library-page .mp-library-card-genres a:nth-child(n + 3) {
    display: none;
  }

  .library-page .mp-library-latest {
    font-size: 8px;
  }

  .library-page .mp-library-latest time {
    font-size: 7px;
  }

  .discovery-page > .pagination-wrap {
    margin-top: 38px;
  }
}

@media (max-width: 380px) {
  .discovery-page-stat {
    display: none;
  }

  .discovery-page-heading-main {
    grid-template-columns: 1fr;
  }

  .chart-podium-card {
    grid-template-columns: 110px minmax(0, 1fr);
  }
}

/* Reader recovery messages must never reserve space when hidden. */
[data-reader-repair-status] {
  min-height: 0;
  padding: 12px 16px;
}

[data-reader-repair-status][hidden] {
  display: none;
}

