/* =============================================
   CINEMATHEQUE — Editorial Repertory System
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Cormorant+Garamond:wght@500;600;700&display=swap');

:root {
  --bg: #0b0908;
  --bg-soft: #14100f;
  --bg-panel: rgba(22, 17, 15, 0.92);
  --bg-panel-strong: rgba(30, 23, 20, 0.96);
  --bg-card: rgba(245, 236, 221, 0.03);
  --bg-card-hover: rgba(245, 236, 221, 0.06);
  --paper: #efe3cd;
  --paper-muted: #c8b89c;
  --ink: #f7f0e4;
  --ink-soft: #d8cab5;
  --muted: #907e6a;
  --line: rgba(239, 227, 205, 0.14);
  --line-strong: rgba(239, 227, 205, 0.24);
  --gold: #c4a46a;
  --gold-soft: #e1c999;
  --burgundy: #6e1f24;
  --burgundy-soft: #a84c4f;
  --cobalt: #3256a8;
  --cobalt-soft: #7895db;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.28);
  --poster-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
  --grad-accent: linear-gradient(135deg, #d7b273 0%, #8f3137 52%, #2d4d93 100%);
  --grad-heading: linear-gradient(135deg, #f7efdf 10%, #d4b376 52%, #e2caa2 100%);
  --grad-divider: linear-gradient(90deg, transparent 0%, rgba(212, 179, 118, 0.5) 20%, rgba(143, 49, 55, 0.38) 52%, rgba(45, 77, 147, 0.45) 82%, transparent 100%);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', sans-serif;
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 9999px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(143, 49, 55, 0.16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(45, 77, 147, 0.16), transparent 30%),
    linear-gradient(180deg, #120d0b 0%, #0b0908 60%, #090807 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.015), rgba(255,255,255,0.015)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f4e5c9' fill-opacity='0.05'%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3Ccircle cx='80' cy='44' r='1'/%3E%3Ccircle cx='144' cy='72' r='1'/%3E%3Ccircle cx='40' cy='122' r='1'/%3E%3Ccircle cx='118' cy='150' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.18));
  pointer-events: none;
  z-index: 0;
}

.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.bg-orbs::before,
.bg-orbs::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
}

.bg-orbs::before {
  top: -10%;
  left: -8%;
  width: 38rem;
  height: 38rem;
  background: radial-gradient(circle, rgba(110, 31, 36, 0.22), transparent 68%);
  animation: driftSlow 22s ease-in-out infinite alternate;
}

.bg-orbs::after {
  right: -6%;
  bottom: -12%;
  width: 34rem;
  height: 34rem;
  background: radial-gradient(circle, rgba(50, 86, 168, 0.18), transparent 68%);
  animation: driftSlow 28s ease-in-out infinite alternate-reverse;
}

@keyframes driftSlow {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(26px, 34px, 0) scale(1.08); }
}

h1, h2, h3, h4, .font-serif, .font-headline {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

p, li, span, a, button, input, select, textarea {
  font-family: var(--font-body);
}

.gradient-text,
.grad-text {
  background: var(--grad-heading);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.label-pill,
.label-md {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.9rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: rgba(196, 164, 106, 0.08);
  color: var(--gold-soft);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.label-pill.violet,
.label-pill.pink,
.label-pill.cyan,
.label-pill.coral {
  color: var(--gold-soft);
  border-color: rgba(196, 164, 106, 0.28);
  background: rgba(196, 164, 106, 0.08);
}

.nav-modern {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 76px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(9, 8, 7, 0.82);
  border-bottom: 1px solid rgba(239, 227, 205, 0.1);
  backdrop-filter: blur(18px);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-modern.scrolled {
  background: rgba(9, 8, 7, 0.95);
  border-color: rgba(196, 164, 106, 0.18);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.28);
}

.nav-logo,
.footer-logo {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--paper);
}

.nav-logo::after,
.footer-logo::after {
  content: '.';
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.95rem;
  border-radius: var(--r-pill);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  border: 1px solid transparent;
}

.nav-links a:hover {
  color: var(--paper);
  background: rgba(239, 227, 205, 0.045);
}

.nav-links a.active {
  color: var(--paper);
  border-color: rgba(196, 164, 106, 0.26);
  background: linear-gradient(90deg, rgba(196, 164, 106, 0.12), rgba(110, 31, 36, 0.1));
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.45rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--grad-accent);
  color: #fff7ec;
  box-shadow: 0 12px 28px rgba(110, 31, 36, 0.26);
}

.btn-primary:hover {
  box-shadow: 0 18px 34px rgba(110, 31, 36, 0.3);
}

.btn-glass {
  background: rgba(239, 227, 205, 0.05);
  border-color: var(--line);
  color: var(--paper);
}

.btn-glass:hover {
  border-color: rgba(196, 164, 106, 0.24);
  background: rgba(239, 227, 205, 0.09);
}

.btn-outline {
  background: transparent;
  border-color: rgba(196, 164, 106, 0.32);
  color: var(--gold-soft);
}

.btn-outline:hover {
  background: rgba(196, 164, 106, 0.08);
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
}

.glass-card,
.detail-panel,
.filter-sidebar,
.theater-card {
  background: linear-gradient(180deg, rgba(28, 22, 19, 0.9), rgba(17, 14, 12, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
}

.glass-card:hover,
.theater-card:hover {
  border-color: rgba(196, 164, 106, 0.2);
  background: linear-gradient(180deg, rgba(34, 26, 23, 0.96), rgba(17, 14, 12, 0.98));
}

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-title {
  font-size: clamp(3.3rem, 9vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: var(--paper);
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-progress-bar {
  width: 120px;
  height: 2px;
  background: rgba(239, 227, 205, 0.18);
  overflow: hidden;
}

.hero-progress-fill {
  height: 100%;
  background: var(--grad-accent);
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gold-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.section-eyebrow::before {
  content: '';
  width: 42px;
  height: 1px;
  background: var(--grad-divider);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--paper);
}

.genre-gradient-divider {
  height: 1px;
  margin: 0 auto;
  width: min(92vw, 1400px);
  background: var(--grad-divider);
  opacity: 0.8;
}

.spotlight-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    linear-gradient(135deg, rgba(31, 20, 18, 0.98), rgba(15, 12, 11, 0.98)),
    radial-gradient(circle at top right, rgba(45, 77, 147, 0.12), transparent 30%);
  box-shadow: var(--shadow);
}

.media-card,
.immortal-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.media-card img,
.immortal-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(22%) contrast(1.02) brightness(0.88);
  transition: transform 0.55s ease, filter 0.45s ease;
}

.media-card:hover,
.immortal-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--poster-shadow);
}

.media-card:hover img,
.immortal-card:hover img {
  transform: scale(1.04);
  filter: grayscale(0%) contrast(1.04) brightness(0.98);
}

.media-card .card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  background: linear-gradient(180deg, transparent 24%, rgba(7, 6, 5, 0.84) 72%, rgba(7, 6, 5, 0.96) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.media-card:hover .card-overlay {
  opacity: 1;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.58rem 1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(239, 227, 205, 0.02);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.filter-chip:hover {
  border-color: rgba(196, 164, 106, 0.24);
  color: var(--paper);
}

.filter-chip.active {
  border-color: rgba(196, 164, 106, 0.36);
  background: linear-gradient(135deg, rgba(196, 164, 106, 0.16), rgba(110, 31, 36, 0.12));
  color: var(--paper);
}

.footer-modern {
  position: relative;
  background: rgba(8, 7, 6, 0.98);
  border-top: 1px solid var(--line);
  padding: 3.2rem 2rem 2.2rem;
}

.footer-link {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

.footer-bar {
  margin-top: 2.6rem;
  height: 1px;
  background: var(--grad-divider);
}

.reveal,
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible,
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.chat-container-modern,
.chat-container {
  background: linear-gradient(180deg, rgba(19, 16, 14, 0.98), rgba(10, 9, 8, 0.98));
  border-top: 1px solid var(--line);
}

.messages-area-modern,
.messages-area {
  scrollbar-color: rgba(196, 164, 106, 0.35) transparent;
}

.msg-user,
.message.user {
  background: linear-gradient(135deg, rgba(143, 49, 55, 0.42), rgba(45, 77, 147, 0.26));
  border: 1px solid rgba(196, 164, 106, 0.18);
  color: #fff3e0;
  border-radius: 20px 20px 4px 20px;
}

.msg-bot,
.message.bot {
  background: rgba(239, 227, 205, 0.045);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  border-radius: 4px 20px 20px 20px;
}

.msg-bot strong,
.message.bot strong {
  color: var(--gold-soft);
}

.msg-bot em,
.message.bot em {
  color: #e9d0a2;
}

.input-modern,
.input-area {
  border-top: 1px solid var(--line);
  background: rgba(13, 11, 10, 0.94);
}

.chat-input-modern,
.chat-input {
  background: rgba(239, 227, 205, 0.05) !important;
  border: 1px solid var(--line) !important;
  color: var(--paper) !important;
}

.chat-input-modern:focus,
.chat-input:focus {
  border-color: rgba(196, 164, 106, 0.34) !important;
  box-shadow: 0 0 0 3px rgba(196, 164, 106, 0.08) !important;
}

.send-btn-modern,
.send-btn {
  background: var(--grad-accent);
  box-shadow: 0 8px 18px rgba(110, 31, 36, 0.24);
}

.quiz-section,
.profile-questions {
  background: rgba(239, 227, 205, 0.025);
  border-bottom: 1px solid var(--line);
}

.quiz-option-btn,
.profile-option-btn {
  border: 1px solid var(--line) !important;
  background: rgba(239, 227, 205, 0.04) !important;
  color: var(--ink-soft) !important;
}

.quiz-option-btn:hover,
.profile-option-btn:hover {
  border-color: rgba(196, 164, 106, 0.24) !important;
  color: var(--paper) !important;
}

.quiz-option-btn.active,
.profile-option-btn.active {
  background: linear-gradient(135deg, rgba(196, 164, 106, 0.16), rgba(110, 31, 36, 0.18)) !important;
  border-color: rgba(196, 164, 106, 0.28) !important;
  color: #fff2d8 !important;
}

.typing-dot span {
  background: var(--gold-soft);
}

.skeleton {
  background: linear-gradient(90deg, rgba(239, 227, 205, 0.035) 25%, rgba(239, 227, 205, 0.09) 50%, rgba(239, 227, 205, 0.035) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s linear infinite;
  border-radius: var(--r-sm);
}

.filter-sidebar {
  padding: 1.5rem;
}

.filter-sidebar h3 {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.sidebar-chip {
  width: 100%;
  padding: 0.64rem 0.9rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
}

.sidebar-chip:hover,
.sidebar-chip.active {
  border-color: rgba(196, 164, 106, 0.18);
  background: rgba(196, 164, 106, 0.08);
  color: var(--paper);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.page-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(239, 227, 205, 0.02);
  color: var(--ink-soft);
}

.page-btn:hover:not(:disabled) {
  border-color: rgba(196, 164, 106, 0.28);
  color: var(--gold-soft);
}

.page-indicator {
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.star-rating {
  color: var(--gold-soft);
}

.archive-shell {
  position: relative;
  width: min(1600px, calc(100vw - 3rem));
  margin: 0 auto;
  padding-top: 7.5rem;
  padding-bottom: 5rem;
}

.archive-header {
  position: relative;
  margin-bottom: 3rem;
  padding: 2.2rem 2rem 0;
}

.archive-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: min(220px, 32vw);
  height: 1px;
  background: var(--grad-divider);
}

.archive-copy {
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.9;
}

.catalogue-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.catalogue-sidebar {
  position: sticky;
  top: 6.5rem;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(22, 17, 15, 0.92), rgba(13, 11, 10, 0.98));
}

.catalogue-sidebar-block + .catalogue-sidebar-block {
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(239, 227, 205, 0.08);
}

.catalogue-sidebar h3 {
  margin: 0 0 0.9rem;
  color: var(--gold-soft);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.catalogue-sidebar .catalogue-search,
.catalogue-sidebar input,
.catalogue-sidebar select {
  width: 100%;
  padding: 0.82rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(239, 227, 205, 0.03);
  color: var(--paper);
  outline: none;
}

.catalogue-sidebar input::placeholder {
  color: var(--muted);
}

.catalogue-sidebar select option {
  color: #111;
}

.catalogue-chip-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.catalogue-chip {
  padding: 0.68rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  text-align: left;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.catalogue-chip:hover,
.catalogue-chip.active {
  border-color: rgba(196, 164, 106, 0.22);
  background: rgba(196, 164, 106, 0.09);
  color: var(--paper);
}

.catalogue-main {
  min-width: 0;
}

.catalogue-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.catalogue-meta {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem 1.3rem;
}

.catalogue-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.catalogue-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: var(--r-md);
  background: #141210;
  box-shadow: var(--poster-shadow);
}

.catalogue-poster::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(239, 227, 205, 0.08);
  z-index: 2;
  pointer-events: none;
}

.catalogue-poster::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 44%;
  background: linear-gradient(180deg, transparent, rgba(6, 5, 5, 0.82));
  z-index: 1;
  pointer-events: none;
}

.catalogue-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease, filter 0.45s ease;
  filter: grayscale(16%) contrast(1.03) brightness(0.88);
}

.catalogue-card:hover .catalogue-poster img {
  transform: scale(1.045);
  filter: grayscale(0%) contrast(1.05) brightness(0.98);
}

.catalogue-actions {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.catalogue-card:hover .catalogue-actions {
  opacity: 1;
  transform: translateY(0);
}

.catalogue-actions-row {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.catalogue-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(196, 164, 106, 0.22);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.catalogue-link.primary {
  background: rgba(196, 164, 106, 0.16);
  color: #fff2db;
}

.catalogue-link.secondary {
  background: rgba(7, 6, 5, 0.55);
  color: var(--ink);
}

.catalogue-link:hover {
  border-color: rgba(196, 164, 106, 0.4);
  background: rgba(196, 164, 106, 0.24);
}

.catalogue-caption {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: start;
}

.catalogue-title {
  color: var(--paper);
  font-size: 1.65rem;
  line-height: 0.95;
}

.catalogue-title:hover {
  color: var(--gold-soft);
}

.catalogue-year {
  color: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-top: 0.3rem;
}

.catalogue-byline {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.catalogue-empty {
  padding: 3rem 2rem;
  text-align: center;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(239, 227, 205, 0.03);
}

.detail-page {
  width: min(1320px, calc(100vw - 3rem));
  margin: 0 auto;
  padding-top: 8rem;
  padding-bottom: 5rem;
}

.detail-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.detail-poster-frame {
  position: sticky;
  top: 6.8rem;
}

.detail-poster-frame img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--r-md);
  box-shadow: var(--poster-shadow);
}

.detail-meta-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-section {
  padding: 1.45rem 1.5rem;
}

.detail-section h2 {
  margin: 0 0 1rem;
  font-size: 2rem;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(239, 227, 205, 0.025); }
::-webkit-scrollbar-thumb { background: rgba(196, 164, 106, 0.24); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(196, 164, 106, 0.36); }

::selection {
  background: rgba(196, 164, 106, 0.22);
  color: #fff7ee;
}

@keyframes shimmer {
  from { background-position: -200% center; }
  to { background-position: 200% center; }
}

@media (max-width: 1100px) {
  .catalogue-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster-frame {
    position: static;
    max-width: 340px;
  }
}

@media (max-width: 900px) {
  .catalogue-layout {
    grid-template-columns: 1fr;
  }

  .catalogue-sidebar {
    position: static;
  }

  .catalogue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-modern {
    padding: 0 1rem;
    height: 72px;
  }

  .nav-links {
    display: none;
  }

  .archive-shell,
  .detail-page {
    width: min(100vw - 1.5rem, 1600px);
  }

  .archive-header {
    padding-left: 0.4rem;
    padding-right: 0.4rem;
  }

  .section-title {
    font-size: clamp(2rem, 11vw, 3.6rem);
  }

  .catalogue-grid {
    gap: 1.6rem 1rem;
  }
}

@media (max-width: 560px) {
  .catalogue-grid {
    grid-template-columns: 1fr;
  }

  .catalogue-title {
    font-size: 1.45rem;
  }

  .btn {
    letter-spacing: 0.12em;
  }
}
