/* Prototype A, "Aangan": cream walls, marigold, brass light. */
:root {
  --bg: #FBF5EC; --card: #FFFFFF; --ink: #2B1B12; --muted: #7A6455; --line: #EFE3D3;
  --accent: #E1581B; --accent-ink: #FFFFFF; --deep: #8E1B1B; --saffron: #FFE2A8; --soft: #F6E9D7;
  --r: 20px; --serif: "Crimson Pro", Georgia, serif; --sans: Inter, system-ui, -apple-system, sans-serif;
  --tabs: 68px; --mini: 0px;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body { font: 400 17px/1.5 var(--sans); color: var(--ink); background: var(--bg); min-height: 100dvh; -webkit-font-smoothing: antialiased; }
body.has-mini { --mini: 68px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
.ic { width: 22px; height: 22px; flex: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

#view { max-width: 640px; margin: 0 auto; padding: 0 16px calc(var(--tabs) + var(--mini) + 32px + env(safe-area-inset-bottom)); outline: none; }
.boot { height: 60vh; }

/* header + titles */
.top { display: flex; align-items: center; justify-content: space-between; padding: max(14px, env(safe-area-inset-top)) 0 6px; }
.logo { height: 26px; width: auto; }
.icon-btn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--card); box-shadow: 0 1px 0 var(--line); }
.hello { color: var(--muted); font-size: 15px; margin-top: 14px; }
.date { font: 600 30px/1.15 var(--serif); margin: 2px 0 16px; }
.title { font: 600 34px/1.1 var(--serif); margin: max(20px, env(safe-area-inset-top)) 0 6px; }
.page .title { margin-top: 4px; }
.lead { color: var(--muted); font-size: 17px; margin-bottom: 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sec { font: 600 22px/1.2 var(--serif); margin: 30px 0 12px; display: flex; justify-content: space-between; align-items: baseline; }
.sec a { font: 600 15px var(--sans); color: var(--accent); }
.eyebrow { display: block; font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .02em; margin-bottom: 4px; }
.foot { text-align: center; color: var(--muted); font-size: 14px; margin: 32px 0 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 17px; box-shadow: 0 6px 18px -8px rgba(225, 88, 27, .7); }
.btn .ic { width: 20px; height: 20px; }
.btn-2 { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.wide { width: 100%; margin: 6px 0 4px; }
.btn.big { min-height: 58px; font-size: 18px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 8px; }
.two.end { margin-top: 28px; }
.link-btn { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: 16px; min-height: 48px; margin-top: 4px; }
.link-btn .ic { width: 18px; height: 18px; }
.round { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; flex: none; }
.round .ic { width: 20px; height: 20px; }
.round.light { background: #fff; color: var(--deep); }

/* Daily Mantra hero */
.daily { position: relative; border-radius: 28px; overflow: hidden; background: var(--soft); min-height: 430px; display: flex; align-items: flex-end; box-shadow: 0 18px 40px -24px rgba(90, 40, 10, .55); }
.daily > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 80%; }
.daily::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(251, 245, 236, .0) 20%, rgba(43, 20, 8, .25) 45%, rgba(43, 20, 8, .86) 100%); }
.daily-in { position: relative; z-index: 1; padding: 22px; color: #fff; width: 100%; }
.chip { display: inline-block; background: var(--saffron); color: var(--deep); font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.daily h2 { font: 600 32px/1.1 var(--serif); margin: 12px 0 6px; }
.daily .first { font-size: 17px; opacity: .95; font-style: italic; font-family: var(--serif); font-size: 19px; }
.daily .ben { font-size: 15px; opacity: .85; margin-top: 6px; }
.daily-btns { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.daily-btns .btn-2 { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); backdrop-filter: blur(6px); }

/* feelings */
.feel { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feel a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 14px 0 18px; background: var(--card); border-radius: 16px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.feel .ic { width: 18px; color: var(--accent); }

/* radio strip */
.radio-strip { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding: 16px; border-radius: var(--r); color: #fff; background: radial-gradient(120% 140% at 0% 0%, #B23A12 0%, #6E1414 70%); }
.radio-strip > span:nth-child(2) { flex: 1; min-width: 0; }
.radio-strip b { display: block; font-size: 17px; }
.radio-strip small { display: block; font-size: 14px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: rgba(255, 255, 255, .18); padding: 5px 10px; border-radius: 999px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #FF5A4E; box-shadow: 0 0 0 0 rgba(255, 90, 78, .7); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255, 90, 78, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 90, 78, 0); } }

/* horizontal rows */
.hs { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; }
.hs::-webkit-scrollbar { display: none; }
.hs > * { scroll-snap-align: start; flex: none; }
.mini-card { width: 132px; }
.mini-card b { display: block; font-size: 15px; line-height: 1.3; margin-top: 8px; font-weight: 600; }

/* thumbs */
.thumb { width: 56px; height: 56px; border-radius: 14px; overflow: hidden; background: var(--c, var(--soft)); flex: none; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 82%; transform: scale(1.5); transform-origin: center 82%; }
.thumb::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); border-radius: inherit; background: linear-gradient(0deg, color-mix(in srgb, var(--c, transparent) 22%, transparent), transparent 60%); }
.thumb.big { width: 132px; height: 132px; border-radius: 18px; }
.thumb.big img { transform: scale(1.2); }
.thumb.circle { width: 72px; height: 72px; border-radius: 50%; }

/* lists */
.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.row-main { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; min-height: 56px; }
.row-text { min-width: 0; flex: 1; text-align: left; }
.row-text b { display: block; font-weight: 600; font-size: 17px; line-height: 1.3; }
.row-text small { display: block; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.count, .empty { color: var(--muted); margin: 14px 0 4px; }

/* search */
.search { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px; background: var(--card); border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--line); margin: 10px 0 4px; position: sticky; top: 8px; z-index: 5; }
.search input { flex: 1; border: 0; background: none; font: inherit; font-size: 17px; outline: none; min-width: 0; color: var(--ink); }
.search .ic { color: var(--muted); }

.deities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; }
.deities a { display: flex; flex-direction: column; align-items: center; text-align: center; }
.deities b { font-size: 14px; font-weight: 600; margin-top: 6px; line-height: 1.2; }
.deities small { font-size: 12px; color: var(--muted); }

/* playlist cards */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pcard { position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; color: #fff; background: var(--c1); }
.hs .pcard { width: 158px; }
.pcard { background: linear-gradient(160deg, var(--w1), var(--w2)); }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 85%; mix-blend-mode: luminosity; opacity: .62; }
.pcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .55)); }
.pcard-t, .pcard small { position: relative; z-index: 1; }
.pcard-t { font: 600 20px/1.12 var(--serif); }
.pcard small { font-size: 13px; opacity: .9; }

/* programme cards */
.prog { display: block; width: 240px; }
.prog-img { display: block; position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--soft); }
.prog-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 80%; }
.prog-img em { position: absolute; left: 10px; top: 10px; font-style: normal; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .92); color: var(--deep); border-radius: 999px; padding: 5px 10px; display: inline-flex; gap: 5px; align-items: center; }
.prog-img em .ic { width: 14px; height: 14px; }
.prog b { display: block; font: 600 20px/1.2 var(--serif); margin-top: 10px; }
.prog small { color: var(--muted); font-size: 14px; }
.prog p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.prog.wide { width: auto; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.progs { margin-top: 18px; }
.bar { display: block; height: 6px; border-radius: 9px; background: var(--line); margin-top: 8px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 9px; }
.bar.big { height: 8px; margin: 6px 0 16px; }

/* detail pages */
.hero { position: relative; height: 34vh; min-height: 230px; max-height: 380px; margin: 0 -16px; overflow: hidden; background: var(--soft); }
.hero > img { width: 100%; height: 100%; object-fit: cover; object-position: center 85%; }
.hero.pl::after, .hero:has(.hero-t)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(30, 10, 4, .8)); }
.hero.pl > img { filter: saturate(1.1); }
.hero-t { position: absolute; left: 16px; right: 16px; bottom: 18px; color: #fff; z-index: 1; }
.hero-t small { font-size: 14px; opacity: .9; }
.hero-t h1 { font: 600 34px/1.08 var(--serif); }
.back, .save { position: absolute; top: max(14px, env(safe-area-inset-top)); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--ink); z-index: 2; box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .3); }
.back { left: 16px; }
.save { right: 16px; color: var(--accent); }
.page.top-pad { padding-top: calc(76px + env(safe-area-inset-top)); position: relative; }
.top-pad .back { left: 0; }
.page { padding-top: 18px; }
.deity-link { color: var(--accent); font-weight: 600; font-size: 15px; }

/* lyrics */
.lyr-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); margin-top: 18px; cursor: pointer; }
.switch input { appearance: none; width: 44px; height: 26px; border-radius: 99px; background: var(--line); position: relative; transition: .2s; cursor: pointer; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { left: 21px; }
.lyrics { background: var(--card); border-radius: var(--r); padding: 6px 20px; box-shadow: inset 0 0 0 1px var(--line); }
.verse { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.verse:last-child { border: 0; }
.pair + .pair { margin-top: 14px; }
.sa { font-family: "Noto Sans Devanagari", var(--sans); font-size: 18px; color: var(--deep); margin-bottom: 4px; }
.tr { font: 600 20px/1.4 var(--serif); }
.me { color: var(--muted); font-size: 16px; margin-top: 3px; }

/* programmes: lessons */
.lessons { display: flex; flex-direction: column; gap: 8px; }
.lesson { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--card); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); min-height: 64px; }
.lesson b { display: block; font-weight: 600; font-size: 16px; line-height: 1.3; }
.lesson small { color: var(--muted); font-size: 13px; display: block; }
.lk { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.lesson.done .lk { background: var(--accent); color: #fff; }
.vid { width: 100%; border-radius: 18px; background: #000; aspect-ratio: 16 / 9; margin: 14px 0 6px; }
.body { font-size: 19px; line-height: 1.6; margin: 14px 0; font-family: var(--serif); }
.steps { padding: 0; list-style: none; counter-reset: s; margin-top: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 2px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; background: var(--saffron); color: var(--deep); display: grid; place-items: center; font-weight: 700; }
.steps b { font-size: 17px; }
.steps span { color: var(--muted); font-size: 16px; }

/* radio page */
.radio-card { background: var(--card); border-radius: 28px; padding: 16px 16px 20px; box-shadow: 0 18px 40px -26px rgba(90, 40, 10, .5); text-align: center; }
.radio-art { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 1; background: var(--soft); margin-bottom: 14px; }
.radio-art img { width: 100%; height: 100%; object-fit: cover; }
.radio-art .live { position: absolute; left: 12px; top: 12px; background: rgba(0, 0, 0, .55); color: #fff; }
.radio-card small { color: var(--muted); font-size: 14px; }
.radio-card h2 { font: 600 28px/1.15 var(--serif); margin: 2px 0 4px; }
.offer { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 18px; border-radius: var(--r); background: var(--saffron); color: var(--deep); }
.offer b { display: block; }
.offer small { display: block; font-size: 14px; }
.offer > :not(.ic) { flex: 1; }

/* tabs */
#tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-around; background: rgba(255, 252, 247, .94); backdrop-filter: blur(16px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
#tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 54px; justify-content: center; font-size: 12px; font-weight: 600; color: var(--muted); border-radius: 12px; }
#tabs a[aria-current] { color: var(--accent); }
#tabs a[aria-current] .ic { stroke-width: 2.3; }

/* mini player */
#mini { position: fixed; left: 8px; right: 8px; bottom: calc(var(--tabs) + env(safe-area-inset-bottom) + 6px); z-index: 19; max-width: 624px; margin: 0 auto; }
#mini:not(:empty) { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; background: #2B1B12; color: #fff; border-radius: 18px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); overflow: hidden; }
.mini-open { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-align: left; }
#mini .thumb { width: 48px; height: 48px; border-radius: 12px; }
#mini .row-text b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mini .row-text small { color: rgba(255, 255, 255, .7); }
.mini-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .15); }
.mini-bar i { display: block; height: 100%; width: 0; background: var(--saffron); }

/* full player sheet */
#sheet { position: fixed; inset: 0; z-index: 40; background: rgba(30, 12, 4, .4); opacity: 0; pointer-events: none; transition: opacity .25s; }
#sheet.open { opacity: 1; pointer-events: auto; }
.sheet-in { position: absolute; left: 0; right: 0; bottom: 0; top: max(24px, env(safe-area-inset-top)); max-width: 640px; margin: 0 auto; background: var(--bg); border-radius: 28px 28px 0 0; padding: 8px 22px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; transform: translateY(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); text-align: center; }
#sheet.open .sheet-in { transform: none; }
.sheet-close { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto; color: var(--muted); }
.np-art { width: min(78vw, 340px); aspect-ratio: 1; margin: 6px auto 20px; border-radius: 26px; overflow: hidden; box-shadow: 0 24px 50px -24px rgba(90, 40, 10, .7); background: var(--soft); }
.np-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 85%; }
.sheet-in h2 { font: 600 28px/1.15 var(--serif); margin-bottom: 10px; }
#seek { width: 100%; accent-color: var(--accent); height: 28px; margin-top: 6px; }
.times { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ctrls { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 14px 0 22px; }
.ctrls button { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); }
.ctrls .ic { width: 26px; height: 26px; }
.ctrls .big-play { width: 80px; height: 80px; background: var(--accent); color: #fff; box-shadow: 0 12px 26px -10px rgba(225, 88, 27, .8); }
.ctrls .big-play .ic { width: 32px; height: 32px; }
.np-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.np-row > * { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 16px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 600; }
.np-row .ic { width: 18px; height: 18px; color: var(--accent); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
