:root {
  --ivory: #f8f4ea;
  --paper: #f7eedb;
  --paper-deep: #efe3ce;
  --ink: #2d251e;
  --muted: #6b5e50;
  --brown: #4b3425;
  --terracotta: #a34f3f;
  --terracotta-deep: #7b382f;
  --forest: #28624f;
  --sepia: #ead5ac;
  --line: rgba(75, 52, 37, 0.17);
  --shadow: 0 20px 60px rgba(59, 43, 31, 0.12);
  --soft-shadow: 0 10px 32px rgba(59, 43, 31, 0.09);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content: min(1260px, calc(100vw - 48px));
  --player-h: 96px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 8% -12%, rgba(163, 79, 63, 0.08), transparent 30%),
    radial-gradient(circle at 96% 14%, rgba(40, 98, 79, 0.07), transparent 28%),
    var(--ivory);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  padding-bottom: 28px;
}
body:has(.player:not([hidden])) { padding-bottom: calc(var(--player-h) + 42px); }
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
}
.skip-link:focus { top: 16px; }

.site-header {
  width: var(--content);
  height: 88px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  position: relative;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px 14px 16px 8px;
  background: var(--brown);
  color: #fff8eb;
  display: grid;
  place-items: center;
  font-family: Georgia, "Noto Serif Devanagari", serif;
  font-size: 23px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
  font-size: 21px;
}
.brand-copy small { font-size: 10px; color: var(--muted); letter-spacing: .04em; }

.desktop-nav { display: flex; gap: 28px; align-items: center; }
.desktop-nav a, .text-button {
  font-size: 14px;
  color: var(--muted);
  transition: color 180ms ease;
}
.desktop-nav a:hover, .text-button:hover { color: var(--ink); }

.header-actions { justify-self: end; display: flex; gap: 10px; align-items: center; }
.icon-button, .profile-chip, .text-button, .player-button, .speed-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}
.icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 24px;
}
.icon-button:hover { background: rgba(75, 52, 37, 0.07); }
.profile-chip {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
}

.search-panel {
  width: var(--content);
  margin: -2px auto 14px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(248, 244, 234, .92);
  backdrop-filter: blur(18px);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
}
.search-panel label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.search-box { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
}
.search-box kbd {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 11px;
}

main { width: var(--content); margin: 0 auto; }
.hero-shell {
  min-height: 510px;
  border-radius: 36px;
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(50, 37, 28, .95) 0%, rgba(60, 42, 31, .91) 48%, rgba(85, 55, 39, .76) 100%),
    var(--brown);
  color: #fff8eb;
  display: grid;
  grid-template-columns: 46% 54%;
  align-items: center;
  position: relative;
  box-shadow: var(--shadow);
}
.hero-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49%, rgba(255,255,255,.06) 50%, transparent 51%),
    radial-gradient(circle at 80% 40%, rgba(234,213,172,.18), transparent 32%);
  opacity: .7;
}
.hero-art { height: 100%; display: grid; place-items: center; position: relative; isolation: isolate; }
.hero-glow {
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(240, 223, 192, .13);
  filter: blur(34px);
  z-index: -1;
}
.hero-cover {
  width: min(285px, 66%);
  aspect-ratio: .72;
  border-radius: 12px 20px 20px 12px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(240,223,192,.24), rgba(163,79,63,.28)),
    #6b4934;
  box-shadow: 24px 28px 50px rgba(0,0,0,.28), inset 2px 0 rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  transform: rotate(-2deg);
  background-size: cover;
  background-position: center;
}
.hero-cover.has-image .cover-monogram { display: none; }
.cover-monogram { font: 82px Georgia, "Noto Serif Devanagari", serif; opacity: .86; }
.hero-copy { padding: 64px 72px 64px 26px; position: relative; z-index: 2; }
.eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.hero-copy .eyebrow { color: #e8b8a9; }
.hero-copy h1 {
  margin: 0;
  max-width: 700px;
  font-family: Georgia, "Noto Serif Devanagari", "Noto Serif Gujarati", serif;
  font-weight: 500;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1.01;
  letter-spacing: -.04em;
}
.hero-summary {
  max-width: 650px;
  color: rgba(255,248,235,.78);
  line-height: 1.7;
  font-size: 16px;
  margin: 24px 0 18px;
}
.hero-meta, .dialog-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-meta span {
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: rgba(255,248,235,.78);
}
.hero-actions { display: flex; gap: 12px; margin-top: 30px; }
.primary-button, .secondary-button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.primary-button {
  background: var(--terracotta);
  color: white;
  box-shadow: 0 9px 20px rgba(163,79,63,.24);
}
.primary-button:hover { background: var(--terracotta-deep); transform: translateY(-1px); }
.primary-button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.primary-button.compact { min-height: 44px; padding: 0 18px; }
.secondary-button {
  background: rgba(255,255,255,.09);
  color: inherit;
  border: 1px solid currentColor;
  border-color: rgba(255,255,255,.22);
}
.section .secondary-button, .empty-state .secondary-button {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
.play-glyph { font-size: 11px; margin-right: 5px; }

.control-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 2px 18px;
}
.segmented-control {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.38);
  border-radius: 999px;
}
.segmented-control button, .edition-switch button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 650;
}
.segmented-control button.selected, .edition-switch button.selected {
  background: var(--brown);
  color: #fff8eb;
}
.filter-summary { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--forest); box-shadow: 0 0 0 4px rgba(40,98,79,.08); }
.filter-summary[data-tone="loading"] .live-dot { background: #b58445; }
.filter-summary[data-tone="error"] .live-dot { background: var(--terracotta); }

.section { padding: 50px 0 24px; }
.section-heading, .shelf-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}
.section-heading h2, .manifesto h2 {
  font-family: Georgia, "Noto Serif Devanagari", "Noto Serif Gujarati", serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 500;
  margin: 0;
}
.shelves { display: grid; gap: 42px; margin-top: 28px; }
.shelf { min-width: 0; }
.shelf-heading { margin-bottom: 16px; }
.shelf-heading h2 { margin: 0; font: 500 24px Georgia, serif; }
.shelf-heading span { font-size: 12px; color: var(--muted); }

.story-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 224px);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(75,52,37,.22) transparent;
}
.story-card {
  scroll-snap-align: start;
  cursor: pointer;
  outline: none;
  border-radius: 18px;
}
.story-card:focus-visible { box-shadow: 0 0 0 3px rgba(163,79,63,.26); }
.story-cover {
  width: 100%;
  aspect-ratio: .78;
  border-radius: 14px 20px 20px 14px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(234,213,172,.88), rgba(163,79,63,.28)),
    var(--paper-deep);
  background-size: cover;
  background-position: center;
  box-shadow: 0 16px 28px rgba(59,43,31,.12), inset 2px 0 rgba(255,255,255,.5);
  border: 1px solid rgba(75,52,37,.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
  overflow: hidden;
}
.story-card:hover .story-cover { transform: translateY(-5px) rotate(-.4deg); box-shadow: 0 22px 34px rgba(59,43,31,.17); }
.story-cover.has-image span { display: none; }
.story-cover span {
  font: 54px Georgia, "Noto Serif Devanagari", "Noto Serif Gujarati", serif;
  color: rgba(75,52,37,.72);
}
.story-card-copy { padding: 13px 3px 0; }
.card-kicker { display: flex; gap: 5px; font-size: 10px; color: var(--terracotta); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.story-card h3 {
  margin: 7px 0 5px;
  font: 500 19px/1.28 Georgia, "Noto Serif Devanagari", "Noto Serif Gujarati", serif;
}
.story-card p { margin: 0; color: var(--muted); font-size: 12px; text-transform: capitalize; }
.card-progress, .continue-progress {
  height: 3px;
  border-radius: 999px;
  background: rgba(75,52,37,.1);
  margin-top: 11px;
  overflow: hidden;
}
.card-progress span, .continue-progress span { display: block; height: 100%; background: var(--terracotta); border-radius: inherit; }

.continue-card {
  display: grid;
  grid-template-columns: 126px 1fr auto;
  align-items: center;
  gap: 24px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.44);
  padding: 14px 20px 14px 14px;
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
}
.continue-cover {
  aspect-ratio: .92;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sepia), var(--paper-deep));
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  font: 34px Georgia, serif;
}
.continue-cover.has-image span { display: none; }
.continue-copy h3 { margin: 2px 0 5px; font: 500 24px Georgia, "Noto Serif Devanagari", "Noto Serif Gujarati", serif; }
.continue-copy > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; max-width: 660px; }

.manifesto {
  margin: 86px 0 44px;
  padding: 54px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 70px;
  align-items: center;
}
.manifesto p:last-child { font: 19px/1.7 Georgia, serif; color: var(--muted); }

.empty-state {
  margin: 32px 0 10px;
  min-height: 340px;
  border: 1px dashed rgba(75,52,37,.2);
  border-radius: 28px;
  padding: 58px 28px;
  text-align: center;
  background: rgba(255,255,255,.27);
}
.empty-symbol { font-size: 34px; color: var(--terracotta); }
.empty-state h2 { font: 500 31px Georgia, serif; margin: 14px 0 8px; }
.empty-state p { color: var(--muted); max-width: 620px; margin: 0 auto 22px; line-height: 1.7; }

.shelf-skeleton { margin-top: 24px; }
.skeleton-title, .skeleton-card {
  background: linear-gradient(90deg, rgba(75,52,37,.05), rgba(75,52,37,.1), rgba(75,52,37,.05));
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}
.skeleton-title { width: 160px; height: 25px; border-radius: 8px; margin-bottom: 18px; }
.skeleton-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.skeleton-card { height: 280px; border-radius: 18px; }
@keyframes shimmer { to { background-position: -220% 0; } }

.site-footer {
  width: var(--content);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 30px 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}
.footer-brand { opacity: .82; }

.story-dialog {
  width: min(980px, calc(100vw - 34px));
  max-height: min(760px, calc(100vh - 34px));
  padding: 0;
  border: 0;
  border-radius: 30px;
  background: var(--ivory);
  color: var(--ink);
  box-shadow: 0 34px 100px rgba(31,23,18,.32);
}
.story-dialog::backdrop { background: rgba(31,23,18,.58); backdrop-filter: blur(7px); }
.dialog-shell { display: grid; grid-template-columns: 39% 61%; position: relative; min-height: 610px; }
.dialog-close { position: absolute; right: 18px; top: 18px; z-index: 2; background: rgba(248,244,234,.76); backdrop-filter: blur(8px); }
.dialog-cover-wrap { background: var(--paper-deep); display: grid; place-items: center; padding: 48px; }
.dialog-cover {
  width: min(280px, 100%);
  aspect-ratio: .72;
  border-radius: 14px 22px 22px 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--sepia), rgba(163,79,63,.35));
  background-size: cover;
  background-position: center;
  box-shadow: 18px 22px 38px rgba(59,43,31,.2);
  font: 70px Georgia, "Noto Serif Devanagari", "Noto Serif Gujarati", serif;
}
.dialog-cover.has-image span { display: none; }
.dialog-copy { padding: 66px 58px 44px; overflow-y: auto; }
.dialog-copy h2 {
  margin: 0;
  font: 500 clamp(36px, 4vw, 54px)/1.08 Georgia, "Noto Serif Devanagari", "Noto Serif Gujarati", serif;
  letter-spacing: -.035em;
}
.dialog-summary { color: var(--muted); line-height: 1.7; margin: 18px 0; }
.dialog-meta span {
  font-size: 11px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.edition-switch { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; margin: 22px 0 8px; }
.dialog-actions { margin: 12px 0 30px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.detail-grid h3 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.detail-grid p { color: var(--muted); font-size: 13px; line-height: 1.6; }

.player {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  z-index: 50;
  width: min(1160px, calc(100vw - 30px));
  min-height: var(--player-h);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(34, 28, 23, .96);
  color: #fff8eb;
  box-shadow: 0 24px 70px rgba(22,16,12,.36);
  backdrop-filter: blur(20px);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(360px, 1.5fr) minmax(140px, 1fr);
  align-items: center;
  gap: 22px;
  padding: 12px 16px;
}
.player-story { display: flex; align-items: center; gap: 12px; min-width: 0; }
.player-thumb {
  width: 58px;
  height: 68px;
  border-radius: 9px 12px 12px 9px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #76503a, #a36a52);
  background-size: cover;
  background-position: center;
  font: 24px Georgia, serif;
}
.player-thumb.has-image span { display: none; }
.player-title-wrap { display: grid; gap: 4px; min-width: 0; }
.player-title-wrap strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 500 15px Georgia, "Noto Serif Devanagari", "Noto Serif Gujarati", serif; }
.player-title-wrap span { color: rgba(255,248,235,.56); font-size: 10px; }
.player-center { display: grid; gap: 8px; }
.player-controls { display: flex; justify-content: center; align-items: center; gap: 14px; }
.player-button { color: #fff8eb; }
.player-button.small { font-size: 11px; width: 42px; height: 34px; border-radius: 999px; background: rgba(255,255,255,.06); }
.player-button.primary {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #fff8eb;
  color: var(--ink);
  font-weight: 800;
}
.timeline { display: grid; grid-template-columns: 36px 1fr 36px; gap: 8px; align-items: center; font-size: 9px; color: rgba(255,248,235,.52); }
.timeline input { width: 100%; accent-color: #d98572; height: 4px; }
.player-extra { justify-self: end; display: flex; align-items: center; gap: 4px; }
.speed-button { color: #fff8eb; min-width: 44px; height: 40px; border-radius: 999px; background: rgba(255,255,255,.06); font-size: 12px; }
.player-close { color: #fff8eb; font-size: 19px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--player-h) + 34px);
  transform: translate(-50%, 12px);
  padding: 10px 15px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: 180ms ease;
  z-index: 60;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  :root { --content: min(100% - 30px, 1260px); --player-h: 132px; }
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .hero-shell { grid-template-columns: 38% 62%; min-height: 460px; }
  .hero-copy { padding: 46px 34px 46px 10px; }
  .manifesto { gap: 34px; padding: 42px 20px; }
  .player { grid-template-columns: 1fr auto; gap: 8px; padding: 10px 12px; }
  .player-center { grid-column: 1 / -1; grid-row: 2; }
  .player-extra { grid-column: 2; grid-row: 1; }
  .dialog-shell { grid-template-columns: 34% 66%; }
  .dialog-cover-wrap { padding: 28px; }
  .dialog-copy { padding: 56px 34px 34px; }
}

@media (max-width: 640px) {
  :root { --content: calc(100vw - 24px); --player-h: 142px; }
  body { padding-bottom: 18px; }
  .site-header { height: 72px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-copy strong { font-size: 19px; }
  .brand-copy small { display: none; }
  .profile-chip { display: none; }

  .hero-shell {
    min-height: 620px;
    grid-template-columns: 1fr;
    grid-template-rows: 42% 58%;
    border-radius: 28px;
  }
  .hero-art { order: 1; }
  .hero-cover { width: 138px; margin-top: 24px; }
  .cover-monogram { font-size: 50px; }
  .hero-copy { order: 2; padding: 16px 24px 30px; align-self: start; }
  .hero-copy h1 { font-size: 39px; }
  .hero-summary { font-size: 14px; line-height: 1.55; margin: 16px 0 12px; }
  .hero-meta span:nth-child(3) { display: none; }
  .hero-actions { margin-top: 20px; }
  .hero-actions button { flex: 1; padding-inline: 13px; }

  .control-strip { align-items: flex-start; flex-direction: column; padding-top: 18px; }
  .segmented-control { width: 100%; }
  .segmented-control button { flex: 1; padding-inline: 8px; }
  .filter-summary { padding-left: 4px; }
  .section { padding-top: 38px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 34px; }
  .story-row { grid-auto-columns: minmax(155px, 42vw); gap: 14px; }
  .story-card h3 { font-size: 17px; }
  .shelves { gap: 34px; }

  .continue-card { grid-template-columns: 76px 1fr; gap: 14px; padding: 11px; }
  .continue-card button { grid-column: 1 / -1; width: 100%; }
  .continue-copy > p:not(.eyebrow) { display: none; }
  .continue-copy h3 { font-size: 20px; }

  .manifesto { margin-top: 58px; grid-template-columns: 1fr; gap: 12px; padding: 38px 6px; }
  .manifesto h2 { font-size: 36px; }
  .manifesto p:last-child { font-size: 17px; }
  .site-footer { align-items: flex-start; gap: 20px; flex-direction: column; }

  .story-dialog { max-height: calc(100vh - 12px); width: calc(100vw - 12px); border-radius: 24px; }
  .dialog-shell { display: block; min-height: auto; }
  .dialog-cover-wrap { height: 215px; padding: 24px; }
  .dialog-cover { width: 124px; }
  .dialog-copy { padding: 28px 24px 34px; }
  .dialog-copy h2 { font-size: 38px; }
  .detail-grid { grid-template-columns: 1fr; gap: 12px; }
  .dialog-close { right: 12px; top: 12px; }

  .player { bottom: 8px; width: calc(100vw - 16px); border-radius: 20px; grid-template-columns: 1fr auto; padding: 10px 12px; }
  .player-thumb { width: 44px; height: 53px; }
  .player-extra .speed-button { min-width: 39px; }
  .timeline { grid-template-columns: 32px 1fr 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}


/* Kathasetu listening-first v2 */
.site-header-v2 {
  height: 76px;
  grid-template-columns: 1fr auto;
}
.site-header-v2 .header-actions { gap: 4px; }
.header-continue[hidden] { display: none !important; }

.hero-shell-v2 {
  min-height: 430px;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  background:
    radial-gradient(circle at 78% 42%, rgba(234,213,172,.16), transparent 30%),
    linear-gradient(120deg, #2f241e, #443027 62%, #55392c);
}
.hero-shell-v2::after { opacity: .35; }
.hero-shell-v2 .hero-copy {
  padding: 58px 28px 58px 64px;
}
.hero-shell-v2 .hero-copy h1 {
  max-width: 720px;
  font-size: clamp(40px, 5.2vw, 68px);
}
.hero-shell-v2 .hero-summary {
  max-width: 620px;
  margin-top: 20px;
  font-size: 17px;
}
.hero-shell-v2 .hero-art {
  min-height: 430px;
}
.hero-shell-v2 .hero-cover {
  width: min(245px, 68%);
  transform: rotate(1deg);
}
.hero-shell-v2 .hero-actions { align-items: center; }
.quiet-link {
  border: 0;
  background: transparent;
  color: rgba(255,248,235,.78);
  cursor: pointer;
  padding: 12px 4px;
  font-weight: 650;
}
.quiet-link:hover { color: #fff8eb; }

.continue-section-v2 { padding-top: 34px; }
.compact-heading h2 { font-size: clamp(28px, 3vw, 38px); }

.library-section { padding-top: 58px; }
.library-heading { align-items: center; }
.control-strip-v2 {
  padding: 18px 0 22px;
  justify-content: flex-start;
}
.control-strip-v2 .segmented-control {
  background: transparent;
  padding: 2px;
}
.control-strip-v2 .segmented-control button {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 20px;
  margin-top: 4px;
}
.story-grid .story-card { min-width: 0; }
.story-grid .story-cover {
  aspect-ratio: .77;
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(59,43,31,.10);
}
.story-grid .story-card:hover .story-cover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(59,43,31,.15);
}
.story-grid .story-card-copy { padding-top: 11px; }
.story-grid .story-card h3 { font-size: 18px; margin-bottom: 0; }
.story-grid .card-kicker { font-size: 9px; }
.story-grid .card-progress { margin-top: 10px; }

.filter-summary[data-tone="ready"] {
  opacity: .65;
}
.filter-summary[data-tone="ready"] .live-dot {
  box-shadow: none;
}

.manifesto-v2 {
  margin: 82px 0 52px;
  padding: 48px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  display: block;
  max-width: 760px;
}
.manifesto-v2 h2 {
  margin: 0 0 12px;
}
.manifesto-v2 p:last-child {
  max-width: 700px;
  font-size: 18px;
}

.site-footer-v2 {
  justify-content: flex-start;
  padding-top: 24px;
}

.story-dialog-v2 {
  width: min(900px, calc(100vw - 34px));
}
.story-dialog-v2 .dialog-shell {
  grid-template-columns: 34% 66%;
  min-height: 560px;
}
.story-dialog-v2 .dialog-cover-wrap { padding: 42px 32px; }
.story-dialog-v2 .dialog-copy { padding: 58px 52px 40px; }
.story-dialog-v2 .dialog-actions { margin-bottom: 22px; }
.story-about {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
}
.story-about summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}
.story-about[open] summary { margin-bottom: 18px; }
.story-about .detail-grid {
  border-top: 0;
  padding-top: 0;
  gap: 22px;
}
.edition-switch[hidden] { display: none !important; }

.player-v2 {
  width: min(900px, calc(100vw - 24px));
  border-radius: 18px;
  padding: 12px 16px;
}
.player-v2 .player-thumb {
  width: 46px;
  height: 46px;
}
.player-v2 .player-button.primary {
  width: 42px;
  height: 42px;
}

@media (max-width: 1100px) {
  .story-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  :root { --content: min(100% - 28px, 760px); }
  .site-header-v2 { height: 70px; }
  .brand-copy small { display: none; }

  .hero-shell-v2 {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-shell-v2 .hero-copy {
    padding: 42px 30px 34px;
    order: 2;
  }
  .hero-shell-v2 .hero-art {
    min-height: 270px;
    order: 1;
  }
  .hero-shell-v2 .hero-cover {
    width: 150px;
    margin-top: 24px;
  }
  .hero-shell-v2 .hero-copy h1 {
    font-size: clamp(38px, 10vw, 56px);
  }

  .story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .library-heading { align-items: end; }

  .story-dialog-v2 .dialog-shell { grid-template-columns: 1fr; }
  .story-dialog-v2 .dialog-cover-wrap { display: none; }
  .story-dialog-v2 .dialog-copy { padding: 52px 28px 34px; }
}

@media (max-width: 580px) {
  :root { --content: calc(100vw - 22px); }
  .site-header-v2 { height: 66px; }
  .header-continue { display: none !important; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-copy strong { font-size: 20px; }

  .hero-shell-v2 { border-radius: 24px; }
  .hero-shell-v2 .hero-art { min-height: 220px; }
  .hero-shell-v2 .hero-copy { padding: 32px 24px 30px; }
  .hero-shell-v2 .hero-summary { font-size: 15px; line-height: 1.6; }
  .hero-shell-v2 .hero-meta { gap: 6px; }
  .hero-shell-v2 .hero-actions { margin-top: 22px; }

  .section { padding-top: 42px; }
  .library-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
  }
  .story-grid .story-card h3 { font-size: 17px; }
  .story-grid .story-cover { border-radius: 14px; }

  .continue-card {
    grid-template-columns: 80px 1fr;
    gap: 14px;
    padding: 12px;
  }
  .continue-card .primary-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .manifesto-v2 { margin-top: 62px; padding-top: 38px; }
  .manifesto-v2 p:last-child { font-size: 16px; }

  .player-v2 {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    padding: 10px 12px;
  }
  .player-v2 .player-story { min-width: 0; }
  .player-v2 .player-center {
    grid-column: 1 / -1;
    order: 3;
  }
  .player-v2 .player-extra { align-self: start; }
}


/* English-first copy + explicit image rendering */
.hero-cover,
.story-cover,
.continue-cover,
.dialog-cover,
.player-thumb {
  position: relative;
  overflow: hidden;
}

.cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  z-index: 1;
}

.hero-cover > span,
.story-cover > span,
.continue-cover > span,
.dialog-cover > span,
.player-thumb > span {
  position: relative;
  z-index: 0;
}

.hero-cover.has-image,
.story-cover.has-image,
.continue-cover.has-image,
.dialog-cover.has-image,
.player-thumb.has-image {
  background-image: none !important;
}

.primary-summary {
  display: block;
}

.secondary-hindi {
  display: block;
  margin-top: 6px;
  font-family: "Noto Serif Devanagari", Georgia, serif;
  font-size: .72em;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  opacity: .68;
}

.hero-summary .secondary-hindi {
  margin-top: 9px;
  color: rgba(255,248,235,.68);
  font-size: 13px;
}

.story-card .secondary-hindi {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
  opacity: .78;
}

.continue-copy .secondary-hindi {
  margin: 3px 0 5px;
  font-size: 12px;
  color: var(--muted);
}

.continue-summary {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  max-width: 660px;
}

.dialog-summary .secondary-hindi {
  margin-top: 9px;
  font-size: 12px;
}

.dialog-hindi-title {
  font-size: 13px !important;
  color: var(--muted);
}

@media (max-width: 580px) {
  .hero-shell-v2 .hero-cover {
    width: 168px;
  }

  .hero-summary .secondary-hindi {
    font-size: 11px;
    line-height: 1.45;
  }

  .story-grid .story-card .secondary-hindi {
    font-size: 10px;
  }

  .continue-summary {
    display: none;
  }
}


/* Mobile hero fit + verified square Episode cover */
.hero-shell-v2 .hero-cover {
  aspect-ratio: 1;
}

.hero-shell-v2 .hero-cover .cover-image {
  object-fit: cover;
}

@media (max-width: 580px) {
  .hero-shell-v2 {
    min-height: 0 !important;
    height: auto !important;
    grid-template-rows: auto auto !important;
  }

  .hero-shell-v2 .hero-art {
    min-height: 230px;
    padding: 26px 0 14px;
  }

  .hero-shell-v2 .hero-cover {
    width: 178px;
    margin-top: 0;
  }

  .hero-shell-v2 .hero-copy {
    padding: 28px 24px 42px;
  }

  .hero-shell-v2 .hero-actions {
    margin-top: 26px;
    padding-bottom: 2px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .hero-shell-v2 .hero-actions .primary-button,
  .hero-shell-v2 .hero-actions .quiet-link {
    min-height: 52px;
  }

  .hero-shell-v2 .hero-actions .quiet-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}


/* Krishna series mode */
.series-section {
  padding-top: 58px;
}

.series-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}

.series-heading h2 {
  margin: 4px 0 8px;
  font: 500 clamp(34px, 4.2vw, 52px)/1.05 Georgia, serif;
  letter-spacing: -.035em;
}

.series-intro {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.series-heading-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.series-release-count {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.series-play-all {
  min-height: 46px;
  padding-inline: 18px;
  white-space: nowrap;
}

.series-play-all:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.series-episode-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.series-episode-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.series-episode-card.released {
  cursor: pointer;
}

.series-episode-card.released:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 5px;
  border-radius: 18px;
}

.series-episode-cover {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--sepia), var(--paper-deep));
  box-shadow: 0 12px 28px rgba(59,43,31,.10);
}

.series-episode-cover .cover-image {
  object-fit: cover;
}

.series-episode-card.upcoming .series-episode-cover .cover-image {
  filter: saturate(.82) brightness(.84);
}

.series-status-badge {
  position: absolute;
  z-index: 2;
  left: 10px;
  bottom: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(31,23,18,.80);
  color: #fff8eb;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.series-episode-card.released .series-status-badge {
  background: rgba(50,102,88,.88);
}

.series-episode-copy {
  padding: 12px 2px 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.series-episode-meta {
  margin: 0;
  color: var(--terracotta);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.series-episode-copy h3 {
  margin: 7px 0 7px;
  font: 500 20px/1.23 Georgia, serif;
}

.series-teaser {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.series-episode-action {
  margin-top: auto;
  padding: 12px 0 0;
  border: 0;
  background: transparent;
  color: var(--terracotta);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.series-coming-soon {
  display: inline-block;
  margin-top: auto;
  padding-top: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .series-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .series-heading-actions {
    width: 100%;
    justify-content: space-between;
  }

  .series-episode-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 42vw);
    grid-template-columns: none;
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    padding: 0 2px 10px;
    scrollbar-width: none;
  }

  .series-episode-rail::-webkit-scrollbar {
    display: none;
  }

  .series-episode-card {
    scroll-snap-align: start;
  }
}

@media (max-width: 580px) {
  .series-section {
    padding-top: 48px;
  }

  .series-heading h2 {
    font-size: 36px;
  }

  .series-heading-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .series-release-count {
    font-size: 11px;
  }

  .series-play-all {
    width: 100%;
  }

  .series-episode-rail {
    grid-auto-columns: minmax(220px, 76vw);
    margin-right: calc((100vw - var(--content)) / -2);
    padding-right: 22px;
  }

  .series-episode-copy h3 {
    font-size: 21px;
  }

  .series-teaser {
    font-size: 13px;
  }
}

/* SEO crawlable links progressively enhance into the existing app interactions. */
.content-link {
  color: inherit;
  text-decoration: none;
}
.content-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.content-link:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 4px;
  border-radius: 4px;
}
.brand,
.quiet-link {
  text-decoration: none;
}
