:root {
  --bg-deep-maroon: #2b0b14;
  --card-bg-maroon: #1f070e;
  --gold-primary: #e6ca65;
  --gold-secondary: #c5a044;
  --gold-border: rgba(230, 202, 101, 0.35);
  --text-light: #f7f3e8;
  --text-muted: #bda89b;
}

body.bg-royal {
  background: radial-gradient(circle at center, #3d0c1b 0%, var(--bg-deep-maroon) 100%);
  font-family: 'Cormorant Garamond', serif;
  color: var(--text-light);
  min-height: 100vh;
}

.royal-container {
  max-width: 480px; /* Mobile viewport standard */
}

.royal-card {
  background-color: var(--card-bg-maroon);
  border: 1px solid var(--gold-border) !important;
  border-radius: 20px;
  overflow: hidden;
}

.royal-font {
  font-family: 'Cinzel Decorative', serif;
}

.telugu-invocation {
  font-family: 'Ramabhadra', sans-serif;
  color: var(--gold-primary);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.text-gold {
  color: var(--gold-primary) !important;
}

.gold-subtitle {
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: var(--gold-secondary);
}

.ornamental-divider {
  color: var(--gold-primary);
  font-size: 1.1rem;
  opacity: 0.85;
}

.countdown-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--gold-border);
}

.timer-pill {
  background: rgba(230, 202, 101, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(230, 202, 101, 0.2);
}

.event-item-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--gold-border);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
  color: #1a050b;
  border: none;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #f2dc87 0%, var(--gold-primary) 100%);
  color: #1a050b;
}

.btn-outline-gold {
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
}

.btn-outline-gold:hover {
  background-color: var(--gold-primary);
  color: #1a050b;
}

.gallery-img {
  aspect-ratio: 1/1;
  object-fit: cover;
  border: 1px solid var(--gold-border);
}

.x-small {
  font-size: 0.7rem;
}
.audio-control-wrapper {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1050;
}

.audio-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.audio-btn.playing {
  animation: pulse-spin 4s linear infinite;
  background: rgba(255, 255, 255, 0.95);
  border-color: #22c55e;
}

@keyframes pulse-spin {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.08) rotate(180deg); }
  100% { transform: scale(1) rotate(360deg); }
}
.carousel-item img {
  height: 280px;
  width: 100%;
  object-fit: cover;
  cursor: pointer;
}

.carousel-indicators [data-bs-target] {
  background-color: var(--gold-primary);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin: 0 4px;
}
.audio-toggle-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1060;
}

.btn-audio-floating {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(31, 7, 14, 0.85);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-audio-floating.is-playing {
  animation: spin-pulse 4s linear infinite;
  box-shadow: 0 0 12px rgba(230, 202, 101, 0.4);
}

@keyframes spin-pulse {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}