/* ==========================================================================
   NOVX.ONLINE — ComX Child Theme Custom Design System
   Palette synced with ComX skin-setup.php:
   Obsidian #06021D | Surface #1A1F29 | Coral #F97278 | Cyan #38BDF8 | Cream #F4EFEB
   ========================================================================== */

:root {
  --novx-dark: #06021D;
  --novx-dark-2: #111426;
  --novx-dark-3: #1A1F29;
  --novx-border-dark: rgba(255, 255, 255, 0.11);
  --novx-coral: #F97278;
  --novx-coral-hover: #F05A62;
  --novx-cyan: #38BDF8;
  --novx-cream: #F4EFEB;
  --novx-ink: #1F242E;
  --novx-muted: #6A707C;
  --novx-border: #E8DFD8;
  --novx-radius: 14px;
  --novx-font-sans: 'Noto Sans SC', 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  --novx-font-serif: 'Noto Serif SC', 'Songti SC', Georgia, serif;
}

/* Override ComX wrapper constraints cleanly on NOVX fullbleed pages */
body.novx-fullbleed {
  font-family: var(--novx-font-sans);
  color: var(--novx-ink);
  background: #ffffff;
  overflow-x: hidden;
}
body.novx-fullbleed .page_content_wrap,
body.novx-fullbleed .content_wrap,
body.novx-fullbleed .content_wrap_fullscreen,
body.novx-fullbleed .content {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}
body.novx-site a {
  text-decoration: none;
}

.novx-container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ---------- Buttons ---------- */
.novx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--novx-font-sans);
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  line-height: 1.2;
  white-space: nowrap;
}
.novx-btn-lg {
  padding: 14px 26px;
  font-size: 15px;
}
.novx-btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 8px;
}
.novx-btn-primary {
  background: linear-gradient(135deg, var(--novx-coral) 0%, #E84B63 100%);
  color: #ffffff !important;
  box-shadow: 0 10px 24px -8px rgba(249, 114, 120, 0.65);
}
.novx-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -6px rgba(249, 114, 120, 0.8);
}
.novx-btn-glass {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff !important;
  backdrop-filter: blur(10px);
}
.novx-btn-glass:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(56, 189, 248, 0.6);
  transform: translateY(-2px);
}
.novx-btn-ghost {
  background: #ffffff;
  border-color: var(--novx-border);
  color: var(--novx-ink) !important;
}
.novx-btn-ghost:hover {
  border-color: var(--novx-coral);
  color: var(--novx-coral) !important;
}
.novx-shelf-btn.is-saved {
  background: rgba(56, 189, 248, 0.14);
  border-color: var(--novx-cyan);
  color: #0284C7 !important;
}
.novx-novel-hero .novx-shelf-btn.is-saved {
  color: var(--novx-cyan) !important;
}

/* ---------- Sticky Header ---------- */
.novx-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(6, 2, 29, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--novx-border-dark);
}
body.admin-bar .novx-header {
  top: 32px;
}
.novx-header-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.novx-logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.novx-logo-word {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: #ffffff;
}
.novx-logo-word span {
  color: var(--novx-coral);
}
.novx-logo-tld {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--novx-cyan);
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 2px 6px;
  border-radius: 5px;
}

.novx-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.novx-nav-link {
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.18s ease, background 0.18s ease;
}
.novx-nav-link:hover,
.novx-nav-link.is-active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08);
}
.novx-nav-link.is-active {
  color: var(--novx-coral) !important;
}

.novx-nav-dropdown {
  position: relative;
}
.novx-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 190px;
  background: #0F1224;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s ease;
}
.novx-nav-dropdown:hover .novx-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.novx-dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  color: #D8DCE6 !important;
  font-size: 13.5px;
}
.novx-dropdown-menu a:hover {
  background: rgba(249, 114, 120, 0.14);
  color: #ffffff !important;
}
.novx-dropdown-menu small {
  color: var(--novx-cyan);
  font-weight: 700;
}

.novx-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.novx-search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 4px 6px 4px 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.novx-search-box:focus-within {
  border-color: var(--novx-cyan);
  background: rgba(255, 255, 255, 0.11);
}
.novx-search-box input {
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 13px;
  width: 170px;
  padding: 4px 0 !important;
  outline: none !important;
  box-shadow: none !important;
}
.novx-search-box input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.novx-search-box button {
  background: var(--novx-coral) !important;
  color: #ffffff !important;
  border: none !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}
.novx-search-box button svg {
  display: block;
  width: 15px;
  height: 15px;
  stroke: #ffffff !important;
}

.novx-shelf-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.novx-shelf-trigger:hover {
  border-color: var(--novx-coral);
  background: rgba(249, 114, 120, 0.16);
}
.novx-shelf-count {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  background: var(--novx-coral);
  color: #ffffff;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.novx-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
}
.novx-mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
}
.novx-mobile-nav {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px 24px;
  background: #0B0E1D;
  border-top: 1px solid var(--novx-border-dark);
}
.novx-mobile-nav.is-open {
  display: flex;
}
.novx-mobile-nav a {
  color: #E2E6F0 !important;
  font-weight: 600;
  padding: 8px 4px;
}
.novx-mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}
.novx-mobile-search input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 8px;
  padding: 8px 12px !important;
  color: #ffffff !important;
}
.novx-mobile-search button {
  background: var(--novx-coral);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 700;
}
.novx-mobile-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 6px;
}
.novx-mobile-genres a {
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Hero Section ---------- */
.novx-hero {
  position: relative;
  min-height: 640px;
  background: var(--novx-dark);
  color: #ffffff;
  display: flex;
  align-items: center;
  padding: 68px 0 104px;
  overflow: hidden;
}
.novx-hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--novx-hero-bg, radial-gradient(circle at 75% 30%, #1c315e, #06021D 70%));
  background-size: cover;
  background-position: right center;
  transform: scale(1.02);
}
.novx-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 2, 29, 0.94) 0%, rgba(6, 2, 29, 0.78) 44%, rgba(6, 2, 29, 0.22) 78%, rgba(6, 2, 29, 0.45) 100%),
    linear-gradient(180deg, rgba(6, 2, 29, 0.25) 0%, rgba(6, 2, 29, 0.0) 50%, rgba(6, 2, 29, 0.85) 100%);
}
.novx-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 36px;
  align-items: end;
}
.novx-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--novx-cyan);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.novx-hero-title {
  margin: 0 0 18px;
  font-size: clamp(44px, 6.2vw, 76px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}
.novx-hero-title .is-cyan {
  color: var(--novx-cyan);
}
.novx-hero-title .is-coral {
  color: var(--novx-coral);
}
.novx-hero-lead {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.75;
  color: #C8CEDD;
  margin: 0 0 28px;
}
.novx-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}
.novx-hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.novx-hero-metrics strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  color: #ffffff;
}
.novx-hero-metrics span {
  font-size: 12.5px;
  color: #9DA5BA;
}

/* Floating Hero Spotlight Card */
.novx-hero-spotlight {
  display: flex;
  justify-content: flex-end;
}
.novx-spotlight-card {
  display: block;
  width: 100%;
  max-width: 410px;
  background: rgba(11, 14, 30, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.novx-spotlight-card:hover {
  transform: translateY(-5px);
  border-color: var(--novx-coral);
}
.novx-spotlight-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--novx-coral);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.novx-spotlight-inner {
  display: flex;
  gap: 16px;
  align-items: center;
}
.novx-spotlight-cover {
  width: 92px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}
.novx-spotlight-rating {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #FBBF24;
  margin-bottom: 4px;
}
.novx-spotlight-info h2 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.3;
  color: #ffffff;
}
.novx-spotlight-info p {
  margin: 0 0 10px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #B8C0D4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.novx-spotlight-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--novx-cyan);
}

/* Torn Paper Bottom Edge (ComX DNA) */
.novx-torn-edge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
  z-index: 3;
  pointer-events: none;
}
.novx-torn-edge svg {
  width: 100%;
  height: 44px;
  display: block;
}

/* ---------- Sections & Headings ---------- */
.novx-section {
  padding: 54px 0;
}
.novx-genres-band {
  padding: 26px 0 8px;
}
.novx-genre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.novx-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--novx-cream);
  color: var(--novx-ink) !important;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.novx-pill span {
  font-size: 12px;
  color: var(--novx-muted);
}
.novx-pill:hover,
.novx-pill.is-active {
  background: var(--novx-dark);
  color: #ffffff !important;
  border-color: var(--novx-dark);
}
.novx-pill:hover span,
.novx-pill.is-active span {
  color: var(--novx-coral);
}

.novx-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.novx-sec-kicker {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--novx-coral);
  margin-bottom: 4px;
}
.novx-sec-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  color: var(--novx-ink);
}
.novx-sec-more {
  font-size: 14px;
  font-weight: 700;
  color: var(--novx-ink) !important;
  transition: color 0.18s ease;
}
.novx-sec-more:hover {
  color: var(--novx-coral) !important;
}

/* ---------- Novel Cards Grid ---------- */
.novx-grid-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.novx-grid-cards.is-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.novx-card {
  background: #ffffff;
  border: 1px solid var(--novx-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}
.novx-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 114, 120, 0.45);
  box-shadow: 0 22px 44px -16px rgba(6, 2, 29, 0.18);
}
.novx-card-cover-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  background: var(--novx-dark);
  overflow: hidden;
}
.novx-card-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.novx-card:hover .novx-card-cover-wrap img {
  transform: scale(1.05);
}
.novx-card-cover-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 48px;
  font-weight: 900;
  color: var(--novx-cyan);
}
.novx-badge {
  position: absolute;
  top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.novx-badge-genre {
  left: 12px;
  background: rgba(6, 2, 29, 0.78);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.novx-badge-rating {
  right: 12px;
  background: rgba(6, 2, 29, 0.82);
  color: #FBBF24;
}
.novx-card-status {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(56, 189, 248, 0.9);
}
.novx-card-status.is-completed {
  background: rgba(16, 185, 129, 0.92);
}

.novx-card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.novx-card-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}
.novx-card-title a {
  color: var(--novx-ink) !important;
}
.novx-card-title a:hover {
  color: var(--novx-coral) !important;
}
.novx-card-tagline {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--novx-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.novx-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #8A909E;
  margin-bottom: 14px;
}
.novx-card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

/* ---------- Cream Editorial Split Band ---------- */
.novx-cream-band {
  background: var(--novx-cream);
}
.novx-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 28px;
}
.novx-panel {
  background: #ffffff;
  border: 1px solid var(--novx-border);
  border-radius: 18px;
  padding: 26px;
}
.novx-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--novx-border);
}
.novx-panel-head h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: var(--novx-ink);
}
.novx-panel-head a {
  font-size: 13px;
  font-weight: 700;
  color: var(--novx-coral) !important;
}

.novx-rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.novx-rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background 0.18s ease;
}
.novx-rank-item:hover {
  background: var(--novx-cream);
}
.novx-rank-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 800;
  width: 34px;
  text-align: center;
  color: #A0A6B4;
  flex-shrink: 0;
}
.novx-rank-num.rank-1 { color: var(--novx-coral); }
.novx-rank-num.rank-2 { color: #0284C7; }
.novx-rank-num.rank-3 { color: #D97706; }

.novx-rank-thumb {
  width: 44px;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--novx-dark);
}
.novx-rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.novx-rank-info {
  flex: 1;
  min-width: 0;
}
.novx-rank-title {
  display: block;
  font-weight: 800;
  font-size: 15px;
  color: var(--novx-ink) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.novx-rank-title:hover {
  color: var(--novx-coral) !important;
}
.novx-rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12.5px;
  color: var(--novx-muted);
  margin-top: 3px;
}
.novx-rank-score {
  text-align: right;
  flex-shrink: 0;
}
.novx-rank-score strong {
  display: block;
  font-size: 13.5px;
  color: var(--novx-ink);
}
.novx-rank-score span {
  font-size: 12px;
  font-weight: 700;
  color: #D97706;
}

/* Latest Chapter Updates */
.novx-updates-list {
  display: flex;
  flex-direction: column;
}
.novx-update-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 8px;
  border-bottom: 1px dashed var(--novx-border);
  transition: background 0.15s ease;
}
.novx-update-row:last-child {
  border-bottom: none;
}
.novx-update-row:hover {
  background: #FAF8F6;
}
.novx-update-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.novx-update-genre {
  font-size: 11px;
  font-weight: 700;
  color: var(--novx-coral);
  background: rgba(249, 114, 120, 0.12);
  padding: 2px 8px;
  border-radius: 5px;
  flex-shrink: 0;
}
.novx-update-novel {
  font-size: 14px;
  font-weight: 800;
  color: var(--novx-ink) !important;
}
.novx-update-ch {
  font-size: 13.5px;
  color: var(--novx-muted) !important;
}
.novx-update-ch:hover {
  color: var(--novx-coral) !important;
}
.novx-update-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.novx-update-vol {
  font-size: 12px;
  color: #969CA8;
}
.novx-update-go {
  font-size: 12px;
  font-weight: 700;
  color: #0284C7 !important;
  background: rgba(56, 189, 248, 0.12);
  padding: 4px 10px;
  border-radius: 6px;
}
.novx-update-go:hover {
  background: var(--novx-cyan);
  color: #06021D !important;
}

/* ---------- Dark Obsidian Spotlight ---------- */
.novx-dark-spotlight {
  background: var(--novx-dark);
  color: #ffffff;
  padding: 72px 0;
}
.novx-dark-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}
.novx-dark-visual img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.novx-dark-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: #ffffff;
}
.novx-dark-quote {
  font-size: 18px;
  font-weight: 600;
  color: var(--novx-coral);
  margin: 0 0 16px;
}
.novx-dark-excerpt {
  font-size: 15px;
  line-height: 1.85;
  color: #B8C0D4;
  margin: 0 0 28px;
}
.novx-dark-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.novx-dark-author {
  font-size: 13.5px;
  color: #8E97AE;
  margin-left: 6px;
}

/* ---------- Novel Detail Page ---------- */
.novx-novel-hero {
  position: relative;
  background: var(--novx-dark);
  color: #ffffff;
  padding: 52px 0 60px;
  overflow: hidden;
}
.novx-novel-hero-bg {
  position: absolute;
  inset: -40px;
  background-image: var(--novx-cover-bg);
  background-size: cover;
  background-position: center;
  filter: blur(36px) saturate(1.2);
  opacity: 0.35;
}
.novx-novel-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 2, 29, 0.72) 0%, rgba(6, 2, 29, 0.94) 100%);
}
.novx-novel-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 38px;
  align-items: start;
}
.novx-novel-poster {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.novx-novel-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}
.novx-poster-status {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--novx-cyan);
  color: #06021D;
}
.novx-poster-status.is-completed {
  background: #10B981;
  color: #ffffff;
}
.novx-breadcrumbs {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: #9BA3B8;
  margin-bottom: 12px;
}
.novx-breadcrumbs a {
  color: #C7CFE2 !important;
}
.novx-breadcrumbs a:hover {
  color: var(--novx-coral) !important;
}
.novx-novel-title {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: #ffffff;
}
.novx-novel-tagline {
  margin: 0 0 18px;
  font-size: 16px;
  color: var(--novx-coral);
  font-weight: 600;
}
.novx-novel-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 14px;
  color: #B9C1D4;
  margin-bottom: 16px;
}
.novx-novel-chips strong { color: #ffffff; }
.novx-novel-chips .is-coral,
.is-coral { color: var(--novx-coral) !important; }
.novx-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.novx-tag {
  font-size: 12.5px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #D7DDEB;
}
.novx-novel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.novx-latest-pill {
  font-size: 13px;
  color: var(--novx-cyan) !important;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.novx-detail-layout {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.novx-synopsis-box,
.novx-toc-box {
  background: #ffffff;
  border: 1px solid var(--novx-border);
  border-radius: 18px;
  padding: 28px 30px;
}
.novx-synopsis-box h2,
.novx-toc-box h2 {
  margin: 0 0 16px;
  font-size: 21px;
  font-weight: 900;
  color: var(--novx-ink);
}
.novx-toc-box h2 span {
  font-size: 14px;
  font-weight: 500;
  color: var(--novx-muted);
}
.novx-synopsis-content {
  font-size: 15.5px;
  line-height: 1.9;
  color: #3C4250;
}
.novx-toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.novx-volume-block {
  margin-bottom: 22px;
}
.novx-volume-block:last-child {
  margin-bottom: 0;
}
.novx-volume-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--novx-coral);
  background: var(--novx-cream);
  padding: 8px 14px;
  border-radius: 8px;
  margin: 0 0 12px;
}
.novx-chapter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.novx-chapter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--novx-border);
  border-radius: 10px;
  color: var(--novx-ink) !important;
  font-size: 14.5px;
  transition: all 0.18s ease;
}
.novx-chapter-item:hover {
  border-color: var(--novx-coral);
  background: #FFF8F8;
  color: var(--novx-coral) !important;
}
.novx-chapter-item.is-last-read {
  border-color: var(--novx-cyan);
  background: rgba(56, 189, 248, 0.08);
}
.novx-ch-idx {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #939AA8;
  width: 24px;
}

/* ---------- Immersive Chapter Reader ---------- */
.novx-read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1200;
  background: rgba(255, 255, 255, 0.08);
}
.novx-read-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--novx-cyan), var(--novx-coral));
  transition: width 0.08s linear;
}

.novx-reader-shell {
  min-height: calc(100vh - 70px);
  padding-bottom: 72px;
  transition: background 0.25s ease, color 0.25s ease;
  --rd-bg: #0C0F19;
  --rd-card: #131826;
  --rd-border: rgba(255, 255, 255, 0.09);
  --rd-text: #D7DDEB;
  --rd-title: #FFFFFF;
  --rd-muted: #8C96AD;
  background: var(--rd-bg);
  color: var(--rd-text);
}
.novx-reader-shell[data-theme="oled"] {
  --rd-bg: #030306;
  --rd-card: #090A10;
  --rd-border: rgba(255, 255, 255, 0.08);
  --rd-text: #C3CAD8;
  --rd-title: #F3F6FC;
  --rd-muted: #747D92;
}
.novx-reader-shell[data-theme="sepia"] {
  --rd-bg: #EFE6D2;
  --rd-card: #FAF5E8;
  --rd-border: #E0D3B8;
  --rd-text: #2E2418;
  --rd-title: #1B130A;
  --rd-muted: #7C6B54;
}
.novx-reader-shell[data-theme="light"] {
  --rd-bg: #F3F5F8;
  --rd-card: #FFFFFF;
  --rd-border: #E5E7EB;
  --rd-text: #222733;
  --rd-title: #11141C;
  --rd-muted: #6B7280;
}

.novx-reader-bar {
  position: sticky;
  top: 70px;
  z-index: 600;
  background: var(--rd-card);
  border-bottom: 1px solid var(--rd-border);
}
body.admin-bar .novx-reader-bar {
  top: 102px;
}
.novx-reader-bar-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.novx-reader-crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
}
.novx-back-novel {
  font-weight: 800;
  color: var(--novx-coral) !important;
}
.novx-reader-vol {
  color: var(--rd-muted);
}

.novx-reader-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}
.novx-theme-swatches {
  display: flex;
  align-items: center;
  gap: 7px;
}
.novx-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.novx-swatch.is-midnight { background: #151B2E; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); }
.novx-swatch.is-oled { background: #000000; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28); }
.novx-swatch.is-sepia { background: #F0E4C8; }
.novx-swatch.is-light { background: #FFFFFF; box-shadow: inset 0 0 0 1px #D1D5DB; }
.novx-swatch.is-active {
  border-color: var(--novx-coral);
  transform: scale(1.15);
}

.novx-font-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(128, 128, 128, 0.12);
  padding: 3px 6px;
  border-radius: 8px;
  font-size: 12.5px;
}
.novx-font-ctrl button {
  background: transparent;
  border: none;
  color: var(--rd-title);
  font-weight: 800;
  padding: 3px 7px;
  cursor: pointer;
}
.novx-reader-toc-btn {
  background: var(--novx-coral);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.novx-reader-article {
  max-width: 820px;
  margin: 34px auto 0;
  padding: 48px 54px;
  background: var(--rd-card);
  border: 1px solid var(--rd-border);
  border-radius: 18px;
  box-sizing: border-box;
}
.novx-reader-header {
  padding-bottom: 26px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--rd-border);
}
.novx-reader-kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--novx-cyan);
  margin-bottom: 10px;
}
.novx-reader-header h1 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 900;
  line-height: 1.3;
  color: var(--rd-title);
}
.novx-reader-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--rd-muted);
}
.novx-reader-meta a {
  color: var(--novx-coral) !important;
}

.novx-reader-content {
  font-family: var(--novx-font-serif);
  font-size: 19px;
  line-height: 2;
  letter-spacing: 0.02em;
  color: var(--rd-text);
}
.novx-reader-content p {
  margin: 0 0 1.25em;
  text-indent: 2em;
}

.novx-chapter-nav {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--rd-border);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
}
.novx-chnav-btn,
.novx-chnav-toc {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--rd-border);
  background: rgba(128, 128, 128, 0.06);
  color: var(--rd-title) !important;
  transition: all 0.2s ease;
}
.novx-chnav-btn:hover:not(.is-disabled),
.novx-chnav-toc:hover {
  border-color: var(--novx-coral);
  background: rgba(249, 114, 120, 0.12);
}
.novx-chnav-btn.is-next {
  text-align: right;
}
.novx-chnav-btn small {
  font-size: 12px;
  color: var(--novx-coral);
  font-weight: 700;
  margin-bottom: 4px;
}
.novx-chnav-btn span {
  font-size: 14px;
  font-weight: 700;
}
.novx-chnav-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
.novx-chnav-toc {
  align-items: center;
  font-weight: 700;
  font-size: 14px;
}
.novx-kbd-hint {
  text-align: center;
  margin: 18px 0 0;
  font-size: 12.5px;
  color: var(--rd-muted);
}
.novx-kbd-hint code {
  background: rgba(128, 128, 128, 0.16);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ---------- Library & Rankings Pages ---------- */
.novx-page-banner {
  background: linear-gradient(135deg, #06021D 0%, #161B33 100%);
  color: #ffffff;
  padding: 46px 0;
}
.novx-page-banner h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: #ffffff;
}
.novx-page-banner p {
  margin: 0;
  color: #B4BDD2;
  font-size: 15px;
}

.novx-filter-bar {
  background: var(--novx-cream);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.novx-filter-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.novx-filter-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--novx-muted);
  min-width: 72px;
}
.novx-filter-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.novx-chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--novx-border);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--novx-ink) !important;
  transition: all 0.18s ease;
}
.novx-chip:hover,
.novx-chip.is-active {
  background: var(--novx-dark);
  border-color: var(--novx-dark);
  color: #ffffff !important;
}
.novx-chip.is-sort.is-active {
  background: var(--novx-coral);
  border-color: var(--novx-coral);
}
.novx-filter-sep {
  width: 1px;
  height: 18px;
  background: #D5CBC2;
  margin: 0 4px;
}

.novx-rank-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.novx-tab-btn {
  padding: 11px 22px;
  border-radius: 12px;
  background: var(--novx-cream);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 800;
  color: var(--novx-ink);
  cursor: pointer;
}
.novx-tab-btn.is-active {
  background: var(--novx-dark);
  color: #ffffff;
}
.novx-rank-board { display: none; }
.novx-rank-board.is-active { display: block; }
.novx-rank-full-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.novx-rank-full-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid var(--novx-border);
  border-radius: 16px;
}
.novx-rank-full-cover {
  width: 72px;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.novx-rank-full-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.novx-rank-full-info {
  flex: 1;
  min-width: 0;
}
.novx-rank-full-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.novx-rank-full-title {
  font-size: 19px;
  font-weight: 900;
  color: var(--novx-ink) !important;
}
.novx-tag-mini {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--novx-cream);
  color: var(--novx-ink);
}
.novx-tag-mini.is-ongoing { background: rgba(56, 189, 248, 0.14); color: #0284C7; }
.novx-tag-mini.is-completed { background: rgba(16, 185, 129, 0.14); color: #059669; }
.novx-rank-full-info p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--novx-muted);
}
.novx-rank-full-act {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */
.novx-footer {
  background: #040114;
  color: #9DA5BA;
  padding: 60px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.novx-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.novx-footer-desc {
  margin: 16px 0 0;
  font-size: 13.5px;
  line-height: 1.8;
  max-width: 320px;
}
.novx-footer-col h4 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}
.novx-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13.5px;
}
.novx-footer-col a {
  color: #9DA5BA !important;
}
.novx-footer-col a:hover {
  color: var(--novx-coral) !important;
}
.novx-footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: #6B7287;
}

/* ---------- Slide-Over Drawers (Bookshelf & Reader TOC) ---------- */
.novx-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 2, 29, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1090;
}
.novx-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 92vw);
  background: #0D1020;
  color: #ffffff;
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.novx-drawer.is-open {
  transform: translateX(0);
}
.novx-drawer-head {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.novx-drawer-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
}
.novx-drawer-close {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border: none !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.novx-drawer-body {
  padding: 18px 22px;
  overflow-y: auto;
  flex: 1;
}
.novx-shelf-empty {
  color: #8E97AE;
  font-size: 14px;
  line-height: 1.7;
  padding: 24px 8px;
  text-align: center;
}
.novx-shelf-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}
.novx-shelf-item img {
  width: 52px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 7px;
  flex-shrink: 0;
}
.novx-shelf-item-info {
  flex: 1;
  min-width: 0;
}
.novx-shelf-item-info h4 {
  margin: 0 0 4px;
  font-size: 14.5px;
  color: #ffffff;
}
.novx-shelf-item-info p {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--novx-cyan);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.novx-shelf-item-acts {
  display: flex;
  gap: 8px;
}
.novx-shelf-item-acts a,
.novx-shelf-item-acts button {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}
.novx-shelf-item-acts a {
  background: var(--novx-coral);
  color: #ffffff !important;
}
.novx-shelf-item-acts button {
  background: rgba(255, 255, 255, 0.1);
  color: #B4BDD2;
}

.novx-reader-toc-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.novx-reader-toc-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #D2D8E6 !important;
  font-size: 14px;
}
.novx-reader-toc-list a:hover {
  background: rgba(255, 255, 255, 0.07);
}
.novx-reader-toc-list a.is-current {
  background: rgba(249, 114, 120, 0.18);
  color: var(--novx-coral) !important;
  font-weight: 700;
}
.novx-reader-toc-list span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  opacity: 0.65;
}
.novx-reader-toc-list em {
  font-style: normal;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .novx-grid-cards,
  .novx-grid-cards.is-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .novx-hero-grid,
  .novx-split-grid,
  .novx-footer-grid {
    grid-template-columns: 1fr;
  }
  .novx-hero-spotlight {
    justify-content: flex-start;
  }
  .novx-search-box {
    display: none;
  }
}

@media (max-width: 768px) {
  .novx-nav {
    display: none;
  }
  .novx-mobile-toggle {
    display: inline-flex;
  }
  .novx-dark-grid,
  .novx-novel-hero-grid {
    grid-template-columns: 1fr;
  }
  .novx-novel-poster,
  .novx-dark-visual {
    max-width: 220px;
  }
  .novx-chapter-grid,
  .novx-chapter-nav {
    grid-template-columns: 1fr;
  }
  .novx-reader-article {
    padding: 28px 20px;
    margin-top: 16px;
    border-radius: 0;
  }
  .novx-rank-full-item {
    flex-wrap: wrap;
  }
  .novx-rank-full-act {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .novx-grid-cards,
  .novx-grid-cards.is-four {
    grid-template-columns: 1fr;
  }
}
