/* ==============================================================================
   COLOMBIA TIERRA QUERIDA — CONCEPTO 1: «EL RÍO DEL TIEMPO»
   Replicación fiel del Mockup de Alta Fidelidad (Ajustes de Maquetación y Overflow)
   Paleta: Dark Obsidian (#0c0e12), Oro Imperial (#e5a93c), Ámbar Cálido, Plata (#cbd5e1)
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

:root {
  --bg-canvas: #0b0d12;
  --bg-card: rgba(26, 30, 39, 0.85);
  --bg-card-border: rgba(255, 255, 255, 0.09);
  --bg-pill: rgba(255, 255, 255, 0.05);
  --bg-pill-border: rgba(255, 255, 255, 0.12);

  --gold-primary: #e5a93c;
  --gold-accent: #d49836;
  --gold-glow: rgba(229, 169, 60, 0.4);
  --gold-ambient: rgba(229, 169, 60, 0.12);

  --text-pure: #ffffff;
  --text-silver: #cbd5e1;
  --text-muted: #8c97a8;
  --text-dim: #546073;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-card: 22px;
  --radius-pill: 9999px;
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-canvas);
  color: var(--text-pure);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(ellipse at 50% 36%, rgba(229, 169, 60, 0.13) 0%, transparent 60%),
    radial-gradient(circle at 10% 90%, rgba(229, 169, 60, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 15%, rgba(16, 185, 129, 0.03) 0%, transparent 40%);
  background-attachment: fixed;
}

/* ==============================================================================
   1. HEADER SUPERIOR MINIMALISTA
   ============================================================================== */
.top-nav {
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  align-items: center;
  padding: 20px 44px 14px;
  max-width: 1540px;
  width: 100%;
  margin: 0 auto;
  z-index: 50;
}

/* Logo Izquierda */
.brand-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.colombia-flag-icon {
  display: flex;
  flex-direction: column;
  width: 26px;
  height: 22px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(229, 169, 60, 0.35);
  flex-shrink: 0;
}
.colombia-flag-icon .stripe-y { flex: 2; background: #ffd100; }
.colombia-flag-icon .stripe-b { flex: 1; background: #003893; }
.colombia-flag-icon .stripe-r { flex: 1; background: #ce1126; }

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-name-main {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #ffffff;
  line-height: 1.15;
}

.brand-name-sub {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-silver);
  line-height: 1.15;
}

/* Buscador Central */
.search-pill-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.search-pill {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.search-pill input {
  width: 100%;
  height: 40px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bg-pill-border);
  border-radius: var(--radius-pill);
  padding: 0 46px 0 20px;
  color: #ffffff;
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition-smooth);
}

.search-pill input::placeholder {
  color: var(--text-dim);
}

.search-pill input:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--gold-primary);
  box-shadow: 0 0 16px rgba(229, 169, 60, 0.25);
}

.search-pill-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--gold-primary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Acciones Derecha */
.nav-actions-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

.btn-hamburger-menu {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 6px;
  transition: var(--transition-smooth);
}
.btn-hamburger-menu span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-silver);
  border-radius: 2px;
  transition: var(--transition-smooth);
}
.btn-hamburger-menu:hover span {
  background: var(--gold-primary);
}

.stats-count-tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--gold-primary);
  background: rgba(229, 169, 60, 0.1);
  border: 1px solid rgba(229, 169, 60, 0.25);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.audit-nav-pill {
  background: rgba(229, 169, 60, 0.12);
  border: 1px solid rgba(229, 169, 60, 0.35);
  color: var(--gold-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.audit-nav-pill:hover {
  background: var(--gold-primary);
  color: #0b0d12;
  box-shadow: 0 0 12px var(--gold-glow);
}

/* ==============================================================================
   2. FILA DE PASTILLAS DE CATEGORÍA
   ============================================================================== */
.categories-nav-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 4px 24px 22px;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.category-pill {
  background: var(--bg-pill);
  border: 1px solid var(--bg-pill-border);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
  user-select: none;
  white-space: nowrap;
}

.category-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.category-pill.active {
  background: rgba(212, 152, 54, 0.16);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  box-shadow: 0 0 16px rgba(229, 169, 60, 0.25);
  font-weight: 600;
}

/* ==============================================================================
   3. HERO STAGE (SPOTLIGHT CENTRAL Y PEEK CARDS FLANQUEADAS)
   ============================================================================== */
.hero-stage-viewport {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 0 32px 30px;
  overflow: hidden;
  box-sizing: border-box;
}

.hero-slider-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 890px;
}

/* Tarjetas Vecinas que asoman en los costados exteriores (Sin invadir el centro) */
.peek-card {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  width: 320px;
  height: 340px;
  background: rgba(20, 24, 32, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-card);
  overflow: hidden;
  opacity: 0.35;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  padding: 20px;
  gap: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2;
  pointer-events: auto;
}

.peek-card.peek-left {
  right: calc(100% + 22px);
}

.peek-card.peek-right {
  left: calc(100% + 22px);
}

.peek-card:hover {
  opacity: 0.75;
  transform: translateY(-50%) scale(0.93);
}

.peek-card img {
  width: 130px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}
.peek-card-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}
.peek-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.peek-card-year {
  font-size: 0.82rem;
  color: var(--gold-primary);
  font-weight: 600;
}

/* Tarjeta Principal Spotlight */
.hero-spotlight-card {
  width: 100%;
  max-width: 890px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-card);
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.85),
    0 0 35px rgba(229, 169, 60, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  padding: 28px;
  gap: 28px;
  position: relative;
  z-index: 10;
  transition: var(--transition-smooth);
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
}

.hero-spotlight-card:hover {
  border-color: rgba(229, 169, 60, 0.28);
  box-shadow: 
    0 30px 70px -15px rgba(0, 0, 0, 0.9),
    0 0 45px rgba(229, 169, 60, 0.16);
}

/* Columna de Retrato */
.hero-portrait-frame {
  width: 100%;
  height: 340px;
  border-radius: 16px;
  overflow: hidden;
  background: #141720;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  flex-shrink: 0;
}

.hero-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.hero-portrait-frame:hover img {
  transform: scale(1.03);
}

/* Columna de Información y Textos (Sin Desborde) */
.hero-details-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  overflow: hidden;
  gap: 12px;
  padding: 2px 0;
}

.hero-character-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-primary);
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-milestone-headline {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  letter-spacing: -0.3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero-vital-dates {
  font-size: 0.88rem;
  color: var(--text-silver);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-bio-summary {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Pastilla APA Style (Copiable a 1 Clic) */
.apa-style-pill {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 6px 12px 6px 6px;
  gap: 10px;
  margin-top: auto;
  cursor: pointer;
  transition: var(--transition-smooth);
  min-width: 0;
  overflow: hidden;
}

.apa-style-pill:hover {
  background: rgba(229, 169, 60, 0.08);
  border-color: rgba(229, 169, 60, 0.3);
}

.apa-badge-label {
  background: var(--gold-primary);
  color: #0b0d12;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.apa-citation-snippet {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.apa-copy-icon {
  color: var(--gold-primary);
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ==============================================================================
   4. SECCIÓN INFERIOR: «EL RÍO DEL TIEMPO»
   ============================================================================== */
.river-timeline-section {
  max-width: 1540px;
  width: 100%;
  margin: 0 auto;
  padding: 0 44px 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
}

.river-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.river-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.river-section-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.river-era-badge {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--gold-primary);
  background: rgba(229, 169, 60, 0.12);
  border: 1px solid rgba(229, 169, 60, 0.3);
  border-radius: 20px;
  padding: 3px 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.river-quick-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.river-position-counter {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-right: 6px;
}

.river-arrow-btn {
  background: var(--bg-pill);
  border: 1px solid var(--bg-pill-border);
  color: var(--text-silver);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}
.river-arrow-btn:hover {
  background: var(--gold-primary);
  color: #0b0d12;
  border-color: var(--gold-primary);
}

/* Galería Horizontal de Miniaturas (Cards Redondeadas del Mockup) */
.portraits-filmstrip {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  padding: 8px 4px 16px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.portraits-filmstrip::-webkit-scrollbar {
  display: none;
}

.portrait-squircle-item {
  flex: 0 0 74px;
  width: 74px;
  height: 90px;
  border-radius: 14px;
  overflow: hidden;
  background: #141720;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.portrait-squircle-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portrait-squircle-item:hover {
  transform: translateY(-4px);
  border-color: rgba(229, 169, 60, 0.4);
}

/* Tarjeta Activa Iluminada (Exacta al Mockup) */
.portrait-squircle-item.active {
  border: 2.5px solid var(--gold-primary);
  box-shadow: 
    0 0 20px rgba(229, 169, 60, 0.7),
    0 6px 18px rgba(0, 0, 0, 0.7);
  transform: translateY(-5px) scale(1.06);
  z-index: 10;
}

/* ==============================================================================
   5. BARRA DE TIEMPO / CRONOGRAMA CON AGUJA Y ÉPOCAS HISTÓRICAS
   ============================================================================== */
.timeline-track-wrapper {
  position: relative;
  width: 100%;
  padding: 34px 0 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline-golden-rail {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  cursor: pointer;
  transition: height 0.15s ease;
}

.timeline-golden-rail:hover {
  height: 8px;
}

.timeline-fill-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(229, 169, 60, 0.35), var(--gold-primary));
  border-radius: 3px;
  pointer-events: none;
}

.timeline-ticks-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.rail-tick-pip {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: rgba(255, 255, 255, 0.22);
  transform: translateX(-50%);
  border-radius: 1px;
}

.rail-tick-pip.major {
  top: -6px;
  bottom: -6px;
  background: rgba(229, 169, 60, 0.65);
}

/* Aguja Dorada con Tooltip Flotante ARRIBA del riel */
.timeline-active-knob {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  background: var(--gold-primary);
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 
    0 0 20px 6px var(--gold-primary),
    0 0 10px rgba(255, 255, 255, 0.9);
  pointer-events: none;
  transition: left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

/* Tooltip Flotante Arriba del Riel con Caret */
.active-year-tooltip {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(13, 16, 24, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--gold-primary);
  border-radius: 20px;
  padding: 4px 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.8), 0 0 12px rgba(229, 169, 60, 0.4);
  pointer-events: none;
  white-space: nowrap;
}

.active-year-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: var(--gold-primary) transparent transparent transparent;
}

.tooltip-year-text {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold-primary);
  letter-spacing: 0.5px;
  line-height: 1.15;
}

.tooltip-era-subtext {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-silver);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Límites Cronológicos del Riel */
.rail-bounds-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.74rem;
  color: var(--text-dim);
  font-weight: 600;
  padding: 0 2px;
  user-select: none;
}

/* Barra de Navegación por Grandes Épocas Históricas */
.timeline-eras-row {
  display: flex;
  gap: 8px;
  width: 100%;
  justify-content: space-between;
  margin-top: 6px;
}

.era-tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  min-width: 0;
}

.era-tab-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(229, 169, 60, 0.35);
  color: #ffffff;
  transform: translateY(-1px);
}

.era-tab-item.active {
  background: rgba(229, 169, 60, 0.12);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  box-shadow: 0 0 14px rgba(229, 169, 60, 0.25);
}

.era-tab-item.disabled {
  opacity: 0.28;
  cursor: not-allowed;
  pointer-events: none;
}

.era-tab-years {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.era-tab-label {
  font-size: 0.74rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ==============================================================================
   6. MODAL DETALLADO CON BIOGRAFÍA COMPLETA
   ============================================================================== */
.full-bio-modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.full-bio-modal.open {
  display: flex;
  animation: fadeInModal 0.25s ease;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.modal-content-card {
  background: #11151d;
  border: 1px solid rgba(229, 169, 60, 0.3);
  border-radius: var(--radius-card);
  max-width: 840px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.95), 0 0 35px rgba(229, 169, 60, 0.12);
  display: flex;
  flex-direction: column;
}

.modal-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-close-trigger {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}
.modal-close-trigger:hover {
  color: #fff;
}

.modal-body-container {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-character-header {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
}

.modal-photo-square {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(229, 169, 60, 0.35);
}

.modal-timeline-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--text-silver);
  white-space: pre-line;
}

/* Toast de Copiado */
.toast-badge {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--gold-primary);
  color: #0b0d12;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  gap: 8px;
  z-index: 2000;
}
.toast-badge.visible {
  display: flex;
  animation: slideToast 0.3s ease;
}

@keyframes slideToast {
  from { transform: translateY(15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==============================================================================
   7. ADAPTACIÓN RESPONSIVA
   ============================================================================== */
@media (max-width: 1440px) {
  .peek-card { display: none; }
}

@media (max-width: 900px) {
  .top-nav {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px 20px;
  }
  .brand-identity { justify-content: center; }
  .nav-actions-right { justify-content: center; }
  .hero-stage-viewport { padding: 0 16px 20px; }
  .hero-spotlight-card {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 18px;
  }
  .hero-portrait-frame {
    height: 270px;
    max-width: 230px;
    margin: 0 auto;
  }
  .river-timeline-section { padding: 0 16px 24px; }
  .modal-character-header { grid-template-columns: 1fr; }
  .timeline-eras-row {
    overflow-x: auto;
    padding-bottom: 6px;
    gap: 6px;
  }
  .era-tab-item {
    flex: 0 0 130px;
  }
}
