/* Chant-Along Player — dark devotional theme. No external requests. */
:root {
  --bg: #140d0a;
  --surface: #201310;
  --surface-2: #1a100c;
  --gold: #d9a441;
  --saffron: #f2a93b;
  --cream: #f7ecd9;
  --muted: #c9ad7e;
  --border: rgba(217, 164, 65, .28);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background:
    radial-gradient(1200px 620px at 50% -140px, rgba(242,169,59,.06), transparent 62%),
    var(--bg);
  color: var(--cream);
  font-family: "Noto Sans Devanagari", "Nirmala UI", "Mangal", "Kokila", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

.chant-shell {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 48px;
  overflow-x: hidden; /* zero horizontal overflow at 360px */
}

/* ---------- header ---------- */
.chant-head { text-align: center; padding: 28px 0 16px; }
.chant-head .om {
  font-size: 2.6rem;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(217, 164, 65, .55);
  line-height: 1;
}
.chant-head h1 {
  margin: 8px 0 4px;
  font-size: 1.7rem;
  color: var(--cream);
  letter-spacing: .01em;
}
.chant-head .tagline {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

/* ---------- sticky player bar ---------- */
.player-bar {
  position: sticky;
  top: 8px;
  z-index: 10;
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .45);
}

.play-btn {
  flex: 0 0 auto;
  width: 68px;
  height: 68px; /* ≥64px touch target */
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: radial-gradient(circle at 35% 30%, var(--saffron), var(--gold) 70%);
  color: #140d0a;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .12s ease, box-shadow .12s ease;
}
.play-btn:hover { box-shadow: 0 0 18px rgba(242, 169, 59, .5); }
.play-btn:active { transform: scale(.95); }

.player-main { flex: 1 1 auto; min-width: 0; }

#seek-bar {
  width: 100%;
  accent-color: var(--saffron);
  height: 28px;
  margin: 0;
  cursor: pointer;
}

.player-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.time { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }

.player-toggles { display: flex; gap: 8px; }

.pill {
  min-width: 44px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.pill:hover { background: rgba(217, 164, 65, .12); }
.pill.is-on {
  background: var(--gold);
  color: #140d0a;
  border-color: var(--gold);
  font-weight: 700;
}

/* visible focus everywhere */
.play-btn:focus-visible,
.pill:focus-visible,
.verse:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
}

/* ---------- status ---------- */
.status {
  text-align: center;
  color: var(--muted);
  font-size: .92rem;
  margin: 18px 0 6px;
}
.status[hidden] { display: none; }

/* ---------- verses ---------- */
.verse-list { margin-top: 8px; }

.verse {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 14px 12px;
  margin: 12px 0;
  cursor: pointer;
  transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.verse:hover { border-color: var(--gold); }

.verse-badge {
  color: var(--gold);
  font-size: .85rem;
  letter-spacing: .03em;
  margin-bottom: 6px;
}
.verse-text {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.95;
  color: var(--cream);
  user-select: text; /* text stays selectable */
}

.verse.active {
  background: var(--surface-2);
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 0 26px rgba(217, 164, 65, .45);
}
.verse.active .verse-badge { color: var(--saffron); font-weight: 700; }

/* ---------- footer ---------- */
.chant-foot { text-align: center; color: var(--muted); margin-top: 8px; }
.chant-foot p { margin: 6px 0; }
.chant-foot .credit { font-size: .8rem; opacity: .75; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  margin: 26px 0 10px;
  font-size: 1.1rem;
}
.divider::before, .divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Site topbar — matches the lyricschalisa.com header (added 2026-10-19).
   Hidden automatically when the tool is embedded in an iframe. */
.lc-topbar{background:#0d0705;border-bottom:1px solid rgba(217,164,65,.13);color:#f7ecd9}
.lc-topbar-inner{max-width:1120px;margin:0 auto;padding:0 16px;height:52px;display:flex;align-items:center;justify-content:space-between}
.lc-brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;font-weight:700;letter-spacing:.02em;color:#f7ecd9;font-size:16px}
.lc-brand:hover{color:#f2a93b}
.lc-daily{color:#f2a93b;text-decoration:none;font-size:13px;font-weight:600;border:1px solid rgba(242,169,59,.5);border-radius:999px;padding:6px 14px;display:inline-flex;align-items:center;gap:7px;white-space:nowrap;background:rgba(242,169,59,.07)}
.lc-daily:hover{background:rgba(242,169,59,.16)}

/* Demo-mode notice — honest label while the placeholder is silent */
.demo-note {
  margin: 14px 0 4px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--muted, #c9ad7e);
  background: rgba(217,164,65,.06);
  border: 1px dashed rgba(217,164,65,.4);
  border-radius: 12px;
  text-align: center;
  line-height: 1.55;
}
