:root {
  --bg: #14110f; --surface: #1e1a17; --surface-2: #28221e; --line: #342d27;
  --text: #f4ede5; --muted: #a99d91; --accent: #f2a93b; --on-accent: #14110f;
  --chord: #ffbf5e; --hindi: #f2a93b; --bengali: #6fcf97; --english: #6aa9ff;
  --radius: 16px; --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --head: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #fbf7f1; --surface: #ffffff; --surface-2: #f3ece2; --line: #e6dccf;
    --text: #231d18; --muted: #6f6359; --accent: #d9780f; --on-accent: #ffffff;
    --chord: #b45309; --hindi: #c2680a; --bengali: #1f8a52; --english: #2c6fd6;
    --shadow: 0 10px 30px rgba(60, 40, 10, .10); color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #fbf7f1; --surface: #ffffff; --surface-2: #f3ece2; --line: #e6dccf;
  --text: #231d18; --muted: #6f6359; --accent: #d9780f; --on-accent: #ffffff;
  --chord: #b45309; --hindi: #c2680a; --bengali: #1f8a52; --english: #2c6fd6;
  --shadow: 0 10px 30px rgba(60, 40, 10, .10); color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.65 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; border-radius: 12px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 600; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 1.2rem var(--head); color: var(--text); margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand em { font-style: normal; color: var(--accent); }
.logo-mark { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; }
.nav a { white-space: nowrap; color: var(--muted); padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--on-accent); background: var(--accent); }
.icon-btn { background: var(--surface); color: var(--text); border: 1px solid var(--line); width: 40px; height: 40px; border-radius: 12px; font-size: 1.1rem; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.menu { display: none; }
@media (max-width: 1020px) {
  .menu { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; border-radius: 10px; }
}

/* hero */
.hero { padding: clamp(48px, 9vw, 110px) 0 clamp(32px, 5vw, 56px); background:
  radial-gradient(900px 380px at 85% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
  radial-gradient(600px 300px at 0% 10%, color-mix(in srgb, var(--english) 12%, transparent), transparent 70%); }
.hero h1 { max-width: 16ch; margin-bottom: .35em; }
.hero h1 span { color: var(--accent); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--accent); margin: 0 0 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; margin: 0 0 1.2em; }
.search { display: flex; gap: 8px; max-width: 560px; }
.search input, .filters input { flex: 1; min-width: 0; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font: inherit; }
.search input::placeholder, .filters input::placeholder { color: var(--muted); }
.search button, .btn { background: var(--accent); color: var(--on-accent); border: 0; border-radius: 14px; padding: 14px 22px; font: 600 1rem var(--body); cursor: pointer; display: inline-block; }
.search button:hover, .btn:hover { filter: brightness(1.08); text-decoration: none; }

/* sections */
.block { padding-block: clamp(24px, 4vw, 44px); }
.pagehead { padding-top: clamp(36px, 6vw, 72px); padding-bottom: 8px; }
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.head h2 { margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--text); display: flex; flex-direction: column; gap: 4px; border-top: 4px solid var(--c, var(--accent)); transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.tile strong { font: 800 1.5rem var(--head); }
.tile span { color: var(--muted); font-size: .95rem; }
.tile em { font-style: normal; color: var(--c, var(--accent)); font-weight: 600; font-size: .9rem; margin-top: 6px; }
.lang-hindi { --c: var(--hindi); } .lang-bengali { --c: var(--bengali); } .lang-english { --c: var(--english); }
@media (max-width: 640px) { .tiles { grid-template-columns: 1fr; } }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; color: var(--text); display: flex; flex-direction: column; gap: 6px; border-left: 4px solid var(--c, var(--accent)); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.card h3 { margin: 4px 0 0; }
.card .sub { margin: 0; color: var(--muted); font-size: .92rem; }
.card .go { margin-top: auto; padding-top: 8px; color: var(--accent); font-weight: 600; font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip { font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.chip[class*="lang-"] { color: var(--c); border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }

/* song list */
.filters { display: flex; flex-wrap: wrap; gap: 12px; max-width: 760px; margin-top: 8px; }
.seg { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 2px; }
.seg button { background: none; border: 0; color: var(--muted); padding: 10px 14px; border-radius: 10px; font: 600 .9rem var(--body); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.list li[hidden] { display: none; }
.list a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; color: var(--text); }
.list a:hover { border-color: var(--accent); text-decoration: none; }
.list .t { font-weight: 600; }
.list .s { grid-column: 1; color: var(--muted); font-size: .88rem; }
.list .chip { grid-column: 2; grid-row: 1 / span 2; }

/* post */
.post { max-width: 820px; padding-top: 28px; }
.crumbs { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.post h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
.meta { margin-bottom: 14px; }
.tools { display: flex; gap: 6px; margin-bottom: 14px; }
.tools button { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 6px 14px; font: 600 .9rem var(--body); cursor: pointer; }
.tools button:hover { border-color: var(--accent); }
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 4vw, 36px); font-size: 1.05rem; line-height: 1.95; overflow-wrap: anywhere; }
.sheet img { display: block; margin: 0 auto 1.2em; }
.sheet a { word-break: break-all; }
.c { color: var(--chord); font-family: ui-monospace, "JetBrains Mono", Consolas, monospace; font-weight: 700; font-size: .9em; background: color-mix(in srgb, var(--chord) 14%, transparent); padding: 1px 6px; border-radius: 6px; margin-inline: 2px; }
.note { color: var(--muted); font-size: .88rem; margin-top: 14px; }

/* misc */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px !important; margin-block: 20px; }
.cta h2 { margin-bottom: 4px; } .cta p { margin: 0; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.site-footer { margin-top: 56px; border-top: 1px solid var(--line); background: var(--surface); padding: 32px 0 24px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: flex-start; }
.foot nav a { color: var(--muted); }
.foot p { margin: 6px 0 0; }
.brand.small { font-size: 1.05rem; }
.legal { font-size: .85rem; margin-top: 20px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .tools, .crumbs, .block:last-of-type { display: none; } body { background: #fff; color: #000; } .sheet { border: 0; padding: 0; } }

/* ---- thumbnails, hero, facts, sharing, chord sheet ---- */
.card { padding: 0; overflow: hidden; border-left-width: 1px; border-top: 4px solid var(--c, var(--accent)); }
.card .thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--surface-2), var(--bg)); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; display: block; transition: transform .3s; }
.card:hover .thumb img { transform: scale(1.05); }
.card .cbody { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.hero-img { display: block; width: 100%; max-height: 420px; object-fit: cover; aspect-ratio: 16 / 9; border-radius: var(--radius); margin: 0 0 14px; background: var(--surface-2); }
.diff-easy { color: #6fcf97; } .diff-medium { color: var(--accent); } .diff-advanced { color: #ff7a7a; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.sh { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font: 600 .85rem var(--body); cursor: pointer; }
.sh:hover { text-decoration: none; border-color: var(--accent); }
.sh.wa { background: #1fa855; border-color: #1fa855; color: #fff; }
.sh.fb { background: #1877f2; border-color: #1877f2; color: #fff; }
.sh.x { background: #111; border-color: #333; color: #fff; }
.sh.tg { background: #229ed9; border-color: #229ed9; color: #fff; }
.share-end { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px; margin-top: 22px; }
.share-end h2 { margin-bottom: 2px; } .share-end .share { justify-content: center; margin: 14px 0 0; }
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.usedrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.used { display: flex; flex-wrap: wrap; gap: 6px; }
.used .c { font-size: 1rem; padding: 4px 12px; }
.facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 20px; margin: 16px 0 0; }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.tools button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.sheet { line-height: 1.7; }
.sheet .ln { white-space: pre-wrap; }
.sheet .gap { height: .9em; }
.sheet .sec { margin: 1.1em 0 .3em; font: 800 .8rem var(--head); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.sheet .lab { color: var(--muted); font-size: .85em; }
.sheet.above { overflow-x: auto; font-family: ui-monospace, "JetBrains Mono", Consolas, "Courier New", monospace; font-size: .95rem; line-height: 1.55; }
.sheet.above .ln { white-space: pre; }
.sheet.above .ch { line-height: 1.3; margin-top: .5em; }
.sheet.above .c { background: none; padding: 0; margin: 0; font-size: 1em; }
.sheet .tab { color: var(--muted); font-size: .85em; }
.sheet.inline .ln { margin-bottom: .15em; }
.video { margin-top: 22px; }
.video .ratio { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
