/* =========================================================================
   KOREAURA MILLIE-STYLE BOOKSTORE & BOOK DETAIL SYSTEM
   Faithful to millie.co.kr desktop proportions + Section 2 Park Hero Banner
   ========================================================================= */

body.page-books,
body.page-book-detail {
  background: #FFFFFF;
  color: #242424;
}

.ml-container,
.bk-container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 36px);
}

.ml-main {
  padding: clamp(76px, 7vw, 108px) 0 96px;
}

body.page-book-detail .bk-main {
  padding: 96px 0 88px;
}

/* -------------------------------------------------------------------------
   1. TOP BANNER CAROUSEL — SLIDE 1 AHN JUNG-GEUN (BRUSH) / SLIDE 2 PARK (B&W)
   ------------------------------------------------------------------------- */
.ml-hero-stage {
  position: relative;
  width: 100%;
  height: clamp(470px, 39vw, 560px);
  overflow: hidden;
  border-bottom: 1px solid #EFEFEF;
  background: #F8F9FB;
  cursor: pointer;
}

.ml-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease;
}

.ml-hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

/* Slide 1: Ahn Jung-geun Pure Snow-White Photography Studio + Crimson Brush Calligraphy */
.ml-hero-ahn {
  background:
    radial-gradient(ellipse 62% 68% at 50% 34%, #FFFFFF 0%, #FCFDFF 58%, #EFF2F6 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Overhead Studio Softbox Key Light */
.ml-hero-ahn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 52% 40% at 50% 0%, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 74%),
    radial-gradient(ellipse 76% 32% at 50% 100%, rgba(194, 202, 214, 0.22) 0%, rgba(255, 255, 255, 0) 76%);
}

/* Subtle Cyclorama Floor Depth Shadow */
.ml-hero-ahn::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -24px;
  transform: translateX(-50%);
  width: min(620px, 76%);
  height: 86px;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.14) 0%, rgba(15, 23, 42, 0.04) 50%, rgba(15, 23, 42, 0) 76%);
  filter: blur(10px);
}

.ml-ha-masthead {
  position: absolute;
  top: clamp(28px, 3.4vw, 48px);
  left: 0;
  right: 0;
  z-index: 2;
  text-align: center;
  font-family: 'Dokdo', "Pretendard Variable", sans-serif;
  font-size: clamp(164px, 22vw, 304px);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.02em;
  color: #B81F25;
  user-select: none;
  pointer-events: none;
}

.ml-ha-portrait {
  position: relative;
  z-index: 4;
  height: 82%;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  margin-bottom: -6px;
  filter: saturate(0.14) contrast(1.12) brightness(0.97) drop-shadow(0 18px 34px rgba(15, 23, 42, 0.15));
  pointer-events: none;
}

.ml-ha-caption {
  position: absolute;
  left: clamp(24px, 4vw, 48px);
  bottom: 24px;
  z-index: 6;
  text-align: left;
  pointer-events: none;
}

.ml-ha-sub {
  display: inline-block;
  font-size: 13px;
  font-weight: 540;
  letter-spacing: 0.14em;
  color: #59606B;
}

/* Slide 2: Park Chung-hee Archival Black & White Banner */
.ml-hero-park {
  background: #EAECEF;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.ml-hp-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ml-hp-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% bottom;
  display: block;
  transform: translate3d(0, 10%, 0) scale(1.02);
  transform-origin: center bottom;
  filter: grayscale(100%) contrast(1.08) brightness(1.01);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.65) 10%, #000 20%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.65) 10%, #000 20%);
}

.ml-hp-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 68% 44% at 50% 18%, rgba(247, 248, 250, 0.52) 0%, rgba(242, 244, 247, 0.16) 52%, rgba(242, 244, 247, 0) 80%),
    linear-gradient(180deg, rgba(234, 236, 239, 0.44) 0%, rgba(234, 236, 239, 0.08) 38%, rgba(234, 236, 239, 0) 58%);
}

.ml-hp-copy {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1080px;
  padding: clamp(72px, 7.6vh, 84px) clamp(20px, 4vw, 48px) 0;
  text-align: center;
}

.ml-hp-title {
  margin: 0;
  font-size: clamp(26px, 2.9vw, 44px);
  font-weight: 620;
  line-height: 1.18;
  letter-spacing: -0.04em;
  color: #11161E;
  word-break: keep-all;
}

.ml-hp-sub {
  margin: 10px 0 0;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #465463;
}

/* -------------------------------------------------------------------------
   2. SHARED MILLIE SECTION HEADERS & REAL BOOK COVER THUMBNAIL
   ------------------------------------------------------------------------- */
.ml-sec {
  position: relative;
  margin-bottom: 76px;
}

.ml-sec:last-child {
  margin-bottom: 0;
}

.ml-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.ml-sec-head--lead {
  margin-bottom: 26px;
}

/* Commanding Editorial Section Titles With Word-by-Word Illumination Reveal */
.ml-clause {
  display: inline-block;
  white-space: nowrap;
  margin-right: 0.24em;
}

.ml-clause:last-child {
  margin-right: 0;
}

.ml-lead-title {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, sans-serif;
  font-size: clamp(22px, 2.35vw, 33px);
  font-weight: 660;
  line-height: 1.34;
  letter-spacing: -0.04em;
  color: #16181D;
  word-break: keep-all;
  text-wrap: balance;
}

.ml-lead-title--sub {
  font-size: clamp(22px, 2vw, 28px);
}

.ml-word {
  display: inline-block;
  margin-right: 0.24em;
  background-image: linear-gradient(115deg, #14171D 0%, #3A404B 42%, #767E8C 78%, #1A1D24 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.12;
  transform: translateY(14px);
  filter: blur(4px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    background-position 0.85s ease;
}

.ml-word:last-child {
  margin-right: 0;
}

.ml-lead-title.is-in .ml-word {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.ml-lead-title:hover .ml-word {
  background-position: 100% 50%;
}

.ml-sec-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: #242424;
}

.ml-sec-sub {
  margin: 4px 0 0;
  font-size: 13.5px;
  font-weight: 440;
  color: #767676;
  letter-spacing: -0.015em;
}

.ml-more-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 22px;
  line-height: 1;
  color: #242424;
  border-radius: 50%;
  transition: background-color 0.15s ease;
}

.ml-more-btn:hover {
  background: #F4F4F5;
}

.ml-text-more {
  font-size: 13.5px;
  font-weight: 560;
  color: #555555;
  text-decoration: none;
  white-space: nowrap;
}

.ml-text-more:hover {
  color: #242424;
}

.ml-cover-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #F7F8FA;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  flex-shrink: 0;
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.ml-cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* PC Gallery Spotlight (Featured Shelf Only, >900px): Fade Siblings Out & Reveal Monumental Quote Beside Hovered Book */
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  .ml-shelf-item {
    position: relative;
    transition:
      opacity 0.36s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
      filter 0.36s ease;
  }

  .ml-shelf-row.is-spotlighting .ml-shelf-item:not(.is-spotlit) {
    opacity: 0.05;
    filter: blur(4px);
    transform: scale(0.96);
  }

  .ml-shelf-row.is-spotlighting .ml-shelf-item.is-spotlit {
    z-index: 30;
    opacity: 1;
    filter: none;
    transform: translateY(-4px) scale(1.06);
  }

  .ml-shelf-row.is-spotlighting .ml-shelf-item.is-spotlit .ml-cover-frame {
    box-shadow:
      0 24px 44px -16px rgba(15, 23, 42, 0.28),
      0 6px 14px -4px rgba(15, 23, 42, 0.1);
  }

  /* Keep All-Books Catalog Grid Calm & Clean */
  .ml-catalog-card:hover .ml-cover-frame {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -10px rgba(15, 23, 42, 0.16);
  }
}

.ml-side-spotlight {
  position: absolute;
  z-index: 26;
  pointer-events: none;
  text-align: left;
  opacity: 0;
  transform: translate3d(0, -50%, 0);
  transition: opacity 0.24s ease;
}

.ml-side-spotlight.is-left {
  text-align: right;
}

.ml-side-spotlight.is-visible {
  opacity: 1;
}

.ml-sp-quote {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, sans-serif;
  font-size: clamp(28px, 2.75vw, 42px);
  font-weight: 680;
  line-height: 1.32;
  letter-spacing: -0.046em;
  word-break: keep-all;
  text-wrap: balance;
}

.ml-sp-word {
  display: inline-block;
  margin-right: 0.22em;
  background-image: linear-gradient(
    115deg,
    #0E1218 0%,
    #2C3340 34%,
    #8690A2 56%,
    #1B202A 100%
  );
  background-size: 240% 100%;
  background-position: 100% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translate3d(-10px, 16px, 0) scale(0.96);
  filter: blur(8px);
  transition:
    opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.58s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.52s cubic-bezier(0.22, 1, 0.36, 1),
    background-position 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.ml-side-spotlight.is-left .ml-sp-word {
  transform: translate3d(10px, 16px, 0) scale(0.96);
}

.ml-sp-word:last-child {
  margin-right: 0;
}

.ml-side-spotlight.is-visible .ml-sp-word {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
  background-position: 0% 50%;
}

@media (hover: none), (max-width: 900px) {
  .ml-side-spotlight {
    display: none;
  }
}

/* -------------------------------------------------------------------------
   3. SECTION 1: MILLIE HORIZONTAL BOOK SHELF (145px covers, 14px gap)
   ------------------------------------------------------------------------- */
.ml-shelf-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  overflow-x: auto;
  padding: 14px 6px 18px;
  scrollbar-width: none;
}

.ml-shelf-row::-webkit-scrollbar {
  display: none;
}

.ml-shelf-item {
  flex: 0 0 148px;
  width: 148px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.ml-shelf-item .ml-cover-frame {
  width: 148px;
  height: 210px;
}

.ml-shelf-plus {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(24, 24, 26, 0.72);
  color: #FFFFFF;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.ml-shelf-item:hover .ml-shelf-plus {
  opacity: 1;
}

.ml-book-title {
  margin: 8px 0 0;
  display: block;
  font-size: 13px;
  font-weight: 590;
  line-height: 1.32;
  letter-spacing: -0.025em;
  color: #1F2329;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ml-book-author {
  margin: 2px 0 0;
  display: block;
  font-size: 11.5px;
  font-weight: 430;
  letter-spacing: -0.015em;
  color: #8B929D;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------------------
   4. SECTION 2: MILLIE 4-COLUMN CURATED ROW ("꼬레아우라가 주목한 책")
   ------------------------------------------------------------------------- */
.ml-curated-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.ml-curated-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.ml-theme-card {
  position: relative;
  height: 108px;
  border-radius: 12px;
  overflow: hidden;
  padding: 18px 18px;
  display: flex;
  align-items: flex-end;
  background: #24272D;
}

.ml-theme-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(35%);
}

.ml-theme-card-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ml-theme-card-title {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  white-space: pre-line;
  word-break: keep-all;
}

.ml-mini-book {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.ml-mini-book .ml-cover-frame {
  width: 60px;
  height: 85px;
  border-radius: 4px;
}

.ml-mini-book:hover .ml-cover-frame img {
  transform: scale(1.04);
}

.ml-mini-info {
  flex: 1 1 auto;
  min-width: 0;
}

.ml-mini-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.36;
  letter-spacing: -0.02em;
  color: #242424;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
}

.ml-mini-author {
  margin-top: 3px;
  font-size: 12px;
  color: #8B8B8B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ml-pill-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #DFDFDF;
  background: #FFFFFF;
  font-size: 12px;
  font-weight: 560;
  color: #333333;
  white-space: nowrap;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ml-mini-book:hover .ml-pill-btn {
  border-color: #242424;
  background: #F7F7F8;
}

.ml-sec-count {
  font-size: 13.5px;
  font-weight: 500;
  color: #8B8B8B;
  font-variant-numeric: tabular-nums;
}

.ml-catalog-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 20px;
}

.ml-catalog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.ml-catalog-card .ml-book-title {
  margin-top: 9px;
  font-size: 13.5px;
  font-weight: 600;
}

.ml-catalog-card .ml-book-author {
  margin-top: 3px;
  font-size: 12px;
}

.ml-catalog-card .ml-cover-frame {
  width: 100%;
  aspect-ratio: 1 / 1.42;
  border-radius: 8px;
}

.ml-catalog-price {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 640;
  color: #242424;
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------------------
   5. SECTION 3: MILLIE RANKING SHELF ("꼬레아우라 랭킹 | 도서 베스트")
   ------------------------------------------------------------------------- */
.ml-rank-titles {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.ml-rank-muted {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #A5A5A5;
}

.ml-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ml-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Tactile 3D Sculpted White Keycap Chips (Zero Flat Color Fills) */
.ml-chip {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);
  color: #6B7280;
  padding: 8px 16px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 520;
  letter-spacing: -0.02em;
  cursor: pointer;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(15, 23, 42, 0.04);
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s ease, border-color 0.16s ease, color 0.16s ease;
}

.ml-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 23, 42, 0.14);
  color: #1D2129;
  box-shadow:
    0 5px 12px -3px rgba(15, 23, 42, 0.1),
    0 2px 4px -1px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 #FFFFFF,
    inset 0 -1.5px 0 rgba(15, 23, 42, 0.05);
}

.ml-chip.is-active {
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F6F9 100%);
  border-color: rgba(15, 23, 42, 0.18);
  color: #11141A;
  font-weight: 660;
  transform: translateY(-1px);
  box-shadow:
    0 7px 16px -4px rgba(15, 23, 42, 0.14),
    0 2px 5px -1px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 #FFFFFF,
    inset 0 -2px 0 rgba(15, 23, 42, 0.07);
}

.ml-chip:active {
  transform: translateY(0.5px);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.08),
    inset 0 1px 2px rgba(15, 23, 42, 0.07);
}

/* Sleek Minimal Expanding Underline Search (Zero Clunky Gray Pill) */
.ml-search {
  position: relative;
  width: 210px;
  max-width: 100%;
  transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.ml-search:focus-within {
  width: 268px;
}

.ml-search input {
  width: 100%;
  height: 36px;
  padding: 0 6px 2px 26px;
  border: 0;
  border-bottom: 1.5px solid #E3E6EB;
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 460;
  letter-spacing: -0.015em;
  color: #181B22;
  transition: border-color 0.2s ease;
}

.ml-search input::placeholder {
  color: #9AA0AB;
}

.ml-search input:focus {
  outline: none;
  border-bottom-color: #181B22;
}

.ml-search svg {
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-54%);
  width: 15px;
  height: 15px;
  color: #9AA0AB;
  pointer-events: none;
  transition: color 0.2s ease;
}

.ml-search:focus-within svg {
  color: #181B22;
}

.ml-rank-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 18px;
  font-size: 12.5px;
  color: #767676;
  font-variant-numeric: tabular-nums;
}

/* Millie Vertical-First Multi-Column Numbered Ranking Grid */
.ml-ranking-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 24px;
}

.ml-ranking-grid.is-vertical {
  grid-auto-flow: column;
  grid-template-rows: repeat(3, auto);
  grid-template-columns: none;
  grid-auto-columns: minmax(0, 1fr);
}

.ml-rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  padding: 6px 4px;
  border-radius: 8px;
  transition: background-color 0.15s ease;
  min-width: 0;
}

.ml-rank-item:hover {
  background: #F8F8FA;
}

.ml-rank-num-col {
  width: 26px;
  flex-shrink: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.ml-rank-num {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: #242424;
  font-variant-numeric: tabular-nums;
}

.ml-rank-delta {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #D9483B;
  white-space: nowrap;
}

.ml-rank-item .ml-cover-frame {
  width: 82px;
  height: 116px;
  border-radius: 4px;
}

.ml-rank-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ml-rank-title {
  font-size: 14.5px;
  font-weight: 640;
  line-height: 1.38;
  letter-spacing: -0.025em;
  color: #242424;
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ml-rank-author {
  font-size: 12.5px;
  color: #8B8B8B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ml-tag-row {
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ml-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.015em;
  background: #F2F2F5;
  color: #5E5E66;
}

.ml-badge--blue {
  background: #EEF2FF;
  color: #4661B5;
}

.ml-badge--warm {
  background: #FFF3E0;
  color: #A86420;
}

.ml-badge--yellow {
  background: #FFEB60;
  color: #242424;
}

.ml-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 16px;
  color: #8B8B8B;
  font-size: 14.5px;
}

/* -------------------------------------------------------------------------
   6. SECTION 4: MILLIE NEW ARRIVALS SPOTLIGHT + COMPACT SHELF
   ------------------------------------------------------------------------- */
.ml-new-wrap {
  display: grid;
  grid-template-columns: 356px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.ml-new-spotlight {
  background: #F8F6EE;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.ml-new-spotlight .ml-cover-frame {
  width: 102px;
  height: 145px;
  border-radius: 5px;
}

.ml-new-spot-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ml-new-spot-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.025em;
  color: #242424;
  word-break: keep-all;
}

.ml-new-spot-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.56;
  color: #5E5D58;
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ml-new-spot-actions {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ml-btn-sm-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 6px;
  background: #242424;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
}

.ml-btn-sm-dark:hover {
  background: #3B3B3F;
}

.ml-new-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 6px;
}

.ml-new-item {
  flex: 0 0 128px;
  width: 128px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.ml-new-item .ml-cover-frame {
  width: 128px;
  height: 182px;
}

.ml-new-item:hover .ml-cover-frame img {
  transform: scale(1.03);
}

/* -------------------------------------------------------------------------
   7. CINEMA-FIRST EDITORIAL BOOK DETAIL PAGE (book.html)
      Act 1: Monumental Quote First -> Act 2: Pure Book Cover -> Act 3: Intro
   ------------------------------------------------------------------------- */
.bd-shell {
  max-width: 980px;
  margin: 0 auto;
}

.bd-back-nav {
  margin-bottom: 12px;
}

.bd-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: #8A909B;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.2s ease;
}

.bd-back-link:hover {
  color: #181B22;
  transform: translateX(-3px);
}

/* Act 1: Monumental Quote Opening (Cool Architectural Silver-Ink Gradient — Zero Beige) */
.bd-opening {
  padding: clamp(56px, 8.5vh, 96px) 12px clamp(64px, 9.5vh, 104px);
  text-align: center;
  border-bottom: 1px solid #EEF0F3;
}

.bd-opening-quote {
  margin: 0 auto;
  max-width: 820px;
  font-family: "Pretendard Variable", Pretendard, sans-serif;
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 630;
  line-height: 1.4;
  letter-spacing: -0.044em;
  word-break: keep-all;
  text-wrap: balance;
}

.bd-word {
  display: inline-block;
  margin-right: 0.24em;
  background-image: linear-gradient(
    115deg,
    #12151B 0%,
    #383F4B 38%,
    #7B8494 66%,
    #1B1F27 100%
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.12;
  transform: translateY(16px);
  filter: blur(4px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    background-position 0.9s ease;
}

.bd-word:last-child {
  margin-right: 0;
}

.bd-opening.is-in .bd-word {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.bd-opening:hover .bd-word {
  background-position: 100% 50%;
}

.bd-opening-by {
  margin: 22px 0 0;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #838A96;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.65s ease 0.45s, transform 0.65s ease 0.45s;
}

.bd-opening.is-in .bd-opening-by {
  opacity: 1;
  transform: translateY(0);
}

/* Act 2: Pure, Simple Book Showcase Below Quote */
.bd-showcase {
  padding: 72px 0;
  border-bottom: 1px solid #EEF0F3;
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  gap: clamp(36px, 5.5vw, 72px);
  align-items: center;
}

.bd-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.bd-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.bd-cover-only {
  width: 100%;
  aspect-ratio: 1 / 1.42;
  border-radius: 8px;
  overflow: hidden;
  background: #F4F5F7;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.bd-cover-only:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.bd-cover-only img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bd-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.bd-meta-line {
  font-size: 13px;
  font-weight: 520;
  letter-spacing: -0.01em;
  color: #848B96;
}

.bd-title {
  margin: 12px 0 0;
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 660;
  line-height: 1.28;
  letter-spacing: -0.04em;
  color: #16181D;
  word-break: keep-all;
}

.bd-subtitle {
  margin: 12px 0 0;
  font-size: 16px;
  font-weight: 430;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: #5A606B;
  word-break: keep-all;
}

.bd-inline-meta {
  margin: 22px 0 0;
  font-size: 14px;
  font-weight: 520;
  color: #777E89;
  font-variant-numeric: tabular-nums;
}

.bd-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Tactile 3D Sculpted White Buttons (Layered Elevation Shadow + Specular Top Rim) */
.bk-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: linear-gradient(180deg, #FFFFFF 0%, #F3F5F8 100%);
  color: #12151B;
  text-decoration: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 640;
  letter-spacing: -0.02em;
  cursor: pointer;
  box-shadow:
    0 7px 16px -4px rgba(15, 23, 42, 0.14),
    0 2px 5px -1px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 #FFFFFF,
    inset 0 -2px 0 rgba(15, 23, 42, 0.08);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, border-color 0.18s ease;
}

.bk-btn-primary:hover {
  transform: translateY(-1.5px);
  border-color: rgba(15, 23, 42, 0.24);
  box-shadow:
    0 11px 22px -6px rgba(15, 23, 42, 0.18),
    0 3px 7px -1px rgba(15, 23, 42, 0.09),
    inset 0 1px 0 #FFFFFF,
    inset 0 -2px 0 rgba(15, 23, 42, 0.09);
}

.bk-btn-primary:active {
  transform: translateY(0.5px);
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.1),
    inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.bk-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFD 100%);
  color: #4B525E;
  text-decoration: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 540;
  letter-spacing: -0.02em;
  cursor: pointer;
  box-shadow:
    0 2px 6px -1px rgba(15, 23, 42, 0.07),
    0 1px 2px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 #FFFFFF,
    inset 0 -1px 0 rgba(15, 23, 42, 0.04);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, border-color 0.18s ease, color 0.18s ease;
}

.bk-btn-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 23, 42, 0.16);
  color: #16191F;
  box-shadow:
    0 6px 14px -4px rgba(15, 23, 42, 0.12),
    0 2px 4px -1px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 #FFFFFF,
    inset 0 -1.5px 0 rgba(15, 23, 42, 0.06);
}

.bk-btn-secondary:active {
  transform: translateY(0.5px);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.07),
    inset 0 1px 2px rgba(15, 23, 42, 0.06);
}

/* Act 3: Editorial 2-Column Content Rows (Label Left, Clean Content Right) */
.bd-rows {
  margin-top: 68px;
  display: flex;
  flex-direction: column;
  gap: 68px;
}

.bd-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.bd-row-label {
  margin: 4px 0 0;
  font-size: 14.5px;
  font-weight: 620;
  letter-spacing: -0.02em;
  color: #838A96;
}

.bd-row-body {
  min-width: 0;
}

.bd-summary {
  margin: 0;
  font-size: 16px;
  line-height: 1.88;
  letter-spacing: -0.018em;
  color: #2B303A;
  word-break: keep-all;
}

/* Full-Bleed Cinema Archival Photo Plate With Overlaid Editorial Caption */
.bd-archive-plate {
  position: relative;
  margin: 34px 0 0;
  border-radius: 12px;
  overflow: hidden;
  background: #14171D;
}

.bd-archive-plate::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(12, 15, 22, 0) 46%,
    rgba(12, 15, 22, 0.56) 78%,
    rgba(10, 13, 19, 0.86) 100%
  );
}

.bd-archive-plate img {
  width: 100%;
  height: clamp(320px, 34vw, 440px);
  object-fit: cover;
  display: block;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.bd-archive-plate:hover img {
  transform: scale(1.03);
}

.bd-archive-plate figcaption {
  position: absolute;
  left: clamp(20px, 2.8vw, 32px);
  right: clamp(20px, 2.8vw, 32px);
  bottom: clamp(18px, 2.4vw, 26px);
  z-index: 2;
  margin: 0;
  font-size: clamp(15.5px, 1.45vw, 19px);
  font-weight: 540;
  line-height: 1.4;
  letter-spacing: -0.028em;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
  word-break: keep-all;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.bd-archive-plate:hover figcaption {
  transform: translateY(-3px);
}

.bd-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #ECEEF2;
}

.bd-toc li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid #F2F4F7;
  font-size: 15px;
  transition: background-color 0.2s ease, padding-left 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.bd-toc li:hover {
  background: #F7F8FA;
  padding-left: 12px;
}

.bd-toc-left {
  display: flex;
  align-items: baseline;
  gap: 16px;
  min-width: 0;
}

.bd-toc-ch {
  font-size: 13px;
  font-weight: 600;
  color: #8A909B;
  min-width: 48px;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.bd-toc li:hover .bd-toc-ch {
  color: #1A1D24;
}

.bd-toc-title {
  color: #1D2129;
  font-weight: 500;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.bd-toc-page {
  font-size: 13px;
  color: #979DA8;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* Unboxed Impactful Pretendard Sentences (Cool Silver-Slate Gradient — Zero Beige) */
.bd-lines-list {
  display: flex;
  flex-direction: column;
}

.bd-line-item {
  margin: 0;
  padding: 24px 0;
  border-bottom: 1px solid #EEF0F3;
  font-family: "Pretendard Variable", Pretendard, sans-serif;
  font-size: clamp(18.5px, 1.85vw, 23px);
  font-weight: 580;
  line-height: 1.56;
  letter-spacing: -0.034em;
  background-image: linear-gradient(110deg, #16181D 0%, #434954 50%, #7C8492 100%);
  background-size: 180% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  word-break: keep-all;
  transition:
    opacity 0.28s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    background-position 0.65s ease;
}

.bd-line-item:first-child {
  padding-top: 0;
}

.bd-line-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.bd-lines-list:hover .bd-line-item {
  opacity: 0.42;
}

.bd-lines-list .bd-line-item:hover {
  opacity: 1;
  transform: translateX(8px);
  background-position: 100% 50%;
}

@media (prefers-reduced-motion: reduce) {
  .bd-word,
  .ml-word,
  .bd-opening-by,
  .bd-reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }
}

.bd-related {
  margin-top: 84px;
  padding-top: 48px;
  border-top: 1px solid #ECEEF2;
}

/* -------------------------------------------------------------------------
   8. PAPER EXCERPT READER MODAL
   ------------------------------------------------------------------------- */
.reader-modal[hidden] {
  display: none;
}

.reader-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.reader-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 20, 24, 0.56);
  backdrop-filter: blur(8px);
}

.reader-sheet {
  position: relative;
  z-index: 2;
  width: min(680px, 100%);
  max-height: min(82vh, 760px);
  background: #FAF9F5;
  border-radius: 12px;
  box-shadow: 0 32px 68px -20px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #1E1D1B;
}

.reader-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid #EAE8E0;
}

.reader-book-title {
  font-size: 14px;
  font-weight: 640;
  color: #242424;
}

.reader-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.reader-font-btn,
.reader-close {
  appearance: none;
  border: 1px solid #DDDAD0;
  background: #FFFFFF;
  color: #363532;
  height: 30px;
  min-width: 30px;
  padding: 0 9px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

.reader-font-btn.is-active {
  background: #242424;
  border-color: #242424;
  color: #FFFFFF;
}

.reader-close {
  border-color: transparent;
  background: transparent;
  font-size: 20px;
  color: #77756F;
}

.reader-body {
  padding: clamp(28px, 4vw, 44px) clamp(24px, 5vw, 52px);
  overflow-y: auto;
  font-family: "Pretendard Variable", Pretendard, sans-serif;
}

.reader-chapter {
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: 600;
  color: #242424;
}

.reader-paragraphs {
  font-size: 16.5px;
  line-height: 2;
  color: #2B2A27;
  word-break: keep-all;
}

.reader-paragraphs p {
  margin: 0 0 20px;
  text-indent: 0.7em;
}

.reader-foot {
  padding: 16px 24px;
  border-top: 1px solid #EAE8E0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: #77756F;
}

/* -------------------------------------------------------------------------
   9. RESPONSIVE
   ------------------------------------------------------------------------- */
@media (max-width: 1120px) {
  .ml-catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px 18px;
  }
  .ml-curated-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ml-ranking-grid,
  .ml-ranking-grid.is-vertical {
    grid-auto-flow: row;
    grid-template-rows: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ml-new-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .ml-catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px 14px;
  }
  .ml-hero-stage {
    height: clamp(380px, 54svh, 450px);
  }
  .ml-hp-copy {
    padding-top: 76px;
  }
  .bd-showcase {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 48px 0;
  }
  .bd-cover-only {
    max-width: 230px;
  }
  .bd-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .bd-opening {
    padding: 44px 8px 52px;
  }
}

@media (max-width: 640px) {
  .ml-main {
    padding: 46px 0 72px;
  }
  .ml-sec {
    margin-bottom: 52px;
  }
  .ml-sec-head--lead {
    margin-bottom: 18px;
  }
  .ml-lead-title {
    font-size: clamp(19px, 5.1vw, 23px);
    line-height: 1.38;
  }
  .ml-lead-title--sub {
    font-size: 19px;
  }
  .ml-ha-masthead {
    font-size: clamp(114px, 31vw, 154px);
    top: 56px;
    white-space: nowrap;
  }
  .ml-ha-portrait {
    height: 78%;
  }
  .ml-ha-caption {
    left: 0;
    right: 0;
    bottom: 14px;
    text-align: center;
  }
  .ml-ha-sub {
    font-size: 11px;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.86);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.48);
  }
  .ml-hp-title {
    font-size: clamp(22px, 6vw, 28px);
    line-height: 1.28;
  }
  .ml-shelf-row {
    gap: 12px;
  }
  .ml-shelf-item {
    flex: 0 0 132px;
    width: 132px;
  }
  .ml-shelf-item .ml-cover-frame {
    width: 132px;
    height: 188px;
  }
  .ml-shelf-item .ml-book-title {
    font-size: 12.5px;
  }
  .ml-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding: 2px 2px 6px;
    scrollbar-width: none;
  }
  .ml-chips::-webkit-scrollbar {
    display: none;
  }
  .ml-chip {
    flex-shrink: 0;
    padding: 7px 13px;
    font-size: 12.5px;
  }
  .ml-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 12px;
  }
  .ml-catalog-card .ml-book-title {
    margin-top: 8px;
    font-size: 13px;
  }
  .ml-catalog-card .ml-book-author {
    font-size: 11.5px;
  }
  .ml-curated-grid,
  .ml-ranking-grid,
  .ml-ranking-grid.is-vertical {
    grid-template-columns: 1fr;
  }
  .ml-search {
    width: 100%;
  }
  .ml-new-spotlight {
    flex-direction: column;
    align-items: flex-start;
  }
  .bd-cta-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 350px) {
  .ml-clause {
    white-space: normal;
  }
}
