/* ==========================================================================
   WOULD READ THAT — Immersive Mobile-First Literary Editorial Stylesheet
   3 Dark Surfaces × 5 Formal Accents
   ========================================================================== */

:root {
  --font-display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Default Surface: Abyssal Carbon */
  --bg-page: #0a0c0f;
  --bg-surface: #111419;
  --bg-elevated: #171b22;
  --bg-popover: #141820;
  --bg-glass: rgba(10, 12, 15, 0.86);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.17);
  --text-primary: #f2efe9;
  --text-secondary: #a1a7b3;
  --text-muted: #6e7482;
  --shadow-lg: 0 28px 64px rgba(0, 0, 0, 0.62);
  --shadow-popover: 0 22px 48px rgba(0, 0, 0, 0.78);

  /* Default Accent: Royal Gold */
  --accent: #c9a23f;
  --accent-hover: #dcb857;
  --accent-soft: rgba(201, 162, 63, 0.14);
  --accent-border: rgba(201, 162, 63, 0.45);
  --accent-contrast: #0a0c0f;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --spring: 260ms cubic-bezier(0.22, 1, 0.36, 1);
  --tap-transition: 140ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 3 Formal Dark Surfaces ---------- */
[data-theme="abyssal-carbon"] {
  --bg-page: #0a0c0f;
  --bg-surface: #111419;
  --bg-elevated: #181c24;
  --bg-popover: #141820;
  --bg-glass: rgba(10, 12, 15, 0.88);
}

[data-theme="midnight-slate"] {
  --bg-page: #0c121b;
  --bg-surface: #121b28;
  --bg-elevated: #192536;
  --bg-popover: #152030;
  --bg-glass: rgba(12, 18, 27, 0.88);
}

[data-theme="pure-obsidian"] {
  --bg-page: #000000;
  --bg-surface: #0a0a0c;
  --bg-elevated: #141418;
  --bg-popover: #101014;
  --bg-glass: rgba(0, 0, 0, 0.92);
}

/* ---------- 5 Formal Accents ---------- */
[data-accent="royal-gold"] {
  --accent: #c9a23f;
  --accent-hover: #dcb857;
  --accent-soft: rgba(201, 162, 63, 0.14);
  --accent-border: rgba(201, 162, 63, 0.45);
  --accent-contrast: #0a0c0f;
}

[data-accent="silver-nitrate"] {
  --accent: #bfc7d1;
  --accent-hover: #d8dfe7;
  --accent-soft: rgba(191, 199, 209, 0.14);
  --accent-border: rgba(191, 199, 209, 0.45);
  --accent-contrast: #0a0c0f;
}

[data-accent="deep-teal"] {
  --accent: #1e8f8a;
  --accent-hover: #29a8a2;
  --accent-soft: rgba(30, 143, 138, 0.16);
  --accent-border: rgba(30, 143, 138, 0.48);
  --accent-contrast: #ffffff;
}

[data-accent="oxblood-noir"] {
  --accent: #8f2d3e;
  --accent-hover: #a93a4d;
  --accent-soft: rgba(143, 45, 62, 0.2);
  --accent-border: rgba(143, 45, 62, 0.52);
  --accent-contrast: #ffffff;
}

[data-accent="midnight-pine"] {
  --accent: #246b56;
  --accent-hover: #2f856c;
  --accent-soft: rgba(36, 107, 86, 0.2);
  --accent-border: rgba(36, 107, 86, 0.52);
  --accent-contrast: #ffffff;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

body.sheet-open { overflow: hidden; }

.ambient-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 45% at 50% -8%, var(--accent-soft), transparent 72%),
    radial-gradient(ellipse 60% 45% at 100% 100%, rgba(255, 255, 255, 0.025), transparent 65%);
  transition: background 600ms ease;
}

img { display: block; max-width: 100%; }
button, input, select { font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

button:active { transform: scale(0.97); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0.7rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.brand-lockup { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand-monogram { color: var(--accent); display: flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}
.brand-subtitle {
  font-size: 0.57rem;
  letter-spacing: 0.26em;
  color: var(--text-muted);
  margin-top: 3px;
}

.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.nav-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--spring);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.nav-btn:hover { color: var(--text-primary); }
.nav-btn.active {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.badge-pill {
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.06rem 0.42rem;
  border-radius: 999px;
}

.header-actions { display: flex; align-items: center; gap: 0.45rem; }
.auth-header-group { display: flex; align-items: center; gap: 0.35rem; }

.member-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.26rem 0.72rem 0.26rem 0.28rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
}
.member-avatar {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-contrast);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.76rem;
  display: grid;
  place-items: center;
}

/* ---------- Buttons ---------- */
.btn-accent, .btn-outline, .btn-ghost, .icon-btn {
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background var(--tap-transition), border-color var(--tap-transition), color var(--tap-transition), transform var(--tap-transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 40px;
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-contrast);
  border: 1px solid var(--accent);
  padding: 0.56rem 1.15rem;
  font-weight: 600;
}
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  padding: 0.54rem 1rem;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  padding: 0.5rem 0.8rem;
}
.btn-ghost:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.05); }

.btn-sm { min-height: 36px; padding: 0.4rem 0.82rem; font-size: 0.8rem; }

.icon-btn {
  width: 38px;
  height: 38px;
  min-height: 38px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent-border); background: var(--accent-soft); }

.file-label { cursor: pointer; }

/* ---------- Main Shell & Search ---------- */
.main-shell {
  position: relative;
  max-width: 1380px;
  margin: 0 auto;
  padding: 1.35rem 1.4rem 5rem;
}

.search-bar-section { margin-bottom: 1.5rem; }

.concierge-form {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.concierge-input-wrap {
  flex: 1 1 280px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  pointer-events: none;
}

.concierge-input-wrap input {
  width: 100%;
  min-height: 46px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 2.4rem 0.65rem 2.75rem;
  font-size: 0.92rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--tap-transition), box-shadow var(--tap-transition);
}
.concierge-input-wrap input:focus {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.concierge-input-wrap input::placeholder { color: var(--text-muted); }

.clear-search-btn {
  position: absolute;
  right: 0.7rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.concierge-actions { display: flex; gap: 0.5rem; }

/* ---------- View Transitions & Headings ---------- */
.view-section {
  display: none;
}
.view-section.active {
  display: block;
  animation: viewFadeIn 280ms cubic-bezier(0.22, 1, 0.36, 1);
}
body.sheet-open .view-section.active {
  animation: none;
}

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

.eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
}

.editorial-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  font-weight: 600;
}

.editorial-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  color: var(--accent);
  opacity: 0.68;
}
.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

/* ---------- Immersive Literary Hero Spotlight ---------- */
.hero-spotlight {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  min-height: 430px;
  box-shadow: var(--shadow-lg);
  touch-action: pan-y;
}

.deco-corner {
  position: absolute;
  z-index: 6;
  color: var(--accent);
  opacity: 0.55;
  pointer-events: none;
}
.deco-tl { top: 12px; left: 12px; }
.deco-tr { top: 12px; right: 12px; }

.hero-slide {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  padding: 2.5rem 2.6rem 3.4rem;
  overflow: hidden;
  animation: heroReveal 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes heroReveal {
  from { opacity: 0.25; transform: scale(1.015); }
  to { opacity: 1; transform: scale(1); }
}

.hero-backdrop-blur {
  position: absolute;
  inset: -24px;
  background-size: cover;
  background-position: center;
  filter: blur(28px) saturate(1.15) brightness(0.45);
  transform: scale(1.08);
  z-index: 0;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 10, 13, 0.92) 0%, rgba(8, 10, 13, 0.72) 55%, rgba(8, 10, 13, 0.58) 100%),
    linear-gradient(0deg, rgba(8, 10, 13, 0.94) 0%, transparent 60%);
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  align-items: center;
  gap: 2.2rem;
  width: 100%;
  max-width: 960px;
}

.hero-book-jacket-wrap {
  position: relative;
}

.hero-book-jacket {
  width: 185px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: -8px 18px 40px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(201, 162, 63, 0.2);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  color: #f4f1ea;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.hero-title {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.8vw, 2.85rem);
  font-weight: 600;
  line-height: 1.08;
}

.hero-overview {
  margin: 0 0 1.25rem;
  color: rgba(244, 241, 234, 0.82);
  font-size: 0.94rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-cta-row { display: flex; flex-wrap: wrap; gap: 0.55rem; }

.hero-controls {
  position: absolute;
  bottom: 1.25rem;
  right: 1.35rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.hero-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10, 12, 15, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.hero-arrow:hover { border-color: var(--accent); color: var(--accent); }

.hero-dots { display: flex; gap: 0.35rem; }
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  transition: var(--spring);
}
.hero-dot.active { width: 24px; background: var(--accent); }

.hero-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 7;
}
.hero-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
}
.hero-progress-bar.running {
  animation: heroProgress 7500ms linear forwards;
}
@keyframes heroProgress {
  from { width: 0%; }
  to { width: 100%; }
}

.hero-skeleton {
  height: 430px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

/* Shimmer loading effect */
.shimmer {
  background: linear-gradient(110deg, var(--bg-surface) 25%, var(--bg-elevated) 45%, var(--bg-surface) 65%);
  background-size: 220% 100%;
  animation: shimmerMove 1.6s linear infinite;
}
@keyframes shimmerMove {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.skeleton-card {
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

/* ---------- Collections (Smooth Scroll-Snap) ---------- */
.collection-block { margin-bottom: 2.4rem; }
.collection-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}
.collection-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
}

.collection-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(156px, 188px);
  gap: 0.95rem;
  overflow-x: auto;
  padding-bottom: 0.65rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.collection-row::-webkit-scrollbar { display: none; }
.collection-row > * { scroll-snap-align: start; }

/* ---------- Large Mobile-Ready Filter Buttons & Smooth Popovers / Sheets ---------- */
.section-header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}
.studio-toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

.filter-bar-shell {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 1.05rem;
}

.filter-popover { position: relative; }

.filter-trigger {
  width: 100%;
  min-height: 62px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.72rem;
  text-align: left;
  cursor: pointer;
  transition: var(--spring);
}

.filter-trigger:hover {
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}

.filter-popover.open .filter-trigger,
.filter-popover.has-value .filter-trigger {
  border-color: var(--accent-border);
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-surface));
  box-shadow: 0 0 0 1px var(--accent-soft);
}

.ft-icon {
  color: var(--accent);
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ft-icon-gr { color: #e2b857; background: rgba(226, 184, 87, 0.15); }
.ft-icon-sg { color: #3dc7b6; background: rgba(61, 199, 182, 0.14); }

.ft-labels {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  gap: 2px;
}
.ft-name {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.ft-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ft-chevron {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform var(--spring);
}
.filter-popover.open .ft-chevron { transform: rotate(180deg); color: var(--accent); }

/* Desktop floating panel */
.filter-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 300px;
  max-width: 360px;
  background: var(--bg-popover);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1.05rem;
  z-index: 75;
  box-shadow: var(--shadow-popover);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  animation: panelPop 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.filter-panel-wide { min-width: 340px; max-width: 400px; }

@keyframes panelPop {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.filter-popover:nth-child(5n) .filter-panel,
.filter-popover:nth-child(5n-1) .filter-panel {
  left: auto;
  right: 0;
}

.sheet-handle { display: none; }
.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}
.sheet-close-btn {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
}
.sheet-done-btn { width: 100%; margin-top: 0.2rem; }

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: fadeIn 200ms ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* AND / OR Segmented Switch */
.logic-switch {
  display: inline-flex;
  background: var(--bg-page);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
  margin-left: auto;
}
.logic-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--tap-transition);
}
.logic-btn.active {
  background: var(--accent);
  color: var(--accent-contrast);
}

.panel-section { display: flex; flex-direction: column; gap: 0.45rem; }
.panel-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 600;
}
.sub-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* Touch-Friendly Chips */
.pill-group { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.48rem 0.85rem;
  min-height: 38px;
  border-radius: 999px;
  font-size: 0.84rem;
  cursor: pointer;
  transition: var(--tap-transition);
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}
.chip:hover { color: var(--text-primary); border-color: var(--border-strong); }
.chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.active-filters-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.selected-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.tag-removable {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 0.78rem;
  min-height: 36px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--tap-transition);
}
.tag-removable:hover {
  background: var(--accent);
  color: var(--accent-contrast);
}

/* Inputs */
.form-stack { display: flex; flex-direction: column; gap: 0.8rem; }
.field-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.field-row input[type="text"],
.field-row input[type="password"],
.field-row input[type="number"],
.field-row select,
.year-range-row input,
.autocomplete-wrap input,
.sorter-shell select {
  width: 100%;
  min-height: 44px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  color: var(--text-primary);
  outline: none;
}
.field-row input:focus,
.field-row select:focus,
.autocomplete-wrap input:focus,
.sorter-shell select:focus { border-color: var(--accent-border); }

input[type="range"] {
  accent-color: var(--accent);
  cursor: pointer;
  height: 28px;
}

.year-range-row { display: flex; align-items: center; gap: 0.5rem; }

.autocomplete-wrap { position: relative; }
.autocomplete-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  z-index: 120;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: var(--shadow-popover);
}
.autocomplete-item {
  padding: 0.7rem 0.85rem;
  min-height: 44px;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}
.autocomplete-item:hover { background: var(--accent-soft); }
.autocomplete-item.is-selected {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.helper-note { margin: 0; font-size: 0.78rem; color: var(--text-muted); }

/* ---------- Sorter Toolbar ---------- */
.results-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.85rem 0;
  margin-bottom: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.results-meta { font-size: 0.86rem; color: var(--text-secondary); }

.sorter-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.sorter-quick-pills {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.22rem;
  gap: 0.15rem;
  overflow-x: auto;
  max-width: 100%;
}

.sort-pill {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--tap-transition);
}
.sort-pill.active {
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 600;
}

.sorter-shell select {
  width: auto;
  min-width: 225px;
  min-height: 40px;
  padding: 0.45rem 0.72rem;
  font-size: 0.82rem;
}

/* ---------- Book Cards ---------- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.1rem;
}

.media-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--spring), border-color var(--spring), box-shadow var(--spring);
  display: flex;
  flex-direction: column;
  animation: cardRise 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.media-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.46);
}
.media-card:active { transform: scale(0.98); }

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  background: var(--bg-elevated);
  overflow: hidden;
}
.poster-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms ease; }
.media-card:hover .poster-wrap img { transform: scale(1.03); }

/* Cloth-bound typographic fallback jacket */
.poster-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.2rem 1rem;
  text-align: center;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0%, rgba(255, 255, 255, 0.04) 7%, transparent 11%),
    radial-gradient(circle at 50% 28%, var(--accent-soft), transparent 68%),
    var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}
.poster-placeholder::after {
  content: '';
  position: absolute;
  inset: 9px;
  border: 1px solid var(--accent-border);
  opacity: 0.38;
  border-radius: 4px;
  pointer-events: none;
}
.book-spine-ornament {
  color: var(--accent);
  font-size: 0.65rem;
  opacity: 0.8;
}
.book-placeholder-title {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-placeholder-author {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.card-laurel {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(10, 12, 15, 0.86);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.22rem 0.48rem;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  backdrop-filter: blur(6px);
}

.card-wl-btn {
  position: absolute;
  top: 0.48rem;
  right: 0.48rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(10, 12, 15, 0.78);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.96rem;
}
.card-wl-btn.saved {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}

.card-body {
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  flex: 1;
}
.card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.24;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-meta-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.ratings-strip {
  margin-top: auto;
  padding-top: 0.42rem;
  display: flex;
  align-items: center;
  gap: 0.36rem;
  flex-wrap: wrap;
}

.rating-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.18rem 0.46rem;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}
.rating-gr {
  background: rgba(226, 184, 87, 0.13);
  color: #e6c166;
  border: 1px solid rgba(226, 184, 87, 0.34);
}
.rating-sg {
  background: rgba(61, 199, 182, 0.11);
  color: #6ee0d1;
  border: 1px solid rgba(61, 199, 182, 0.32);
}
.rating-unrated {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.award-badge {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  font-size: 0.74rem;
  font-weight: 500;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pagination-bar { display: flex; justify-content: center; margin-top: 2rem; }

/* ---------- Floating Mobile Bottom Dock ---------- */
.mobile-dock {
  display: none;
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px));
  z-index: 85;
  background: rgba(15, 18, 24, 0.9);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 0.35rem 0.4rem;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65);
  grid-template-columns: repeat(4, 1fr);
}

.dock-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.45rem 0.2rem;
  border-radius: 14px;
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--tap-transition);
}
.dock-btn.active {
  color: var(--accent);
  background: var(--accent-soft);
}
.dock-icon-wrap { position: relative; display: flex; }
.dock-badge {
  position: absolute;
  top: -5px;
  right: -9px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 0.62rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

/* ---------- Modals, Book Dossier & Reading Room ---------- */
.modal-backdrop, .drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 1rem;
  animation: fadeIn 180ms ease;
}

.modal-dialog {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalRise 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modalRise {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.detail-dialog { max-width: 920px; }
.reader-dialog { max-width: 780px; overflow: hidden; display: flex; flex-direction: column; }
.auth-dialog { max-width: 430px; padding: 1.9rem 1.65rem; }

.modal-close-btn {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(10, 12, 15, 0.8);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}

.modal-close-inline {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}

.detail-banner {
  min-height: 210px;
  background-color: var(--bg-elevated);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.detail-book-banner {
  filter: none;
}
.detail-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(18px) brightness(0.55);
  -webkit-backdrop-filter: blur(18px) brightness(0.55);
}
.detail-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 15, 0.2) 0%, var(--bg-surface) 100%);
}

.detail-content {
  padding: 0 1.6rem 1.8rem;
  margin-top: -96px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
}

.detail-poster {
  width: 180px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 2 / 3;
  object-fit: cover;
}
.detail-title {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  line-height: 1.15;
}
.detail-meta-line { font-size: 0.86rem; color: var(--text-secondary); margin-bottom: 0.85rem; }
.detail-badges-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.detail-overview { font-size: 0.94rem; color: var(--text-primary); margin: 0 0 1rem; line-height: 1.65; }

.detail-first-line {
  margin: 0 0 1.1rem;
  padding: 0.85rem 1.05rem;
  background: var(--bg-elevated);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--text-primary);
}
.detail-first-line .eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  margin-bottom: 0.25rem;
}

.detail-credits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.8rem;
  padding: 0.95rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1.15rem;
  font-size: 0.84rem;
}
.detail-credits strong {
  display: block;
  color: var(--accent);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.15rem;
}
.detail-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }

/* Reading Room Stage */
.reader-topbar {
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--bg-elevated);
}
.reader-topbar h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.04rem;
}
.reader-topbar-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

.reader-stage {
  overflow-y: auto;
  max-height: 76vh;
  background: radial-gradient(ellipse at top, var(--accent-soft), transparent 55%), var(--bg-page);
}
.reader-paper {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.75rem 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.reader-folio-head {
  text-align: center;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
}
.reader-book-title {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 600;
}
.reader-section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.reader-lead-quote {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.32rem;
  line-height: 1.62;
  color: var(--text-primary);
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.reader-excerpt-block {
  margin: 0;
  padding: 1rem 1.2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.reader-excerpt-block blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.68;
  color: var(--text-primary);
}
.reader-excerpt-block figcaption {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.reader-prose {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.14rem;
  line-height: 1.72;
  color: rgba(242, 239, 233, 0.9);
}
.reader-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.reader-footer-cta {
  padding-top: 0.6rem;
  display: flex;
  justify-content: center;
}

/* ---------- Settings Drawer ---------- */
.drawer-backdrop { display: flex; justify-content: flex-end; padding: 0; }
.settings-panel {
  width: min(390px, 100%);
  height: 100%;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  animation: slideLeft 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes slideLeft {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.drawer-header {
  padding: 1.25rem 1.4rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-header h2 { margin: 0; font-family: var(--font-display); font-size: 1.35rem; }
.drawer-content { padding: 1.4rem; display: flex; flex-direction: column; gap: 1.6rem; }
.settings-group h3 {
  margin: 0 0 0.7rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-secondary);
}

.swatch-grid, .accent-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}
.swatch-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.78rem;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.84rem;
  cursor: pointer;
  text-align: left;
}
.swatch-btn.active { border-color: var(--accent); background: var(--accent-soft); }
.swatch-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}
.settings-btn-row { display: flex; gap: 0.55rem; margin-top: 0.65rem; }

/* ---------- Auth Modal ---------- */
.auth-crest { color: var(--accent); margin-bottom: 0.8rem; }
.auth-header h2 { margin: 0.15rem 0 0.35rem; font-family: var(--font-display); font-size: 1.45rem; }
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
  margin: 1.1rem 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
}
.auth-tab {
  background: transparent;
  border: none;
  padding: 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.auth-tab.active { background: var(--accent); color: var(--accent-contrast); font-weight: 600; }
.auth-error { margin: 0; color: #ef6d6a; font-size: 0.82rem; }
.signed-in-panel {
  margin-top: 1.1rem;
  padding: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.signed-in-name { font-family: var(--font-display); font-size: 1.15rem; }

/* ---------- Empty State & Toast ---------- */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.2rem;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--bg-elevated);
  border: 1px solid var(--accent-border);
  color: var(--text-primary);
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-size: 0.84rem;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  max-width: 92vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Tablet & Phone First-Class Responsive ---------- */
@media (max-width: 1120px) {
  .filter-bar-shell { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-popover:nth-child(5n) .filter-panel,
  .filter-popover:nth-child(5n-1) .filter-panel { left: 0; right: auto; }
  .filter-popover:nth-child(3n) .filter-panel { left: auto; right: 0; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-dock { display: grid; }
  .brand-subtitle { display: none; }
  .brand-title { font-size: 0.86rem; letter-spacing: 0.12em; }
  .header-inner { padding: 0.62rem 1rem; }

  .main-shell {
    padding: 1rem 1rem calc(6.5rem + env(safe-area-inset-bottom, 0px));
  }

  .filter-bar-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .filter-trigger {
    min-height: 70px;
    padding: 0.82rem 0.85rem;
    gap: 0.65rem;
    border-radius: 14px;
  }

  .ft-icon { width: 38px; height: 38px; border-radius: 10px; }
  .ft-name { font-size: 0.72rem; letter-spacing: 0.1em; }
  .ft-value { font-size: 0.94rem; }

  /* Smooth Slide-Up Mobile Bottom Sheet for Filters */
  .filter-panel, .filter-panel-wide {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0 !important;
    right: 0 !important;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    border-radius: 22px 22px 0 0;
    padding: 0.75rem 1.15rem calc(1.35rem + env(safe-area-inset-bottom, 0px));
    max-height: 82vh;
    overflow-y: auto;
    z-index: 120;
    animation: sheetSlideUp 260ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  @keyframes sheetSlideUp {
    from { transform: translateY(100%); opacity: 0.8; }
    to { transform: translateY(0); opacity: 1; }
  }

  .sheet-handle {
    display: block;
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: var(--border-strong);
    margin: 0 auto 0.6rem;
  }
  .sheet-close-btn { display: grid; place-items: center; }

  .chip {
    min-height: 42px;
    padding: 0.55rem 0.95rem;
    font-size: 0.9rem;
  }

  .tag-removable {
    min-height: 40px;
    padding: 0.48rem 0.88rem;
    font-size: 0.88rem;
  }

  .logic-btn {
    padding: 0.38rem 0.82rem;
    font-size: 0.78rem;
  }

  .sorter-shell { width: 100%; }
  .sorter-quick-pills { width: 100%; justify-content: space-between; }
  .sort-pill { flex: 1; text-align: center; padding: 0.48rem 0.5rem; }
  .sorter-shell select { width: 100%; min-height: 44px; font-size: 0.88rem; }

  .concierge-actions { width: 100%; }
  .concierge-actions button { flex: 1; min-height: 44px; }

  .hero-spotlight, .hero-slide { min-height: 440px; }
  .hero-slide { padding: 1.5rem 1.2rem 4.3rem; align-items: flex-end; }
  .hero-layout { grid-template-columns: 1fr; gap: 1.1rem; }
  .hero-book-jacket { width: 112px; }
  .hero-controls { left: 1.2rem; right: 1.2rem; justify-content: space-between; bottom: 1rem; }

  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
  .collection-row { grid-auto-columns: 44vw; gap: 0.8rem; }

  .detail-content { grid-template-columns: 1fr; margin-top: -64px; padding: 0 1.2rem 1.6rem; }
  .detail-poster { width: 132px; }

  .reader-paper { padding: 1.4rem 1.15rem 1.8rem; }
  .toast { bottom: calc(5.4rem + env(safe-area-inset-bottom, 0px)); }
}
