@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap");

/* Asteria UI — rebuilt from index.html homepage styles */

/* ═══════════════════════════════════════════════════════════════
   ASTERIA — Premium Manga Reading Platform
   Design System: Dark Nebula with Liquid Gold Accents
   ═══════════════════════════════════════════════════════════════ */

:root {
  --void: #03040a;
  --abyss: #070814;
  --deep: #0c0e1e;
  --surface: #111328;
  --surface-elevated: #161a32;
  --surface-floating: #1c2040;
  --gold-50: #fef9e8;
  --gold-100: #fcf0c4;
  --gold-200: #f9e28a;
  --gold-300: #f5d14a;
  --gold-400: #e8b820;
  --gold-500: #c99a0a;
  --gold-600: #a47a00;
  --gold-700: #7a5c00;
  --gold-800: #4d3a00;
  --gold-900: #2a2000;
  --accent-cyan: #00d4aa;
  --accent-cyan-dim: rgba(0, 212, 170, 0.15);
  --accent-rose: #ff6b8a;
  --accent-violet: #8b5cf6;
  --accent-amber: #f59e0b;
  --text-primary: #f0f2ff;
  --text-secondary: rgba(240, 242, 255, 0.72);
  --text-tertiary: rgba(240, 242, 255, 0.48);
  --text-muted: rgba(240, 242, 255, 0.28);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-gold: rgba(201, 154, 10, 0.25);
  --border-gold-bright: rgba(201, 154, 10, 0.45);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 0 40px rgba(201, 154, 10, 0.08);
  --shadow-gold-lg: 0 0 60px rgba(201, 154, 10, 0.12);
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-3xl: 32px;
  --radius-full: 9999px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --header-height: 68px;
  --max-content: 1440px;
  --sidebar-width: 340px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--void);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(17, 19, 40, 0.8) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(201, 154, 10, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 20% 80%, rgba(139, 92, 246, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.015'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(201, 154, 10, 0.2); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: rgba(201, 154, 10, 0.35); }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes pulse-gold { 0%, 100% { box-shadow: 0 0 0 0 rgba(201, 154, 10, 0.3); } 50% { box-shadow: 0 0 0 8px rgba(201, 154, 10, 0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }

.animate-fade-in-up { animation: fadeInUp 0.6s var(--ease-out-expo) forwards; opacity: 0; }
.animate-fade-in { animation: fadeIn 0.5s ease forwards; opacity: 0; }
.animate-scale-in { animation: scaleIn 0.5s var(--ease-out-expo) forwards; opacity: 0; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(3, 4, 10, 0.75);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(3, 4, 10, 0.92);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}
.header-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  transition: transform 0.2s var(--ease-spring);
  flex-shrink: 0;
}
.logo:hover { transform: scale(1.02); }
.logo-mark {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(201, 154, 10, 0.25);
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
}
.logo-mark svg {
  position: relative;
  z-index: 1;
  width: 20px; height: 20px;
  fill: var(--void);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.nav-link {
  position: relative;
  padding: var(--space-2) var(--space-4);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all 0.2s var(--ease-out-quart);
  overflow: hidden;
  isolation: isolate;
}
.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 154, 10, 0.1), rgba(201, 154, 10, 0.05));
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.nav-link:hover {
  color: var(--gold-300);
  background: transparent;
}
.nav-link:hover::before { opacity: 0 !important; }
.nav-link:not(:hover):not(.active)::before { opacity: 0 !important; }
.nav-link span { position: relative; z-index: 1; }
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}
.icon-btn {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s var(--ease-out-quart);
  position: relative;
}
.icon-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-gold);
  background: rgba(201, 154, 10, 0.08);
  transform: translateY(-1px);
}
.icon-btn svg {
  width: 18px; height: 18px;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.search-trigger {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-tertiary);
  font-size: 0.875rem;
  transition: all 0.2s var(--ease-out-quart);
  cursor: pointer;
  min-width: 200px;
}
.search-trigger:hover {
  border-color: var(--border-gold);
  background: rgba(201, 154, 10, 0.05);
  color: var(--text-secondary);
}
.search-trigger--icon {
  min-width: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
  border-radius: var(--radius-md);
}
.search-trigger--icon svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.auth-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(201, 154, 10, 0.12), rgba(201, 154, 10, 0.06));
  border: 1px solid var(--border-gold);
  color: var(--gold-300);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s var(--ease-out-quart);
}
.auth-btn:hover {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--void);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(201, 154, 10, 0.3);
  transform: translateY(-1px);
}
.account-avatar {
  width: 40px; height: 40px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-gold);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease-out-quart);
  overflow: hidden;
}
.account-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(201, 154, 10, 0.25);
}
.account-avatar svg { width: 20px; height: 20px; fill: var(--void); }
.mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.02);
}

/* ═══════════════════════════════════════════════════════════════
   SEARCH OVERLAY
   ═══════════════════════════════════════════════════════════════ */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(3, 4, 10, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.search-overlay.active { opacity: 1; pointer-events: all; }
.search-panel {
  width: min(720px, 92vw);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl), var(--shadow-gold);
  transform: translateY(-20px) scale(0.98);
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s ease;
  opacity: 0;
}
.search-overlay.active .search-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
}
.search-input-wrap svg { width: 20px; height: 20px; color: var(--text-muted); flex-shrink: 0; }
.search-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.125rem;
  outline: none;
  padding: var(--space-2) 0;
}
.search-input::placeholder { color: var(--text-muted); }
.search-close {
  width: 32px; height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.search-close:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
  background: rgba(255, 255, 255, 0.06);
}
.search-results {
  max-height: 60vh;
  overflow-y: auto;
  padding: var(--space-4) var(--space-6);
}
.search-section-title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: var(--space-4);
}
.search-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
.search-result {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s var(--ease-out-quart);
  cursor: pointer;
}
.search-result:hover {
  border-color: var(--border-gold);
  background: rgba(201, 154, 10, 0.06);
  transform: translateX(4px);
}
.search-result img { width: 48px; height: 68px; border-radius: var(--radius-sm); object-fit: cover; background: var(--deep); }
.search-result-info { min-width: 0; }
.search-result-title { font-weight: 600; font-size: 0.875rem; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-meta { font-size: 0.75rem; color: var(--text-tertiary); margin-top: 2px; }
.genre-pills { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.genre-pill {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-gold);
  background: rgba(201, 154, 10, 0.08);
  color: var(--gold-300);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease-out-quart);
}
.genre-pill:hover { background: rgba(201, 154, 10, 0.18); transform: translateY(-1px); }

/* Discovery-first search overlay */
.search-panel--discovery {
  width: min(1080px, 96vw);
  background:
    linear-gradient(165deg, rgba(22, 26, 50, 0.94), rgba(12, 14, 30, 0.92)),
    var(--surface);
  border: 1px solid rgba(201, 154, 10, 0.18);
  box-shadow: var(--shadow-xl), 0 0 48px rgba(201, 154, 10, 0.1);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
}
.search-panel--discovery .search-input-wrap {
  border-bottom-color: rgba(201, 154, 10, 0.12);
  background: rgba(255, 255, 255, 0.02);
}
.search-panel--discovery .search-results,
.discovery-shelves-root {
  max-height: min(68vh, 640px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--space-5) var(--space-6) var(--space-6);
  scrollbar-gutter: stable;
}
.discovery-overlay-body {
  display: grid;
  gap: var(--space-6);
}
.discovery-overlay-loading,
.discovery-empty {
  padding: var(--space-8) var(--space-4);
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.9rem;
  line-height: 1.5;
}
.discovery-shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}
.discovery-shelf-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.discovery-shelf-row {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: var(--space-2);
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.discovery-shelf-row::-webkit-scrollbar { height: 5px; }
.discovery-shelf-row::-webkit-scrollbar-thumb {
  background: rgba(201, 154, 10, 0.28);
  border-radius: var(--radius-full);
}
.discovery-tile {
  flex: 0 0 132px;
  display: grid;
  gap: var(--space-2);
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  transition: transform 0.2s var(--ease-out-quart);
}
.discovery-tile:hover { transform: translateY(-3px); }
.discovery-tile-cover {
  aspect-ratio: 3 / 4.2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--deep);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.discovery-tile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.discovery-tile-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.discovery-tile-meta {
  font-size: 0.68rem;
  color: var(--text-tertiary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.discovery-query-results {
  display: grid;
  gap: var(--space-4);
}
.discovery-query-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.discovery-compact-grid {
  display: grid;
  gap: var(--space-2);
}
.discovery-compact-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.discovery-compact-card:hover {
  border-color: rgba(201, 154, 10, 0.35);
  background: rgba(201, 154, 10, 0.07);
  transform: translateX(3px);
}
.discovery-compact-cover {
  width: 44px;
  height: 62px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--deep);
}
.discovery-compact-body {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.discovery-compact-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.discovery-compact-meta {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.discovery-view-all {
  justify-self: start;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-300);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 154, 10, 0.35);
  padding-bottom: 2px;
}
.discovery-view-all:hover { color: var(--gold-200); }
body.search-overlay-open { overflow: hidden; }
@media (max-width: 768px) {
  .search-panel--discovery { width: 100vw; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
  .search-overlay.is-open { align-items: stretch; padding-top: var(--header-height); }
  .discovery-tile { flex-basis: 118px; }
}

/* ═══════════════════════════════════════════════════════════════
   MAIN LAYOUT
   ═══════════════════════════════════════════════════════════════ */
.page-wrap { position: relative; z-index: 2; padding-top: var(--header-height); }
.content-grid {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--space-8);
}
.main-column { min-width: 0; display: flex; flex-direction: column; gap: var(--space-10); }
.sidebar-column { display: flex; flex-direction: column; gap: var(--space-8); }

/* ═══════════════════════════════════════════════════════════════
   SECTION COMPONENTS
   ═══════════════════════════════════════════════════════════════ */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.section-title-group { display: flex; flex-direction: column; gap: var(--space-1); }
.section-eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-400);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.section-eyebrow::before {
  content: '';
  width: 20px; height: 2px;
  background: linear-gradient(90deg, var(--gold-400), transparent);
  border-radius: var(--radius-full);
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.section-title svg { color: var(--gold-400); width: 22px; height: 22px; }
.section-subtitle { font-size: 0.875rem; color: var(--text-tertiary); max-width: 48ch; }
.view-all {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold-300);
  transition: all 0.2s var(--ease-out-quart);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
}
.view-all:hover { background: rgba(201, 154, 10, 0.08); gap: var(--space-3); }
.view-all svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease-out-quart); }
.view-all:hover svg { transform: translateX(3px); }
.card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: all 0.3s var(--ease-out-quart);
}
.card:hover { border-color: var(--border-soft); box-shadow: var(--shadow-md); }

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION — Cinematic Showcase
   ═══════════════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  padding: var(--space-8) var(--space-6) var(--space-12);
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100%;
  background:
    radial-gradient(ellipse 70% 60% at 30% 40%, rgba(201, 154, 10, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 70% 60%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
  pointer-events: none;
}
.hero-container {
  max-width: var(--max-content);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-carousel {
  position: relative;
  height: 520px;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  background: var(--deep);
  border: 1px solid var(--border-soft);
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  opacity: 0;
  transition: opacity 0.7s var(--ease-out-expo);
  pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: all; }
.hero-content {
  padding: var(--space-10) var(--space-10) var(--space-10) var(--space-12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  width: fit-content;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  background: rgba(201, 154, 10, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold-300);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}
.hero-badge .pulse-dot {
  width: 6px; height: 6px;
  border-radius: var(--radius-full);
  background: var(--gold-400);
  animation: pulse-gold 2s ease infinite;
}
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-chapter {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold-300);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.hero-chapter::before {
  content: '';
  width: 24px; height: 2px;
  background: linear-gradient(90deg, var(--gold-400), transparent);
  border-radius: var(--radius-full);
}
.hero-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: var(--space-8);
}
.hero-actions { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.25s var(--ease-out-quart);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--void);
  box-shadow: 0 8px 24px rgba(201, 154, 10, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(201, 154, 10, 0.4);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-medium);
  color: var(--text-primary);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-gold);
  color: var(--gold-300);
  transform: translateY(-1px);
}
.btn-icon {
  width: 44px; height: 44px;
  padding: 0;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-medium);
  color: var(--text-secondary);
}
.btn-icon:hover {
  background: rgba(201, 154, 10, 0.1);
  border-color: var(--border-gold);
  color: var(--gold-300);
}
.btn-icon.is-saved {
  background: rgba(201, 154, 10, 0.15);
  border-color: var(--border-gold-bright);
  color: var(--gold-300);
}
.btn-icon svg { width: 18px; height: 18px; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.btn-icon.is-saved svg { fill: currentColor; }
.hero-visual { position: relative; overflow: hidden; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 8s ease; }
.hero-slide.active .hero-visual img { transform: scale(1.05); }
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--deep) 0%, transparent 40%), linear-gradient(180deg, transparent 0%, var(--deep) 100%);
}
.hero-nav {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  z-index: 10;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: rgba(3, 4, 10, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  padding: 0;
}
.hero-dot:hover { background: rgba(255, 255, 255, 0.4); }
.hero-dot.active { width: 28px; background: linear-gradient(90deg, var(--gold-400), var(--gold-500)); }
.hero-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--space-6);
  z-index: 10;
  pointer-events: none;
}
.hero-arrow {
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  background: rgba(3, 4, 10, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-soft);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: all;
  transition: all 0.2s var(--ease-out-quart);
}
.hero-arrow:hover {
  background: rgba(201, 154, 10, 0.15);
  border-color: var(--border-gold);
  color: var(--gold-300);
  transform: scale(1.1);
}
.hero-arrow svg { width: 18px; height: 18px; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ═══════════════════════════════════════════════════════════════
   FEATURED ORIGINALS — Split Showcase
   ═══════════════════════════════════════════════════════════════ */
.featured-section { position: relative; }
.featured-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-4);
  align-items: stretch;
}
.featured-main {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-6);
  padding: var(--space-6);
  background: linear-gradient(165deg, rgba(17, 19, 40, 0.8), rgba(12, 14, 30, 0.9));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-2xl);
  position: relative;
  overflow: hidden;
  min-height: 318px;
  max-height: 318px;
  min-width: 0;
}
.featured-main::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201, 154, 10, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.featured-cover {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  align-self: center;
}
.featured-cover img { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform 0.5s var(--ease-out-quart); }
.featured-cover:hover img { transform: scale(1.03); }
.featured-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.featured-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow: hidden;
}
.featured-type {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: var(--space-3);
}
.featured-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 2.35em;
}
.featured-summary {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
  max-width: 480px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-meta { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-5); max-height: 44px; overflow: hidden; }
.featured-meta-item { font-size: 0.8rem; color: var(--text-tertiary); }
.featured-meta-item strong { color: var(--text-primary); font-weight: 600; }
.featured-actions { display: flex; align-items: center; gap: var(--space-3); }
.featured-side { display: flex; flex-direction: column; gap: var(--space-4); }
.side-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  padding-left: var(--space-2);
}
.side-header svg { color: var(--gold-400); width: 18px; height: 18px; }
.spotlight-list { display: flex; flex-direction: column; gap: var(--space-2); }
.spotlight-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.25s var(--ease-out-quart);
  min-height: 96px;
  max-height: 96px;
}
.spotlight-item:hover, .spotlight-item.active {
  background: rgba(201, 154, 10, 0.08);
  border-color: var(--border-gold);
  transform: translateX(4px);
}
.spotlight-item.active { box-shadow: var(--shadow-gold); }
.spotlight-thumb { width: 52px; height: 72px; border-radius: var(--radius-md); overflow: hidden; background: var(--deep); }
.spotlight-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.spotlight-item:hover .spotlight-thumb img { transform: scale(1.05); }
.spotlight-info { min-width: 0; }
.spotlight-title { font-weight: 600; font-size: 0.85rem; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.spotlight-chapter { font-size: 0.75rem; color: var(--text-tertiary); }

/* ═══════════════════════════════════════════════════════════════
   CONTINUE READING — Horizontal Scroll
   ═══════════════════════════════════════════════════════════════ */
.continue-scroll {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding: 0 0 var(--space-4);
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 154, 10, 0.35) rgba(255, 255, 255, 0.04);
}
.continue-scroll::-webkit-scrollbar {
  height: 8px;
}
.continue-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.035);
  border-radius: var(--radius-full);
}
.continue-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(201, 154, 10, 0.35), rgba(245, 209, 74, 0.55));
  border-radius: var(--radius-full);
  border: 2px solid rgba(3, 4, 10, 0.8);
}
.continue-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, rgba(201, 154, 10, 0.55), rgba(245, 209, 74, 0.75));
}
.continue-reading-wrap {
  position: relative;
}
.continue-reading-wrap::before,
.continue-reading-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 14px;
  width: 42px;
  z-index: 2;
  pointer-events: none;
}
.continue-reading-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--void), transparent);
}
.continue-reading-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--void), transparent);
}
.continue-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(165deg, rgba(17, 19, 40, 0.6), rgba(12, 14, 30, 0.8));
  transition: all 0.3s var(--ease-out-quart);
  cursor: pointer;
}
.continue-card:hover {
  border-color: var(--border-gold);
  background: linear-gradient(165deg, rgba(201, 154, 10, 0.06), rgba(17, 19, 40, 0.8));
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), var(--shadow-gold);
}
.continue-cover {
  width: 120px; height: 168px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--deep);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.continue-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease-out-quart); }
.continue-card:hover .continue-cover img { transform: scale(1.05); }
.continue-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.continue-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--space-1) 0;
}
.continue-tag {
  width: fit-content;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(201, 154, 10, 0.1);
  border: 1px solid var(--border-gold);
  margin-bottom: var(--space-3);
}
.continue-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.continue-meta {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: var(--space-3);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.progress-track {
  width: 100%;
  height: 4px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: var(--space-2);
}
.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
  transition: width 0.6s var(--ease-out-expo);
}
.progress-text { font-size: 0.75rem; color: var(--text-muted); margin-bottom: auto; }
.continue-link {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-300);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: gap 0.2s ease;
}
.continue-link:hover { gap: var(--space-3); }
.continue-link svg { width: 14px; height: 14px; }

/* ═══════════════════════════════════════════════════════════════
   LATEST UPDATES — Masonry Grid
   ═══════════════════════════════════════════════════════════════ */
.updates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.update-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--space-5);
  padding: var(--space-4);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(165deg, rgba(17, 19, 40, 0.5), rgba(12, 14, 30, 0.7));
  transition: all 0.3s var(--ease-out-quart);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.update-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 154, 10, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.update-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 16px rgba(201, 154, 10, 0.2);
}
.update-card:hover::before { opacity: 1; }
.update-card,
.continue-card,
.featured-main,
.ranking-item {
  min-width: 0;
}
.update-cover {
  width: 160px; height: 224px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--deep);
  box-shadow: var(--shadow-sm);
  position: relative;
  flex-shrink: 0;
}
.update-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out-quart); }
.update-card:hover .update-cover img { transform: scale(1.04); }
.update-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.update-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--space-1) 0;
}
.update-title {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.update-tag {
  width: fit-content;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(201, 154, 10, 0.1);
  border: 1px solid var(--border-gold);
  margin-bottom: var(--space-3);
}
.update-chapter { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: var(--space-1); font-weight: 500; }
.update-chapter strong { color: var(--text-primary); }
.update-time { font-size: 0.78rem; color: var(--text-tertiary); margin-bottom: var(--space-4); }
.update-actions { margin-top: auto; display: flex; gap: var(--space-2); flex-wrap: wrap; }
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-tertiary);
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s var(--ease-out-quart);
}
.action-btn:hover {
  border-color: var(--border-gold);
  background: rgba(201, 154, 10, 0.08);
  color: var(--gold-300);
  transform: translateY(-1px);
}
.action-btn svg,
.btn svg,
.continue-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.read-btn svg polygon,
.btn-primary svg polygon {
  fill: currentColor;
  stroke: none;
}
.bookmark-btn.is-saved svg,
.action-btn.is-saved svg,
.orig-bookmark-btn.is-saved svg { fill: currentColor; }
.library-btn.is-saved { color: var(--gold-300); }
.list-btn.is-saved { color: var(--gold-300); border-color: var(--border-gold-bright); }
.action-btn.is-saved { color: var(--gold-300); border-color: var(--border-gold-bright); background: rgba(201, 154, 10, 0.12); }
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}
.page-btn {
  min-width: 36px; height: 36px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s var(--ease-out-quart);
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-btn:hover:not(:disabled) {
  border-color: var(--border-gold);
  color: var(--gold-300);
  background: rgba(201, 154, 10, 0.06);
}
.page-btn.active {
  background: linear-gradient(135deg, rgba(201, 154, 10, 0.15), rgba(201, 154, 10, 0.08));
  border-color: var(--border-gold-bright);
  color: var(--gold-300);
}
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR — Weekly Standouts
   ═══════════════════════════════════════════════════════════════ */
.ranking-panel { position: sticky; top: calc(var(--header-height) + var(--space-6)); }
.ranking-list { display: flex; flex-direction: column; gap: var(--space-3); }
.ranking-item {
  display: grid;
  grid-template-columns: 28px 64px 1fr;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.25s var(--ease-out-quart);
  cursor: pointer;
}
.ranking-item:hover {
  background: rgba(201, 154, 10, 0.06);
  border-color: var(--border-gold);
  transform: translateX(4px);
}
.rank-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-400);
  text-align: center;
  line-height: 1;
}
.rank-number.top {
  font-size: 1.3rem;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.rank-thumb {
  width: 64px; height: 88px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--deep);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.rank-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.ranking-item:hover .rank-thumb img { transform: scale(1.05); }
.rank-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.rank-info { min-width: 0; }
.rank-title { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); line-height: 1.3; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-chapter { font-size: 0.78rem; color: var(--text-tertiary); }
.rank-chapter strong { color: var(--text-secondary); font-weight: 500; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.site-footer {
  margin-top: var(--space-16);
  padding: var(--space-10) var(--space-6) var(--space-12);
  border-top: 1px solid var(--border-subtle);
  position: relative;
  background: transparent;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
}

.footer-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
}

.footer-link {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  transition: color 0.2s ease;
  position: relative;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-400);
  transition: width 0.3s var(--ease-out-expo);
}

.footer-link:hover {
  color: var(--gold-300);
}

.footer-link:hover::after {
  width: 100%;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}


/* ═══════════════════════════════════════════════════════════════
   SKELETON LOADING
   ═══════════════════════════════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}
.skeleton-cover { aspect-ratio: 3/4; width: 100%; }
.skeleton-line { height: 12px; margin: 8px 0; }
.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar-column { order: 2; }
  .ranking-panel { position: static; }
}
@media (max-width: 980px) {
  .hero-carousel { height: 420px; }
  .hero-slide { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-content { padding: var(--space-8) var(--space-6); }
  .featured-layout { grid-template-columns: 1fr; }
  .featured-main { grid-template-columns: 160px 1fr; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-toggle { display: flex; }
  .search-trigger:not(.search-trigger--icon) { display: none; }
  .hero-carousel { height: 380px; }
  .hero-title { font-size: 1.75rem; }
  .updates-grid { grid-template-columns: 1fr; }
  .update-card { grid-template-columns: 120px 1fr; }
  .update-cover { width: 120px; height: 168px; }
  .featured-main { grid-template-columns: 1fr; }
  .featured-cover { width: 160px; margin: 0 auto; }
  .continue-card { flex: 0 0 300px; }
  .content-grid { padding: var(--space-6) var(--space-4); }
  .hero-section { padding: var(--space-6) var(--space-4) var(--space-10); }
  .header-inner { padding: 0 var(--space-4); }
}
@media (max-width: 480px) {
  .update-card { grid-template-columns: 1fr; }
  .update-cover { width: 100%; height: 200px; }
  .continue-card { flex: 0 0 280px; grid-template-columns: 100px 1fr; }
  .continue-cover { width: 100px; height: 140px; }
  .hero-carousel { height: 340px; }
  .hero-content { padding: var(--space-6); }
}

.account-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.account-menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  width: 220px;
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  border: 1px solid var(--border-soft);
  background: rgba(12, 14, 30, 0.98);
  box-shadow: var(--shadow-xl), var(--shadow-gold);
  backdrop-filter: blur(18px);
  display: none;
  z-index: 1100;
}
.account-menu.is-open { display: block; }
.account-menu a,
.account-menu button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 36px;
  border: 0;
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  background: transparent;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.84rem;
  text-align: left;
  cursor: pointer;
}
.account-menu a:hover,
.account-menu button:hover {
  color: var(--text-primary);
  background: rgba(201, 154, 10, 0.12);
}

.header-brand-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.logo-nav-spacer { flex: 1; min-width: 0; }

/* ═══ Compatibility (JS / legacy classnames) ═══ */
.search-overlay.is-open {
  opacity: 1;
  pointer-events: all;
  display: flex;
}
.search-overlay.is-open .search-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.search-overlay.active,
.search-overlay.is-open {
  opacity: 1;
  pointer-events: all;
  display: flex;
}
.search-overlay.active .search-panel,
.search-overlay.is-open .search-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.hero-slide.slide-active {
  opacity: 1;
  pointer-events: all;
}
.hero-dot.is-active,
.hero-dot[aria-current="true"] {
  width: 28px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-500));
}
.ad-rotator-dot.is-active {
  background: linear-gradient(90deg, var(--gold-400), var(--gold-500));
}
.is-hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .main-nav.is-mobile-open {
    display: flex !important;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-4);
    gap: var(--space-2);
    background: rgba(3, 4, 10, 0.96);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 999;
    box-shadow: var(--shadow-lg);
  }
}

.sleek-account-btn {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(245, 209, 74, 0.45);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.34), transparent 30%),
    linear-gradient(135deg, var(--gold-300), var(--gold-600));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 10px 28px rgba(201,154,10,.26);
}
.sleek-account-btn::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 22px;
  background: radial-gradient(circle, rgba(245, 209, 74, 0.2), transparent 62%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.sleek-account-btn:hover::before {
  opacity: 1;
}
.sleek-account-btn:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 12px 32px rgba(201, 154, 10, 0.32);
}
.account-orb {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(3, 4, 10, 0.18);
  color: var(--void);
}
.account-orb svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sleek-account-btn[aria-expanded="true"] {
  box-shadow:
    0 0 0 1px rgba(245, 209, 74, 0.55) inset,
    0 0 28px rgba(201, 154, 10, 0.34);
}

/* Non-home shell */
body.asteria-chrome {
  padding-top: var(--header-height);
}

.page-main {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
}

.content-section {
  margin-bottom: var(--space-12);
}

.page-hero {
  padding: var(--space-10) var(--space-6) var(--space-8);
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(201, 154, 10, 0.06), transparent);
}

/* ═══════════════════════════════════════════════════════════════
   Cross-page card aliases (maps to .update-card feel)
   ═══════════════════════════════════════════════════════════════ */
.library-card,
.bookmark-card,
.discovery-card,
.news-card,
.comic-card,
.series-card,
.result-card,
.profile-card,
.settings-card,
.auth-card,
.watchlist-card,
.history-card,
.tracking-card {
  background: linear-gradient(165deg, rgba(17, 19, 40, 0.5), rgba(12, 14, 30, 0.7));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  transition: all 0.3s var(--ease-out-quart);
}

.library-card:hover,
.bookmark-card:hover,
.discovery-card:hover,
.news-card:hover,
.comic-card:hover,
.series-card:hover,
.result-card:hover,
.settings-card:hover,
.watchlist-card:hover,
.history-card:hover,
.tracking-card:hover,
.profile-card:hover,
.auth-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 16px rgba(201, 154, 10, 0.2);
}

/* Weekly Standouts — subtle medal surfaces (component-scoped) */
.ranking-item.rank-gold {
  background: linear-gradient(165deg, rgba(201, 154, 10, 0.08), rgba(17, 19, 40, 0.55));
  border-color: rgba(201, 154, 10, 0.28);
}

.ranking-item.rank-silver {
  background: linear-gradient(165deg, rgba(190, 195, 210, 0.06), rgba(17, 19, 40, 0.55));
  border-color: rgba(190, 195, 210, 0.22);
}

.ranking-item.rank-bronze {
  background: linear-gradient(165deg, rgba(184, 115, 51, 0.06), rgba(17, 19, 40, 0.55));
  border-color: rgba(184, 115, 51, 0.22);
}

.ranking-item.rank-gold .rank-number,
.ranking-item.rank-silver .rank-number,
.ranking-item.rank-bronze .rank-number {
  text-shadow: none;
}

/* Navbar: gold text active state — no pill / border / background */
.main-nav .nav-link.active,
.main-nav .nav-link[aria-current="page"],
body.originals-page-active .main-nav .nav-link[href*="originals"],
body.news-page-active .main-nav .nav-link[href*="news"],
body.keryx-page-active .main-nav .nav-link[href*="keryx"],
body.era-page-active .main-nav .nav-link[href*="era"],
body.page-era .main-nav .nav-link[href*="era"],
body.upcoming-page-active .main-nav .nav-link[href*="upcoming"],
body.premium-page-active .main-nav .nav-link[href*="premium"] {
  color: var(--gold-300) !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.main-nav .nav-link.active::before,
.main-nav .nav-link.active::after,
.main-nav .nav-link[aria-current="page"]::before,
.main-nav .nav-link[aria-current="page"]::after {
  display: none !important;
  content: none !important;
}

.main-nav .nav-link:hover {
  color: var(--gold-300);
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.main-nav .nav-link:hover::before,
.main-nav .nav-link:hover::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
}

.main-nav .nav-link .nav-indicator {
  display: none !important;
}

/* Auth chrome visibility (no aesthetic overrides) */
#homeAuthLink[hidden],
.auth-btn[hidden] {
  display: none !important;
}

body:not(.is-authenticated) #homeAuthLink,
body:not(.is-authenticated) .auth-btn:not([hidden]) {
  display: inline-flex;
}

.account-shell[hidden],
#accountShell[hidden] {
  display: none !important;
}

body.is-authenticated #homeAuthLink {
  display: none !important;
}

body.is-authenticated #accountShell,
body.is-authenticated .account-shell {
  display: inline-flex !important;
  align-items: center;
}

body:not(.is-authenticated) #accountShell,
body:not(.is-authenticated) .account-shell {
  display: none !important;
}
