/* ======== v2: premium layer ======== */
:root { --glass: color-mix(in srgb, var(--surface) 80%, transparent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
button.ghost { background: none; color: var(--accent); border: 1px solid var(--line); }

/* header */
.search-btn { display: flex; align-items: center; gap: 8px; background: var(--surface); color: var(--muted); border: 1px solid var(--line); border-radius: 12px; height: 40px; padding: 0 12px; font: 500 .9rem var(--body); cursor: pointer; }
.search-btn:hover { border-color: var(--accent); color: var(--text); }
.search-btn kbd { font: 600 .7rem var(--body); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; background: var(--surface-2); }
.saved-link { display: grid; place-items: center; position: relative; color: var(--text); }
.saved-link:hover { text-decoration: none; }
.saved-link b { position: absolute; top: -6px; right: -6px; background: var(--accent); color: var(--on-accent); font: 700 .7rem var(--body); min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.saved-link b[hidden] { display: none; }
@media (max-width: 1020px) { .search-btn span, .search-btn kbd { display: none; } .search-btn { width: 40px; padding: 0; justify-content: center; } }

/* hero */
.hero { position: relative; overflow: hidden; padding-bottom: 0; }
.hero-glow { position: absolute; inset: -20% -10% auto auto; width: 620px; height: 620px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 28%, transparent), transparent 65%); filter: blur(30px); pointer-events: none; animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-60px, 40px) scale(1.1); } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { max-width: 14ch; font-size: clamp(2.3rem, 5.4vw, 4rem); }
.quick { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 18px; font-size: .92rem; align-items: center; }
.quick a { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); background: var(--glass); }
.quick a:hover { border-color: var(--accent); text-decoration: none; }
.sod { display: flex; flex-direction: column; gap: 6px; background: var(--glass); border: 1px solid var(--line); border-radius: 22px; padding: 14px; color: var(--text); box-shadow: var(--shadow); backdrop-filter: blur(8px); transform: rotate(1.5deg); transition: transform .2s; }
.sod:hover { transform: rotate(0) translateY(-4px); text-decoration: none; }
.sod img { border-radius: 14px; width: 100%; height: auto; }
.sod strong { font: 800 1.35rem var(--head); padding: 6px 4px 0; }
.sod .muted { padding: 0 4px 4px; font-size: .9rem; }
.sod-tag { align-self: flex-start; background: var(--accent); color: var(--on-accent); font: 700 .72rem var(--body); text-transform: uppercase; letter-spacing: .1em; padding: 4px 10px; border-radius: 999px; }
.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 48px; background: var(--line); border: 1px solid var(--line); border-radius: 18px 18px 0 0; overflow: hidden; }
.stats div { background: var(--surface); padding: 18px 12px; text-align: center; display: flex; flex-direction: column; }
.stats b { font: 800 1.8rem var(--head); color: var(--accent); }
.stats span { color: var(--muted); font-size: .85rem; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .sod { max-width: 420px; transform: none; } .stats { grid-template-columns: repeat(2, 1fr); } }

/* rows */
.twocol { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .twocol { grid-template-columns: 1fr; } }
.rows { display: grid; gap: 8px; }
.rows.wide { grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); }
.rowcard { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 14px 8px 8px; color: var(--text); transition: border-color .15s, transform .15s; }
.rowcard:hover { border-color: var(--accent); transform: translateX(3px); text-decoration: none; }
.rowcard img { width: 96px; height: 54px; object-fit: cover; border-radius: 8px; flex: none; }
.rowcard .rt { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.rowcard strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rowcard small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rowcard .chip { display: none; }
@media (min-width: 560px) { .rowcard .chip:first-of-type { display: inline-block; } }
.rk { font: 800 1.2rem var(--head); color: var(--accent); width: 26px; text-align: center; flex: none; }
.feature { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface)); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.ticks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--on-accent); background: var(--accent); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; top: 3px; }

/* footer */
.foot nav { flex-direction: column; gap: 6px; }
.foot nav strong { font: 800 .8rem var(--head); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.news { display: flex; gap: 8px; margin-top: 14px; max-width: 360px; }
.news input { flex: 1; min-width: 0; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; }
.news button { background: var(--accent); color: var(--on-accent); border: 0; border-radius: 12px; padding: 10px 16px; font: 600 .9rem var(--body); cursor: pointer; }

/* post */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; z-index: 40; }
.titlerow { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.titlerow h1 { margin-bottom: .3em; }
.savebtn { flex: none; display: flex; align-items: center; gap: 6px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font: 600 .9rem var(--body); cursor: pointer; margin-top: 6px; }
.savebtn:hover { border-color: var(--accent); }
.savebtn[aria-pressed="true"] { color: #ff6b81; border-color: #ff6b81; }
.savebtn[aria-pressed="true"] svg { fill: #ff6b81; }
.shapes { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 6px; margin-bottom: 14px; }
.shapes-head { display: flex; justify-content: space-between; align-items: baseline; }
.shapes-head h2 { font-size: 1.05rem; margin: 0; }
.shape-row { display: flex; gap: 10px; overflow-x: auto; padding: 10px 2px 12px; scroll-snap-type: x proximity; }
.shape { flex: none; scroll-snap-align: start; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; width: 92px; padding: 8px 6px 6px; cursor: pointer; color: var(--text); display: flex; flex-direction: column; align-items: center; }
.shape:hover { border-color: var(--accent); }
.shape b { font: 800 1rem var(--head); color: var(--chord); }
.diagram { width: 100%; }
.diagram svg { display: block; width: 100%; height: auto; }
.dstr { stroke: var(--muted); stroke-width: 1.2; }
.dfret { stroke: var(--line); stroke-width: 1.2; }
.dnut { stroke: var(--text); stroke-width: 3.5; }
.ddot { fill: var(--accent); }
.dopen { fill: none; stroke: var(--text); stroke-width: 1.6; }
.dtx { fill: var(--text); font: 700 13px var(--body); }
.dtx.small { font-size: 9px; fill: var(--muted); }
.dtx.mute { fill: var(--muted); }
.tools { flex-wrap: wrap; align-items: center; position: sticky; top: 70px; z-index: 10; background: var(--glass); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.tgroup { display: inline-flex; align-items: center; gap: 4px; padding-right: 8px; border-right: 1px solid var(--line); margin-right: 4px; }
.tgroup output { min-width: 112px; text-align: center; font: 600 .85rem var(--body); color: var(--accent); }
.tools button { padding: 7px 12px; }
.tools button[hidden] { display: none; }
.tip { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: 14px; padding: 12px 16px; margin: 0 0 14px; }
.sheet.prog { line-height: 1.4; }
.sheet .prog-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 14px; white-space: normal; }
.sheet .prog-row .c { font-size: 1.35rem; padding: 8px 16px; background: color-mix(in srgb, var(--chord) 14%, var(--bg)); border: 1px solid var(--line); border-radius: 12px; }
.sheet .prog-row .bar { color: var(--line); font-size: 1.4rem; }
.sheet .c { cursor: pointer; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.pn a { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; color: var(--text); display: flex; flex-direction: column; }
.pn a:hover { border-color: var(--accent); text-decoration: none; }
.pn .r { text-align: right; }
.pn small { color: var(--muted); }
.chord-pop { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); display: grid; place-items: center; z-index: 60; backdrop-filter: blur(4px); }
.chord-pop[hidden], .cmdk[hidden] { display: none; }
.pop-in { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 28px; width: min(300px, 90vw); text-align: center; box-shadow: var(--shadow); }
.pop-in h3 { font: 800 2rem var(--head); color: var(--chord); margin: 0 0 6px; }
.pop-x { position: absolute; top: 8px; right: 10px; background: none; border: 0; color: var(--muted); font-size: 1.6rem; cursor: pointer; }

/* stage mode */
.stage .site-header, .stage .site-footer, .stage .crumbs, .stage .hero-img, .stage .share, .stage .facts, .stage .video, .stage .share-end, .stage .note, .stage .pn, .stage .block, .stage .shapes { display: none; }
.stage body { background: #000; }
.stage .post { max-width: 1000px; }
.stage .sheet { background: #000; border-color: #222; }
.stage .tools { top: 0; }

/* quick search */
.cmdk { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); z-index: 70; display: flex; justify-content: center; padding: 12vh 16px 0; }
.cmdk-box { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; width: min(620px, 100%); max-height: 70vh; overflow: auto; box-shadow: var(--shadow); padding: 12px; align-self: flex-start; }
.cmdk-box input { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font: 1.05rem var(--body); }
.cmdk-box ul { list-style: none; margin: 8px 0 0; padding: 0; }
.cmdk-box li a { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 10px; color: var(--text); }
.cmdk-box li.on a, .cmdk-box li a:hover { background: var(--surface-2); text-decoration: none; }
.cmdk-box small { color: var(--muted); }
.cmdk-box .empty { padding: 14px; }
.cmdk-hint { font-size: .78rem; margin: 8px 6px 0; }

/* chord library */
.chordgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.chordcard { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.chordcard .diagram { width: 92px; flex: none; }
.chordcard h3 { font: 800 1.5rem var(--head); color: var(--chord); margin: 0; }
.chordcard ul { list-style: none; padding: 0; margin: 6px 0 0; font-size: .9rem; display: grid; gap: 2px; }

/* tools + forms */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.panel.wide { grid-column: 1 / -1; }
.bpm { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 10px 0; }
.bpm output { font: 800 4rem var(--head); min-width: 2.2ch; text-align: center; color: var(--accent); }
.bpm button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 1.5rem; cursor: pointer; }
#bpm { width: 100%; accent-color: var(--accent); }
.beats { display: flex; gap: 10px; justify-content: center; margin: 14px 0 18px; }
.beats i { width: 18px; height: 18px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); }
.beats i.on { background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.tunes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.tune { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 6px; color: var(--text); cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.tune b { font: 800 1.8rem var(--head); color: var(--chord); }
.tune small { color: var(--muted); font-size: .72rem; }
.tune:hover, .tune.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--bg)); }
.finder { display: flex; gap: 10px; margin-bottom: 12px; }
select, .reqform input { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; }
.diagram.big { width: 190px; margin: 0 auto; }
.reqform { display: grid; gap: 14px; margin-top: 22px; max-width: 520px; }
.reqform label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
@media print { .progress, .chord-pop, .cmdk, .shapes, .pn { display: none !important; } .sheet .c { color: #000; background: none; } }

/* player */
.tgroup.player { gap: 8px; }
.pbpm { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; }
.pbpm input { width: 64px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 5px 6px; font: inherit; }
.ploop { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; color: var(--muted); }
b.c.playing { background: var(--accent) !important; color: var(--on-accent) !important; border-radius: 6px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.pop-play { margin-top: 12px; padding: 10px 18px; }

.lyrics { margin-top: 6px; }
.stanza { margin-bottom: 1.1em; }

/* strumming pattern */
.strum { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; }
.strum-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.strum-head h2 { font-size: 1.05rem; margin: 0; }
.slots { display: grid; gap: 6px; margin-top: 10px; }
.slots.n8 { grid-template-columns: repeat(8, 1fr); } .slots.n6 { grid-template-columns: repeat(6, 1fr); }
.slot { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; align-items: center; padding: 6px 0; }
.slot b { font-size: 1.5rem; line-height: 1.1; color: var(--text); }
.slot i { font-style: normal; font-size: .72rem; color: var(--muted); }
.slot.s-d b { color: var(--accent); } .slot.s-u b { color: var(--english); } .slot.s-x b { color: var(--muted); } .slot.s-r { opacity: .45; }
.strum-note { font-size: .82rem; margin: 8px 0 0; }
.verified { color: var(--bengali); }
