/*
Theme Name: Dev Duniya Premium
Theme URI: https://wordpress.org/
Author: Dev Duniya
Description: प्रीमियम भक्ति थीम, "Dev Duniya App Connector" प्लगइन के लिए। ऐप में जाने वाली हर पोस्ट (फ़ोटो कोट, टेक्स्ट कोट, वीडियो रील, म्यूज़िक), कथाएँ, भजन और व्रत-त्योहार वेबसाइट पर भी सुंदर दिखते हैं। किसी भी डोमेन पर चलती है, और प्लगइन का डेटा सिर्फ़ पढ़ती है, बदलती नहीं।
Version: 1.3.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: devduniya-premium
Tags: dark, blog, photography, grid-layout, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ---------- tokens ---------- */
:root {
  --accent: #F59E0B; --accent2: #E8590C; --bg-dark: #0f0b0a;
  --gold: linear-gradient(135deg, var(--accent), var(--accent2));
  --radius: 20px; --radius-sm: 12px;
  --font: "Mukta", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-quote: "Tiro Devanagari Hindi", "Mukta", serif;
  --font-display: "Rozha One", "Tiro Devanagari Hindi", serif;
  --header-h: 68px; --tabbar-h: 0px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
html[data-mode="dark"] {
  --bg: var(--bg-dark); --surface: #1a1311; --surface2: #241a16; --line: rgba(255, 220, 170, .10);
  --text: #f8efe4; --muted: #b9a594; --glass: rgba(20, 14, 12, .62); --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
html[data-mode="light"] {
  --bg: #fbf6ef; --surface: #ffffff; --surface2: #f5ebdf; --line: rgba(90, 50, 20, .12);
  --text: #2a1a12; --muted: #7a6656; --glass: rgba(255, 250, 244, .78); --shadow: 0 16px 40px rgba(80, 40, 10, .12);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased; padding-bottom: var(--tabbar-h);
  background-image: radial-gradient(1200px 600px at 85% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
                    radial-gradient(900px 500px at -10% 10%, color-mix(in srgb, var(--accent2) 10%, transparent), transparent 60%);
  background-attachment: fixed;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .4em; font-weight: 700; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 32px); }
.wrap--mid { width: min(900px, 100% - 32px); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 999; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ic { flex: none; }
.meta { color: var(--muted); font-size: 14px; display: flex; gap: 14px; flex-wrap: wrap; margin: 0; }
.site-main { min-height: 60vh; padding-bottom: 48px; }

/* ---------- buttons & chips ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 16px; transition: transform .2s var(--ease), box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: #1b0f05; box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn--gold:hover { color: #1b0f05; }
.btn--ghost { border: 1px solid var(--line); background: var(--surface); }
.btn--sm { padding: 8px 16px; font-size: 15px; }
.btn-ic { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; transition: background .2s, color .2s, transform .2s; font-weight: 700; }
.btn-ic:hover { background: var(--surface2); color: var(--accent); }
.btn-ic--glass { background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; }
.btn-round { width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: #1b0f05; display: grid; place-items: center; flex: none; box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 40%, transparent); }
.btn-wa:hover { color: #25D366; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 15px; white-space: nowrap; transition: all .2s var(--ease); }
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip.is-active { background: var(--gold); color: #1b0f05; border-color: transparent; }
.chip--sm { padding: 4px 12px; font-size: 13.5px; }
.chip--glass { background: rgba(0, 0, 0, .38); color: #fff; border-color: rgba(255, 255, 255, .18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.chips-wrap { margin: 8px 0 22px; }
.chips { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; -webkit-mask: linear-gradient(90deg, #000 92%, transparent); mask: linear-gradient(90deg, #000 92%, transparent); }
.chips::-webkit-scrollbar { display: none; }
.chips--sub { margin-top: 6px; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .04em; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--glass); backdrop-filter: saturate(150%) blur(16px); -webkit-backdrop-filter: saturate(150%) blur(16px); border-bottom: 1px solid var(--line); }
.header__in { height: var(--header-h); display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.brand:hover { color: var(--text); }
.brand__mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--gold); color: #1b0f05; font-size: 22px; font-family: var(--font-display); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.brand__logo { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; }
.nav { margin-left: auto; }
.nav__list, .nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav li { position: relative; }
.nav a { display: block; padding: 8px 14px; border-radius: 999px; font-weight: 600; color: var(--muted); }
.nav a:hover, .nav .current-menu-item > a { color: var(--text); background: var(--surface2); }
.nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px; min-width: 200px; box-shadow: var(--shadow); }
.nav li:hover > .sub-menu { display: flex; }
.header__tools { display: flex; align-items: center; gap: 4px; }

/* search */
.search-layer { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); display: flex; justify-content: center; padding-top: 14vh; }
.search-layer[hidden] { display: none; }
.search-layer__box { width: min(640px, 92vw); height: 60px; display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 18px; padding: 0 8px 0 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.search-layer form { flex: 1; display: flex; align-items: center; gap: 10px; color: var(--muted); }
.search-layer input, .search-form input[type=search] { flex: 1; border: 0; background: transparent; color: var(--text); font: 500 18px var(--font); outline: none; }
.search-form { display: flex; gap: 8px; max-width: 420px; margin: 16px auto; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 18px; }
.search-form .search-submit { background: var(--gold); border: 0; border-radius: 999px; padding: 8px 16px; font-weight: 700; color: #1b0f05; cursor: pointer; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- page head ---------- */
.page-head { padding: 34px 0 6px; }
.page-head h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 5vw, 48px); margin: 0; }
.page-head p { color: var(--muted); margin: 6px 0 0; }
.page-head__emoji { font-size: 38px; display: block; margin-bottom: 4px; }
.page-head--center { text-align: center; padding-top: 44px; }
.page-head--center p { max-width: 560px; margin-inline: auto; }

/* ---------- hero (home) ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 56px 0 40px; }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(42px, 6.4vw, 78px); line-height: 1.08; margin: 0 0 16px;
  background: linear-gradient(120deg, var(--text) 30%, var(--accent) 75%, var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 20px; color: var(--muted); max-width: 540px; margin: 0 0 26px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.next-fest { margin-top: 30px; display: inline-flex; align-items: center; gap: 16px; padding: 12px 22px 12px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.next-fest:hover { color: var(--text); border-color: var(--accent); }
.next-fest__days { width: 62px; height: 62px; border-radius: 14px; background: var(--gold); color: #1b0f05; display: grid; place-items: center; align-content: center; line-height: 1; }
.next-fest__days b { font-size: 24px; } .next-fest__days small { font-size: 12px; font-weight: 700; }
.next-fest small, .next-fest em { display: block; color: var(--muted); font-size: 13px; font-style: normal; }
.next-fest strong { display: block; font-size: 18px; }
.hero__card { position: relative; aspect-ratio: 4/5; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); display: grid; place-items: center; transform: rotate(1.5deg); transition: transform .4s var(--ease); isolation: isolate; }
.hero__card:hover { transform: rotate(0) scale(1.01); color: #fff; }
.hero__card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); pointer-events: none; }
.hero__img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.hero__quote { position: relative; z-index: 1; padding: 40px; color: #fff; font: 400 clamp(22px, 2.4vw, 30px)/1.6 var(--font-quote); text-align: center; text-shadow: 0 2px 12px rgba(0, 0, 0, .3); }
.hero__quote cite { display: block; margin-top: 14px; font: 600 16px var(--font); opacity: .85; font-style: normal; }
.hero__badge { position: absolute; top: 16px; left: 16px; z-index: 2; background: rgba(0, 0, 0, .45); color: #fff; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; backdrop-filter: blur(8px); }

/* the gradient var: background for quote media */
.card__media, .hero__card, .single__media, .reel, .story__head, .story-card__img, .collection { background: var(--g, #2a1a12); }

/* ---------- strips ---------- */
.strip { margin: 20px 0 34px; }
.strip__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 34px 0 16px; }
.strip__head h2 { font-size: 26px; margin: 0; }
.strip__head a { color: var(--accent); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.strip__head--feed { margin-bottom: 4px; }

/* ---------- feed grid & cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); animation: rise .5s var(--ease) both; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.card__media { position: relative; aspect-ratio: 4/5; overflow: hidden; isolation: isolate; }
.card__link { position: absolute; inset: 0; display: block; color: #fff; }
.card__link:hover { color: #fff; }
.card__blur { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); max-width: none; object-fit: cover; filter: blur(22px) brightness(.7) saturate(1.2); z-index: -1; }
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
.card:hover .card__img { transform: scale(1.03); }
.card__overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 16px 14px; font: 500 15px/1.5 var(--font-quote); color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card__quote { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 26px 22px; }
.card__quote blockquote { margin: 0; font: 400 21px/1.65 var(--font-quote); text-shadow: 0 2px 10px rgba(0, 0, 0, .25); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; }
.card__quote blockquote.is-long { font-size: 17px; line-height: 1.6; }
.card__quote cite { margin-top: 12px; font: 600 14px var(--font); font-style: normal; opacity: .85; }
.card__om { font-family: Georgia, serif; font-size: 54px; line-height: .6; opacity: .35; margin-bottom: 10px; color: #fff; }
.card__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .38); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .35); transition: opacity .3s, transform .3s; z-index: 2; }
.card__play:hover { transform: scale(1.08); }
.card__media.is-playing .card__play { opacity: 0; }
.card__media.is-playing:hover .card__play { opacity: 1; }
.card__caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 40px 14px 12px; color: #fff; font-size: 14.5px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
.card__caption:hover { color: #fff; }
.card__music { position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .4); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .25); }
.card__music .ic { width: 18px; height: 18px; }
.card__music.is-playing { background: var(--gold); color: #1b0f05; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 50% { box-shadow: 0 0 0 10px transparent; } }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 10px 10px 14px; min-height: 58px; }
.share { display: flex; align-items: center; gap: 0; }
.share .btn-ic { width: 36px; height: 36px; color: var(--muted); }
.share .btn-ic .ic { width: 19px; height: 19px; }
.more { display: flex; justify-content: center; margin: 34px 0 10px; }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty span { font-size: 54px; display: block; }
.empty--big h1 { color: var(--text); font-family: var(--font-display); font-weight: 400; font-size: 40px; }

/* pagination */
.pagination .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 34px 0; }
.page-numbers { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; }
.page-numbers.current { background: var(--gold); color: #1b0f05; border-color: transparent; }

/* ---------- single post ---------- */
.post-view { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 44px; padding: 34px 0 10px; align-items: start; }
.single__media { position: relative; border-radius: 26px; overflow: hidden; min-height: 420px; max-height: 82vh; display: grid; place-items: center; isolation: isolate; box-shadow: var(--shadow); position: sticky; top: calc(var(--header-h) + 18px); }
.single__img { width: 100%; max-height: 82vh; object-fit: contain; }
.single__media video { width: 100%; max-height: 82vh; background: #000; }
.single__quote { padding: 60px 44px; text-align: center; color: #fff; }
.single__quote blockquote { margin: 0; font: 400 clamp(24px, 2.6vw, 32px)/1.65 var(--font-quote); text-shadow: 0 2px 14px rgba(0, 0, 0, .3); }
.single__quote blockquote.is-long { font-size: 21px; }
.single__quote cite { display: block; margin-top: 18px; font: 600 17px var(--font); font-style: normal; opacity: .9; }
.single__side { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; padding-top: 8px; }
.single__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3.4vw, 40px); margin: 0; }
.single__text { font: 400 20px/1.8 var(--font-quote); white-space: normal; }
.single__author { color: var(--muted); font-weight: 600; margin: -6px 0 0; }
.single__share { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.single__share > span { font-weight: 700; font-size: 15px; }
.single__nav { display: flex; justify-content: space-between; gap: 12px; width: 100%; margin: 18px 0; }
.single__nav a { padding: 10px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-card { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 18px 14px 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.player-card strong { display: block; } .player-card small { color: var(--muted); }
.player-card .eq { margin-left: auto; }
.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; opacity: .3; }
.eq i { width: 4px; background: var(--accent); border-radius: 2px; height: 30%; }
.js-music.is-playing ~ .eq, .player-card:has(.is-playing) .eq { opacity: 1; }
.player-card:has(.is-playing) .eq i { animation: eq 1s infinite ease-in-out; }
.eq i:nth-child(2) { animation-delay: .2s !important; } .eq i:nth-child(3) { animation-delay: .4s !important; } .eq i:nth-child(4) { animation-delay: .1s !important; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

/* ---------- reels ---------- */
.page-template-templatesreels-php { --tabbar-h: 0px; }
.page-template-templatesreels-php .site-footer { display: none; }
.page-template-templatesreels-php .site-main { padding-bottom: 0; }
.reels-page { position: relative; background: #000; }
.reels { height: calc(100dvh - var(--header-h)); overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.reels::-webkit-scrollbar { display: none; }
.reel { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; isolation: isolate; display: grid; place-items: center; color: #fff; }
.reel__stage { position: absolute; inset: 0; display: grid; place-items: center; }
.reel__blur { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); max-width: none; object-fit: cover; filter: blur(30px) brightness(.55); z-index: -1; }
.reel__img, .reel__video { position: relative; width: 100%; height: 100%; object-fit: contain; max-width: 560px; margin: auto; }
.reel__quote { max-width: 560px; padding: 40px 34px; text-align: center; }
.reel__quote blockquote { margin: 0; font: 400 clamp(24px, 4.6vw, 34px)/1.7 var(--font-quote); text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
.reel__quote blockquote.is-long { font-size: clamp(19px, 3.6vw, 24px); }
.reel__quote cite { display: block; margin-top: 18px; font: 600 17px var(--font); font-style: normal; opacity: .9; }
.reel__info { position: absolute; left: 0; right: 76px; bottom: 0; padding: 60px 18px 26px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; z-index: 2; }
.reel__cap { margin: 0; font-size: 16px; line-height: 1.5; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.reel__author { margin: 0; opacity: .85; font-weight: 600; }
.reel .chip { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .25); backdrop-filter: blur(8px); }
.reel__side { position: absolute; right: 12px; bottom: 30px; z-index: 3; }
.reel__side .share { flex-direction: column; gap: 10px; }
.reel__side .btn-ic { width: 48px; height: 48px; color: #fff; background: rgba(0, 0, 0, .35); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .2); }
.reels-top { position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: linear-gradient(rgba(0, 0, 0, .55), transparent); }
.reels-top .chips { flex: 1; }
.chips--glass .chip { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .2); backdrop-filter: blur(8px); }
.chips--glass .chip.is-active { background: var(--gold); color: #1b0f05; }
.reels-hint { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); margin: 0; font-size: 12px; color: rgba(255, 255, 255, .55); pointer-events: none; z-index: 4; animation: fadeout 4s 3s forwards; }
@keyframes fadeout { to { opacity: 0; } }

/* ---------- stories ---------- */
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.story-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.story-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.story-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.story-card__img { position: relative; aspect-ratio: 16/10; display: grid; place-items: center; overflow: hidden; }
.story-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.story-card:hover .story-card__img img { transform: scale(1.05); }
.story-card__img .chip { position: absolute; top: 12px; left: 12px; }
.story-card__ph { font-size: 46px; }
.story-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.story-card__body h3 { font-size: 20px; margin: 0; }
.story-card__body p { color: var(--muted); margin: 0 0 6px; font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story-card .meta { margin-top: auto; font-size: 13px; }
.story { padding-bottom: 20px; }
.story__head { position: relative; padding: 90px 0 46px; color: #fff; overflow: hidden; isolation: isolate; }
.story__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.story__head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .78)); }
.story__head h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 5vw, 54px); margin: 14px 0 10px; }
.story__head .meta { color: rgba(255, 255, 255, .85); }
.story__tools { display: flex; align-items: center; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.story__tools .share { margin-left: auto; }
.story__body { font: 400 20px/1.95 var(--font-quote); }
.story__end { text-align: center; color: var(--accent); font: 400 24px var(--font-display); margin: 36px 0; }
.prose { font-size: 18px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius-sm); height: auto; }
.page-thumb img { border-radius: var(--radius); margin-bottom: 20px; width: 100%; height: auto; }

/* ---------- bhajan ---------- */
.bhajan { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 18px; }
.collections { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.collection { position: relative; aspect-ratio: 1; border-radius: 22px; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 14px; text-align: left; isolation: isolate; transition: transform .3s var(--ease), box-shadow .3s; }
.collection img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.collection::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 35%, rgba(0, 0, 0, .78)); }
.collection:hover { transform: translateY(-3px); }
.collection.is-active { box-shadow: 0 0 0 3px var(--accent), var(--shadow); }
.collection__ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px; z-index: -1; padding-bottom: 30px; }
.collection__name { font-weight: 700; font-size: 16.5px; line-height: 1.3; }
.collection__count { font-size: 13px; opacity: .8; }
.tracks { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 20px; position: sticky; top: calc(var(--header-h) + 18px); }
.tracks__title { font-size: 22px; }
.tracks__list { list-style: none; margin: 0; padding: 0; max-height: 62vh; overflow: auto; }
.track { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-radius: 14px; text-align: left; }
.track:hover { background: var(--surface2); }
.track.is-on { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.track__n { width: 28px; text-align: center; color: var(--muted); font-weight: 700; }
.track__t { flex: 1; font-weight: 600; }
.track__d { color: var(--muted); font-size: 14px; }
.player { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + var(--tabbar-h)); z-index: 60; width: min(760px, 100% - 24px); display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.player[hidden] { display: none; }
.player__cover { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; }
.player__info { flex: 1; min-width: 0; }
.player__title { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__bar { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.player__seek { flex: 1; accent-color: var(--accent); }
.player__btns { display: flex; align-items: center; gap: 4px; }
.has-player .site-footer { padding-bottom: 110px; }

/* mini player for post music */
.mini-player { position: fixed; right: 16px; bottom: calc(16px + var(--tabbar-h)); z-index: 60; display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 6px; background: var(--glass); backdrop-filter: blur(18px); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); max-width: min(360px, 90vw); }
.mini-player[hidden] { display: none; }
.mini-player__title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-player .js-mini-toggle { background: var(--gold); color: #1b0f05; }

/* ---------- festivals ---------- */
.fest-hero { display: flex; align-items: center; gap: 26px; padding: 26px; border-radius: 26px; background: var(--gold); color: #1b0f05; margin: 20px 0 30px; box-shadow: var(--shadow); }
.fest-hero__days { min-width: 110px; height: 110px; border-radius: 22px; background: rgba(255, 255, 255, .3); display: grid; place-items: center; align-content: center; line-height: 1; }
.fest-hero__days b { font-size: 46px; } .fest-hero__days span { font-weight: 700; font-size: 14px; }
.fest-hero small { font-weight: 700; opacity: .8; } .fest-hero h2 { font-family: var(--font-display); font-weight: 400; font-size: 36px; margin: 2px 0; } .fest-hero p { margin: 0; font-weight: 600; }
.fest-month h3 { color: var(--accent); font-size: 20px; margin: 26px 0 10px; }
.fest-month ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fest { display: flex; align-items: center; gap: 16px; padding: 12px 18px 12px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.fest__date { width: 58px; height: 58px; border-radius: 14px; background: var(--surface2); display: grid; place-items: center; align-content: center; line-height: 1.1; flex: none; }
.fest__date b { font-size: 22px; } .fest__date small { font-size: 11px; color: var(--muted); }
.fest__body { flex: 1; } .fest__body strong { display: block; font-size: 18px; } .fest__body small { color: var(--muted); }
.fest__left { font-weight: 700; color: var(--accent); white-space: nowrap; font-size: 15px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; }
.footer__in { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; padding: 46px 0 30px; }
.footer__brand p { color: var(--muted); max-width: 360px; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; }
.footer__cols h4 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__bottom { border-top: 1px solid var(--line); padding: 18px 0 22px; color: var(--muted); font-size: 14px; text-align: center; }

/* ---------- mobile app-like tab bar ---------- */
.tabbar { display: none; }
.toast { position: fixed; left: 50%; bottom: calc(90px + var(--tabbar-h)); transform: translate(-50%, 20px); background: var(--text); color: var(--bg); padding: 10px 20px; border-radius: 999px; font-weight: 700; opacity: 0; pointer-events: none; transition: all .3s var(--ease); z-index: 100; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* comments */
.comment-list { list-style: none; padding: 0; }
.comment-body { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin-bottom: 12px; }
.comment-form input, .comment-form textarea { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--text); padding: 10px 14px; font: inherit; }
.comment-form .submit { background: var(--gold); border: 0; border-radius: 999px; padding: 10px 22px; font-weight: 700; color: #1b0f05; cursor: pointer; }

/* WordPress core classes */
.alignleft { float: left; margin: 0 20px 10px 0; } .alignright { float: right; margin: 0 0 10px 20px; } .aligncenter { margin-inline: auto; }
.wp-caption-text { color: var(--muted); font-size: 14px; text-align: center; }
.sticky, .bypostauthor, .gallery-caption { }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .story-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-view { grid-template-columns: 1fr; gap: 26px; }
  .single__media { position: relative; top: 0; }
  .bhajan { grid-template-columns: 1fr; }
  .tracks { position: static; }
}
@media (max-width: 860px) {
  :root { --header-h: 60px; --tabbar-h: 68px; }
  .nav, .hide-sm { display: none; }
  .header__tools { margin-left: auto; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 30px 0 20px; text-align: left; }
  .hero__card { max-width: 420px; width: 100%; margin-inline: auto; transform: none; }
  .hero p { font-size: 18px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card { border-radius: 16px; }
  .card__quote { padding: 16px 12px; }
  .card__quote blockquote { font-size: 15.5px; -webkit-line-clamp: 8; }
  .card__quote blockquote.is-long { font-size: 13.5px; }
  .card__overlay { font-size: 13px; padding: 40px 10px 10px; -webkit-line-clamp: 3; }
  .card__foot { padding: 6px 4px 6px 8px; min-height: 48px; }
  .card__foot .chip--sm { font-size: 12px; padding: 3px 9px; max-width: 46%; overflow: hidden; text-overflow: ellipsis; }
  .share .btn-ic { width: 30px; height: 30px; }
  .share .btn-ic .ic { width: 16px; height: 16px; }
  .card__foot .js-copy, .card__foot a[download] { display: none; }
  .story-grid, .story-grid--3 { grid-template-columns: 1fr; }
  .story-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .story-grid--4 .story-card__body p { display: none; }
  .footer__in { grid-template-columns: 1fr; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--glass); backdrop-filter: saturate(150%) blur(18px); -webkit-backdrop-filter: saturate(150%) blur(18px); border-top: 1px solid var(--line); }
  .tabbar__item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; font-weight: 600; color: var(--muted); }
  .tabbar__item.is-active { color: var(--accent); }
  .tabbar__item.is-active .ic { filter: drop-shadow(0 2px 8px color-mix(in srgb, var(--accent) 60%, transparent)); }
  .page-template-templatesreels-php { --tabbar-h: 68px; }
  .reels { height: calc(100dvh - var(--header-h) - var(--tabbar-h)); }
  .fest-hero { flex-direction: column; text-align: center; }
  .single__quote { padding: 40px 22px; }
}
@media (max-width: 380px) { .grid { gap: 8px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- apps ---------- */
.apps { display: grid; gap: 14px; margin: 10px 0 40px; }
.apps--row { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin: 0; }
.app { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.app__icon { width: 60px; height: 60px; border-radius: 16px; object-fit: cover; flex: none; background: var(--surface2); }
.app__icon--letter { display: grid; place-items: center; font: 800 26px var(--font); background: var(--gold); color: #1b0f05; }
.app__body { flex: 1; min-width: 0; }
.app__name { margin: 0; font-size: 17px; line-height: 1.3; }
.app__desc { margin: 4px 0 0; font-size: 14px; line-height: 1.45; opacity: .75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.app__btn { flex: none; }
@media (max-width: 480px) { .app__btn span { display: none; } .app__btn { padding: 10px; } }

/* ---------- download gate ---------- */
.gate { text-align: center; padding: 30px 0 60px; }
.gate__ic { width: 64px; height: 64px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--gold); color: #1b0f05; }
.gate h1 { margin: 16px 0 6px; font-size: clamp(24px, 4vw, 32px); }
.gate__name { margin: 0 0 18px; opacity: .8; }
.gate__ad { min-height: 120px; margin: 18px auto; max-width: 728px; display: grid; place-items: center; overflow: hidden; }
.gate__wait { font-size: 17px; }
.gate__btn[hidden] { display: none; }
.gate__back { opacity: .7; font-size: 15px; }
.btn--apps .ic { width: 18px; height: 18px; }
@media (max-width: 380px) { .btn--apps span { display: none; } .btn--apps { padding: 8px; } }

/* ---------- language sheet ---------- */
.lang-sheet { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .55); display: flex; align-items: flex-end; justify-content: center; }
.lang-sheet[hidden] { display: none; }
.lang-sheet__box { width: min(560px, 100%); max-height: 82dvh; overflow-y: auto; background: var(--bg); color: var(--text); border-radius: 24px 24px 0 0; padding: 16px 18px 28px; box-shadow: 0 -10px 40px rgba(0, 0, 0, .4); }
@media (min-width: 700px) { .lang-sheet { align-items: center; } .lang-sheet__box { border-radius: 24px; } }
.lang-sheet__head { display: flex; justify-content: space-between; align-items: center; font-size: 18px; }
.lang-sheet__group { margin: 14px 0 8px; font-size: 13px; font-weight: 700; opacity: .65; letter-spacing: .02em; }
.lang-sheet__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.lang-opt { padding: 11px 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; color: inherit; text-align: center; }
.lang-opt:hover { border-color: var(--accent); }
.lang-opt.is-on { background: var(--gold); color: #1b0f05; border-color: transparent; font-weight: 700; }
.lang-sheet__note { margin: 16px 0 0; font-size: 13px; opacity: .6; text-align: center; }
/* hide Google's own bar */
.goog-te-banner-frame, iframe.skiptranslate, .goog-te-balloon-frame, #goog-gt-tt, .goog-te-gadget { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
.footer__bottom a { color: var(--accent); }

/* ---------- promotion ---------- */
.promo { margin: 22px 0; }
.grid > .promo { grid-column: 1 / -1; margin: 6px 0; }
.promo__in { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 22px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); color: inherit; }
.promo__img { width: 38%; max-width: 260px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; flex: none; }
.promo__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.promo__tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; opacity: .6; text-transform: uppercase; }
.promo__title { font-size: 18px; line-height: 1.3; }
.promo__text { font-size: 14px; opacity: .8; line-height: 1.45; }
.promo__btn { margin-top: 4px; }
.promo__btn .ic { width: 16px; height: 16px; }
@media (max-width: 520px) { .promo__in { flex-direction: column; align-items: stretch; } .promo__img { width: 100%; max-width: none; } }

/* ---------- install / notifications ---------- */
.footer__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.footer__actions .btn[hidden] { display: none; }
.push-ask { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 14px; border-radius: 18px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); box-shadow: 0 18px 40px rgba(0,0,0,.45); animation: ddtUp .35s ease; max-width: 520px; margin: 0 auto; }
.push-ask__ic { font-size: 22px; }
.push-ask__t { flex: 1 1 calc(100% - 40px); font-weight: 600; }
.push-ask .btn { flex: 1; justify-content: center; }
@keyframes ddtUp { from { transform: translateY(20px); opacity: 0; } }
.ddt-toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; z-index: 70; padding: 10px 18px; border-radius: 99px; background: #111; color: #fff; font-weight: 600; transition: .3s; }
.ddt-toast.is-in { transform: translate(-50%, 0); opacity: 1; }
@media (min-width: 900px) { .push-ask { bottom: 20px; } }
