/*!
 * Lezhin-style layer for template/wap/default/html8as5a97d1.
 * Theme colour = logo teal #00a896. Loaded after manta-ui.css. Home uses lz-* components; shared pages get
 * the Lezhin header, chips, cards and footer through overrides below.
 */
:root {
  --lz-bg: #111115;
  --lz-bg-strong: #09090b;
  --lz-surface: #1c1c21;
  --lz-surface-2: #26262b;
  --lz-line: rgba(255, 255, 255, .08);
  --lz-chip: rgba(255, 255, 255, .06);
  --lz-chip-hover: rgba(255, 255, 255, .12);
  --lz-text: #fff;
  --lz-text-subtle: #e9e9ec;
  --lz-text-muted: #a1a1a9;
  --lz-text-faint: #6f6f77;
  --lz-primary: #00a896;
  --lz-primary-hover: #1fc4b0;
  --lz-primary-900: #00463f;
  --lz-green: #66dc7e;
  --lz-purple: #dd72fa;
  --lz-max: 1200px;
  --lz-gutter: 16px;
  --lz-card-w: 160px;
}

@media (min-width: 768px) {
  :root {
    --lz-gutter: 24px;
  }
}

body.lz-page {
  background: var(--lz-bg) !important;
  color: var(--lz-text) !important;
  font-size: 14px;
  letter-spacing: -.01em;
}

.lz-page a {
  color: inherit;
  text-decoration: none;
}

.lz-wrap {
  width: min(100%, var(--lz-max));
  margin: 0 auto;
  padding: 0 var(--lz-gutter);
}

.lz-svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex: none;
}

/* ---------- top area: GNB + hero share one tinted backdrop ---------- */
.lz-top {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.lz-top-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.lz-top-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(48px) saturate(1.4);
  opacity: .55;
  transform: scale(1.3);
  transition: opacity .5s ease;
}

.lz-top-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 17, 21, .35) 0%, rgba(17, 17, 21, .55) 55%, var(--lz-bg) 100%);
}

.lz-top-backdrop.is-fading img {
  opacity: 0;
}

.lz-gnb {
  position: relative;
  z-index: 3;
  padding-top: env(safe-area-inset-top, 0);
}

.lz-gnb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.lz-logo {
  display: inline-flex;
  align-items: center;
  height: 28px;
}

.lz-logo img {
  display: block;
  width: auto;
  height: 28px;
}

.lz-gnb-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: -10px;
}

.lz-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 4px;
  color: var(--lz-text) !important;
  background: transparent;
  cursor: pointer;
}

.lz-icon-btn:hover {
  background: var(--lz-chip);
}

.lz-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 var(--lz-gutter) 4px;
  margin: 0 calc(var(--lz-gutter) * -1);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.lz-chips::-webkit-scrollbar {
  display: none;
}

.lz-chip {
  display: inline-flex;
  align-items: center;
  flex: none;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--lz-chip);
  border-radius: 4px;
  background: var(--lz-chip);
  color: var(--lz-text) !important;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color .15s ease;
}

.lz-chip:hover,
.lz-chip.is-active {
  background: var(--lz-chip-hover);
}

.lz-chip .lz-svg {
  width: 14px;
  height: 14px;
  margin-left: 4px;
}

/* ---------- hero carousel ---------- */
.lz-hero {
  position: relative;
  padding: 16px 0 8px;
}

.lz-hero-track {
  --lz-slide-w: min(86vw, 720px);
  position: relative;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 calc((100% - var(--lz-slide-w)) / 2);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.lz-hero-track::-webkit-scrollbar {
  display: none;
}

.lz-hero-slide {
  position: relative;
  flex: 0 0 var(--lz-slide-w);
  aspect-ratio: 3 / 2;
  overflow: hidden;
  scroll-snap-align: center;
  background: var(--lz-surface);
  color: var(--lz-text) !important;
  transition: opacity .3s ease;
}

.lz-hero-slide:not(.is-active) {
  opacity: .45;
}

.lz-hero-bg {
  position: absolute;
  inset: 0;
}

.lz-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(28px) brightness(.62) saturate(1.25);
  transform: scale(1.25);
}

.lz-hero-cover {
  position: absolute;
  top: 8%;
  right: 6%;
  bottom: 8%;
  aspect-ratio: 3 / 4;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
}

.lz-hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lz-hero-copy {
  position: absolute;
  left: 6%;
  right: 46%;
  bottom: 10%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lz-hero-copy em {
  align-self: flex-start;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--lz-primary);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.lz-hero-copy strong {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 8px rgba(17, 17, 21, .6);
}

.lz-hero-copy small {
  color: var(--lz-text-subtle);
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lz-hero-count {
  position: absolute;
  right: calc((100% - min(86vw, 720px)) / 2 + 12px);
  bottom: 20px;
  z-index: 2;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(17, 17, 21, .55);
  color: var(--lz-text-subtle);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.lz-hero-count b {
  color: var(--lz-text);
  font-weight: 600;
}

.lz-hero-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: -18px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 17, 21, .55);
  color: var(--lz-text);
  cursor: pointer;
}

.lz-hero-nav:hover {
  background: rgba(17, 17, 21, .85);
}

.lz-hero-nav.is-prev {
  left: calc((100% - min(86vw, 720px)) / 2 - 22px);
}

.lz-hero-nav.is-next {
  right: calc((100% - min(86vw, 720px)) / 2 - 22px);
}

@media (hover: hover) and (min-width: 768px) {
  .lz-hero-nav {
    display: inline-flex;
  }
}

@media (max-width: 767px) {
  .lz-hero-slide {
    aspect-ratio: 3 / 4;
  }

  .lz-hero-bg img {
    filter: none;
    transform: none;
  }

  .lz-hero-cover {
    display: none;
  }

  .lz-hero-slide::after {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(180deg, rgba(17, 17, 21, 0), rgba(17, 17, 21, .9));
  }

  .lz-hero-copy {
    z-index: 1;
    left: 16px;
    right: 16px;
    bottom: 40px;
  }

  .lz-hero-copy strong {
    font-size: 22px;
  }

  .lz-hero-count {
    bottom: 22px;
  }
}

/* ---------- sections ---------- */
.lz-main {
  padding-bottom: 48px;
}

.lz-section {
  padding-top: 32px;
}

.lz-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.lz-section-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--lz-text);
}

.lz-section-head h2 span {
  color: var(--lz-text-muted);
  font-weight: 500;
}

.lz-more {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 2px;
  color: var(--lz-text-subtle) !important;
  font-size: 14px;
}

.lz-more .lz-svg {
  width: 16px;
  height: 16px;
}

.lz-more:hover {
  color: var(--lz-text) !important;
}

/* horizontal rail */
.lz-rail {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 0 0 8px;
  margin: 0;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}

.lz-rail::-webkit-scrollbar {
  display: none;
}

/* 9:16 card: 3:4 cover on top, blurred extension below carries the copy */
.lz-card {
  position: relative;
  display: block;
  flex: 0 0 var(--lz-card-w);
  scroll-snap-align: start;
  color: var(--lz-text) !important;
}

.lz-card-thumb {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--lz-surface);
}

.lz-card-thumb .lz-card-ext {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
  filter: blur(18px) brightness(.55);
  transform: scale(1.3);
}

.lz-card-thumb .lz-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  transition: transform .3s ease;
}

.lz-card:hover .lz-card-img {
  transform: scale(1.03);
}

.lz-card-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 17, 21, 0) 52%, rgba(17, 17, 21, .7) 72%, rgba(17, 17, 21, .92) 100%);
}

.lz-card-badges {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  display: flex;
  gap: 4px;
}

.lz-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 10px 12px;
}

.lz-card-rank {
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 10px rgba(17, 17, 21, .5);
}

.lz-card-title {
  overflow: hidden;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lz-card-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  color: var(--lz-text-subtle);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lz-card-meta .lz-svg {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, .8);
}

.lz-badge {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 5px;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: rgba(17, 17, 21, .95);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
}

.lz-badge.is-new {
  color: var(--lz-green);
}

.lz-badge.is-event {
  color: var(--lz-purple);
}

.lz-badge.is-up {
  color: var(--lz-primary-hover);
}

.lz-badge.is-adult {
  border-color: #e5172f;
  border-radius: 999px;
  background: #e5172f;
  color: #fff;
}

@media (max-width: 767px) {
  :root {
    --lz-card-w: 132px;
  }

  .lz-card-rank {
    font-size: 44px;
  }

  .lz-card-title {
    font-size: 14px;
  }
}

/* tag chips */
.lz-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lz-tags .lz-chip {
  color: var(--lz-text-subtle) !important;
}

/* feature band (Lezhin original-style colored block) */
.lz-band {
  margin-top: 40px;
  padding: 32px 0;
  background: var(--lz-primary-900);
}

.lz-band .lz-section {
  padding-top: 0;
}

.lz-rail-lg {
  --lz-card-w: 198px;
}

@media (max-width: 767px) {
  .lz-rail-lg {
    --lz-card-w: 156px;
  }
}

/* ---------- footer ---------- */
.lz-footer {
  margin-top: 24px;
  padding: 32px 0 calc(40px + env(safe-area-inset-bottom, 0));
  border-top: 1px solid var(--lz-line);
  background: var(--lz-bg-strong);
  color: var(--lz-text-muted);
  font-size: 13px;
}

.lz-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.lz-footer-links a {
  color: var(--lz-text-subtle) !important;
}

.lz-footer-links a:hover {
  color: var(--lz-text) !important;
}

.lz-footer p {
  margin: 4px 0 0;
  color: var(--lz-text-faint);
}

.lz-footer strong {
  color: var(--lz-text-muted);
  font-weight: 600;
}

.lz-totop {
  position: fixed;
  right: 16px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--lz-line);
  border-radius: 999px;
  background: rgba(38, 38, 43, .92);
  color: var(--lz-text);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  cursor: pointer;
}

.lz-totop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- shared pages: Lezhin header bar ---------- */
.neo-page .neo-shell-header:not(.lz-gnb) {
  background: rgba(17, 17, 21, .92) !important;
  border-bottom: 1px solid var(--lz-line) !important;
  box-shadow: none !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.neo-page .neo-title-block span {
  color: var(--lz-text-muted) !important;
}

.neo-page .neo-title-block strong {
  font-weight: 600 !important;
}

.neo-page .neo-icon-btn {
  border-radius: 4px !important;
  background: transparent !important;
  border-color: transparent !important;
  color: var(--lz-text) !important;
}

.neo-page .neo-icon-btn:hover {
  background: var(--lz-chip) !important;
}

/* tab / filter rows become Lezhin chips */
.neo-page .neo-rank-tabs ul,
.neo-page .neo-day-tabs ul {
  gap: 8px !important;
}

.neo-page .neo-rank-tabs li a,
.neo-page .neo-day-tabs li span {
  display: inline-flex !important;
  align-items: center;
  height: 36px;
  padding: 0 14px !important;
  border: 1px solid var(--lz-chip) !important;
  border-radius: 4px !important;
  background: var(--lz-chip) !important;
  color: var(--lz-text-subtle) !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

.neo-page .neo-rank-tabs li.active a,
.neo-page .neo-day-tabs li.active span {
  border-color: var(--lz-text) !important;
  background: var(--lz-text) !important;
  color: var(--lz-bg) !important;
  font-weight: 600 !important;
}

.neo-page .neo-rank-tabs li::after,
.neo-page .neo-day-tabs li::after,
.neo-page .neo-rank-tabs li a::after,
.neo-page .neo-day-tabs li span::after {
  display: none !important;
}

/* list cards: flat rows, square cover corners, Lezhin numerals */
.neo-page .neo-rank-card,
.neo-page .neo-list-card {
  border-radius: 0 !important;
  border-color: transparent !important;
  border-bottom: 1px solid var(--lz-line) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.neo-page .neo-list-cover,
.neo-page .neo-list-cover img,
.neo-page .neo-rank-card .neo-list-cover img {
  border-radius: 0 !important;
}

.neo-page .neo-rank-num {
  min-width: 44px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--lz-text) !important;
  font-size: 32px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}

.neo-page .neo-rank-num.rank-top-tag {
  color: var(--lz-primary-hover) !important;
  font-size: 0 !important;
}

.neo-page .neo-rank-num.rank-top-tag::before {
  font-size: 32px;
}

.neo-page .neo-rank-num.rank-1::before { content: "1"; }
.neo-page .neo-rank-num.rank-2::before { content: "2"; }
.neo-page .neo-rank-num.rank-3::before { content: "3"; }

.neo-page .neo-mini-action {
  border-radius: 4px !important;
  background: var(--lz-chip) !important;
  border-color: var(--lz-chip) !important;
  color: var(--lz-text) !important;
}

/* ---------- sub-page bar (detail) ---------- */
.lz-subbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(17, 17, 21, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lz-subbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.lz-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  margin-left: -6px;
  padding-right: 8px;
  color: var(--lz-text) !important;
  font-size: 15px;
}

/* ---------- comic detail ---------- */
.lz-detail {
  padding-top: 16px;
  padding-bottom: 48px;
}

.lz-detail-head {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.lz-detail-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--lz-surface);
}

.lz-detail-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.lz-detail-title {
  margin: 0;
  color: var(--lz-text);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
}

.lz-detail-line,
.lz-detail-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.lz-detail-line {
  font-size: 16px;
  font-weight: 600;
}

.lz-detail-line i,
.lz-detail-stats i {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, .2);
}

.lz-detail-stats {
  color: #dadadd;
  font-size: 12px;
}

.lz-detail-stats span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.lz-detail-stats .lz-svg {
  width: 14px;
  height: 14px;
}

.lz-detail-stats .lz-star .lz-svg {
  color: #ffb800;
}

.lz-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 30px;
  margin-left: 4px;
  padding: 0 8px 0 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: transparent;
  color: var(--lz-text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.lz-pill .lz-svg {
  width: 14px;
  height: 14px;
  transition: transform .2s ease;
}

.lz-pill.is-open .lz-svg {
  transform: rotate(90deg);
}

.lz-detail-author {
  display: flex;
  gap: 8px;
  margin: 0;
  font-size: 12px;
}

.lz-detail-author span {
  color: var(--lz-text-muted);
}

.lz-detail-author em {
  color: #dadadd;
  font-style: normal;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lz-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.lz-tag {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 4px;
  background: #222225;
  color: var(--lz-text-muted);
  font-size: 12px;
}

.lz-detail-about {
  padding: 16px;
  background: #222225;
  color: var(--lz-text-subtle);
  font-size: 14px;
  line-height: 1.7;
}

.lz-detail-about .author-info {
  margin-top: 8px;
  color: var(--lz-text-muted);
  font-size: 13px;
}

.lz-detail-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--lz-line);
}

.lz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 56px;
  padding: 0 16px;
  border: 0;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.lz-btn-light {
  flex: 0 0 140px;
  background: #e9e9ec;
  color: var(--lz-bg-strong) !important;
}

.lz-btn-light:hover {
  background: #dadadd;
}

.lz-btn-light i {
  display: none;
}

.lz-btn-light.collected {
  background: var(--lz-surface-2);
  color: var(--lz-text) !important;
}

.lz-btn-primary {
  flex: 1 1 auto;
  background: #00a896;
  color: #fff !important;
}

.lz-btn-primary:hover {
  background: var(--lz-primary-hover);
}

.lz-episodes {
  margin-top: 40px;
}

.lz-ep-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
}

.lz-ep-head strong {
  font-size: 14px;
  font-weight: 600;
}

.lz-ep-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--lz-text);
  font-size: 14px;
  cursor: pointer;
}

.lz-ep-sort .lz-svg {
  width: 16px;
  height: 16px;
}

.lz-episodes .catalog-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lz-episodes .chapter-item.hide {
  display: none;
}

.lz-episodes .chapter-item {
  position: relative;
}

.lz-episodes .chapter-item a {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--lz-line);
  color: var(--lz-text) !important;
}

.lz-episodes .chapter-item a:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lz-ep-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.lz-ep-main small {
  color: var(--lz-text-muted);
  font-size: 14px;
}

.lz-ep-main strong {
  overflow: hidden;
  color: #dadadd;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lz-ep-main strong + small {
  margin-top: 6px;
}

.lz-ep-price {
  flex: none;
  color: var(--lz-text-muted);
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
}

/* read state from comic.readbuy(): dim like Lezhin */
.lz-episodes .chapter-item > i {
  display: none;
}

.lz-episodes .chapter-item:has(.i-dt-read) a {
  opacity: .45;
}

.lz-ep-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  margin-top: 16px;
  border: 1px solid var(--lz-line);
  border-radius: 4px;
  background: transparent;
  color: var(--lz-text);
  font-size: 14px;
  cursor: pointer;
}

.lz-ep-more:hover {
  background: var(--lz-chip);
}

.lz-ep-more i {
  display: none;
}

@media (max-width: 767px) {
  .lz-detail-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .lz-detail-cover {
    width: 56%;
    max-width: 240px;
    margin: 0 auto;
  }

  .lz-detail-title {
    font-size: 22px;
  }

  .lz-btn-light {
    flex-basis: 34%;
  }
}

/* inputs and primary buttons site-wide */
.neo-page .btn-primary,
.neo-page .neo-auth-submit {
  border-radius: 4px !important;
  border-color: var(--lz-primary) !important;
  background: var(--lz-primary) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.neo-page .btn-primary:hover,
.neo-page .neo-auth-submit:hover {
  border-color: var(--lz-primary-hover) !important;
  background: var(--lz-primary-hover) !important;
}

/* ---------- shared header states ---------- */
body[data-nav="update"] .lz-chip[data-nav="update"],
body[data-nav="rank"] .lz-chip[data-nav="rank"],
body[data-nav="category"] .lz-chip[data-nav="category"] {
  border-color: #fff;
  background: #fff;
  color: var(--lz-bg) !important;
  font-weight: 600;
}

body.lz-page:not([data-nav="home"]) .lz-gnb {
  border-bottom: 1px solid var(--lz-line);
  padding-bottom: 12px;
}

/* ---------- list pages (rank / update) ---------- */
.lz-list-page {
  padding-bottom: 48px;
}

.lz-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin: 0 calc(var(--lz-gutter) * -1) 16px;
  padding: 0 var(--lz-gutter);
  border-bottom: 1px solid var(--lz-line);
  scrollbar-width: none;
}

.lz-tabs::-webkit-scrollbar {
  display: none;
}

.lz-tabs > a,
.lz-tabs > span {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: none;
  height: 44px;
  padding: 0 8px;
  color: var(--lz-text-muted) !important;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.lz-tabs > .is-active,
.lz-tabs > .active {
  color: var(--lz-text) !important;
  font-weight: 600;
}

.lz-tabs > .is-active::after,
.lz-tabs > .active::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -1px;
  height: 2px;
  background: var(--lz-text);
}

.lz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--lz-card-w), 1fr));
  gap: 16px 4px;
}

.lz-grid .lz-card {
  flex: none;
}

.update-list .tab.hide[style*="block"] {
  display: block !important;
}

.update-list .tab[style*="none"] {
  display: none !important;
}

@media (max-width: 767px) {
  .lz-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lz-grid .lz-card-rank {
    font-size: 36px;
  }

  .lz-grid .lz-card-title {
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .lz-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* detail: neutralise legacy manta rules on reused hook classes */
.lz-episodes .catalog-list ul {
  display: block !important;
  padding: 0 !important;
}

.lz-episodes .chapter-item a {
  min-height: 0 !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  padding: 14px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--lz-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  font-weight: 400 !important;
  white-space: normal !important;
}

.lz-episodes .lz-ep-more {
  min-height: 48px !important;
  border: 1px solid var(--lz-line) !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: var(--lz-text) !important;
  font-weight: 500;
}

.lz-detail-actions .lz-btn {
  min-height: 56px !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}

.lz-detail-actions .lz-btn-light {
  background: #e9e9ec !important;
  color: var(--lz-bg-strong) !important;
}

.lz-detail-actions .lz-btn-light.collected {
  background: var(--lz-surface-2) !important;
  color: var(--lz-text) !important;
}

.lz-detail-actions .lz-btn-primary {
  background: #00a896 !important;
  color: #fff !important;
}

/* legacy manta globals (.active pills, .update-list grid) off inside Lezhin pages */
.lz-page .update-list {
  display: block !important;
  padding: 0 !important;
}

.lz-tabs > .update-nav-item,
.lz-tabs > .rank-nav-item,
.lz-page .kkw-sort-tabs > button {
  min-height: 0 !important;
  height: 44px;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--lz-text-muted) !important;
}

.lz-tabs > .update-nav-item.active,
.lz-tabs > .rank-nav-item.is-active,
.lz-page .kkw-sort-tabs > button.active {
  color: var(--lz-text) !important;
  font-weight: 600;
}
