:root{
  --nhv-bg:#070A12;
  --nhv-panel:rgba(14,19,38,.55);
  --nhv-stroke:rgba(255,255,255,.08);
  --nhv-soft:rgba(255,255,255,.06);
  --nhv-text:#EAF0FF;
  --nhv-muted:rgba(234,240,255,.70);
  --nhv-muted2:rgba(234,240,255,.55);
  --nhv-accent:#7C5CFF;
  --nhv-shadow:0 18px 50px rgba(0,0,0,.45);
  --nhv-r:18px;
}

.nhv-home{
  width:min(1150px,94vw);
  margin-inline:auto;
  padding:18px 0 50px;
}

.nhv-section{
  margin-top:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border:1px solid var(--nhv-stroke);
  border-radius:calc(var(--nhv-r) + 6px);
  box-shadow:var(--nhv-shadow);
  overflow:hidden;
}

.nhv-ad{
  margin-top:18px;
  border-radius:calc(var(--nhv-r) + 6px);
  overflow:hidden;
}
.nhv-ad:empty{ display:none; }

.nhv-section__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  background:linear-gradient(180deg, rgba(0,0,0,.12), transparent);
  border-bottom:1px solid var(--nhv-soft);
}

.nhv-title{
  margin:0;
  font-size:22px;
  line-height:1.2;
  letter-spacing:.2px;
}

.nhv-headRight{ display:flex; align-items:center; gap:10px; }

.nhv-more{
  color:var(--nhv-muted);
  font-size:13px;
  text-decoration:none;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--nhv-soft);
  background:rgba(255,255,255,.03);
}
.nhv-more:hover{ border-color:rgba(124,92,255,.35); color:var(--nhv-text); }

.nhv-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  text-decoration:none;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid var(--nhv-soft);
  background:rgba(255,255,255,.04);
  color:var(--nhv-text);
  font-weight:650;
  font-size:14px;
  line-height:1;
}
.nhv-btn:hover{ border-color:rgba(124,92,255,.35); }
.nhv-btn--primary{
  border-color:rgba(124,92,255,.55);
  background:linear-gradient(135deg, rgba(124,92,255,.60), rgba(124,92,255,.14));
}
.nhv-btn--ghost{ background:rgba(0,0,0,.18); }

.nhv-hero{ padding:14px; }
.nhv-hero__frame{
  border:1px solid var(--nhv-stroke);
  background:rgba(10,14,26,.55);
  border-radius:calc(var(--nhv-r) + 10px);
  overflow:hidden;
  position:relative;
}
.nhv-hero__slides{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:100%;
  overflow:auto;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
}
.nhv-hero__slides::-webkit-scrollbar{ display:none; }
.nhv-hero__slide{
  scroll-snap-align:start;
  position:relative;
  height:420px;
  background:#0B0F1D;
  isolation:isolate;
}
.nhv-hero__slide::before{ content:""; display:none; }
.nhv-hero__link{ display:block; width:100%; height:100%; }
.nhv-hero__img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block;
  position:relative;
  z-index:1;
}
.nhv-hero__dots{
  display:flex; gap:8px;
  justify-content:center;
  padding:12px 16px 16px;
}
.nhv-hero__dots .nhv-dot{ pointer-events:auto; cursor:pointer; }
.nhv-dot{
  width:22px; height:6px; border-radius:999px;
  background:rgba(255,255,255,.18);
  box-shadow:0 8px 20px rgba(0,0,0,.25);
}
.nhv-dot.is-active{ background:rgba(124,92,255,.78); }
.nhv-hero__nav{ position:absolute; inset:12px; pointer-events:none; }
.nhv-hero__arrow{
  pointer-events:auto;
  position:absolute; top:12px;
  width:36px; height:36px;
  border-radius:12px;
  border:1px solid var(--nhv-soft);
  background:rgba(0,0,0,.22);
  color:var(--nhv-text);
  display:grid; place-items:center;
  cursor:pointer;
}

@media (max-width: 768px){
  .nhv-hero{ padding:12px; }

  .nhv-hero__slide{
    height:auto !important;
    min-height:0 !important;
    aspect-ratio: 8 / 3 !important;
    background:#0B0F1D;
  }
  .nhv-hero__link{ height:100% !important; }
  .nhv-hero__img{
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
  }
  .nhv-hero__arrow{ width:34px; height:34px; border-radius:12px; }
}
.nhv-hero__arrow:hover{ border-color:rgba(124,92,255,.35); }
.nhv-hero__arrow--prev{ left:12px; }
.nhv-hero__arrow--next{ right:12px; }
.nhv-hero__arrow svg{ width:16px; height:16px; opacity:.9; }

html[dir="rtl"] .nhv-hero__arrow--prev{ right:12px; left:auto; }
html[dir="rtl"] .nhv-hero__arrow--next{ left:12px; right:auto; }
html[dir="rtl"] .nhv-hero__arrow svg{ transform:scaleX(-1); }

html[dir="rtl"] .nhv-miniNav svg{ transform:scaleX(-1); }
html[dir="rtl"] .nhv-miniNav--pc{ flex-direction:row-reverse; }

.nhv-miniNav{ display:flex; gap:8px; }
.nhv-miniNav button{
  width:32px; height:32px;
  border-radius:12px;
  border:1px solid var(--nhv-soft);
  background:rgba(255,255,255,.03);
  color:var(--nhv-text);
  display:grid; place-items:center;
  cursor:pointer;
}
.nhv-miniNav button:hover{ border-color:rgba(124,92,255,.35); }
.nhv-miniNav svg{ width:14px; height:14px; }

.nhv-newseries__rail{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:100%;
  overflow:auto;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  padding:14px;
  gap:12px;
}
.nhv-newseries__rail::-webkit-scrollbar{ display:none; }
.nhv-feature{
  scroll-snap-align:start;
  display:grid;
  grid-template-columns:150px 1fr;
  gap:14px;
  padding:14px;
  border-radius:calc(var(--nhv-r) + 6px);
  border:1px solid var(--nhv-stroke);
  background:radial-gradient(500px 220px at 20% 0%, rgba(124,92,255,.10), transparent 60%), rgba(14,19,38,.55);
}
.nhv-cover{
  border-radius:16px;
  border:1px solid var(--nhv-soft);
  background:rgba(0,0,0,.20) center/cover no-repeat;
  aspect-ratio:3/4;
  box-shadow:0 16px 40px rgba(0,0,0,.35);
  position:relative;
  overflow:hidden;
}
.nhv-cover img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:inherit;
  display:block;
}
.nhv-home img.nhv-prog-img{
  transition: filter .28s ease, transform .28s ease, opacity .28s ease;
  will-change: filter, transform, opacity;
}
.nhv-home img.nhv-prog-img.is-loading{
  filter: blur(10px);
  transform: scale(1.02);
  opacity: .55;
}
.nhv-home img.nhv-prog-img.is-loaded{
  filter: none;
  transform: none;
  opacity: 1;
}
.nhv-newseries__list{ padding:14px; display:grid; gap:12px; }
.nhv-feature__meta{ min-width:0; }
.nhv-feature__title{
  display:block;
  margin:0 0 8px;
  font-size:18px;
  line-height:1.2;
  color:var(--nhv-text);
  text-decoration:none;
  display:-webkit-box;
  -webkit-line-clamp:1;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.nhv-feature__desc{ color:var(--nhv-muted); font-size:13px; line-height:1.6; margin:0 0 10px; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.nhv-chips{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 10px; }
.nhv-chip{ font-size:12px; color:var(--nhv-muted); padding:6px 10px; border-radius:999px; border:1px solid var(--nhv-soft); background:rgba(0,0,0,.18); white-space:nowrap; }
.nhv-feature__foot{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.nhv-stat{ font-size:12px; color:var(--nhv-muted2); display:flex; gap:10px; flex-wrap:wrap; }
.nhv-stat b{ color:var(--nhv-text); font-weight:800; }

@media (max-width: 768px){
  .nhv-feature{ grid-template-columns: 120px 1fr; align-items: flex-start; }

  .nhv-cover{ aspect-ratio: 3/4; height: auto; }

  .nhv-feature__title{ -webkit-line-clamp: 2; }

  .nhv-feature__foot{ flex-direction:column; align-items:center; justify-content:center; gap:10px; }
  .nhv-stat{ width:100%; justify-content:space-between; }
  .nhv-actions{ width:100%; display:flex; justify-content:center; }

  .nhv-actions .nhv-btn{ padding-inline: 18px; min-width: 140px; max-width: 100%; justify-content:center; }
}

.nhv-popular__body{ padding:14px; }
.nhv-popular__rail{ display:grid; grid-auto-flow:column; grid-auto-columns:170px; gap:12px; overflow:auto; scroll-snap-type:x mandatory; scrollbar-width:none; }
.nhv-popular__rail::-webkit-scrollbar{ display:none; }
.nhv-pitem{ scroll-snap-align:start; border-radius:calc(var(--nhv-r) + 6px); border:1px solid var(--nhv-stroke); background:rgba(14,19,38,.55); overflow:hidden; display:grid; grid-template-rows:170px auto; }
.nhv-pcover{ background:rgba(255,255,255,.05); }
.nhv-pcover{ position:relative; overflow:hidden; }
.nhv-pcover::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:var(--nhv-cover-bg);
  background-position:center center;
  background-repeat:no-repeat;
  background-size:cover;
  filter:blur(14px);
  transform:scale(1.08);
  opacity:.35;
}
.nhv-rank{
  position:absolute;
  top:10px;
  left:10px;
  width:40px;
  height:40px;
  border-radius:14px;
  border:1px solid rgba(124,92,255,.55);
  background:linear-gradient(135deg, rgba(124,92,255,.92), rgba(124,92,255,.35));
  color:#fff;
  display:grid;
  place-items:center;
  font-weight:900;
  font-size:15px;
  letter-spacing:-.02em;
  backdrop-filter: blur(6px);
  text-shadow:0 2px 10px rgba(0,0,0,.45);
  box-shadow:0 10px 24px rgba(0,0,0,.35);
}
.nhv-pbody{ padding:10px 10px 12px; }
.nhv-pcover img{ position:relative; z-index:1; }
.nhv-ptitle{ font-size:13px; line-height:1.25; color:var(--nhv-text); margin:0 0 6px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.nhv-pmeta{ font-size:12px; color:var(--nhv-muted); display:flex; gap:8px; flex-wrap:wrap; }
.nhv-badge{ border:1px solid var(--nhv-soft); padding:4px 8px; border-radius:999px; background:rgba(0,0,0,.18); }

.nhv-cr{ padding:14px; }
.nhv-cr.is-empty{ display:none; }
.nhv-cr__card{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
  border-radius:calc(var(--nhv-r) + 8px);
  border:1px solid var(--nhv-stroke);
  background:rgba(14,19,38,.55);
  text-decoration:none;
}
.nhv-cr__cover{ width:56px; height:74px; border-radius:14px; overflow:hidden; border:1px solid var(--nhv-soft); background:rgba(0,0,0,.22); flex:0 0 auto; }
.nhv-cr__cover img{ width:100%; height:100%; object-fit:cover; display:block; }
.nhv-cr__meta{ min-width:0; flex:1 1 auto; }
.nhv-cr__name{ display:block; font-size:14px; font-weight:800; color:var(--nhv-text); margin:0 0 4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nhv-cr__chapter{ display:block; font-size:12px; color:var(--nhv-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nhv-cr__cta{
  flex:0 0 auto;
  padding:9px 12px;
  border-radius:12px;
  border:1px solid rgba(124,92,255,.55);
  background:linear-gradient(135deg, rgba(124,92,255,.55), rgba(124,92,255,.12));
  color:var(--nhv-text);
  font-weight:800;
  font-size:12px;
}
@media (max-width: 768px){
  .nhv-cr__cta{ padding:9px 10px; }
}

.nhv-sort{
  display:flex;
  gap:6px;
  padding:4px;
  border:1px solid var(--nhv-soft);
  border-radius:12px;
  background:rgba(255,255,255,.03);
}
.nhv-sort__btn{
  border:0;
  cursor:pointer;
  font-size:12px;
  padding:7px 10px;
  border-radius:10px;
  color:var(--nhv-muted);
  background:transparent;
}
.nhv-sort__btn.is-active{ background:rgba(124,92,255,.22); color:var(--nhv-text); }

.nhv-nr{ padding:10px 14px 14px; }
.nhv-nrList{ display:flex; flex-direction:column; gap:10px; }
.nhv-nrRow{ display:flex; gap:12px; padding:12px; border-radius:calc(var(--nhv-r) + 6px); border:1px solid var(--nhv-stroke); background:rgba(14,19,38,.55); }
.nhv-nrCover{
  width:110px;
  aspect-ratio:3/4;
  border-radius:12px;
  border:1px solid var(--nhv-soft);
  background:rgba(0,0,0,.20);
  flex:0 0 110px;
  overflow:hidden;
  position:relative;
}
.nhv-nrCover img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center center;
  display:block;
}
.nhv-nrMid{ min-width:0; flex:1 1 auto; }
.nhv-nrTitle{ display:block; margin:0 0 8px; font-size:14px; line-height:1.25; color:var(--nhv-text); text-decoration:none; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.nhv-nrChaps{ display:flex; flex-direction:column; gap:6px; max-width:240px; }
.nhv-chapBtn{ display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:10px; padding:7px 10px; border-radius:12px; border:1px solid var(--nhv-soft); background:rgba(0,0,0,.16); color:var(--nhv-text); text-decoration:none; font-size:12px; line-height:1; white-space:nowrap; }
.nhv-chapBtn:hover{ border-color:rgba(124,92,255,.35); }
.nhv-chapBtn__left{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nhv-chapBtn__time{ color:var(--nhv-muted); font-size:11px; text-align:right; white-space:nowrap; }
.nhv-chapBtn svg{ width:14px; height:14px; opacity:.85; }

html[dir="rtl"] .nhv-chapBtn svg,
body.rtl .nhv-chapBtn svg{
  transform: scaleX(-1);
}

.nhv-loadmore{ display:flex; justify-content:center; padding:12px 0 4px; }
.nhv-loadmore__btn{
  border:1px solid rgba(124,92,255,.35);
  background:rgba(124,92,255,.12);
  color:var(--nhv-text);
  padding:10px 16px;
  border-radius:14px;
  font-weight:800;
  font-size:13px;
  cursor:pointer;
}
.nhv-loadmore__btn:hover{ border-color:rgba(124,92,255,.55); background:rgba(124,92,255,.16); }
.nhv-loadmore__btn.is-loading{ opacity:.65; cursor:default; }

.nhv-nr.is-grid .nhv-nrList{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:12px; }
.nhv-nr.is-grid .nhv-nrRow{ flex-direction:column; align-items:stretch; }
.nhv-nr.is-grid .nhv-nrCover{ width:100%; flex:none; aspect-ratio:1/1; border-radius:14px; }
.nhv-nr.is-grid .nhv-nrChaps{ max-width:none; }

@media (min-width: 992px){
  .nhv-nr.is-list .nhv-nrList{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px; }
  .nhv-nr.is-list .nhv-nrRow{ height:100%; }
}

@media (max-width: 768px){
  .nhv-home{ width:min(980px,92vw); }
  .nhv-hero__slide{ min-height:220px; padding:0; }
  .nhv-feature{ grid-template-columns:112px 1fr; }
  .nhv-nrChaps{ max-width:none; }

  .nhv-nrCover{ width:110px; flex-basis:110px; }
  .nhv-nrRow{ padding:14px; }

  .nhv-nr.is-grid .nhv-nrList{ grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px; }

  .nhv-nr.is-grid .nhv-chapBtn{ display:block; padding:8px 10px; }
  .nhv-nr.is-grid .nhv-chapBtn__left{ display:block; max-width:100%; }
  .nhv-nr.is-grid .nhv-chapBtn__time{ display:block; margin-top:4px; font-size:10px; text-align:left; }
  .nhv-nr.is-grid .nhv-chapBtn svg{ display:none; }

  .nhv-nr.is-list .nhv-chapBtn{ grid-template-columns: 1fr auto; }
  .nhv-nr.is-list .nhv-chapBtn__left{ max-width: 100%; }
  .nhv-nr.is-list .nhv-chapBtn__time{ font-size:7px; }
  .nhv-nr.is-list .nhv-chapBtn svg{ display:none; }
}

html[dir="rtl"] .nhv-hero__arrow--next {
    transform: scaleX(-1);
}
html[dir="rtl"] .nhv-hero__arrow--prev {
    transform: scaleX(-1);
}

html[dir="rtl"] [data-nhv-pc-prev] {
    transform: scaleX(-1);
}
html[dir="rtl"] [data-nhv-pc-next] {
    transform: scaleX(-1);
}

.nhv-manual__list{ display:flex; flex-direction:column; gap: 12px; }

.nhv-manual__capsule{
  display:flex;
  align-items: stretch;
  gap: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  padding: 10px;
}

.nhv-manual__main{
  flex: 1 1 auto;
  min-width: 0;
  display:flex;
  gap: 12px;
  align-items:center;
  text-decoration:none !important;
  color:inherit;
}

.nhv-manual__meta{ min-width: 0; display:flex; flex-direction:column; gap: 6px; }

.nhv-manual__name{
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
}

.nhv-manual__last{ font-size: 12px; opacity: .85; }

.nhv-manual__go{
  flex: 0 0 auto;
  align-self:center;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration:none !important;
  font-weight: 800;
  font-size: 12px;
  color: inherit;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  white-space: nowrap;
}
.nhv-manual__go svg{ width: 16px; height: 16px; }
html[dir="rtl"] .nhv-manual__go svg{ transform: scaleX(-1); }

.nhv-manual__cover{
  width: 72px;
  height: 98px;
  flex: 0 0 72px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  position: relative;
}
.nhv-manual__cover::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:var(--nhv-cover-bg);
  background-position:center center;
  background-repeat:no-repeat;
  background-size:cover;
  filter:blur(12px);
  transform:scale(1.08);
  opacity:.35;
}
.nhv-manual__cover img{
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  object-position: center center;
  display: block;
  position: relative;
  z-index: 1;
}
