/* ============================================================
   देववाणी — dedicated MOBILE app home (loaded only when wp_is_mobile()).
   Reuses colour tokens from home.css (:root). Everything scoped to body.dv-m
   so it can never touch the FINAL desktop design.
   ============================================================ */
body.dv-m { background: var(--bg); padding-bottom: 96px; }
.dv-m img { display: block; max-width: 100%; }

/* ---------- top app bar ---------- */
.m-topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--bg);
  border-bottom: 1px solid rgba(240,217,181,.5);
}
.m-topbar .m-icon {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; display: grid; place-items: center; color: var(--maroon);
  box-shadow: var(--shadow-sm);
}
.m-topbar .m-menu { background: transparent; box-shadow: none; }
.m-topbar .m-icon .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.m-brand { display: flex; align-items: center; gap: 7px; margin-inline: auto; }
.m-brand img { height: 30px; width: auto; }
.m-brand span { font-family: "Yatra One", serif; color: var(--primary); font-size: 1.3rem; }
.m-actions { display: flex; gap: 8px; }
.m-bell { position: relative; }
.m-bell .badge {
  position: absolute; top: -3px; right: -3px; background: #e0322f; color: #fff;
  font-size: .58rem; min-width: 16px; height: 16px; border-radius: 8px;
  display: grid; place-items: center; padding: 0 3px; font-weight: 700;
}

/* ---------- hero banner card ---------- */
.m-hero {
  position: relative; margin: 10px 14px 0; border-radius: 22px; overflow: hidden;
  min-height: 220px; padding: 16px 18px 18px;
  background:
    linear-gradient(90deg, rgba(253,240,222,.97) 0%, rgba(253,240,222,.86) 30%, rgba(253,240,222,.25) 56%, rgba(253,240,222,0) 74%),
    url('../img/home/header-2.png');
  background-size: cover, 165% auto;
  background-position: left center, right 62% center;
  background-repeat: no-repeat, no-repeat;
  border: 1px solid #f0d9b5; box-shadow: var(--shadow);
}
.m-hero-text { position: relative; z-index: 2; max-width: 66%; }
.m-hero-quote { color: var(--maroon); font-weight: 700; font-size: .8rem; margin: 0 0 2px; }
.m-hero-text h1 { font-family: "Yatra One", serif; color: var(--primary); font-size: 2rem; line-height: 1; margin: 0 0 3px; }
.m-hero-sub { color: var(--primary-dark); font-weight: 700; font-size: .9rem; margin: 0 0 7px; }
.m-hero-desc { color: #6e4a2c; font-weight: 600; font-size: .7rem; line-height: 1.55; margin: 0 0 13px; }
.m-hero-cta { display: flex; gap: 8px; flex-wrap: wrap; }
.m-btn {
  display: inline-flex; align-items: center; gap: 7px; border-radius: 999px;
  font-family: inherit; font-weight: 700; font-size: .8rem; padding: 9px 15px;
  border: 0; cursor: pointer; text-decoration: none;
}
.m-btn-fill { background: linear-gradient(135deg, var(--primary-light), var(--primary-dark)); color: #fff; box-shadow: 0 8px 18px rgba(224,110,30,.4); }
.m-btn-out { background: #fff; color: var(--maroon); border: 1.5px solid #f0c48f; }
.m-btn-out .pd { width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: .6rem; }

/* ---------- search ---------- */
.m-search { margin: 16px 14px 0; }
.m-search .box {
  display: flex; align-items: center; gap: 8px; background: #fff;
  border-radius: 999px; padding: 6px 6px 6px 16px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.m-search .mag { color: var(--text-muted); display: grid; place-items: center; }
.m-search input { flex: 1; border: 0; background: none; outline: none; font-family: inherit; font-size: .9rem; color: var(--text); }
.m-search .mic { width: 36px; height: 36px; border: 0; background: none; color: var(--text-muted); cursor: pointer; }
.m-search .go { width: 42px; height: 42px; flex: 0 0 auto; border: 0; border-radius: 50%; cursor: pointer;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark)); color: #fff; display: grid; place-items: center; }
.m-icoline { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- section heading ---------- */
.m-sec { margin-top: 20px; }
.m-sec-head { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 12px; }
.m-sec-head h2 { margin: 0; font-size: 1.02rem; font-weight: 800; color: var(--maroon); }
.m-sec-head a { font-size: .78rem; font-weight: 700; color: var(--primary-dark); }

/* generic horizontal scroller */
.m-scroll { display: flex; gap: 12px; overflow-x: auto; padding: 0 14px 4px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.m-scroll::-webkit-scrollbar { display: none; }
.m-scroll > * { scroll-snap-align: start; }

/* ---------- category icon strip ---------- */
.m-cats { padding-top: 16px; }
.m-cat { flex: 0 0 auto; width: 76px; text-align: center; }
.m-cat .tile {
  width: 76px; height: 76px; border-radius: 18px; overflow: hidden;
  background: #fbe7cf; border: 1px solid #eccfa0; box-shadow: var(--shadow-sm);
}
.m-cat .tile img { width: 100%; height: 100%; object-fit: cover; }
.m-cat b { display: block; font-size: .76rem; color: var(--maroon); font-weight: 700; margin-top: 6px; }
.m-cat span { display: block; font-size: .66rem; color: var(--primary-dark); font-weight: 600; }

/* ---------- explore 5 cards (big centered illustrated icons) ---------- */
.m-exp { flex: 0 0 116px; background: #fff; border-radius: 16px; padding: 12px 10px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-soft); text-align: center; }
.m-exp.active { border: 1.5px solid var(--primary); background: #fff6ec; }
.m-exp .ic { display: block; }
.m-exp .ic img { width: 100%; height: auto; object-fit: contain; margin: 0 auto; display: block; }
.m-exp b { display: block; font-size: .86rem; color: var(--maroon); margin-top: 0; }
.m-exp span { display: block; font-size: .68rem; color: var(--text-muted); margin-top: 3px; }

/* ---------- deities (name overlaid on image bottom, with fade) ---------- */
.m-deity { flex: 0 0 118px; position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.m-deity img { width: 118px; height: 152px; object-fit: cover; display: block; }
.m-deity b {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 6px 9px; text-align: center;
  font-size: .84rem; font-weight: 700; color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
  background: linear-gradient(to top, rgba(26,9,2,.86) 0%, rgba(26,9,2,.45) 52%, rgba(26,9,2,0) 100%);
}

/* ---------- hero banner hidden on mobile; सुविचार takes its place at top ---------- */
.m-hero { display: none; }
.m-suvichar-top { padding: 14px 14px 0; }
.m-suvichar-top .m-suvichar { width: 100%; position: relative; overflow: hidden; padding-right: 38%; }
.m-suvichar-top .m-suvichar > *:not(.m-suvichar-lotus) { position: relative; z-index: 1; }
.m-suvichar-top .qt { font-size: 1.05rem; }
/* lotus decoration — transparent cutout, bottom-right of the सुविचार card */
.m-suvichar-lotus { position: absolute; right: -39px; bottom: -51px; width: 161px; height: auto; pointer-events: none; }

/* ---------- panchang (full width) ---------- */
.m-solo { padding: 0 14px; }
.m-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 14px; }
.m-card { position: relative; overflow: hidden; background: var(--card); border-radius: 18px; padding: 14px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-soft); }
.m-card h3 { margin: 0; font-size: .9rem; color: var(--maroon); font-weight: 800; }
.m-pan { position: relative; overflow: hidden; }
.m-pan > * { position: relative; z-index: 1; }
.m-pan .pan-top { display: flex; align-items: center; justify-content: space-between; }
.m-pan .cal { width: 36px; height: 36px; border-radius: 11px; background: var(--primary); color: #fff; display: grid; place-items: center; }
.m-pan .cal svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.m-pan .date { font-size: .76rem; color: var(--primary-dark); font-weight: 700; margin: 5px 0 14px; }
.m-pan .pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; margin-bottom: 16px; }
.m-pan .prow { display: flex; align-items: center; gap: 9px; }
.m-pan .pi { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; background: #fbe9d7; color: var(--primary-dark); display: grid; place-items: center; }
.m-pan .pi svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.m-pan .pt { display: flex; flex-direction: column; min-width: 0; }
.m-pan .lab { font-size: .64rem; color: var(--primary); }
.m-pan .val { font-size: .8rem; color: var(--maroon); font-weight: 700; line-height: 1.2; }
.m-pan .m-pan-btn { display: inline-block; width: auto; padding-left: 24px; padding-right: 24px; }
.m-pan-lotus { position: absolute; right: -12px; bottom: -38px; width: 217px; height: auto; pointer-events: none; z-index: 0; }
/* feather the lotus PNG edges so its glow boundary blends into the card (no hard seam) */
.m-suvichar-lotus, .m-pan-lotus {
  -webkit-mask-image: radial-gradient(62% 58% at 56% 66%, #000 58%, transparent 100%);
          mask-image: radial-gradient(62% 58% at 56% 66%, #000 58%, transparent 100%);
}
.m-fullbtn { display: block; text-align: center; background: linear-gradient(135deg, var(--primary-light), var(--primary-dark)); color: #fff; font-weight: 700; font-size: .74rem; border-radius: 999px; padding: 8px; }
.m-suvichar { display: flex; flex-direction: column; }
.m-suvichar .qm { font-family: Georgia, serif; font-size: 2rem; color: var(--gold); line-height: .4; margin: 8px 0 4px; }
.m-suvichar .qt { font-family: "Tiro Devanagari Hindi", serif; color: var(--text); font-size: .92rem; line-height: 1.5; margin: 0 0 6px; }
.m-suvichar .by { font-size: .72rem; color: var(--text-muted); margin: 0 0 10px; }
.m-suvichar .m-fullbtn { margin-top: auto; }

/* ---------- popular aarti (tap to play) ---------- */
.m-aud { flex: 0 0 122px; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; text-align: left; }
.m-aud .thumb { position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.m-aud .thumb img { width: 122px; height: 98px; object-fit: cover; }
.m-aud .play-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92);
  color: var(--primary-dark); display: grid; place-items: center; font-size: .82rem;
  box-shadow: 0 3px 8px rgba(0,0,0,.25); transition: background .15s, color .15s;
}
.m-aud.playing .play-badge { background: var(--primary); color: #fff; }
.m-aud .dur { position: absolute; bottom: 6px; right: 6px; background: rgba(60,30,10,.8); color: #fff; font-size: .62rem; padding: 2px 6px; border-radius: 6px; font-weight: 600; }
.m-aud b { display: block; font-size: .78rem; color: var(--maroon); font-weight: 700; margin-top: 7px; }

/* ---------- hamburger drawer (reuses home.js #navToggle/#navLinks .open) ---------- */
/* left slide-in off-canvas drawer */
.m-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 70;
  width: 80%; max-width: 320px;
  background: var(--card); box-shadow: 8px 0 30px rgba(120,70,20,.28);
  padding: 12px 14px calc(16px + env(safe-area-inset-bottom));
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform .28s ease;
}
.m-drawer.open { transform: translateX(0); }
.m-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 2px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--border-soft); }
.m-drawer-logo { height: 34px; width: auto; }
.m-drawer-close { width: 38px; height: 38px; flex: 0 0 auto; border: 0; cursor: pointer; border-radius: 50%; background: var(--card-soft); color: var(--maroon); display: grid; place-items: center; }
.m-drawer-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.m-drawer a { display: block; padding: 14px 8px; color: var(--maroon); font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid var(--border-soft); }
.m-drawer a:active { background: var(--card-soft); }

.m-drawer-backdrop { position: fixed; inset: 0; z-index: 69; background: rgba(30,15,5,.45); opacity: 0; visibility: hidden; transition: opacity .28s ease; }
.m-drawer-backdrop.open { opacity: 1; visibility: visible; }

/* ---------- bottom tab bar ---------- */
.m-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-around;
  background: #fff; border-top: 1px solid var(--border);
  box-shadow: 0 -6px 22px rgba(190,130,60,.18);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}
.m-tabbar .tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--text-muted); font-size: .66rem; font-weight: 600; }
.m-tabbar .tab .ico { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.m-tabbar .tab.active { color: var(--primary-dark); }
.m-tabbar .tab-fab {
  flex: 0 0 auto; width: 58px; height: 58px; margin-top: -30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary) 55%, var(--primary-dark));
  color: #fff; display: grid; place-items: center; border: 4px solid #fff;
  box-shadow: 0 10px 20px rgba(224,110,30,.5); font-size: .6rem;
}
.m-tabbar .tab-fab .ico { width: 24px; height: 24px; }
.m-tabbar .tab-fab span { font-size: .58rem; margin-top: 1px; }

/* ---------- mini now-playing bar (home.js drives #miniPlayer) ---------- */
.mini-player { display: none; align-items: center; gap: 10px;
  position: fixed; left: 8px; right: 8px; bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 62;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 9px 12px; }
.mini-player.show { display: flex; }
.mp-toggle { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark)); color: #fff; font-size: .75rem; }
.mp-title { flex: 1; font-weight: 700; color: var(--maroon); font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-progress { flex: 0 0 70px; height: 5px; border-radius: 3px; background: var(--border); overflow: hidden; }
.mp-fill { display: block; height: 100%; width: 0; background: var(--primary); }
.mp-close { flex: 0 0 auto; border: 0; background: none; color: var(--text-muted); font-size: 1rem; cursor: pointer; line-height: 1; }

/* ---------- भक्ति वीडियो (lite YouTube embeds) ---------- */
.m-video { flex: 0 0 210px; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; text-align: left; }
.m-video .thumb { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); background: #000; }
.m-video .thumb img { width: 100%; height: 100%; object-fit: cover; }
.m-video .yt-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 46px; height: 32px; border-radius: 8px; background: rgba(220,40,30,.94); color: #fff;
  display: grid; place-items: center; font-size: .8rem; box-shadow: 0 3px 8px rgba(0,0,0,.35); }
.m-video b { display: block; font-size: .77rem; color: var(--maroon); font-weight: 700; margin-top: 7px; line-height: 1.25; max-height: 2.5em; overflow: hidden; }
.m-video .yt-frame { width: 100%; height: 100%; border: 0; display: block; }

/* ============================================================
   हनुमान चालीसा — mobile reader (body.dv-m.dv-chalisa)
   ============================================================ */
.dv-chalisa .chalisa-page { --cl-fs: 1.02rem; }

/* top bar */
.cl-topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--bg); }
.cl-tb-btn { width: 40px; height: 40px; flex: 0 0 auto; border: 0; cursor: pointer; background: #fff; border-radius: 50%; box-shadow: var(--shadow-sm); color: var(--primary-dark); display: grid; place-items: center; }
.cl-topbar > .cl-tb-btn:first-child { background: transparent; box-shadow: none; color: var(--primary); }
.cl-tb-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cl-tb-title { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; font-family: "Yatra One", serif; color: var(--primary); font-size: 1.15rem; white-space: nowrap; }
.cl-tb-ic { width: 22px; height: 22px; fill: none; stroke: var(--primary); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cl-tb-actions { display: flex; gap: 8px; }

/* hero banner */
.dv-chalisa .clm-hero { position: relative; margin: 6px 14px 0; border-radius: 20px; overflow: hidden; min-height: 210px; padding: 20px; background-size: cover; background-position: right center; background-repeat: no-repeat; box-shadow: var(--shadow); }
.dv-chalisa .clm-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(253,240,222,.96) 0%, rgba(253,240,222,.8) 34%, rgba(253,240,222,.15) 62%, transparent 82%); }
.dv-chalisa .clm-hero-text { position: relative; z-index: 1; max-width: 62%; }
.dv-chalisa .clm-hero-text h1 { color: var(--maroon); font-size: 1.14rem; font-weight: 800; line-height: 1.4; margin: 0 0 10px; }
.dv-chalisa .clm-hero-text p { color: #5a4028; font-size: .8rem; line-height: 1.7; font-weight: 500; margin: 0; }

/* audio player */
.dv-chalisa .clm-player { margin: 16px 14px 0; background: var(--card); border-radius: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-soft); padding: 18px 16px; text-align: center; }
.dv-chalisa .clm-player h2 { margin: 0; font-size: 1.15rem; color: var(--maroon); font-weight: 800; }
.dv-chalisa .clm-player-sub { margin: 4px 0 16px; font-size: .8rem; color: var(--text-muted); }
.dv-chalisa .cl-prog { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.dv-chalisa .cl-time { font-size: .72rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.dv-chalisa .cl-track { flex: 1; height: 6px; border-radius: 3px; background: var(--border); position: relative; cursor: pointer; }
.dv-chalisa .cl-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--primary); border-radius: 3px; }
.dv-chalisa .cl-fill::after { content: ""; position: absolute; right: -7px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; border-radius: 50%; background: var(--primary); box-shadow: 0 2px 5px rgba(0,0,0,.28); }
.dv-chalisa .clm-controls { display: flex; align-items: center; justify-content: space-between; }
.dv-chalisa .clm-ctl { background: none; border: 0; cursor: pointer; font-family: inherit; color: var(--primary-dark); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .66rem; font-weight: 600; text-decoration: none; min-width: 48px; }
.dv-chalisa .clm-ctl svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dv-chalisa .clm-ctl.active { color: var(--primary); }
.dv-chalisa .cl-skip svg { fill: currentColor; stroke: none; }
.dv-chalisa .cl-play { width: 64px; height: 64px; flex: 0 0 auto; border: 0; border-radius: 50%; cursor: pointer; color: #fff; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary-light), var(--primary) 55%, var(--primary-dark)); box-shadow: 0 10px 22px rgba(224,110,30,.5); }
.dv-chalisa .cl-play svg { width: 26px; height: 26px; fill: currentColor; stroke: none; }

/* text + side rail */
.dv-chalisa .cl-toolbar { display: flex; justify-content: flex-end; margin: 16px 14px 0; }
.dv-chalisa .cl-theme-btn { display: inline-flex; align-items: center; gap: 7px; background: var(--card); border: 1px solid var(--border-soft); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-family: inherit; font-weight: 700; font-size: .78rem; color: var(--primary-dark); box-shadow: var(--shadow-sm); }
.dv-chalisa .cl-theme-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dv-chalisa .cl-theme-btn.active { background: var(--primary); color: #fff; }
.dv-chalisa .clm-text { display: block; margin: 10px 14px 0; }
.dv-chalisa .cl-body { background: var(--card); border-radius: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-soft); padding: 18px 16px; }
.dv-chalisa .cl-pill { display: inline-block; background: #fbe4cf; color: var(--primary-dark); font-weight: 700; font-size: .78rem; padding: 4px 14px; border-radius: 999px; margin: 16px 0 10px; }
.dv-chalisa .cl-body > .cl-pill:first-child { margin-top: 0; }
.dv-chalisa .cl-verse { font-family: "Tiro Devanagari Hindi", serif; color: var(--text); font-size: var(--cl-fs, 1.02rem); line-height: 1.85; margin: 0 0 14px; }
.dv-chalisa .cl-div { text-align: center; color: var(--gold); margin: 6px 0 4px; font-size: 1rem; }
.dv-chalisa .cl-rail { position: sticky; top: 60px; display: flex; flex-direction: column; gap: 12px; }
.dv-chalisa .cl-rail-btn { width: 62px; background: var(--card); border: 1px solid var(--border-soft); border-radius: 16px; box-shadow: var(--shadow-sm); padding: 10px 4px; cursor: pointer; font-family: inherit; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: .58rem; color: var(--text-muted); font-weight: 600; }
.dv-chalisa .cl-rail-ic { width: 36px; height: 36px; border-radius: 11px; background: #fbe9d7; color: var(--primary-dark); display: grid; place-items: center; }
.dv-chalisa .cl-rail-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#clBookmark .cl-rail-ic svg { fill: currentColor; stroke: none; }
.dv-chalisa .cl-aa { font-family: "Mukta", sans-serif; font-weight: 800; font-size: 1rem; color: var(--primary-dark); }
.dv-chalisa .cl-rail-btn.active .cl-rail-ic { background: var(--primary); color: #fff; }

/* dark theme (home.js toggles body.dark) */
body.dark.dv-chalisa, body.dark.dv-chalisa .chalisa-page { background: #1c140d; }
body.dark.dv-chalisa .cl-topbar { background: #1c140d; }
body.dark.dv-chalisa .cl-body,
body.dark.dv-chalisa .clm-player,
body.dark.dv-chalisa .cl-rail-btn { background: #271c11; border-color: #3c2c1a; }
body.dark.dv-chalisa .cl-verse { color: #ecd8bd; }
body.dark.dv-chalisa .clm-player h2, body.dark.dv-chalisa .cl-tb-title { color: var(--primary-light); }
body.dark.dv-chalisa .m-tabbar { background: #271c11; border-color: #3c2c1a; }

/* ============================================================
   दैनिक राशिफल (body.dv-rashifal) — responsive: 1-col phone, 2-col desktop
   ============================================================ */
body.dv-rashifal { padding-bottom: 96px; }
.rf-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--bg); }
.rf-back { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; background: transparent; color: var(--primary); display: grid; place-items: center; }
.rf-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rf-top-t { flex: 1; font-family: "Yatra One", serif; color: var(--primary); font-size: 1.2rem; display: flex; align-items: center; gap: 8px; }
.rf-top-date { font-size: .72rem; color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.rf-intro { text-align: center; color: var(--text-muted); font-size: .85rem; margin: 2px 14px 14px; }
.dv-rashifal .rf-grid { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 0 14px; }
.dv-rashifal .rf-card { background: var(--card); border: 1px solid var(--border-soft); border-radius: 18px; box-shadow: var(--shadow-sm); padding: 16px; }
.dv-rashifal .rf-head { display: flex; align-items: center; gap: 12px; }
.dv-rashifal .rf-icon { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 13px; background: linear-gradient(135deg, #fff2df, #fbe0bf); display: grid; place-items: center; font-size: 1.6rem; color: var(--primary-dark); }
.dv-rashifal .rf-meta { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.dv-rashifal .rf-meta b { color: var(--maroon); font-size: 1.04rem; }
.dv-rashifal .rf-meta b small { color: var(--text-muted); font-weight: 500; font-size: .7rem; }
.dv-rashifal .rf-meta span { font-size: .68rem; color: var(--text-muted); }
.dv-rashifal .rf-stars { color: #f0a52e; font-size: .92rem; letter-spacing: 1px; white-space: nowrap; }
.dv-rashifal .rf-gen { font-family: "Tiro Devanagari Hindi", serif; font-size: .95rem; line-height: 1.75; color: var(--text); margin: 13px 0; }
.dv-rashifal .rf-det { display: flex; flex-direction: column; gap: 9px; margin: 0 0 12px; border-top: 1px solid var(--border-soft); padding-top: 12px; }
.dv-rashifal .rf-det li { font-size: .82rem; color: #5a4531; line-height: 1.6; }
.dv-rashifal .rf-det li span { font-weight: 700; color: var(--primary-dark); margin-right: 6px; }
.dv-rashifal .rf-luck { display: flex; gap: 18px; font-size: .78rem; color: var(--text-muted); border-top: 1px dashed var(--border); padding-top: 10px; }
.dv-rashifal .rf-luck b { color: var(--maroon); }
.dv-rashifal .rf-note { text-align: center; color: var(--text-muted); font-size: .68rem; margin: 18px 20px 0; }
@media (min-width: 640px) {
  .dv-rashifal .rf-grid, .dv-rashifal .rf-top, .dv-rashifal .rf-intro { max-width: 920px; margin-inline: auto; }
  .dv-rashifal .rf-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 920px) {
  body.dv-rashifal .m-tabbar { display: none; }
  body.dv-rashifal { padding-bottom: 40px; }
}

/* ---------- content hubs (मंदिर / त्यौहार / ज्ञान) — body.dv-hub ---------- */
.dv-hub .hub-grid { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 0 14px; }
.dv-hub .hub-card { display: flex; gap: 13px; align-items: flex-start; background: var(--card); border: 1px solid var(--border-soft); border-radius: 16px; box-shadow: var(--shadow-sm); padding: 15px; }
.dv-hub .hub-ic { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 12px; background: linear-gradient(135deg, #fff2df, #fbe0bf); display: grid; place-items: center; font-size: 1.5rem; }
.dv-hub .hub-tx { min-width: 0; }
.dv-hub .hub-tx b { display: block; color: var(--maroon); font-size: 1rem; margin-bottom: 4px; }
.dv-hub .hub-tx p { margin: 0; font-size: .85rem; line-height: 1.65; color: #5a4531; }
@media (min-width: 640px) {
  .dv-hub .hub-grid, .dv-hub .rf-top, .dv-hub .rf-intro { max-width: 920px; margin-inline: auto; }
  .dv-hub .hub-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 920px) { body.dv-hub .m-tabbar { display: none; } body.dv-hub { padding-bottom: 40px; } }

/* ============================================================
   आरती hub (body.dv-aarti)
   ============================================================ */
.dv-aarti .m-brand span { font-size: 1.25rem; }
.dv-aarti .av-diya { font-size: 1.15rem; }
.dv-aarti .see-all { font-size: .78rem; font-weight: 700; color: var(--primary-dark); }

/* hero banner */
.av-hero { position: relative; overflow: hidden; margin: 10px 14px 0; min-height: 150px; border-radius: 20px; padding: 22px 20px;
  background: linear-gradient(100deg, #7d1b1b 0%, #9c2828 42%, rgba(156,40,40,.4) 66%, rgba(156,40,40,0) 86%), var(--av-bg);
  background-size: cover, cover; background-position: left center, right center; background-repeat: no-repeat, no-repeat; box-shadow: var(--shadow); }
.av-hero-t { position: relative; z-index: 2; color: #fff; max-width: 62%; }
.av-hero-t h1 { font-family: "Yatra One", serif; font-size: 1.7rem; margin: 0; line-height: 1.1; }
.av-hero-t p { margin: 3px 0; font-size: .9rem; opacity: .95; }
.av-hero-t h2 { font-family: "Yatra One", serif; font-size: 1.3rem; margin: 5px 0 0; color: #ffd9a0; }

/* search bar (toggled) */
.av-searchbar { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 14px; }
.av-searchbar.open { max-height: 64px; padding-top: 12px; }
.av-searchbar input { width: 100%; border: 1px solid var(--border); border-radius: 999px; padding: 10px 16px; font-family: inherit; font-size: .9rem; background: #fff; outline: none; color: var(--text); }

/* deity filter chips */
.av-chips { padding-top: 16px; }
.av-chip { flex: 0 0 auto; width: 72px; background: none; border: 0; cursor: pointer; text-align: center; font-family: inherit; }
.av-chip-img { display: block; width: 62px; height: 62px; margin: 0 auto 6px; border-radius: 50%; overflow: hidden; border: 2px solid transparent; box-shadow: var(--shadow-sm); background: #fff; }
.av-chip-img img { width: 100%; height: 100%; object-fit: cover; }
.av-chip b { display: block; font-size: .7rem; color: var(--text-muted); font-weight: 600; }
.av-chip.active .av-chip-img { border-color: var(--primary); }
.av-chip.active b { color: var(--maroon); }

/* aarti list rows */
.av-list { display: flex; flex-direction: column; gap: 12px; padding: 0 14px; }
.av-item { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--border-soft); border-radius: 16px; box-shadow: var(--shadow-sm); padding: 10px; }
.av-thumb { flex: 0 0 auto; width: 62px; height: 62px; border-radius: 12px; overflow: hidden; background: #fbe7cf; display: grid; place-items: center; }
.av-thumb img { width: 100%; height: 100%; object-fit: cover; }
.av-ph { font-size: 1.6rem; }
.av-info { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.av-info b { color: var(--maroon); font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-info span { font-size: .76rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-info em { font-size: .7rem; color: var(--primary-dark); font-style: normal; margin-top: 2px; }
.dv-aarti .av-play { flex: 0 0 auto; width: 42px; height: 42px; border: 0; border-radius: 50%; cursor: pointer; background: #fde6d0; display: grid; place-items: center; }
.dv-aarti .av-play .play-badge { position: static; transform: none; width: auto; height: auto; box-shadow: none; background: none; color: var(--primary); font-size: .9rem; }
.dv-aarti .av-play.playing { background: var(--primary); }
.dv-aarti .av-play.playing .play-badge { color: #fff; }

/* आरती संग्रह collections */
.av-coll { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 14px; }
.av-coll-c { display: flex; flex-direction: column; align-items: flex-start; background: var(--card); border: 1px solid var(--border-soft); border-radius: 16px; box-shadow: var(--shadow-sm); padding: 14px; }
.av-coll-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 1.15rem; margin-bottom: 8px; }
.c-fav { background: #ec6ea0; } .c-dl { background: var(--primary); } .c-recent { background: #4a90d9; } .c-pl { background: #57b660; }
.av-coll-c b { color: var(--maroon); font-size: .9rem; }
.av-coll-c span { font-size: .7rem; color: var(--text-muted); margin-top: 2px; }

/* rich mini player (thumb + prev/next) */
.mini-player-rich { gap: 8px; }
.mp-thumb { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.mp-prev, .mp-next { border: 0; background: none; color: var(--maroon); font-size: 1rem; cursor: pointer; padding: 2px; flex: 0 0 auto; }
.mini-player-rich .mp-progress { flex: 0 0 38px; }
.mini-player-rich .mp-title { font-size: .82rem; }

@media (min-width: 640px) {
  .dv-aarti .av-list, .dv-aarti .av-hero, .dv-aarti .av-chips, .dv-aarti .av-coll, .dv-aarti .m-sec-head, .dv-aarti .av-searchbar { max-width: 760px; margin-inline: auto; }
}

/* shared top-nav emoji icon */
.cl-tb-emoji { font-size: 1.05rem; line-height: 1; }
