:root {
  --bg: #fffaf3; --surface: #ffffff; --text: #2b1d12; --muted: #6b5848;
  --accent: #c2410c; --accent-soft: #fde7d3; --border: #ecdcc9;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #17110c; --surface: #221a13; --text: #f5ebe0; --muted: #b9a693;
    --accent: #fb923c; --accent-soft: #3a2616; --border: #3b2e22; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, "Noto Sans", "Noto Sans Telugu", "Noto Sans Tamil", "Noto Sans Malayalam", sans-serif; }
header { background: var(--accent); color: #fff; padding: 24px 16px; text-align: center; }
header .brand, header h1 { margin: 0; font-size: 1.8rem; font-weight: 700; color: #fff; text-decoration: none; }
header p { margin: 4px 0 0; opacity: .9; }
nav { position: sticky; top: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 8px 16px;
  background: var(--surface); border-bottom: 1px solid var(--border); }
nav a { white-space: nowrap; padding: 6px 12px; border-radius: 999px; color: var(--text); text-decoration: none; }
nav a:hover, nav a:focus-visible, nav a[aria-current] { background: var(--accent-soft); }
nav a[aria-current] { font-weight: 600; }
main { max-width: 860px; margin: 0 auto; padding: 16px; }
h1, h2 { color: var(--accent); border-bottom: 2px solid var(--accent-soft); padding-bottom: 4px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; margin: 10px 0; }
.card h2, .card h3 { margin: 0 0 4px; font-size: 1.2rem; border: 0; }
.meta { color: var(--muted); font-size: .9rem; }
.body { white-space: pre-wrap; }
.lyrics p { margin: 0 0 12px; }
.lyrics .top { font-size: .9rem; }
.toc { columns: 2 220px; padding-left: 20px; }
a { color: var(--accent); }
.video { margin: 8px 0 16px; }
li:has(> .video) { list-style: none; }
.video figcaption { color: var(--muted); font-size: .9rem; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; }
.empty { color: var(--muted); font-style: italic; }
footer { text-align: center; color: var(--muted); padding: 24px 16px; font-size: .9rem; }
/* admin */
form.card { display: grid; gap: 10px; }
label { display: grid; gap: 4px; font-weight: 600; }
input, select, textarea, button { font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 6px; padding: 8px; }
textarea { min-height: 160px; }
button { background: var(--accent); color: #fff; border: 0; cursor: pointer; padding: 8px 16px; }
button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
/* language tabs on Songs & Lyrics */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--accent-soft); margin-bottom: 16px; }
.tabs a { padding: 8px 14px; border-radius: 8px 8px 0 0; text-decoration: none; color: var(--text); }
.tabs a[aria-selected="true"] { background: var(--accent); color: #fff; font-weight: 600; }
.tabs a:hover:not([aria-selected="true"]), .tabs a:focus-visible { background: var(--accent-soft); }
