/* Public bhajans — synced YouTube catalog (Satyanaad etc.) */

.bhajan-public-page {
  --bj-saffron: #b45309;
  --bj-maroon: #7c2d12;
  --bj-ink: #1c1410;
  --bj-muted: #5c534c;
  --bj-cream: #faf6f0;
  --bj-petal: rgba(180, 83, 9, 0.12);
  --bj-line: rgba(124, 45, 18, 0.18);
  background:
    radial-gradient(900px 420px at 8% -5%, var(--bj-petal), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(124, 45, 18, 0.06), transparent 50%),
    var(--bj-cream);
  color: var(--bj-ink);
  min-height: 100vh;
}

.bj-hero {
  padding: 2.25rem 0 1.25rem;
  border-bottom: 1px solid var(--bj-line);
}

.bj-brand {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--bj-saffron);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.bj-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin: 0 0 0.4rem;
}

.bj-lead {
  max-width: 34rem;
  color: var(--bj-muted);
  margin: 0;
}

.bj-btn {
  background: var(--bj-saffron);
  border-color: var(--bj-saffron);
  color: #fff;
}

.bj-btn:hover {
  background: var(--bj-maroon);
  border-color: var(--bj-maroon);
  color: #fff;
}

.bj-view-tabs {
  display: flex;
  gap: 0.75rem;
  border-bottom: 1px solid var(--bj-line);
  padding-bottom: 0.5rem;
}

.bj-tab {
  text-decoration: none;
  color: var(--bj-muted);
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 0.25rem;
}

.bj-tab.active,
.bj-tab:hover {
  color: var(--bj-maroon);
  background: var(--bj-petal);
}

.bj-deity-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  margin: 0;
}

.bj-more {
  font-size: 0.85rem;
  color: var(--bj-saffron);
  text-decoration: none;
}

.bj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.15rem;
}

.bj-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.bj-card:hover {
  transform: translateY(-3px);
  color: inherit;
}

.bj-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.3rem;
  background: #ddd;
}

.bj-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bj-card h3 {
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0.55rem 0 0.2rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bj-meta {
  font-size: 0.78rem;
  color: var(--bj-muted);
  margin: 0;
}

/* —— Play stage with sacred floral frame —— */

.bj-play-stage {
  padding: 1.5rem 0 3rem;
}

.bj-back {
  color: var(--bj-muted);
  text-decoration: none;
}

.bj-back:hover {
  color: var(--bj-saffron);
}

.bj-sacred-frame {
  max-width: 960px;
  margin: 0 auto;
}

.bj-frame-border {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  overflow: visible;
  background:
    linear-gradient(135deg, rgba(180, 83, 9, 0.06), transparent 40%),
    linear-gradient(225deg, rgba(124, 45, 18, 0.05), transparent 45%),
    #fffef9;
  border: 1px solid var(--bj-line);
  box-shadow: inset 0 0 0 6px rgba(180, 83, 9, 0.06);
}

.bj-ornament {
  position: absolute;
  width: 52px;
  height: 52px;
  color: var(--bj-maroon);
  opacity: 0.55;
  z-index: 2;
}

.bj-ornament-tl { top: 8px; left: 8px; }
.bj-ornament-tr { top: 8px; right: 8px; }
.bj-ornament-bl { bottom: 8px; left: 8px; }
.bj-ornament-br { bottom: 8px; right: 8px; }

/* Flower-dot rails outside the player (marigold-inspired) */
.bj-floral-rail {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(circle at 50% 50%, var(--bj-saffron) 0 2px, transparent 2.5px),
    radial-gradient(circle at 50% 50%, rgba(124, 45, 18, 0.35) 0 1.5px, transparent 2px);
  background-size: 18px 18px, 18px 18px;
  background-position: 0 0, 9px 9px;
  opacity: 0.45;
}

.bj-floral-top,
.bj-floral-bottom {
  left: 64px;
  right: 64px;
  height: 14px;
}

.bj-floral-top { top: 22px; }
.bj-floral-bottom { bottom: 22px; }

.bj-floral-left,
.bj-floral-right {
  top: 64px;
  bottom: 64px;
  width: 14px;
}

.bj-floral-left { left: 22px; }
.bj-floral-right { right: 22px; }

.bj-flower-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 0.5rem;
  position: relative;
  z-index: 2;
}

.bj-flower-toggle {
  border: 1px solid var(--bj-line);
  background: #fffef9;
  color: var(--bj-maroon);
  font-size: 0.8rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0.3rem;
  cursor: pointer;
}

.bj-flower-toggle:hover {
  background: var(--bj-petal);
}

.bj-player-wrap {
  position: relative;
  z-index: 3;
  /* Allow flower blooms to rise over the video */
  overflow: visible;
}

.bj-player-core {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 0.25rem;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 0 0 1px rgba(28, 20, 16, 0.08);
}

.bj-player-core iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.bj-player-wrap.bj-flowers-off .bj-flower-garden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.bj-player-wrap.bj-flowers-off .bj-flower-garden * {
  animation-play-state: paused !important;
}

.bj-play-meta h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  margin: 0 0 0.4rem;
}

.bj-attribution {
  color: var(--bj-muted);
  font-size: 0.95rem;
}

.bj-attribution a {
  color: var(--bj-saffron);
}

.bj-mood-tag {
  display: inline-block;
  margin-right: 0.5rem;
  font-size: 0.75rem;
  color: var(--bj-muted);
  border-bottom: 1px solid var(--bj-line);
}

.bj-related h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

@media (max-width: 576px) {
  .bj-frame-border {
    padding: 1.35rem 0.85rem;
  }

  .bj-ornament {
    width: 36px;
    height: 36px;
  }

  .bj-floral-top,
  .bj-floral-bottom {
    left: 44px;
    right: 44px;
  }

  .bj-floral-left,
  .bj-floral-right {
    top: 44px;
    bottom: 44px;
  }
}
