/* Mantras + Live Darshan pages. Uses the site tokens defined in _Layout (:root). */
.sp-hero {
    background:
        radial-gradient(120% 130% at 88% 0%, rgba(232,101,10,0.28) 0%, rgba(232,101,10,0) 55%),
        linear-gradient(160deg, #5A0E08 0%, #7A1710 55%, #8B1A10 100%);
    color: #fff; padding: 40px 0 32px; position: relative; overflow: hidden;
}
.sp-hero::before {
    content: 'ॐ'; position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
    font-size: 15rem; line-height: 1; color: rgba(255,255,255,0.05); font-family: serif; pointer-events: none;
}
.sp-hero .sp-eyebrow { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: #FFD2A8; font-weight: 600; }
.sp-hero h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 6px 0 8px; }
.sp-hero p { color: rgba(255,255,255,0.86); max-width: 640px; margin: 0; }
.sp-stats { display: flex; gap: 22px; margin-top: 18px; flex-wrap: wrap; }
.sp-stats div { font-size: 0.82rem; color: rgba(255,255,255,0.8); }
.sp-stats strong { display: block; font-size: 1.35rem; color: #fff; line-height: 1.1; }

.sp-toolbar { position: sticky; top: 0; z-index: 30; background: var(--cream, #FFFCF8); border-bottom: 1px solid var(--border-light, #eee); padding: 12px 0; }
.sp-toolbar-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.sp-search { position: relative; flex: 0 1 280px; min-width: 200px; }
.sp-search .bi { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted, #888); }
.sp-search input { width: 100%; padding: 9px 12px 9px 34px; border-radius: 999px; border: 1px solid var(--border, #ddd); background: #fff; font-size: 0.9rem; }
.sp-search input:focus { outline: none; border-color: var(--saffron, #E8650A); box-shadow: 0 0 0 3px rgba(232,101,10,.15); }
.sp-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0; scrollbar-width: none; flex: 1 1 320px; }
.sp-chips::-webkit-scrollbar { display: none; }
.sp-chip {
    flex: 0 0 auto; border: 1px solid var(--border, #ddd); background: #fff; color: var(--text-primary, #1C140D);
    padding: 7px 14px; border-radius: 999px; font-size: 0.84rem; font-weight: 600; cursor: pointer; transition: all .15s;
}
.sp-chip:hover { border-color: var(--saffron, #E8650A); color: var(--saffron, #E8650A); }
.sp-chip.active { background: var(--saffron, #E8650A); border-color: var(--saffron, #E8650A); color: #fff; }
.sp-count { font-size: 0.82rem; color: var(--text-muted, #888); margin: 18px 0 12px; }

.sp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-bottom: 8px; }
@media (max-width: 991.98px) { .sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .sp-grid { grid-template-columns: minmax(0, 1fr); } .sp-hero::before { font-size: 9rem; } }

.sp-card { background: #fff; border: 1px solid var(--border-light, #eee); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,.06)); }
.sp-card[hidden] { display: none; }
.sp-media { position: relative; aspect-ratio: 16 / 9; background: #1C140D; }
.sp-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sp-play {
    position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: #1C140D center / cover no-repeat;
    display: grid; place-items: center;
}
.sp-play::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.45)); }
.sp-play-icon {
    position: relative; z-index: 1; width: 58px; height: 58px; border-radius: 50%; background: rgba(232,101,10,.95); color: #fff;
    display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 6px 20px rgba(0,0,0,.35); transition: transform .15s;
}
.sp-play:hover .sp-play-icon, .sp-play:focus-visible .sp-play-icon { transform: scale(1.08); }
.sp-play:focus-visible { outline: 3px solid #FFD2A8; outline-offset: -3px; }
.sp-badge { position: absolute; z-index: 2; left: 10px; top: 10px; background: rgba(0,0,0,.65); color: #fff; font-size: 0.7rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.sp-live-pill { position: absolute; z-index: 2; left: 10px; top: 10px; background: #DC2626; color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.sp-live-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: spPulse 1.4s infinite; }
@keyframes spPulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .sp-live-pill::before { animation: none; } }

.sp-poster { background: linear-gradient(150deg, #5A0E08, #8B1A10 60%, #B8431C); }
.sp-poster .sp-poster-om { position: absolute; right: 8%; bottom: -14%; font: 8rem/1 serif; color: rgba(255,255,255,.08); }
.sp-poster-name { position: relative; z-index: 1; color: #fff; text-align: center; padding: 0 16px; font-weight: 700; font-size: 1.02rem; line-height: 1.25; text-shadow: 0 1px 8px rgba(0,0,0,.3); }

.sp-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sp-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-tag { font-size: 0.7rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #FFF1E6; color: #B4500A; }
.sp-tag.is-kind { background: #F3F4F6; color: #4B5563; }
.sp-title { font-size: 1.02rem; font-weight: 700; margin: 0; color: var(--text-primary, #1C140D); line-height: 1.3; }
.sp-opening { font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif; font-size: 0.92rem; line-height: 1.7; color: var(--crimson, #8B1A10); background: #FFF8F0; border-left: 3px solid var(--gold, #B8863B); border-radius: 0 10px 10px 0; padding: 8px 12px; margin: 0; }
.sp-purpose { font-size: 0.86rem; color: var(--text-secondary, #5b5148); margin: 0; }
.sp-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.76rem; color: var(--text-muted, #888); border-top: 1px solid var(--border-light, #eee); }
.sp-foot a { color: var(--saffron, #E8650A); font-weight: 600; text-decoration: none; white-space: nowrap; }
.sp-foot a:hover { text-decoration: underline; }
.sp-place { font-size: 0.82rem; color: var(--text-secondary, #5b5148); display: flex; align-items: center; gap: 6px; }

.sp-note { background: #fff; border: 1px solid var(--border-light, #eee); border-left: 4px solid var(--saffron, #E8650A); border-radius: 12px; padding: 12px 16px; font-size: 0.86rem; color: var(--text-secondary, #5b5148); margin: 20px 0 0; }
.sp-note strong { color: var(--text-primary, #1C140D); }
.sp-empty { text-align: center; padding: 48px 16px; color: var(--text-muted, #888); display: none; }
.sp-empty .bi { font-size: 2rem; display: block; margin-bottom: 8px; opacity: .6; }
