/* Piano Phát Sáng 1.2 — nhận diện Adam, thanh nhanh, chế độ dạy, hợp âm */
body{font-family:'Be Vietnam Pro',system-ui,sans-serif;padding-left:0;padding-right:0}
.wrap{max-width:1180px;padding:1rem 16px 1.5rem}
.top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 16px;max-width:1180px;margin:0 auto}
.brand{display:flex;align-items:center;gap:10px;min-width:0}
.brand b{display:block;font-size:17px;letter-spacing:.01em}
.brand small{display:block;font-size:11px;color:var(--fg-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hnav{display:flex;gap:6px;flex:none}
.hbtn{display:inline-flex;align-items:center;gap:6px;font:inherit;font-size:13px;padding:7px 13px;border-radius:999px;border:0.5px solid rgba(199,125,255,.45);background:rgba(199,125,255,.1);color:var(--fg);text-decoration:none;cursor:pointer;white-space:nowrap}
.hbtn.signup{background:linear-gradient(135deg,#ff5da2,#c77dff);border-color:transparent;color:#fff;font-weight:600}
.hbtn.icon{width:34px;justify-content:center;padding:7px 0}
.s-short{display:none}
@media (max-width:560px){.s-long{display:none}.s-short{display:inline}.brand small{display:none}}
.quick{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;margin:0 0 12px}
.quick label{font-size:12px;color:var(--fg-dim);display:flex;align-items:center;gap:6px}
button.primary{background:linear-gradient(135deg,#ff5da2,#c77dff);border-color:transparent;color:#fff;font-weight:600}
.pedalState{padding:1px 8px;border-radius:999px;border:0.5px solid rgba(255,255,255,.2)}
.pedalState.on,#pedalBtn.on{background:#ffd166;color:#1a1200;border-color:#ffd166}
.foot{display:flex;flex-wrap:wrap;gap:8px 14px;justify-content:center;align-items:center;padding:18px 16px 28px;font-size:12px;color:var(--fg-dim);border-top:0.5px solid rgba(199,125,255,.18);max-width:1180px;margin:0 auto}
.foot a,.foot button{color:var(--fg-dim);background:none;border:none;padding:0;font:inherit;font-size:12px;text-decoration:none;cursor:pointer}
.foot a:hover,.foot button:hover{color:var(--fg)}
.modal.wide{max-width:620px;max-height:88vh;overflow:auto}
.modal .feat{margin:0 0 12px;padding-left:18px;font-size:13px;line-height:1.6}
.author{display:flex;gap:12px;padding:12px;border-radius:12px;background:rgba(255,255,255,.04);margin-top:8px}
.author .av{flex:none;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;font-weight:700;background:linear-gradient(135deg,#ff5da2,#c77dff);color:#fff}
.author h3{margin:0;font-size:15px}.author .role{margin:2px 0 6px;font-size:12px;color:var(--fg-dim)}.author p{font-size:13px;margin:4px 0}
.author .row{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.credit{font-size:11px;color:var(--fg-dim);margin-top:12px;line-height:1.6}.credit a{color:var(--accent)}
.bigqr{display:block;margin:0 auto 8px;max-width:240px;height:auto;border-radius:10px;background:#fff}
.center{text-align:center}button.mini{padding:3px 9px;font-size:12px}

/* tên hợp âm — nền trong suốt mặc định */
.chordBox{position:absolute;left:50%;top:44px;transform:translate(-50%,-6px);z-index:8;text-align:center;pointer-events:none;opacity:0;transition:opacity .18s,transform .18s;padding:6px 18px 8px;border-radius:16px;max-width:92%}
.chordBox.show{opacity:1;transform:translate(-50%,0)}
.chordBox[data-pos=center]{top:22%}
.chordBox[data-pos=left]{left:16px;transform:none;text-align:left}
.chordBox[data-pos=left].show{transform:none}
.chordBox[data-bg=glass]{background:rgba(10,8,20,.42);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:0.5px solid rgba(255,255,255,.18)}
.chordBox[data-bg=solid]{background:#0d0818;border:0.5px solid rgba(199,125,255,.4)}
.cBig{font-size:clamp(34px,6.2vw,92px);font-weight:800;line-height:1.02;color:#fff;letter-spacing:.01em;text-shadow:0 2px 14px rgba(0,0,0,.65),0 0 2px rgba(0,0,0,.9)}
.cSub{font-size:clamp(13px,1.6vw,22px);font-weight:600;color:#ffe7a8;text-shadow:0 1px 8px rgba(0,0,0,.8)}
.cNotes{font-size:clamp(12px,1.3vw,18px);color:rgba(255,255,255,.88);text-shadow:0 1px 6px rgba(0,0,0,.8);margin-top:2px}

/* thanh chế độ dạy (chỉ hiện trong chế độ dạy) */
.teachBar{display:none}
html.teach .teachBar{display:flex;position:fixed;top:10px;right:10px;z-index:60;gap:6px;flex-wrap:wrap;justify-content:flex-end;align-items:center;max-width:calc(100% - 20px);padding:6px;border-radius:14px;background:rgba(10,8,20,.72);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:0.5px solid rgba(199,125,255,.35);transition:opacity .35s}
.teachBar label{font-size:12px;color:var(--fg);display:flex;align-items:center;gap:4px;padding:0 4px}
.teachBar select,.teachBar button{font-size:12px;padding:5px 10px}
html.teach.idle .teachBar{opacity:0;pointer-events:none}
html.teach.idle,html.teach.idle *{cursor:none!important}

/* chế độ dạy: chỉ còn sân khấu, toàn màn hình */
html.teach body{overflow:hidden}
html.teach .top,html.teach .foot,html.teach .wrap>*:not(.stageWrap){display:none!important}
html.teach .wrap{max-width:none;padding:0;margin:0}
html.teach .stageWrap{position:fixed;inset:0;z-index:40;background:var(--bg)}
html.teach .stage,html.teach .stage3d,html.teach .stageFret{aspect-ratio:auto;height:100vh;height:100dvh;border-radius:0;border:none;min-height:0}
html.teach .hint{display:none}
html.teach #camVideo{border-radius:0}
html.teach .chordBox{top:5vh}

/* chỉ bàn phím: sân khấu thấp, nằm sát đáy khi dạy */
html.keyonly .stage{aspect-ratio:auto}
html.keyonly .stage .hint{display:none}
html.keyonly .chordBox{top:8px}
html.teach.keyonly .stageWrap{background:transparent}
html.teach.keyonly .stage{position:absolute;left:0;right:0;bottom:0;height:auto}
html.teach.keyonly .chordBox{top:auto;bottom:calc(var(--kbh,30vh) + 4vh)}

/* nền trong suốt (OBS Browser Source / chồng video) */
html.bg-trong.teach,html.bg-trong.teach body,html.bg-trong.teach .stageWrap,html.bg-trong.teach .stage{background:transparent!important;border-color:transparent}
html.bg-trong .stage{background:transparent}
html.teach #agBtn,html.teach #agTip,html.teach #agMenu{display:none!important}
