/* ===== Landing (/) — the front door ===== */
.lp-hero { position: relative; min-height: min(100vh, 900px); display: flex; align-items: center; justify-content: center; overflow: hidden; text-align: center; background: var(--ink); }
.lp-wall { position: absolute; inset: -12% -8%; display: grid; grid-template-columns: repeat(9, 1fr); gap: 12px; transform: rotate(-8deg) scale(1.15); opacity: .55; animation: lp-drift 60s linear infinite alternate; }
.lp-wall img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; }
@keyframes lp-drift { from { transform: rotate(-8deg) scale(1.15) translateY(0); } to { transform: rotate(-8deg) scale(1.15) translateY(-8%); } }
.lp-hero::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(ellipse at center, rgba(14,11,13,.55) 0%, rgba(14,11,13,.88) 62%, var(--ink) 100%),
  linear-gradient(to bottom, rgba(14,11,13,.9) 0%, transparent 25%, transparent 70%, var(--ink) 100%); }
.lp-hero-body { position: relative; z-index: 1; display: grid; gap: 14px; justify-items: center; max-width: 860px; padding-block: calc(110px + env(safe-area-inset-top, 0px)) 80px; }
.lp-hero h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); line-height: 1.04; }
.lp-sub { margin: 4px 0 0; font-size: clamp(1.1rem, 2.2vw, 1.45rem); font-weight: 500; }
.lp-small { margin: 0; color: var(--ivory-dim); font-size: 1.02rem; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.lp-cta .btn { padding: 15px 28px; font-size: 1.08rem; }
.lp-go { background: var(--gold); color: #1a1208; }
.lp-go:hover { background: #e8bb6f; }

.lp-sec { padding-block: 34px; display: grid; gap: 18px; max-width: 1240px; margin: 0 auto; }
.lp-sec h2 { font-family: var(--sans); font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; }

/* Top 10 — big outlined numbers tucked behind each cover */
.lp-top { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(170px, 19vw, 240px); gap: 8px; overflow-x: auto; padding: 6px 0 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.lp-rank { position: relative; display: flex; align-items: flex-end; text-decoration: none; scroll-snap-align: start; }
.lp-num { flex: none; width: 44%; margin-right: -8%; font: 700 clamp(5.5rem, 10vw, 9rem)/.78 var(--serif); color: var(--ink); -webkit-text-stroke: 3px rgba(217,167,90,.8); text-align: right; letter-spacing: -.06em; z-index: 0; user-select: none; }
.lp-rank .cover { width: 64%; flex: none; z-index: 1; transition: transform .3s; }
.lp-rank:hover .cover { transform: scale(1.05); }
.lp-rank .cover-title { font-size: .9rem; }
.lp-rank .cover-kala, .lp-rank .cover-seal { display: none; }

.lp-reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.lp-reasons > div { border-radius: 14px; padding: 22px 22px 26px; background: linear-gradient(150deg, #241a2e 0%, #17121a 100%); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.lp-reasons h3 { font-size: 1.5rem; }
.lp-reasons p { margin: 0; color: var(--ivory-dim); font-size: .95rem; }

.lp-faq { display: grid; gap: 8px; max-width: 980px; }
.lp-faq details { background: var(--ink-3); border-radius: 4px; }
.lp-faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-size: clamp(1.02rem, 1.8vw, 1.25rem); position: relative; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.8rem; font-weight: 300; transition: transform .25s; }
.lp-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.lp-faq details p { margin: 0; padding: 0 22px 22px; color: var(--ivory-dim); border-top: 1px solid var(--ink); padding-top: 18px; }
.lp-end { justify-items: center; text-align: center; padding-bottom: 64px; }

@media (max-width: 640px) {
  .lp-wall { grid-template-columns: repeat(5, 1fr); }
  .lp-hero { min-height: 92vh; }
  .lp-top { grid-auto-columns: 46vw; }
}
@media (prefers-reduced-motion: reduce) { .lp-wall { animation: none; } }

/* Genre tiles (Netflix "Popular genres") */
.gt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); gap: 12px; }
.gt { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; text-decoration: none; background: var(--hue); isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; padding: 12px 14px; }
.gt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 25%; mix-blend-mode: luminosity; opacity: .7; z-index: -2; transition: transform .5s; }
.gt::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, var(--hue) 0%, color-mix(in srgb, var(--hue) 70%, transparent) 45%, color-mix(in srgb, var(--hue) 25%, transparent) 100%); }
.gt:hover img { transform: scale(1.06); }
.gt-name { font: 700 clamp(1.05rem, 1.9vw, 1.55rem)/1.05 var(--sans); color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.gt-kala { font: italic 500 clamp(.82rem, 1.1vw, .98rem) var(--serif); color: #f0cf8e; margin-top: 3px; }
.gt-kala.big { font-size: 1.35rem; margin: 0; }
.gt.soon { filter: saturate(.55); }
.gt-soon { position: absolute; top: 10px; right: 10px; font: 600 .62rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.8); background: rgba(0,0,0,.3); padding: 3px 7px; border-radius: 3px; }

/* Formats + moods */
.lp-formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; }
.lp-formats > div { border: 1px solid var(--line); border-radius: 10px; padding: 18px; display: grid; gap: 6px; align-content: start; background: var(--ink-2); }
.lp-formats > div.live { border-color: rgba(217,167,90,.6); background: linear-gradient(140deg, rgba(217,167,90,.16), transparent 60%), var(--ink-2); }
.lp-formats h3 { font-size: 1.6rem; }
.lp-formats p { margin: 0; color: var(--ivory-dim); font-size: .9rem; }
.lp-formats .chip { color: var(--ivory-faint); font-size: .62rem; }
.lp-formats .live .chip { color: var(--gold); }
.lp-h2-note { font-weight: 400; font-size: .85rem; color: var(--ivory-faint); margin-left: 8px; }
.lp-moods { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-moods span { display: grid; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--ink-2); line-height: 1.2; }
.lp-moods b { font: 600 1rem var(--sans); }
.lp-moods i { font: italic 500 .9rem var(--serif); color: var(--gold); }

/* Genre page */
.genre-head { position: relative; min-height: 42vh; display: flex; align-items: flex-end; background: var(--hue); overflow: hidden; isolation: isolate; }
.genre-head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: .55; z-index: -2; }
.genre-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--ink) 0%, color-mix(in srgb, var(--hue) 60%, transparent) 60%); }
.genre-head .wrap { padding-block: calc(90px + env(safe-area-inset-top, 0px)) 28px; display: grid; gap: 6px; width: 100%; }
.genre-head .chip a { color: var(--gold); text-decoration: none; }
.genre-head h1 { font-size: clamp(2.8rem, 8vw, 5rem); }
.genre-body { padding-block: 24px 64px; max-width: 1240px; margin: 0 auto; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(44%, 170px), 1fr)); gap: 20px 14px; }

/* Quiet loader: a thin gold line breathing in the middle of the page */
.loading { min-height: 70vh; display: grid; place-items: center; padding: 0; }
.loading span { width: 64px; height: 2px; background: var(--gold); border-radius: 2px; animation: ld 1.1s ease-in-out infinite; }
@keyframes ld { 0%, 100% { transform: scaleX(.2); opacity: .4; } 50% { transform: scaleX(1); opacity: 1; } }
