/* ===================================================================
   STELLAR READER - CORE DESIGN SYSTEM (COTE-READER EXACT REPLICA)
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=Inter:wght@300;400;500;600;700&family=Lora:ital,wght@0,400;0,600;1,400&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300&family=Noto+Serif+JP:wght@700;900&family=Playfair+Display:ital,wght@0,500;0,700;1,400&family=Roboto:wght@300;400;500&display=swap');

:root {
  --bg-canvas: #07070a;
  --bg-surface: #0e0f14;
  --bg-card: #13141c;
  --bg-card-hover: #191a24;
  --bg-overlay: rgba(7, 7, 10, 0.88);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --accent-primary: #e11d48; /* cote-reader crimson/rose */
  --accent-primary-hover: #be123c;
  --accent-primary-glow: rgba(225, 29, 72, 0.35);

  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif-reading: 'Merriweather', Georgia, serif;
  --font-serif-display: 'Cinzel', serif;
  --font-literary: 'Lora', Georgia, serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.7);
  --transition-smooth: 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-ui);
  background-color: var(--bg-canvas);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch;
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-canvas);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

::selection {
  background: var(--accent-primary);
  color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===================================================================
   TOP NAVBAR (HIDDEN AS REQUESTED)
   =================================================================== */
.navbar {
  display: none !important;
}

/* ===================================================================
   HOMEPAGE CELESTIAL ATMOSPHERE (COTE-INSPIRED, OBSIDIAN & CRIMSON)
   =================================================================== */
.home-celestial-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  contain: strict;
  transform: translateZ(0);
  animation: homeBgFadeIn 450ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes homeBgFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Authentic Japanese Light Novel Bunko Watermark (Vector/Typography, Zero AI Art) */
.home-bg-kanji {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-4deg);
  font-family: 'Cinzel', 'Noto Serif JP', serif;
  font-size: clamp(8rem, 20vw, 18rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #ffffff;
  opacity: 0.026;
  pointer-events: none;
  user-select: none;
  text-shadow: 0 0 50px rgba(225, 29, 72, 0.3);
  line-height: 1;
  white-space: nowrap;
}

/* Subtle Fine Starlight / Dot Grid Mesh */
.home-bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 30%, rgba(0, 0, 0, 0.95) 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 30%, rgba(0, 0, 0, 0.95) 0%, transparent 80%);
  opacity: 0.75;
}

/* Primary Luminous Core Nebula (Crimson & Rose / Light Novel Signature) */
.home-bg-nebula-primary {
  position: absolute;
  top: 24%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  max-width: 1100px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(225, 29, 72, 0.22) 0%, rgba(159, 18, 57, 0.12) 38%, rgba(88, 28, 135, 0.04) 60%, transparent 75%);
  filter: blur(55px);
  opacity: 0.9;
  animation: nebulaBreathePrimary 12s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes nebulaBreathePrimary {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.85;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.06) translateY(-8px);
    opacity: 0.96;
  }
}

/* Secondary Deep Cosmic Glow (Sapphire & Midnight Depth) */
.home-bg-nebula-secondary {
  position: absolute;
  top: 36%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 98vw;
  max-width: 1400px;
  height: 750px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.16) 0%, rgba(30, 58, 138, 0.09) 40%, rgba(15, 23, 42, 0.08) 60%, transparent 75%);
  filter: blur(75px);
  opacity: 0.85;
  animation: nebulaBreatheSecondary 18s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes nebulaBreatheSecondary {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.04) translateY(6px);
    opacity: 0.92;
  }
}

/* Soft Top Ambient Light */
.home-bg-nebula-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 75vw;
  max-width: 900px;
  height: 240px;
  background: radial-gradient(ellipse at top, rgba(244, 63, 94, 0.13) 0%, transparent 70%);
  filter: blur(40px);
}

/* Subtle Crimson Horizon Flare */
.home-bg-horizon-line {
  position: absolute;
  top: 235px;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  max-width: 920px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(225, 29, 72, 0) 15%, rgba(225, 29, 72, 0.35) 50%, rgba(225, 29, 72, 0) 85%, transparent 100%);
  filter: blur(0.5px);
  opacity: 0.85;
}

/* Subtle Floating Accent Orb */
.home-bg-glow-orb {
  position: absolute;
  top: 12%;
  right: 15%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.09) 0%, transparent 70%);
  filter: blur(45px);
}

/* ===================================================================
   HOMEPAGE (CENTER SEARCH & NOVEL GRID)
   =================================================================== */
.cote-home-container {
  padding: 4.5rem 0 6rem 0;
}

.cote-home-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #f43f5e;
  background: rgba(225, 29, 72, 0.09);
  border: 1px solid rgba(225, 29, 72, 0.25);
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  box-shadow: 0 0 20px rgba(225, 29, 72, 0.12);
}

.cote-home-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.cote-main-title {
  font-family: var(--font-serif-display);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #ffffff;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.85), 0 2px 8px rgba(0, 0, 0, 0.9);
}

.cote-sub-title {
  font-size: 1.05rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Centered Search Bar with Frosted Glassmorphic Glow */
.cote-center-search-wrap {
  max-width: 520px;
  margin: 2rem auto 0 auto;
  background: rgba(14, 15, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  padding: 0.35rem 1.15rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  transition: all var(--transition-smooth);
}

.cote-center-search-wrap:focus-within {
  background: rgba(18, 20, 30, 0.90);
  border-color: rgba(225, 29, 72, 0.6);
  box-shadow: 0 0 24px var(--accent-primary-glow), 0 8px 32px rgba(0, 0, 0, 0.5);
  transform: translateY(-1px);
}

.cote-search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
  margin-right: 0.5rem;
}

.cote-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: #ffffff;
  padding: 0.65rem 0.25rem;
}

.cote-search-kbd {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Grid - 5 novels across desktop with larger cards */
.cote-novels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  justify-content: center;
  gap: 1.75rem;
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 1200px) {
  .cote-novels-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .cote-novels-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cote-novel-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg, 14px);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  cursor: pointer;
  position: relative;
}

.cote-novel-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(225, 29, 72, 0.15);
}

.cote-novel-card:active {
  transform: translateY(-2px) scale(0.985);
  transition-duration: 100ms;
}

.cote-card-cover-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #000000;
}

.cote-card-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.cote-novel-card:hover .cote-card-cover-img {
  transform: scale(1.04);
}

.cote-number-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #ffffff;
  z-index: 2;
}

.cote-card-info {
  padding: 0.85rem 1rem 0.95rem 1rem;
  background: var(--bg-card);
}

.cote-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  transition: color var(--transition-smooth);
}

.cote-novel-card:hover .cote-card-title {
  color: #fecdd3;
}

.cote-card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
}

@media (max-width: 520px) {
  .cote-novels-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
  .cote-card-info {
    padding: 0.65rem 0.75rem 0.75rem 0.75rem;
  }
  .cote-card-title {
    font-size: 0.88rem;
  }
  .cote-number-badge {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
    top: 0.5rem;
    left: 0.5rem;
  }
}

/* ===================================================================
   PAGE TRANSITION & INTERACTION ANIMATIONS (SMOOTH TOUCH)
   =================================================================== */
.page-view-transition {
  animation: pageViewEnter 280ms cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: opacity, transform;
}

@keyframes pageViewEnter {
  0% {
    opacity: 0;
    transform: translateY(7px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-view-transition .select-series-title {
  animation: elementGlide 300ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.page-view-transition .select-quote-box {
  animation: elementGlide 340ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.page-view-transition .select-hero-actions {
  animation: elementGlide 380ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes elementGlide {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Series Atmospheric Background (Exact cote-reader.me style: 92% opacity, 6px blur, cinematic overlay) */
.cote-backdrop-container {
  position: fixed;
  inset: 0;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  animation: backdropEnter 400ms cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: opacity;
}

@keyframes backdropEnter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cote-backdrop-layer {
  position: absolute;
  inset: 0;
  will-change: opacity;
}

.cote-backdrop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
  opacity: 0.92;
  transition: opacity 0.35s ease;
}

.cote-overlay-side {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(6, 14, 36, 0.50) 0%, rgba(6, 14, 36, 0.25) 45%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.cote-overlay-radial {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(4, 5, 12, 0.55) 0%, rgba(4, 5, 12, 0.22) 50%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

.cote-overlay-top {
  position: absolute;
  inset-x: 0;
  top: 0;
  height: 7.5rem;
  background: linear-gradient(to bottom, rgba(5, 5, 8, 0.40) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.cote-overlay-bottom {
  position: absolute;
  inset-x: 0;
  bottom: 0;
  height: 22rem;
  background: linear-gradient(to top, #050508 0%, rgba(5, 5, 8, 0.45) 50%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* ===================================================================
   SERIES & VOLUME SELECTOR (EXACT COTE-READER.ME/COTE/SELECT)
   =================================================================== */
.select-page-hero {
  text-align: center;
  padding: 4rem 1rem 3rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 3rem;
}

.select-series-title {
  font-family: var(--font-serif-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.95), 0 2px 8px rgba(0, 0, 0, 0.9);
}

.select-japanese-title {
  font-size: 1.15rem;
  color: #fb7185;
  font-weight: 600;
  margin-bottom: 1.6rem;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.select-quote-box {
  max-width: 720px;
  margin: 0 auto 2.25rem auto;
  padding: 1.35rem 2rem;
  background: rgba(10, 11, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
}

.select-quote-text {
  font-style: italic;
  font-size: 1.15rem;
  color: #f8fafc;
  line-height: 1.7;
  margin-bottom: 0.65rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.select-quote-author {
  font-size: 0.88rem;
  color: #fb7185;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.select-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-cote-red {
  background: var(--accent-primary);
  color: #ffffff;
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all var(--transition-smooth);
  box-shadow: 0 0 20px var(--accent-primary-glow);
  text-decoration: none;
}

.btn-cote-red:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 25px var(--accent-primary-glow);
}

.btn-cote-red:active {
  transform: scale(0.965);
  transition-duration: 100ms;
}

.btn-cote-ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition-smooth);
  text-decoration: none;
}

.btn-cote-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.btn-cote-ghost:active {
  transform: scale(0.965);
  transition-duration: 100ms;
}

.btn-cote-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-smooth);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-cote-reset:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.25);
}

.btn-cote-reset:active {
  transform: scale(0.965);
  transition-duration: 100ms;
}

.cote-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #f1f5f9;
  background: rgba(12, 13, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  transition: all var(--transition-smooth);
  text-decoration: none;
}

.cote-back-link:hover {
  color: #ffffff;
  background: rgba(225, 29, 72, 0.22);
  border-color: rgba(225, 29, 72, 0.5);
  box-shadow: 0 4px 22px rgba(225, 29, 72, 0.25);
  transform: translateX(-3px);
}

.cote-back-link:active {
  transform: scale(0.96);
  transition-duration: 100ms;
}

.select-page-subtitle {
  color: #e2e8f0;
  font-size: 1.05rem;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  letter-spacing: 0.02em;
}

.cote-chapter-header-label {
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #cbd5e1;
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* Volume Cards */
.cote-volume-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: 2.5rem;
  transition: border-color var(--transition-smooth);
}

.cote-volume-card:hover {
  border-color: var(--border-strong);
}

.cote-vol-cover-img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.cote-vol-title {
  font-family: var(--font-serif-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.cote-vol-char-tag {
  display: inline-block;
  font-size: 0.82rem;
  color: #fecdd3;
  background: rgba(225, 29, 72, 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

/* ===================================================================
   CHAPTER BULLETS & PROGRESS INDICATORS
   =================================================================== */
.cote-chapter-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.cote-chapter-bullet-item {
  display: flex;
  flex-direction: column;
  background: rgba(18, 20, 29, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition: all var(--transition-smooth);
  overflow: hidden;
  position: relative;
}

.cote-chapter-bullet-item.is-completed {
  border-left: 3px solid #10b981;
  background: rgba(16, 185, 129, 0.04);
}

.cote-chapter-bullet-item.is-in-progress {
  border-left: 3px solid #e11d48;
  background: rgba(225, 29, 72, 0.04);
}

.cote-chapter-bullet-item:hover {
  background: rgba(30, 32, 48, 0.85);
  border-color: rgba(225, 29, 72, 0.4);
  transform: translateX(3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.cote-chapter-bullet-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.15rem;
  color: #f1f5f9;
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  gap: 1rem;
}

.cote-ch-link-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.cote-ch-bullet-icon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  transition: background var(--transition-smooth);
}

.cote-chapter-bullet-item.is-completed .cote-ch-bullet-icon {
  background: #10b981;
}

.cote-chapter-bullet-item.is-in-progress .cote-ch-bullet-icon {
  background: #e11d48;
}

.cote-ch-num {
  font-weight: 700;
  color: #cbd5e1;
  white-space: nowrap;
}

.cote-ch-title {
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cote-chapter-bullet-item:hover .cote-ch-title {
  color: #f8fafc;
}

.cote-ch-link-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Badges */
.cote-ch-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  line-height: 1;
}

.cote-ch-badge.completed {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.cote-ch-badge.in-progress {
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid rgba(225, 29, 72, 0.35);
  color: #fb7185;
}

/* Inline Chapter Progress Track */
.cote-ch-progress-track {
  height: 2.5px;
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.cote-ch-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #e11d48, #f43f5e);
  transition: width 300ms ease;
}

/* Volume Overall Progress Card */
.cote-vol-progress-summary {
  background: rgba(18, 20, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.25rem;
  margin: 1.25rem 0 1.5rem 0;
  backdrop-filter: blur(8px);
}

.cote-vol-prog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
  font-size: 0.84rem;
}

.cote-vol-prog-label {
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
}

.cote-vol-prog-stat {
  font-weight: 700;
  color: #f1f5f9;
}

.cote-vol-prog-track {
  height: 6px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.cote-vol-prog-fill {
  height: 100%;
  background: linear-gradient(90deg, #e11d48 0%, #f43f5e 70%, #fb7185 100%);
  border-radius: 4px;
  transition: width 400ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.4);
}


/* Toast */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  color: #ffffff;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideIn 250ms ease-out;
}

@keyframes slideIn {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===================================================================
   COTE YEAR SELECTOR (COMPACT 3-BUTTON DESKTOP/MOBILE VIEWPORT)
   =================================================================== */
.cote-year-select-container {
  max-width: 1040px;
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

.cote-year-header {
  text-align: center;
  margin-bottom: 2.8rem;
}

.cote-year-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.cote-year-card {
  position: relative;
  background: rgba(18, 19, 26, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 2.2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: all 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  min-height: 290px;
}

.cote-year-card.active {
  cursor: pointer;
  border-color: rgba(225, 29, 72, 0.4);
}

.cote-year-card.active:hover {
  transform: translateY(-5px);
  border-color: rgba(225, 29, 72, 0.75);
  box-shadow: 0 16px 40px rgba(225, 29, 72, 0.25), 0 0 25px rgba(225, 29, 72, 0.15);
  background: rgba(24, 25, 34, 0.88);
}

.cote-year-card.active:hover .cote-year-num {
  color: rgba(225, 29, 72, 0.25);
  transform: scale(1.08);
}

.cote-year-card.active:hover .cote-year-btn {
  background: #f43f5e;
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.5);
}

.cote-year-card.disabled {
  opacity: 0.62;
  cursor: not-allowed;
  border-style: dashed;
}

.cote-year-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e11d48, transparent);
  opacity: 0.8;
}

.cote-year-num {
  position: absolute;
  top: 0.75rem;
  right: 1.25rem;
  font-family: 'Cinzel', serif;
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  transition: all 0.3s ease;
}

.cote-year-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
  width: fit-content;
}

.cote-year-badge.active {
  background: rgba(225, 29, 72, 0.15);
  color: #fb7185;
  border: 1px solid rgba(225, 29, 72, 0.35);
}

.cote-year-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e11d48;
  box-shadow: 0 0 8px #e11d48;
}

.cote-year-badge.coming-soon {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cote-year-title {
  font-family: 'Cinzel', serif;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  margin-bottom: 0.4rem;
}

.cote-year-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 1.2rem;
}

.cote-year-meta {
  font-size: 0.76rem;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.75rem;
}

.cote-year-action {
  margin-top: auto;
}

.cote-year-btn {
  width: 100%;
  box-sizing: border-box;
  font-size: 0.88rem !important;
  padding: 0.65rem 1rem !important;
  gap: 0.4rem;
}

.cote-year-btn.disabled {
  opacity: 0.6;
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  cursor: not-allowed;
}

@media (max-width: 820px) {
  .cote-year-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .cote-year-card {
    min-height: auto;
  }
}

@media (max-width: 900px) {
  .cote-volume-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .cote-main-title {
    font-size: 2rem;
  }
}

/* ===================================================================
   SERIES THEME SYSTEM FOR STORY & VOLUME CHOOSER CARDS
   =================================================================== */

.story-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.6rem;
  align-items: stretch;
}

.volume-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

/* Base Choice Card */
.choice-card {
  position: relative;
  background: rgba(18, 19, 26, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: all 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  min-height: 290px;
  cursor: pointer;
}

.choice-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0.85;
}

.choice-card-num {
  position: absolute;
  top: 0.75rem;
  right: 1.25rem;
  font-family: 'Cinzel', serif;
  font-size: 4.8rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  transition: all 0.3s ease;
}

.choice-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  margin-bottom: 1.15rem;
  width: fit-content;
}

.choice-card-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.choice-card-title {
  font-family: 'Cinzel', serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.choice-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 1.1rem;
}

.choice-card-meta {
  font-size: 0.76rem;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.75rem;
}

.choice-card-action {
  margin-top: auto;
}

.choice-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

/* Volume Card Thumbnail Header */
.volume-thumb-header {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.volume-card-cover-thumb {
  width: 58px;
  height: 82px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.12);
  flex-shrink: 0;
}

.choice-vol-progress {
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

.choice-vol-prog-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.choice-vol-prog-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.choice-vol-prog-fill {
  height: 100%;
  background: var(--accent-primary, #e11d48);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.theme-lotm .choice-vol-prog-fill { background: #eab308; }
.theme-orv .choice-vol-prog-fill { background: #38bdf8; }
.theme-ri .choice-vol-prog-fill { background: #10b981; }
.theme-ss .choice-vol-prog-fill { background: #c084fc; }
.theme-cote .choice-vol-prog-fill { background: #e11d48; }
.theme-spring .choice-vol-prog-fill { background: #f472b6; }

/* 1. THEME: COTE (Crimson) */
.theme-cote .choice-card-glow { background: linear-gradient(90deg, transparent, #e11d48, transparent); }
.theme-cote .choice-card-badge { background: rgba(225, 29, 72, 0.15); color: #fb7185; border: 1px solid rgba(225, 29, 72, 0.35); }
.theme-cote .choice-card-badge-dot { background: #e11d48; box-shadow: 0 0 8px #e11d48; }
.theme-cote .choice-card-btn { background: #e11d48; color: #fff; }
.theme-cote .choice-card:hover {
  transform: translateY(-5px);
  border-color: rgba(225, 29, 72, 0.75);
  box-shadow: 0 16px 40px rgba(225, 29, 72, 0.25), 0 0 25px rgba(225, 29, 72, 0.15);
  background: rgba(24, 25, 34, 0.88);
}
.theme-cote .choice-card:hover .choice-card-num { color: rgba(225, 29, 72, 0.25); transform: scale(1.08); }
.theme-cote .choice-card:hover .choice-card-btn { background: #f43f5e; box-shadow: 0 6px 20px rgba(225, 29, 72, 0.5); }

/* 2. THEME: LOTM (Victorian Gold / Occult Amber) */
.theme-lotm .choice-card-glow { background: linear-gradient(90deg, transparent, #eab308, transparent); }
.theme-lotm .choice-card-badge { background: rgba(234, 179, 8, 0.15); color: #fef08a; border: 1px solid rgba(234, 179, 8, 0.4); }
.theme-lotm .choice-card-badge-dot { background: #eab308; box-shadow: 0 0 8px #eab308; }
.theme-lotm .choice-card-btn { background: #eab308; color: #0a0a0f; font-weight: 700; }
.theme-lotm .choice-card:hover {
  transform: translateY(-5px);
  border-color: rgba(234, 179, 8, 0.75);
  box-shadow: 0 16px 40px rgba(234, 179, 8, 0.22), 0 0 25px rgba(234, 179, 8, 0.14);
  background: rgba(26, 25, 20, 0.88);
}
.theme-lotm .choice-card:hover .choice-card-num { color: rgba(234, 179, 8, 0.22); transform: scale(1.08); }
.theme-lotm .choice-card:hover .choice-card-btn { background: #facc15; box-shadow: 0 6px 20px rgba(234, 179, 8, 0.45); }

/* 3. THEME: ORV (Constellation Cyan / Blue) */
.theme-orv .choice-card-glow { background: linear-gradient(90deg, transparent, #0ea5e9, transparent); }
.theme-orv .choice-card-badge { background: rgba(14, 165, 233, 0.15); color: #7dd3fc; border: 1px solid rgba(14, 165, 233, 0.4); font-family: monospace; letter-spacing: 0.1em; }
.theme-orv .choice-card-badge-dot { background: #38bdf8; box-shadow: 0 0 8px #38bdf8; }
.theme-orv .choice-card-btn { background: #0284c7; color: #fff; }
.theme-orv .choice-card:hover {
  transform: translateY(-5px);
  border-color: rgba(14, 165, 233, 0.75);
  box-shadow: 0 16px 40px rgba(14, 165, 233, 0.24), 0 0 25px rgba(14, 165, 233, 0.16);
  background: rgba(18, 24, 38, 0.88);
}
.theme-orv .choice-card:hover .choice-card-num { color: rgba(14, 165, 233, 0.22); transform: scale(1.08); }
.theme-orv .choice-card:hover .choice-card-btn { background: #38bdf8; color: #07070a; box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5); }

/* 4. THEME: REVEREND INSANITY (Spirit Emerald / Jade) */
.theme-ri .choice-card-glow { background: linear-gradient(90deg, transparent, #10b981, transparent); }
.theme-ri .choice-card-badge { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.4); }
.theme-ri .choice-card-badge-dot { background: #10b981; box-shadow: 0 0 8px #10b981; }
.theme-ri .choice-card-btn { background: #059669; color: #fff; }
.theme-ri .choice-card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.75);
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.24), 0 0 25px rgba(16, 185, 129, 0.16);
  background: rgba(18, 28, 24, 0.88);
}
.theme-ri .choice-card:hover .choice-card-num { color: rgba(16, 185, 129, 0.22); transform: scale(1.08); }
.theme-ri .choice-card:hover .choice-card-btn { background: #34d399; color: #07070a; box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5); }

/* 5. THEME: SHADOW SLAVE (Nightmare Violet / Eclipse) */
.theme-ss .choice-card-glow { background: linear-gradient(90deg, transparent, #a855f7, #f43f5e, transparent); }
.theme-ss .choice-card-badge { background: rgba(168, 85, 247, 0.15); color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.4); }
.theme-ss .choice-card-badge-dot { background: #c084fc; box-shadow: 0 0 8px #c084fc; }
.theme-ss .choice-card-btn { background: #9333ea; color: #fff; }
.theme-ss .choice-card:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, 0.75);
  box-shadow: 0 16px 40px rgba(168, 85, 247, 0.25), 0 0 25px rgba(244, 63, 94, 0.18);
  background: rgba(25, 20, 34, 0.88);
}
.theme-ss .choice-card:hover .choice-card-num { color: rgba(168, 85, 247, 0.22); transform: scale(1.08); }
.theme-ss .choice-card:hover .choice-card-btn { background: #a855f7; box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5); }

/* 6. THEME: SPRING (Sakura Pink) */
.theme-spring .choice-card-glow { background: linear-gradient(90deg, transparent, #f472b6, transparent); }
.theme-spring .choice-card-badge { background: rgba(244, 114, 182, 0.15); color: #fbcfe8; border: 1px solid rgba(244, 114, 182, 0.4); }
.theme-spring .choice-card-badge-dot { background: #f472b6; box-shadow: 0 0 8px #f472b6; }
.theme-spring .choice-card-btn { background: #ec4899; color: #fff; }
.theme-spring .choice-card:hover {
  transform: translateY(-5px);
  border-color: rgba(244, 114, 182, 0.75);
  box-shadow: 0 16px 40px rgba(244, 114, 182, 0.25);
  background: rgba(30, 20, 26, 0.88);
}

/* 7. THEME: TOMODACHI GAME (Psychological Blood Crimson / Golden Debt) */
.theme-tomodachi .choice-card-glow { background: linear-gradient(90deg, transparent, #e11d48, #fbbf24, transparent); }
.theme-tomodachi .choice-card-badge { background: rgba(225, 29, 72, 0.16); color: #fda4af; border: 1px solid rgba(225, 29, 72, 0.38); letter-spacing: 0.06em; font-weight: 700; }
.theme-tomodachi .choice-card-badge-dot { background: #e11d48; box-shadow: 0 0 10px #e11d48, 0 0 20px rgba(225, 29, 72, 0.6); }
.theme-tomodachi .choice-card-btn { background: #e11d48; color: #fff; font-weight: 700; letter-spacing: 0.06em; }
.theme-tomodachi .choice-card {
  border-color: rgba(225, 29, 72, 0.22);
  background: rgba(18, 14, 20, 0.85);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.theme-tomodachi .choice-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(244, 63, 94, 0.85);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.95), 0 0 35px rgba(225, 29, 72, 0.35);
  background: rgba(26, 16, 22, 0.94);
}
.theme-tomodachi .choice-card:hover .choice-card-num { color: rgba(225, 29, 72, 0.32); transform: scale(1.12); }
.theme-tomodachi .choice-card:hover .choice-card-btn { background: #f43f5e; box-shadow: 0 8px 24px rgba(225, 29, 72, 0.6); }
.theme-tomodachi .choice-vol-prog-fill { background: linear-gradient(90deg, #e11d48, #fbbf24); box-shadow: 0 0 10px rgba(225, 29, 72, 0.6); }
.theme-tomodachi .section-pill-btn.active { background: #e11d48; color: #fff; border-color: #e11d48; box-shadow: 0 0 20px rgba(225, 29, 72, 0.5); }

/* Sidebar Volume Header in Reader TOC */
.sidebar-volume-header {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-volume-badge,
.sidebar-volume-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 175px;
}

.sidebar-vol-overview-link,
.sidebar-volume-overview-link {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.sidebar-vol-overview-link:hover,
.sidebar-volume-overview-link:hover {
  background: var(--accent-primary, #e11d48);
  color: #fff;
}

/* ===================================================================
   SHOWCASE SELECT PAGE (IN THE STYLE OF NOVELS-READER.PAGES.DEV)
   =================================================================== */

.showcase-select-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 3rem;
  z-index: 2;
}

.showcase-top-bar {
  width: 100%;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.25);
  position: sticky;
  top: 0;
  z-index: 50;
}

.showcase-top-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.showcase-back-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e2e8f0;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.showcase-back-circle:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: translateX(-2px);
}

.showcase-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.showcase-brand-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.showcase-brand-title {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.showcase-center-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.showcase-header-block {
  text-align: center;
  margin-bottom: 2.5rem;
}

.showcase-badge-divider {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.showcase-line-accent {
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

.showcase-badge-text {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.showcase-main-heading {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.showcase-cards-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

.showcase-story-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 280px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .showcase-story-col {
    width: 320px;
  }
}

.showcase-logo-container {
  width: 100%;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  user-select: none;
}

.showcase-logo-img {
  height: 75px;
  max-width: 180px;
  object-fit: contain;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.7));
  transition: transform 0.3s ease;
}

.showcase-story-col:hover .showcase-logo-img {
  transform: scale(1.05);
}

.showcase-label-with-lines {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.showcase-cover-card {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85);
  background: rgba(10, 10, 15, 0.6);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.showcase-cover-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.showcase-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.showcase-cover-card:hover .showcase-card-img {
  transform: scale(1.04);
}

.showcase-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.85) 100%);
  pointer-events: none;
}

.showcase-card-bottom-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 10;
  text-align: center;
}

.showcase-card-bottom-title {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.showcase-card-bottom-line {
  height: 2px;
  width: 40px;
  margin: 0 auto;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.showcase-cover-card:hover .showcase-card-bottom-line {
  width: 80px;
}

.showcase-info-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.showcase-status-badge {
  text-align: center;
  font-size: 0.72rem;
  font-family: monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 0.65rem 1rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.showcase-select-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem 1.5rem;
  border-radius: 9999px;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

/* Theme specific overrides for showcase cards */
.theme-lotm .showcase-line-accent { background: rgba(234, 179, 8, 0.5); }
.theme-lotm .showcase-badge-text { color: #facc15; }
.theme-lotm .showcase-cover-card { border-color: rgba(234, 179, 8, 0.3); }
.theme-lotm .showcase-cover-card:hover { border-color: rgba(234, 179, 8, 0.8); box-shadow: 0 20px 45px rgba(0, 0, 0, 0.9), 0 0 35px rgba(234, 179, 8, 0.25); }
.theme-lotm .showcase-select-btn { background: rgba(234, 179, 8, 0.12); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.4); }
.theme-lotm .showcase-select-btn:hover { background: #eab308; color: #0a0a0f; box-shadow: 0 0 25px rgba(234, 179, 8, 0.5); }
.theme-lotm .showcase-card-bottom-line { background: #eab308; box-shadow: 0 0 10px #eab308; }

.theme-orv .showcase-line-accent { background: rgba(14, 165, 233, 0.5); }
.theme-orv .showcase-badge-text { color: #38bdf8; text-shadow: 0 0 10px rgba(56, 189, 248, 0.5); }
.theme-orv .showcase-cover-card { border-color: rgba(14, 165, 233, 0.3); }
.theme-orv .showcase-cover-card:hover { border-color: rgba(56, 189, 248, 0.8); box-shadow: 0 20px 45px rgba(0, 0, 0, 0.9), 0 0 35px rgba(14, 165, 233, 0.3); }
.theme-orv .showcase-select-btn { background: rgba(14, 165, 233, 0.12); color: #38bdf8; border: 1px solid rgba(14, 165, 233, 0.4); }
.theme-orv .showcase-select-btn:hover { background: #0ea5e9; color: #fff; box-shadow: 0 0 25px rgba(14, 165, 233, 0.5); }
.theme-orv .showcase-card-bottom-line { background: #38bdf8; box-shadow: 0 0 10px #38bdf8; }

.theme-ri .showcase-line-accent { background: rgba(220, 38, 38, 0.5); }
.theme-ri .showcase-badge-text { color: #f87171; }
.theme-ri .showcase-cover-card { border-color: rgba(220, 38, 38, 0.3); }
.theme-ri .showcase-cover-card:hover { border-color: rgba(239, 68, 68, 0.8); box-shadow: 0 20px 45px rgba(0, 0, 0, 0.9), 0 0 35px rgba(220, 38, 38, 0.3); }
.theme-ri .showcase-select-btn { background: rgba(220, 38, 38, 0.15); color: #fca5a5; border: 1px solid rgba(220, 38, 38, 0.4); }
.theme-ri .showcase-select-btn:hover { background: #dc2626; color: #fff; box-shadow: 0 0 25px rgba(220, 38, 38, 0.5); }
.theme-ri .showcase-card-bottom-line { background: #dc2626; box-shadow: 0 0 10px #dc2626; }

.theme-ss .showcase-line-accent { background: rgba(168, 85, 247, 0.5); }
.theme-ss .showcase-badge-text { color: #c084fc; text-shadow: 0 0 10px rgba(192, 132, 252, 0.5); }
.theme-ss .showcase-cover-card { border-color: rgba(168, 85, 247, 0.3); }
.theme-ss .showcase-cover-card:hover { border-color: rgba(192, 132, 252, 0.8); box-shadow: 0 20px 45px rgba(0, 0, 0, 0.9), 0 0 35px rgba(168, 85, 247, 0.3); }
.theme-ss .showcase-select-btn { background: rgba(168, 85, 247, 0.15); color: #e9d5ff; border: 1px solid rgba(168, 85, 247, 0.4); }
.theme-ss .showcase-select-btn:hover { background: #9333ea; color: #fff; box-shadow: 0 0 25px rgba(168, 85, 247, 0.5); }
.theme-ss .showcase-card-bottom-line { background: #a855f7; box-shadow: 0 0 10px #a855f7; }

.theme-cote .showcase-line-accent { background: rgba(225, 29, 72, 0.5); }
.theme-cote .showcase-badge-text { color: #fb7185; }
.theme-cote .showcase-cover-card { border-color: rgba(225, 29, 72, 0.3); }
.theme-cote .showcase-cover-card:hover { border-color: rgba(244, 63, 94, 0.8); box-shadow: 0 20px 45px rgba(0, 0, 0, 0.9), 0 0 35px rgba(225, 29, 72, 0.3); }
.theme-cote .showcase-select-btn { background: rgba(225, 29, 72, 0.15); color: #fecdd3; border: 1px solid rgba(225, 29, 72, 0.4); }
.theme-cote .showcase-select-btn:hover { background: #e11d48; color: #fff; box-shadow: 0 0 25px rgba(225, 29, 72, 0.5); }
.theme-cote .showcase-card-bottom-line { background: #e11d48; box-shadow: 0 0 10px #e11d48; }

.theme-tomodachi .showcase-line-accent { background: linear-gradient(90deg, transparent, rgba(225, 29, 72, 0.8), transparent); }
.theme-tomodachi .showcase-badge-text { color: #f43f5e; text-shadow: 0 0 14px rgba(225, 29, 72, 0.7); font-weight: 800; letter-spacing: 0.18em; }
.theme-tomodachi .showcase-cover-card {
  border-color: rgba(225, 29, 72, 0.35);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.85), 0 0 20px rgba(225, 29, 72, 0.2);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.theme-tomodachi .showcase-cover-card:hover {
  border-color: rgba(244, 63, 94, 0.95);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.95), 0 0 40px rgba(225, 29, 72, 0.5);
  transform: translateY(-8px) scale(1.02);
}
.theme-tomodachi .showcase-select-btn {
  background: rgba(225, 29, 72, 0.16);
  color: #fecdd3;
  border: 1px solid rgba(225, 29, 72, 0.45);
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: all 0.28s ease;
}
.theme-tomodachi .showcase-select-btn:hover {
  background: #e11d48;
  color: #fff;
  box-shadow: 0 0 30px rgba(225, 29, 72, 0.75);
  transform: translateY(-2px);
}
.theme-tomodachi .showcase-card-bottom-line { background: linear-gradient(90deg, #e11d48, #fbbf24); box-shadow: 0 0 14px #e11d48; }

/* Custom Tomodachi Elements */
.tomodachi-subtitle-bar {
  font-size: 0.82rem;
  color: #f43f5e;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 0.65rem;
  text-shadow: 0 0 12px rgba(225, 29, 72, 0.5);
}

.tomodachi-quote-banner {
  max-width: 720px;
  margin: 3.5rem auto 1.5rem;
  text-align: center;
  padding: 1.6rem 2.2rem;
  background: rgba(12, 10, 16, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(225, 29, 72, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(225, 29, 72, 0.15);
  position: relative;
  overflow: hidden;
}

.tomodachi-quote-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e11d48, #fbbf24, transparent);
}

.tomodachi-quote-text {
  font-size: 0.98rem;
  font-style: italic;
  color: #e2e8f0;
  margin-bottom: 0.6rem;
  line-height: 1.65;
  letter-spacing: 0.02em;
}

.tomodachi-quote-author {
  font-size: 0.82rem;
  font-weight: 800;
  color: #f43f5e;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-block;
  padding: 0.2rem 0.8rem;
  background: rgba(225, 29, 72, 0.12);
  border-radius: var(--radius-full);
  border: 1px solid rgba(225, 29, 72, 0.3);
}


/* ===================================================================
   INNOVATIVE "COMMAND DECK" CHAPTER SELECTOR
   (Solves scrolling through 2k+ chapters effortlessly)
   =================================================================== */

.chapter-deck-container {
  max-width: 1140px;
  margin: 0 auto;
  padding-top: 2rem;
  padding-bottom: 5rem;
}

/* 1. Deck Showcase Card */
.chapter-deck-hero {
  display: flex;
  gap: 2rem;
  background: rgba(15, 17, 26, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 1.75rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  margin-bottom: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .chapter-deck-hero {
    flex-direction: column;
    text-align: center;
  }
}

.chapter-deck-cover-wrap {
  width: 130px;
  height: 185px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.chapter-deck-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chapter-deck-hero-content {
  flex: 1;
  min-width: 0;
}

.chapter-deck-title {
  font-family: 'Cinzel', serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.chapter-deck-meta-row {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .chapter-deck-meta-row {
    justify-content: center;
  }
}

.chapter-deck-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.chapter-deck-progress-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.chapter-deck-hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 768px) {
  .chapter-deck-hero-actions {
    justify-content: center;
  }
}

/* 2. Command Deck Toolbar (Spacious & Clean) */
.chapter-deck-toolbar {
  background: rgba(14, 16, 24, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.15rem 1.4rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  margin-bottom: 1.75rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55);
}

.chapter-deck-toolbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.chapter-deck-search-wrap {
  position: relative;
  flex: 1.5;
  min-width: 260px;
  max-width: 560px;
}

.chapter-deck-search-input {
  width: 100%;
  height: 48px;
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0.75rem 2.6rem 0.75rem 3rem;
  font-size: 0.95rem;
  color: #fff;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.chapter-deck-search-input:focus {
  outline: none;
  background: rgba(0, 0, 0, 0.65);
  border-color: var(--accent-primary, #e11d48);
  box-shadow: 0 0 16px rgba(225, 29, 72, 0.25);
}

.chapter-deck-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.2s ease;
}

.chapter-deck-search-wrap:focus-within .chapter-deck-search-icon {
  color: var(--accent-primary, #e11d48);
}

.chapter-deck-clear-btn {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.72rem;
  transition: all 0.15s ease;
}

.chapter-deck-clear-btn:hover {
  background: rgba(225, 29, 72, 0.4);
  color: #fff;
}

/* Jump to Chapter input */
.chapter-deck-jump-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chapter-deck-jump-input {
  width: 125px;
  height: 48px;
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  transition: all 0.2s ease;
}

.chapter-deck-jump-input:focus {
  outline: none;
  background: rgba(0, 0, 0, 0.65);
  border-color: var(--accent-primary, #e11d48);
  box-shadow: 0 0 16px rgba(225, 29, 72, 0.25);
}

.chapter-deck-jump-btn {
  height: 48px;
  padding: 0 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.chapter-deck-jump-btn:hover {
  background: var(--accent-primary, #e11d48);
  color: #ffffff;
  border-color: var(--accent-primary, #e11d48);
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.35);
  transform: translateY(-1px);
}

.chapter-deck-jump-btn:active {
  transform: translateY(1px);
}

/* View & Sort toggles */
.chapter-deck-view-toggles {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chapter-deck-toggle-btn {
  height: 48px;
  padding: 0 1.15rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.chapter-deck-toggle-btn.active,
.chapter-deck-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 4. Matrix Grid View (Compact number squares) */
.chapter-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 0.65rem;
}

.chapter-matrix-tile {
  aspect-ratio: 1;
  background: rgba(18, 21, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.chapter-matrix-tile:hover {
  transform: translateY(-3px) scale(1.05);
  border-color: var(--accent-primary, #38bdf8);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.25);
  background: rgba(30, 35, 50, 0.9);
  z-index: 5;
}

.chapter-matrix-num {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.chapter-matrix-tag {
  font-size: 0.6rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  margin-top: 0.1rem;
}

.chapter-matrix-tile.is-completed {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.1);
}

.chapter-matrix-tile.is-completed .chapter-matrix-num {
  color: #86efac;
}

.chapter-matrix-tile.is-in-progress {
  border-color: var(--accent-primary, #38bdf8);
  background: rgba(56, 189, 248, 0.12);
}

.chapter-matrix-tile.is-in-progress .chapter-matrix-num {
  color: var(--accent-primary, #38bdf8);
}

.chapter-matrix-prog-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-primary, #38bdf8);
}

/* ===================================================================
   CINEMATIC AMBIENT QUOTE STAGE (HIGH-END NOVEL SHOWCASE)
   =================================================================== */
.cinematic-quote-stage {
  max-width: 880px;
  margin: 0 auto 2.75rem auto;
  padding: 1.6rem 2.2rem;
  position: relative;
  text-align: center;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  background: radial-gradient(ellipse at center, rgba(20, 22, 34, 0.72) 0%, rgba(10, 11, 16, 0.3) 75%, transparent 100%);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cinematic-quote-backdrop-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75%;
  height: 90%;
  border-radius: 50%;
  background: var(--stage-accent-glow, rgba(234, 179, 8, 0.12));
  filter: blur(45px);
  pointer-events: none;
  opacity: 0.85;
  transition: background 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
  z-index: 0;
}

.cinematic-quote-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.cinematic-quote-ornament-line {
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25));
}

.cinematic-quote-ornament-line.right {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.25), transparent);
}

.cinematic-quote-ornament-mark {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--stage-accent, #eab308);
  opacity: 0.9;
  text-shadow: 0 0 16px var(--stage-accent, #eab308);
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

.cinematic-quote-body {
  position: relative;
  z-index: 1;
  min-height: 65px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cinematic-quote-text {
  font-family: 'Playfair Display', 'Cinzel', Georgia, serif;
  font-size: 1.22rem;
  font-style: italic;
  line-height: 1.75;
  color: #f8fafc;
  letter-spacing: 0.02em;
  margin: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), filter 0.28s ease;
}

.cinematic-quote-text.swapping {
  opacity: 0;
  transform: translateY(8px);
  filter: blur(5px);
}

.cinematic-quote-author {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.85rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stage-accent, #eab308);
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
  transition: opacity 0.28s ease, color 0.4s ease, transform 0.28s ease;
}

.cinematic-quote-author.swapping {
  opacity: 0;
  transform: translateY(4px);
}

.cinematic-author-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--stage-accent, #eab308);
  box-shadow: 0 0 8px var(--stage-accent, #eab308);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* 3D Perspective Card Enhancements */
.showcase-cards-row {
  perspective: 1200px;
}

.showcase-cover-card {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.showcase-specular-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(circle 280px at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.25), transparent 75%);
}

.showcase-cover-card:hover .showcase-specular-glare {
  opacity: 1;
}

/* Floating Levitating Insignia / Logos */
@keyframes logoLevitate {
  0%, 100% {
    transform: translateY(0px) scale(1);
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.8));
  }
  50% {
    transform: translateY(-8px) scale(1.03);
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 16px rgba(255, 255, 255, 0.2));
  }
}

.showcase-logo-img {
  animation: logoLevitate 5s ease-in-out infinite;
}

.showcase-story-col:nth-child(2) .showcase-logo-img {
  animation-delay: -2.5s;
}

.showcase-story-col:nth-child(3) .showcase-logo-img {
  animation-delay: -1.25s;
}

/* Dynamic Ambient Glow Shift Matrix */
.theme-lotm-book1 {
  --stage-accent: #eab308;
  --stage-accent-glow: rgba(234, 179, 8, 0.28);
}

.theme-lotm-book2 {
  --stage-accent: #f43f5e;
  --stage-accent-glow: rgba(244, 63, 94, 0.28);
}

.theme-cote-year1 {
  --stage-accent: #e11d48;
  --stage-accent-glow: rgba(225, 29, 72, 0.28);
}

.theme-cote-year2 {
  --stage-accent: #38bdf8;
  --stage-accent-glow: rgba(56, 189, 248, 0.28);
}

.theme-cote-year3 {
  --stage-accent: #c084fc;
  --stage-accent-glow: rgba(192, 132, 252, 0.28);
}

.theme-orv-main {
  --stage-accent: #0ea5e9;
  --stage-accent-glow: rgba(14, 165, 233, 0.3);
}

.theme-orv-side {
  --stage-accent: #a855f7;
  --stage-accent-glow: rgba(168, 85, 247, 0.3);
}

.theme-orv-lore {
  --stage-accent: #10b981;
  --stage-accent-glow: rgba(16, 185, 129, 0.3);
}

.theme-ss-arc1 {
  --stage-accent: #f59e0b;
  --stage-accent-glow: rgba(245, 158, 11, 0.3);
}

.theme-ss-arc2 {
  --stage-accent: #06b6d4;
  --stage-accent-glow: rgba(6, 182, 212, 0.3);
}

.theme-ss-arc3 {
  --stage-accent: #ef4444;
  --stage-accent-glow: rgba(239, 68, 68, 0.3);
}

.theme-ss-arc4 {
  --stage-accent: #8b5cf6;
  --stage-accent-glow: rgba(139, 92, 246, 0.3);
}

.theme-ss-arc5 {
  --stage-accent: #e11d48;
  --stage-accent-glow: rgba(225, 29, 72, 0.35);
}

/* Active Card Highlight */
.showcase-story-col.is-active-card .showcase-cover-card {
  border-color: var(--stage-accent, #fff) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px var(--stage-accent-glow, rgba(255, 255, 255, 0.25)) !important;
  transform: translateY(-8px) scale(1.03);
}

.showcase-story-col.is-active-card .showcase-badge-text {
  color: var(--stage-accent, #fff) !important;
  text-shadow: 0 0 10px var(--stage-accent, #fff);
}

.showcase-story-col.is-active-card .showcase-line-accent {
  background: var(--stage-accent, #fff) !important;
  box-shadow: 0 0 8px var(--stage-accent, #fff);
}

/* 5 Arcs Layout for Shadow Slave */
.showcase-cards-row.five-arcs {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 1rem;
}

.showcase-story-col.compact-card {
  width: 240px;
  max-width: 250px;
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
}

.showcase-story-col.compact-card .showcase-cover-card {
  height: 350px;
}

.showcase-story-col.compact-card .showcase-card-bottom-title {
  font-size: 0.88rem;
  letter-spacing: 0.08em;
}

@media (max-width: 1300px) {
  .showcase-cards-row.five-arcs {
    gap: 1.1rem;
  }
  .showcase-story-col.compact-card {
    width: 210px;
    flex: 0 0 210px;
  }
  .showcase-story-col.compact-card .showcase-cover-card {
    height: 310px;
  }
}

/* ===================================================================
   SPATIAL CHRONICLE THEATER (MIND-BLOWING NEXT-GEN SHOWCASE)
   Replaces generic card rows with an AAA interactive console HUD
   =================================================================== */

#ambient-particles-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.65;
  transition: opacity 0.5s ease;
}

.nr-ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  transform: translateZ(0);
  contain: strict;
}

.nr-ambient-glow-1 {
  position: absolute;
  top: 34%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  max-width: 1050px;
  height: 600px;
  border-radius: 9999px;
  pointer-events: none;
  opacity: 0.85;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.32) 0%, rgba(29, 78, 216, 0.18) 35%, rgba(30, 58, 138, 0.06) 60%, transparent 75%);
}

.nr-ambient-glow-2 {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 98vw;
  max-width: 1350px;
  height: 780px;
  border-radius: 9999px;
  pointer-events: none;
  opacity: 0.75;
  background: radial-gradient(ellipse at center, rgba(29, 78, 216, 0.16) 0%, rgba(15, 23, 42, 0.08) 50%, transparent 75%);
}

.nr-home-container {
  position: relative;
  z-index: 10;
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 6rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Glass Pill Top Bar */
.nr-top-pill-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem;
  background: rgba(24, 24, 27, 0.65);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.22), 0 12px 36px -6px rgba(0, 0, 0, 0.75);
  margin-bottom: 1.5rem;
  user-select: none;
  transition: all 0.3s ease;
}

.nr-top-pill-bar:hover {
  background: rgba(24, 24, 27, 0.78);
  border-color: rgba(255, 255, 255, 0.24);
}

.nr-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nr-pill-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.nr-pill-link.accent {
  color: #fbbf24;
}

.nr-pill-link.accent:hover {
  background: rgba(251, 191, 36, 0.12);
  color: #fde047;
}

.nr-pill-divider {
  width: 1px;
  height: 14px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.25), transparent);
}

/* Grand Header */
.nr-home-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
}

.nr-home-title {
  font-family: 'Cinzel', serif;
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 60%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  user-select: none;
  margin: 0;
  filter: drop-shadow(0 4px 30px rgba(255, 255, 255, 0.18));
}

@media (max-width: 640px) {
  .nr-home-title {
    font-size: 2.1rem;
    letter-spacing: 0.14em;
  }
}

.nr-home-sub {
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-top: 0.65rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  user-select: none;
}

.nr-sub-line {
  width: 48px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(148, 163, 184, 0.6), transparent);
}

/* Pill Search Bar */
.nr-search-bar {
  width: 100%;
  max-width: 760px;
  position: relative;
  margin-bottom: 1.5rem;
}

.nr-search-inner {
  display: flex;
  align-items: center;
  height: 52px;
  border-radius: 9999px;
  background: rgba(24, 24, 27, 0.6);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.2), 0 12px 36px -6px rgba(0, 0, 0, 0.75);
  padding: 0 1.25rem;
  transition: all 0.3s ease;
}

.nr-search-inner:focus-within {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(24, 24, 27, 0.8);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.25), 0 0 25px rgba(56, 189, 248, 0.2);
}

.nr-search-icon {
  color: #94a3b8;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.nr-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.95rem;
  font-family: inherit;
}

.nr-search-input::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

.nr-search-kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  user-select: none;
  letter-spacing: 0.05em;
}

.nr-search-clear {
  color: #94a3b8;
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s;
}

.nr-search-clear:hover {
  color: #fff;
}

/* Horizontal Genre Filter Pills */
.nr-genres-bar {
  width: 100%;
  max-width: 1360px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.35rem 0.25rem 0.75rem 0.25rem;
  margin-bottom: 0.5rem;
  user-select: none;
  scrollbar-width: none;
}

.nr-genres-bar::-webkit-scrollbar {
  display: none;
}

.nr-genre-pill {
  flex-shrink: 0;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(24, 24, 27, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nr-genre-pill:hover {
  background: rgba(24, 24, 27, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.nr-genre-pill.active {
  background: #ffffff;
  color: #09090b;
  border-color: #ffffff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.3);
  transform: scale(1.02);
}

/* A-Z Letter Filter Strip */
.nr-az-bar {
  width: 100%;
  max-width: 1360px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.6rem;
  background: rgba(9, 9, 11, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  overflow-x: auto;
  margin-bottom: 1.25rem;
  user-select: none;
  scrollbar-width: none;
}

.nr-az-bar::-webkit-scrollbar {
  display: none;
}

.nr-az-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 800;
  margin-right: 0.35rem;
  letter-spacing: 0.1em;
}

.nr-az-btn {
  flex-shrink: 0;
  min-width: 26px;
  height: 26px;
  padding: 0 0.4rem;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.nr-az-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.nr-az-btn.active {
  background: #fbbf24;
  color: #09090b;
  font-weight: 900;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.45);
}

/* Showing Count & View Mode Bar */
.nr-count-bar {
  width: 100%;
  max-width: 1360px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nr-count-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #94a3b8;
}

.nr-count-text strong {
  color: #ffffff;
}

.nr-view-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(24, 24, 27, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.2rem;
  border-radius: 10px;
}

.nr-view-toggle-btn {
  padding: 0.35rem 0.55rem;
  border-radius: 7px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  cursor: pointer;
}

.nr-view-toggle-btn.active {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* ===================================================================
   NOVELS-READER 3D NOVEL CARDS GRID
   =================================================================== */

.nr-novels-grid {
  width: 100%;
  max-width: 1360px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.75rem;
}

@media (max-width: 640px) {
  .nr-novels-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
}

.nr-novel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  cursor: pointer;
  border-radius: 2rem;
  user-select: none;
}

.nr-card-ambient-glow {
  position: absolute;
  inset: -4px;
  border-radius: 2.2rem;
  opacity: 0;
  filter: blur(20px);
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.nr-novel-card:hover .nr-card-ambient-glow {
  opacity: 0.65;
}

.nr-card-inner {
  position: relative;
  z-index: 1;
  aspect-ratio: 3 / 4;
  width: 100%;
  border-radius: 2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 9, 11, 0.85);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem 1.15rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

@media (max-width: 640px) {
  .nr-card-inner {
    border-radius: 1.25rem;
    padding: 0.85rem 0.75rem;
  }
}

.nr-novel-card:hover .nr-card-inner {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.28);
}

.nr-card-img-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.nr-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.nr-novel-card:hover .nr-card-img {
  transform: scale(1.09);
}

.nr-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 2, 6, 0.96) 0%, rgba(3, 2, 6, 0.72) 40%, rgba(3, 2, 6, 0.2) 70%, transparent 100%);
  pointer-events: none;
}

.nr-card-rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(9, 9, 11, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 0.76rem;
  font-weight: 900;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

@media (max-width: 640px) {
  .nr-card-rank-badge {
    width: 24px;
    height: 24px;
    font-size: 0.68rem;
    top: 8px;
    right: 8px;
  }
}

.nr-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nr-card-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.nr-card-title {
  font-family: 'Lora', 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

@media (max-width: 640px) {
  .nr-card-title {
    font-size: 0.92rem;
  }
}

.nr-card-meta {
  font-size: 0.74rem;
  color: #cbd5e1;
  font-weight: 500;
}

/* ===================================================================
   NOVELS-READER SERIES LANDING (86 / BUNNY GIRL SENPAI / COTE)
   =================================================================== */

.nr-series-page {
  min-height: 100vh;
  background-color: #08080c;
  color: #f5f5f7;
  position: relative;
  overflow-x: hidden;
  user-select: none;
}

/* Fixed Atmospheric Wallpaper Background */
.nr-series-fixed-bg {
  position: fixed;
  inset: 0;
  height: 100vh;
  z-index: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.nr-series-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(7px);
  transform: scale(1.06);
  opacity: 0.22;
}

.nr-series-bg-radial {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.theme-tomodachi .nr-series-bg-radial {
  background: radial-gradient(circle at 30% 35%, rgba(168, 85, 247, 0.16) 0%, transparent 65%);
}

.theme-boys-abyss .nr-series-bg-radial {
  background: radial-gradient(circle at 30% 35%, rgba(6, 182, 212, 0.16) 0%, transparent 65%);
}

.nr-series-bg-vignette-top {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 7rem;
  background: linear-gradient(to bottom, rgba(5, 5, 8, 0.6) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.nr-series-bg-vignette-bottom {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 22rem;
  background: linear-gradient(to top, #08080c 0%, rgba(8, 8, 12, 0.8) 50%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Floating Top HUD Navigation */
.nr-series-top-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  pointer-events: none;
}

.nr-series-nav-left, .nr-series-nav-right {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nr-back-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  text-decoration: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.22s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.nr-back-circle:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.25);
}

.nr-back-circle:active {
  transform: scale(0.92);
}

.nr-series-crumb {
  font-family: 'Cinzel', serif;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nr-series-crumb strong {
  color: #f1f5f9;
}

/* Hero Section (Atmospheric 86 / Bunny Girl Senpai Style) */
.nr-series-hero {
  position: relative;
  z-index: 10;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 3rem 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.nr-series-tag-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.nr-series-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.theme-tomodachi .nr-series-tag.accent {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.theme-boys-abyss .nr-series-tag.accent {
  background: rgba(6, 182, 212, 0.14);
  border-color: rgba(6, 182, 212, 0.35);
  color: #67e8f9;
}

.nr-series-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.1;
  margin: 0;
  user-select: none;
}

.theme-tomodachi .nr-series-title {
  text-shadow: 0 0 45px rgba(239, 68, 68, 0.7), 0 0 90px rgba(168, 85, 247, 0.4);
}

.theme-boys-abyss .nr-series-title {
  text-shadow: 0 0 45px rgba(6, 182, 212, 0.7), 0 0 90px rgba(37, 99, 235, 0.4);
}

.nr-series-jp-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  letter-spacing: 0.28em;
  color: #94a3b8;
  margin-top: 0.5rem;
  margin-bottom: 1.75rem;
  user-select: none;
}

.nr-series-quote-stage {
  max-width: 680px;
  margin: 0 auto 2.5rem auto;
}

.nr-series-quote-text {
  font-family: 'Lora', 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.6;
  color: #e2e8f0;
  margin: 0 0 0.75rem 0;
}

.nr-series-quote-author {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.theme-tomodachi .nr-series-quote-author {
  color: #ef4444;
}

.theme-boys-abyss .nr-series-quote-author {
  color: #38bdf8;
}

.nr-series-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nr-btn-primary-reading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.15rem 2.75rem;
  border-radius: 9999px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.theme-tomodachi .nr-btn-primary-reading {
  background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 50%, #1e1b4b 100%);
  box-shadow: 0 10px 35px rgba(220, 38, 38, 0.45);
  border-color: rgba(239, 68, 68, 0.35);
}

.theme-tomodachi .nr-btn-primary-reading:hover {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 50%, #312e81 100%);
  box-shadow: 0 16px 45px rgba(220, 38, 38, 0.65);
  transform: translateY(-2px) scale(1.02);
}

.theme-boys-abyss .nr-btn-primary-reading {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 50%, #0c4a6e 100%);
  box-shadow: 0 10px 35px rgba(6, 182, 212, 0.45);
  border-color: rgba(56, 189, 248, 0.35);
}

.theme-boys-abyss .nr-btn-primary-reading:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 50%, #075985 100%);
  box-shadow: 0 16px 45px rgba(6, 182, 212, 0.65);
  transform: translateY(-2px) scale(1.02);
}

.nr-btn-primary-reading:active {
  transform: scale(0.96);
}

.nr-btn-secondary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.85rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.22s ease;
  cursor: pointer;
}

.nr-btn-secondary-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* Volume Selection Stage (Clean 86 Select Style) */
.nr-volume-stage {
  position: relative;
  z-index: 10;
  max-width: 1360px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem 1.5rem;
}

.nr-volume-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.nr-volume-heading {
  font-family: 'Cinzel', serif;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.nr-volume-subheading {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: #94a3b8;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.35rem;
}

.nr-volume-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nr-search-pill-sm {
  display: flex;
  align-items: center;
  height: 40px;
  border-radius: 9999px;
  background: rgba(24, 24, 27, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0 1rem;
  width: 220px;
  transition: all 0.2s ease;
}

.nr-search-pill-sm:focus-within {
  width: 280px;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(24, 24, 27, 0.95);
}

.nr-search-pill-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.82rem;
}

.nr-view-segmented {
  display: flex;
  background: rgba(24, 24, 27, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.2rem;
  border-radius: 9999px;
}

.nr-view-segment-btn {
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nr-view-segment-btn.active {
  background: #ffffff;
  color: #09090b;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* 3D Volume Cover Grid */
.nr-volume-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.75rem;
}

@media (max-width: 640px) {
  .nr-volume-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

.nr-volume-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.nr-volume-frame {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.nr-volume-card:hover .nr-volume-frame {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 255, 255, 0.15);
}

.theme-tomodachi .nr-volume-card:hover .nr-volume-frame {
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(220, 38, 38, 0.35);
  border-color: rgba(239, 68, 68, 0.4);
}

.theme-boys-abyss .nr-volume-card:hover .nr-volume-frame {
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(6, 182, 212, 0.35);
  border-color: rgba(56, 189, 248, 0.4);
}

.nr-volume-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.nr-volume-card:hover .nr-volume-img {
  transform: scale(1.06);
}

.nr-volume-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.nr-volume-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0 0.25rem;
}

.nr-vol-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.theme-tomodachi .nr-vol-label {
  color: #ef4444;
}

.theme-boys-abyss .nr-vol-label {
  color: #38bdf8;
}

.nr-vol-title {
  font-family: 'Cinzel', serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.nr-volume-card:hover .nr-vol-title {
  color: #f8fafc;
}

.nr-vol-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 0.1rem;
}

/* Chapters Archive Stream (Clean Searchable List) */
.nr-chapters-stream {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.nr-chapter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: rgba(18, 18, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  color: #cbd5e1;
}

.nr-chapter-row:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: translateX(4px);
}

.nr-ch-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 800;
  color: #ffffff;
  min-width: 80px;
}

.nr-ch-title {
  flex: 1;
  font-size: 0.86rem;
  font-weight: 600;
  margin: 0 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nr-ch-btn-arrow {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #94a3b8;
}

.nr-chapter-row:hover .nr-ch-btn-arrow {
  color: #ffffff;
}

/* ===================================================================
   VOLUME CHAPTERS MODAL (CLEAN 86/BUNNY-GIRL VOLUME INSPECTOR)
   =================================================================== */
.nr-vol-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.nr-vol-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.nr-vol-modal-card {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 85vh;
  background: #0d0e14;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nr-vol-modal-backdrop.active .nr-vol-modal-card {
  transform: scale(1);
}

.nr-vol-modal-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.nr-vol-modal-cover {
  width: 56px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
}

.nr-vol-modal-title-wrap {
  flex: 1;
  min-width: 0;
}

.nr-vol-modal-title {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

.nr-vol-modal-sub {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

.nr-vol-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.nr-vol-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.nr-vol-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nr-scroll-down-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: nrBounce 2s infinite ease-in-out;
}

.nr-scroll-down-hint a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.nr-scroll-down-hint a:hover {
  color: #ffffff;
}

@keyframes nrBounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* Series Theme Tokens for Unified Novels-Reader System */
.theme-cote .nr-series-tag.accent { background: rgba(225, 29, 72, 0.15); border-color: rgba(225, 29, 72, 0.4); color: #fb7185; }
.theme-cote .nr-series-title { text-shadow: 0 0 45px rgba(225, 29, 72, 0.7), 0 0 90px rgba(168, 85, 247, 0.4); }
.theme-cote .nr-series-quote-author { color: #fb7185; }
.theme-cote .nr-btn-primary-reading { background: linear-gradient(135deg, #e11d48 0%, #be123c 50%, #881337 100%); box-shadow: 0 10px 35px rgba(225, 29, 72, 0.45); border-color: rgba(244, 63, 94, 0.35); }
.theme-cote .nr-btn-primary-reading:hover { background: linear-gradient(135deg, #f43f5e 0%, #e11d48 50%, #9f1239 100%); box-shadow: 0 16px 45px rgba(225, 29, 72, 0.65); }
.theme-cote .nr-vol-label { color: #fb7185; }
.theme-cote .nr-volume-card:hover .nr-volume-frame { box-shadow: 0 22px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(225, 29, 72, 0.35); border-color: rgba(244, 63, 94, 0.4); }

.theme-spring .nr-series-tag.accent { background: rgba(244, 63, 94, 0.15); border-color: rgba(244, 63, 94, 0.4); color: #fda4af; }
.theme-spring .nr-series-title { text-shadow: 0 0 45px rgba(244, 63, 94, 0.7), 0 0 90px rgba(245, 158, 11, 0.3); }
.theme-spring .nr-series-quote-author { color: #fda4af; }
.theme-spring .nr-btn-primary-reading { background: linear-gradient(135deg, #f43f5e 0%, #e11d48 50%, #fb7185 100%); box-shadow: 0 10px 35px rgba(244, 63, 94, 0.45); border-color: rgba(251, 113, 133, 0.35); }
.theme-spring .nr-btn-primary-reading:hover { background: linear-gradient(135deg, #fb7185 0%, #f43f5e 50%, #f43f5e 100%); box-shadow: 0 16px 45px rgba(244, 63, 94, 0.65); }
.theme-spring .nr-vol-label { color: #fda4af; }
.theme-spring .nr-volume-card:hover .nr-volume-frame { box-shadow: 0 22px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(244, 63, 94, 0.35); border-color: rgba(251, 113, 133, 0.4); }

.theme-lotm .nr-series-tag.accent { background: rgba(168, 85, 247, 0.15); border-color: rgba(168, 85, 247, 0.4); color: #d8b4fe; }
.theme-lotm .nr-series-title { text-shadow: 0 0 45px rgba(168, 85, 247, 0.7), 0 0 90px rgba(234, 179, 8, 0.3); }
.theme-lotm .nr-series-quote-author { color: #eab308; }
.theme-lotm .nr-btn-primary-reading { background: linear-gradient(135deg, #9333ea 0%, #7e22ce 50%, #3b0764 100%); box-shadow: 0 10px 35px rgba(168, 85, 247, 0.45); border-color: rgba(192, 132, 252, 0.35); }
.theme-lotm .nr-btn-primary-reading:hover { background: linear-gradient(135deg, #a855f7 0%, #9333ea 50%, #581c87 100%); box-shadow: 0 16px 45px rgba(168, 85, 247, 0.65); }
.theme-lotm .nr-vol-label { color: #eab308; }
.theme-lotm .nr-volume-card:hover .nr-volume-frame { box-shadow: 0 22px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(168, 85, 247, 0.35); border-color: rgba(192, 132, 252, 0.4); }

.theme-ss .nr-series-tag.accent { background: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.4); color: #fde68a; }
.theme-ss .nr-series-title { text-shadow: 0 0 45px rgba(245, 158, 11, 0.7), 0 0 90px rgba(124, 58, 237, 0.3); }
.theme-ss .nr-series-quote-author { color: #f59e0b; }
.theme-ss .nr-btn-primary-reading { background: linear-gradient(135deg, #d97706 0%, #b45309 50%, #1e1b4b 100%); box-shadow: 0 10px 35px rgba(245, 158, 11, 0.45); border-color: rgba(251, 191, 36, 0.35); }
.theme-ss .nr-btn-primary-reading:hover { background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #312e81 100%); box-shadow: 0 16px 45px rgba(245, 158, 11, 0.65); }
.theme-ss .nr-vol-label { color: #f59e0b; }
.theme-ss .nr-volume-card:hover .nr-volume-frame { box-shadow: 0 22px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(245, 158, 11, 0.35); border-color: rgba(251, 191, 36, 0.4); }

.theme-ri .nr-series-tag.accent { background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.4); color: #a7f3d0; }
.theme-ri .nr-series-title { text-shadow: 0 0 45px rgba(16, 185, 129, 0.7), 0 0 90px rgba(5, 150, 105, 0.3); }
.theme-ri .nr-series-quote-author { color: #10b981; }
.theme-ri .nr-btn-primary-reading { background: linear-gradient(135deg, #059669 0%, #047857 50%, #064e3b 100%); box-shadow: 0 10px 35px rgba(16, 185, 129, 0.45); border-color: rgba(52, 211, 153, 0.35); }
.theme-ri .nr-btn-primary-reading:hover { background: linear-gradient(135deg, #10b981 0%, #059669 50%, #065f46 100%); box-shadow: 0 16px 45px rgba(16, 185, 129, 0.65); }
.theme-ri .nr-vol-label { color: #10b981; }
.theme-ri .nr-volume-card:hover .nr-volume-frame { box-shadow: 0 22px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(16, 185, 129, 0.35); border-color: rgba(52, 211, 153, 0.4); }

.theme-orv .nr-series-tag.accent { background: rgba(56, 189, 248, 0.15); border-color: rgba(56, 189, 248, 0.4); color: #bae6fd; }
.theme-orv .nr-series-title { text-shadow: 0 0 45px rgba(56, 189, 248, 0.7), 0 0 90px rgba(99, 102, 241, 0.3); }
.theme-orv .nr-series-quote-author { color: #38bdf8; }
.theme-orv .nr-btn-primary-reading { background: linear-gradient(135deg, #0284c7 0%, #0369a1 50%, #1e1b4b 100%); box-shadow: 0 10px 35px rgba(56, 189, 248, 0.45); border-color: rgba(56, 189, 248, 0.35); }
.theme-orv .nr-btn-primary-reading:hover { background: linear-gradient(135deg, #38bdf8 0%, #0284c7 50%, #312e81 100%); box-shadow: 0 16px 45px rgba(56, 189, 248, 0.65); }
.theme-orv .nr-vol-label { color: #38bdf8; }
.theme-orv .nr-volume-card:hover .nr-volume-frame { box-shadow: 0 22px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(56, 189, 248, 0.35); border-color: rgba(56, 189, 248, 0.4); }

/* ===================================================================
   UNIFIED 1:1 NOVELS-READER BULLETPROOF DESIGN SYSTEM
   Zero reliance on uncompiled Tailwind JIT utilities
   =================================================================== */

/* Root & Global Layout */
html, body {
  color-scheme: dark !important;
  background-color: #050508 !important;
  color: #f4f4f5 !important;
  overflow-x: hidden;
  scrollbar-color: rgba(255, 255, 255, 0.22) #050508 !important;
  scrollbar-width: thin;
}

html, body, * {
  scrollbar-color: rgba(255, 255, 255, 0.22) #050508 !important;
}

::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
}
::-webkit-scrollbar-track,
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: #050508 !important;
}
::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22) !important;
  border-radius: 9999px !important;
  border: 2px solid #050508 !important;
}
::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4) !important;
}

/* Ambient Celestial Aurora & Micro-Star Grid Background */
.nr-canvas-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  background: #05060b;
}

/* Delicate Celestial Star Grid (Subtle cosmic texture with soft vignette mask) */
.nr-canvas-backdrop::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 28%, black 15%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 28%, black 15%, transparent 78%);
  opacity: 0.55;
  pointer-events: none;
}

/* Primary Aurora Nebula: Cosmic Violet & Deep Indigo */
.nr-nebula-top {
  position: absolute;
  top: -14%;
  left: 42%;
  transform: translateX(-50%);
  width: 1150px;
  height: 750px;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.28) 0%, rgba(99, 102, 241, 0.18) 32%, rgba(67, 56, 202, 0.06) 60%, transparent 75%);
  filter: blur(65px);
  animation: nr-aurora-drift-violet 22s ease-in-out infinite alternate;
}

/* Secondary Aurora Nebula: Electric Cyan & Azure Glow */
.nr-nebula-cyan {
  position: absolute;
  top: -6%;
  right: 8%;
  width: 780px;
  height: 620px;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.22) 0%, rgba(37, 99, 235, 0.12) 38%, transparent 70%);
  filter: blur(60px);
  animation: nr-aurora-drift-cyan 26s ease-in-out infinite alternate;
}

/* Tertiary Ambient Glow: Deep Amethyst */
.nr-nebula-bottom {
  position: absolute;
  bottom: -4%;
  left: 6%;
  width: 680px;
  height: 520px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.14) 0%, rgba(59, 130, 246, 0.05) 45%, transparent 70%);
  filter: blur(75px);
  animation: nr-aurora-drift-violet 20s ease-in-out infinite alternate-reverse;
}

@keyframes nr-aurora-drift-violet {
  0% { transform: translateX(-50%) translateY(0) scale(1); }
  50% { transform: translateX(-47%) translateY(28px) scale(1.06); }
  100% { transform: translateX(-53%) translateY(-18px) scale(0.97); }
}

@keyframes nr-aurora-drift-cyan {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(22px) translateX(-25px) scale(1.08); }
  100% { transform: translateY(-16px) translateX(18px) scale(0.95); }
}

/* Floating Top Pill Header */
.nr-header-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background: rgba(9, 9, 11, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  font-size: 0.78rem;
  font-weight: 500;
  color: #a1a1aa;
}
.nr-header-pill a {
  color: #a1a1aa;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.nr-header-pill a:hover {
  color: #ffffff;
}

/* Page Titles */
.nr-main-title {
  font-family: 'Cinzel', serif !important;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #f4f4f5 50%, #d4d4d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin: 0;
  line-height: 1.15;
}
.nr-sub-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a1a1aa;
  margin: 1rem auto 1.5rem auto;
}
.nr-hairline {
  height: 1px;
  width: 70px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* Search Bar Pill */
.nr-search-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto 2.5rem auto;
}
.nr-search-input {
  width: 100%;
  padding: 0.75rem 4.5rem 0.75rem 2.75rem;
  border-radius: 9999px;
  background: rgba(18, 18, 24, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f4f4f5;
  font-size: 0.85rem;
  outline: none;
  backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nr-search-input:focus {
  border-color: rgba(139, 92, 246, 0.65);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
}
.nr-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: #71717a;
  pointer-events: none;
}
.nr-search-kbd {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.15rem 0.45rem;
  font-size: 0.65rem;
  font-family: monospace;
  color: #71717a;
  background: rgba(39, 39, 42, 0.8);
  border: 1px solid rgba(63, 63, 70, 0.6);
  border-radius: 4px;
  pointer-events: none;
}

/* 1:1 Novels Grid - 5 in a row across desktop width matching novels-reader.pages.dev */
.nr-grid-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 640px) {
  .nr-grid-cards { grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
}
@media (min-width: 960px) {
  .nr-grid-cards { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
}
@media (min-width: 1180px) {
  .nr-grid-cards { grid-template-columns: repeat(5, 1fr); gap: 1.35rem; }
}

/* Novel Card (Exact 3:4 Aspect Ratio, Rounded Corners, Rich Hover Lift & Glow) */
.nr-card-item {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  background: #0d0e15;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}
.nr-card-item:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 255, 255, 0.1);
}
.nr-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.nr-card-item:hover .nr-card-img {
  transform: scale(1.08);
}
.nr-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.97) 0%, rgba(0,0,0,0.68) 42%, rgba(0,0,0,0.12) 72%, transparent 100%);
  pointer-events: none;
}
.nr-card-rank {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}
.nr-card-info {
  position: absolute;
  bottom: 0;
  inset-x: 0;
  padding: 1.15rem 1rem 1.25rem 1rem !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
  pointer-events: none;
}
.nr-card-tag {
  font-family: monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.nr-card-title {
  font-family: 'Cinzel', 'Lora', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.22;
  margin: 0;
  transition: color 0.2s ease;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}
.nr-card-item:hover .nr-card-title {
  color: #38bdf8;
}
.nr-card-meta {
  color: #a1a1aa;
  font-size: 0.76rem;
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 3-Year Selector Cards */
.nr-year-card {
  position: relative;
  display: block;
  width: 290px;
  height: 387px;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.nr-year-card.active {
  border: 1.5px solid rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 50px rgba(220, 38, 38, 0.35), 0 20px 40px rgba(0,0,0,0.8);
  cursor: pointer;
}
.nr-year-card.active:hover {
  transform: scale(1.05);
  box-shadow: 0 0 70px rgba(220, 38, 38, 0.5), 0 25px 50px rgba(0,0,0,0.9);
}
.nr-year-card.locked {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #111218;
  opacity: 0.6;
  filter: grayscale(40%);
  cursor: default;
}
.nr-year-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.nr-year-card.active:hover .nr-year-card-img {
  transform: scale(1.1);
}
.nr-year-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.45) 45%, transparent 100%);
}
.nr-year-card-body {
  position: absolute;
  bottom: 0;
  inset-x: 0;
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
}

/* COTE Year 1 Volume Arc Rows */
.nr-vol-row {
  background: rgba(18, 19, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(14px);
  margin-bottom: 2rem;
}
.nr-vol-header {
  display: grid;
  grid-template-columns: 80px 1fr;
  background: linear-gradient(90deg, rgba(127, 29, 29, 0.35) 0%, rgba(10, 10, 15, 0.95) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 768px) {
  .nr-vol-header {
    grid-template-columns: 110px 1fr 1fr 280px;
  }
}
.nr-vol-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem;
}
.nr-vol-meta-cell {
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: #cbd5e1;
}
.nr-vol-meta-cell .label {
  font-weight: 700;
  color: #ef4444;
  margin-bottom: 0.2rem;
  font-size: 0.75rem;
}
.nr-vol-title-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f87171;
  text-align: center;
}

.nr-vol-body {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .nr-vol-body {
    grid-template-columns: 1.4fr 1fr 280px;
  }
}
.nr-vol-col-chapters {
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.25);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.nr-vol-col-chars {
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.nr-vol-col-cover {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: rgba(0, 0, 0, 0.35);
}
.nr-vol-cover-img {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.nr-btn-read-volume {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 200px;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
}
.nr-btn-read-volume:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.65);
}

/* Spring Dedicated Theme */
.nr-spring-hero {
  position: relative;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 40px rgba(56, 189, 248, 0.15);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .nr-spring-hero {
    flex-direction: row;
    align-items: center;
  }
}
.nr-spring-cover {
  width: 100%;
  max-width: 190px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.3);
  flex-shrink: 0;
}
.nr-spring-btn-read {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nr-spring-btn-read:hover {
  transform: scale(1.04);
  box-shadow: 0 14px 40px rgba(56, 189, 248, 0.6);
}

/* ===================================================================
   CORE UTILITIES & LAYOUT FOUNDATIONS
   =================================================================== */
.w-full { width: 100% !important; }
.h-full { height: 100% !important; }
.min-h-screen { min-height: 100vh !important; }
.flex { display: flex !important; }
.inline-flex { display: inline-flex !important; }
.grid { display: grid !important; }
.hidden { display: none !important; }
.block { display: block !important; }
.flex-col { flex-direction: column !important; }
.items-center { align-items: center !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-start { justify-content: flex-start !important; }
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.fixed { position: fixed !important; }
.inset-0 { inset: 0 !important; }
.z-0 { z-index: 0 !important; }
.z-10 { z-index: 10 !important; }
.z-20 { z-index: 20 !important; }
.pointer-events-none { pointer-events: none !important; }
.overflow-hidden { overflow: hidden !important; }
.select-none { user-select: none !important; -webkit-user-select: none !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.max-w-5xl { max-width: 64rem !important; }
.container { width: 100% !important; max-width: 1100px !important; margin-left: auto !important; margin-right: auto !important; }

/* Spacing */
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-5 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
.px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.py-1\.5 { padding-top: 0.375rem !important; padding-bottom: 0.375rem !important; }
.py-5 { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }
.py-8 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
.pt-8 { padding-top: 2rem !important; }
.pb-4 { padding-bottom: 1rem !important; }
.pb-20 { padding-bottom: 5rem !important; }
.pb-24 { padding-bottom: 6rem !important; }
.mb-8 { margin-bottom: 2rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-8 { gap: 2rem !important; }

/* Borders & Radii */
.rounded-xl { border-radius: 0.75rem !important; }
.rounded-2xl { border-radius: 1rem !important; }
.rounded-full { border-radius: 9999px !important; }
.border { border: 1px solid rgba(255, 255, 255, 0.1) !important; }
.border-b { border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important; }
.border-white\/5 { border-color: rgba(255, 255, 255, 0.05) !important; }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1) !important; }
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05) !important; }
.bg-red-600 { background-color: #dc2626 !important; }
.backdrop-blur-md { backdrop-filter: blur(12px) !important; -webkit-backdrop-filter: blur(12px) !important; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5) !important; }

/* Typography */
.text-white { color: #ffffff !important; }
.text-zinc-300 { color: #d4d4d8 !important; }
.text-zinc-400 { color: #a1a1aa !important; }
.text-red-400 { color: #f87171 !important; }
.text-sky-400 { color: #38bdf8 !important; }
.text-xs { font-size: 0.75rem !important; }
.text-sm { font-size: 0.875rem !important; }
.text-xl { font-size: 1.25rem !important; }
.text-2xl { font-size: 1.5rem !important; }
.font-bold { font-weight: 700 !important; }
.font-sans { font-family: 'Inter', -apple-system, sans-serif !important; }
.font-serif { font-family: 'Cinzel', 'Lora', Georgia, serif !important; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important; }
.tracking-wider { letter-spacing: 0.05em !important; }
.tracking-widest { letter-spacing: 0.1em !important; }
.uppercase { text-transform: uppercase !important; }
.w-5 { width: 1.25rem !important; }
.h-5 { height: 1.25rem !important; }

/* ===================================================================
   DEDICATED COMPONENT STYLES
   =================================================================== */
.nr-circle-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(18, 19, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e4e4e7;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.2s ease;
  text-decoration: none;
}
.nr-circle-back-btn:hover {
  background: rgba(39, 39, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: scale(1.05);
}

.nr-landing-header {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

.nr-landing-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1.25rem 2rem 1.25rem;
  max-width: 900px;
  margin: auto;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

.nr-landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1.1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  font-family: monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d4d4d8;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.nr-btn-start-reading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 2.75rem;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
}
.nr-btn-start-reading.cote {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 0 35px rgba(220, 38, 38, 0.55);
}
.nr-btn-start-reading.spring {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.55);
}
.nr-btn-start-reading.manga {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.55);
}
.nr-btn-start-reading.generic {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  box-shadow: 0 0 35px rgba(220, 38, 38, 0.4);
}
.nr-btn-start-reading:hover {
  transform: scale(1.05);
}

.nr-landing-footer {
  width: 100%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.8rem;
  color: #71717a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}
.nr-landing-footer-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #a1a1aa;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nr-landing-footer-back:hover {
  color: #ffffff;
}

/* ===================================================================
   COTE YEAR 1: MODERN LUXURY CARD GRID & CHAPTER DRAWER
   =================================================================== */
.cote-lux-page {
  min-height: 100vh;
  background: #07070a;
  color: #f4f4f5;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  overflow-x: hidden;
}

.cote-lux-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 7, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cote-lux-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cote-lux-breadcrumbs {
  display: flex;
  flex-direction: column;
}

.cote-lux-breadcrumbs-top {
  font-size: 0.72rem;
  font-family: monospace;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cote-lux-breadcrumbs-sub {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.cote-lux-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.35);
  color: #fca5a5;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: monospace;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cote-lux-switch-btn:hover {
  background: rgba(225, 29, 72, 0.25);
  border-color: rgba(225, 29, 72, 0.6);
  color: #ffffff;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .nr-landing-header {
    padding: 1rem 3.8rem 1rem 1rem;
  }
  .cote-lux-header {
    padding: 0.85rem 3.8rem 0.85rem 0.85rem;
    gap: 0.5rem;
  }
  .cote-lux-breadcrumbs-sub {
    font-size: 0.82rem;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cote-lux-switch-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.7rem;
    gap: 0.35rem;
  }
  .cote-lux-switch-btn span {
    font-size: 0.68rem;
  }
  .nr-vol-page-header {
    padding-right: 3.8rem;
    padding-left: 0.85rem;
  }
}

.cote-lux-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 6rem;
}

.cote-lux-hero {
  margin-bottom: 2.5rem;
  text-align: center;
}

.cote-lux-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  background: rgba(225, 29, 72, 0.14);
  border: 1px solid rgba(225, 29, 72, 0.3);
  color: #fb7185;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.cote-lux-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
}

.cote-lux-subtitle {
  font-size: 0.92rem;
  color: #94a3b8;
  max-width: 650px;
  margin: 0 auto 1.75rem auto;
  line-height: 1.5;
}

.cote-lux-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 720px;
  margin: 0 auto;
}

.cote-lux-search-box {
  position: relative;
  width: 100%;
}

.cote-lux-search-input {
  width: 100%;
  padding: 0.9rem 1.25rem 0.9rem 2.85rem;
  border-radius: 9999px;
  background: rgba(18, 19, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.cote-lux-search-input:focus {
  border-color: rgba(225, 29, 72, 0.6);
  background: rgba(24, 25, 36, 0.95);
  box-shadow: 0 0 25px rgba(225, 29, 72, 0.25);
}

.cote-lux-filter-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.cote-filter-pill {
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cote-filter-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.cote-filter-pill.active {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  border-color: #e11d48;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(225, 29, 72, 0.4);
}

/* Grid of Luxury Cards */
.cote-lux-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
}

.cote-lux-card {
  background: linear-gradient(180deg, rgba(22, 23, 34, 0.85) 0%, rgba(13, 14, 22, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s, box-shadow 0.25s;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.cote-lux-card:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 29, 72, 0.45);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75), 0 0 25px rgba(225, 29, 72, 0.22);
}

.cote-card-top {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
}

.cote-card-cover-wrap {
  position: relative;
  width: 105px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cote-card-cover-img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.cote-lux-card:hover .cote-card-cover-img {
  transform: scale(1.05);
}

.cote-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  flex: 1;
}

.cote-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cote-vol-pill {
  font-family: monospace;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fb7185;
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid rgba(225, 29, 72, 0.3);
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.cote-semester-tag {
  font-family: monospace;
  font-size: 0.68rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
}

.cote-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0.1rem 0;
  line-height: 1.3;
}

.cote-card-dates {
  font-size: 0.72rem;
  font-family: monospace;
  color: #94a3b8;
  line-height: 1.35;
}

.cote-card-chars-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cote-chars-label {
  font-size: 0.68rem;
  font-family: monospace;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cote-char-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cote-char-chip {
  font-size: 0.73rem;
  font-weight: 600;
  color: #fda4af;
  background: rgba(244, 114, 182, 0.1);
  border: 1px solid rgba(244, 114, 182, 0.22);
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
}

.cote-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cote-card-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.35);
  cursor: pointer;
  border: none;
}

.cote-card-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.5);
  color: #ffffff;
}

.cote-card-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cote-card-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Slide-Over Drawer for Chapters */
.cote-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.cote-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cote-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  background: #0b0c13;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.85);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cote-drawer-panel.open {
  transform: translateX(0);
}

.cote-drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cote-drawer-header-info {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.cote-drawer-thumb {
  width: 50px;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.cote-drawer-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a1a1aa;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cote-drawer-close-btn:hover {
  background: rgba(225, 29, 72, 0.2);
  border-color: rgba(225, 29, 72, 0.4);
  color: #ffffff;
}

.cote-drawer-search-wrap {
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.cote-drawer-search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.4rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.85rem;
  outline: none;
  box-sizing: border-box;
}

.cote-drawer-search-input:focus {
  border-color: rgba(225, 29, 72, 0.5);
}

.cote-drawer-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.cote-drawer-ch-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cote-drawer-ch-item:hover {
  background: rgba(225, 29, 72, 0.1);
  border-color: rgba(225, 29, 72, 0.35);
  transform: translateX(4px);
}

.cote-drawer-ch-title {
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Fallback utilities */
.w-3\.5 { width: 0.875rem !important; }
.h-3\.5 { height: 0.875rem !important; }
.w-4 { width: 1rem !important; }
.h-4 { height: 1rem !important; }
.w-8 { width: 2rem !important; }
.h-8 { height: 2rem !important; }
.shrink-0 { flex-shrink: 0 !important; }
.rounded-lg { border-radius: 0.5rem !important; }

/* ===================================================================
   SERIES LANDING DUAL CTA BUTTONS
   =================================================================== */
.nr-landing-dual-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.nr-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 2.4rem;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.nr-btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
}

.nr-btn-primary.cote {
  background: linear-gradient(135deg, #ef4444 0%, #991b1b 100%);
  color: #ffffff;
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.5);
}

.nr-btn-primary.spring {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  color: #ffffff;
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.5);
}

.nr-btn-primary.manga {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  box-shadow: 0 0 35px rgba(139, 92, 246, 0.55);
}

.nr-btn-primary.generic {
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
  color: #ffffff;
  box-shadow: 0 0 35px rgba(99, 102, 241, 0.45);
}

.nr-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 2.2rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.nr-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-2px) scale(1.03);
}

.nr-btn-text-group {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.nr-btn-main-label {
  font-size: 0.95rem;
  font-weight: 800;
}

.nr-btn-sub-label {
  font-size: 0.68rem;
  opacity: 0.8;
  font-family: monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===================================================================
   DEDICATED VOLUME DETAIL PAGE STYLES (NO POPUP MODALS)
   =================================================================== */
.nr-vol-page-container {
  min-height: 100vh;
  background: #050508;
  color: #f4f4f5;
  user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  padding-bottom: 6rem;
}

.nr-vol-page-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 5, 8, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nr-vol-hero-card {
  max-width: 1100px;
  margin: 2.5rem auto 2rem auto;
  padding: 2.25rem;
  border-radius: 24px;
  background: rgba(15, 17, 26, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  animation: fade-in-up 0.35s ease-out;
}

@media (min-width: 600px) {
  .nr-vol-hero-card {
    flex-direction: row;
    align-items: flex-start;
  }
}

.nr-vol-3d-cover {
  width: 100%;
  max-width: 210px;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.nr-vol-3d-cover:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.95), 0 0 40px rgba(255, 255, 255, 0.12);
}

.nr-vol-meta-pane {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
  min-width: 0;
}

.nr-vol-badge-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nr-vol-pill-badge {
  font-size: 0.72rem;
  font-family: monospace;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
}

.nr-vol-title-main {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1.2;
}

.nr-vol-synopsis {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin: 0;
  max-width: 720px;
}

.nr-vol-progress-wrap {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 380px;
}

.nr-vol-progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.nr-vol-progress-bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.nr-vol-search-bar {
  max-width: 1100px;
  margin: 0 auto 1.5rem auto;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

.nr-vol-search-input {
  width: 100%;
  padding: 0.9rem 1.25rem 0.9rem 2.85rem;
  border-radius: 14px;
  background: rgba(18, 20, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #ffffff;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.nr-vol-search-input:focus {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(22, 25, 38, 0.95);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.06);
}

.nr-vol-ch-list {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-sizing: border-box;
}

.nr-vol-ch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 1.4rem;
  border-radius: 14px;
  background: rgba(18, 20, 30, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: #f1f5f9;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.nr-vol-ch-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateX(4px);
}

.nr-vol-ch-card.completed {
  border-left: 3px solid #10b981;
}

.nr-vol-ch-card.in-progress {
  border-left: 3px solid #8b5cf6;
}

/* ===================================================================
   HOUSEKI NO KUNI & AUTUMN IN AMBER CUSTOM LUXURY DESIGN SUITE
   =================================================================== */

/* Houseki no Kuni (Land of the Lustrous) Theme */
.theme-houseki .nr-series-tag.accent { background: rgba(52, 211, 153, 0.15); border-color: rgba(52, 211, 153, 0.4); color: #6ee7b7; }
.theme-houseki .nr-series-title { text-shadow: 0 0 45px rgba(52, 211, 153, 0.7), 0 0 90px rgba(45, 212, 191, 0.4); }
.theme-houseki .nr-series-quote-author { color: #34d399; }
.theme-houseki .nr-btn-primary-reading { background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%); box-shadow: 0 10px 35px rgba(52, 211, 153, 0.45); border-color: rgba(110, 231, 183, 0.35); }
.theme-houseki .nr-btn-primary-reading:hover { background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #047857 100%); box-shadow: 0 16px 45px rgba(52, 211, 153, 0.65); }
.theme-houseki .nr-vol-label { color: #34d399; }
.theme-houseki .nr-volume-card:hover .nr-volume-frame { box-shadow: 0 22px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(52, 211, 153, 0.35); border-color: rgba(110, 231, 183, 0.4); }

/* An Autumn in Amber Theme */
.theme-amber .nr-series-tag.accent { background: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.4); color: #fde68a; }
.theme-amber .nr-series-title { text-shadow: 0 0 45px rgba(245, 158, 11, 0.7), 0 0 90px rgba(217, 119, 6, 0.4); }
.theme-amber .nr-series-quote-author { color: #f59e0b; }
.theme-amber .nr-btn-primary-reading { background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%); box-shadow: 0 10px 35px rgba(245, 158, 11, 0.45); border-color: rgba(253, 230, 138, 0.35); }
.theme-amber .nr-btn-primary-reading:hover { background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #b45309 100%); box-shadow: 0 16px 45px rgba(245, 158, 11, 0.65); }
.theme-amber .nr-vol-label { color: #f59e0b; }
.theme-amber .nr-volume-card:hover .nr-volume-frame { box-shadow: 0 22px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(245, 158, 11, 0.35); border-color: rgba(253, 230, 138, 0.4); }

/* Houseki no Kuni 3-Edition Cards (Inspired by COTE Academic Year Selector) */
.nr-edition-card {
  position: relative;
  display: block;
  width: 310px;
  height: 430px;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  background: #06090e;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease, border-color 0.45s ease;
  box-sizing: border-box;
}

.nr-edition-card.bw {
  border: 1.5px solid rgba(52, 211, 153, 0.45);
  box-shadow: 0 0 45px rgba(52, 211, 153, 0.22), 0 20px 45px rgba(0,0,0,0.85);
}
.nr-edition-card.bw:hover {
  transform: translateY(-8px) scale(1.04);
  border-color: rgba(52, 211, 153, 0.9);
  box-shadow: 0 0 70px rgba(52, 211, 153, 0.48), 0 30px 60px rgba(0,0,0,0.92);
}

.nr-edition-card.minimalist {
  border: 1.5px solid rgba(244, 63, 94, 0.45);
  box-shadow: 0 0 45px rgba(244, 63, 94, 0.22), 0 20px 45px rgba(0,0,0,0.85);
}
.nr-edition-card.minimalist:hover {
  transform: translateY(-8px) scale(1.04);
  border-color: rgba(244, 63, 94, 0.9);
  box-shadow: 0 0 70px rgba(244, 63, 94, 0.48), 0 30px 60px rgba(0,0,0,0.92);
}

.nr-edition-card.fullcolor {
  border: 1.5px solid rgba(6, 182, 212, 0.45);
  box-shadow: 0 0 45px rgba(6, 182, 212, 0.22), 0 20px 45px rgba(0,0,0,0.85);
}
.nr-edition-card.fullcolor:hover {
  transform: translateY(-8px) scale(1.04);
  border-color: rgba(6, 182, 212, 0.9);
  box-shadow: 0 0 70px rgba(6, 182, 212, 0.48), 0 30px 60px rgba(0,0,0,0.92);
}

.nr-edition-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s ease;
}
.nr-edition-card:hover .nr-edition-card-img {
  transform: scale(1.09);
}

.nr-edition-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4,6,10,0.97) 0%, rgba(4,6,10,0.55) 45%, rgba(0,0,0,0.2) 100%);
}

.nr-edition-card-body {
  position: absolute;
  bottom: 0;
  inset-x: 0;
  padding: 1.85rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
}

/* In-place Edition Switcher Pills */
.hnk-edition-pills-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin: 1.75rem auto 2.5rem auto;
  max-width: 900px;
  padding: 0 1rem;
}

.hnk-edition-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.35rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
}
.hnk-edition-pill:hover {
  background: rgba(30, 41, 59, 0.9);
  color: #f1f5f9;
  border-color: rgba(52, 211, 153, 0.4);
  transform: translateY(-2px);
}
.hnk-edition-pill.active {
  background: rgba(52, 211, 153, 0.16);
  border-color: rgba(52, 211, 153, 0.7);
  color: #34d399;
  box-shadow: 0 0 25px rgba(52, 211, 153, 0.28);
}
.hnk-edition-pill.active.mini {
  background: rgba(244, 63, 94, 0.16);
  border-color: rgba(244, 63, 94, 0.7);
  color: #fb7185;
  box-shadow: 0 0 25px rgba(244, 63, 94, 0.28);
}
.hnk-edition-pill.active.color {
  background: rgba(6, 182, 212, 0.16);
  border-color: rgba(6, 182, 212, 0.7);
  color: #22d3ee;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.28);
}

.hnk-pill-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  font-family: monospace;
}
.hnk-edition-pill.active .hnk-pill-badge {
  background: rgba(52, 211, 153, 0.25);
  color: #a7f3d0;
}
.hnk-edition-pill.active.mini .hnk-pill-badge {
  background: rgba(244, 63, 94, 0.25);
  color: #fecdd3;
}
.hnk-edition-pill.active.color .hnk-pill-badge {
  background: rgba(6, 182, 212, 0.25);
  color: #cffafe;
}

/* Character Showcase Card Styles for Land of the Lustrous */
.hnk-char-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border-radius: 16px;
  background: rgba(11, 15, 22, 0.7);
  border: 1px solid rgba(52, 211, 153, 0.15);
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}
.hnk-char-card:hover {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(16, 24, 38, 0.85);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 20px rgba(52, 211, 153, 0.15);
}

