/* =========================================================
   LIBRARY LNWZA — GRAND 3D MAX OPAC
   Premium burgundy / champagne / warm ivory visual system.
   No external JS or image dependency required.
========================================================= */

:root {
  --lnwza-wine: #2b0d19;
  --lnwza-wine-2: #481728;
  --lnwza-wine-3: #6b263d;
  --lnwza-gold: #e7bd69;
  --lnwza-gold-bright: #ffdf98;
  --lnwza-ivory: #fff8e9;
  --lnwza-paper: #f7f0e4;
  --lnwza-ink: #281b20;
  --lnwza-muted: #83747a;
  --lnwza-line: rgba(110, 75, 69, .15);
  --lnwza-shadow: 0 20px 55px rgba(47, 18, 28, .12);
}

html { scroll-behavior: smooth; }
body.lnwza-opac {
  background:
    radial-gradient(circle at 12% 18%, rgba(230, 190, 112, .10), transparent 28rem),
    linear-gradient(180deg, #fffaf0 0%, #f7f0e4 46%, #fffaf3 100%);
  color: var(--lnwza-ink);
  font-family: "Sarabun", "Prompt", Tahoma, Arial, sans-serif;
}
body.lnwza-opac .navbar-custom {
  position: relative;
  z-index: 20;
  background: linear-gradient(105deg, #1b0911, #3c1222 62%, #5b2532);
  border-bottom: 1px solid rgba(239, 198, 121, .38);
  box-shadow: 0 8px 30px rgba(29, 8, 16, .22);
}
body.lnwza-opac .navbar-custom .container { max-width: 1320px; min-height: 74px; }
body.lnwza-opac .brand { letter-spacing: .02em; }
body.lnwza-opac .brand img {
  width: 48px;
  height: 48px;
  padding: 3px;
  border: 1px solid rgba(245, 207, 133, .55);
  border-radius: 15px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 5px 18px rgba(0,0,0,.22);
}
body.lnwza-opac .navbar-custom .btn {
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
}
body.lnwza-opac .navbar-custom .btn-warning {
  background: linear-gradient(180deg, #ffe4a8, #dca84c);
  border-color: #e9bd70;
  color: #3a1c20;
}

/* Grand hero */
.lnwza-grand-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff8e9;
  background:
    radial-gradient(ellipse at 75% 45%, rgba(164, 91, 70, .28), transparent 36%),
    radial-gradient(ellipse at 15% 15%, rgba(221, 171, 93, .17), transparent 28%),
    linear-gradient(115deg, #180810 0%, #2b0d19 43%, #4a192b 100%);
  border-bottom: 1px solid rgba(226, 186, 112, .5);
  box-shadow: inset 0 -45px 85px rgba(11, 4, 8, .22);
}
.lnwza-grand-hero::before,
.lnwza-grand-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.lnwza-grand-hero::before {
  inset: 0;
  opacity: .14;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(90deg, transparent, #000 35%, #000 75%, transparent);
}
.lnwza-grand-hero::after {
  width: 680px;
  height: 680px;
  right: -220px;
  top: -370px;
  border: 1px solid rgba(241, 202, 130, .17);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(241,202,130,.025), 0 0 0 82px rgba(241,202,130,.02);
}
.lnwza-hero-ambient {
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(65px);
  pointer-events: none;
}
.lnwza-ambient-one { left: 18%; top: 15%; background: rgba(180, 105, 64, .18); }
.lnwza-ambient-two { right: 15%; bottom: -15%; background: rgba(226, 177, 91, .17); }
.lnwza-hero-stars {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .42;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 14% 28%, #f8dfad 55%, transparent 70%),
    radial-gradient(1px 1px at 24% 72%, #f8dfad 55%, transparent 70%),
    radial-gradient(2px 2px at 55% 18%, #f8dfad 55%, transparent 70%),
    radial-gradient(1px 1px at 79% 27%, #f8dfad 55%, transparent 70%),
    radial-gradient(2px 2px at 92% 67%, #f8dfad 55%, transparent 70%),
    radial-gradient(1px 1px at 68% 82%, #f8dfad 55%, transparent 70%);
}
.lnwza-grand-inner {
  width: min(1320px, calc(100% - 54px));
  min-height: 565px;
  margin: 0 auto;
  padding: 58px 0 68px;
  display: grid;
  grid-template-columns: minmax(320px, .82fr) minmax(480px, 1.18fr);
  align-items: center;
  gap: clamp(22px, 4vw, 64px);
}
.lnwza-hero-copy { position: relative; z-index: 2; max-width: 590px; }
.lnwza-eyebrow,
.lnwza-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #e8c27f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.lnwza-eyebrow {
  padding: 9px 13px;
  border: 1px solid rgba(235, 197, 125, .36);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 1px rgba(255,255,255,.08);
}
.lnwza-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f3c878;
  box-shadow: 0 0 12px #f3c878;
}
.lnwza-hero-copy h1 {
  margin: 24px 0 18px;
  color: #fff8e9;
  font-size: clamp(34px, 4.3vw, 60px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -.045em;
  text-shadow: 0 8px 30px rgba(0,0,0,.26);
}
.lnwza-hero-copy h1 span {
  display: block;
  margin-top: 8px;
  color: #f3d59d;
  font-size: .72em;
  letter-spacing: .075em;
}
.lnwza-hero-copy h1 em {
  color: #fff2d4;
  font-style: normal;
  text-shadow: 0 0 28px rgba(235, 189, 105, .3);
}
.lnwza-hero-lead {
  max-width: 510px;
  margin: 0;
  color: rgba(255, 246, 230, .76);
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.95;
}
.lnwza-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.lnwza-btn-gold,
.lnwza-btn-glass {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 21px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
.lnwza-btn-gold {
  color: #3a1b20;
  border: 1px solid #ffdfa0;
  background: linear-gradient(180deg, #ffe8b7 0%, #e6b85e 56%, #c98d39 100%);
  box-shadow: 0 7px 0 #8c542d, 0 13px 25px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.9);
}
.lnwza-btn-gold:hover {
  color: #2b1119;
  transform: translateY(-3px);
  box-shadow: 0 9px 0 #8c542d, 0 18px 30px rgba(0,0,0,.29), inset 0 1px 0 #fff;
  filter: saturate(1.08);
}
.lnwza-btn-glass {
  color: #fff5df;
  border: 1px solid rgba(255, 232, 189, .38);
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(12px);
}
.lnwza-btn-glass:hover { color: #fff; transform: translateY(-3px); background: rgba(255,255,255,.13); }
.lnwza-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 22px;
  margin-top: 27px;
  color: rgba(255, 246, 230, .65);
  font-size: 11px;
}
.lnwza-hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.lnwza-hero-proof i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d9b46f;
  box-shadow: 0 0 10px rgba(240, 193, 106, .8);
}

/* 3D carousel stage */
.lnwza-hero-visual {
  position: relative;
  min-width: 0;
  min-height: 440px;
  perspective: 1400px;
  transform-style: preserve-3d;
  --pointer-x: 0px;
  --pointer-y: 0px;
}
.lnwza-visual-heading {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 12;
  width: max-content;
  max-width: 90%;
  transform: translateX(-50%);
  text-align: center;
}
.lnwza-visual-heading span {
  display: block;
  color: #f1d29a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .25em;
}
.lnwza-visual-heading small { display: block; margin-top: 6px; color: rgba(255,245,222,.56); font-size: 11px; }
.lnwza-visual-glow {
  position: absolute;
  left: 50%;
  top: 53%;
  width: 76%;
  height: 52%;
  transform: translate(calc(-50% + var(--pointer-x)), calc(-50% + var(--pointer-y)));
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(238, 184, 98, .25), rgba(161, 83, 54, .10) 42%, transparent 72%);
  filter: blur(22px);
}
.lnwza-visual-orbit {
  position: absolute;
  left: 50%;
  top: 53%;
  border: 1px solid rgba(240, 200, 130, .19);
  border-radius: 50%;
  transform: translate(-50%,-50%) rotateX(66deg);
  pointer-events: none;
}
.orbit-a { width: 93%; height: 52%; }
.orbit-b { width: 72%; height: 40%; border-style: dashed; border-color: rgba(240,200,130,.13); }
.lnwza-book-stage {
  position: absolute;
  inset: 56px 0 40px;
  transform-style: preserve-3d;
}
.lnwza-book-3d {
  --offset: 0;
  --scale: 1;
  --opacity: 1;
  --depth: 10;
  position: absolute;
  left: 50%;
  top: 49%;
  z-index: var(--depth);
  width: clamp(135px, 16vw, 205px);
  height: 320px;
  padding: 9px 9px 12px;
  border: 1px solid rgba(248, 218, 160, .64);
  border-radius: 8px 13px 13px 8px;
  background: linear-gradient(145deg, #fff9e9, #d6b984 65%, #8e5d3c);
  box-shadow:
    0 25px 45px rgba(0,0,0,.42),
    9px 7px 0 rgba(117, 70, 42, .65),
    0 0 0 1px rgba(255,255,255,.15) inset;
  opacity: var(--opacity);
  transform:
    translate(-50%, -50%)
    translateX(calc(var(--offset) * 145px))
    translateZ(calc(var(--depth) * 4px))
    rotateY(calc(var(--offset) * -27deg))
    rotateZ(calc(var(--offset) * -2deg))
    scale(var(--scale));
  transform-style: preserve-3d;
  transition:
    transform .75s cubic-bezier(.2,.75,.2,1),
    opacity .55s ease,
    filter .55s ease;
  filter: saturate(.93);
  overflow: visible;
}
.lnwza-book-3d::before {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: -7px;
  width: 8px;
  border-radius: 5px 0 0 5px;
  background: repeating-linear-gradient(180deg, #fff7df 0 3px, #d8c8a9 4px 5px);
  box-shadow: inset -2px 0 3px rgba(72,37,23,.18);
}
.lnwza-book-3d::after {
  content: "";
  position: absolute;
  left: 12%;
  right: -8%;
  bottom: -27px;
  height: 25px;
  border-radius: 50%;
  background: rgba(0,0,0,.34);
  filter: blur(12px);
  transform: rotateX(70deg);
  pointer-events: none;
}
.lnwza-book-3d.is-active { filter: saturate(1.08) brightness(1.05); }
.lnwza-book-cover-link {
  display: block;
  width: 100%;
  height: 245px;
  overflow: hidden;
  border-radius: 3px 7px 7px 3px;
  background: #f5ead3;
  box-shadow: inset 0 0 0 1px rgba(55,28,24,.13);
}
.lnwza-book-cover-link img { display: block; width: 100%; height: 100%; object-fit: contain; }
.lnwza-book-3d-caption { padding: 10px 4px 0; color: #321b20; text-align: center; }
.lnwza-book-3d-caption strong {
  display: -webkit-box;
  min-height: 34px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 11px;
  line-height: 1.5;
}
.lnwza-book-3d-caption small { display: block; margin-top: 3px; overflow: hidden; color: #795e55; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.lnwza-book-quick-view {
  position: absolute;
  left: 50%;
  bottom: -47px;
  z-index: 3;
  min-width: 92px;
  padding: 6px 12px;
  transform: translateX(-50%);
  border: 1px solid #f5d99f;
  border-radius: 999px;
  background: #4a192b;
  color: #ffe8bd;
  font-size: 10px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, bottom .2s;
}
.lnwza-book-3d.is-active .lnwza-book-quick-view { bottom: -35px; opacity: 1; pointer-events: auto; }
.lnwza-carousel-controls {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 18px;
  transform: translateX(-50%);
}
.lnwza-carousel-controls button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0 0 3px;
  border: 1px solid rgba(246, 216, 160, .55);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #ffe7b7;
  font-size: 24px;
  line-height: 1;
  transition: background .2s, transform .2s;
}
.lnwza-carousel-controls button:hover { transform: scale(1.08); background: rgba(255,255,255,.18); }
.lnwza-carousel-controls span { min-width: 48px; color: #eacb91; text-align: center; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.lnwza-visual-footnote {
  position: absolute;
  bottom: -31px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 78%;
  transform: translateX(-50%);
  color: rgba(255,237,200,.42);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .2em;
  white-space: nowrap;
}
.lnwza-footnote-line { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, rgba(232,194,127,.45)); }
.lnwza-footnote-line:last-child { transform: rotate(180deg); }
.lnwza-carousel-empty {
  position: absolute;
  inset: 100px 10% 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px dashed rgba(239,205,147,.35);
  border-radius: 24px;
  background: rgba(255,255,255,.04);
  color: #f7dfb0;
  text-align: center;
}
.lnwza-carousel-empty span { font-size: 58px; }
.lnwza-carousel-empty small { color: rgba(255,244,220,.6); }

/* Search panel */
.lnwza-search-section {
  position: relative;
  z-index: 5;
  width: min(1220px, calc(100% - 44px));
  margin: -35px auto 0;
}
.lnwza-search-card {
  padding: 25px clamp(18px, 3vw, 34px) 21px;
  border: 1px solid rgba(201, 157, 91, .42);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(255,249,237,.97));
  box-shadow: 0 22px 60px rgba(39, 15, 24, .18), inset 0 1px 0 #fff;
}
.lnwza-search-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.lnwza-search-heading h2 { margin: 5px 0 3px; color: #3b1825; font-size: clamp(20px,2.2vw,27px); font-weight: 800; }
.lnwza-search-heading p { margin: 0; color: #8a7475; font-size: 12px; }
.lnwza-search-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border: 1px solid #e9cc92;
  border-radius: 17px;
  background: linear-gradient(145deg, #fff1cf, #e8bd6b);
  color: #5b2634;
  font-size: 35px;
  box-shadow: 0 8px 17px rgba(137, 88, 42, .17);
}
.lnwza-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 57px;
  padding: 0 17px;
  border: 1px solid #e4d8c5;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 2px 5px rgba(60,34,26,.035), 0 4px 13px rgba(50,24,30,.04);
}
.lnwza-search-input-wrap > span { color: #9d713e; font-size: 29px; line-height: 1; }
.lnwza-search-input-wrap input {
  width: 100%;
  min-width: 0;
  height: 54px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #321a22;
  font-size: 14px;
}
.lnwza-search-input-wrap input::placeholder { color: #b4a6a0; }
.lnwza-search-input-wrap:focus-within { border-color: #c9984d; box-shadow: 0 0 0 4px rgba(218,177,105,.16); }
.lnwza-search-filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 11px;
  align-items: end;
  margin-top: 13px;
}
.lnwza-search-filters label { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lnwza-search-filters label span { color: #806d6d; font-size: 10px; font-weight: 800; }
.lnwza-search-filters select {
  width: 100%;
  min-height: 43px;
  padding: 0 11px;
  border: 1px solid #e7dccb;
  border-radius: 10px;
  outline: 0;
  background: #fff;
  color: #49323a;
  font-size: 12px;
}
.lnwza-search-filters select:focus { border-color: #c9984d; box-shadow: 0 0 0 3px rgba(218,177,105,.15); }
.lnwza-search-submit {
  min-height: 43px;
  padding: 0 21px;
  border: 1px solid #f5d79c;
  border-radius: 10px;
  background: linear-gradient(180deg, #6b263d, #3b1424);
  color: #fff0d2;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 5px 0 #24101a, 0 9px 18px rgba(64,22,38,.18);
  transition: transform .2s, box-shadow .2s;
}
.lnwza-search-submit:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #24101a, 0 13px 22px rgba(64,22,38,.2); }
.lnwza-search-bottom { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; color: #a0928b; font-size: 10px; }
.lnwza-search-bottom a { color: #8b4d3f; font-weight: 800; text-decoration: none; }

/* Banner polish */
body.lnwza-opac .opac-banner-image-shell { width: min(1220px, calc(100% - 44px)); margin: 28px auto 0; }
body.lnwza-opac .opac-banner-image-frame {
  border: 1px solid rgba(206, 166, 101, .55);
  border-radius: 18px;
  box-shadow: 0 17px 40px rgba(54, 26, 29, .15);
}
body.lnwza-opac .opac-banner-image-control { background: rgba(49,17,30,.72); border: 1px solid rgba(255,230,184,.45); }

/* Live stats */
.lnwza-stats-wrap { width: min(1220px, calc(100% - 44px)); margin: 30px auto 0; }
.lnwza-stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
.lnwza-stat-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 17px 14px;
  overflow: hidden;
  border: 1px solid rgba(199, 165, 119, .31);
  border-radius: 15px;
  background: linear-gradient(145deg, #fffefa, #f8eddb);
  box-shadow: 0 9px 24px rgba(73, 38, 37, .065), inset 0 1px #fff;
}
.lnwza-stat-card::after { content:""; position:absolute; right:-24px; top:-29px; width:85px; height:85px; border:1px solid rgba(193,147,81,.2); border-radius:50%; box-shadow:0 0 0 12px rgba(193,147,81,.035); }
.lnwza-stat-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid #ead4a9;
  border-radius: 13px;
  background: linear-gradient(145deg, #fff0ca, #e7bd71);
  color: #6b293a;
  font-size: 22px;
  box-shadow: 0 5px 12px rgba(141,92,46,.12);
}
.lnwza-stat-card div { min-width: 0; }
.lnwza-stat-card small { display:block; color:#8b7774; font-size:10px; font-weight:700; }
.lnwza-stat-card strong { display:block; margin:2px 0; color:#3b1725; font-size:clamp(19px,2vw,26px); font-weight:800; line-height:1.15; }
.lnwza-stat-card em { display:block; color:#b19a7e; font-size:8px; font-style:normal; font-weight:800; letter-spacing:.11em; }

/* Discovery sections */
.lnwza-discovery-section,
.lnwza-shelf-section {
  width: min(1220px, calc(100% - 44px));
  margin: 52px auto 0;
}
.lnwza-section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.lnwza-section-heading-row h2 {
  margin: 5px 0 4px;
  color: #3a1925;
  font-size: clamp(21px,2.3vw,29px);
  font-weight: 800;
  letter-spacing: -.025em;
}
.lnwza-section-heading-row p { margin:0; color:#927f78; font-size:12px; }
.lnwza-section-ornament { color:#c89a52; font-size:38px; text-shadow:0 4px 14px rgba(177,126,60,.23); }
.lnwza-category-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.lnwza-category-tile {
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:112px;
  padding:17px 18px;
  overflow:hidden;
  border:1px solid rgba(196,158,106,.3);
  border-radius:15px;
  background:linear-gradient(135deg,#fffefa,#f5ead9);
  color:#48212d;
  text-decoration:none;
  box-shadow:0 8px 20px rgba(62,30,34,.055);
  transition:transform .22s,box-shadow .22s,border-color .22s;
}
.lnwza-category-tile::after { content:""; position:absolute; right:-25px; bottom:-42px; width:105px; height:105px; border:1px solid rgba(187,139,76,.22); border-radius:50%; box-shadow:0 0 0 12px rgba(187,139,76,.04),0 0 0 26px rgba(187,139,76,.025); }
.lnwza-category-tile:hover { color:#481728; transform:translateY(-5px); border-color:#d5ad6c; box-shadow:0 16px 28px rgba(62,30,34,.11); }
.lnwza-category-tile > span { color:#b07a3e; font-size:22px; }
.lnwza-category-tile strong { margin-top:6px; font-size:14px; }
.lnwza-category-tile small { margin-top:2px; color:#9d8980; font-size:10px; }
.lnwza-category-tile i { position:absolute; right:17px; top:17px; color:#bd9254; font-size:15px; font-style:normal; }
.lnwza-category-pills { display:flex; flex-wrap:wrap; gap:10px; }
.lnwza-category-pills a { padding:9px 14px; border:1px solid #e4d3b7; border-radius:999px; background:#fffaf1; color:#623344; font-size:12px; font-weight:700; text-decoration:none; }
.lnwza-category-pills a span { margin-left:6px; color:#c19552; }
.lnwza-soft-empty { padding:22px; border:1px dashed #d9c7ac; border-radius:14px; background:rgba(255,255,255,.65); color:#927f78; text-align:center; font-size:13px; }

/* Shelves / book cards */
.lnwza-text-link { color:#87502f; font-size:12px; font-weight:800; text-decoration:none; white-space:nowrap; }
.lnwza-text-link span { margin-left:5px; }
.lnwza-shelf-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:13px; }
.lnwza-shelf-card {
  min-width:0;
  overflow:hidden;
  border:1px solid rgba(199,164,118,.32);
  border-radius:14px;
  background:linear-gradient(180deg,#fffefa,#f9f0e4);
  box-shadow:0 9px 22px rgba(57,28,34,.07);
  transition:transform .25s,box-shadow .25s;
}
.lnwza-shelf-card:hover { transform:translateY(-6px); box-shadow:0 18px 32px rgba(57,28,34,.13); }
.lnwza-shelf-cover { position:relative; display:block; height:210px; padding:12px 12px 0; background:radial-gradient(ellipse at 50% 80%,#e9d7b7,#f8f0e2 62%,#fffaf0); }
.lnwza-shelf-cover img { width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 10px 8px rgba(55,31,28,.2)); transition:transform .3s; }
.lnwza-shelf-card:hover .lnwza-shelf-cover img { transform:translateY(-4px) rotate(-1deg); }
.lnwza-shelf-rank { position:absolute; left:9px; top:9px; padding:5px 8px; border:1px solid rgba(255,230,181,.65); border-radius:999px; background:rgba(65,22,39,.88); color:#ffe6b4; font-size:8px; font-weight:800; }
.lnwza-shelf-info { padding:12px; }
.lnwza-shelf-info > small { display:block; overflow:hidden; color:#ad804c; font-size:9px; font-weight:800; text-overflow:ellipsis; white-space:nowrap; }
.lnwza-shelf-info h3 { display:-webkit-box; min-height:40px; margin:5px 0 4px; overflow:hidden; color:#43212c; font-size:12px; font-weight:800; line-height:1.55; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.lnwza-shelf-info p { overflow:hidden; margin:0 0 10px; color:#9a8983; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.lnwza-shelf-actions { display:flex; align-items:center; justify-content:space-between; gap:6px; }
.lnwza-shelf-actions button,
.lnwza-new-book-copy button {
  padding:6px 9px;
  border:1px solid #dfc28e;
  border-radius:7px;
  background:#fff8e8;
  color:#74412f;
  font-size:9px;
  font-weight:800;
}
.lnwza-shelf-actions a { color:#87502f; font-size:9px; font-weight:800; text-decoration:none; white-space:nowrap; }
.lnwza-new-tag { padding:7px 11px; border:1px solid #e7d0a4; border-radius:999px; background:#fff4d9; color:#986b32; font-size:9px; font-weight:900; letter-spacing:.12em; }
.lnwza-new-arrival-strip { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:12px; }
.lnwza-new-book {
  display:flex;
  flex-direction:column;
  min-width:0;
  overflow:hidden;
  border:1px solid rgba(199,164,118,.28);
  border-radius:13px;
  background:#fffdf8;
  box-shadow:0 7px 18px rgba(57,28,34,.05);
}
.lnwza-new-cover { display:grid; place-items:center; height:150px; padding:12px; background:#f6eddf; }
.lnwza-new-cover img { width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 6px 5px rgba(55,31,28,.16)); }
.lnwza-new-book-copy { display:flex; flex:1; flex-direction:column; gap:5px; padding:10px; }
.lnwza-new-book-copy small { color:#ad804c; font-size:9px; }
.lnwza-new-book-copy strong { display:-webkit-box; min-height:35px; overflow:hidden; color:#43212c; font-size:11px; line-height:1.5; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.lnwza-new-book-copy span { overflow:hidden; color:#9a8983; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.lnwza-new-book-copy button { margin-top:auto; }

/* Main results */
.lnwza-results-main { max-width:1260px; margin-top:12px; }
.lnwza-results-count { display:flex; flex-wrap:wrap; align-items:center; gap:7px; color:#917f77; font-size:11px; }
.lnwza-results-count strong { color:#6d2a3c; font-size:17px; }
.lnwza-results-count span { padding-left:8px; border-left:1px solid #d8c8b2; }
body.lnwza-opac .book-card {
  border:1px solid rgba(199,164,118,.35);
  border-radius:15px;
  background:linear-gradient(180deg,#fffefa,#f8f0e4);
  box-shadow:0 8px 22px rgba(57,28,34,.07);
}
body.lnwza-opac .book-card:hover { transform:translateY(-6px); box-shadow:0 18px 34px rgba(57,28,34,.14); }
body.lnwza-opac .cover-wrap { height:260px; padding:12px; background:radial-gradient(ellipse at 50% 80%,#ead9bd,#f8f0e2 65%,#fffaf0); }
body.lnwza-opac .cover-img { object-fit:contain; filter:drop-shadow(0 9px 7px rgba(55,31,28,.17)); background:transparent; }
body.lnwza-opac .category-badge { border:1px solid #ead7b6; background:#fff5df; color:#966b37; border-radius:999px; }
body.lnwza-opac .book-title { color:#43212c; }
body.lnwza-opac .detail-btn { border:1px solid #d7b577; background:#fff6e4; color:#71432e; font-weight:800; }
body.lnwza-opac .detail-btn:hover { background:#6b263d; color:#fff0d2; }
body.lnwza-opac .empty-panel { border-color:#ddc8a8; background:#fffaf0; color:#8b7774; }
body.lnwza-opac .error-panel { border-radius:14px; }

/* Book preview modal */
.lnwza-book-modal[hidden] { display:none !important; }
.lnwza-book-modal {
  position:fixed;
  inset:0;
  z-index:9999;
  display:grid;
  place-items:center;
  padding:20px;
}
.lnwza-modal-backdrop { position:absolute; inset:0; background:rgba(18,7,13,.78); backdrop-filter:blur(9px); }
.lnwza-modal-panel {
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(180px,.75fr) minmax(260px,1.25fr);
  gap:28px;
  width:min(720px,100%);
  padding:28px;
  border:1px solid rgba(234,199,133,.65);
  border-radius:22px;
  background:linear-gradient(145deg,#fffdf6,#f4e7d1);
  box-shadow:0 28px 90px rgba(0,0,0,.4);
  animation:lnwzaModalIn .28s ease both;
}
@keyframes lnwzaModalIn { from { opacity:0; transform:translateY(14px) scale(.97); } to { opacity:1; transform:none; } }
.lnwza-modal-close {
  position:absolute;
  top:12px;
  right:13px;
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border:1px solid #e5d1ad;
  border-radius:50%;
  background:#fff8e8;
  color:#6b263d;
  font-size:23px;
  line-height:1;
}
.lnwza-modal-cover-wrap { display:grid; place-items:center; min-height:260px; border-radius:16px; background:radial-gradient(ellipse,#e6d1ac,#f9f0df 68%,transparent); }
.lnwza-modal-cover-book { width:min(190px,90%); height:265px; padding:8px; border:1px solid #d8b77a; border-radius:5px 11px 11px 5px; background:#fff9e9; box-shadow:12px 14px 24px rgba(60,32,27,.23), inset 5px 0 #e3d1b1; transform:rotateY(-9deg) rotateZ(-2deg); }
.lnwza-modal-cover-book img { width:100%; height:100%; object-fit:contain; }
.lnwza-modal-copy { align-self:center; padding-right:14px; }
.lnwza-modal-copy h2 { margin:8px 0 8px; color:#3e1a28; font-size:25px; font-weight:800; line-height:1.4; overflow-wrap:anywhere; }
.lnwza-modal-copy p { color:#806e68; font-size:13px; line-height:1.8; }
.lnwza-modal-meta { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0; }
.lnwza-modal-meta span { padding:7px 11px; border:1px solid #e3cfaa; border-radius:999px; background:#fff8e8; color:#805631; font-size:11px; font-weight:800; }
.lnwza-modal-note { margin:12px 0 18px; }
.lnwza-modal-copy .lnwza-btn-gold { min-height:42px; box-shadow:0 4px 0 #8c542d,0 8px 18px rgba(0,0,0,.12); }

/* Footer */
body.lnwza-opac .opac-footer { background:linear-gradient(110deg,#170810,#351321 65%,#4a1a2c); border-top:1px solid rgba(224,184,112,.35); }
body.lnwza-opac .opac-footer-bottom { border-color:rgba(236,201,143,.18); }

/* Reveal and interaction */
.lnwza-reveal { opacity:0; transform:translateY(18px); transition:opacity .6s ease,transform .6s ease; }
.lnwza-reveal.is-in { opacity:1; transform:none; }
@media (hover:hover) and (pointer:fine) {
  .lnwza-shelf-card, .lnwza-category-tile, .lnwza-stat-card { transform-style:preserve-3d; }
  .lnwza-shelf-card:hover { transform:translateY(-6px) rotateX(1deg); }
}

/* Responsive */
@media (max-width: 1100px) {
  .lnwza-grand-inner { grid-template-columns:minmax(280px,.85fr) minmax(400px,1.15fr); gap:20px; }
  .lnwza-book-3d { width:160px; height:292px; }
  .lnwza-book-cover-link { height:220px; }
  .lnwza-book-3d { transform:translate(-50%,-50%) translateX(calc(var(--offset) * 118px)) translateZ(calc(var(--depth) * 4px)) rotateY(calc(var(--offset) * -27deg)) rotateZ(calc(var(--offset) * -2deg)) scale(var(--scale)); }
  .lnwza-shelf-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .lnwza-new-arrival-strip { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (max-width: 800px) {
  .lnwza-grand-inner { grid-template-columns:1fr; width:min(100% - 34px,680px); padding:42px 0 62px; gap:24px; }
  .lnwza-hero-copy { max-width:none; text-align:center; }
  .lnwza-eyebrow { margin:0 auto; }
  .lnwza-hero-copy h1 { margin-top:18px; font-size:clamp(32px,7vw,48px); }
  .lnwza-hero-lead { margin:0 auto; max-width:580px; }
  .lnwza-hero-actions,.lnwza-hero-proof { justify-content:center; }
  .lnwza-hero-visual { min-height:420px; }
  .lnwza-book-3d { width:clamp(132px,22vw,178px); height:285px; }
  .lnwza-book-cover-link { height:215px; }
  .lnwza-book-3d { transform:translate(-50%,-50%) translateX(calc(var(--offset) * 112px)) translateZ(calc(var(--depth) * 4px)) rotateY(calc(var(--offset) * -27deg)) rotateZ(calc(var(--offset) * -2deg)) scale(var(--scale)); }
  .lnwza-search-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .lnwza-search-submit { grid-column:span 2; }
  .lnwza-stats-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .lnwza-category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .lnwza-shelf-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .lnwza-new-arrival-strip { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width: 520px) {
  body.lnwza-opac .navbar-custom .container { min-height:66px; gap:9px; }
  body.lnwza-opac .brand img { width:39px; height:39px; }
  .lnwza-grand-inner { width:calc(100% - 24px); padding:32px 0 55px; }
  .lnwza-hero-copy h1 { font-size:31px; }
  .lnwza-hero-lead { font-size:13px; }
  .lnwza-hero-actions { gap:9px; }
  .lnwza-btn-gold,.lnwza-btn-glass { min-height:43px; padding:0 14px; font-size:11px; }
  .lnwza-hero-proof { gap:8px 13px; font-size:9px; }
  .lnwza-hero-visual { min-height:350px; }
  .lnwza-visual-heading { top:0; }
  .lnwza-book-stage { inset:48px 0 35px; }
  .lnwza-book-3d { width:120px; height:235px; padding:6px 6px 9px; }
  .lnwza-book-cover-link { height:174px; }
  .lnwza-book-3d-caption { padding-top:7px; }
  .lnwza-book-3d-caption strong { min-height:28px; font-size:9px; }
  .lnwza-book-3d-caption small { font-size:8px; }
  .lnwza-book-3d { transform:translate(-50%,-50%) translateX(calc(var(--offset) * 82px)) translateZ(calc(var(--depth) * 3px)) rotateY(calc(var(--offset) * -27deg)) rotateZ(calc(var(--offset) * -2deg)) scale(var(--scale)); }
  .lnwza-carousel-controls { bottom:0; }
  .lnwza-visual-footnote { bottom:-23px; font-size:6px; }
  .lnwza-search-section,.lnwza-stats-wrap,.lnwza-discovery-section,.lnwza-shelf-section { width:calc(100% - 22px); }
  .lnwza-search-section { margin-top:-25px; }
  .lnwza-search-card { padding:18px 13px 15px; border-radius:17px; }
  .lnwza-search-heading h2 { font-size:19px; }
  .lnwza-search-heading p { font-size:10px; }
  .lnwza-search-icon { width:43px; height:43px; flex-basis:43px; font-size:28px; }
  .lnwza-search-filters { gap:8px; }
  .lnwza-search-filters select { min-height:40px; font-size:10px; }
  .lnwza-search-submit { min-height:42px; }
  .lnwza-search-bottom { flex-direction:column; font-size:9px; }
  .lnwza-stats-wrap { margin-top:22px; }
  .lnwza-stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .lnwza-stat-card { gap:8px; padding:11px 9px; border-radius:12px; }
  .lnwza-stat-icon { width:34px; height:34px; flex-basis:34px; border-radius:10px; font-size:17px; }
  .lnwza-stat-card small { font-size:8px; }
  .lnwza-stat-card strong { font-size:19px; }
  .lnwza-stat-card em { font-size:6px; }
  .lnwza-discovery-section,.lnwza-shelf-section { margin-top:36px; }
  .lnwza-section-heading-row { align-items:center; margin-bottom:14px; }
  .lnwza-section-heading-row h2 { font-size:20px; }
  .lnwza-section-heading-row p { font-size:10px; }
  .lnwza-section-kicker { font-size:8px; letter-spacing:.15em; }
  .lnwza-category-grid { gap:8px; }
  .lnwza-category-tile { min-height:98px; padding:12px; border-radius:12px; }
  .lnwza-category-tile strong { font-size:12px; }
  .lnwza-shelf-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .lnwza-shelf-cover { height:190px; padding:10px; }
  .lnwza-shelf-info { padding:9px; }
  .lnwza-shelf-info h3 { font-size:11px; }
  .lnwza-new-arrival-strip { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .lnwza-new-cover { height:135px; }
  .lnwza-results-main { padding-left:11px; padding-right:11px; }
  body.lnwza-opac .cover-wrap { height:185px; }
  .lnwza-modal-panel { grid-template-columns:1fr; gap:14px; max-height:90vh; overflow:auto; padding:20px; }
  .lnwza-modal-cover-wrap { min-height:190px; }
  .lnwza-modal-cover-book { height:190px; width:135px; }
  .lnwza-modal-copy { padding-right:0; }
  .lnwza-modal-copy h2 { font-size:20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
  .lnwza-reveal { opacity:1; transform:none; }
}
