/* ═══════════════════════════════════════════
   HUNTER × HUNTER — MANGA WEBSITE STYLES
   ═══════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  --bg:          #0a0c12;
  --bg-2:        #0f1118;
  --bg-3:        #161922;
  --bg-card:     #222222;
  --bg-card-h:   #2a2a2a;
  --border:      rgba(255,255,255,.06);
  --border-h:    rgba(255,255,255,.12);

  --gold:        #FDD835;
  --gold-light:  #fff59d;
  --gold-dark:   #fbc02d;
  --teal:        #7ED321;
  --teal-dark:   #68b61a;
  --purple:      #42A5F5;
  --purple-dark: #1e88e5;
  --red:         #E53935;
  --red-dark:    #c62828;

  --text:        #F5F5F5;
  --text-2:      #b0bec5;
  --text-3:      #78909c;

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;

  --shadow-sm:   0 2px 8px rgba(0,0,0,.4);
  --shadow-md:   0 8px 32px rgba(0,0,0,.5);
  --shadow-lg:   0 20px 60px rgba(0,0,0,.6);
  --shadow-gold: 0 0 30px rgba(253,216,53,.2);

  --transition:  .25s cubic-bezier(.4,0,.2,1);
  --font:        'Outfit', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
.hidden { display: none !important; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #2a2e3e; }

/* ════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,12,18,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -1px;
  flex-shrink: 0;
}
.logo-hx { color: var(--gold); }
.logo-h  { color: var(--teal); }
.nav-links {
  display: flex;
  gap: 8px;
  flex: 1;
}
.nav-link {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-2);
  transition: var(--transition);
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: rgba(255,255,255,.06);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.nav-search {
  display: flex;
  align-items: center;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 12px;
  gap: 8px;
  max-width: 220px;
  transition: var(--transition);
}
.nav-search:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(253,216,53,.1);
}
.nav-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: .875rem;
  width: 100%;
  padding: 8px 0;
}
.nav-search input::placeholder { color: var(--text-3); }
.nav-search svg { width: 16px; height: 16px; color: var(--text-3); flex-shrink: 0; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition);
}
.hamburger:hover { background: var(--bg-3); }
.hamburger:focus { outline: none; }
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, background-color 0.3s ease;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--gold);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--gold);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  padding: 0 24px;
  border-top: 1px solid var(--border);
  gap: 4px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  background: rgba(10,12,18,.95);
  backdrop-filter: blur(16px);
}
.mobile-menu.open {
  max-height: 250px;
  padding: 16px 24px;
}
.mobile-menu a {
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-2);
  font-weight: 500;
  transition: var(--transition);
}
.mobile-menu a:hover { background: var(--bg-3); color: var(--text); }

/* ════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  padding: 100px 24px 80px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 1280px;
  margin: 0 auto;
}
.hero-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(253,216,53,.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(126,211,33,.05) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 90% 10%, rgba(66,165,245,.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.particle {
  position: absolute;
  border-radius: 50%;
  animation: float-particle linear infinite;
  opacity: 0;
}
@keyframes float-particle {
  0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10%  { opacity: .6; }
  90%  { opacity: .6; }
  100% { transform: translateY(-20vh) rotate(720deg); opacity: 0; }
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  flex: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(126,211,33,.1);
  border: 1px solid rgba(126,211,33,.2);
  color: var(--teal);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fade-up .6s ease both;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.3); opacity: .7; }
}
.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 8px;
  animation: fade-up .7s .1s ease both;
}
.title-hunter { color: var(--text); }
.title-x {
  color: var(--gold);
  text-shadow: 0 0 30px rgba(253,216,53,.5);
  display: inline-block;
  transform: scaleX(1.1);
  margin: 0 8px;
}
.hero-subtitle {
  color: var(--text-2);
  font-size: 1rem;
  margin-bottom: 20px;
  animation: fade-up .7s .15s ease both;
}
.hero-subtitle strong { color: var(--gold-light); font-weight: 600; }
.hero-desc {
  color: var(--text-2);
  font-size: .975rem;
  line-height: 1.75;
  margin-bottom: 36px;
  animation: fade-up .7s .2s ease both;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  animation: fade-up .7s .25s ease both;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #111111;
  font-weight: 700;
  font-size: .95rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(253,216,53,.3);
  transition: var(--transition);
  letter-spacing: .2px;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(253,216,53,.45);
}
.btn-primary svg { width: 18px; height: 18px; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: rgba(255,255,255,.05);
  color: var(--text);
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-h);
  transition: var(--transition);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.2);
  transform: translateY(-2px);
}
.btn-secondary svg { width: 18px; height: 18px; }
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  animation: fade-up .7s .3s ease both;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: .75rem;
  color: var(--text-3);
  letter-spacing: .5px;
  text-transform: uppercase;
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}
.hero-cover {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  animation: fade-up .8s .2s ease both;
}
.cover-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse, rgba(253,216,53,.2) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
  z-index: -1;
}
.cover-img {
  width: clamp(220px, 22vw, 320px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.05);
  transition: var(--transition);
}
.cover-img:hover { transform: scale(1.02) translateY(-4px); }
.cover-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  justify-content: center;
}
.tag {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: var(--transition);
}
.tag:hover {
  background: rgba(253,216,53,.1);
  border-color: rgba(253,216,53,.3);
  color: var(--gold);
}

/* ════════════════════════════════════════
   STORY ARCS
   ════════════════════════════════════════ */
.arcs-section, .recent-section, .about-section {
  padding: 80px 24px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.section-header {
  margin-bottom: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -.5px;
  position: relative;
  padding-left: 16px;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 70%;
  background: linear-gradient(to bottom, var(--gold), var(--teal));
  border-radius: 2px;
}
.section-sub {
  color: var(--text-3);
  font-size: .875rem;
  margin-top: 4px;
}
.see-all-btn {
  font-size: .875rem;
  font-weight: 600;
  color: var(--gold);
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(253,216,53,.2);
  background: rgba(253,216,53,.05);
  transition: var(--transition);
  white-space: nowrap;
}
.see-all-btn:hover {
  background: rgba(253,216,53,.1);
  border-color: rgba(253,216,53,.4);
}
.arcs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.arc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.arc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
}
.arc-card:hover {
  background: var(--bg-card-h);
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.arc-num {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  opacity: .7;
}
.arc-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}
.arc-range {
  font-size: .8rem;
  color: var(--text-3);
  margin-bottom: 12px;
}
.arc-desc {
  font-size: .85rem;
  color: var(--text-2);
  line-height: 1.6;
}
.arc-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 7px 14px;
  border-radius: 7px;
  font-size: .8rem;
  font-weight: 600;
  transition: var(--transition);
  opacity: 0;
}
.arc-card:hover .arc-read-btn { opacity: 1; }

/* ════════════════════════════════════════
   RECENT CHAPTERS GRID
   ════════════════════════════════════════ */
.recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.recent-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.recent-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(253,216,53,.03), transparent);
  opacity: 0;
  transition: var(--transition);
}
.recent-card:hover {
  background: var(--bg-card-h);
  border-color: rgba(253,216,53,.2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.recent-card:hover::after { opacity: 1; }
.recent-ch-num {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
}
.recent-ch-title {
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}
.recent-ch-date {
  font-size: .75rem;
  color: var(--text-3);
  margin-top: auto;
}
.recent-read-icon {
  position: absolute;
  top: 14px; right: 14px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(253,216,53,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  opacity: 0;
  transition: var(--transition);
}
.recent-read-icon svg { width: 14px; height: 14px; }
.recent-card:hover .recent-read-icon { opacity: 1; }

/* ════════════════════════════════════════
   ABOUT SECTION
   ════════════════════════════════════════ */
.about-section {
  background: linear-gradient(135deg, rgba(253,216,53,.03) 0%, transparent 50%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  margin: 0 24px 80px;
  max-width: 1232px;
}
.about-inner {
  display: flex;
  gap: 60px;
  align-items: center;
}
.about-text { flex: 1; }
.about-text h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -.3px;
}
.about-text p {
  color: var(--text-2);
  font-size: .975rem;
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}
.meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.meta-item span {
  font-size: .73rem;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--text-3);
  font-weight: 600;
}
.meta-item strong {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}
.about-image img {
  width: 140px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

/* ════════════════════════════════════════
   CHAPTER LIST VIEW
   ════════════════════════════════════════ */
#chapter-list-view { padding-top: 64px; }
.cl-header {
  background: linear-gradient(to bottom, var(--bg-2), var(--bg));
  border-bottom: 1px solid var(--border);
  padding: 48px 24px 36px;
}
.cl-header-inner {
  max-width: 900px;
  margin: 0 auto;
}
.cl-header h1 {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -.5px;
  margin-bottom: 6px;
}
.cl-header p {
  color: var(--text-3);
  font-size: .875rem;
  margin-bottom: 24px;
}
.cl-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.cl-search-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 14px;
  gap: 10px;
  flex: 1;
  min-width: 200px;
  transition: var(--transition);
}
.cl-search-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(253,216,53,.1);
}
.cl-search-wrap svg { width: 16px; height: 16px; color: var(--text-3); flex-shrink: 0; }
.cl-search-wrap input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: .9rem;
  padding: 11px 0;
  width: 100%;
}
.cl-search-wrap input::placeholder { color: var(--text-3); }
.sort-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-2);
  font-size: .875rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}
.sort-btn:hover { border-color: var(--border-h); color: var(--text); }
.sort-btn svg { width: 16px; height: 16px; }
.cl-body { max-width: 900px; margin: 0 auto; padding: 32px 24px 80px; }
.cl-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cl-table { width: 100%; border-collapse: collapse; }
.cl-table thead th {
  padding: 14px 20px;
  text-align: left;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-3);
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.cl-table thead th:first-child { width: 60px; text-align: center; }
.cl-table thead th:last-child  { width: 80px; text-align: center; }
.cl-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.cl-table tbody tr:last-child { border-bottom: none; }
.cl-table tbody tr:hover { background: var(--bg-card-h); }
.cl-table tbody td {
  padding: 14px 20px;
  font-size: .9rem;
  color: var(--text-2);
}
.cl-table tbody td:first-child {
  text-align: center;
  color: var(--text-3);
  font-size: .8rem;
  font-weight: 600;
  width: 60px;
}
.cl-table tbody td.ch-title-cell a {
  color: var(--text);
  font-weight: 500;
  transition: var(--transition);
}
.cl-table tbody td.ch-title-cell a:hover { color: var(--gold); }
.cl-table tbody td.ch-date-cell { color: var(--text-3); font-size: .8rem; }
.ch-read-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(253,216,53,.08);
  color: var(--gold);
  margin: 0 auto;
  transition: var(--transition);
}
.ch-read-btn:hover {
  background: rgba(253,216,53,.18);
  transform: scale(1.1);
}
.ch-read-btn svg { width: 14px; height: 14px; }
.no-results {
  text-align: center;
  padding: 48px;
  color: var(--text-3);
  font-size: .95rem;
}

/* ════════════════════════════════════════
   READER VIEW
   ════════════════════════════════════════ */
#reader-view { padding-top: 64px; }
.reader-topbar {
  position: sticky;
  top: 64px;
  z-index: 100;
  background: rgba(10,12,18,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
}
.reader-back {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: .875rem;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-3);
  transition: var(--transition);
  flex-shrink: 0;
}
.reader-back:hover { color: var(--text); border-color: var(--border-h); }
.reader-back svg { width: 16px; height: 16px; }
.reader-chapter-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  flex: 1;
}
.reader-nav-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.reader-nav-btns button {
  padding: 7px 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-2);
  font-size: .82rem;
  font-weight: 600;
  transition: var(--transition);
}
.reader-nav-btns button:hover:not(:disabled) {
  background: var(--bg-card-h);
  border-color: var(--border-h);
  color: var(--text);
}
.reader-nav-btns button:disabled { opacity: .3; cursor: not-allowed; }
.reader-ch-indicator {
  font-size: .75rem;
  color: var(--text-3);
  white-space: nowrap;
}
.reader-chapter-info {
  max-width: 700px;
  margin: 32px auto;
  padding: 0 24px;
  text-align: center;
}
.reader-chapter-info h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.reader-chapter-info p { color: var(--text-3); font-size: .875rem; }
.reader-pages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 16px 48px;
  max-width: 900px;
  margin: 0 auto;
}
.reader-page-img {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  border-radius: 4px;
}
.page-skeleton {
  width: 100%;
  max-width: 800px;
  height: 1100px;
  background: var(--bg-card);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.page-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.03) 50%, transparent 100%);
  animation: shimmer 1.5s infinite;
  transform: translateX(-100%);
}
@keyframes shimmer {
  100% { transform: translateX(100%); }
}
.loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px 24px;
  color: var(--text-3);
}
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.reader-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 24px 80px;
  flex-wrap: wrap;
}
.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-2);
  font-size: .9rem;
  font-weight: 600;
  transition: var(--transition);
}
.btn-nav:hover:not(:disabled) {
  background: var(--bg-card-h);
  border-color: var(--border-h);
  color: var(--text);
  transform: translateY(-2px);
}
.btn-nav:disabled { opacity: .3; cursor: not-allowed; }
.btn-nav svg { width: 18px; height: 18px; }

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .nav-logo {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 12px;
  display: inline-block;
}
.footer-brand p {
  color: var(--text-3);
  font-size: .85rem;
  line-height: 1.6;
}
.footer-links h4 {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-3);
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  color: var(--text-2);
  font-size: .875rem;
  margin-bottom: 8px;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  text-align: center;
  max-width: 1280px;
  margin: 0 auto;
}
.footer-bottom p {
  color: var(--text-3);
  font-size: .8rem;
}
.footer-bottom a { color: var(--gold); }

/* ════════════════════════════════════════
   SCROLL-TO-TOP
   ════════════════════════════════════════ */
.scroll-top {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 900;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: #111111;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(253,216,53,.35);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: var(--transition);
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.scroll-top:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(253,216,53,.45); }

/* ════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fade-up .6s ease both;
}

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
  }
  .hero-content { max-width: 100%; }
  .hero-badge, .hero-actions, .hero-stats { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-stats   { justify-content: center; }
  .hero-cover { order: -1; }
  .cover-img { width: 180px; }
  .about-inner { flex-direction: column; gap: 30px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav-links  { display: none; }
  .nav-search { display: none; }
  .hamburger  { display: flex; }
  .hero-title { font-size: 2.2rem; letter-spacing: -1px; }
  .arcs-grid  { grid-template-columns: 1fr; }
  .recent-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hide-mobile { display: none; }
  .reader-topbar { flex-wrap: wrap; gap: 8px; }
  .reader-chapter-title { order: -1; width: 100%; font-size: .85rem; }
  .reader-nav-btns button { padding: 6px 10px; font-size: .75rem; }
  .about-meta { grid-template-columns: 1fr; }
  .cl-table tbody td { padding: 12px 14px; }

  /* Reader bottom nav full-width stretch on mobile */
  .reader-bottom-nav {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    padding: 24px 16px 60px;
    gap: 8px;
  }
  .reader-bottom-nav .btn-nav {
    justify-content: center;
    padding: 14px 20px;
    font-size: .85rem;
    width: 100%;
  }
}
@media (max-width: 400px) {
  .recent-grid { grid-template-columns: 1fr; }
}

/* ── Loading Spinner Animation ── */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
