@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   Academia E-Library — Obsidian Edition
   ============================================================ */

:root {
  --ink:        #0a0d14;
  --ink2:       #1a1f2e;
  --brand:      #1246a8;
  --brand2:     #1a5ce8;
  --brand-glow: rgba(26, 92, 232, .22);
  --gold:       #f0b429;
  --gold2:      #d4950e;
  --gold-glow:  rgba(240, 180, 41, .20);
  --surface:    #f6f8fd;
  --surface2:   #edf1fa;
  --card:       #ffffff;
  --text:       #0a0d14;
  --text2:      #2d3347;
  --muted:      #7a849e;
  --border:     #e4e9f4;
  --border2:    #d0d9ef;
  --success:    #0d9f65;
  --success2:   #0b8a57;
  --radius:     18px;
  --radius-sm:  12px;
  --radius-xs:  8px;
  --shadow-xs:  0 1px 4px rgba(10,13,30,.06);
  --shadow-sm:  0 4px 16px rgba(10,13,30,.08);
  --shadow:     0 10px 40px rgba(10,13,30,.11);
  --shadow-lg:  0 24px 72px rgba(10,13,30,.15);
  --transition: .22s cubic-bezier(.4,0,.2,1);
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

/* ============================================================
   TOPBAR
   ============================================================ */
.elib-topbar {
  background: var(--ink);
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.elib-topbar a {
  color: rgba(200,210,240,.80);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: color var(--transition);
}
.elib-topbar a:hover { color: #fff; }

/* ============================================================
   HERO — SHARED BASE
   ============================================================ */
.elib-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 120% 80% at 80% -20%, rgba(26,92,232,.32) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at -10% 100%, rgba(18,70,168,.28) 0%, transparent 55%),
    linear-gradient(155deg, #050c20 0%, #0a1b44 50%, #0d2260 100%);
  padding: 56px 0 44px;
}

/* Dot grid texture */
.elib-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

/* Bottom shimmer line */
.elib-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(240,180,41,.6) 40%, rgba(26,92,232,.5) 70%, transparent 100%);
}

.elib-hero > .container { position: relative; z-index: 1; }

/* Eyebrow pill */
.elib-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 6px 14px 6px 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: rgba(255,255,255,.70);
  margin-bottom: 16px;
}
.elib-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.7); }
}

.elib-hero h1 {
  margin: 0 0 8px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.5px;
}
.elib-hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.elib-hero > .container > p,
.elib-hero p.elib-hero-sub {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  color: rgba(255,255,255,.55);
  font-weight: 300;
}

/* ============================================================
   HERO SEARCH BAR (index)
   ============================================================ */
.elib-search {
  margin-top: 28px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: stretch;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 10px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-width: 740px;
}

.elib-search-inner {
  flex: 1 1 260px;
  position: relative;
}
.elib-search-inner .ico {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.elib-search input {
  width: 100%;
  height: 50px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 0 16px 0 42px;
  background: rgba(255,255,255,.95);
  color: var(--text);
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  outline: none;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.elib-search input::placeholder { color: var(--muted); }
.elib-search input:focus {
  box-shadow: 0 0 0 3px rgba(240,180,41,.35);
  border-color: rgba(240,180,41,.5);
}

.elib-search select {
  height: 50px;
  flex: 0 0 186px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 0 14px;
  background: rgba(255,255,255,.95);
  color: var(--text);
  font-size: 13.5px;
  font-family: 'Outfit', sans-serif;
  outline: none;
  cursor: pointer;
  transition: box-shadow var(--transition);
}
.elib-search select:focus {
  box-shadow: 0 0 0 3px rgba(240,180,41,.35);
}

.elib-search button {
  height: 50px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 14px;
  padding: 0 26px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.elib-search button:hover {
  background: var(--gold2);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(240,180,41,.40);
}

@media (max-width: 640px) {
  .elib-search { padding: 8px; }
  .elib-search-inner,
  .elib-search select,
  .elib-search button { flex: 1 1 100%; width: 100%; max-width: 100%; }
}

/* ============================================================
   FILTER FORM (listing page)
   ============================================================ */
.elib-filter-form {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  padding: 16px;
  backdrop-filter: blur(20px);
}

.elib-filter-search {
  position: relative;
}
.elib-filter-ico {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.30);
  pointer-events: none;
}
.elib-filter-search input {
  width: 100%;
  height: 52px;
  padding: 0 18px 0 46px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 14.5px;
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}
.elib-filter-search input::placeholder { color: rgba(255,255,255,.28); }
.elib-filter-search input:focus {
  border-color: rgba(240,180,41,.5);
  background: rgba(255,255,255,.11);
}

.elib-filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.elib-fsel {
  flex: 1 1 160px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.elib-fsel label {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: rgba(255,255,255,.40);
  padding-left: 2px;
}
.elib-fsel select {
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: 13.5px;
  font-family: 'Outfit', sans-serif;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.elib-fsel select option { background: #0d1b3e; color: #fff; }
.elib-fsel select:focus {
  border-color: rgba(240,180,41,.5);
  background: rgba(255,255,255,.10);
}

.elib-filter-btns {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
  padding-bottom: 1px;
}
.elib-fbtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  border: 0;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.elib-fbtn--apply {
  background: var(--gold);
  color: var(--ink);
}
.elib-fbtn--apply:hover {
  background: var(--gold2);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--gold-glow);
}
.elib-fbtn--reset {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.75);
}
.elib-fbtn--reset:hover {
  background: rgba(255,255,255,.14);
  color: #fff;
}

.elib-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 2px;
}
.elib-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(240,180,41,.12);
  border: 1px solid rgba(240,180,41,.28);
  color: var(--gold);
  font-size: 11.5px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  letter-spacing: .2px;
}

@media (max-width: 640px) {
  .elib-filter-row { flex-direction: column; }
  .elib-fsel { flex: 1 1 100%; }
  .elib-filter-btns { padding-top: 0; width: 100%; }
  .elib-fbtn { flex: 1; justify-content: center; }
}

/* ============================================================
   SECTION
   ============================================================ */
.elib-section {
  padding: 44px 0 80px;
  background: linear-gradient(180deg, var(--surface) 0%, #fff 30%);
}
.elib-section--tight { padding-top: 28px; }

/* ============================================================
   BLOCK HEADER
   ============================================================ */
.elib-block {
  margin-bottom: 42px;
}
.elib-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.elib-block-title {
  margin: 0;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 11px;
}
.elib-block-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 20px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--brand2) 100%);
  flex-shrink: 0;
}
.elib-block-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand2);
  font-family: 'Outfit', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: gap var(--transition), color var(--transition);
}
.elib-block-link::after { content: '→'; }
.elib-block-link:hover { gap: 9px; color: var(--brand); }

/* ============================================================
   RESULTS BAR
   ============================================================ */
.elib-results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.elib-results-count {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  color: var(--muted);
}
.elib-results-count strong { color: var(--text); font-weight: 700; }
.elib-back-link {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color var(--transition);
}
.elib-back-link:hover { color: var(--brand); }

/* ============================================================
   SLIDER
   ============================================================ */
.elib-slider-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}
.elib-slider {
  display: flex;
  align-items: stretch;
  gap: 18px;
  overflow: hidden;
  scroll-behavior: smooth;
  width: 100%;
  padding: 6px 2px 12px;
}
.elib-slide {
  flex: 0 0 calc(25% - 14px);
  max-width: calc(25% - 14px);
  display: flex;
}
@media (max-width: 1100px) {
  .elib-slide { flex: 0 0 calc(33.333% - 12px); max-width: calc(33.333% - 12px); }
}
@media (max-width: 768px) {
  .elib-slide { flex: 0 0 calc(50% - 10px); max-width: calc(50% - 10px); }
}
@media (max-width: 480px) {
  .elib-slide { flex: 0 0 85%; max-width: 85%; }
}

.elib-arrow {
  flex-shrink: 0;
  border: 1px solid var(--border2);
  background: var(--card);
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  transition: all var(--transition);
}
.elib-arrow:hover {
  background: var(--brand2);
  color: #fff;
  border-color: var(--brand2);
  box-shadow: 0 6px 20px var(--brand-glow);
  transform: scale(1.06);
}

/* ============================================================
   CARD
   ============================================================ */
.elib-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.elib-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(26,92,232,.18);
}

/* Thumb */
.elib-thumb {
  height: 185px !important;
  overflow: hidden;
  background: linear-gradient(140deg, #dde8fb 0%, #c2d5f6 100%);
  position: relative;
  flex-shrink: 0;
}
.elib-thumb::after {
  content: attr(data-ext);
  position: absolute;
  top: 11px; right: 11px;
  background: rgba(5,12,32,.75);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .9px;
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  font-family: 'Outfit', sans-serif;
  backdrop-filter: blur(8px);
}
.elib-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.elib-card:hover .elib-thumb img { transform: scale(1.05); }

/* Body */
.elib-body {
  padding: 16px 16px 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Meta pills */
.elib-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.elib-meta span {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand);
  border: 1px solid var(--border2);
  font-size: 10px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.elib-meta span.credited {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #065f46;
}

/* Title */
.elib-body h3 {
  margin: 0 0 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.elib-body h3 a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}
.elib-body h3 a:hover { color: var(--brand2); }

.elib-author {
  margin: 0 0 3px;
  font-size: 12px;
  color: var(--muted);
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
}
.elib-isbn {
  margin: 0 0 6px;
  font-size: 11px;
  color: var(--muted);
  font-family: 'Outfit', sans-serif;
  opacity: .75;
}

/* Actions */
.elib-actions {
  margin-top: auto;
  padding-top: 13px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
}
.elib-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 12px;
  font-family: 'Outfit', sans-serif;
  text-decoration: none;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.elib-actions .view-btn {
  background: var(--surface);
  color: var(--brand);
  border-color: var(--border2);
}
.elib-actions .view-btn:hover {
  background: var(--surface2);
  border-color: var(--brand2);
}

.elib-actions .download-btn {
  background: var(--brand2);
  color: #fff;
  border-color: var(--brand2);
}
.elib-actions .download-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 4px 14px var(--brand-glow);
}

.elib-actions a.read {
  background: #ecfdf5;
  color: var(--success);
  border-color: #bbf7d0;
}
.elib-actions a.read:hover {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}

/* ============================================================
   GRID
   ============================================================ */
.elib-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.elib-col {
  flex: 0 0 calc(25% - 15px);
  max-width: calc(25% - 15px);
  display: flex;
}
@media (max-width: 1199px) { .elib-col { flex: 0 0 calc(33.333% - 14px); max-width: calc(33.333% - 14px); } }
@media (max-width: 991px)  { .elib-col { flex: 0 0 calc(50% - 10px); max-width: calc(50% - 10px); } }
@media (max-width: 575px)  { .elib-col { flex: 0 0 100%; max-width: 100%; } }

/* ============================================================
   PAGINATION
   ============================================================ */
.elib-pagination {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
.elib-pagination .pagination { margin: 0; gap: 5px; }
.elib-pagination .page-item .page-link {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 9px 15px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
}
.elib-pagination .page-item .page-link:hover {
  background: var(--surface);
  border-color: var(--border2);
}
.elib-pagination .page-item.active .page-link {
  background: var(--brand2);
  border-color: var(--brand2);
  color: #fff;
  box-shadow: 0 4px 14px var(--brand-glow);
}
.elib-pagination .page-item.disabled .page-link { opacity: .45; }

/* ============================================================
   SHOW PAGE — MINI HERO
   ============================================================ */
.elib-hero-mini { padding: 26px 0 30px; }

.elib-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 11.5px;
  color: rgba(255,255,255,.55);
  margin-bottom: 14px;
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
}
.elib-breadcrumb a {
  color: rgba(255,255,255,.80);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}
.elib-breadcrumb a:hover { color: var(--gold); }
.elib-breadcrumb .dot { opacity: .4; }

.elib-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.elib-page-title {
  margin: 0 0 7px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(20px, 2.6vw, 34px);
  line-height: 1.2;
  letter-spacing: -.2px;
}
.elib-subtitle {
  margin: 0;
  font-size: 13.5px;
  color: rgba(255,255,255,.55);
  font-family: 'Outfit', sans-serif;
}
.elib-head-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}

/* ============================================================
   SHOW PAGE — BUTTONS
   ============================================================ */
.elib-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 13px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 13.5px;
  font-family: 'Outfit', sans-serif;
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  background: rgba(255,255,255,.09);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition);
}
.elib-btn:hover {
  background: rgba(255,255,255,.16);
  color: #fff;
}
.elib-btn--primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.elib-btn--primary:hover {
  background: var(--gold2);
  border-color: var(--gold2);
  color: var(--ink);
  box-shadow: 0 6px 20px var(--gold-glow);
}
.elib-btn--success {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.elib-btn--success:hover {
  background: var(--success2);
  border-color: var(--success2);
}
.elib-btn--ghost {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.14);
}

/* ============================================================
   SHOW PAGE — META CHIPS
   ============================================================ */
.elib-detail-meta2 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.meta-chip {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 12.5px;
  color: var(--text2);
  box-shadow: var(--shadow-xs);
  font-family: 'Outfit', sans-serif;
  display: flex;
  align-items: center;
  gap: 6px;
}
.meta-chip strong { color: var(--brand2); font-weight: 700; }

/* ============================================================
   SHOW PAGE — VIEWER
   ============================================================ */
.elib-viewer-card2 {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.elib-viewer-header2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.elib-viewer-title2 {
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
}
.elib-viewer-note2 {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
  font-family: 'Outfit', sans-serif;
}
.elib-viewer-body2 { padding: 0; }
.elib-viewer-iframe {
  width: 100%; height: 76vh;
  border: 0; background: #f8faff; display: block;
}
.elib-viewer-image {
  width: 100%; max-height: 76vh;
  object-fit: contain; background: #fff; display: block;
}
.elib-viewer-media { width: 100%; background: #fff; display: block; }

/* Empty state */
.elib-empty {
  padding: 48px 24px; text-align: center;
}
.elib-empty h4 {
  margin: 0 0 8px;
  font-weight: 700;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 20px;
  color: var(--text);
}
.elib-empty p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13.5px;
  font-family: 'Outfit', sans-serif;
}

/* ============================================================
   SHOW PAGE — SIDEBAR
   ============================================================ */
.elib-side-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.elib-side-title {
  font-weight: 400;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.elib-side-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-family: 'Outfit', sans-serif;
}
.elib-side-row:last-of-type { border-bottom: 0; }
.elib-side-row span { color: var(--muted); }
.elib-side-row b { color: var(--text); font-weight: 600; text-align: right; }

.elib-side-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}
.elib-side-actions .elib-btn {
  border-color: var(--border2);
  color: var(--text);
  background: var(--surface);
}
.elib-side-actions .elib-btn:hover {
  background: var(--surface2);
  color: var(--brand);
  border-color: var(--brand2);
}
.elib-side-actions .elib-btn--primary {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.elib-side-actions .elib-btn--primary:hover {
  background: var(--gold2);
  border-color: var(--gold2);
  box-shadow: 0 6px 18px var(--gold-glow);
}
.elib-side-actions .elib-btn--success {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}

.elib-text-block {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.elib-text-block h5 {
  margin: 0 0 7px;
  font-weight: 700;
  font-size: 10.5px;
  color: var(--muted);
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: .7px;
}
.elib-text-block p {
  margin: 0;
  font-size: 13px;
  color: var(--text2);
  line-height: 1.68;
  font-family: 'Outfit', sans-serif;
}

/* ============================================================
   NO RESULTS
   ============================================================ */
.elib-no-results {
  width: 100%;
  text-align: center;
  padding: 72px 20px;
  background: #fff;
  border: 1.5px dashed var(--border2);
  border-radius: var(--radius);
}
.elib-no-results h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 8px;
}
.elib-no-results p {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 20px;
}
.elib-outline-btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 24px;
  border-radius: 13px;
  border: 1.5px solid var(--brand2);
  color: var(--brand2);
  font-weight: 700;
  font-size: 13.5px;
  font-family: 'Outfit', sans-serif;
  text-decoration: none;
  transition: all var(--transition);
}
.elib-outline-btn:hover {
  background: var(--brand2);
  color: #fff;
  box-shadow: 0 6px 18px var(--brand-glow);
}

/* ============================================================
   MOBILE ADJUSTMENTS
   ============================================================ */
@media (max-width: 991px) {
  .elib-side-card { position: static; top: auto; margin-top: 18px; }
  .elib-head-row  { flex-direction: column; }
}
@media (max-width: 768px) {
  .elib-hero { padding: 40px 0 32px; }
  .elib-actions { gap: 6px; }
}