/* =============================================
   BHUWAN BHASKAR DHAM - Temple Website CSS
   Traditional Dharmik Theme
   ============================================= */

/* ---- CSS Variables ---- */
:root {
  --saffron: #FF6B00;
  --saffron-light: #FF8C00;
  --saffron-glow: rgba(255, 107, 0, 0.3);
  --gold: #FFD700;
  --gold-dark: #B8860B;
  --gold-light: #FFE566;
  --maroon: #800000;
  --maroon-dark: #500000;
  --maroon-light: #A52A2A;
  --cream: #FFF8E7;
  --cream-dark: #F5E6C8;
  --dark-bg: #1A0A00;
  --dark-card: #2A1200;
  --text-dark: #2D1200;
  --text-medium: #5C2E00;
  --text-light: #8B4513;
  --white: #FFFFFF;
  --shadow-gold: 0 4px 30px rgba(255, 215, 0, 0.3);
  --shadow-dark: 0 8px 32px rgba(0,0,0,0.4);
  --border-gold: 1px solid rgba(255, 215, 0, 0.4);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 2.5rem;
  background: rgba(26, 10, 0, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  transition: var(--transition);
}
.navbar.scrolled {
  padding: 0.5rem 2.5rem;
  background: rgba(26, 10, 0, 0.98);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.om-nav {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 1.6rem;
  color: var(--gold);
  text-shadow: 0 0 12px var(--gold);
  animation: omPulse 3s ease-in-out infinite;
}
@keyframes omPulse {
  0%, 100% { text-shadow: 0 0 12px var(--gold); }
  50% { text-shadow: 0 0 24px var(--gold), 0 0 40px var(--saffron); }
}
.brand-text {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.05em;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 0.4rem;
}
.nav-links a {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--cream);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  transition: var(--transition);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.nav-links a:hover {
  background: var(--saffron);
  color: var(--white);
  transform: translateY(-1px);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}
.hamburger span {
  width: 25px; height: 2px;
  background: var(--gold);
  transition: var(--transition);
  border-radius: 2px;
}

.lang-toggle {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  margin-left: 1rem;
}
.lang-toggle:hover {
  background: var(--gold);
  color: var(--dark-bg);
}
@media (max-width: 600px) {
  .lang-toggle {
    margin: 1rem 0;
    font-size: 1rem;
    padding: 0.5rem 1.5rem;
  }
}
/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,107,0,0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(128,0,0,0.3) 0%, transparent 50%),
    linear-gradient(180deg, #1A0A00 0%, #2D0D00 50%, #1A0500 100%);
}
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.particle {
  position: absolute;
  border-radius: 50%;
  animation: floatParticle linear infinite;
  opacity: 0;
}
@keyframes floatParticle {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 800px;
}
.om-symbol {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: clamp(4rem, 10vw, 7rem);
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 40px var(--gold), 0 0 80px rgba(255,215,0,0.5);
  animation: omGlow 3s ease-in-out infinite;
  margin-bottom: 0.5rem;
}
@keyframes omGlow {
  0%, 100% { text-shadow: 0 0 40px var(--gold), 0 0 80px rgba(255,215,0,0.5); transform: scale(1); }
  50% { text-shadow: 0 0 60px var(--gold), 0 0 120px rgba(255,165,0,0.7); transform: scale(1.05); }
}
.devanagari-sub {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--saffron-light);
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
  text-shadow: 0 0 20px rgba(255,140,0,0.5);
}
.hero-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  color: var(--white);
  line-height: 1.2;
  font-weight: 900;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  margin-bottom: 0.8rem;
  background: linear-gradient(135deg, #FFFFFF, #FFD700, #FF8C00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-location {
  font-size: 1rem;
  color: var(--cream-dark);
  margin-bottom: 0.8rem;
  opacity: 0.9;
}
.hero-tagline {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--cream);
  opacity: 0.85;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-light));
  color: var(--white);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(255,107,0,0.4);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255,107,0,0.6);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  border: 2px solid var(--gold);
  transition: var(--transition);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--dark-bg);
  transform: translateY(-3px);
}
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-dot {
  width: 18px; height: 30px;
  border: 2px solid rgba(255,215,0,0.6);
  border-radius: 10px;
  position: relative;
}
.scroll-dot::before {
  content: '';
  position: absolute;
  top: 5px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 6px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollAnim 2s ease infinite;
}
@keyframes scrollAnim {
  0% { top: 5px; opacity: 1; }
  100% { top: 16px; opacity: 0; }
}

/* =============================================
   MARQUEE
   ============================================= */
.marquee-strip {
  background: linear-gradient(90deg, var(--maroon-dark), var(--maroon), var(--maroon-dark));
  overflow: hidden;
  white-space: nowrap;
  padding: 0.7rem 0;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
}
.marquee-content {
  display: inline-block;
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 1.1rem;
  color: var(--gold);
  animation: marqueeScroll 25s linear infinite;
  letter-spacing: 0.08em;
}
@keyframes marqueeScroll {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* =============================================
   SECTIONS - SHARED
   ============================================= */
.section {
  padding: 4.5rem 1rem;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--maroon);
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--saffron);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--saffron));
}
.divider::after {
  background: linear-gradient(90deg, var(--saffron), transparent);
}
.section-subtitle {
  color: var(--text-medium);
  font-size: 1rem;
  margin-top: 0.4rem;
}

/* =============================================
   AUTH & LEADERBOARD STYLES
   ============================================= */
.auth-btn {
  background: var(--gold);
  color: var(--dark-bg);
  border: none;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  margin-left: 0.8rem;
  transition: var(--transition);
}
.auth-btn:hover { background: var(--white); transform: scale(1.05); }

/* Hindu Festival Events */
.events-section { background: var(--cream); }
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
}
.event-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  border-left: 5px solid var(--saffron);
  box-shadow: 0 4px 20px rgba(128,0,0,0.07);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: transform 0.2s;
  position: relative;
}
.event-card:hover { transform: translateY(-3px); }
.event-card.today { border-left-color: var(--gold); background: #fffdf0; }
.event-card.upcoming-soon { border-left-color: var(--maroon); }
.event-days-badge {
  position: absolute;
  top: 10px; right: 12px;
  font-size: 0.7rem;
  font-weight: 800;
  font-family: 'Cinzel', serif;
  color: var(--maroon);
  background: var(--cream-dark);
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
}
.event-card.today .event-days-badge { background: var(--gold); color: var(--maroon-dark); }
.event-icon { font-size: 1.8rem; line-height: 1; }
.event-name { font-family: 'Cinzel', serif; font-weight: 700; color: var(--maroon); font-size: 0.95rem; }
.event-name-hi { font-family: 'Noto Serif Devanagari', serif; color: var(--saffron); font-size: 0.88rem; font-weight: 600; }
.event-date { font-size: 0.78rem; color: #666; font-weight: 600; }
.event-timing { font-size: 0.75rem; color: var(--maroon); background: var(--cream-dark); padding: 0.2rem 0.5rem; border-radius: 6px; align-self: flex-start; margin-top: 0.1rem; }
.event-desc { font-size: 0.78rem; color: #888; margin-top: 0.2rem; }

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}
.modal-content {
  background: var(--cream);
  width: 90%;
  max-width: 400px;
  border-radius: var(--radius);
  position: relative;
  padding: 2.5rem 2rem;
  box-shadow: 0 0 50px rgba(255,215,0,0.2);
  border: 2px solid var(--gold);
}
.close-modal {
  position: absolute;
  top: 1rem; right: 1.5rem;
  font-size: 2rem;
  color: var(--maroon);
  cursor: pointer;
}
.auth-tabs {
  display: flex;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--cream-dark);
}
.tab-btn {
  flex: 1;
  padding: 0.8rem;
  background: none;
  border: none;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-light);
}
.tab-btn.active {
  color: var(--maroon);
  border-bottom: 3px solid var(--saffron);
}
.auth-form h3 { font-family: 'Cinzel', serif; color: var(--maroon); margin-bottom: 1.2rem; }
.auth-form input {
  width: 100%;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--cream-dark);
  font-family: inherit;
}
.auth-form button { width: 100%; margin-top: 0.5rem; }
.auth-note { font-size: 0.75rem; color: var(--text-light); margin-bottom: 1rem; font-style: italic; }

/* Streamer Panel */
.control-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 2px dashed var(--saffron);
  text-align: center;
}
.control-card h4 { font-family: 'Cinzel', serif; color: var(--maroon); margin-bottom: 1rem; }
.stream-controls { display: flex; gap: 1rem; justify-content: center; margin-bottom: 0.8rem; }
.control-note { font-size: 0.8rem; color: var(--text-light); }


/* =============================================
   LIVE DARSHAN SECTION
   ============================================= */
.live-section {
  background: radial-gradient(circle at center, #2D0D00, #1A0A00);
  position: relative;
}
.live-card-wrapper {
  max-width: 800px;
  margin: 0 auto;
}
.live-card {
  background: var(--dark-card);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), var(--shadow-gold);
  position: relative;
}
.live-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 10;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(255,255,255,0.2);
}
.live-badge span {
  font-size: 0.75rem;
  font-weight: 800;
  color: white;
  letter-spacing: 0.1em;
}
.pulse-dot {
  width: 10px;
  height: 10px;
  background: #ff0000;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(255, 0, 0, 0.4);
  animation: pulseRed 2s infinite;
}
@keyframes pulseRed {
  0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

.live-video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  background: #000;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--radius) var(--radius);
}
.stream-grid {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  height: 100%;
  gap: 2px;
  background: #111;
  justify-content: center;
  align-content: center;
}
.remote-stream-box {
  flex: 1 1 45%;
  min-width: 200px;
  height: 100%;
  position: relative;
  background: #000;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}
.remote-stream-box.single { flex: 1 1 100%; }
.remote-stream-box.focused {
  position: absolute;
  inset: 0;
  z-index: 20;
  width: 100% !important;
  height: 100% !important;
}
.stream-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0,0,0,0.6);
  color: #FFD700;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  z-index: 5;
  pointer-events: none;
}
.remote-stream-box:hover {
  border-color: var(--saffron);
}
#live-player-container {
  width: 100%;
  height: 100%;
  position: relative;
}
#live-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.live-watermark {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 0, 0, 0.8);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
  z-index: 10;
  letter-spacing: 0.05em;
}
.live-watermark .dot {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: pulseWhite 1.5s infinite;
}
@keyframes pulseWhite {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}
.fullscreen-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  z-index: 10;
  font-size: 1.2rem;
  transition: var(--transition);
}
.fullscreen-btn:hover {
  background: rgba(255, 107, 0, 0.8);
  border-color: var(--gold);
}
.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(26, 10, 0, 0.9), rgba(61, 18, 0, 0.8));
  z-index: 5;
  text-align: center;
  padding: 2rem;
}
.play-circle {
  width: 80px;
  height: 80px;
  background: rgba(255, 107, 0, 0.2);
  border: 2px solid var(--saffron);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}
.play-triangle {
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 25px solid var(--gold);
  margin-left: 5px;
}
.play-circle:hover {
  background: var(--saffron);
  transform: scale(1.1);
}
.video-overlay h3 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.video-overlay p {
  color: var(--cream-dark);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}
.watch-live-btn {
  display: inline-block;
  background: #ff0000;
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.05em;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(255,0,0,0.3);
}
.watch-live-btn:hover {
  background: #cc0000;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255,0,0,0.5);
}

.live-info-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 1.5rem;
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255, 215, 0, 0.1);
}
.live-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.live-info-item:last-child {
  text-align: right;
}
.info-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.info-value {
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 0.9rem;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-section {
  background: linear-gradient(135deg, #FFF8E7, #FFF0D4);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: center;
}
/* Temple Illustration */
.temple-illustration {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(255,107,0,0.05), rgba(128,0,0,0.08));
  border-radius: var(--radius);
  border: var(--border-gold);
}
.temple-top { text-align: center; position: relative; }
.kalash { font-size: 2.5rem; display: block; animation: kalashFloat 3s ease-in-out infinite; }
@keyframes kalashFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.spire-main {
  width: 12px; height: 60px;
  background: linear-gradient(180deg, var(--gold), var(--saffron));
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(255,215,0,0.4);
}
.temple-body {
  background: linear-gradient(180deg, #D4891A, #8B4513);
  border-radius: 8px 8px 0 0;
  width: 100%;
  max-width: 200px;
  padding: 1rem;
  text-align: center;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}
.temple-arch {
  width: 70px; height: 70px;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, #1A0A00, #2D0D00);
  margin: 0 auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
}
.arch-inner {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 1.8rem;
  color: var(--gold);
  text-shadow: 0 0 10px var(--gold);
}
.temple-columns {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 0.5rem;
}
.col {
  flex: 1;
  height: 35px;
  background: linear-gradient(180deg, var(--gold-dark), var(--saffron));
  border-radius: 3px 3px 0 0;
}
.temple-base {
  width: 100%;
  max-width: 220px;
  height: 16px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  border-radius: 0 0 6px 6px;
}
.diyas-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 1.4rem;
}
.diyas-row span {
  animation: diyaFlicker 1.5s ease-in-out infinite;
}
.diyas-row span:nth-child(even) { animation-delay: 0.7s; }
@keyframes diyaFlicker {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.95); }
}

/* About Text */
.about-text h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  color: var(--maroon);
  margin-bottom: 1rem;
}
.about-text p {
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}
.badge {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
  color: var(--gold);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255,215,0,0.3);
}

/* =============================================
   TIMINGS SECTION
   ============================================= */
.timings-section {
  background: linear-gradient(135deg, #1A0A00, #2D0D00, #1A0500);
  position: relative;
  overflow: hidden;
}
.timings-section::before {
  content: 'ॐ';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Noto Serif Devanagari', serif;
  font-size: clamp(8rem, 20vw, 15rem);
  color: rgba(255,215,0,0.03);
  pointer-events: none;
}
.timings-section .section-title { color: var(--gold); }
.timings-section .section-subtitle { color: var(--cream-dark); }
.timings-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
}
.timing-card {
  background: rgba(255,255,255,0.05);
  border: var(--border-gold);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.timing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.morning::before { background: linear-gradient(90deg, #FF8C00, #FFD700); }
.evening::before { background: linear-gradient(90deg, #FF4500, #9B2335); }
.timing-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.08);
  box-shadow: var(--shadow-gold);
}
.timing-icon { font-size: 2.5rem; margin-bottom: 0.8rem; display: block; }
.timing-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.time-display {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.4rem;
  color: var(--saffron-light);
  background: rgba(255,107,0,0.15);
  border: 1px solid rgba(255,107,0,0.3);
  border-radius: 50px;
  padding: 0.5rem 1.2rem;
  margin-bottom: 1rem;
  display: inline-block;
  letter-spacing: 0.05em;
}
.timing-card p {
  color: var(--cream-dark);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  opacity: 0.85;
}
.timing-activities {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.timing-activities li {
  color: var(--cream);
  font-size: 0.88rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255,215,0,0.1);
}
.timing-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.sun-icon {
  font-size: 2.5rem;
  animation: sunSpin 10s linear infinite;
}
@keyframes sunSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.timing-label {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  color: var(--gold);
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.days-badge {
  background: rgba(255,215,0,0.15);
  border: 1px solid rgba(255,215,0,0.4);
  color: var(--gold);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-family: 'Cinzel', serif;
}
.special-note {
  margin-top: 2.5rem;
  display: flex;
  gap: 0.8rem;
  align-items: center;
  background: rgba(255,215,0,0.08);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
  color: var(--cream-dark);
  font-size: 0.9rem;
  line-height: 1.6;
}
.special-note span { font-size: 1.4rem; flex-shrink: 0; }

/* =============================================
   DEITIES SECTION
   ============================================= */
.deities-section {
  background: linear-gradient(135deg, #FFF8E7, #FFF0D4, #FFE8B8);
}
.deities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.2rem;
}
.deity-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(128,0,0,0.1);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.deity-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,107,0,0.08), rgba(255,215,0,0.08));
  opacity: 0;
  transition: var(--transition);
  border-radius: inherit;
}
.deity-card:hover {
  border-color: var(--saffron);
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 36px rgba(255,107,0,0.2);
}
.deity-card:hover::before { opacity: 1; }
.deity-icon {
  font-size: 2.8rem;
  display: block;
  margin-bottom: 0.6rem;
  transition: var(--transition);
}
.deity-card:hover .deity-icon {
  transform: scale(1.15) rotate(5deg);
}
.deity-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: var(--maroon);
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.deity-card p {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.4;
  margin-bottom: 0.6rem;
}
.deity-mantra {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 0.75rem;
  color: var(--saffron);
  background: rgba(255,107,0,0.08);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  display: inline-block;
  border: 1px solid rgba(255,107,0,0.2);
}

/* =============================================
   GALLERY SECTION
   ============================================= */
.gallery-section {
  background: linear-gradient(135deg, #1A0A00, #2D0D00);
}
.gallery-section .section-title { color: var(--gold); }
.gallery-section .section-subtitle { color: var(--cream-dark); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 220px 220px;
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: var(--border-gold);
}
.gallery-large { grid-row: span 2; }
.gallery-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}
.gallery-item:hover .gallery-bg { transform: scale(1.08); }
/* Gallery backgrounds using gradients */
.gb1 { background: radial-gradient(ellipse at center, #FF6B00, #8B0000, #1A0500); }
.gb2 { background: radial-gradient(ellipse at 30% 70%, #FF8C00, #FFD700, #D4891A); }
.gb3 { background: radial-gradient(ellipse at center, #4A90D9, #1a1a5e, #000033); }
.gb4 { background: radial-gradient(ellipse at top, #FF4500, #800000, #2D0D00); }
.gb5 { background: radial-gradient(ellipse at bottom, #FFD700, #FF6B00, #8B4513); }
.gb6 { background: radial-gradient(ellipse at center, #90EE90, #228B22, #1A4A1A); }

/* Decorative icons on gallery */
.gallery-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  opacity: 0.2;
}
.gb1::before { content: '🪔'; font-size: 5rem; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.gb2::before { content: '🌸'; font-size: 4rem; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.gb3::before { content: '🔱'; font-size: 4rem; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.gb4::before { content: '🌺'; font-size: 5rem; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.gb5::before { content: '🎵'; font-size: 4rem; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.gb6::before { content: '🐘'; font-size: 4rem; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  color: var(--gold);
  font-size: 0.9rem;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.gallery-note {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--cream-dark);
  font-size: 0.9rem;
  opacity: 0.8;
  font-style: italic;
}

/* Real uploaded photos — override gradient bg with photo bg */
.gallery-item .gallery-bg[style*="background-image"] {
  background-color: #1A0A00;
}

/* Gallery Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.gallery-lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.glb-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem 0.5rem;
  transition: color 0.2s;
}
.glb-close:hover { color: #fff; }
.glb-img {
  max-width: min(92vw, 960px);
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(212, 175, 55, 0.3);
}
.glb-caption {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  margin-top: 0.8rem;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  max-width: 600px;
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-section {
  background: linear-gradient(135deg, #FFF8E7, #FFE8B8);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.contact-info-card {
  background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-dark);
  position: relative;
  overflow: hidden;
}
.contact-info-card::before {
  content: 'ॐ';
  position: absolute;
  top: -1rem; right: -1rem;
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 8rem;
  color: rgba(255,215,0,0.05);
  pointer-events: none;
}
.contact-logo {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,215,0,0.2);
}
.contact-om {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 3rem;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(255,215,0,0.5);
  display: block;
  margin-bottom: 0.5rem;
}
.contact-logo h3 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 1.2rem;
}
.contact-items { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon-wrap {
  font-size: 1.4rem;
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 10px;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail { display: flex; flex-direction: column; gap: 0.2rem; }
.contact-label {
  font-size: 0.75rem;
  color: rgba(255,215,0,0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.contact-value {
  color: var(--cream);
  font-size: 0.95rem;
  line-height: 1.6;
  text-decoration: none;
}
a.contact-value:hover { color: var(--gold-light); }
.call-btn {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, var(--saffron), var(--saffron-light));
  color: white;
  padding: 1rem;
  border-radius: 50px;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(255,107,0,0.4);
}
.call-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255,107,0,0.6);
}

/* Map Card */
.map-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(128,0,0,0.15);
  border: 2px solid rgba(255,107,0,0.2);
}
.map-placeholder {
  height: 280px;
  background: linear-gradient(135deg, #E8F5E9, #C8E6C9, #A5D6A7);
  position: relative;
  overflow: hidden;
}
.map-bg-design {
  position: absolute;
  inset: 0;
}
.map-road {
  position: absolute;
  background: rgba(210, 190, 130, 0.8);
}
.map-road.horizontal {
  width: 100%; height: 14px;
  top: 50%; transform: translateY(-50%);
}
.map-road.vertical {
  height: 100%; width: 14px;
  left: 40%;
}
.map-canal {
  position: absolute;
  bottom: 30%;
  width: 100%; height: 10px;
  background: rgba(100, 160, 200, 0.5);
}
.map-label-agiaon, .map-label-canal {
  position: absolute;
  font-size: 0.75rem;
  font-weight: 600;
  color: #333;
  background: rgba(255,255,255,0.7);
  padding: 2px 6px;
  border-radius: 4px;
}
.map-label-agiaon { top: 30%; left: 55%; }
.map-label-canal { bottom: 28%; left: 55%; font-size: 0.7rem; color: #4a80a0; }
.map-pin-animation {
  position: absolute;
  top: 50%; left: 40%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.map-pin {
  font-size: 3rem;
  display: block;
  animation: pinBounce 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}
@keyframes pinBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.map-pin-label {
  background: white;
  border: 1px solid var(--saffron);
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--maroon);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.map-directions {
  padding: 1.5rem;
  border-top: 1px solid rgba(255,107,0,0.1);
}
.map-directions p {
  font-size: 0.88rem;
  color: var(--text-medium);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.directions-btn {
  display: inline-block;
  background: var(--maroon);
  color: var(--gold);
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}
.directions-btn:hover {
  background: var(--saffron);
  color: white;
  transform: translateX(3px);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--dark-bg);
  border-top: 3px solid var(--gold);
  padding: 3rem 1rem 1.5rem;
  text-align: center;
}
.footer-top { margin-bottom: 1.5rem; }
.footer-om {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 3.5rem;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(255,215,0,0.5);
  display: block;
  margin-bottom: 0.5rem;
}
.footer-name {
  font-family: 'Cinzel Decorative', serif;
  color: var(--gold);
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}
.footer-address {
  color: var(--cream-dark);
  font-size: 0.88rem;
  opacity: 0.7;
  margin-bottom: 1rem;
}
.footer-line {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  font-size: 1.3rem;
}
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,215,0,0.15);
  border-bottom: 1px solid rgba(255,215,0,0.15);
}
.footer-nav a {
  color: var(--cream-dark);
  text-decoration: none;
  font-size: 0.85rem;
  font-family: 'Cinzel', serif;
  padding: 0.2rem 0.8rem;
  transition: var(--transition);
  letter-spacing: 0.05em;
}
.footer-nav a:hover { color: var(--gold); }
.footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
}
.footer-bottom .footer-om-shloka {
  font-family: 'Noto Serif Devanagari', serif;
  color: rgba(255,215,0,0.5);
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}

/* =============================================
   DIVINE STRIP (Diya / Prasad / Daan)
   ============================================= */
.divine-strip {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  background: linear-gradient(135deg, #1a0a00 0%, #2d0d00 50%, #1a0a00 100%);
  border-top: 2px solid rgba(255,215,0,0.25);
  border-bottom: 2px solid rgba(255,215,0,0.25);
  overflow: hidden;
}
.divine-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 1rem 0.5rem;
  background: none;
  border: none;
  border-right: 1px solid rgba(255,215,0,0.15);
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.divine-btn:last-child { border-right: none; }
.divine-btn:hover { background: rgba(255,215,0,0.08); }
.divine-btn:active { transform: scale(0.96); }
.divine-icon {
  font-size: 1.9rem;
  display: block;
  transition: transform 0.3s;
}
.divine-btn:hover .divine-icon { transform: scale(1.2); }
.divine-label {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  font-weight: 700;
}
.divine-label-hi {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 0.7rem;
  color: rgba(255,215,0,0.6);
}
.divine-btn.diya-lit .divine-icon { animation: flicker 0.8s infinite alternate; }
@keyframes flicker {
  0%   { text-shadow: 0 0 6px #ff6600, 0 0 20px #ff9900; transform: scale(1.1) rotate(-3deg); }
  50%  { text-shadow: 0 0 10px #ffaa00, 0 0 30px #ff6600; transform: scale(1.15) rotate(2deg); }
  100% { text-shadow: 0 0 8px #ff6600, 0 0 24px #ff9900; transform: scale(1.12) rotate(-1deg); }
}
.prasad-particle {
  position: fixed;
  font-size: 1.8rem;
  pointer-events: none;
  z-index: 9999;
  animation: floatUp 2.2s ease-out forwards;
}
@keyframes floatUp {
  0%   { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-60vh) scale(0.5); }
}

/* =============================================
   LIVE + CHAT ROW
   ============================================= */
.live-and-chat-row {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  align-items: start;
}
.chat-panel {
  background: var(--dark-card);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  height: 520px;
  overflow: hidden;
  flex-shrink: 0;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, var(--maroon), #5a0000);
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 700;
  border-bottom: 1px solid rgba(255,215,0,0.2);
}
.chat-live-dot {
  width: 8px; height: 8px;
  background: #ff4444;
  border-radius: 50%;
  animation: pulse 1.2s infinite;
  flex-shrink: 0;
}
.chat-count {
  margin-left: auto;
  background: rgba(255,215,0,0.15);
  color: var(--gold);
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255,215,0,0.3);
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255,215,0,0.3); border-radius: 2px; }
.chat-welcome {
  text-align: center;
  color: rgba(255,215,0,0.5);
  font-size: 0.78rem;
  font-family: 'Noto Serif Devanagari', serif;
  padding: 0.5rem;
}
.chat-msg-item { display: flex; flex-direction: column; gap: 0.1rem; }
.chat-msg-name { font-size: 0.68rem; color: var(--saffron); font-weight: 700; font-family: 'Cinzel', serif; }
.chat-msg-text { font-size: 0.82rem; color: var(--cream); font-family: 'Noto Serif Devanagari', serif; line-height: 1.4; word-break: break-word; }
.chat-msg-time { font-size: 0.62rem; color: rgba(255,255,255,0.3); align-self: flex-end; }
.chat-quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid rgba(255,215,0,0.1);
}
.chat-quick-btns button {
  background: rgba(255,107,0,0.12);
  border: 1px solid rgba(255,107,0,0.3);
  color: var(--cream);
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.chat-quick-btns button:hover { background: rgba(255,107,0,0.3); }
.chat-input-row {
  display: flex;
  gap: 0.3rem;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid rgba(255,215,0,0.1);
}
.chat-input-row input {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 8px;
  color: var(--cream);
  font-size: 0.8rem;
  padding: 0.45rem 0.6rem;
  outline: none;
  flex: 1;
  min-width: 0;
}
.chat-input-row input:focus { border-color: var(--saffron); }
.chat-input-row input::placeholder { color: rgba(255,255,255,0.3); font-size: 0.75rem; }
.chat-input-row button {
  background: var(--saffron);
  border: none;
  color: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.2s;
}
.chat-input-row button:hover { background: #e05500; }
.chat-donation-btn-row {
  display: flex;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid rgba(255,215,0,0.1);
}
.chat-donate-btn, .chat-share-btn {
  flex: 1;
  padding: 0.5rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}
.chat-donate-btn { background: linear-gradient(135deg, #c0392b, #e74c3c); color: #fff; }
.chat-share-btn { background: linear-gradient(135deg, #27ae60, #2ecc71); color: #fff; }
.chat-donate-btn:hover, .chat-share-btn:hover { opacity: 0.85; }

/* =============================================
   PRAVACHAN SECTION
   ============================================= */
.pravachan-section { background: #0d0500; padding-bottom: 2rem; }
.pravachan-scroll-wrap {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 1.5rem auto 0;
  height: 80vh;
  min-height: 480px;
  transition: max-width 0.35s ease;
  max-height: 720px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255,215,0,0.2);
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
}
.pravachan-scroll-container {
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pravachan-scroll-container::-webkit-scrollbar { display: none; }
.pravachan-card {
  height: 100%;
  scroll-snap-align: start;
  position: relative;
  background: #000;
  display: flex;
  flex-direction: column;
}
.pravachan-iframe-wrap {
  flex: 1;
  position: relative;
  background: #000;
}
.pravachan-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.pravachan-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.2rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 100%);
  pointer-events: none;
}
.pravachan-pandit-tag {
  display: inline-block;
  background: var(--saffron);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: 'Cinzel', serif;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  margin-bottom: 0.3rem;
}
.pravachan-video-title {
  font-family: 'Cinzel', serif;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.pravachan-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  background: #111;
  border-top: 1px solid rgba(255,215,0,0.15);
  flex-shrink: 0;
}
.prav-action-btn {
  background: none;
  border: none;
  color: var(--cream);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  transition: background 0.2s;
}
.prav-action-btn:hover { background: rgba(255,255,255,0.1); }
.prav-action-btn.liked { color: #e74c3c; }
.prav-comment-toggle {
  margin-left: auto;
  background: rgba(255,107,0,0.15);
  border: 1px solid rgba(255,107,0,0.3);
  color: var(--cream);
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 16px;
  cursor: pointer;
}
.pravachan-comments {
  background: #0d0500;
  border-top: 1px solid rgba(255,215,0,0.1);
  padding: 0.75rem;
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 180px;
  overflow-y: auto;
  flex-shrink: 0;
}
.pravachan-comments.open { display: flex; }
.prav-comment-item { font-size: 0.78rem; color: var(--cream); border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 0.3rem; }
.prav-comment-name { color: var(--saffron); font-weight: 700; margin-right: 0.4rem; }
.prav-comment-input-row { display: flex; gap: 0.4rem; margin-top: 0.4rem; }
.prav-comment-input-row input {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 6px;
  color: #fff;
  font-size: 0.78rem;
  padding: 0.35rem 0.6rem;
  outline: none;
  min-width: 0;
}
.prav-comment-input-row button { background: var(--saffron); border: none; color: #fff; border-radius: 6px; padding: 0.35rem 0.7rem; cursor: pointer; font-size: 0.78rem; }
.prav-nav {
  position: absolute;
  right: 10px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,215,0,0.3);
  color: var(--gold);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}
.prav-nav:hover { background: rgba(255,107,0,0.4); }
.prav-nav-up { top: 10px; }
.prav-nav-down { bottom: 10px; }

/* --- Pravachan: Portrait (Shorts 9:16) --- */
.pravachan-card.portrait .pravachan-iframe-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.pravachan-card.portrait .pravachan-iframe-wrap iframe {
  position: static;
  width: auto;
  height: 100%;
  aspect-ratio: 9 / 16;
  max-width: 100%;
}

/* --- Pravachan: Landscape (16:9) --- */
.pravachan-card.landscape .pravachan-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* --- Fullscreen button --- */
.prav-fullscreen-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,215,0,0.3);
  color: var(--gold);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
  line-height: 1;
}
.prav-fullscreen-btn:hover { background: rgba(255,107,0,0.45); }

/* Fullscreen: div covers whole screen, iframe fills it */
.pravachan-iframe-wrap:-webkit-full-screen { background: #000; display: flex; align-items: center; justify-content: center; }
.pravachan-iframe-wrap:fullscreen           { background: #000; display: flex; align-items: center; justify-content: center; }
.pravachan-iframe-wrap:-webkit-full-screen iframe { position: static; width: 100%; height: 100%; }
.pravachan-iframe-wrap:fullscreen           iframe { position: static; width: 100%; height: 100%; }
/* Portrait fullscreen: keep 9:16 */
.pravachan-card.portrait .pravachan-iframe-wrap:-webkit-full-screen iframe { width: auto; height: 100%; aspect-ratio: 9/16; }
.pravachan-card.portrait .pravachan-iframe-wrap:fullscreen           iframe { width: auto; height: 100%; aspect-ratio: 9/16; }
/* Keep fullscreen button visible in fullscreen */
.pravachan-iframe-wrap:-webkit-full-screen .prav-fullscreen-btn,
.pravachan-iframe-wrap:fullscreen           .prav-fullscreen-btn { display: none; }

/* =============================================
   DONATION MODAL
   ============================================= */
.donation-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
.donation-modal.open { display: flex; }
.donation-modal-inner {
  background: linear-gradient(145deg, #1a0a00, #2d0d00);
  border: 2px solid rgba(255,215,0,0.4);
  border-radius: 20px;
  padding: 2rem 1.8rem;
  max-width: 360px;
  width: calc(100% - 2rem);
  text-align: center;
  position: relative;
  box-shadow: 0 12px 60px rgba(0,0,0,0.7), var(--shadow-gold);
}
.donation-close {
  position: absolute;
  top: 12px; right: 14px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.2rem;
  cursor: pointer;
}
.donation-close:hover { color: #fff; }
.donation-om {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 2.5rem;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(255,215,0,0.5);
  margin-bottom: 0.3rem;
}
.donation-title { font-family: 'Cinzel Decorative', serif; color: var(--gold); font-size: 1.3rem; margin-bottom: 0.2rem; }
.donation-subtitle { font-family: 'Noto Serif Devanagari', serif; color: rgba(255,215,0,0.65); font-size: 0.82rem; margin-bottom: 1.2rem; }
.donation-amounts { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.amount-btn {
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.35);
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.amount-btn:hover, .amount-btn.active { background: var(--gold); color: #1a0a00; }
.donation-upi-id {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(255,215,0,0.08);
  border: 1px solid rgba(255,215,0,0.25);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  margin-bottom: 1rem;
  font-family: 'Cinzel', serif;
  color: var(--cream);
  font-size: 0.88rem;
  word-break: break-all;
}
.copy-upi-btn {
  background: rgba(255,215,0,0.15);
  border: 1px solid rgba(255,215,0,0.35);
  color: var(--gold);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.copy-upi-btn:hover { background: rgba(255,215,0,0.3); }
.upi-pay-btn {
  display: block;
  background: linear-gradient(135deg, var(--saffron), #e05500);
  color: #fff;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 30px;
  margin-bottom: 0.8rem;
  box-shadow: 0 4px 18px rgba(255,107,0,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.upi-pay-btn:hover { transform: scale(1.03); box-shadow: 0 6px 24px rgba(255,107,0,0.6); }
.donation-apps { color: rgba(255,255,255,0.4); font-size: 0.72rem; margin-bottom: 0.6rem; }
.donation-note { font-family: 'Noto Serif Devanagari', serif; color: rgba(255,215,0,0.55); font-size: 0.78rem; }

/* =============================================
   NOTICEBOARD SECTION
   ============================================= */
.noticeboard-section { background: linear-gradient(180deg, #fff5e0 0%, var(--cream) 100%); }
.noticeboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}
.notice-card {
  background: var(--white);
  border-left: 4px solid var(--saffron);
  border-radius: 10px;
  padding: 1.2rem 1.2rem 1rem;
  box-shadow: 0 3px 14px rgba(139,26,26,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.notice-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(139,26,26,0.13); }
.notice-card-icon { font-size: 1.8rem; margin-bottom: 0.4rem; display: block; }
.notice-card-title { font-family: 'Cinzel', serif; font-size: 0.95rem; color: var(--maroon); font-weight: 700; margin-bottom: 0.4rem; }
.notice-card-content { font-size: 0.85rem; color: var(--text-medium); line-height: 1.6; margin-bottom: 0.5rem; }
.notice-card-date { font-size: 0.72rem; color: var(--text-light); font-style: italic; }
.notice-empty, .notice-loading { text-align: center; padding: 2rem; color: var(--text-light); font-style: italic; grid-column: 1/-1; }

/* =============================================
   PANDITS SECTION
   ============================================= */

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .temple-illustration { max-width: 300px; margin: 0 auto; }
  .timings-grid { grid-template-columns: 1fr; }
  .timing-divider { flex-direction: row; padding: 1rem 0; border-top: 1px solid rgba(255,215,0,0.1); border-bottom: 1px solid rgba(255,215,0,0.1); }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-large { grid-row: span 1; }
  .live-and-chat-row { grid-template-columns: 1fr; }
  .chat-panel { height: 400px; }
}
@media (max-width: 600px) {
  .navbar { padding: 0.8rem 1.2rem; }
  .brand-text { font-size: 0.9rem; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26,10,0,0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.2rem; padding: 0.6rem 2rem; }
  .hamburger { display: flex; z-index: 1000; }
  .deities-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gallery-item { height: 200px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .divine-strip { flex-wrap: wrap; }
  .divine-btn { min-width: 33.33%; padding: 1rem 0.3rem; }
  .divine-icon { font-size: 2.2rem; }
  .divine-label { font-size: 0.72rem; }
  .divine-label-hi { font-size: 0.72rem; }
  .pravachan-scroll-wrap { height: 70vh; border-radius: 0; border-left: none; border-right: none; }
  .noticeboard-grid { grid-template-columns: 1fr; }
  .section { padding: 3rem 0.5rem; }
  .section-header { margin-bottom: 1.8rem; }
  .section-title { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .events-grid { gap: 0.7rem; }
  .event-card { padding: 0.85rem 0.9rem; }
  .chat-panel { height: 340px; }
  .live-section .container { padding: 0 0.5rem; }
  .live-info-bar { flex-direction: column; gap: 0.5rem; padding: 0.75rem 1rem; }
  .deity-card { padding: 1rem 0.6rem; }
  .deity-icon { font-size: 2.3rem; }
  .contact-items { gap: 0.8rem; }
  .hero-content { padding: 1.2rem; }
  .special-note { padding: 0.8rem 1rem; }
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   YOUTUBE-STYLE SINGLE PLAYER
   ============================================= */
#stream-viewer {
  width: 100%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

#main-player-wrap {
  position: relative;
  width: 100%;
  background: #000;
}

#main-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: contain;
  background: #000;
}
@media (min-width: 769px) {
  #main-player { max-height: 72vh; aspect-ratio: unset; }
}

/* Controls bar — always visible on mobile, hover-reveal on desktop */
.player-controls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.88));
  opacity: 1;
  transition: opacity 0.3s;
}
@media (min-width: 769px) {
  .player-controls { opacity: 0; }
  #main-player-wrap:hover .player-controls { opacity: 1; }
}

.player-ctl-left  { display: flex; align-items: center; gap: 0.4rem; }
.player-ctl-right { margin-left: auto; }

.player-controls button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
}
.player-controls button:active { opacity: 0.7; }

.player-stream-label {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#vol-slider {
  width: 75px;
  accent-color: #fff;
  cursor: pointer;
}

/* Stream switcher bar (when 2+ streamers live) */
.stream-switcher {
  display: flex;
  gap: 0.5rem;
  padding: 8px 12px;
  background: rgba(0,0,0,0.82);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.switcher-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 5px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.82rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}
.switcher-btn.active {
  background: var(--saffron, #ff9933);
  border-color: var(--saffron, #ff9933);
  font-weight: 700;
}

/* Offline placeholder */
.player-offline {
  padding: 3rem 1rem;
  text-align: center;
  color: #888;
  font-style: italic;
  line-height: 1.9;
  background: #111;
}

/* Native fullscreen */
#main-player-wrap:fullscreen        #main-player { max-height: 100vh; height: 100vh; }
#main-player-wrap:-webkit-full-screen #main-player { max-height: 100vh; height: 100vh; }

/* Keep old grid CSS below (unused but harmless) */
.stream-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.5rem;
  width: 100%;
  min-height: 200px;
  padding: 0.5rem;
  box-sizing: border-box;
}

.stream-tile {
  position: relative;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stream-tile:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

.stream-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stream-tile.fullscreen {
  position: fixed;
  inset: 0;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999;
  border-radius: 0;
  transform: none;
  aspect-ratio: unset;
}

.stream-label {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  pointer-events: none;
}

.stream-close-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 0.85rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.stream-tile.fullscreen .stream-close-btn {
  display: flex;
}

/* Bottom control bar — always visible on each stream tile */
.stream-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.78));
}
.stream-bar button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 3px 5px;
  line-height: 1;
  border-radius: 4px;
}
.stream-bar button:active { background: rgba(255,255,255,0.15); }
.stream-bar .vol-display {
  color: #fff;
  font-size: 0.75rem;
  min-width: 30px;
  text-align: center;
}
.stream-bar .fs-btn { margin-left: auto; }

.offline-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: #888;
  font-style: italic;
  line-height: 1.8;
}

/* ===================================================
   FACEBOOK-STYLE LIVE STREAM CARDS
   =================================================== */
.stream-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  padding: 0.5rem 0;
}

.stream-card {
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.stream-card:hover  { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.45); }
.stream-card:active { transform: scale(0.97); }

.stream-card-video-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}
.stream-card-video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.stream-card-live-badge {
  position: absolute; top: 0.5rem; left: 0.5rem;
  background: #e00; color: #fff;
  font-size: 0.68rem; font-weight: 800;
  padding: 2px 8px; border-radius: 4px;
  letter-spacing: 0.06em;
}
.stream-card-play-hint {
  position: absolute; bottom: 0.5rem; right: 0.5rem;
  background: rgba(0,0,0,0.65); color: #fff;
  font-size: 0.72rem; padding: 3px 10px;
  border-radius: 20px;
}
.stream-card-info {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  background: #1c1c1c;
}
.stream-card-avatar { font-size: 1.3rem; }
.stream-card-name {
  color: #f0f0f0; font-size: 0.85rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ===================================================
   STREAM MODAL (full-screen overlay player)
   =================================================== */
.stream-modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 9999;
  align-items: center; justify-content: center;
  padding: 1rem;
}
.stream-modal-inner {
  position: relative;
  width: 100%; max-width: 900px;
  background: #000; border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}
#modal-player {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  object-fit: contain;
  background: #000;
}
.modal-stream-label {
  position: absolute; top: 0.6rem; left: 0.6rem;
  background: rgba(200,0,0,0.88); color: #fff;
  font-size: 0.78rem; font-weight: 800;
  padding: 3px 10px; border-radius: 5px; z-index: 10;
}
.modal-close-btn {
  position: absolute; top: 0.5rem; right: 0.5rem;
  background: rgba(0,0,0,0.72); color: #fff;
  border: none; border-radius: 50%;
  width: 34px; height: 34px;
  font-size: 1rem; cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
}
.modal-close-btn:hover { background: rgba(255,0,0,0.7); }
.modal-controls {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  background: #111;
}
.modal-controls button {
  background: rgba(255,255,255,0.12); border: none; color: #fff;
  padding: 0.4rem 0.85rem; border-radius: 6px;
  cursor: pointer; font-size: 1rem;
}
.modal-controls button:hover { background: rgba(255,255,255,0.22); }
.recording-seekbar {
  background: #111; padding: 0.4rem 0.8rem 0.2rem;
}
.seekbar-row {
  display: flex; align-items: center; gap: 0.6rem;
}
.seekbar-row span {
  color: #ccc; font-size: 0.75rem; white-space: nowrap; min-width: 36px;
}
#seek-range {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 4px; border-radius: 4px; outline: none; cursor: pointer;
  background: linear-gradient(to right, #e65100 0%, #e65100 0%, #555 0%, #555 100%);
}
#seek-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px;
  border-radius: 50%; background: #f5d48b; cursor: pointer;
  box-shadow: 0 0 4px rgba(0,0,0,0.6);
}
#seek-range::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: #f5d48b; cursor: pointer; border: none;
}

/* =============================================
   PRAVACHAN SHELF (thumbnail cards below live)
   ============================================= */
.prav-shelf-section {
  background: linear-gradient(180deg, #0d0500 0%, #1a0900 100%);
  padding: 1.8rem 0 2rem;
  border-top: 2px solid rgba(255,215,0,0.2);
  border-bottom: 2px solid rgba(255,215,0,0.2);
}
.prav-shelf-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 1.2rem 0.9rem;
  max-width: 1200px;
  margin: 0 auto;
}
.prav-shelf-heading {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.05rem, 3.5vw, 1.45rem);
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.prav-shelf-subhead {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 0.82rem;
  color: rgba(255,215,0,0.55);
}
.prav-shelf-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.4rem 1.2rem 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.prav-shelf-scroll::-webkit-scrollbar { display: none; }
.prav-shelf-card {
  flex-shrink: 0;
  width: 200px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,215,0,0.15);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.prav-shelf-card:hover, .prav-shelf-card:active {
  transform: scale(1.04);
  border-color: rgba(255,107,0,0.55);
  box-shadow: 0 8px 28px rgba(255,107,0,0.22);
}
@media (max-width: 600px) { .prav-shelf-card { width: 165px; } }
.prav-shelf-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #060200;
  overflow: hidden;
}
.prav-shelf-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.3s;
}
.prav-shelf-card:hover .prav-shelf-thumb img,
.prav-shelf-card:active .prav-shelf-thumb img { transform: scale(1.06); }
.prav-shelf-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.3);
  transition: background 0.2s;
}
.prav-shelf-card:hover .prav-shelf-play,
.prav-shelf-card:active .prav-shelf-play { background: rgba(0,0,0,0.48); }
.prav-shelf-play-btn {
  width: 48px; height: 48px;
  background: rgba(255,107,0,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  padding-left: 3px;
  box-shadow: 0 3px 16px rgba(0,0,0,0.55);
  transition: transform 0.2s, background 0.2s;
}
.prav-shelf-card:hover .prav-shelf-play-btn { transform: scale(1.12); background: var(--saffron); }
.prav-shelf-portrait .prav-shelf-thumb { aspect-ratio: 9/16; max-height: 180px; }
.prav-shelf-tag-overlay {
  position: absolute; bottom: 6px; left: 6px;
  background: rgba(255,107,0,0.88);
  color: #fff; font-size: 0.6rem; font-weight: 700;
  padding: 0.15rem 0.5rem; border-radius: 8px;
  max-width: calc(100% - 12px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.prav-shelf-info { padding: 0.65rem 0.85rem 0.8rem; }
.prav-shelf-video-title {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem; color: var(--cream); font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 0.38rem;
}
.prav-shelf-pandit-name {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 0.7rem; color: var(--saffron-light); line-height: 1.4;
}
.prav-shelf-tag {
  display: inline-block;
  background: rgba(255,107,0,0.12);
  border: 1px solid rgba(255,107,0,0.25);
  color: var(--saffron); font-size: 0.6rem;
  padding: 0.12rem 0.42rem; border-radius: 10px;
  margin-top: 0.3rem;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.prav-shelf-empty {
  text-align: center; padding: 2.5rem 1.5rem;
  color: rgba(255,215,0,0.45);
  width: 100%; min-width: 300px;
  display: flex; flex-direction: column;
  align-items: center; gap: 0.75rem;
}
.prav-shelf-empty span { font-size: 2.8rem; }

/* =============================================
   PRAVACHAN VIDEO MODAL
   ============================================= */
/* =============================================
   PRAVACHAN SHORTS VIEWER (YouTube Shorts style)
   ============================================= */
.prav-shorts-view {
  display: none; position: fixed; inset: 0; z-index: 9500;
  background: #000; overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.prav-shorts-view.open { display: block; }

/* Full-screen iframe behind everything */
.prav-shorts-iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: none; display: block;
}

/* Top gradient overlay */
.prav-shorts-topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem;
  padding: max(env(safe-area-inset-top, 0px), 0.7rem) 1rem 1.4rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.75) 0%, transparent 100%);
  pointer-events: none;
}
.prav-shorts-topbar > * { pointer-events: auto; }
.prav-shorts-brand {
  font-family: 'Cinzel', serif; font-size: 0.85rem; font-weight: 700;
  color: var(--gold); letter-spacing: 0.04em;
}
.prav-shorts-counter {
  font-size: 0.8rem; color: rgba(255,255,255,0.75); font-weight: 600;
  background: rgba(0,0,0,0.35); padding: 0.25rem 0.65rem; border-radius: 20px;
}
.prav-shorts-close {
  background: rgba(255,255,255,0.12); border: none; color: #fff;
  width: 38px; height: 38px; border-radius: 50%; font-size: 1.1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; flex-shrink: 0;
}
.prav-shorts-close:hover, .prav-shorts-close:active { background: rgba(255,107,0,0.5); }

/* Left swipe zone — captures touch for swipe-to-navigate */
.prav-shorts-swipe-zone {
  position: absolute; left: 0; top: 10%; bottom: 30%;
  width: 14%; z-index: 4; cursor: pointer;
}

/* Right side action buttons */
.prav-shorts-side-btns {
  position: absolute; right: 0.7rem; bottom: 180px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 1.1rem;
}
.prav-shorts-side-btn {
  background: rgba(255,255,255,0.12); border: none; color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
  padding: 0.6rem 0.5rem; border-radius: 50px; cursor: pointer; min-width: 48px;
  font-size: 1.4rem; transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.prav-shorts-side-btn:hover, .prav-shorts-side-btn:active { background: rgba(255,165,0,0.3); }
.prav-shorts-btn-lbl {
  font-size: 0.62rem; font-weight: 700; color: rgba(255,255,255,0.85);
  font-family: 'Cinzel', serif; letter-spacing: 0.02em;
}
#pravShortsLikeBtn.liked { color: #ff6b6b; }

/* Full-screen swipe overlay — above iframe (z:1), below UI (z:3) */
.prav-shorts-overlay {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: auto; /* captures touch; briefly set to none on tap to pass click through */
}

/* Bottom info bar */
.prav-shorts-infobar {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  padding: 4rem 1rem calc(env(safe-area-inset-bottom, 0px) + 0.9rem) 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, transparent 100%);
  pointer-events: none;
}
.prav-shorts-infobar > * { pointer-events: auto; }
.prav-shorts-info { margin-bottom: 0; }
.prav-shorts-title {
  font-family: 'Cinzel', serif; font-size: clamp(0.85rem, 3.5vw, 1rem);
  color: #fff; font-weight: 700; margin-bottom: 0.2rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}
.prav-shorts-pandit {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 0.78rem; color: var(--saffron-light);
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* Swipe-up hint shown when video ends */
.prav-shorts-end-hint {
  display: none; position: absolute; z-index: 4;
  bottom: 160px; left: 50%; transform: translateX(-50%);
  flex-direction: column; align-items: center; gap: 0.25rem;
  background: rgba(0,0,0,0.72); border: 1px solid rgba(255,215,0,0.3);
  border-radius: 18px; padding: 0.9rem 1.6rem;
  font-family: 'Noto Serif Devanagari', serif; color: #fff;
  font-size: 0.88rem; text-align: center; pointer-events: none;
  backdrop-filter: blur(6px);
}
.prav-shorts-end-hint.visible { display: flex; }
.prav-shorts-end-arrow {
  font-size: 1.6rem; color: var(--gold);
  animation: pravEndArrowBounce 0.9s ease-in-out infinite;
}
@keyframes pravEndArrowBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* Slide transition */
@keyframes pravSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.prav-shorts-view.open .prav-shorts-infobar { animation: pravSlideUp 0.3s ease; }

/* =============================================
   MOBILE BOTTOM NAVIGATION
   ============================================= */
.mobile-bottom-nav { display: none; }
@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(10, 4, 0, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,215,0,0.22);
    z-index: 1100;
    justify-content: space-around;
    align-items: stretch;
    padding-bottom: env(safe-area-inset-bottom, 4px);
  }
  body { padding-bottom: 72px; }
  #pwa-banner { bottom: 72px; }
}
.mobile-bottom-nav a, .mobile-bottom-nav button {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.18rem; text-decoration: none;
  color: rgba(255,215,0,0.4);
  background: none; border: none; cursor: pointer;
  padding: 0.55rem 0.2rem;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
  min-width: 0; outline: none;
}
.mobile-bottom-nav a:hover,
.mobile-bottom-nav button:hover,
.mobile-bottom-nav a:active,
.mobile-bottom-nav button:active { color: var(--saffron); }
.mob-nav-icon { font-size: 1.3rem; line-height: 1; display: block; }
.mob-nav-label {
  font-family: 'Cinzel', serif; font-size: 0.58rem;
  font-weight: 700; letter-spacing: 0.02em;
  color: inherit; display: block;
}

/* =============================================
   AARTI DARSHAN SECTION — Mandir Frame Design
   ============================================= */
.aarti-section {
  background: radial-gradient(ellipse at center, #1a0800 0%, #0d0300 100%);
  padding: 4rem 0 3rem;
}

/* Special live event banner */
.live-event-banner {
  background: linear-gradient(135deg, #5c0000, #8B1A1A);
  border: 2px solid #ff4040;
  border-radius: 12px;
  padding: 12px 28px;
  display: inline-block;
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  animation: bannerGlow 2s ease-in-out infinite;
}
@keyframes bannerGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(255,64,64,0.4); }
  50% { box-shadow: 0 0 30px rgba(255,64,64,0.9); }
}

/* ---- Main 3-column layout ---- */
.aarti-main-layout {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ---- Aarti Time Pillars ---- */
.aarti-time-pillar {
  flex: 0 0 155px;
  background: linear-gradient(180deg, #1f0c00, #2a1100);
  border: 2px solid rgba(212,160,74,0.35);
  border-radius: 18px;
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  transition: all 0.5s ease;
  position: relative;
}
.aarti-time-pillar.active {
  border-color: #ffd700;
  background: linear-gradient(180deg, #2e1600, #3d1e00);
  box-shadow: 0 0 35px rgba(255,165,0,0.45);
}
.aarti-time-pillar.active::before {
  content: '🟢 अभी चल रही है';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #27ae60;
  color: #fff;
  font-size: 0.65rem;
  font-family: 'Noto Serif Devanagari', serif;
  border-radius: 20px;
  padding: 2px 10px;
  white-space: nowrap;
}
.aarti-pillar-deco { font-size: 2.2rem; line-height: 1; }
.aarti-pillar-title {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #ffd700;
}
.aarti-pillar-title-en {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  color: #c8a860;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.aarti-pillar-time {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1rem;
  color: #ff9900;
  line-height: 1.35;
  font-weight: 700;
}
.aarti-pillar-time small { font-size: 0.75em; color: #c8a860; }
.aarti-pillar-activities {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 0.75rem;
  color: #c8a860;
  line-height: 1.9;
  text-align: left;
  width: 100%;
}
.aarti-watch-btn {
  background: linear-gradient(135deg, #8B1A1A, #c0392b);
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 8px 22px;
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.4rem;
  transition: all 0.3s;
  letter-spacing: 0.03em;
}
.aarti-watch-btn:hover {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(192,57,43,0.5);
}
.aarti-pillar-status {
  font-size: 0.7rem;
  color: #aaa;
  font-style: italic;
  min-height: 1em;
}

/* ---- Mandir Frame ---- */
.mandir-frame-wrap {
  flex: 1;
  min-width: 280px;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mandir-frame {
  width: 100%;
  position: relative;
  background: #0d0500;
  border: 3px solid #d4a04a;
  border-radius: 48% 48% 6px 6px / 22% 22% 6px 6px;
  overflow: hidden;
  box-shadow:
    0 0 0 6px rgba(212,160,74,0.18),
    0 0 40px rgba(212,160,74,0.25),
    inset 0 0 30px rgba(0,0,0,0.6);
}

/* Floating daily decoration */
.daily-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  overflow: hidden;
}
@keyframes floatPetal {
  0%   { transform: translateY(0) rotate(0deg) scale(1); opacity: 0.6; }
  50%  { transform: translateY(-12px) rotate(15deg) scale(1.1); opacity: 0.9; }
  100% { transform: translateY(4px) rotate(-8deg) scale(0.95); opacity: 0.5; }
}

/* Arch / Shikhara top */
.mandir-arch-top {
  background: linear-gradient(135deg, #8B1A1A 0%, #d4a04a 50%, #8B1A1A 100%);
  padding: 16px 16px 12px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.mandir-arch-shikhara {
  width: 0;
  height: 0;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-bottom: 28px solid rgba(255,215,0,0.4);
  margin: 0 auto 6px;
}
.mandir-arch-text {
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.65rem;
  color: #fff8e7;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  display: block;
}

/* Side diya pillars */
.mandir-side-pillar {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  z-index: 9;
}
.mandir-side-pillar.left  { left:  -22px; }
.mandir-side-pillar.right { right: -22px; }
.diya-base { font-size: 1.3rem; line-height: 1; }
.diya-flame {
  width: 9px; height: 16px;
  background: linear-gradient(180deg, #fff5a0, #ffaa00, #ff5500);
  border-radius: 50% 50% 40% 40%;
  animation: flicker 0.35s ease-in-out infinite alternate;
  filter: blur(0.5px);
  box-shadow: 0 0 6px rgba(255,160,0,0.8);
}
@keyframes flicker {
  0%   { transform: scaleX(1)    scaleY(1)    rotate(0deg);    opacity: 0.9; }
  33%  { transform: scaleX(0.85) scaleY(1.12) rotate(-3deg);   opacity: 1;   }
  66%  { transform: scaleX(1.1)  scaleY(0.92) rotate(2deg);    opacity: 0.95;}
  100% { transform: scaleX(0.92) scaleY(1.05) rotate(-1deg);   opacity: 0.85;}
}

/* Video / idle area */
.mandir-video-area {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  overflow: hidden;
  z-index: 1;
}
.mandir-video-area > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.mandir-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #1a0a00 30%, #060200 100%);
}
.mandir-om {
  font-size: 3.5rem;
  font-family: 'Noto Serif Devanagari', serif;
  color: #ffd700;
  text-shadow: 0 0 24px rgba(255,215,0,0.6);
  animation: omPulse 3s ease-in-out infinite;
  line-height: 1;
  margin-bottom: 0.4rem;
}
@keyframes omPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50%       { transform: scale(1.1); opacity: 1; }
}
.mandir-idle-msg {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 0.82rem;
  color: #c8a860;
  text-align: center;
  padding: 0 1rem;
  line-height: 1.6;
}

/* Bottom decoration bar */
.mandir-bottom-bar {
  background: linear-gradient(135deg, #5c1a00, #8B1A1A, #5c1a00);
  padding: 7px 16px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: 1rem;
  position: relative;
  z-index: 2;
}

/* Controls below frame */
.aarti-controls {
  width: 100%;
  background: rgba(10,5,0,0.92);
  border: 1px solid rgba(212,160,74,0.4);
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
/* Seek bar row takes full width on mobile */
.aarti-seek-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  order: -1;
}
.aarti-controls button {
  background: rgba(212,160,74,0.15);
  border: 1px solid rgba(212,160,74,0.5);
  color: #ffd700;
  border-radius: 8px;
  padding: 7px 14px;
  cursor: pointer;
  font-size: 1.05rem;
  flex-shrink: 0;
  transition: background 0.2s;
  min-width: 40px;
  text-align: center;
}
.aarti-controls button:hover, .aarti-controls button:active { background: rgba(212,160,74,0.35); }
.aarti-controls input[type=range] {
  flex: 1;
  accent-color: #d4a04a;
  min-width: 0;
  height: 18px;
  cursor: pointer;
}
#aarti-time-display {
  font-size: 0.72rem;
  color: #c8a860;
  flex-shrink: 0;
  white-space: nowrap;
  font-family: monospace;
}

/* ======== DAILY DECORATION THEMES (by day of week) ======== */
/* Sunday — Surya (golden) */
.mandir-frame.day-0 {
  box-shadow: 0 0 0 6px rgba(255,200,0,0.2), 0 0 60px rgba(255,200,0,0.5), inset 0 0 30px rgba(0,0,0,0.5);
}
.mandir-frame.day-0 .mandir-arch-top {
  background: linear-gradient(135deg, #b07a00, #ffd700, #b07a00);
  animation: sunRayPulse 2s ease-in-out infinite;
}
@keyframes sunRayPulse {
  0%, 100% { box-shadow: 0 -4px 18px rgba(255,200,0,0.4); }
  50%       { box-shadow: 0 -4px 40px rgba(255,200,0,0.9); }
}
/* Monday — Shiva (blue-silver) */
.mandir-frame.day-1 {
  border-color: #6496ff;
  box-shadow: 0 0 0 6px rgba(100,150,255,0.15), 0 0 55px rgba(100,150,255,0.4), inset 0 0 30px rgba(0,0,0,0.5);
}
.mandir-frame.day-1 .mandir-arch-top {
  background: linear-gradient(135deg, #0a0a4a, #4060c0, #0a0a4a);
}
/* Tuesday — Hanuman/Mangal (flame red-orange) */
.mandir-frame.day-2 {
  box-shadow: 0 0 0 6px rgba(255,80,0,0.18), 0 0 60px rgba(255,80,0,0.5), inset 0 0 30px rgba(0,0,0,0.5);
}
.mandir-frame.day-2 .mandir-arch-top {
  background: linear-gradient(135deg, #6a1a00, #ff5000, #6a1a00);
  animation: flamePulse 0.9s ease-in-out infinite alternate;
}
@keyframes flamePulse {
  from { box-shadow: 0 -4px 14px rgba(255,100,0,0.4); }
  to   { box-shadow: 0 -4px 36px rgba(255,100,0,0.9); }
}
/* Wednesday — Ganesh (yellow-cream) */
.mandir-frame.day-3 {
  border-color: #f0c040;
  box-shadow: 0 0 0 6px rgba(240,192,64,0.18), 0 0 55px rgba(240,192,64,0.4), inset 0 0 30px rgba(0,0,0,0.5);
}
.mandir-frame.day-3 .mandir-arch-top {
  background: linear-gradient(135deg, #5a3c00, #e8b800, #5a3c00);
}
/* Thursday — Vishnu/Guru (lotus gold) */
.mandir-frame.day-4 {
  box-shadow: 0 0 0 6px rgba(255,165,0,0.2), 0 0 60px rgba(255,165,0,0.5), inset 0 0 30px rgba(0,0,0,0.5);
}
.mandir-frame.day-4 .mandir-arch-top {
  background: linear-gradient(135deg, #6a3a00, #ffa500, #6a3a00);
}
/* Friday — Lakshmi (rose-pink) */
.mandir-frame.day-5 {
  border-color: #ff88c0;
  box-shadow: 0 0 0 6px rgba(255,100,160,0.18), 0 0 55px rgba(255,100,160,0.4), inset 0 0 30px rgba(0,0,0,0.5);
}
.mandir-frame.day-5 .mandir-arch-top {
  background: linear-gradient(135deg, #620040, #ff70b8, #620040);
  animation: petalGlow 3s ease-in-out infinite;
}
@keyframes petalGlow {
  0%, 100% { filter: brightness(1); }
  50%       { filter: brightness(1.2); }
}
/* Saturday — Shani (deep purple) */
.mandir-frame.day-6 {
  border-color: #9060c8;
  box-shadow: 0 0 0 6px rgba(120,60,200,0.18), 0 0 55px rgba(120,60,200,0.4), inset 0 0 30px rgba(0,0,0,0.5);
}
.mandir-frame.day-6 .mandir-arch-top {
  background: linear-gradient(135deg, #1a0040, #7840c0, #1a0040);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .aarti-main-layout { flex-direction: column; align-items: center; }
  .aarti-time-pillar {
    flex-direction: row;
    flex: none;
    width: 100%;
    max-width: 420px;
    gap: 1rem;
    padding: 1rem 1.2rem;
    text-align: left;
    border-radius: 14px;
  }
  .aarti-time-pillar.active::before { top: -12px; }
  .aarti-pillar-deco { font-size: 1.8rem; flex-shrink: 0; }
  .aarti-pillar-activities { display: none; }
  .mandir-side-pillar { display: none; }
  .mandir-frame-wrap { min-width: unset; width: 100%; max-width: 420px; }
  .mandir-frame { border-radius: 36% 36% 6px 6px / 18% 18% 6px 6px; }
}

/* ======== MANDIR FULLSCREEN ======== */
body.aarti-fs-active { overflow: hidden; }

.mandir-frame-wrap.mandir-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100vw !important;
  height: 100vh !important;
  background: #0a0400;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}
.mandir-frame-wrap.mandir-fullscreen .mandir-frame {
  width: min(100vw, calc(100vh * 0.75));
  max-width: 100vw;
  flex: 1;
}
.mandir-frame-wrap.mandir-fullscreen .aarti-controls {
  width: min(100vw, calc(100vh * 0.75));
  border-radius: 0;
}

/* Real fullscreen on wrap div */
.mandir-frame-wrap:-webkit-full-screen { background: #0a0400; width: 100vw; height: 100vh; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.mandir-frame-wrap:fullscreen          { background: #0a0400; width: 100vw; height: 100vh; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.mandir-frame-wrap:fullscreen .mandir-frame,
.mandir-frame-wrap:-webkit-full-screen .mandir-frame {
  width: min(100vw, calc(100vh * 0.72));
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.mandir-frame-wrap:fullscreen .mandir-video-area,
.mandir-frame-wrap:-webkit-full-screen .mandir-video-area,
.mandir-frame-wrap.mandir-fullscreen .mandir-video-area {
  flex: 1;
  min-height: 0;
}
.mandir-frame-wrap:fullscreen #aarti-video,
.mandir-frame-wrap:-webkit-full-screen #aarti-video,
.mandir-frame-wrap.mandir-fullscreen #aarti-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ======== ORBITING BORDER DIYAS ======== */
.border-diyas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  overflow: visible;
}
.bd {
  position: absolute;
  font-size: 1.4rem;
  line-height: 1;
  will-change: transform;
  filter: drop-shadow(0 0 6px rgba(255,160,0,0.9)) drop-shadow(0 0 12px rgba(255,100,0,0.6));
  animation: bdOrbit calc(10s + var(--i) * 0.3s) linear infinite,
             bdFlicker 0.4s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -1.25s), calc(var(--i) * 0.07s);
  /* Start at top-left, offset-path traces border clockwise */
  offset-path: path('M 20,20 L 380,20 L 380,280 L 20,280 Z');
  offset-rotate: 0deg;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
}
@keyframes bdOrbit {
  from { offset-distance: 0%; }
  to   { offset-distance: 100%; }
}
@keyframes bdFlicker {
  from { filter: drop-shadow(0 0 4px rgba(255,140,0,0.8)) drop-shadow(0 0 10px rgba(255,80,0,0.5)); font-size: 1.3rem; }
  to   { filter: drop-shadow(0 0 10px rgba(255,220,0,1)) drop-shadow(0 0 20px rgba(255,120,0,0.8)); font-size: 1.5rem; }
}

/* ======== AARTI PERFORMERS SCENE (inside mandir frame, sides only) ======== */
.aarti-performers {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.aarti-performers.visible { opacity: 1; }

/* Each character pinned to their side */
.ap-char {
  position: absolute;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.7));
}
.ap-char.bhaktin { left: 2px; }
.ap-char.bhakt   { right: 2px; }

.ap-char.bhaktin .ap-svg,
.ap-char.bhakt .ap-svg {
  width: 38px;
  height: auto;
}
@media (min-width: 400px) {
  .ap-char.bhaktin .ap-svg,
  .ap-char.bhakt .ap-svg { width: 46px; }
}
.ap-label {
  font-family: 'Noto Sans Devanagari', serif;
  font-size: 0.58rem;
  color: #FFD700;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

/* Pandit thali waving — clockwise circles */
.aarti-performers.visible .pandit-thali-anim {
  animation: panditWave 1.8s ease-in-out infinite;
  transform-origin: 60px 100px;
}
@keyframes panditWave {
  0%   { transform: translate(0px,   0px) rotate(0deg); }
  25%  { transform: translate(18px, -12px) rotate(8deg); }
  50%  { transform: translate(0px,  -22px) rotate(0deg); }
  75%  { transform: translate(-18px,-12px) rotate(-8deg); }
  100% { transform: translate(0px,   0px) rotate(0deg); }
}

/* Both-hands thali — clockwise aarti circle */
.aarti-performers.visible .aarti-thali-grp {
  animation: thaliCW 2.4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center bottom;
}
/* Bhaktin slightly ahead, bhakt slightly behind for natural look */
.aarti-performers.visible .bhaktin .aarti-thali-grp { animation-delay: 0s; }
.aarti-performers.visible .bhakt   .aarti-thali-grp { animation-delay: 0.4s; }

@keyframes thaliCW {
  0%   { transform: translate( 0px,  0px); }
  25%  { transform: translate( 5px, -4px); }
  50%  { transform: translate( 0px, -8px); }
  75%  { transform: translate(-5px, -4px); }
  100% { transform: translate( 0px,  0px); }
}

/* Diya flame flicker on all characters */
.aarti-performers .ap-svg ellipse[fill="#FF6600"],
.aarti-performers .ap-svg ellipse[fill="#FFD700"] {
  animation: diyaFlick 0.35s ease-in-out infinite alternate;
}
@keyframes diyaFlick {
  from { transform: scaleX(1) scaleY(1) translateX(0); opacity:1; }
  to   { transform: scaleX(0.7) scaleY(1.2) translateX(1px); opacity:0.85; }
}

/* Mobile responsive */
@media (max-width: 480px) {
  .aarti-performers { gap: 0.8rem; }
  .ap-char.pandit .ap-svg { width: 88px; }
  .ap-char.bhaktin .ap-svg,
  .ap-char.bhakt .ap-svg   { width: 65px; }
}

/* ======== LIVE COMMENT SECTION ======== */
.live-comments-wrap {
  display: none;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  margin: 0.5rem auto 0;
  background: linear-gradient(135deg, #1a0800 0%, #2d0f02 100%);
  border: 1.5px solid #8B1A1A;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(139,26,26,0.3);
}
.live-comments-wrap.active { display: flex; }
.lc-header {
  padding: 0.45rem 1rem;
  background: linear-gradient(90deg, #8B1A1A, #C0392B);
  color: #FFD700;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lc-feed {
  height: 160px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.4rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  scroll-behavior: smooth;
}
.lc-feed::-webkit-scrollbar { width: 3px; }
.lc-feed::-webkit-scrollbar-thumb { background: #8B1A1A; border-radius: 2px; }
.lc-comment {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  animation: lcSlideIn 0.35s ease;
  font-size: 0.8rem;
  line-height: 1.35;
}
@keyframes lcSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lc-name {
  color: #FFB300;
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.72rem;
  flex-shrink: 0;
}
.lc-name.real { color: #4FC3F7; }
.lc-text { color: #F5E6D0; }
.lc-input-row {
  display: flex;
  gap: 0;
  border-top: 1px solid #5a1a1a;
}
#lc-input {
  flex: 1;
  background: #2a0a00;
  border: none;
  outline: none;
  color: #F5E6D0;
  padding: 0.55rem 0.8rem;
  font-size: 0.8rem;
  font-family: 'Noto Sans Devanagari', sans-serif;
}
#lc-input::placeholder { color: #7a5040; }
.lc-send-btn {
  background: #8B1A1A;
  color: #FFD700;
  border: none;
  padding: 0.55rem 1rem;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: 'Noto Sans Devanagari', sans-serif;
  transition: background 0.2s;
}
.lc-send-btn:hover { background: #C0392B; }
