/* Tab player page (static/js/tab_plejer.js, rendering by alphaTab). */
.tp{display:grid;gap:12px;padding:20px 26px}
.tprow{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px}
.tpopen span,.tpb,.tpgo{display:inline-block;border:1px solid var(--edge);background:var(--card);color:var(--ink);border-radius:7px;padding:7px 14px;font-weight:700;cursor:pointer;box-shadow:0 3px 0 var(--bev);transition:transform .08s,box-shadow .08s}
.tpopen span{background:var(--acc);color:var(--accink)}
.tpopen span:active,.tpb:active,.tpgo:active{transform:translateY(3px);box-shadow:0 0 0 var(--edge)}
.tpopen input:focus-visible+span{outline:2px solid var(--link);outline-offset:2px}
.tpgo{min-width:116px;font-size:16px}.tpgo.on{background:var(--root);color:var(--rootink)}
.tpb:disabled,.tpgo:disabled{opacity:.5;cursor:default;transform:none}
.tpname{font-weight:700;overflow-wrap:anywhere}
.tptime{font:600 15px/1 var(--fb);font-variant-numeric:tabular-nums;min-width:96px;color:var(--mute)}
.tpf{display:inline-flex;align-items:center;gap:6px;font-weight:600}
.tp select{padding:4px 8px;border:1px solid var(--edge);border-radius:12px;background:var(--card);color:var(--ink)}
.tp input[type=checkbox]{accent-color:var(--link);width:17px;height:17px}
.tp .hint{margin:0}
.tpstatus{margin:0;font-size:14px;font-weight:600;color:var(--link);min-height:1.2em}
.tpstatus.err{color:var(--root)}

/* the score always sits on light paper, also in the dark theme */
.tpsheet{background:#fffdf6;border:1px solid var(--edge);border-radius:12px;box-shadow:0 14px 34px var(--sh);padding:10px 4px;min-height:240px;overflow-x:auto;color:#1d2b27}
.at-cursor-bar{background:rgba(224,173,47,.22)}
.at-cursor-beat{background:#d6342c;width:3px}
.at-selection div{background:rgba(13,106,92,.16)}
.at-highlight *{fill:#d6342c;stroke:#d6342c}

.tpdrop{position:fixed;inset:12px;z-index:60;border:4px dashed var(--acc);border-radius:16px;background:rgba(20,33,30,.55);display:grid;place-items:center;pointer-events:none}
.tpdrop[hidden]{display:none}
.tpdrop span{font:600 26px var(--fd);color:#fff}
@media (max-width:600px){.tp{padding:16px}.tprow{gap:8px 12px}}
/* base.css gives every svg text the site font; alphaTab's music glyphs must inherit its own font */
#at svg text{font-family:inherit;font-weight:normal}
.tp select{width:auto;min-width:0}

/* speed trainer */
.tptr{border-top:1px dashed var(--line);padding-top:12px}
.tptrs{font-weight:700;color:var(--link);font-variant-numeric:tabular-nums}

/* fretboard that follows the playback; sticks to the bottom of the screen while the score scrolls */
.tpbar{position:sticky;bottom:8px;z-index:20;margin-top:14px;background:var(--card);border:1px solid var(--edge);border-radius:12px;box-shadow:0 -4px 18px var(--sh);padding:8px 10px 6px}
.tpmini{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
.tpmini .tpgo{min-width:56px;padding:5px 12px;font-size:16px}.tpmini .tpb{padding:5px 12px}
.tpinfo{font-weight:700;color:var(--link);font-variant-numeric:tabular-nums}
.tpkey{margin-left:auto;font-size:12.5px;color:var(--mute)}
@media (max-width:600px){.tpkey{display:none}}
.tpfb{margin-top:6px}
.tpfb[hidden]{display:none}
.tpfb svg{display:block;width:100%;height:auto}
.tpfb text{font-family:var(--fb);font-weight:700}

/* mixer: master volume, plus mute / solo / volume per track when the file has several */
.tpmix{border-bottom:1px dashed var(--line);padding:4px 2px 10px;margin-bottom:8px;display:grid;gap:8px;max-height:40vh;overflow:auto}
.tpmix[hidden]{display:none}
#tpmixbtn.on{background:var(--acc);color:var(--accink)}
.tp input[type=range],.tpbar input[type=range]{accent-color:var(--link);width:140px}
.tpmt{display:grid;gap:6px}
.tpmt:empty{display:none}
.tpmr{display:grid;grid-template-columns:minmax(90px,180px) auto auto minmax(100px,200px) 3.5em;justify-content:start;align-items:center;gap:8px}
.tpmr .nm{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tpmr .nm.off{opacity:.45;text-decoration:line-through}
.tpms{width:34px;padding:4px 0;border:1px solid var(--edge);border-radius:12px;background:var(--card);color:var(--ink);font-weight:800;cursor:pointer;box-shadow:0 2px 0 var(--bev)}
.tpms.m.on{background:var(--root);color:var(--rootink)}.tpms.s.on{background:var(--acc);color:var(--accink)}
.tpmr input[type=range]{width:100%}
.tpmr .pc{font-size:13px;color:var(--mute);font-variant-numeric:tabular-nums}

/* ---- video mode: the tab in one line, a fretboard and a logo on a plain background, ready to screen-record ---- */
.tpvbar,.tpvlogo,.tpvcd{display:none}
html.vid{--vbg:#00b140;--vsheet:#fffdf6;--vink:#fff;overflow-y:hidden;scrollbar-width:none}
html.vid[data-vbg="black"]{--vbg:#000;--vsheet:transparent}
html.vid[data-vbg="white"]{--vbg:#fff;--vsheet:transparent;--vink:#14211e}
html.vid::-webkit-scrollbar{display:none}
html.vid,html.vid body{background:var(--vbg)!important}
html.vid .sitebar,html.vid .bglogo,html.vid .splash,html.vid main>h1,html.vid main>.sub,html.vid #tp,html.vid .tpmini,html.vid .tpmix{display:none!important}
html.vid main{max-width:none;margin:0;padding:12vh 0 0}
html.vid .tpsheet{width:max-content;min-width:100vw;min-height:0;overflow:visible;border:0;border-radius:0;box-shadow:none;padding:14px 0;background:var(--vsheet)}
html.vid .tpbar{position:fixed;left:3vw;right:3vw;bottom:3vh;margin:0;padding:0;background:none;border:0;box-shadow:none}
html.vid .tpbar .tpfb{margin:0}
/* the fretboard keeps to the bottom quarter of the screen so it never covers the tab */
html.vid .tpfb svg{width:auto;height:24vh;max-width:94vw;margin:0 auto}
html.vid .tpvbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;position:fixed;top:12px;left:12px;right:12px;z-index:70;background:var(--card);color:var(--ink);border:1px solid var(--edge);border-radius:12px;padding:8px 12px;box-shadow:0 4px 16px rgba(0,0,0,.3);transition:opacity .4s}
html.vid .tpvbar select{padding:4px 8px;border:1px solid var(--edge);border-radius:12px;background:var(--card);color:var(--ink)}
html.vid .tpvbar input[type=checkbox]{accent-color:var(--link);width:17px;height:17px}
.tpvhint{font-size:12.5px;color:var(--mute)}
html.vid.idle .tpvbar{opacity:0;pointer-events:none}
html.vid.idle,html.vid.idle *{cursor:none!important}
html.vid .tpvlogo{display:flex;align-items:center;gap:10px;position:fixed;top:4vh;right:3vw;z-index:30;font:600 20px var(--fd);color:var(--vink);text-shadow:0 1px 3px rgba(0,0,0,.35)}
html.vid[data-vbg="white"] .tpvlogo{text-shadow:none}
html.vid .tpvlogo img{width:56px;height:56px;border-radius:50%}
html.vid.nologo .tpvlogo{display:none}
html.vid .tpvcd:not([hidden]){display:grid;place-items:center;position:fixed;inset:0;z-index:60;pointer-events:none;font:700 22vh/1 var(--fd);color:var(--vink);text-shadow:0 4px 18px rgba(0,0,0,.4)}

/* "?" help panel (same look as the help panels of the other tools) */
html[lang="en"] .tps-sr,html:not([lang="en"]) .tps-en{display:none}
.tph{position:fixed;z-index:90;right:0;top:0;bottom:0;width:min(460px,100%);background:var(--card);color:var(--ink);border-left:2px solid var(--edge);padding:calc(18px + env(safe-area-inset-top,0px)) 20px calc(22px + env(safe-area-inset-bottom,0px)) 34px;overflow:auto;box-shadow:0 0 40px rgba(0,0,0,.3)}
.tph[hidden]{display:none}
.tph::before{content:none}
@media (max-width:760px){.tph{top:auto;left:0;width:100%;max-height:78vh;border-left:0;border-top:2px solid var(--edge);border-radius:18px 18px 0 0}.tph::before{display:none}}
.tphh{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:10px}
.tph h2{font:600 18px/1.25 var(--fd);margin:0}
.tph h3{font-size:15px;margin:18px 0 6px}
.tph p,.tph li{font-size:14.5px;line-height:1.5;margin:0 0 6px}.tph .lead{font-size:16px}
.tph ol,.tph ul{padding-left:22px;margin:4px 0}
html.vid.idle .tph,html.vid.idle .tph *{cursor:auto!important}
