/* ==========================================================================
   LetsFilm Camera Atlas — Unified Darkroom & Archival Paper Stylesheet
   ========================================================================== */
:root[data-theme="dark"] {
  --bg: #0b0a09;
  --bg2: #12100d;
  --panel: #161310;
  --panel2: #1f1b16;
  --plate: #f7f4ed;
  --plate-border: rgba(243, 237, 225, 0.14);
  --tx: #f3ede1;
  --tx2: #b8af9f;
  --tx3: #7f7668;
  --line: rgba(243, 237, 225, 0.09);
  --line2: rgba(243, 237, 225, 0.18);
  --topbg: rgba(11, 10, 9, 0.9);
  --gold: #d8b46a;
  --gold-soft: rgba(216, 180, 106, 0.14);
  --accent: #c9382e;
  --accent-soft: rgba(201, 56, 46, 0.18);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
}

:root[data-theme="light"] {
  --bg: #f3eee2;
  --bg2: #e9e2d2;
  --panel: #faf7ef;
  --panel2: #f1ebdd;
  --plate: #f7f4ed;
  --plate-border: rgba(23, 19, 13, 0.1);
  --tx: #18140e;
  --tx2: #4e4537;
  --tx3: #7e7361;
  --line: rgba(24, 20, 14, 0.1);
  --line2: rgba(24, 20, 14, 0.2);
  --topbg: rgba(243, 238, 226, 0.92);
  --gold: #9a6c1e;
  --gold-soft: rgba(154, 108, 30, 0.11);
  --accent: #a8121c;
  --accent-soft: rgba(168, 18, 28, 0.1);
  --shadow: 0 10px 28px rgba(24, 20, 14, 0.09);
}

:root {
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--tx);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  transition: background .2s ease, color .2s ease;
}
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Top Header */
.lf-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--topbg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.lf-topbar-in {
  max-width: 1400px;
  margin: 0 auto;
  padding: 11px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.lf-brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lf-brand {
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.lf-brand b {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .08em;
}
.lf-brand s {
  text-decoration: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--gold);
}
.lf-sister-link {
  font-size: 12px;
  color: var(--tx3);
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  transition: .15s;
}
.lf-sister-link:hover { color: var(--gold); border-color: var(--gold); }

.lf-nav-tabs {
  display: inline-flex;
  background: var(--panel2);
  border: 1px solid var(--line2);
  border-radius: 5px;
  padding: 3px;
  gap: 2px;
}
.lf-nav-tabs button {
  padding: 6px 13px;
  border-radius: 3px;
  font-size: 12.5px;
  color: var(--tx2);
  transition: .15s;
  white-space: nowrap;
}
.lf-nav-tabs button:hover { color: var(--tx); }
.lf-nav-tabs button.active {
  background: var(--gold);
  color: #120e09;
  font-weight: 600;
}

.lf-util-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lf-icon-btn {
  padding: 5px 10px;
  border: 1px solid var(--line2);
  border-radius: 4px;
  font-size: 12px;
  color: var(--tx2);
  background: var(--panel);
  transition: .15s;
  white-space: nowrap;
}
.lf-icon-btn:hover { border-color: var(--gold); color: var(--tx); }

/* Container */
.lf-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 22px 100px;
}

/* Editorial Hero */
.lf-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.lf-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--gold);
  margin-bottom: 5px;
}
.lf-hero h1 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .03em;
}
.lf-hero p {
  margin-top: 7px;
  color: var(--tx2);
  font-size: 13.5px;
  max-width: 640px;
}

.lf-shuffle-btn {
  padding: 8px 14px;
  border: 1px solid var(--gold);
  background: var(--gold-soft);
  color: var(--gold);
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: .16s;
}
.lf-shuffle-btn:hover { background: var(--gold); color: #120e09; }

/* Filter Bar (Desktop) & Compact Mobile Trigger */
.lf-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.lf-search-box {
  flex: 1;
  min-width: 220px;
  max-width: 400px;
  position: relative;
}
.lf-search-box input {
  width: 100%;
  height: 38px;
  padding: 0 36px 0 34px;
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: 5px;
  color: var(--tx);
  font-size: 13.5px;
  outline: none;
  transition: border-color .15s;
}
.lf-search-box input:focus { border-color: var(--gold); }
.lf-search-box svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  stroke: var(--tx3);
  fill: none;
  stroke-width: 2;
  pointer-events: none;
}
.lf-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  color: var(--tx3);
  display: none;
  place-items: center;
}
.lf-search-clear.show { display: grid; }

.lf-desktop-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lf-sel {
  height: 38px;
  padding: 0 11px;
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: 5px;
  color: var(--tx);
  font-size: 12.5px;
}
.lf-chip-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.lf-chip {
  padding: 6px 11px;
  border: 1px solid var(--line2);
  border-radius: 4px;
  background: var(--panel);
  color: var(--tx2);
  font-size: 12px;
  transition: .14s;
}
.lf-chip:hover { border-color: var(--gold); color: var(--tx); }
.lf-chip.active {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 600;
}
.lf-mobile-filter-btn {
  display: none;
  height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line2);
  border-radius: 5px;
  background: var(--panel);
  font-size: 12.5px;
  color: var(--tx);
  align-items: center;
  gap: 6px;
}

.lf-search-notice {
  margin-bottom: 14px;
  padding: 9px 14px;
  background: var(--panel2);
  border-left: 3px solid var(--gold);
  border-radius: 3px;
  font-size: 12.5px;
  color: var(--tx2);
}

/* Curated Editorial Collections Strip */
.lf-collections {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 14px;
  margin-bottom: 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.lf-collections::-webkit-scrollbar { display: none; }
.lf-col-lbl {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--tx3);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  padding-right: 4px;
}
.lf-col-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: var(--panel);
  color: var(--tx2);
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color .15s, color .15s, background .15s;
}
.lf-col-pill:hover {
  border-color: var(--gold);
  color: var(--tx);
}
.lf-col-pill.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #120e09;
  font-weight: 600;
}
.lf-col-banner {
  margin-bottom: 16px;
  padding: 11px 15px;
  background: var(--panel2);
  border: 1px solid var(--line2);
  border-left: 3px solid var(--gold);
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.lf-col-banner-text strong {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--tx);
  margin-right: 10px;
}
.lf-col-banner-text span {
  font-size: 12.5px;
  color: var(--tx2);
}
.lf-col-clear {
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 9px;
  border: 1px solid var(--line2);
  border-radius: 4px;
  color: var(--tx2);
  white-space: nowrap;
}
.lf-col-clear:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Featured Spotlight Row (Top 3 Illustrated Cards + Random 3-Photo Editorial Collage) */
.lf-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
@media (max-width: 1080px) { .lf-spotlight-grid { grid-template-columns: 1fr; } }

.lf-spot-card {
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .18s, transform .18s;
}
.lf-spot-card:hover { border-color: var(--gold); transform: translateY(-2px); }

.lf-spot-head {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px;
  align-items: center;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.lf-spot-plate {
  aspect-ratio: 5 / 4;
  background: var(--plate);
  border: 1px solid var(--plate-border);
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.lf-spot-plate img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.lf-spot-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}
.lf-spot-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  margin-top: 2px;
}
.lf-spot-desc {
  margin-top: 5px;
  font-size: 12px;
  color: var(--tx2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lf-spot-collage {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 104px 104px;
  gap: 3px;
  padding: 3px;
  background: var(--bg2);
}
.lf-spot-shot {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #1a1714;
}
.lf-spot-shot:first-child { grid-row: 1 / span 2; }
.lf-spot-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.lf-spot-shot:hover img { transform: scale(1.05); }
.lf-spot-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px 8px 5px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.76));
  color: #f4eee2;
  font-size: 10.5px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.lf-spot-cap span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lf-spot-cap em { font-style: normal; opacity: .74; font-family: var(--mono); flex-shrink: 0; }
.lf-spot-foot {
  padding: 9px 14px;
  background: var(--panel2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--tx2);
}
.lf-spot-foot button { color: var(--gold); font-weight: 600; font-size: 12px; }
.lf-spot-foot button:hover { text-decoration: underline; }

/* Main Atlas Grid */
.lf-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 1180px) { .lf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .lf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; } }

.lf-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.lf-card:hover {
  transform: translateY(-2px);
  border-color: var(--line2);
  box-shadow: var(--shadow);
}
.lf-card.cmp-on {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}
.lf-card-plate {
  aspect-ratio: 5 / 4;
  background: var(--plate);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  cursor: pointer;
  overflow: hidden;
}
.lf-card-plate img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .28s ease;
}
.lf-card:hover .lf-card-plate img { transform: scale(1.03); }
.lf-card-plate svg { width: 68%; height: 68%; }

.lf-card-top {
  position: absolute;
  top: 8px;
  left: 9px;
  right: 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.lf-brand-pill {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 2px;
  background: rgba(20, 17, 13, 0.78);
  color: #f3ede1;
}
.lf-cmp-toggle {
  pointer-events: auto;
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 2px;
  background: rgba(20, 17, 13, 0.76);
  color: #f3ede1;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.lf-cmp-toggle.on {
  background: var(--gold);
  color: #120e09;
  border-color: var(--gold);
  font-weight: 700;
}

/* 3-Frame Mini Sample Strip on Card */
.lf-mini-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 2px;
  background: var(--bg2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.lf-mini-frame {
  height: 52px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #1a1714;
}
.lf-mini-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.lf-mini-frame:hover img { transform: scale(1.08); }

.lf-card-body {
  padding: 12px 13px 13px;
  display: flex;
  flex-direction: column;
  flex: 1;
  cursor: pointer;
}
.lf-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
}
.lf-card-name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.lf-card-year {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--tx3);
  flex-shrink: 0;
}
.lf-card-desc {
  margin-top: 5px;
  font-size: 12px;
  color: var(--tx2);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.lf-card-foot {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
.lf-form-lbl { font-family: var(--mono); color: var(--tx3); }
.lf-archive-badge {
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 2px;
  border: 1px solid var(--line2);
  color: var(--tx3);
}
.lf-sample-link {
  color: var(--gold);
  font-weight: 600;
  font-size: 11px;
}

/* Text-Only Archival Card (for obscure/historical models without photos) */
.lf-card--text {
  background: var(--panel);
  border-style: solid;
  border-color: var(--line2);
}
.lf-card-head-text {
  padding: 11px 13px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.lf-card--text .lf-card-body {
  padding-top: 9px;
}
.lf-card--text .lf-card-desc {
  -webkit-line-clamp: 3;
}
.lf-spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
.lf-spec-pill {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--tx2);
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2px 6px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lf-d-hero--text {
  grid-template-columns: 1fr;
}
.lf-d-archive-note {
  margin-top: 18px;
  padding: 12px 14px;
  background: var(--panel2);
  border: 1px dashed var(--line2);
  border-radius: 5px;
  color: var(--tx3);
  font-size: 12.5px;
}

/* Infinite Masonry Gallery ("按样片浏览") */
.lf-masonry {
  column-count: 4;
  column-gap: 14px;
}
@media (max-width: 1160px) { .lf-masonry { column-count: 3; } }
@media (max-width: 720px) { .lf-masonry { column-count: 2; column-gap: 9px; } }

.lf-m-card {
  break-inside: avoid;
  margin-bottom: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color .16s, transform .16s;
}
.lf-m-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.lf-m-photo {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: #161411;
}
.lf-m-photo img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .35s ease;
}
.lf-m-card:hover .lf-m-photo img { transform: scale(1.03); }
.lf-m-film {
  position: absolute;
  top: 7px;
  right: 7px;
  background: rgba(11, 10, 9, 0.74);
  backdrop-filter: blur(4px);
  color: #e4c278;
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 3px;
}
.lf-m-foot {
  padding: 9px 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.lf-m-title {
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lf-m-author { font-size: 11px; color: var(--tx3); }
.lf-m-cam {
  flex-shrink: 0;
  padding: 3px 8px;
  border: 1px solid var(--line2);
  border-radius: 3px;
  font-size: 11px;
  color: var(--gold);
  background: var(--gold-soft);
  font-weight: 600;
}
.lf-m-cam:hover { background: var(--gold); color: #120e09; }

.lf-sentinel {
  text-align: center;
  padding: 26px 12px;
  color: var(--tx3);
  font-size: 12.5px;
  font-family: var(--mono);
}

/* Catalog Index Table */
.lf-tbl-wrap {
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: 6px;
  overflow-x: auto;
}
table.lf-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.lf-tbl th {
  text-align: left;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--tx3);
  background: var(--panel2);
  border-bottom: 1px solid var(--line2);
  white-space: nowrap;
}
table.lf-tbl td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.lf-tbl tbody tr { cursor: pointer; }
table.lf-tbl tbody tr:hover { background: var(--gold-soft); }

/* Camera Monograph Drawer */
.lf-drawer-bg {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: flex-end;
}
.lf-drawer-bg.open { display: flex; }
.lf-drawer {
  width: min(680px, 100vw);
  height: 100%;
  background: var(--panel);
  border-left: 1px solid var(--line2);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.lf-drawer-head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 13px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.lf-close-btn {
  padding: 5px 11px;
  border: 1px solid var(--line2);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
}
.lf-close-btn:hover { border-color: var(--gold); color: var(--gold); }
.lf-drawer-body { padding: 20px 22px 40px; }
.lf-d-hero {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
  align-items: center;
}
.lf-d-plate {
  aspect-ratio: 5 / 4;
  background: var(--plate);
  border: 1px solid var(--plate-border);
  border-radius: 6px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lf-d-plate img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.lf-d-specs {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.lf-sp {
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 10px;
}
.lf-sp span { display: block; font-family: var(--mono); font-size: 10px; color: var(--tx3); }
.lf-sp b { display: block; font-size: 12px; margin-top: 2px; }

.lf-d-samples {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.lf-d-samples-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.lf-d-samples-hd h3 { font-family: var(--serif); font-size: 18px; }
.lf-d-masonry { column-count: 2; column-gap: 10px; }
.lf-d-shot {
  break-inside: avoid;
  margin-bottom: 10px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel2);
  cursor: pointer;
}
.lf-d-shot:hover { border-color: var(--gold); }
.lf-d-shot img { width: 100%; height: auto; display: block; }
.lf-d-shot-cap { padding: 7px 9px; font-size: 11.5px; }
.lf-d-shot-cap b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lf-d-shot-cap span { font-size: 10.5px; color: var(--tx3); display: flex; justify-content: space-between; margin-top: 2px; }

/* Darkroom Touch-Swipe Lightbox */
.lf-lb-bg {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(6, 5, 4, 0.96);
  color: #f3ede1;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 20px;
  touch-action: pan-y;
}
.lf-lb-bg.open { display: flex; }
.lf-lb-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11.5px;
  color: #b5ac9d;
}
.lf-lb-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 0;
  padding: 12px 0;
}
.lf-lb-nav {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f3ede1;
  font-size: 18px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.lf-lb-nav:hover { border-color: #d8b46a; color: #d8b46a; }
.lf-lb-img-wrap {
  max-width: min(980px, 84vw);
  max-height: 74vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lf-lb-img-wrap img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.72);
}
.lf-lb-plaque {
  border-top: 1px solid rgba(243, 237, 225, 0.14);
  padding-top: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.lf-lb-plaque h4 { font-family: var(--serif); font-size: 17px; color: #f5efe2; }
.lf-lb-plaque .sub { font-size: 12px; color: #b5ac9d; margin-top: 2px; font-family: var(--mono); }
.lf-lb-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.lf-lb-btn {
  padding: 7px 13px;
  border-radius: 4px;
  font-size: 12px;
  border: 1px solid rgba(216, 180, 106, 0.5);
  color: #d8b46a;
}
.lf-lb-btn.pri { background: #c9382e; border-color: #c9382e; color: #fff; font-weight: 600; }

/* Compare Dock & Modal */
.lf-cmp-dock {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 65;
  background: #17130e;
  color: #f3ede1;
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 9px 15px;
  display: none;
  align-items: center;
  gap: 10px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
  max-width: calc(100vw - 24px);
  flex-wrap: wrap;
}
.lf-cmp-dock.show { display: flex; }
.lf-cmp-chip {
  background: rgba(216, 180, 106, 0.16);
  border: 1px solid rgba(216, 180, 106, 0.45);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lf-cmp-go {
  background: var(--gold);
  color: #120e09;
  padding: 6px 13px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.lf-modal-bg {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.lf-modal-bg.open { display: flex; }
.lf-modal {
  width: min(920px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: 8px;
  padding: 20px;
}
table.lf-cmp-tbl { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 12px; }
table.lf-cmp-tbl th, table.lf-cmp-tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.lf-cmp-tbl th { width: 112px; color: var(--tx3); font-family: var(--mono); font-size: 11px; }

/* Mobile Bottom Sheet Filter Drawer */
.lf-sheet-bg {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.62);
  display: none;
  align-items: flex-end;
}
.lf-sheet-bg.open { display: flex; }
.lf-sheet {
  width: 100%;
  background: var(--panel);
  border-top: 1px solid var(--line2);
  border-radius: 14px 14px 0 0;
  padding: 18px 20px 28px;
  max-height: 82vh;
  overflow-y: auto;
}

/* Mobile Responsive Polish */
@media (max-width: 760px) {
  .lf-topbar-in { padding: 10px 14px; gap: 8px; }
  .lf-sister-link { display: none; }
  .lf-nav-tabs { width: 100%; order: 3; justify-content: space-between; }
  .lf-nav-tabs button { flex: 1; text-align: center; padding: 7px 8px; font-size: 12px; }
  .lf-wrap { padding: 16px 14px 96px; }
  .lf-desktop-filters { display: none; }
  .lf-mobile-filter-btn { display: inline-flex; }
  .lf-search-box { max-width: none; }
  .lf-d-hero { grid-template-columns: 1fr; }
  .lf-d-specs { grid-template-columns: 1fr 1fr; }
  .lf-drawer-body { padding: 16px 16px 36px; }
  .lf-lb-nav { display: none; }
  .lf-lb-img-wrap { max-width: 96vw; }
  .lf-card-name { font-size: 14.5px; }
  .lf-mini-frame { height: 42px; }
}
