/* Song Book — builds on /assets/site.css (black and gold). The hymn board is the one bold element. */
[hidden] { display: none !important; }
.sb { --te: 'Noto Sans Telugu', 'Inter', sans-serif; --fs: 20px; }
.sb .wrap { max-width: 980px; }
.te { font-family: var(--te); }

/* Hero: a church hymn board with the search beside it */
.sb-hero { padding: 40px 0 28px; position: relative; overflow: hidden; }
.sb-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 70% at 14% 40%, rgba(212,175,55,.13), transparent 70%); }
.sb-hero-in { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 40px; align-items: center; position: relative; }
.board { position: relative; border-radius: 22px 22px 14px 14px; padding: 14px 14px 16px; text-align: center;
  background: linear-gradient(160deg, #3a2a12, #1a1209 55%, #0d0905);
  border: 2px solid #8c6227; box-shadow: inset 0 0 0 5px #0d0905, inset 0 0 0 6px rgba(212,175,55,.45), 0 20px 40px rgba(0,0,0,.55), 0 0 32px rgba(212,175,55,.12); }
.board::before { content: ""; position: absolute; left: 50%; top: -14px; width: 46px; height: 14px; transform: translateX(-50%);
  border: 2px solid #8c6227; border-bottom: 0; border-radius: 30px 30px 0 0; background: #1a1209; }
.board-top { font-family: 'Cinzel', serif; font-weight: 700; color: rgba(212,175,55,.75); font-size: 13px; letter-spacing: .3em; padding-left: .3em; }
.board-num { font-family: 'Cinzel', serif; font-weight: 900; font-size: 84px; line-height: 1.05; margin: 6px 0 4px;
  background: linear-gradient(180deg, #fff3a1, #d4af37 55%, #8c6227); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums; min-height: 1.05em; transition: transform .25s ease; }
.board-num.flip { transform: rotateX(80deg); }
.board-bot { font-family: var(--te); color: var(--cream); font-size: 14px; line-height: 1.4; min-height: 2.8em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sb-hero h1 { font-family: 'Cinzel', serif; font-size: clamp(34px, 5vw, 52px); line-height: 1.05; margin: 0 0 10px; }
.sb-lead { color: #cfc8bd; margin: 0 0 22px; max-width: 34em; }

.search { display: flex; align-items: center; gap: 12px; padding: 0 8px 0 18px; min-height: 60px; border-radius: 18px;
  background: var(--surface-light); border: 1.5px solid rgba(212,175,55,.45); box-shadow: 0 0 0 4px rgba(212,175,55,.06);
  transition: border-color .2s, box-shadow .2s; cursor: text; }
.search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212,175,55,.18), 0 0 30px rgba(212,175,55,.12); }
.search > i { color: var(--gold); font-size: 18px; }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--cream);
  font: 500 17px/1.3 'Inter', var(--te); padding: 16px 0; }
.search input::placeholder { color: #8f877c; }
.search input::-webkit-search-cancel-button { display: none; }
.q-clear { border: 0; background: rgba(212,175,55,.12); color: var(--gold); width: 40px; height: 40px; border-radius: 12px; cursor: pointer; }
.search-help { margin: 10px 2px 0; color: var(--muted); font-size: 14px; }
.eg { font: 600 13px 'Inter', var(--te); color: var(--gold); background: none; border: 1px dashed rgba(212,175,55,.45); border-radius: 8px; padding: 3px 9px; margin-left: 4px; cursor: pointer; }
.eg:hover { border-style: solid; }

/* Quick picks */
.sb-occasions { padding-top: 6px; }
.occ { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; scroll-snap-type: x proximity; }
.occ::-webkit-scrollbar { display: none; }
.occ button { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 16px 0 12px;
  border-radius: 999px; border: 1px solid rgba(212,175,55,.3); background: var(--surface); color: var(--cream); font: 600 14px 'Inter'; cursor: pointer; transition: background .2s, border-color .2s; }
.occ button i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(212,175,55,.14); color: var(--gold); font-size: 13px; }
.occ button:hover { border-color: var(--gold); }
.occ button[aria-pressed="true"] { background: var(--gold); color: #000; border-color: var(--gold); }
.occ button[aria-pressed="true"] i { background: rgba(0,0,0,.15); color: #000; }

/* Toolbar */
.sb-browse { padding-bottom: 28px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0 14px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-light); border: 1px solid rgba(212,175,55,.2); }
.tabs button { border: 0; background: transparent; color: #b5aea3; font: 600 14px 'Inter'; padding: 0 16px; min-height: 40px; border-radius: 10px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--gold); color: #000; }
.count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; font-size: 12px; line-height: 20px; background: rgba(0,0,0,.25); }
.tabs button:not([aria-selected="true"]) .count { background: rgba(212,175,55,.15); color: var(--gold); }
.filter-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(212,175,55,.35); background: var(--surface); color: var(--gold); font: 600 14px 'Inter'; }
.filter-btn[aria-expanded="true"] { background: rgba(212,175,55,.12); }
.filter-btn .count { background: var(--gold); color: #000; }

.filters { background: var(--surface); border: 1px solid rgba(212,175,55,.28); border-radius: 18px; padding: 18px; margin-bottom: 16px; display: grid; gap: 14px; }
.f-row { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 12px; align-items: center; }
.f-label { color: var(--muted); font-size: 14px; font-weight: 600; }
.filters select { width: 100%; min-height: 44px; border-radius: 12px; background: var(--surface-light); color: var(--cream); border: 1px solid rgba(212,175,55,.3); padding: 0 12px; font: 500 15px 'Inter', var(--te); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { min-height: 38px; padding: 0 13px; border-radius: 10px; border: 1px solid rgba(212,175,55,.25); background: var(--surface-light); color: #cfc8bd; font: 600 13px 'Inter', var(--te); cursor: pointer; }
.seg button[aria-pressed="true"] { background: rgba(212,175,55,.16); border-color: var(--gold); color: var(--gold-light); }
.f-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 4px; }
.link { background: none; border: 0; color: var(--gold); font: 600 14px 'Inter'; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 8px 0; }
.filters .btn { border: 0; cursor: pointer; }

.result-line { color: var(--muted); font-size: 14px; margin: 0 2px 10px; min-height: 1.4em; }

/* Song list */
.songs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.songs a { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 10px 14px 10px 10px;
  border-radius: 16px; background: var(--surface); border: 1px solid rgba(212,175,55,.14); color: inherit; transition: border-color .2s, background .2s; }
.songs a:hover, .songs a:focus-visible { border-color: rgba(212,175,55,.6); background: #16110a; }
.num { font-family: 'Cinzel', serif; font-weight: 700; font-size: 20px; color: var(--gold-light); text-align: center; line-height: 1;
  padding: 12px 0; border-radius: 12px; background: linear-gradient(180deg, #241a0d, #120d07); border: 1px solid rgba(212,175,55,.3); font-variant-numeric: tabular-nums; }
.num small { display: block; font: 600 10px 'Inter'; color: var(--muted); margin-top: 4px; }
.s-main { min-width: 0; display: block; overflow: hidden; }
.s-te, .s-en, .s-hit { display: block; }
.s-te { font-family: var(--te); font-size: 17px; color: var(--cream); font-weight: 500; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-en { color: #b9b1a5; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.tag { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 7px; background: rgba(212,175,55,.08); color: #c9a94a; border: 1px solid rgba(212,175,55,.2); }
.tag.wait { color: #e8c7a0; border-color: rgba(232,199,160,.3); background: rgba(232,199,160,.07); }
.s-go { color: rgba(212,175,55,.6); }
.s-hit { font-family: var(--te); color: #a8a29a; font-size: 13.5px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
mark { background: rgba(255,224,102,.22); color: var(--gold-light); border-radius: 3px; padding: 0 1px; }
.more { margin: 16px auto 0; display: flex; border: 0; cursor: pointer; }

/* Themes */
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.themes button { text-align: left; display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; cursor: pointer;
  background: var(--surface); border: 1px solid rgba(212,175,55,.18); color: var(--cream); font: inherit; transition: border-color .2s; }
.themes button:hover { border-color: var(--gold); }
.themes .t-te { font-family: var(--te); font-size: 17px; font-weight: 500; }
.themes .t-en { color: var(--gold); font-weight: 600; font-size: 14px; }
.themes .t-n { color: var(--muted); font-size: 13px; }

.empty { text-align: center; padding: 40px 16px; color: var(--muted); border: 1px dashed rgba(212,175,55,.3); border-radius: 18px; }
.empty strong { display: block; color: var(--cream); font-size: 18px; margin-bottom: 6px; }
.sb-credit { padding: 10px 20px 30px; }
.sb-credit p { color: var(--muted); font-size: 14px; max-width: 46em; margin: 0; padding-top: 18px; border-top: 1px solid rgba(212,175,55,.15); }

/* Song sheet */
.sheet { position: fixed; inset: 0; z-index: 80; background: var(--obsidian); display: flex; flex-direction: column; animation: up .28s cubic-bezier(.2,.8,.2,1); }
@keyframes up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet[hidden] { display: none; }
.sheet-bar { display: flex; align-items: center; gap: 8px; padding: 10px max(12px, env(safe-area-inset-left)); padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(17,13,8,.95); border-bottom: 1px solid rgba(212,175,55,.2); }
.bar-right { display: flex; gap: 4px; margin-left: auto; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--gold); cursor: pointer; font: 700 15px 'Inter'; display: grid; place-items: center; }
.icon-btn:hover { background: rgba(212,175,55,.1); }
.icon-btn[aria-pressed="true"] { color: #ff8a80; }
.script { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--surface-light); border: 1px solid rgba(212,175,55,.25); }
.script button { border: 0; background: none; color: #b5aea3; font: 600 13px 'Inter', var(--te); min-height: 36px; padding: 0 12px; border-radius: 9px; cursor: pointer; }
.script button[aria-pressed="true"] { background: var(--gold); color: #000; }
.sheet-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.song { max-width: 760px; margin: 0 auto; padding: 26px 20px 10px; }
.song-head { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 18px; align-items: center; margin-bottom: 18px; }
.song-head .board { padding: 8px 12px 10px; min-width: 96px; border-radius: 16px 16px 10px 10px; }
.song-head .board::before { display: none; }
.song-head .board-num { font-size: 44px; margin: 0; }
.song-head .board-top { font-size: 10px; }
.song-head h2 { font-family: var(--te); font-weight: 700; font-size: clamp(22px, 4vw, 28px); line-height: 1.35; margin: 0; color: var(--cream); }
.song-head .h-en { color: var(--gold); font-weight: 600; margin-top: 2px; }
.song-info { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.song-info .tag { font-size: 12.5px; padding: 4px 10px; }
.scr { margin: 0 0 22px; padding: 14px 18px; border-left: 3px solid var(--gold); background: rgba(212,175,55,.06); border-radius: 0 14px 14px 0; }
.scr p { margin: 0; font-family: var(--te); color: var(--cream); font-size: 15px; }
.scr .tune { font-family: 'Inter'; font-style: italic; color: var(--muted); font-size: 13.5px; margin-top: 6px; }

.part { margin: 0 0 22px; display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 10px; }
.part-k { font-family: 'Cinzel', serif; font-weight: 700; color: var(--gold); text-align: right; padding-top: .2em; font-size: 16px; }
.part.chorus .part-k { font-family: 'Inter'; font-size: 11px; line-height: 1.3; letter-spacing: .02em; padding-top: .55em; }
.part.chorus .lines { padding: 10px 16px; border-radius: 14px; background: linear-gradient(90deg, rgba(212,175,55,.12), rgba(212,175,55,.03)); border: 1px solid rgba(212,175,55,.25); }
.ln { margin: 0 0 .55em; }
.ln:last-child { margin-bottom: 0; }
.ln .t { display: block; font-family: var(--te); font-size: var(--fs); line-height: 1.6; color: var(--cream); }
.ln .e { display: block; font-size: calc(var(--fs) * .8); line-height: 1.45; color: #e3c56a; }
.song[data-s="te"] .ln .e, .song[data-s="en"] .ln .t { display: none; }
.song[data-s="en"] .ln .e { color: var(--cream); font-size: var(--fs); }
.again { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--gold); padding: 3px 10px; border-radius: 8px; border: 1px dashed rgba(212,175,55,.45); }
.again .te { font-weight: 500; }
.hold { padding: 24px; border-radius: 18px; border: 1px dashed rgba(232,199,160,.4); background: rgba(232,199,160,.05); color: #e8dccb; }
.hold strong { display: block; color: var(--cream); font-size: 18px; margin-bottom: 6px; }
.song-nav { max-width: 760px; margin: 0 auto; padding: 8px 20px 40px; display: flex; justify-content: space-between; gap: 12px; }
.song-nav .btn { border: 0; cursor: pointer; max-width: 48%; }
.song-nav .btn span { font-family: var(--te); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .25s;
  background: var(--gold); color: #000; font-weight: 700; padding: 10px 18px; border-radius: 12px; z-index: 95; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Projector */
.proj { position: fixed; inset: 0; z-index: 100; background: #000; color: #fff; display: grid; grid-template-rows: auto 1fr auto; }
.proj[hidden] { display: none; }
.proj-head, .proj-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; color: rgba(212,175,55,.8); font-weight: 600; font-family: 'Inter', var(--te); }
.proj-foot { justify-content: center; gap: 18px; }
.proj-body { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 2vh 5vw; overflow: hidden; cursor: pointer; }
.proj-body .pk { font-family: 'Cinzel', serif; color: var(--gold); font-size: clamp(16px, 2.2vw, 26px); margin-bottom: 2vh; }
.proj-body .pl { margin: 0 0 1.6vh; }
.proj-body .pl .t { display: block; font-family: var(--te); font-size: clamp(26px, 4.6vw, 64px); line-height: 1.35; }
.proj-body .pl .e { display: block; font-size: clamp(18px, 2.8vw, 40px); color: #f1d675; line-height: 1.3; }
.proj[data-s="te"] .pl .e, .proj[data-s="en"] .pl .t { display: none; }
.proj[data-s="en"] .pl .e { color: #fff; font-size: clamp(26px, 4.6vw, 64px); }

@media (max-width: 720px) {
  .sb-hero { padding-top: 24px; }
  .sb-hero-in { grid-template-columns: 1fr; gap: 22px; }
  .board { display: none; }
  .song-head .board { display: block; }
  .f-row { grid-template-columns: 1fr; gap: 6px; }
  .songs a { grid-template-columns: 54px minmax(0,1fr); padding-right: 12px; }
  .s-go { display: none; }
  .num { font-size: 17px; padding: 10px 0; }
  .sheet-bar { flex-wrap: wrap; }
  .bar-right { gap: 0; }
  .icon-btn { width: 40px; }
  .part { grid-template-columns: 30px minmax(0,1fr); gap: 8px; }
  .sb { --fs: 18px; }
}
@media (prefers-reduced-motion: reduce) { .sheet, .board-num, .toast { animation: none; transition: none; } }

/* Private review markers */
.ln.sus { position: relative; padding-left: 12px; border-left: 3px solid #e0a14a; background: linear-gradient(90deg, rgba(224,161,74,.10), transparent 70%); border-radius: 0 6px 6px 0; }
.review-note { margin: 0 0 22px; padding: 12px 16px; border-radius: 14px; background: rgba(224,161,74,.08); border: 1px solid rgba(224,161,74,.35); color: #f0dcc0; font-size: 14.5px; }
.review-note i { color: #e0a14a; margin-right: 6px; }
.review-bar { background: #2a1d0a; color: #f0dcc0; text-align: center; font-size: 14px; padding: 8px 16px; border-bottom: 1px solid rgba(224,161,74,.35); }
.review-bar strong { color: #e0a14a; }
