/*
Theme Name: Krishna Gyan Sagar Premium Hindi V4.8 Performance
Theme URI: https://krishnagyansagar.com/
Author: Krishna Gyan Sagar
Description: Performance optimized Hindi OTT theme with Blog, videos, deferred live player and lightweight canvas particles.
Version: 4.8.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: kgs-premium-v3
*/

:root {
  --bg: #050505;
  --panel: #0d0d0f;
  --text: #f4efe7;
  --muted: #9a9388;
  --gold: #c9a96b;
  --gold-hi: #ead39d;
  --line: rgba(201,169,107,.18);
  --max: 1500px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans Devanagari", "Nirmala UI", sans-serif;
}

body.modal-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(201,169,107,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,169,107,.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 72%);
}

.cursor-light {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  background: radial-gradient(circle, rgba(201,169,107,.07), transparent 67%);
  transform: translate(-50%, -50%);
  transition: opacity .25s ease;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
  padding: 16px 24px;
  transition: .35s ease;
}

.topbar.scrolled {
  padding-top: 8px;
}

.topbar-inner {
  width: min(100%, var(--max));
  min-height: 72px;
  margin: 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 22px;
  background: rgba(7,7,8,.72);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}

.topbar.scrolled .topbar-inner {
  border-color: var(--line);
  background: rgba(5,5,6,.92);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #0d0b07;
  font-family: "Noto Serif Devanagari", serif;
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(145deg, #f0d79e, #b18b4e 55%, #715532);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 14px 34px rgba(201,169,107,.18);
}

.logo strong,
.logo small {
  display: block;
}

.logo strong {
  font-size: 14px;
}

.logo small {
  margin-top: 3px;
  color: #7f786d;
  font-size: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  position: relative;
  color: #b2aba0;
  font-size: 13px;
  font-weight: 600;
  transition: .25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -9px;
  height: 1px;
  background: var(--gold);
  transition: .25s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a:hover::after {
  right: 0;
}

.search-trigger {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.025);
  color: var(--text);
  font-size: 25px;
}

.hero-v3 {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: 150px 34px 90px;
  display: grid;
  place-items: center;
  isolation: isolate;
  background:
    radial-gradient(circle at 78% 45%, rgba(201,169,107,.10), transparent 23%),
    radial-gradient(circle at 20% 30%, rgba(95,73,150,.07), transparent 20%),
    linear-gradient(180deg, #070707, #050505);
}

.hero-v3::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, #070708);
  pointer-events: none;
}

.hero-v3-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  align-items: center;
  gap: clamp(60px, 8vw, 130px);
}

.hero-v3-copy {
  position: relative;
  z-index: 4;
}

.eyebrow-v3,
.zone-kicker {
  color: var(--gold-hi);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.hero-v3 h1,
.zone-head h2,
.library-head h2,
.search-panel-inner h2 {
  font-family: "Noto Serif Devanagari", "Nirmala UI", serif;
}

.hero-v3 h1 {
  margin: 20px 0 0;
  max-width: 820px;
  font-size: clamp(54px, 6.7vw, 104px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -.02em;
}

.hero-v3 h1 em,
.zone-head h2 em,
.library-head h2 em {
  color: var(--gold-hi);
  font-style: normal;
}

.hero-v3 p {
  max-width: 700px;
  margin: 28px 0 0;
  color: #aaa297;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.85;
}

.hero-v3-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-btn,
.secondary-btn {
  min-height: 56px;
  padding: 0 24px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  transition: .3s ease;
}

.primary-btn {
  color: #0b0906;
  background: linear-gradient(135deg, #ecd49c, #aa8347);
  box-shadow: 0 18px 40px rgba(201,169,107,.18);
}

.primary-btn span {
  color: #b50000;
  animation: livePulse 1.25s ease-in-out infinite;
}

.secondary-btn {
  color: #d8d1c6;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.025);
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-4px);
}

.hero-mini-stats {
  display: flex;
  gap: 0;
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.hero-mini-stats div {
  padding-right: 28px;
  margin-right: 28px;
  border-right: 1px solid rgba(255,255,255,.07);
}

.hero-mini-stats div:last-child {
  border-right: 0;
}

.hero-mini-stats strong,
.hero-mini-stats span {
  display: block;
}

.hero-mini-stats strong {
  font-family: "Noto Serif Devanagari", serif;
  color: var(--gold-hi);
  font-size: 26px;
}

.hero-mini-stats span {
  color: #7c756c;
  font-size: 11px;
}

.hero-v3-visual {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
}

.spiritual-core {
  position: relative;
  z-index: 3;
  width: min(420px, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid rgba(234,211,157,.28);
  background:
    radial-gradient(circle at 50% 42%, rgba(201,169,107,.14), transparent 32%),
    radial-gradient(circle, #15110c, #090909 62%);
  box-shadow:
    inset 0 0 90px rgba(201,169,107,.07),
    0 50px 130px rgba(0,0,0,.58),
    0 0 0 18px rgba(201,169,107,.025);
  animation: coreFloat 5.5s ease-in-out infinite;
}

.core-symbol {
  color: var(--gold-hi);
  font-size: 132px;
  line-height: 1;
  text-shadow: 0 0 40px rgba(201,169,107,.22);
}

.spiritual-core small {
  position: absolute;
  bottom: 58px;
  color: #8d8374;
  font-size: 9px;
  letter-spacing: .14em;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201,169,107,.16);
}

.orbit-1 {
  width: 500px;
  height: 500px;
  animation: spin 18s linear infinite;
}

.orbit-2 {
  width: 620px;
  height: 620px;
  border-style: dashed;
  opacity: .55;
  animation: spinReverse 28s linear infinite;
}

.orbit-3 {
  width: 760px;
  height: 760px;
  opacity: .23;
  animation: pulseOrbit 4s ease-in-out infinite;
}

.hero-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .14;
  animation: auroraMove 12s ease-in-out infinite;
}

.aurora-a {
  width: 430px;
  height: 430px;
  background: #c9a96b;
  right: 8%;
  top: 18%;
}

.aurora-b {
  width: 360px;
  height: 360px;
  background: #5b3f8f;
  left: 8%;
  bottom: 10%;
  animation-delay: -5s;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particles .particle {
  position: absolute;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234,211,157,.95), rgba(201,169,107,0));
  animation: particleRise var(--d) linear infinite;
  animation-delay: var(--delay);
  opacity: var(--o);
}

.content-zone,
.library-zone {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 110px 34px;
}

.content-zone > *,
.library-zone > * {
  width: min(100%, var(--max));
  margin-left: auto;
  margin-right: auto;
}

.zone-head,
.library-head {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 42px;
}

.zone-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ff6767;
  font-size: 11px;
  font-weight: 700;
}

.zone-label i,
.live-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b3b;
  box-shadow: 0 0 0 6px rgba(255,59,59,.12);
  animation: livePulse 1.2s ease-in-out infinite;
}

.zone-head h2,
.library-head h2 {
  margin: 12px 0 0;
  font-size: clamp(46px, 5.5vw, 80px);
  line-height: 1.12;
  font-weight: 600;
}

.zone-head p {
  max-width: 690px;
  margin: 12px 0 0;
  color: #948d83;
  line-height: 1.8;
}

.rail-controls {
  display: flex;
  gap: 8px;
}

.rail-controls button {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  color: #d9d2c7;
  background: rgba(255,255,255,.025);
  transition: .25s ease;
}

.rail-controls button:hover {
  border-color: var(--line);
  background: rgba(201,169,107,.08);
  transform: translateY(-2px);
}

.live-zone {
  background:
    radial-gradient(circle at 12% 30%, rgba(160,0,0,.12), transparent 22%),
    radial-gradient(circle at 88% 65%, rgba(201,169,107,.05), transparent 18%),
    linear-gradient(180deg, #080709, #080808);
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.zone-glow {
  position: absolute;
  right: -120px;
  top: 10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(150,0,0,.10);
  filter: blur(90px);
}

.live-feature-wrap {
  margin-bottom: 26px;
}

.live-feature {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  min-height: 500px;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255,82,82,.18);
  background: #0b090a;
  box-shadow: 0 35px 90px rgba(0,0,0,.38);
  transition: .35s ease;
}

.live-feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 44px 110px rgba(0,0,0,.46);
}

.live-feature-media {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(201,169,107,.16), transparent 19%),
    linear-gradient(145deg, #1a0f0f, #080808 62%, #1a130d);
}

.live-feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,.72), transparent 52%),
    radial-gradient(circle at 50% 50%, transparent, rgba(0,0,0,.38) 76%);
}

.live-scan {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(255,70,70,.06), transparent);
  transform: translateY(-100%);
  animation: scanDown 4s linear infinite;
}

.live-feature-symbol {
  position: relative;
  z-index: 2;
  color: rgba(234,211,157,.78);
  font-size: 150px;
  text-shadow: 0 0 44px rgba(201,169,107,.16);
  animation: coreFloat 5s ease-in-out infinite;
}

.live-badge {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(170,0,0,.88);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
}

.live-badge.big {
  padding: 10px 14px;
}

.hero-play {
  position: absolute;
  z-index: 4;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  color: #0c0906;
  background: linear-gradient(135deg, #eed9a6, #a98246);
  box-shadow: 0 20px 50px rgba(0,0,0,.36);
  transition: .3s ease;
}

.live-feature:hover .hero-play {
  transform: scale(1.08);
}

.live-feature-copy {
  padding: 58px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.live-feature-copy > span {
  color: #f07171;
  font-size: 11px;
  font-weight: 700;
}

.live-feature-copy h3 {
  margin: 16px 0 0;
  font-family: "Noto Serif Devanagari", serif;
  font-size: clamp(34px, 3.4vw, 54px);
  line-height: 1.25;
  font-weight: 600;
}

.live-feature-copy p {
  margin: 18px 0 0;
  color: #948c82;
  line-height: 1.8;
}

.watch-live-btn {
  align-self: flex-start;
  margin-top: 28px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,75,75,.28);
  color: #fff;
  background: rgba(160,0,0,.20);
  transition: .3s ease;
}

.watch-live-btn:hover {
  background: rgba(160,0,0,.32);
  transform: translateX(4px);
}

.astrology-zone {
  background:
    radial-gradient(circle at 80% 18%, rgba(86,56,151,.14), transparent 23%),
    radial-gradient(circle at 12% 75%, rgba(48,73,155,.09), transparent 19%),
    linear-gradient(180deg, #08080c, #07070a);
}

.zodiac-wheel {
  position: absolute;
  right: -120px;
  top: 10%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(155,127,214,.10);
  font-size: 180px;
  border: 1px solid rgba(155,127,214,.07);
  box-shadow: 0 0 0 48px rgba(155,127,214,.02), 0 0 0 96px rgba(155,127,214,.01);
  animation: spin 34s linear infinite;
}

.astrology-zone .zone-kicker {
  color: #b9a3e8;
}

.astrology-zone .content-card:hover {
  border-color: rgba(155,127,214,.34);
  box-shadow: 0 32px 70px rgba(37,21,79,.32);
}

.astrology-zone .content-thumb {
  background:
    radial-gradient(circle at 50% 42%, rgba(155,127,214,.18), transparent 19%),
    linear-gradient(145deg, #181225, #09090d 62%, #11152b);
}

.astrology-zone .content-thumb::before {
  content: "✦";
  color: rgba(184,164,231,.60);
}

.devotional-zone {
  background:
    radial-gradient(circle at 20% 20%, rgba(201,169,107,.07), transparent 18%),
    linear-gradient(180deg, #080807, #070707);
}

.temple-rays {
  position: absolute;
  left: 50%;
  top: -250px;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(201,169,107,.018) 0deg 4deg,
    transparent 4deg 12deg
  );
  mask-image: radial-gradient(circle, black, transparent 70%);
  animation: spin 80s linear infinite;
}

.devotional-zone .content-thumb {
  background:
    radial-gradient(circle at 50% 42%, rgba(201,169,107,.15), transparent 20%),
    linear-gradient(145deg, #21190f, #090909 62%, #15110c);
}

.devotional-zone .content-thumb::before {
  content: "ॐ";
  color: rgba(234,211,157,.60);
}

.bhajan-zone {
  background:
    radial-gradient(circle at 70% 35%, rgba(185,114,46,.12), transparent 22%),
    linear-gradient(180deg, #0a0806, #070707);
}

.music-wave {
  position: absolute;
  inset: 0;
  opacity: .28;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 26px,
      rgba(201,169,107,.02) 26px 27px,
      transparent 27px 54px
    );
  mask-image: linear-gradient(to bottom, transparent, black 24%, black 74%, transparent);
  animation: waveShift 12s linear infinite;
}

.bhajan-zone .content-thumb {
  background:
    radial-gradient(circle at 50% 42%, rgba(226,150,70,.16), transparent 20%),
    linear-gradient(145deg, #24170f, #090909 62%, #15100c);
}

.bhajan-zone .content-thumb::before {
  content: "♫";
  color: rgba(238,188,128,.62);
}

.content-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 340px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 16px;
  scroll-behavior: smooth;
}

.content-rail::-webkit-scrollbar {
  display: none;
}

.content-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.07);
  background: linear-gradient(180deg, #111113, #0c0c0e);
  box-shadow: 0 24px 54px rgba(0,0,0,.22);
  scroll-snap-align: start;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.content-card:hover {
  transform: translateY(-9px);
  border-color: rgba(201,169,107,.28);
  box-shadow: 0 34px 78px rgba(0,0,0,.36);
}

.content-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-size: cover !important;
  background-position: center !important;
}

.content-thumb::before {
  content: "ॐ";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  font-size: 76px;
  color: rgba(234,211,157,.50);
  text-shadow: 0 0 28px rgba(201,169,107,.12);
}

.content-thumb[style*="background-image"]::before {
  opacity: .18;
}

.thumb-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,.70), transparent 58%);
}

.mini-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.17);
  color: #0c0906;
  background: rgba(234,211,157,.92);
  box-shadow: 0 16px 40px rgba(0,0,0,.30);
  transition: .3s ease;
}

.content-card:hover .mini-play {
  transform: translate(-50%, -50%) scale(1.09);
}

.duration {
  position: absolute;
  z-index: 4;
  right: 12px;
  bottom: 12px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(0,0,0,.74);
  color: #e5ded4;
  font-size: 10px;
  font-weight: 700;
}

.content-meta {
  padding: 19px 19px 22px;
}

.content-meta > span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
}

.content-meta h3 {
  margin: 8px 0 0;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 600;
}

.library-zone {
  background:
    radial-gradient(circle at 50% 0%, rgba(201,169,107,.055), transparent 24%),
    #060606;
  border-top: 1px solid rgba(255,255,255,.05);
}

.library-head {
  align-items: center;
}

.library-head > div:first-child {
  max-width: 820px;
}

.library-search {
  width: min(100%, 360px);
  height: 58px;
  padding: 0 16px;
  border-radius: 17px;
  border: 1px solid rgba(201,169,107,.18);
  background: rgba(255,255,255,.025);
  display: flex;
  align-items: center;
  gap: 10px;
}

.library-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.library-search input::placeholder {
  color: #756f66;
}

.library-search span {
  color: var(--gold);
  font-size: 24px;
}

.library-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
}

.library-filter {
  padding: 10px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  color: #9f988d;
  background: rgba(255,255,255,.02);
  font-size: 12px;
  font-weight: 700;
  transition: .25s ease;
}

.library-filter.active,
.library-filter:hover {
  color: #0d0a06;
  border-color: transparent;
  background: linear-gradient(135deg, #ead29a, #aa8247);
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.library-grid .content-card {
  display: none;
}

.library-grid .content-card.is-visible {
  display: block;
  animation: cardIn .45s ease both;
}

.load-more-wrap {
  text-align: center;
  margin-top: 34px;
}

.load-more-btn {
  min-height: 54px;
  padding: 0 24px;
  border-radius: 15px;
  border: 1px solid var(--line);
  color: #e5ddd0;
  background: rgba(201,169,107,.06);
  transition: .3s ease;
}

.load-more-btn:hover {
  transform: translateY(-3px);
  background: rgba(201,169,107,.11);
}

.footer-v3 {
  padding: 54px 34px 28px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: #040404;
}

.footer-v3-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand-v3 {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand-v3 strong {
  display: block;
}

.footer-brand-v3 p {
  margin: 4px 0 0;
  color: #716a61;
  font-size: 11px;
}

.footer-nav-v3 {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-nav-v3 a {
  color: #8e877e;
  font-size: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(42px) scale(.985);
  filter: blur(8px);
  transition: opacity .85s cubic-bezier(.2,.7,.2,1), transform .85s cubic-bezier(.2,.7,.2,1), filter .85s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
  filter: none;
}

.video-modal,
.search-panel-v3 {
  position: fixed;
  inset: 0;
  z-index: 1200;
  visibility: hidden;
  opacity: 0;
  transition: .3s ease;
}

.video-modal.open,
.search-panel-v3.open {
  visibility: visible;
  opacity: 1;
}

.video-modal {
  display: grid;
  place-items: center;
  padding: 30px;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.90);
  backdrop-filter: blur(14px);
}

.video-modal-dialog {
  position: relative;
  z-index: 2;
  width: min(100%, 1120px);
  border-radius: 24px;
  border: 1px solid rgba(201,169,107,.22);
  background: #090909;
  box-shadow: 0 50px 120px rgba(0,0,0,.65);
}

.modal-close,
.search-close-v3 {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  color: var(--text);
  background: rgba(255,255,255,.04);
  font-size: 28px;
}

.modal-close {
  right: 0;
  top: -60px;
}

.video-frame-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px;
}

.video-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.search-panel-v3 {
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(4,4,5,.95);
  backdrop-filter: blur(18px);
}

.search-close-v3 {
  top: 26px;
  right: 28px;
}

.search-panel-inner {
  width: min(100%, 860px);
}

.search-panel-inner h2 {
  margin: 14px 0 24px;
  font-size: clamp(46px, 6vw, 76px);
  line-height: 1.1;
}

.search-panel-inner > input {
  width: 100%;
  height: 62px;
  padding: 0 18px;
  border-radius: 17px;
  border: 1px solid var(--line);
  outline: 0;
  color: var(--text);
  background: rgba(255,255,255,.035);
}

.global-search-results {
  margin-top: 14px;
  display: grid;
  gap: 9px;
  max-height: 320px;
  overflow-y: auto;
}

.global-result {
  padding: 14px 15px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.025);
}

.global-result strong {
  display: block;
  line-height: 1.55;
}

.global-result span {
  display: block;
  margin-top: 3px;
  color: var(--gold);
  font-size: 10px;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinReverse { to { transform: rotate(-360deg); } }
@keyframes livePulse {
  0%,100% { opacity: .65; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes coreFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes pulseOrbit {
  0%,100% { transform: scale(.98); opacity: .20; }
  50% { transform: scale(1.03); opacity: .32; }
}
@keyframes auroraMove {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(40px,-20px,0) scale(1.08); }
}
@keyframes particleRise {
  0% { transform: translateY(80px) scale(.7); opacity: 0; }
  12% { opacity: var(--o); }
  100% { transform: translateY(-180px) scale(1.1); opacity: 0; }
}
@keyframes scanDown {
  to { transform: translateY(100%); }
}
@keyframes waveShift {
  to { transform: translateX(54px); }
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1180px) {
  .nav-links {
    gap: 18px;
  }

  .hero-v3-inner {
    grid-template-columns: 1fr .82fr;
    gap: 46px;
  }

  .library-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}

@media (max-width: 920px) {
  .nav-links {
    display: none;
  }

  .hero-v3 {
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero-v3-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-v3 p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-v3-actions,
  .hero-mini-stats {
    justify-content: center;
  }

  .live-feature {
    grid-template-columns: 1fr;
  }

  .live-feature-media {
    min-height: 360px;
  }

  .zone-head,
  .library-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .library-search {
    width: 100%;
  }

  .library-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 10px 12px;
  }

  .topbar-inner {
    min-height: 62px;
  }

  .logo small {
    display: none;
  }

  .logo-mark {
    width: 42px;
    height: 42px;
  }

  .hero-v3 {
    min-height: auto;
    padding-top: 124px;
  }

  .hero-v3 h1 {
    font-size: clamp(44px, 13vw, 66px);
  }

  .hero-v3-actions {
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

  .hero-mini-stats div {
    padding-right: 12px;
    margin-right: 12px;
  }

  .hero-v3-visual {
    min-height: 460px;
  }

  .spiritual-core {
    width: min(320px, 82vw);
  }

  .core-symbol {
    font-size: 100px;
  }

  .orbit-1 { width: 370px; height: 370px; }
  .orbit-2 { width: 450px; height: 450px; }
  .orbit-3 { width: 530px; height: 530px; }

  .content-zone,
  .library-zone {
    padding: 82px 20px;
  }

  .zone-head h2,
  .library-head h2 {
    font-size: 46px;
  }

  .content-rail {
    grid-auto-columns: minmax(270px, 84vw);
  }

  .live-feature-copy {
    padding: 32px 24px;
  }

  .live-feature-media {
    min-height: 300px;
  }

  .live-feature-symbol {
    font-size: 110px;
  }

  .library-grid {
    grid-template-columns: 1fr;
  }

  .footer-v3 {
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer-v3-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}


/* =========================================================
   V4 COLORFUL PREMIUM OVERRIDE
   ========================================================= */

:root {
  --bg: #050507;
  --panel: rgba(12, 12, 18, 0.82);
  --text: #f8f6fb;
  --muted: #b7b2c6;

  --accent-gold: #f4c979;
  --accent-purple: #8b5cf6;
  --accent-indigo: #4f46e5;
  --accent-blue: #38bdf8;
  --accent-red: #ef4444;
  --accent-orange: #fb923c;
  --accent-magenta: #ec4899;
  --accent-teal: #14b8a6;
  --accent-coral: #ff7d66;
  --accent-lime: #a3e635;

  --glass: rgba(255,255,255,.06);
  --glass-line: rgba(255,255,255,.10);
}

body {
  background:
    radial-gradient(circle at 12% 15%, rgba(139,92,246,.08), transparent 18%),
    radial-gradient(circle at 85% 18%, rgba(251,146,60,.07), transparent 16%),
    radial-gradient(circle at 82% 72%, rgba(20,184,166,.07), transparent 18%),
    linear-gradient(180deg, #07070c, #050507 32%, #06060b 100%);
  color: var(--text);
}

.ambient-grid {
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 76px 76px;
}

.cursor-light {
  background: radial-gradient(circle, rgba(255,255,255,.09), transparent 68%);
  filter: blur(8px);
}

.topbar-inner {
  border: 1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03)),
    rgba(8,8,12,.58);
  box-shadow:
    0 24px 70px rgba(0,0,0,.28),
    0 0 0 1px rgba(255,255,255,.03) inset;
}

.topbar.scrolled .topbar-inner {
  background:
    linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.04)),
    rgba(7,7,10,.88);
}

.logo-mark {
  color: #190f07;
  background: linear-gradient(145deg, #ffe0a5, #ff8f5f 36%, #8b5cf6 72%, #3b82f6 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.65),
    0 12px 34px rgba(139,92,246,.20);
}

.logo small {
  color: #b9b4c8;
}

.nav-links a {
  color: #cec9dc;
}

.nav-links a::after {
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-orange));
}

.search-trigger {
  border-color: rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
}

.colorful-hero {
  background:
    radial-gradient(circle at 22% 24%, rgba(139,92,246,.24), transparent 22%),
    radial-gradient(circle at 78% 28%, rgba(251,146,60,.24), transparent 22%),
    radial-gradient(circle at 70% 78%, rgba(20,184,166,.16), transparent 20%),
    radial-gradient(circle at 16% 78%, rgba(236,72,153,.14), transparent 18%),
    linear-gradient(135deg, #090913 0%, #090710 36%, #08080e 74%, #0b0810 100%);
}

.hero-v3::after {
  background: linear-gradient(to bottom, transparent, #09090f);
}

.eyebrow-v3 {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  color: #fff3d6;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.hero-v3 h1 {
  background: linear-gradient(90deg, #fff7e9 0%, #ffd39f 22%, #d8c4ff 44%, #b6e8ff 68%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.hero-v3 p {
  color: #d3cede;
}

.primary-btn {
  color: #110d07;
  background: linear-gradient(135deg, #ffd06f 0%, #ff8c63 48%, #ef5da8 100%);
  box-shadow: 0 20px 44px rgba(251,146,60,.25);
}

.secondary-btn {
  color: #f1ebfb;
  border-color: rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(139,92,246,.18), rgba(56,189,248,.10));
}

.hero-mini-stats {
  border-top-color: rgba(255,255,255,.10);
}

.hero-mini-stats div {
  border-right-color: rgba(255,255,255,.10);
}

.hero-mini-stats strong {
  color: #ffe8b6;
}

.hero-mini-stats span {
  color: #c2bbd3;
}

.spiritual-core {
  border-color: rgba(255,255,255,.14);
  background:
    radial-gradient(circle at 50% 38%, rgba(251,146,60,.20), transparent 20%),
    radial-gradient(circle at 30% 30%, rgba(139,92,246,.18), transparent 28%),
    radial-gradient(circle at 70% 65%, rgba(56,189,248,.16), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.02)),
    linear-gradient(145deg, #0f1018, #09090f 72%);
  box-shadow:
    inset 0 0 110px rgba(255,255,255,.03),
    0 50px 130px rgba(0,0,0,.58),
    0 0 0 18px rgba(255,255,255,.03);
}

.core-symbol {
  background: linear-gradient(180deg, #ffe5aa 0%, #ff9f75 30%, #d992ff 66%, #83dbff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.spiritual-core small {
  color: #c4bdd6;
}

.orbit {
  border-color: rgba(255,255,255,.12);
}

.orbit-1 {
  box-shadow: 0 0 60px rgba(139,92,246,.08);
}
.orbit-2 {
  border-color: rgba(56,189,248,.15);
}
.orbit-3 {
  border-color: rgba(251,146,60,.10);
}

.hero-aurora {
  opacity: .34;
  filter: blur(82px);
}
.aurora-a { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.aurora-b { background: linear-gradient(135deg, #14b8a6, #38bdf8); }

.hero-particles .particle {
  background: radial-gradient(circle, rgba(255,255,255,.95), rgba(255,211,159,.55) 40%, rgba(139,92,246,0) 78%);
}

.content-zone,
.library-zone {
  position: relative;
}

.colorful-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .75;
}

.live-zone {
  background:
    radial-gradient(circle at 14% 22%, rgba(239,68,68,.22), transparent 18%),
    radial-gradient(circle at 86% 42%, rgba(251,146,60,.17), transparent 18%),
    linear-gradient(135deg, #0f0708 0%, #12090c 34%, #110912 68%, #0a0a0f 100%);
}

.live-zone::before {
  background:
    linear-gradient(90deg, rgba(255,255,255,.02), transparent 30%, transparent 70%, rgba(255,255,255,.02)),
    repeating-linear-gradient(90deg, transparent 0 94px, rgba(255,255,255,.018) 94px 95px, transparent 95px 190px);
}

.zone-label {
  color: #ff9b9b;
}

.zone-head h2,
.library-head h2 {
  color: #fcfbff;
}

.zone-head p {
  color: #cbc5d5;
}

.live-feature {
  border: 1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.025)),
    linear-gradient(135deg, #11090a 0%, #17101a 44%, #0f1016 100%);
  box-shadow:
    0 35px 90px rgba(0,0,0,.38),
    0 0 0 1px rgba(255,255,255,.03) inset;
}

.live-feature-media {
  background:
    radial-gradient(circle at 50% 42%, rgba(255,195,0,.15), transparent 18%),
    radial-gradient(circle at 20% 30%, rgba(239,68,68,.20), transparent 24%),
    radial-gradient(circle at 80% 72%, rgba(251,146,60,.16), transparent 22%),
    linear-gradient(145deg, #1c0c0d, #100c12 56%, #181015);
}

.live-scan {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.06), rgba(251,146,60,.12), transparent);
}

.live-feature-symbol {
  background: linear-gradient(180deg, #ffe2a7 0%, #ff8b72 44%, #f85ca9 84%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.live-badge {
  background: linear-gradient(135deg, #ff4b4b, #ff7a45);
  box-shadow: 0 14px 34px rgba(239,68,68,.22);
}

.hero-play,
.mini-play {
  background: linear-gradient(135deg, #ffdf9e 0%, #ff8f61 45%, #d16fff 100%);
  color: #1a0f0a;
}

.live-feature-copy > span {
  color: #ffb3a0;
}

.live-feature-copy p {
  color: #d0c9d3;
}

.watch-live-btn {
  border-color: rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(239,68,68,.22), rgba(251,146,60,.18));
}

.content-rail {
  gap: 20px;
}

.content-card {
  border: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02)),
    #0d0e15;
  box-shadow:
    0 24px 54px rgba(0,0,0,.24),
    0 0 0 1px rgba(255,255,255,.02) inset;
}

.content-card:hover {
  transform: translateY(-10px) scale(1.01);
  border-color: rgba(255,255,255,.18);
}

.content-thumb {
  background-size: cover !important;
  background-position: center !important;
}

.content-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent 34%);
  mix-blend-mode: screen;
}

.thumb-shade {
  background:
    linear-gradient(to top, rgba(0,0,0,.74), transparent 58%),
    radial-gradient(circle at 50% 30%, transparent, rgba(0,0,0,.18) 90%);
}

.duration {
  background: rgba(4,4,7,.74);
}

.content-meta > span {
  color: #ffe4a2;
}

.content-meta h3 {
  color: #f9f7fd;
}

.astrology-zone {
  background:
    radial-gradient(circle at 16% 18%, rgba(139,92,246,.25), transparent 18%),
    radial-gradient(circle at 84% 34%, rgba(56,189,248,.20), transparent 18%),
    radial-gradient(circle at 74% 78%, rgba(79,70,229,.16), transparent 16%),
    linear-gradient(135deg, #090813 0%, #111028 46%, #090d16 100%);
}

.astrology-zone::before {
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.02), transparent 26%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.016) 0 2px, transparent 2px 24px);
  mask-image: radial-gradient(circle at 80% 28%, black 0 26%, transparent 32%);
}

.astrology-zone .zone-kicker {
  color: #d8c8ff;
}

.zodiac-wheel {
  color: rgba(193,167,255,.11);
  border-color: rgba(193,167,255,.08);
  box-shadow:
    0 0 0 48px rgba(193,167,255,.02),
    0 0 0 96px rgba(56,189,248,.01);
}

.astrology-zone .content-thumb {
  background:
    radial-gradient(circle at 26% 30%, rgba(139,92,246,.22), transparent 22%),
    radial-gradient(circle at 76% 70%, rgba(56,189,248,.18), transparent 24%),
    linear-gradient(145deg, #111124, #0b0d17 58%, #111d2a);
}
.astrology-zone .content-thumb::before {
  content: "✦";
  color: rgba(221,204,255,.66);
}

.devotional-zone {
  background:
    radial-gradient(circle at 12% 26%, rgba(251,146,60,.20), transparent 18%),
    radial-gradient(circle at 86% 18%, rgba(236,72,153,.18), transparent 18%),
    radial-gradient(circle at 72% 78%, rgba(201,169,107,.11), transparent 14%),
    linear-gradient(135deg, #120b08 0%, #1a0c13 46%, #0e0b10 100%);
}

.devotional-zone::before {
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.02), transparent 18%);
}

.temple-rays {
  opacity: .42;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255,188,107,.028) 0deg 4deg,
    rgba(255,99,132,.028) 4deg 8deg,
    transparent 8deg 14deg
  );
}

.devotional-zone .zone-kicker {
  color: #ffd3a0;
}

.devotional-zone .content-thumb {
  background:
    radial-gradient(circle at 30% 26%, rgba(251,146,60,.22), transparent 22%),
    radial-gradient(circle at 74% 72%, rgba(236,72,153,.18), transparent 26%),
    linear-gradient(145deg, #24140f, #0d0b10 56%, #20121b);
}
.devotional-zone .content-thumb::before {
  content: "ॐ";
  color: rgba(255,224,162,.66);
}

.bhajan-zone {
  background:
    radial-gradient(circle at 14% 26%, rgba(20,184,166,.24), transparent 18%),
    radial-gradient(circle at 88% 24%, rgba(255,125,102,.18), transparent 18%),
    radial-gradient(circle at 74% 76%, rgba(56,189,248,.14), transparent 16%),
    linear-gradient(135deg, #081010 0%, #0e1121 46%, #120d12 100%);
}

.bhajan-zone::before {
  background:
    linear-gradient(90deg, rgba(255,255,255,.018), transparent 16%, transparent 84%, rgba(255,255,255,.018));
}

.music-wave {
  opacity: .32;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 26px,
      rgba(20,184,166,.035) 26px 27px,
      rgba(255,125,102,.020) 27px 54px
    );
}

.bhajan-zone .zone-kicker {
  color: #bffaf4;
}

.bhajan-zone .content-thumb {
  background:
    radial-gradient(circle at 28% 28%, rgba(20,184,166,.22), transparent 24%),
    radial-gradient(circle at 74% 70%, rgba(255,125,102,.18), transparent 25%),
    linear-gradient(145deg, #101b1b, #0c1018 58%, #1b1119);
}
.bhajan-zone .content-thumb::before {
  content: "♫";
  color: rgba(194,255,247,.64);
}

.library-zone {
  background:
    radial-gradient(circle at 12% 15%, rgba(139,92,246,.18), transparent 14%),
    radial-gradient(circle at 88% 14%, rgba(251,146,60,.14), transparent 14%),
    radial-gradient(circle at 82% 82%, rgba(20,184,166,.13), transparent 16%),
    linear-gradient(135deg, #0b0b12 0%, #0d101a 40%, #0b0b12 100%);
  border-top: 1px solid rgba(255,255,255,.07);
}

.library-head h2 {
  background: linear-gradient(90deg, #fff9ee 0%, #ffd8aa 20%, #dccdff 56%, #caf2ff 86%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.library-search {
  border-color: rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
}

.library-search span {
  color: #ffdba8;
}

.library-filters {
  gap: 10px;
}

.library-filter {
  border-color: rgba(255,255,255,.10);
  color: #ddd8ea;
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}

.library-filter[data-filter="Live Stream"].active,
.library-filter[data-filter="Live Stream"]:hover {
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #fb923c);
}

.library-filter[data-filter="Astrology"].active,
.library-filter[data-filter="Astrology"]:hover {
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #38bdf8);
}

.library-filter[data-filter="Devotional"].active,
.library-filter[data-filter="Devotional"]:hover {
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #ec4899);
}

.library-filter[data-filter="Bhajan"].active,
.library-filter[data-filter="Bhajan"]:hover {
  color: #fff;
  background: linear-gradient(135deg, #14b8a6, #ff7d66);
}

.library-filter[data-filter="All"].active,
.library-filter[data-filter="All"]:hover {
  color: #120d08;
  background: linear-gradient(135deg, #ffe29f, #ffb46c);
}

.load-more-btn {
  border-color: rgba(255,255,255,.12);
  color: #fff6eb;
  background: linear-gradient(135deg, rgba(139,92,246,.22), rgba(251,146,60,.18));
}

.footer-v3 {
  background:
    linear-gradient(135deg, #06060a, #0a0a10);
  border-top-color: rgba(255,255,255,.08);
}

.footer-brand-v3 p,
.footer-nav-v3 a {
  color: #c4bed2;
}

.search-panel-v3 {
  background:
    radial-gradient(circle at 18% 18%, rgba(139,92,246,.15), transparent 18%),
    radial-gradient(circle at 82% 24%, rgba(251,146,60,.12), transparent 16%),
    radial-gradient(circle at 72% 80%, rgba(20,184,166,.10), transparent 14%),
    rgba(5,5,8,.96);
}

.search-panel-inner > input,
.global-result,
.video-modal-dialog {
  border-color: rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
}

.search-panel-inner h2 {
  background: linear-gradient(90deg, #fff8ea, #ffd8ac 28%, #dec6ff 60%, #c4efff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.global-result span {
  color: #ffdba8;
}

.reveal {
  transform: translateY(46px) scale(.975);
  filter: blur(12px);
}

/* section-specific card hover accents */
.live-zone .content-card:hover {
  box-shadow: 0 34px 78px rgba(239,68,68,.16), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.astrology-zone .content-card:hover {
  box-shadow: 0 34px 78px rgba(79,70,229,.18), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.devotional-zone .content-card:hover {
  box-shadow: 0 34px 78px rgba(236,72,153,.14), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.bhajan-zone .content-card:hover {
  box-shadow: 0 34px 78px rgba(20,184,166,.16), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.library-grid .content-card:hover {
  box-shadow: 0 34px 78px rgba(251,146,60,.18), 0 0 0 1px rgba(255,255,255,.04) inset;
}

@media (max-width: 640px) {
  .hero-v3 h1,
  .library-head h2 {
    background-size: 180% auto;
  }
}


/* =========================================================
   V4.1 FIXES — TEXT OVERLAP + STRONGER BACKGROUND ANIMATION
   ========================================================= */

/* Global large heading safety */
.hero-v3 h1,
.zone-head h2,
.library-head h2,
.search-panel-inner h2,
.live-feature-copy h3 {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

/* Library heading fix */
.library-head {
  align-items: center;
  gap: 36px;
}

.library-head > div:first-child {
  max-width: min(100%, 860px);
  flex: 1 1 720px;
}

.library-head h2 {
  display: block;
  max-width: 100%;
  margin: 12px 0 0;
  font-size: clamp(36px, 4.5vw, 74px);
  line-height: 1.20;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
  word-break: keep-all;
}

.library-head .zone-kicker {
  display: inline-block;
  margin-bottom: 6px;
}

.library-search {
  flex: 0 0 min(100%, 360px);
  align-self: center;
}

.library-zone {
  padding-top: 96px;
}

.library-filters {
  margin-top: 6px;
}

.load-more-wrap {
  margin-top: 40px;
  padding-bottom: 8px;
}

.load-more-btn {
  min-width: 180px;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

@media (max-width: 1180px) {
  .library-head h2 {
    font-size: clamp(34px, 4.8vw, 64px);
  }
}

@media (max-width: 920px) {
  .library-head {
    align-items: flex-start;
    gap: 22px;
  }

  .library-head > div:first-child {
    flex-basis: auto;
    max-width: 100%;
  }

  .library-head h2 {
    font-size: clamp(34px, 7vw, 56px);
    line-height: 1.18;
  }

  .library-search {
    width: 100%;
    flex: none;
  }
}

@media (max-width: 640px) {
  .library-head h2 {
    font-size: clamp(30px, 9.3vw, 46px);
    line-height: 1.16;
    letter-spacing: -0.018em;
  }

  .zone-head h2 {
    line-height: 1.15;
  }

  .hero-v3 h1 {
    line-height: 1.10;
  }

  .load-more-btn {
    width: 100%;
  }
}

/* Stronger animated ambient background */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: -12%;
  pointer-events: none;
  z-index: -9;
  opacity: .9;
}

body::before {
  background:
    radial-gradient(circle at 18% 20%, rgba(139,92,246,.16), transparent 16%),
    radial-gradient(circle at 82% 22%, rgba(251,146,60,.14), transparent 16%),
    radial-gradient(circle at 76% 76%, rgba(20,184,166,.12), transparent 18%),
    radial-gradient(circle at 24% 78%, rgba(236,72,153,.10), transparent 18%);
  filter: blur(24px);
  animation: bodyGlowDrift 22s ease-in-out infinite alternate;
}

body::after {
  background:
    radial-gradient(circle at 68% 16%, rgba(56,189,248,.08), transparent 14%),
    radial-gradient(circle at 14% 62%, rgba(255,220,150,.08), transparent 12%),
    radial-gradient(circle at 88% 54%, rgba(255,125,102,.08), transparent 14%);
  filter: blur(50px);
  opacity: .55;
  animation: bodyGlowDriftReverse 30s ease-in-out infinite alternate;
}

@keyframes bodyGlowDrift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(2%, -1.5%, 0) scale(1.04); }
  100% { transform: translate3d(-2%, 1.5%, 0) scale(1.02); }
}

@keyframes bodyGlowDriftReverse {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(-2%, 1.8%, 0) scale(1.05); }
  100% { transform: translate3d(2%, -1.6%, 0) scale(1.02); }
}

/* Section-level visible floating particles */
.content-zone::after,
.library-zone::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255,255,255,.36) 0 1px, transparent 1.6px) 12% 20% / 180px 180px,
    radial-gradient(circle, rgba(255,224,170,.28) 0 1.3px, transparent 1.8px) 68% 32% / 220px 220px,
    radial-gradient(circle, rgba(196,225,255,.22) 0 1px, transparent 1.7px) 82% 70% / 240px 240px,
    radial-gradient(circle, rgba(255,194,225,.20) 0 1.2px, transparent 1.9px) 24% 76% / 200px 200px;
  opacity: .55;
  animation: sectionParticleFloat 22s linear infinite;
}

.hero-v3::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255,255,255,.35) 0 1px, transparent 1.8px) 14% 24% / 160px 160px,
    radial-gradient(circle, rgba(255,220,150,.30) 0 1.4px, transparent 2px) 74% 22% / 200px 200px,
    radial-gradient(circle, rgba(193,209,255,.22) 0 1px, transparent 1.8px) 78% 72% / 210px 210px,
    radial-gradient(circle, rgba(255,172,208,.18) 0 1.2px, transparent 2px) 28% 78% / 220px 220px;
  opacity: .62;
  animation: sectionParticleFloatReverse 26s linear infinite;
  z-index: 0;
}

.hero-v3-inner {
  position: relative;
  z-index: 2;
}

@keyframes sectionParticleFloat {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: .46;
  }
  50% {
    transform: translate3d(-14px, -20px, 0);
    opacity: .68;
  }
  100% {
    transform: translate3d(-28px, -40px, 0);
    opacity: .42;
  }
}

@keyframes sectionParticleFloatReverse {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: .50;
  }
  50% {
    transform: translate3d(14px, -18px, 0);
    opacity: .72;
  }
  100% {
    transform: translate3d(28px, -36px, 0);
    opacity: .46;
  }
}

/* Dedicated JS particles container */
.bg-particle-field {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -8;
}

.bg-particle-field .bg-particle {
  position: absolute;
  width: var(--size, 3px);
  height: var(--size, 3px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.95), rgba(255,223,177,.65) 42%, rgba(139,92,246,0) 78%);
  opacity: var(--opacity, .18);
  box-shadow: 0 0 10px rgba(255,255,255,.06);
  animation: bgParticleRise var(--duration, 24s) linear infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes bgParticleRise {
  0% {
    transform: translate3d(0, 80px, 0) scale(.85);
    opacity: 0;
  }
  8% {
    opacity: var(--opacity, .18);
  }
  50% {
    opacity: calc(var(--opacity, .18) + .10);
  }
  100% {
    transform: translate3d(var(--drift, 16px), -120vh, 0) scale(1.15);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .content-zone::after,
  .library-zone::after,
  .hero-v3::before,
  .bg-particle-field .bg-particle {
    animation: none !important;
  }
}


/* =========================================================
   V4.2 UI FIXES — HERO LABEL, NAV SIZE, TEXT SAFETY
   ========================================================= */

/* Hero top small label bigger and clearer */
.eyebrow-v3 {
  font-size: 14px !important;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 11px 18px;
  border-radius: 999px;
  min-height: 44px;
  line-height: 1.2;
  color: #fff8e8;
}

/* Make main hero heading safer */
.hero-v3-copy {
  max-width: 760px;
}

.hero-v3 h1 {
  max-width: 760px;
  font-size: clamp(46px, 5.3vw, 88px) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.028em;
  overflow-wrap: break-word;
  word-break: normal;
  white-space: normal;
}

.hero-v3 p {
  max-width: 720px;
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.8;
}

/* Top navigation make larger and more visible */
.nav-links {
  gap: 12px !important;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  font-size: 16px !important;
  font-weight: 700 !important;
  padding: 10px 14px;
  border-radius: 12px;
  line-height: 1.2;
  color: #f2edf9;
  background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.06);
}

.nav-links a::after {
  display: none;
}

.nav-links a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border-color: rgba(255,255,255,.14);
  transform: translateY(-1px);
}

/* Topbar allow better spacing */
.topbar-inner {
  gap: 18px;
}

@media (min-width: 1181px) {
  .topbar-inner {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* Heading safety for library and section headings */
.zone-head > div:first-child,
.library-head > div:first-child {
  max-width: 900px;
}

.zone-head h2,
.library-head h2,
.search-panel-inner h2,
.live-feature-copy h3 {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
  white-space: normal;
}

.library-head h2 {
  font-size: clamp(34px, 4.2vw, 68px) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.02em;
  max-width: 860px;
}

/* If screen medium, reduce nav and heading carefully */
@media (max-width: 1280px) {
  .nav-links a {
    font-size: 15px !important;
    padding: 9px 12px;
  }

  .hero-v3 h1 {
    max-width: 720px;
    font-size: clamp(44px, 5vw, 78px) !important;
  }

  .library-head h2 {
    font-size: clamp(32px, 4vw, 58px) !important;
  }
}

@media (max-width: 1080px) {
  .hero-v3-copy {
    max-width: 100%;
  }

  .hero-v3 h1 {
    max-width: 100%;
    font-size: clamp(42px, 5.4vw, 70px) !important;
    line-height: 1.13 !important;
  }

  .eyebrow-v3 {
    font-size: 13px !important;
  }
}

@media (max-width: 920px) {
  .hero-v3 h1 {
    font-size: clamp(40px, 7.5vw, 58px) !important;
    line-height: 1.14 !important;
  }

  .library-head h2 {
    font-size: clamp(32px, 6.5vw, 50px) !important;
    line-height: 1.17 !important;
  }

  .eyebrow-v3 {
    font-size: 13px !important;
    padding: 10px 16px;
  }
}

@media (max-width: 640px) {
  .eyebrow-v3 {
    font-size: 12px !important;
    padding: 9px 14px;
    min-height: 40px;
  }

  .hero-v3 h1 {
    font-size: clamp(34px, 10.8vw, 46px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.02em;
  }

  .hero-v3 p {
    font-size: 17px;
  }

  .library-head h2 {
    font-size: clamp(28px, 8.7vw, 40px) !important;
    line-height: 1.16 !important;
  }
}


/* =========================================================
   V4.3 STABLE FIX — SAFER TYPOGRAPHY + NON-CUT NAV + BACK TO TOP
   ========================================================= */

/* Never clip large text blocks */
.hero-v3,
.hero-v3-inner,
.hero-v3-copy,
.zone-head,
.library-head,
.topbar,
.topbar-inner {
  overflow: visible !important;
}

/* Safer top bar layout */
.topbar {
  padding: 12px 18px;
}

.topbar-inner {
  width: min(100%, var(--max));
  min-height: 78px;
  padding: 12px 16px;
  gap: 14px;
  align-items: center;
  flex-wrap: nowrap;
}

.logo {
  flex: 0 0 auto;
}

.nav-links {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px !important;
  flex-wrap: nowrap;
  overflow: visible;
}

.nav-links a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px !important;
  border-radius: 10px;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.1;
  white-space: nowrap;
}

.search-trigger {
  flex: 0 0 auto;
}

/* On slightly smaller desktop, allow nav to shrink safely */
@media (max-width: 1280px) {
  .topbar-inner {
    gap: 10px;
  }

  .nav-links {
    gap: 8px !important;
  }

  .nav-links a {
    padding: 7px 10px !important;
    font-size: 13px !important;
  }
}

/* Tablet and below: hide nav as before, but keep topbar safe */
@media (max-width: 920px) {
  .topbar {
    padding: 10px 14px;
  }

  .topbar-inner {
    min-height: 68px;
    padding: 10px 12px;
  }
}

/* Hero small label */
.eyebrow-v3 {
  font-size: 15px !important;
  padding: 10px 16px;
  min-height: 42px;
  line-height: 1.2;
  white-space: normal;
}

/* Safer hero content width */
.hero-v3-copy {
  max-width: 700px !important;
}

.hero-v3 h1 {
  max-width: 700px !important;
  font-size: clamp(42px, 4.6vw, 74px) !important;
  line-height: 1.16 !important;
  letter-spacing: -0.024em;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}

.hero-v3 p {
  max-width: 700px !important;
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.82;
}

/* Safer zone and library headings */
.zone-head > div:first-child,
.library-head > div:first-child {
  max-width: 760px !important;
}

.zone-head h2 {
  max-width: 760px;
  font-size: clamp(38px, 4.2vw, 64px) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.02em;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.library-head {
  gap: 28px;
  align-items: center;
}

.library-head h2 {
  max-width: 760px !important;
  font-size: clamp(32px, 3.8vw, 58px) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.018em;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.library-search {
  width: min(100%, 330px);
  flex: 0 0 min(100%, 330px);
}

/* Button spacing */
.load-more-wrap {
  margin-top: 36px;
  padding-bottom: 16px;
}

.load-more-btn {
  min-height: 56px;
  min-width: 190px;
  padding: 0 22px;
}

/* Mobile safe text */
@media (max-width: 1080px) {
  .hero-v3-copy,
  .hero-v3 h1,
  .hero-v3 p,
  .zone-head > div:first-child,
  .library-head > div:first-child,
  .zone-head h2,
  .library-head h2 {
    max-width: 100% !important;
  }

  .hero-v3 h1 {
    font-size: clamp(40px, 5.8vw, 62px) !important;
    line-height: 1.14 !important;
  }

  .zone-head h2 {
    font-size: clamp(36px, 4.8vw, 54px) !important;
  }

  .library-head h2 {
    font-size: clamp(30px, 4.4vw, 48px) !important;
  }
}

@media (max-width: 920px) {
  .eyebrow-v3 {
    font-size: 13px !important;
  }

  .hero-v3 h1 {
    font-size: clamp(36px, 7.4vw, 52px) !important;
    line-height: 1.13 !important;
  }

  .hero-v3 p {
    font-size: 17px;
  }

  .zone-head h2 {
    font-size: clamp(32px, 6vw, 46px) !important;
  }

  .library-head h2 {
    font-size: clamp(28px, 5.8vw, 42px) !important;
  }
}

@media (max-width: 640px) {
  .eyebrow-v3 {
    font-size: 12px !important;
    padding: 8px 12px;
  }

  .hero-v3 h1 {
    font-size: clamp(31px, 10vw, 42px) !important;
    line-height: 1.12 !important;
  }

  .zone-head h2 {
    font-size: clamp(28px, 8vw, 38px) !important;
  }

  .library-head h2 {
    font-size: clamp(26px, 8.2vw, 36px) !important;
  }

  .library-search {
    width: 100%;
    flex: none;
  }
}

/* Back to top button */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 1100;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  color: #fff9ef;
  background: linear-gradient(135deg, rgba(139,92,246,.85), rgba(251,146,60,.85));
  box-shadow: 0 18px 42px rgba(0,0,0,.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
}

@media (max-width: 640px) {
  .back-to-top {
    right: 16px;
    bottom: 18px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }
}


/* =========================================================
   V4.4 TYPOGRAPHY FIX — DEVANAGARI SAFE SPACING
   ========================================================= */

/* General Devanagari safety */
body {
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .nav-links a, .eyebrow-v3, .library-filter, .primary-btn, .secondary-btn {
  -webkit-font-smoothing: antialiased;
  text-wrap: balance;
}

/* Hero section — extra breathing room so matras never clip */
.hero-v3 {
  padding-top: 172px !important;
}

.hero-v3-copy {
  padding-top: 6px;
}

.eyebrow-v3 {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px 13px !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
  letter-spacing: .01em;
}

.hero-v3 h1 {
  display: block;
  max-width: 720px !important;
  margin-top: 22px !important;
  margin-bottom: 0;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: clamp(40px, 4.35vw, 68px) !important;
  line-height: 1.26 !important;
  letter-spacing: -0.018em !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}

.hero-v3 p {
  margin-top: 22px !important;
  max-width: 710px !important;
  font-size: clamp(17px, 1.2vw, 20px);
  line-height: 1.95 !important;
}

/* Top navigation pills — height increased, no clipping */
.topbar-inner {
  min-height: 82px !important;
  align-items: center;
}

.nav-links {
  gap: 12px !important;
  align-items: center;
}

.nav-links a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 46px !important;
  padding: 11px 14px 12px !important;
  border-radius: 12px;
  font-size: 14px !important;
  line-height: 1.35 !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

/* Prevent internal clipping inside nav */
.nav-links a,
.logo strong,
.logo small {
  vertical-align: middle;
}

/* Hero CTA buttons safer */
.primary-btn,
.secondary-btn {
  min-height: 58px;
  padding-top: 2px;
  line-height: 1.35;
}

/* Stats */
.hero-mini-stats strong {
  line-height: 1.25;
}
.hero-mini-stats span {
  line-height: 1.45;
}

/* Section headings */
.zone-head h2 {
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: clamp(36px, 4.0vw, 60px) !important;
  line-height: 1.24 !important;
  letter-spacing: -0.014em;
}

.zone-head p {
  line-height: 1.9 !important;
}

/* Library heading specifically */
.library-head {
  align-items: center;
  gap: 30px;
}

.library-head h2 {
  display: block;
  max-width: 760px !important;
  margin-top: 12px !important;
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: clamp(30px, 3.5vw, 52px) !important;
  line-height: 1.28 !important;
  letter-spacing: -0.012em;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

/* Card titles too */
.content-meta h3,
.live-feature-copy h3 {
  line-height: 1.6 !important;
  overflow-wrap: anywhere;
}

/* Search box alignment */
.library-search {
  min-height: 60px;
}

/* Responsive safety */
@media (max-width: 1280px) {
  .hero-v3 h1 {
    font-size: clamp(38px, 4.8vw, 60px) !important;
    line-height: 1.24 !important;
  }

  .library-head h2 {
    font-size: clamp(30px, 3.9vw, 46px) !important;
  }

  .nav-links a {
    min-height: 44px !important;
    padding: 10px 12px 11px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 1080px) {
  .hero-v3 {
    padding-top: 156px !important;
  }

  .hero-v3 h1 {
    max-width: 100% !important;
    font-size: clamp(36px, 5.6vw, 54px) !important;
    line-height: 1.22 !important;
  }

  .zone-head h2 {
    font-size: clamp(34px, 4.8vw, 48px) !important;
    line-height: 1.22 !important;
  }

  .library-head h2 {
    max-width: 100% !important;
    font-size: clamp(28px, 4.2vw, 42px) !important;
    line-height: 1.24 !important;
  }
}

@media (max-width: 920px) {
  .hero-v3 {
    padding-top: 138px !important;
  }

  .eyebrow-v3 {
    min-height: 44px;
    padding: 10px 16px 11px !important;
    font-size: 13px !important;
  }

  .hero-v3 h1 {
    font-size: clamp(34px, 7.2vw, 48px) !important;
    line-height: 1.20 !important;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .hero-v3 p {
    line-height: 1.85 !important;
  }

  .zone-head h2 {
    font-size: clamp(30px, 6vw, 42px) !important;
    line-height: 1.20 !important;
  }

  .library-head h2 {
    font-size: clamp(27px, 5.6vw, 38px) !important;
    line-height: 1.22 !important;
  }
}

@media (max-width: 640px) {
  .hero-v3 {
    padding-top: 128px !important;
  }

  .eyebrow-v3 {
    min-height: 40px;
    padding: 8px 12px 10px !important;
    font-size: 12px !important;
  }

  .hero-v3 h1 {
    font-size: clamp(30px, 9.4vw, 40px) !important;
    line-height: 1.18 !important;
    letter-spacing: -0.012em !important;
  }

  .hero-v3 p {
    font-size: 16px;
    line-height: 1.8 !important;
  }

  .zone-head h2 {
    font-size: clamp(27px, 7.8vw, 36px) !important;
    line-height: 1.18 !important;
  }

  .library-head h2 {
    font-size: clamp(24px, 7.8vw, 34px) !important;
    line-height: 1.20 !important;
  }
}


/* =========================================================
   V4.5 FEATURED LIVE AUTOPLAY PLAYER
   ========================================================= */

.live-player-media {
  position: relative;
  min-height: 0 !important;
  aspect-ratio: 16 / 9;
  background: #000 !important;
  overflow: hidden;
}

.live-player-media::after {
  display: none !important;
}

.live-player-media .live-scan,
.live-player-media .live-feature-symbol,
.live-player-media .hero-play {
  display: none !important;
}

.featured-live-iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.live-player-media .live-badge {
  z-index: 4;
  pointer-events: none;
}

.live-player-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #d8d1c7;
  background:
    radial-gradient(circle at 50% 45%, rgba(201,169,107,.12), transparent 26%),
    #090909;
}

.live-player-fallback span {
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

@media (max-width: 920px) {
  .live-player-media {
    min-height: 0 !important;
    aspect-ratio: 16 / 9;
  }
}


/* =========================================================
   V4.6 AUTO YOUTUBE THUMBNAIL + CLEAN PLAYER
   ========================================================= */

/* Automatic thumbnail images */
.content-thumb {
  background: #09090d;
}

.auto-video-thumb {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.content-thumb:has(.auto-video-thumb)::before {
  display: none !important;
}

/* Older browser fallback: keep the symbol very faint if :has is unsupported */
.auto-video-thumb + .thumb-shade {
  z-index: 2;
}

/* Featured live player clean frame */
.live-player-media {
  overflow: hidden !important;
  background: #000 !important;
}

.featured-live-iframe {
  position: absolute;
  left: -1%;
  top: -7%;
  width: 102%;
  height: 114%;
  border: 0;
  background: #000;
  pointer-events: none;
}

/* Soft top/bottom masks to hide YouTube title/chrome */
.live-player-media::before,
.live-player-media::after,
.video-frame-wrap::before,
.video-frame-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 5;
  pointer-events: none;
}

.live-player-media::before,
.video-frame-wrap::before {
  top: 0;
  height: 58px;
  background: linear-gradient(to bottom, rgba(0,0,0,.94), rgba(0,0,0,.28), transparent);
}

.live-player-media::after,
.video-frame-wrap::after {
  bottom: 0;
  height: 54px;
  background: linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,.24), transparent);
}

/* Modal clean player */
.video-frame-wrap {
  position: relative;
  overflow: hidden !important;
  background: #000;
}

.video-frame-wrap iframe {
  position: absolute;
  left: -1%;
  top: -7%;
  width: 102%;
  height: 114%;
  border: 0;
  background: #000;
}

/* Keep modal close button accessible */
.modal-close {
  z-index: 10;
}

/* Ensure live badge remains above mask */
.live-player-media .live-badge {
  z-index: 8;
}

@media (max-width: 640px) {
  .live-player-media::before,
  .video-frame-wrap::before {
    height: 42px;
  }

  .live-player-media::after,
  .video-frame-wrap::after {
    height: 40px;
  }
}


/* =========================================================
   V4.7 DIVINE CONTENT UNIVERSE
   ========================================================= */

.content-universe-wrap {
  min-height: 650px;
  position: relative;
  perspective: 1200px;
}

.universe-aura {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,161,96,.24), transparent 24%),
    radial-gradient(circle at 68% 34%, rgba(139,92,246,.23), transparent 27%),
    radial-gradient(circle at 56% 72%, rgba(56,189,248,.19), transparent 25%);
  filter: blur(48px);
  animation: universeAura 10s ease-in-out infinite alternate;
}

.universe-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.10);
}

.ring-a {
  width: 390px;
  height: 390px;
  animation: universeSpin 20s linear infinite;
}

.ring-b {
  width: 520px;
  height: 520px;
  border-style: dashed;
  border-color: rgba(177,151,255,.14);
  animation: universeSpinReverse 30s linear infinite;
}

.ring-c {
  width: 640px;
  height: 640px;
  border-color: rgba(255,178,103,.07);
  animation: universePulse 5s ease-in-out infinite;
}

.universe-core {
  position: relative;
  z-index: 6;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(255,255,255,.16);
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,.10), transparent 18%),
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
    #10111a;
  box-shadow:
    0 40px 100px rgba(0,0,0,.42),
    inset 0 0 70px rgba(255,255,255,.025),
    0 0 0 18px rgba(255,255,255,.018);
  animation: coreFloat 5s ease-in-out infinite;
}

.core-halo {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(255,151,92,.35),
    rgba(236,72,153,.30),
    rgba(139,92,246,.34),
    rgba(56,189,248,.30),
    rgba(20,184,166,.28),
    rgba(255,151,92,.35)
  );
  filter: blur(18px);
  opacity: .55;
  z-index: -1;
  animation: universeSpin 8s linear infinite;
}

.universe-k {
  font-family: "Noto Serif Devanagari", serif;
  font-size: 84px;
  line-height: .85;
  font-weight: 700;
  background: linear-gradient(180deg, #ffe3a7, #ff9872 44%, #d984ff 78%, #7fdfff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.universe-core strong {
  margin-top: 12px;
  font-size: 17px;
}

.universe-core small {
  margin-top: 6px;
  color: #aaa3ba;
  font-size: 10px;
}

.universe-node {
  position: absolute;
  z-index: 8;
  min-width: 150px;
  padding: 13px 15px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.035)),
    rgba(13,13,20,.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
  animation: nodeFloat 5s ease-in-out infinite;
}

.universe-node strong,
.universe-node small {
  display: block;
}

.universe-node strong {
  margin-top: 3px;
  font-size: 15px;
}

.universe-node small {
  margin-top: 2px;
  color: #928ca1;
  font-size: 10px;
}

.node-icon {
  color: #ffd9a2;
  font-size: 18px;
}

.node-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.live-dot {
  background: #ff5b5b;
  box-shadow: 0 0 0 6px rgba(255,91,91,.11);
  animation: livePulse 1.2s ease-in-out infinite;
}

.node-live { left: 2%; top: 22%; }
.node-astro { right: 0; top: 22%; animation-delay: -1.1s; }
.node-devotion { left: 5%; bottom: 18%; animation-delay: -2.0s; }
.node-blog { right: 3%; bottom: 17%; animation-delay: -3.2s; }

@keyframes universeAura {
  0% { transform: scale(.96) translate3d(-18px,8px,0); opacity: .72; }
  100% { transform: scale(1.06) translate3d(22px,-14px,0); opacity: 1; }
}
@keyframes universeSpin { to { transform: rotate(360deg); } }
@keyframes universeSpinReverse { to { transform: rotate(-360deg); } }
@keyframes universePulse {
  0%,100% { transform: scale(.98); opacity: .55; }
  50% { transform: scale(1.03); opacity: .9; }
}
@keyframes nodeFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* =========================================================
   BLOG SECTION
   ========================================================= */

.blog-zone {
  position: relative;
  overflow: hidden;
  padding: 110px 34px;
  background:
    radial-gradient(circle at 10% 18%, rgba(236,72,153,.15), transparent 18%),
    radial-gradient(circle at 88% 25%, rgba(139,92,246,.15), transparent 18%),
    radial-gradient(circle at 74% 82%, rgba(56,189,248,.10), transparent 17%),
    linear-gradient(135deg, #0b0911, #0c0b16 46%, #081015);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.blog-zone > * {
  width: min(100%, var(--max));
  margin-left: auto;
  margin-right: auto;
}

.blog-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .28;
  pointer-events: none;
}

.blog-orb-a {
  width: 360px;
  height: 360px;
  left: -120px;
  top: 20%;
  background: #ec4899;
  animation: auroraMove 12s ease-in-out infinite;
}

.blog-orb-b {
  width: 420px;
  height: 420px;
  right: -150px;
  bottom: 4%;
  background: #38bdf8;
  animation: auroraMove 14s ease-in-out infinite reverse;
}

.blog-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 42px;
}

.blog-head h2 {
  margin: 12px 0 0;
  font-family: "Noto Serif Devanagari", serif;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.2;
  font-weight: 600;
}

.blog-head h2 em {
  color: #ffd7a1;
  font-style: normal;
}

.blog-head p {
  max-width: 680px;
  margin: 12px 0 0;
  color: #aaa4b5;
  line-height: 1.85;
}

.blog-archive-btn {
  flex: 0 0 auto;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(236,72,153,.16), rgba(56,189,248,.10));
  font-size: 13px;
  font-weight: 700;
}

.article-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 22px;
}

.article-card {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.09);
  background:
    linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.025)),
    #0d0e16;
  box-shadow: 0 28px 70px rgba(0,0,0,.26);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.article-card:hover {
  transform: translateY(-9px);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 38px 90px rgba(0,0,0,.34);
}

.article-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 26%, rgba(236,72,153,.18), transparent 22%),
    radial-gradient(circle at 75% 72%, rgba(56,189,248,.15), transparent 24%),
    #10121a;
}

.article-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.article-card:hover .article-media img {
  transform: scale(1.04);
}

.article-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.article-placeholder span {
  font-size: 64px;
  color: rgba(255,220,175,.72);
}

.article-category {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 3;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(9,9,14,.76);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.10);
  font-size: 10px;
  font-weight: 700;
}

.article-body {
  padding: 22px 22px 24px;
}

.article-meta {
  display: flex;
  gap: 8px;
  color: #8f899b;
  font-size: 10px;
}

.article-body h3 {
  margin: 10px 0 0;
  font-family: "Noto Serif Devanagari", serif;
  font-size: 24px;
  line-height: 1.45;
}

.article-body p {
  margin: 11px 0 0;
  color: #aaa4b5;
  line-height: 1.8;
  font-size: 13px;
}

.read-more {
  display: inline-flex;
  gap: 8px;
  margin-top: 18px;
  color: #ffd8a5;
  font-size: 12px;
  font-weight: 700;
}

.article-empty {
  grid-column: 1 / -1;
  padding: 54px 30px;
  border-radius: 24px;
  border: 1px dashed rgba(255,255,255,.12);
  text-align: center;
  background: rgba(255,255,255,.025);
}

.article-empty > span {
  font-size: 38px;
  color: #ffd8a5;
}

/* =========================================================
   ARTICLE ARCHIVE + SINGLE
   ========================================================= */

.article-page,
.article-archive-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(139,92,246,.11), transparent 18%),
    radial-gradient(circle at 88% 16%, rgba(251,146,60,.09), transparent 18%),
    #07070b;
}

.article-topbar {
  width: min(100% - 40px, var(--max));
  margin: 20px auto 0;
  min-height: 74px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  background: rgba(9,9,14,.80);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.article-home-link {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.09);
  color: #dcd6e7;
  font-size: 12px;
}

.single-article-shell,
.article-archive-shell {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
  padding: 90px 0 120px;
}

.single-article-hero {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.single-article-hero .article-category {
  position: static;
  display: inline-flex;
}

.single-article-hero h1,
.archive-hero h1 {
  margin: 18px 0 0;
  font-family: "Noto Serif Devanagari", serif;
  font-size: clamp(44px, 6vw, 82px);
  line-height: 1.22;
  font-weight: 600;
}

.single-article-meta {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
  color: #918b9b;
  font-size: 12px;
}

.single-article-image {
  margin: 52px auto 0;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.10);
}

.single-article-image img {
  width: 100%;
  height: auto;
}

.single-article-content {
  max-width: 820px;
  margin: 52px auto 0;
  color: #d7d2df;
  font-size: 18px;
  line-height: 2;
}

.single-article-content h2,
.single-article-content h3 {
  margin-top: 42px;
  font-family: "Noto Serif Devanagari", serif;
  line-height: 1.35;
}

.single-article-content img {
  max-width: 100%;
  border-radius: 18px;
}

.archive-hero {
  max-width: 820px;
  margin-bottom: 48px;
}

.archive-hero h1 em {
  color: #ffd7a1;
  font-style: normal;
}

.archive-hero p {
  color: #aaa4b5;
  line-height: 1.8;
}

.archive-grid {
  grid-template-columns: repeat(3, minmax(0,1fr));
}

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

  .content-universe-wrap {
    min-height: 560px;
  }

  .ring-c {
    width: 560px;
    height: 560px;
  }
}

@media (max-width: 920px) {
  .blog-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .content-universe-wrap {
    min-height: 620px;
  }

  .node-live { left: 3%; top: 16%; }
  .node-astro { right: 2%; top: 16%; }
  .node-devotion { left: 4%; bottom: 13%; }
  .node-blog { right: 3%; bottom: 13%; }
}

@media (max-width: 640px) {
  .blog-zone {
    padding: 82px 20px;
  }

  .article-grid,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .blog-head h2 {
    font-size: 42px;
  }

  .content-universe-wrap {
    min-height: 520px;
  }

  .universe-core {
    width: 210px;
    height: 210px;
  }

  .universe-k {
    font-size: 66px;
  }

  .ring-a { width: 300px; height: 300px; }
  .ring-b { width: 390px; height: 390px; }
  .ring-c { width: 470px; height: 470px; }

  .universe-node {
    min-width: 118px;
    padding: 10px 11px;
  }

  .universe-node small {
    display: none;
  }

  .node-live { left: 0; top: 15%; }
  .node-astro { right: 0; top: 15%; }
  .node-devotion { left: 2%; bottom: 11%; }
  .node-blog { right: 1%; bottom: 11%; }

  .article-topbar {
    width: min(100% - 24px, var(--max));
  }

  .article-home-link {
    font-size: 10px;
  }

  .single-article-shell,
  .article-archive-shell {
    width: min(100% - 28px, 1180px);
    padding-top: 60px;
  }

  .single-article-hero h1,
  .archive-hero h1 {
    font-size: 42px;
  }

  .single-article-content {
    font-size: 16px;
    line-height: 1.9;
  }
}


/* =========================================================
   V4.8 PERFORMANCE OPTIMIZATION
   ========================================================= */

/* Remove the old heavy full-screen blur and DOM particle layers. */
body::before,
body::after,
.content-zone::after,
.library-zone::after,
.hero-v3::before,
.bg-particle-field {
  display: none !important;
}

/* Canvas replaces dozens of separately animated DOM particles. */
.performance-particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  pointer-events: none;
  opacity: .72;
  mix-blend-mode: screen;
}

/* Keep interactive UI above the canvas. */
.topbar {
  z-index: 800;
}

.video-modal,
.search-panel-v3 {
  z-index: 1200;
}

.back-to-top {
  z-index: 1100;
}

/* Avoid repainting a large mouse-following blurred layer. */
.cursor-light {
  display: none !important;
}

/* The initial hero should render immediately without a blur/fade jump. */
.hero-v3 .reveal {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* Scroll reveals remain, but without expensive filter blur. */
.reveal {
  filter: none !important;
  transform: translateY(18px) !important;
  transition:
    opacity .52s ease,
    transform .52s cubic-bezier(.2,.7,.2,1) !important;
}

.reveal.visible {
  transform: none !important;
}

/* Lower blur cost while preserving the rich glass look. */
.topbar-inner,
.search-panel-v3,
.article-topbar {
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.universe-node,
.article-category {
  backdrop-filter: blur(7px) !important;
  -webkit-backdrop-filter: blur(7px) !important;
}

.universe-aura {
  filter: blur(28px) !important;
}

.core-halo {
  filter: blur(11px) !important;
}

.blog-orb {
  filter: blur(38px) !important;
}

/* Stop continuous animations when their section is off-screen. */
.hero-v3 .hero-aurora,
.hero-v3 .orbit,
.hero-v3 .universe-aura,
.hero-v3 .universe-ring,
.hero-v3 .universe-core,
.hero-v3 .universe-node,
.hero-v3 .core-halo,
.content-zone .zodiac-wheel,
.content-zone .temple-rays,
.content-zone .music-wave,
.content-zone .live-scan,
.content-zone .live-feature-symbol,
.content-zone .live-badge i,
.blog-zone .blog-orb {
  animation-play-state: paused !important;
}

.hero-v3.motion-active .hero-aurora,
.hero-v3.motion-active .orbit,
.hero-v3.motion-active .universe-aura,
.hero-v3.motion-active .universe-ring,
.hero-v3.motion-active .universe-core,
.hero-v3.motion-active .universe-node,
.hero-v3.motion-active .core-halo,
.content-zone.motion-active .zodiac-wheel,
.content-zone.motion-active .temple-rays,
.content-zone.motion-active .music-wave,
.content-zone.motion-active .live-scan,
.content-zone.motion-active .live-feature-symbol,
.content-zone.motion-active .live-badge i,
.blog-zone.motion-active .blog-orb {
  animation-play-state: running !important;
}

/* Let the browser isolate large sections for smoother scrolling. */
.content-zone,
.blog-zone,
.library-zone {
  contain: layout paint style;
}

/* Live iframe is only attached near this section. */
.featured-live-iframe {
  background: #050508;
}

/* Cards need transitions only on devices that support hover. */
@media (hover: none) {
  .content-card,
  .article-card,
  .live-feature {
    transition: none !important;
  }
}

/* Reduce effects further on phones without changing the design. */
@media (max-width: 640px) {
  .performance-particle-canvas {
    opacity: .55;
  }

  .ring-c {
    display: none;
  }

  .universe-aura,
  .blog-orb {
    filter: blur(22px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .performance-particle-canvas {
    display: none;
  }
}
