:root{color-scheme:dark;font-family:Inter,'Yu Gothic UI',Meiryo,sans-serif;color:#e6edf5;background:#0b1018;font-size:14px}*{box-sizing:border-box}body{margin:0;display:flex;height:100dvh;overflow:hidden}button,input,select{font:inherit}button,select{background:#1b2636;color:#dbe4ef;border:1px solid #344257;border-radius:6px;padding:8px 12px;cursor:pointer}button:hover{background:#29394c}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #72e3dc;outline-offset:2px}aside{width:278px;flex-shrink:0;border-right:1px solid #273243;display:flex;flex-direction:column;background:#111925}.brand{padding:25px 20px;font-weight:800;font-size:23px;letter-spacing:2px}.brand>span{color:#78e6d1}.brand small{display:block;margin:7px 0 0 27px;font-size:10px;letter-spacing:2.4px;color:#8392a8}.search{padding:12px 18px;color:#a3b2c5;font-size:12px}.search input{width:100%;margin-top:8px;padding:10px;background:#0c131e;border:1px solid #2d3b50;border-radius:6px;color:#fff}.library-head{padding:16px 20px 12px;display:flex;justify-content:space-between;color:#8495ad;font-size:12px}#library{overflow:auto;flex:1;padding:0 10px}.song{width:100%;text-align:left;border:0;background:transparent;display:block;margin:3px 0;padding:12px}.song strong{font-size:14px;display:block;font-weight:500}.song small{display:block;font-size:11px;margin-top:6px;color:#8191a8}.song.active{background:#213a42;box-shadow:inset 3px 0 #79e3cd}.song.active strong{color:#a5ffe5}footer{padding:16px 20px;color:#75859d;font-size:11px;line-height:1.8;border-top:1px solid #273243}main{min-width:0;flex:1;display:flex;flex-direction:column}header{padding:22px 28px 17px;display:flex;justify-content:space-between;align-items:center;gap:12px}.eyebrow{font-size:11px;letter-spacing:2px;color:#7d91ac}h1{font-size:25px;margin:6px 0 0;font-weight:600}.header-meta{display:flex;gap:16px;color:#a1b2c8}.header-meta span:first-child{color:#f4bbd4}.toolbar{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:0 28px 18px;border-bottom:1px solid #253244}#difficulties{display:flex;gap:5px}#difficulties button{font-size:11px;padding:8px}#difficulties button.active{background:#c95e91;color:white;border-color:#e07bac}.tools{display:flex;gap:18px;align-items:center;color:#a2b0c3;font-size:12px}.tools label{display:flex;align-items:center;gap:8px}input[type=range]{accent-color:#7be3ce;cursor:pointer}#zoom{width:80px}#zoomValue{width:65px}.workspace{min-height:0;flex:1;display:flex;background:#080e17}.canvas-wrap{flex:1;position:relative;min-width:0;overflow:hidden}#chart{display:block;width:100%;height:100%;touch-action:none}.overview{width:78px;display:flex;flex-direction:column;border-left:1px solid #253244;padding:12px 8px;gap:10px;text-align:center;color:#778da8;font-size:10px}#minimap{width:100%;flex:1;min-height:0;cursor:crosshair}.transport{display:flex;align-items:center;gap:12px;padding:16px 24px 8px;border-top:1px solid #253244}.primary{background:#77dfc9;color:#11262c;border:0;min-width:70px;font-weight:700}.primary:hover{background:#a2ffe8}#seek{flex:1;min-width:30px}#time,#duration{font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}.status{display:flex;justify-content:space-between;padding:5px 25px 14px;color:#788aa4;font-size:11px}#error{position:absolute;top:70px;left:15%;right:15%;padding:20px;background:#542535;color:white;border-radius:8px}button:disabled{opacity:.3;cursor:default}@media(max-width:1000px){aside{width:210px}.toolbar{flex-wrap:wrap}.tools{width:100%;justify-content:space-between}.header-meta{font-size:11px;flex-direction:column;gap:5px}}@media(max-width:650px){aside{width:145px}.brand{font-size:18px;padding:15px 10px}.brand small{font-size:8px;margin-left:0}.search{padding:8px}.song{padding:10px 7px}.song strong{font-size:12px}header{padding:14px}h1{font-size:20px}.toolbar{padding:0 10px 12px}.overview{display:none}.transport{gap:6px;padding:10px 8px}#duration,.header-meta,footer{display:none}.status{padding:5px 10px;font-size:9px}.status span:last-child{max-width:140px}#zoom{width:65px}#difficulties button{padding:6px;font-size:9px}}

.volume-control{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:12px;color:#a2b0c3}.volume-control input{width:80px;min-width:45px}.volume-control output{width:36px;font-variant-numeric:tabular-nums}@media(max-width:1000px){.transport{flex-wrap:wrap}.volume-control{margin-left:auto}}

.brand img{width:28px;height:28px;object-fit:contain;vertical-align:middle;margin-right:7px}.song{display:flex;gap:10px;align-items:center}.song img{width:42px;height:42px;object-fit:cover;border-radius:5px;background:#253244}.song span{min-width:0}.song strong,.song small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.browse main > :not(#browsePanel){display:none}
#browsePanel{display:none;overflow:auto;padding:24px;flex:1;min-height:0}
.browse #browsePanel{display:block}
#browseStatus{color:#9caec5}
#songGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:18px;margin-top:24px}
.song-card{background:#142034;border:1px solid #2b3b53;border-radius:10px;padding:14px;min-width:0}
.song-card>img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:6px;background:#223249}
.song-card h2{font-size:17px;margin:12px 0 8px}
.song-card p{font-size:13px;color:#acbdd5;line-height:1.7}
.song-card small{color:#8294ad}
.card-difficulties{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.card-difficulties button{font-size:11px;padding:7px}
#backToLibrary{align-self:flex-start;margin:12px 24px 0}
.tools{flex-wrap:wrap}.toolbar{flex-wrap:wrap}
@media(max-width:650px){#browsePanel{padding:12px}#songGrid{grid-template-columns:1fr}.tools{gap:10px}.brand img{width:24px;height:24px}}
.brand{border:0;border-radius:0;background:transparent;text-align:left;width:100%}
.brand img{width:44px;height:44px}
.sort-control{display:flex;gap:10px;align-items:center;flex-wrap:wrap;color:#acbdd5;margin-top:20px}
.credits{color:#a4b5cf;font-size:12px;line-height:1.8;margin:10px 0;overflow-wrap:anywhere}
@media(max-width:650px){.brand img{width:34px;height:34px}.brand{font-size:15px}.sort-control select{max-width:100%}}
.filter-control{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px;color:#acbdd5}
.filter-control label{display:flex;align-items:center;gap:6px}
input[type=number]{width:76px;padding:6px;border:1px solid #344257;border-radius:5px;background:#0c131e;color:#e6edf5}
#zoomNumber,#volumeNumber{width:65px}
[data-difficulty="0"]{--difficulty:#b5df70}
[data-difficulty="1"]{--difficulty:#80d5f4}
[data-difficulty="2"]{--difficulty:#ffcd69}
[data-difficulty="3"]{--difficulty:#f68e96}
.card-difficulties button,#difficulties button{color:var(--difficulty);border-color:var(--difficulty)}
#difficulties button.active{background:var(--difficulty);border-color:var(--difficulty);color:#17202d}
#library,#browsePanel{scrollbar-width:thin;scrollbar-color:#34475e #111925}
#library::-webkit-scrollbar,#browsePanel::-webkit-scrollbar{width:7px}
#library::-webkit-scrollbar-track,#browsePanel::-webkit-scrollbar-track{background:#111925}
#library::-webkit-scrollbar-thumb,#browsePanel::-webkit-scrollbar-thumb{background:#34475e;border-radius:8px}
#sidebar{position:relative}
#sidebarContent{display:flex;flex-direction:column;min-height:0;flex:1}
#sidebarContent[hidden]{display:none}
#sidebarToggle{position:absolute;right:6px;top:6px;z-index:1;width:28px;height:28px;padding:0;font-size:22px;line-height:1}
.sidebar-collapsed #sidebar{width:42px}
.song strong{line-height:2.4}
ruby{ruby-align:center}
rt{font-size:.55em;color:#9aadc6;font-weight:400;letter-spacing:.04em}
.song-card h2,#title{line-height:1.9}
.details-dialog{width:min(760px,94vw);max-height:88vh;overflow:auto;background:#142034;color:#e6edf5;border:1px solid #405575;border-radius:12px;padding:24px;scrollbar-width:thin;scrollbar-color:#34475e #111925}
.details-dialog::backdrop{background:#0009}
.details-close{float:right;position:sticky;top:0}
.details-dialog h2{font-size:20px;padding-right:80px}
.details-dialog h3{margin-top:26px;color:#a5e6d7}
.details-dialog table{width:100%;border-collapse:collapse;font-size:13px}
.details-dialog th,.details-dialog td{padding:9px;text-align:left;border-bottom:1px solid #304059;overflow-wrap:anywhere}
.details-dialog p{color:#9eafc6;font-size:12px;line-height:1.7}
.detail-button,#showDetails{font-size:12px;padding:4px 9px;white-space:nowrap}
.detail-button{margin-left:10px}
.details-selector{display:flex;align-items:center;gap:10px;margin:24px 0 12px}
