body[data-page-slug="index"] .mockup-home-shell.index-unified-home {
  width: var(--index-shell, min(1500px, calc(100% - 32px)));
  max-width: 1500px;
  margin-inline: auto;
}

body[data-page-slug="index"] [data-chapter-cover-placeholder][hidden] {
  display: none !important;
}

.index-latest-shell {
  position: relative;
}

.index-latest-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 51px) / 4);
  grid-template-rows: 1fr;
  gap: 17px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.index-latest-track::-webkit-scrollbar {
  display: none;
}

.index-latest-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  background: #151e2b;
  scroll-snap-align: start;
  isolation: isolate;
}

.index-latest-card > a,
.index-latest-card img,
.index-latest-card .cover-fallback {
  display: block;
  width: 100%;
  height: 100%;
}

.index-latest-skeleton,
.index-catalog-skeleton > span {
  background: linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025));
}

.index-latest-skeleton {
  pointer-events: none;
}

.index-latest-skeleton > span:first-child {
  position: absolute;
  inset: 0;
}

.index-latest-skeleton > span:last-child {
  position: absolute;
  right: 14px;
  bottom: 18px;
  left: 14px;
  z-index: 1;
  height: 48px;
  border-radius: 10px;
  background: rgba(8, 12, 19, .42);
}

.index-latest-card > a {
  color: #fff;
}

.index-latest-card img {
  object-fit: cover;
  transition: transform .2s ease;
}

.index-latest-card .cover-fallback {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .72);
  background: linear-gradient(145deg, #1c2a3d, #111923);
}

.index-latest-overlay {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  padding: 46px 18px 18px;
  background: linear-gradient(transparent, rgba(8, 12, 19, .97));
  display: grid;
  gap: 4px;
  color: #fff;
}

.index-latest-overlay strong,
.index-latest-overlay b,
.index-latest-overlay small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.index-latest-overlay strong {
  font-size: 16px;
}

.index-latest-overlay b {
  color: #61e9ef;
  font-size: 13px;
}

.index-latest-overlay time,
.index-latest-overlay small {
  color: rgba(255, 255, 255, .73);
  font-size: 11px;
}

.index-latest-new {
  position: absolute;
  z-index: 4;
  top: 13px;
  left: 13px;
  padding: 5px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff4d8d, #ef305f);
  font-size: 11px;
  font-weight: 700;
  animation: index-new-badge-highlight .72s ease-out .16s both;
}

.index-latest-card.is-new::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: -55%;
  pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 75%, rgba(50, 214, 223, .8) 82%, rgba(255, 77, 141, .9) 88%, transparent 94%);
  animation: index-new-card-highlight .9s ease-out .1s both;
  mix-blend-mode: screen;
  opacity: .32;
}

.index-latest-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 50%;
  color: #fff;
  background: rgba(8, 12, 19, .84);
  font-size: 28px;
  line-height: 1;
  transform: translateY(-50%);
}

.index-latest-arrow.prev { left: 8px; }
.index-latest-arrow.next { right: 8px; }

.index-continue-shell {
  position: relative;
}

.index-continue-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.index-continue-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 17px;
  color: inherit;
  background: linear-gradient(155deg, #162334, #111b29);
  text-decoration: none;
  scroll-snap-align: start;
}

.index-continue-card:focus-visible {
  outline: 3px solid #32d6df;
  outline-offset: 3px;
}

.index-continue-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0b1420;
}

.index-continue-cover img,
.index-continue-cover .cover-fallback {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.index-continue-chapter {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 2;
  max-width: calc(100% - 18px);
  padding: 4px 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  color: #f8fafc;
  background: rgba(5, 10, 18, .82);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.index-continue-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  padding: 11px 11px 12px;
}

.index-continue-title {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  color: #f8fafc;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.index-continue-meta,
.index-continue-progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.index-continue-meta {
  min-width: 0;
  color: #aab8ca;
  font-size: 11px;
  line-height: 1.3;
}

.index-continue-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.index-continue-meta time {
  flex: 0 0 auto;
  color: #d8e5f4;
}

.index-continue-progress {
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #26364a;
}

.index-continue-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #32d6df, #ff4d8d);
}

.index-continue-progress-copy {
  color: #8fcdf3;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
}

.index-continue-progress-copy b {
  font-weight: 600;
}

.index-continue-arrow {
  position: absolute;
  z-index: 5;
  top: 42%;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(50, 214, 223, .32);
  border-radius: 14px;
  color: #dffcff;
  background: rgba(7, 14, 24, .92);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
  font: 700 25px/1 Kanit, sans-serif;
  transform: translateY(-50%);
  cursor: pointer;
}

.index-continue-arrow.prev { left: -8px; }
.index-continue-arrow.next { right: -8px; }
.index-continue-arrow:disabled { opacity: .34; cursor: default; }
.index-continue-arrow:focus-visible { outline: 3px solid #32d6df; outline-offset: 3px; }

.index-latest-arrow:focus-visible {
  outline: 3px solid #32d6df;
  outline-offset: 3px;
}

.index-catalog-panel {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(38, 50, 68, .98), rgba(27, 38, 53, .98));
}

.index-catalog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.index-catalog-head h2 { margin: 3px 0 0; font-size: clamp(21px, 2.5vw, 30px); }
.index-catalog-head p { margin: 4px 0 0; color: var(--member-muted, #8d9bb0); font-size: 12px; }

.index-catalog-status {
  margin: 0 0 14px;
  color: var(--member-muted, #aab5c4);
  font-size: 13px;
}

.index-home-state {
  display: grid;
  grid-column: 1 / -1;
  justify-items: start;
  gap: 7px;
  min-width: min(100%, 320px);
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, .18);
  border-radius: 16px;
  color: #aab5c4;
  background: rgba(8, 12, 19, .38);
}

.index-home-state strong { color: #f8fafc; }
.index-home-state span { max-width: 56ch; }
.index-home-state.is-error { border-color: rgba(255, 77, 141, .45); }

.index-retry-action {
  min-height: 40px;
  padding: 7px 13px;
  border: 1px solid rgba(50, 214, 223, .42);
  border-radius: 999px;
  color: #dffcff;
  background: rgba(50, 214, 223, .12);
  font: 600 13px Kanit, sans-serif;
  cursor: pointer;
}

.index-catalog-skeleton {
  min-height: 200px;
  pointer-events: none;
}

.index-catalog-skeleton > span:first-child {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
}

.index-catalog-skeleton > span:last-child {
  align-self: center;
  height: 120px;
  border-radius: 12px;
}

.index-unified-home .member-catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.index-unified-home .member-catalog-card {
  grid-template-columns: minmax(0, 3fr) minmax(0, 4fr);
  align-items: stretch;
  aspect-ratio: 7 / 4;
  padding: 0;
  border-radius: 19px;
  background: #151f2d;
}

.index-unified-home .member-catalog-cover {
  width: 100%;
  height: 100%;
  margin: 0;
  aspect-ratio: 3 / 4;
  align-self: stretch;
  border: 0;
  border-radius: 18px 0 0 18px;
}

.index-unified-home .member-catalog-body {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  align-content: stretch;
  gap: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 6px 8px;
}

.index-unified-home .member-chapter-list {
  display: grid;
  align-self: stretch;
  grid-template-rows: none;
  grid-auto-rows: minmax(0, 1fr);
  width: 100%;
  min-height: 0;
  gap: 4px;
}

.index-unified-home .member-chapter-row {
  height: 100%;
  min-height: 0;
  padding: 3px 6px;
}

.index-unified-home .member-chapter-row strong {
  font-size: 12px;
}

@media (max-width: 1199px) and (min-width: 900px) {
  .index-unified-home .member-catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 899px) and (min-width: 769px) {
  .index-unified-home .member-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@keyframes index-new-badge-highlight {
  0% { opacity: .3; transform: translateY(5px) scale(.92); box-shadow: 0 0 0 rgba(255, 77, 141, 0); }
  55% { opacity: 1; transform: translateY(-2px) scale(1.06); box-shadow: 0 0 18px rgba(255, 77, 141, .46); }
  100% { opacity: 1; transform: none; box-shadow: 0 0 8px rgba(255, 77, 141, .22); }
}

@keyframes index-new-card-highlight {
  0% { opacity: 0; transform: rotate(-18deg) scale(.82); }
  48% { opacity: .38; }
  100% { opacity: 0; transform: rotate(105deg) scale(1.05); }
}

@media (hover: hover) and (pointer: fine) {
  .index-latest-card:hover img {
    transform: scale(1.03);
  }
}

@media (max-width: 720px) {
  .index-latest-track {
    display: flex;
    gap: 12px;
  }

  .index-latest-card {
    flex: 0 0 calc(50% - 6px);
    border-radius: 16px;
  }

  .index-latest-overlay {
    padding: 38px 12px 12px;
  }

  .index-latest-arrow {
    display: none;
  }
}

@media (max-width: 780px) {
  .index-continue-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 10px) / 2);
    gap: 10px;
    margin-inline: -2px;
    padding: 2px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .index-continue-grid::-webkit-scrollbar {
    display: none;
  }

  .index-continue-card {
    border-radius: 15px;
  }

  .index-continue-copy {
    gap: 7px;
    padding: 9px 9px 10px;
  }

  .index-continue-title {
    min-height: 39px;
    font-size: 14px;
  }

  .index-continue-meta {
    display: grid;
    gap: 4px;
    font-size: 10px;
  }

  .index-continue-meta time {
    justify-self: start;
  }

  .index-continue-arrow.prev { left: -5px; }
  .index-continue-arrow.next { right: -5px; }
}

@media (max-width: 768px) {
  .index-catalog-panel { padding: 13px; border-radius: 20px; }
  .index-catalog-head { display: grid; grid-template-columns: minmax(0, 1fr); }
  .index-unified-home .member-catalog-grid { grid-template-columns: 1fr; gap: 11px; }
  .index-unified-home .member-catalog-card { grid-template-columns: minmax(0, 3fr) minmax(0, 4fr); padding: 0; }
  .index-unified-home .member-catalog-cover { width: 100%; }
  .index-unified-home .member-catalog-body { padding: 7px 8px; }
  .index-catalog-skeleton > span:first-child { width: 100%; }
  .index-catalog-skeleton { min-height: 0; }
}

@media (max-width: 380px) {
  .index-unified-home .member-catalog-body { padding: 6px; }
  .index-unified-home .member-chapter-list { gap: 3px; }
  .index-unified-home .member-chapter-row { padding-inline: 5px; }
  .index-unified-home .member-chapter-row strong { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .index-latest-track,
  .index-continue-grid { scroll-behavior: auto; }

  .index-latest-card,
  .index-latest-card::before,
  .index-latest-new,
  .index-latest-card img {
    animation: none !important;
    transition: none !important;
  }

  .index-latest-card.is-new::before { display: none; }
  .index-reveal.is-visible { animation: none !important; }
}
