*{box-sizing:border-box} :root{font-family:"Microsoft JhengHei UI","Noto Sans TC",sans-serif;color:#eee;background:#18191c;font-size:13px;color-scheme:dark}body{margin:0;min-height:100vh;padding:20px;background:radial-gradient(ellipse at 50% -20%,#32343b 0,#18191c 60%)}button,input{font:inherit}.window{max-width:1580px;min-height:calc(100vh - 40px);margin:auto;padding:17px 18px 10px;background:#202124;border:1px solid #41434a;border-radius:8px;box-shadow:0 20px 70px #0008;display:flex;flex-direction:column}.titlebar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:0 2px 14px}.title-group{display:flex;align-items:center;gap:12px;min-width:240px}.app-icon{display:grid;place-items:center;width:42px;height:42px;border:1px solid #707bba;border-radius:7px;background:linear-gradient(145deg,#525e9c,#343954);font-size:23px;font-weight:800;color:#e4e8ff}.title-group h1{font-size:20px;margin:0 0 4px;color:#fff}.version{font-size:11px;color:#a8abb3}.version i{font-style:normal;color:#686c76;margin:0 4px}.toolbar{display:flex;gap:7px;flex-wrap:wrap}.button{border:1px solid #50535a;background:#36383d;color:#eee;padding:8px 11px;border-radius:4px;cursor:pointer;white-space:nowrap}.button:hover{background:#45484f}.button.secondary{background:#292a2e}.button.primary{background:#5363a8;border-color:#8392d6}.button.primary:hover{background:#6373bb}.path-row{height:32px;display:flex;align-items:center;gap:9px;color:#b8bcc2;border-top:1px solid #34363b;border-bottom:1px solid #34363b;font-size:11px}.path-dot{width:7px;height:7px;background:#d5b858;border-radius:50%}.demo-badge{margin-left:auto;border:1px solid #66552a;color:#e3ce80;background:#393321;padding:3px 7px;border-radius:10px;font-size:9px}.demo-badge.connected{border-color:#466344;color:#b3e3a1;background:#263425}.search-row{display:flex;align-items:center;gap:9px;padding:12px 0}.search-row label{color:#c7c9ce}.search-row input{height:35px;min-width:100px;flex:1;background:#292a2d;border:1px solid #4a4d54;padding:7px 10px;border-radius:4px;color:#eee;outline:none}.search-row input:focus{border-color:#8292dc;box-shadow:0 0 0 2px #7585d522}.search-row input::placeholder{color:#83868e}.search-row .button{padding:7px 12px}.workspace{flex:1;min-height:450px;display:grid;grid-template-columns:minmax(0,1.85fr) minmax(290px,.8fr);gap:10px}.panel{border:1px solid #3b3d42;border-radius:5px;background:#25262a;min-width:0}.song-panel{display:flex;flex-direction:column}.panel-title{height:36px;display:flex;align-items:center;justify-content:space-between;padding:0 11px;border-bottom:1px solid #3b3d42;color:#e3e4e8;font-weight:600}.count,.detail-id{font-size:10px;color:#aeb1b9;font-weight:400}.table-wrap{overflow:auto;flex:1;min-height:300px}table{border-collapse:collapse;width:100%;min-width:1040px;font-size:11px}thead{position:sticky;top:0;z-index:1}th{height:34px;text-align:left;padding:0 8px;background:#34363b;color:#f0f1f4;border:1px solid #484a50;white-space:nowrap;font-weight:600}th[data-key]{cursor:pointer}th span{font-size:10px;color:#aeb3c3;margin-left:3px}td{height:34px;padding:5px 8px;border:1px solid #3a3c41;white-space:nowrap;color:#d2d3d8}tbody tr:nth-child(odd){background:#292a2d}tbody tr:nth-child(even){background:#25262a}tbody tr:hover{background:#363944}tbody tr.selected{background:#4b59a8;color:#fff}tbody tr.selected td{color:#fff}td.title-cell{font-weight:600}td.diff{color:#d8d9df;font-size:10px}td.audio-cell{color:#aeb5ca}.status-good{color:#9ed38d!important}.status-removed{color:#e79090!important}.table-footer{display:flex;justify-content:space-between;align-items:center;padding:7px 10px;border-top:1px solid #3b3d42;color:#a8aab1;font-size:10px}.text-button{border:0;background:none;color:#aeb9ff;cursor:pointer}.detail-panel{display:flex;flex-direction:column}.detail-content{padding:13px;display:flex;flex-direction:column;min-height:0}.cover-stage{display:grid;place-items:center;height:190px;background:#1c1d20;border:1px solid #383a3f;border-radius:3px}.cover-placeholder{width:156px;height:156px;border-radius:50%;position:relative;display:grid;place-items:center;overflow:hidden;background:radial-gradient(circle at 35% 30%,#7892d2,#45537e 37%,#282d42 72%,#15171f);border:4px solid #545b72;box-shadow:0 0 0 4px #292a2d,0 0 22px #697dc944}.cover-ring{position:absolute;inset:12px;border:1px solid #c3d2ff88;border-radius:50%}.cover-inner{text-align:center;color:#e5eaff;z-index:1;font-weight:800;font-size:13px;letter-spacing:.12em}.cover-inner b{display:block;font-size:38px;line-height:1.1}.cover-placeholder>span{position:absolute;bottom:17px;font-size:8px;letter-spacing:.18em;color:#e8ecff}.song-name{font-size:18px;font-weight:700;text-align:center;margin:12px 0 4px}.song-artist{text-align:center;color:#afb1ba;font-size:11px}.difficulty-row{display:flex;justify-content:center;gap:5px;margin:13px 0}.difficulty-row span{display:flex;gap:6px;align-items:center;padding:5px 7px;background:#303138;border:1px solid #42444d;border-radius:3px;font-size:9px;color:#bfc1ca}.difficulty-row span:nth-child(1) b{color:#8fcf96}.difficulty-row span:nth-child(2) b{color:#8fc7ee}.difficulty-row span:nth-child(3) b{color:#e992a4}.difficulty-row span:nth-child(4) b{color:#c6a2fb}.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:#41434a;border:1px solid #41434a}.info-grid div{min-height:43px;padding:6px 8px;background:#292a2e;display:grid;gap:3px}.info-grid small{font-size:9px;color:#9c9fa8}.info-grid b{font-size:10px;font-weight:500;overflow:hidden;text-overflow:ellipsis}.info-grid .wide{grid-column:1 / -1}.detail-actions{display:flex;gap:7px;margin-top:11px}.detail-actions .button{flex:1}.player{margin-top:10px;min-height:70px;padding:9px 11px;display:grid;grid-template-columns:auto minmax(115px,.8fr) minmax(180px,1fr) auto auto;align-items:center;gap:14px}.player-buttons{display:flex;align-items:center;gap:8px}.player-buttons button{border:0;background:transparent;color:#d0d2d8;cursor:pointer;padding:5px}.player-buttons .play-circle{width:30px;height:30px;border-radius:50%;background:#4c5ba0;color:white}.track-info{display:grid;gap:4px;min-width:0}.track-info strong,.track-info span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.track-info strong{font-size:11px}.track-info span{font-size:9px;color:#a1a3ab}.timeline{display:flex;align-items:center;gap:8px;font-size:9px;color:#aaacb4}.timeline input{width:100%;accent-color:#8799e8}.volume{display:flex;align-items:center;gap:6px;color:#b6b8c0;font-size:9px}.volume input{width:72px;accent-color:#8799e8}.volume-value{display:inline-block;min-width:30px;text-align:right;font-variant-numeric:tabular-nums;color:#cfd1d8}.player-options{display:flex;align-items:center;gap:5px}.player-options .button{padding:6px 7px;font-size:10px}.player-options label{white-space:nowrap;font-size:9px;color:#c4c6cc}.player-options input{accent-color:#8799e8;vertical-align:middle}.status{grid-column:1/-1;color:#989ba4;border-top:1px solid #3a3c41;padding-top:7px;font-size:9px}footer{display:flex;justify-content:space-between;color:#858891;font-size:9px;padding:9px 3px 0}.online{display:inline-block;width:6px;height:6px;border-radius:50%;background:#8bc77b;margin-right:4px}.empty{padding:50px;text-align:center;color:#aeb0b8}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#36383e;border:1px solid #555862;color:#f3f3f5;border-radius:5px;padding:10px 15px;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1100px){body{padding:10px}.window{min-height:calc(100vh - 20px);padding:13px}.titlebar{align-items:flex-start;flex-direction:column}.toolbar{width:100%}.workspace{grid-template-columns:minmax(0,1.4fr) minmax(260px,.8fr)}.player{grid-template-columns:auto minmax(110px,.7fr) minmax(150px,1fr);gap:9px}.volume,.player-options{grid-row:2}.status{grid-column:1/-1}.player{padding-bottom:7px}}
@media(max-width:720px){body{padding:0;background:#202124}.window{min-height:100vh;border:0;border-radius:0;padding:10px}.titlebar{padding-bottom:10px}.title-group h1{font-size:17px}.toolbar{display:grid;grid-template-columns:1fr 1fr}.toolbar .button{font-size:10px;padding:7px}.toolbar .secondary{display:none}.path-row{font-size:9px}.search-row{gap:6px}.search-row label{font-size:11px}.search-row input{font-size:10px}.search-row .filter{display:none}.workspace{display:flex;flex-direction:column;min-height:0}.song-panel{min-height:350px}.table-wrap{min-height:280px}.detail-panel{order:-1}.detail-content{display:grid;grid-template-columns:90px 1fr;column-gap:12px;padding:9px}.cover-stage{grid-row:1 / 5;height:90px;width:90px}.cover-placeholder{width:70px;height:70px;border-width:2px}.cover-ring{inset:6px}.cover-inner{font-size:8px}.cover-inner b{font-size:19px}.cover-placeholder>span{bottom:7px;font-size:5px}.song-name{text-align:left;margin:4px 0 0;align-self:end;font-size:14px}.song-artist{text-align:left;align-self:start}.difficulty-row{grid-column:2;justify-content:flex-start;margin:5px 0}.difficulty-row span{padding:3px 4px;font-size:7px}.difficulty-row span b{font-size:8px}.info-grid{grid-column:1/-1;margin-top:8px}.detail-actions{grid-column:1/-1;margin-top:7px}.detail-actions .button{padding:7px}.player{grid-template-columns:auto 1fr;gap:7px;margin-top:8px}.player-buttons{grid-column:1}.track-info{grid-column:2}.timeline{grid-column:1/-1}.volume{grid-column:1}.player-options{grid-column:2;justify-content:flex-end;flex-wrap:wrap}.status{grid-column:1/-1}footer{font-size:8px}footer span:last-child{max-width:55%;text-align:right}}

.cover-placeholder.has-cover{background-size:cover;background-position:center;border-radius:5px;width:100%;height:100%;border:0;box-shadow:none}.cover-placeholder.has-cover .cover-ring,.cover-placeholder.has-cover .cover-inner,.cover-placeholder.has-cover>span{display:none}

@media(max-width:1100px){.workspace{grid-template-columns:minmax(0,1fr) 280px}.player{grid-template-columns:auto minmax(100px,.7fr) minmax(150px,1fr)}}@media(max-width:720px){.workspace{display:flex;flex-direction:column}.song-panel{min-width:0}.table-wrap table{min-width:1166px}}

/* Keep the full tool in the viewport; only the song table scrolls. */
body{padding:8px;overflow:hidden}.window{height:calc(100vh - 16px);min-height:0;overflow:hidden}.workspace{height:0;min-height:0;flex:1;grid-template-columns:minmax(0,1fr) 6px 300px;overflow:hidden}.song-panel,.detail-panel{min-height:0;height:100%;overflow:hidden}.table-wrap{min-height:0;overflow:auto}.panel-splitter{width:6px;cursor:col-resize;background:transparent;touch-action:none}.panel-splitter:hover,.panel-splitter:active{background:#6573b5}.detail-content{overflow:auto;min-height:0}.cover-stage{height:auto;min-height:0;width:100%;display:flex;align-items:center;justify-content:center;background:transparent;border:0;overflow:hidden}.cover-placeholder{position:relative;flex:none;width:258px;height:258px;max-width:100%;aspect-ratio:1/1;border-radius:5px;resize:none;overflow:hidden}.cover-placeholder.has-cover{width:258px;height:258px;max-width:100%;aspect-ratio:1/1;border-radius:5px;resize:none;overflow:hidden;flex:none}.cover-resize-grip{position:absolute;right:0;bottom:0;width:24px;height:24px;border:1px solid #d9def4;border-radius:5px 0 0 0;background:#303b68dd;color:#fff;font-size:12px;cursor:nwse-resize;touch-action:none;z-index:2}.info-grid{grid-template-columns:1fr 1fr}.resize-tip{font-size:9px;color:#8f929c}.table-wrap table{min-width:1166px}audio{display:none}
@media(max-width:1100px){.workspace{grid-template-columns:minmax(0,1fr) 6px 280px}}
@media(max-width:720px){body{overflow:auto}.window{height:auto;min-height:100vh;overflow:visible}.workspace{height:auto;min-height:0;overflow:visible}.panel-splitter{display:none}.song-panel,.detail-panel{height:auto;overflow:visible}.detail-content{overflow:visible}.cover-stage{grid-row:1 / 5;width:90px;height:90px;overflow:hidden}.cover-placeholder,.cover-placeholder.has-cover{width:70px!important;height:70px!important;min-width:70px;min-height:70px}.cover-resize-grip{width:17px;height:17px;font-size:9px}.table-wrap{height:48vh;min-height:280px;flex:none}.song-panel{min-height:0}.table-footer{min-height:32px}}

/* Wide desktop layout and reliable, browser-persisted splitters. */
body{padding:0;background:#18191c}.window{width:100vw;max-width:none;height:100vh;min-height:0;margin:0;border:0;border-radius:0;padding:12px 14px 8px;box-shadow:none}.workspace{grid-template-columns:minmax(320px,1fr) 8px 680px;gap:0}.song-panel{margin-right:10px}.detail-panel{margin-left:10px}.panel-splitter{position:relative;z-index:3;width:8px;min-width:8px;margin:0 -1px;touch-action:none;user-select:none}.table-wrap table{table-layout:fixed}.table-wrap th{position:relative;overflow:hidden;text-overflow:ellipsis}.resize-grip{position:absolute;right:-2px;top:0;bottom:0;width:10px;cursor:col-resize;touch-action:none;z-index:3}.resize-grip:after{content:"";position:absolute;right:4px;top:25%;height:50%;border-right:1px solid transparent}.resize-grip:hover:after,.resize-grip.dragging:after{border-color:#aab7ff}.click-mode-control{display:flex;align-items:center;gap:7px;color:#d5d7df;padding:0 5px;white-space:nowrap}.click-mode-control select,.modal select{background:#292a2e;color:#eee;border:1px solid #50535a;border-radius:4px;padding:7px 9px}.cover-stage{width:100%;overflow:auto;justify-content:flex-start;min-height:640px}.cover-placeholder,.cover-placeholder.has-image{width:640px!important;height:640px!important;min-width:640px;min-height:640px;max-width:none;aspect-ratio:1/1;border-radius:4px;resize:none}.cover-placeholder img{display:block;width:100%;height:100%;object-fit:contain}.cover-placeholder.has-image{background:transparent;border:0;box-shadow:none}.info-grid b{white-space:normal;word-break:break-word}.diff{display:flex;align-items:center;gap:3px;overflow:hidden}.level-chip{display:inline-flex;align-items:center;gap:3px;padding:2px 4px;border-radius:3px;background:#303138;font-size:10px;white-space:nowrap}.level-chip i{font-style:normal;font-size:8px;color:#aeb2bd}.level-chip.basic{border-bottom:2px solid #69b976}.level-chip.advanced{border-bottom:2px solid #62bce8}.level-chip.expert{border-bottom:2px solid #ec7586}.level-chip.master{border-bottom:2px solid #ae83f4}.level-chip.ultima{border-bottom:2px solid #f0ae53}.level-chip.worldsend{border-bottom:2px solid #e8df5b}.level-basic b{color:#8fcf96!important}.level-advanced b{color:#8fc7ee!important}.level-expert b{color:#e992a4!important}.level-master b{color:#c6a2fb!important}.level-ultima b{color:#f0ae53!important}.level-worldsend b{color:#eee66c!important}.character-browser{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(240px,.7fr);gap:10px;height:min(68vh,680px);min-height:350px}.character-list{overflow:auto;border:1px solid #3b3d42}.character-list table{min-width:0;width:100%;table-layout:fixed}.character-list td{overflow:hidden;text-overflow:ellipsis}.character-list tr{cursor:pointer}.character-list tr.selected{background:#4b59a8}.character-detail{overflow:auto;border:1px solid #3b3d42;background:#25262a;padding:14px;text-align:center}.character-detail img{width:min(100%,420px);height:420px;object-fit:contain;background:#1b1c20}.character-detail img[hidden]{display:none}.character-detail h2{font-size:17px}.character-detail p{color:#bdc0c8;margin:7px}.character-detail span{color:#8f929c;font-size:11px}.gallery-modal{width:min(1100px,94vw)}
@media(max-width:1100px){.workspace{grid-template-columns:minmax(260px,1fr) 8px 520px}.cover-stage{min-height:520px}.cover-placeholder,.cover-placeholder.has-image{width:500px!important;height:500px!important;min-width:500px;min-height:500px}}
@media(max-width:720px){body{overflow:auto}.window{width:100%;height:auto;min-height:100vh;padding:10px}.workspace{display:flex;flex-direction:column;gap:8px;height:auto;overflow:visible}.song-panel{margin:0;min-height:0}.detail-panel{margin:0;order:-1}.panel-splitter{display:none}.detail-content{overflow:auto}.cover-stage{width:100%;height:auto;min-height:0;grid-row:auto;overflow:auto}.cover-placeholder,.cover-placeholder.has-image{width:640px!important;height:640px!important;min-width:640px;min-height:640px}.click-mode-control{font-size:10px}.toolbar{align-items:center}.character-browser{grid-template-columns:1fr;height:65vh}.character-detail{display:none}}
.resize-grip,.panel-splitter{touch-action:none;user-select:none}.table-wrap td{overflow:hidden;text-overflow:ellipsis}.table-wrap th.check-col,.table-wrap td.check-col{text-align:center;padding:0}
:root{font-size:17px}.title-group h1{font-size:27px}.version{font-size:14px}.button{font-size:15px;padding:10px 14px}.search-row label,.search-row input{font-size:16px}.panel-title{font-size:16px;height:42px}.count,.detail-id{font-size:13px}.table-wrap table{font-size:15px}.table-wrap th{height:42px}.table-wrap td{height:43px;padding:6px 9px}.table-footer{font-size:13px}.resize-tip{font-size:12px}.song-name{font-size:24px}.song-artist{font-size:15px}.difficulty-row span{font-size:12px}.difficulty-row span b{font-size:13px}.info-grid small{font-size:12px}.info-grid b{font-size:14px}.detail-actions .button{font-size:14px}.player-buttons button{font-size:17px}.player-buttons .play-circle{font-size:18px;width:38px;height:38px}.track-info strong{font-size:15px}.track-info span{font-size:13px}.timeline,.volume,.player-options label,.player-options .button{font-size:13px}.status,footer{font-size:12px}.click-mode-control{font-size:15px}.click-mode-control select{font-size:15px}.level-chip{font-size:13px;padding:3px 5px}.level-chip i{font-size:10px}.level-chip.ultima{background:#080808;color:#fff;border-bottom-color:#555}.level-chip.ultima i{color:#ddd}.level-ultima{background:#080808!important;color:#fff!important}.level-ultima b{color:#fff!important}
.table-wrap th[data-key],.character-list th[data-char-key]{cursor:pointer}.character-list th[data-char-key]:hover{background:#454953}.level-chip.ultima{background:#303138;color:#eee;border-bottom:3px solid #000}.level-chip.ultima i{color:#aeb2bd}.level-chip.ultima b{color:#000}.difficulty-row .level-ultima{background:#303138!important;color:#bfc1ca!important;border-color:#42444d!important}.difficulty-row .level-ultima i{color:#bfc1ca!important}.difficulty-row .level-ultima b{color:#000!important}.character-list table{font-size:14px}.character-list th,.character-list td{font-size:14px;height:42px}.character-list th[data-char-key]{user-select:none}
.table-wrap td.diff{display:table-cell;white-space:normal;padding:6px 3px}.difficulty-chips{display:grid;grid-template-columns:repeat(var(--difficulty-count),var(--difficulty-chip-width,64px));gap:3px;width:100%;align-items:center}.level-chip{width:100%;min-width:0;justify-content:space-between;gap:2px;padding:3px 4px}.level-chip b{font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}.level-chip.ultima b{color:#eee}.table-wrap th,.table-wrap td{vertical-align:middle}
.table-wrap th:not(.check-col){white-space:normal;line-height:1.25}.table-wrap td:not(.diff){white-space:normal;overflow-wrap:anywhere;overflow:visible;text-overflow:clip;line-height:1.3}.table-wrap td.diff{overflow:visible}.table-wrap td{height:auto;min-height:43px}

/* Shared typography, responsive artwork and persistent detail actions. */
:root{font-family:"Microsoft JhengHei UI","Noto Sans TC","Meiryo","Noto Sans JP",sans-serif;font-size:16px;--muted:#b8bcc7}
button,input,select{font:inherit}
.title-group h1{font-size:24px;line-height:1.3}.version{font-size:13px;color:var(--muted)}
.titlebar{flex-wrap:wrap}.toolbar{align-items:center}.button{font-size:15px;min-height:40px;text-align:center;text-decoration:none}
.search-row input{height:40px}.search-row input::placeholder{color:#a8acb6}
.panel-title{flex-shrink:0;min-height:42px}.count,.detail-id,.table-footer{color:var(--muted);font-size:13px}
.detail-content{display:flex;flex:1;flex-direction:column;gap:0;padding:13px;overflow:auto}
.cover-stage{display:block;width:100%;height:auto;min-height:0;flex-shrink:0;overflow:hidden;border:0;background:transparent}
.cover-placeholder,.cover-placeholder.has-image,.cover-placeholder.has-cover{width:min(100%,640px)!important;height:auto!important;min-width:0;min-height:0;max-width:640px;aspect-ratio:1;margin:0 auto;border-radius:4px}
.cover-placeholder img{width:100%;height:100%;position:absolute;inset:0;object-fit:contain}.cover-placeholder img[hidden]{display:none}
.cover-placeholder.has-image .cover-ring,.cover-placeholder.has-image .cover-inner,.cover-placeholder.has-image>span{display:none}
@media(min-width:721px){.cover-placeholder,.cover-placeholder.has-image,.cover-placeholder.has-cover{width:min(100%,640px,max(200px,calc(100dvh - 520px)))!important}}
.song-name{font-size:24px;line-height:1.4;overflow-wrap:anywhere}.song-artist{font-size:15px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
.difficulty-row{display:flex;flex-wrap:wrap;gap:5px;justify-content:center;flex-shrink:0}
.difficulty-row span{min-width:78px;justify-content:space-between}.difficulty-row i{font-style:normal;font-size:12px;color:#c7cad2}.difficulty-row span b{font-size:14px;font-variant-numeric:tabular-nums}
.difficulty-row .level-ultima b{background:#d4d6dc;color:#000!important;padding:1px 4px;border-radius:2px}
.info-grid{flex-shrink:0}.info-grid small{font-size:13px;color:var(--muted)}.info-grid b{font-size:15px;line-height:1.5}
.detail-actions{flex-shrink:0;display:flex;flex-wrap:wrap;margin:0;padding:10px;background:#25262a;border-top:1px solid #41434a;gap:6px}.detail-actions .button{font-size:14px;flex:1 1 120px;padding:9px 7px}
.level-chip{padding:3px 4px;min-height:27px}.level-chip i{font-size:12px}.level-chip b{font-size:14px}.difficulty-chips{grid-template-columns:repeat(var(--difficulty-count),var(--difficulty-chip-width,78px))}
.table-wrap td{height:43px}.table-wrap td.title-cell{font-weight:600}.table-wrap:focus-visible{outline:2px solid #96a6ef;outline-offset:-2px}
.timeline{font-variant-numeric:tabular-nums;white-space:nowrap}.timeline input{min-width:40px}.track-info{gap:2px}.track-info span{color:var(--muted)}.track-info .playback-kind{font-size:12px;color:#b7c4ff}
.player{grid-template-columns:auto minmax(150px,.75fr) minmax(180px,1fr) auto auto;gap:12px}.player-options{flex-wrap:wrap;gap:5px 10px}.player-options label{font-size:13px;cursor:pointer}.player-options input{margin:0 3px 0 0}.player-buttons button{min-width:32px;min-height:38px;display:grid;place-items:center}
.status,footer{color:var(--muted)}.modal{color:#eee;background:#25262a;border:1px solid #535864;border-radius:8px;padding:22px;width:min(560px,94vw);max-height:90dvh;overflow:auto;font-size:15px;box-shadow:0 20px 70px #0008}.modal::backdrop{background:#0009}.modal header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px;font-size:18px}.close{background:transparent;border:0;color:#ddd;font-size:26px;cursor:pointer;min-width:36px}.modal label{line-height:1.6}.check-label{display:block;margin:12px 0}.modal p{line-height:1.6;color:#c6cad4}.export-progress{margin:16px 0;line-height:1.5}.gallery-modal{width:min(1100px,94vw)}.gallery-search{width:100%;padding:10px;margin-bottom:12px;background:#1d1e22;color:#eee;border:1px solid #50535a;border-radius:4px}.gallery-status{margin-top:12px;color:var(--muted)}
@media(max-width:1400px) and (min-width:721px){.player{grid-template-columns:auto minmax(120px,1fr) minmax(150px,1fr) auto}.player-options{grid-column:2 / -1;justify-content:flex-end}.status{grid-row:auto}}
@media(max-width:720px){body{overflow:auto}.window{width:100%;height:auto;min-height:100dvh;padding:10px;overflow:visible}.titlebar{align-items:flex-start;gap:12px}.title-group{min-width:0}.title-group h1{font-size:22px}.toolbar{display:flex;flex-wrap:wrap;width:100%;gap:6px}.toolbar .button{font-size:14px;padding:8px 10px}.toolbar .secondary{display:inline-block}.click-mode-control{width:100%;font-size:15px;padding:0}.click-mode-control select{flex:1}.search-row{gap:6px}.search-row label,.search-row input{font-size:15px}.search-row input{min-width:0}.workspace{height:auto;overflow:visible}.song-panel{height:52dvh;min-height:300px;order:0}.table-wrap{min-height:0}.detail-panel{height:auto;order:1}.detail-content{display:flex;padding:12px;overflow:visible}.cover-stage{width:100%;height:auto;grid-row:auto}.song-name,.song-artist{text-align:center}.difficulty-row{justify-content:center;margin:12px 0}.difficulty-row span{padding:5px 7px;font-size:12px}.difficulty-row span b{font-size:14px}.info-grid{margin-top:0}.detail-actions{position:sticky;bottom:0}.player{grid-template-columns:auto minmax(0,1fr);gap:10px}.timeline{grid-column:1/-1}.volume{grid-column:1}.player-options{grid-column:2;justify-content:flex-end}.status{grid-column:1/-1}.character-browser{display:flex;flex-direction:column;height:70dvh;min-height:0}.character-list{flex:1;min-height:180px}.character-detail{display:block;max-height:32dvh;flex-shrink:0}.character-detail img{height:160px}.modal{padding:15px}.modal header{font-size:16px}.panel-title{gap:8px}footer{font-size:12px}}

.mobile-topbar,.mobile-drawer,.mobile-drawer-backdrop,.mini-cover-button,.mobile-play-kind,.mobile-detail-close,.mobile-sheet-handle{display:none}
@media(max-width:720px){
:root{--mt:58px;--mp:126px}html,body{background:#15161a}body{padding:0;overflow:hidden}
.mobile-topbar{display:flex;position:fixed;z-index:80;inset:0 0 auto;height:var(--mt);padding:0 14px;align-items:center;justify-content:space-between;background:#202126ee;border-bottom:1px solid #3a3c43;backdrop-filter:blur(16px)}
.mobile-app-title{display:flex;align-items:center;gap:9px}.mobile-app-title>div{display:grid}.mobile-app-title strong{font-size:15px}.mobile-app-title small{font-size:10px;color:#969aa5}.mobile-app-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;background:#5969b3;font-weight:800}.mobile-icon-button{border:0;background:transparent;color:#fff;font-size:25px;min-width:42px;min-height:42px}
.mobile-drawer-backdrop{display:block;position:fixed;z-index:89;inset:0;background:#0009;opacity:0;pointer-events:none;transition:.2s}.mobile-drawer-backdrop.open{opacity:1;pointer-events:auto}
.mobile-drawer{display:flex;position:fixed;z-index:90;left:0;right:0;top:0;flex-direction:column;gap:18px;padding:14px 16px 24px;background:#24252b;border-radius:0 0 18px 18px;box-shadow:0 20px 60px #000b;transform:translateY(-105%);transition:.24s}.mobile-drawer.open{transform:translateY(0)}
.mobile-drawer-head{display:flex;align-items:center;justify-content:space-between;font-size:18px}.mobile-search,.mobile-menu-field{display:grid;gap:7px;color:#b9bdc8;font-size:12px}.mobile-search input,.mobile-menu-field select{height:46px;border:1px solid #51545d;border-radius:10px;background:#191a1f;color:#fff;padding:0 12px;font-size:15px}.mobile-menu-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.mobile-menu-actions .button{font-size:12px;padding:7px 3px}
.window{position:fixed;inset:var(--mt) 0 var(--mp);width:auto;height:auto;min-height:0;padding:0;overflow:hidden;border:0;border-radius:0}.titlebar,.search-row,footer{display:none!important}.workspace{display:block;height:100%;overflow:hidden}.song-panel{height:100%!important;min-height:0;border:0}.song-panel>.panel-title{height:44px;padding:0 14px}.song-panel>.panel-title span:after{content:" · ☰ 搜尋 / 選單";font-size:10px;color:#8f939e;font-weight:400}
.table-wrap{height:calc(100% - 76px);min-height:0;overflow:auto}.table-wrap table{width:100%!important;min-width:0!important;table-layout:fixed!important}.table-wrap colgroup,.table-wrap thead{display:none}.table-wrap tbody{display:block}.table-wrap tr{display:grid;grid-template-columns:38px minmax(0,1fr) auto;grid-template-rows:auto auto;min-height:66px;padding:10px 10px 9px 5px;border-bottom:1px solid #30323a;background:#1d1e23!important}.table-wrap tr:nth-child(even){background:#202126!important}.table-wrap tr.selected{background:#33394f!important;box-shadow:inset 3px 0 #8fa0ef}
.table-wrap td{display:none!important;border:0!important;height:auto!important;min-height:0!important;padding:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.table-wrap td.check-col{display:grid!important;grid-column:1;grid-row:1/3;place-items:center}.table-wrap td:nth-child(3){display:block!important;grid-column:2;grid-row:1;font-size:14px;font-weight:600}.table-wrap td:nth-child(4){display:block!important;grid-column:2;grid-row:2;font-size:11px;color:#aeb2bd}.table-wrap td:nth-child(7){display:block!important;grid-column:3;grid-row:1/3;align-self:center;margin-left:7px;overflow:visible!important}.difficulty-chips{display:flex!important;width:auto!important}.level-chip{display:none!important}.level-chip:last-child{display:flex!important;width:auto!important;min-width:46px}.level-chip i{font-size:8px}.level-chip b{font-size:12px}.table-footer{height:32px;font-size:10px}
.detail-panel{display:flex!important;position:fixed;z-index:100;inset:7dvh 0 0;height:93dvh!important;flex-direction:column;background:#24252a;border-radius:18px 18px 0 0;box-shadow:0 -18px 60px #000c;transform:translateY(105%);transition:.28s;overflow:hidden}.detail-panel.mobile-open{transform:translateY(0)}.mobile-sheet-handle{display:block;width:42px;height:4px;border-radius:3px;background:#6c6f78;margin:8px auto 2px}.mobile-detail-close{display:block;margin-left:auto;border:0;background:transparent;color:#ddd;font-size:25px}.detail-content{display:flex!important;flex:1;overflow:auto!important;padding:12px 18px}.cover-stage{max-width:310px;margin:auto}.cover-placeholder,.cover-placeholder.has-image,.cover-placeholder.has-cover{width:min(72vw,310px)!important}.detail-actions{position:static!important}
.player{display:grid;position:fixed;z-index:70;inset:auto 0 0;height:var(--mp);margin:0;padding:8px 10px;grid-template-columns:46px minmax(0,1fr) auto;grid-template-rows:42px 27px 31px;gap:2px 9px;background:#25262bf2;border:0;border-top:1px solid #4b4e57;border-radius:0;backdrop-filter:blur(18px)}
.mini-cover-button{display:grid;grid-column:1;grid-row:1;place-items:center;width:42px;height:42px;padding:0;border:0;border-radius:6px;overflow:hidden;background:#343741;color:#bfc6e8;font-weight:800}.mini-cover-button img{width:100%;height:100%;object-fit:cover}.mini-cover-button img[hidden],.mini-cover-placeholder.hidden{display:none}.track-info{grid-column:2;grid-row:1;align-self:center}.track-info strong{font-size:13px}.track-info span{font-size:10px}.player-buttons{grid-column:3;grid-row:1;gap:3px}.player-buttons #stop{display:none}.player-buttons button{min-width:29px;min-height:34px;padding:2px}.player-buttons .play-circle{width:34px;height:34px}.timeline{grid-column:1/4;grid-row:2;font-size:9px}.mobile-play-kind{display:flex;grid-column:1/2;grid-row:3;gap:3px;align-items:center}.mobile-mode-button{height:27px;padding:0 6px;border:1px solid #4c4f58;border-radius:7px;background:#303138;color:#c8cbd3;font-size:9px;white-space:nowrap}.mobile-mode-button.active{background:#5667b0;color:#fff}.volume{display:none!important}.player-options{grid-column:2/4!important;grid-row:3!important;display:flex!important;justify-content:flex-end!important;flex-wrap:nowrap!important;gap:4px!important}.player-options label{font-size:9px!important}.player-options input{width:12px;height:12px}.status{display:none}.toast{z-index:130;bottom:calc(var(--mp) + 12px);max-width:calc(100vw - 24px)}
}

/* ===== Mobile v3: compact list metadata ===== */
@media(max-width:720px){
  .mobile-menu-actions{display:none!important}

  /* Header: 歌曲列表 [版本▼] */
  .song-panel>.panel-title{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px;
  }
  .song-panel>.panel-title span:after{content:""!important}
  .mobile-list-meta{display:block;margin-left:auto}
  .mobile-list-meta select{
    height:30px;
    min-width:82px;
    padding:0 26px 0 10px;
    border:1px solid #4d5059;
    border-radius:7px;
    background:#2b2d34;
    color:#e9eaf0;
    font-size:12px;
    outline:none;
  }

  /* Mobile does not use MP3-selection checkboxes. */
  .table-wrap tr{
    grid-template-columns:minmax(0,1fr) auto!important;
    padding-left:14px!important;
  }
  .table-wrap td.check-col{display:none!important}
  .table-wrap td:nth-child(3){grid-column:1!important}
  .table-wrap td:nth-child(4){grid-column:1!important}

  /* Hide the old difficulty cell and replace it with selected compact metadata. */
  .table-wrap td:nth-child(7){display:none!important}
  .table-wrap tr::after{
    content:attr(data-mobile-meta);
    grid-column:2;
    grid-row:1/3;
    align-self:center;
    justify-self:end;
    max-width:112px;
    margin-left:8px;
    padding:5px 7px;
    border-radius:4px;
    background:#2c2f37;
    border-bottom:2px solid #8b70d6;
    color:#f0f1f5;
    font-size:11px;
    line-height:1.1;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
}
@media(min-width:721px){
  .mobile-list-meta{display:none!important}
}

/* ===== Mobile v4 refinements ===== */
@media(max-width:720px){
  :root{--mp:158px}

  /* No total-count footer on mobile. */
  .table-footer{display:none!important}
  .table-wrap{height:calc(100% - 44px)!important}

  /* Header controls */
  .song-panel>.panel-title{padding:0 8px 0 10px!important;gap:6px!important}
  .mobile-song-heading{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:12px}
  .mobile-id-sort{height:28px;padding:0 5px;border:0;background:transparent;color:#aeb4c5;font-size:11px;cursor:pointer}
  .mobile-list-controls{display:flex;align-items:center;gap:5px;margin-left:auto;min-width:0}
  .mobile-list-controls select{
    height:30px;min-width:0;padding:0 22px 0 7px;
    border:1px solid #4d5059;border-radius:7px;background:#2b2d34;color:#e9eaf0;
    font-size:11px;outline:none;
  }
  #mobile-list-click-mode{width:82px}
  #mobile-list-meta{width:70px}

  /* Song number at left; title/artist in the middle; selected metadata at right. */
  .table-wrap tr{
    grid-template-columns:43px minmax(0,1fr) auto!important;
    padding-left:8px!important;
  }
  .table-wrap tr::before{
    content:attr(data-mobile-id);
    grid-column:1;grid-row:1/3;align-self:center;
    color:#8f94a2;font-size:10px;text-align:center;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
  .table-wrap td:nth-child(3){grid-column:2!important}
  .table-wrap td:nth-child(4){grid-column:2!important}
  .table-wrap tr::after{grid-column:3!important;max-width:104px}

  /* 1.5x cover and a slightly taller player. */
  .player{
    height:var(--mp)!important;
    grid-template-columns:67px minmax(0,1fr) auto!important;
    grid-template-rows:67px 29px 34px!important;
    padding:9px 10px calc(8px + env(safe-area-inset-bottom))!important;
    gap:3px 10px!important;
  }
  .mini-cover-button{width:63px!important;height:63px!important;border-radius:8px!important}
  .track-info strong{font-size:14px!important}
  .track-info span{font-size:11px!important}
  .player-buttons button{min-width:32px!important;min-height:38px!important;font-size:16px!important}
  .player-buttons .play-circle{width:38px!important;height:38px!important}
  .timeline{grid-column:1/4!important}
  .mobile-play-kind{grid-column:1/2!important}
  .player-options{grid-column:2/4!important}

  /* The mobile drawer is now search-only; click behavior lives beside the song list. */
  .mobile-drawer .mobile-menu-field{display:none!important}
}
@media(max-width:390px){
  .mobile-song-heading>span{font-size:11px}
  #mobile-list-click-mode{width:76px}
  #mobile-list-meta{width:66px}
}

/* ===== Mobile v5 refinements ===== */
@media(max-width:720px){
  :root{--mp:198px}

  /* Wider top controls. */
  .mobile-list-controls{gap:5px!important}
  #mobile-list-click-mode{width:108px!important}
  #mobile-list-meta{width:86px!important}
  .mobile-meta-sort{
    display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;
    padding:0;border:1px solid #4d5059;border-radius:7px;
    background:#2b2d34;color:#e9eaf0;font-size:14px;cursor:pointer;
  }

  /* Song-number column: about half the old width. */
  .table-wrap tr{
    grid-template-columns:22px minmax(0,1fr) auto!important;
    column-gap:5px!important;
    padding-left:4px!important;
  }
  .table-wrap tr::before{font-size:9px!important;text-align:left!important}
  .mobile-id-sort{width:22px!important;padding:0!important}

  /* Bottom player: cover is now 100 × 100. */
  .player{
    height:var(--mp)!important;
    grid-template-columns:104px minmax(0,1fr) auto!important;
    grid-template-rows:104px 30px 34px!important;
    padding:8px 10px calc(8px + env(safe-area-inset-bottom))!important;
    gap:3px 10px!important;
  }
  .mini-cover-button{width:100px!important;height:100px!important;border-radius:9px!important}
  .track-info{
    grid-column:2!important;grid-row:1!important;
    align-self:center!important;justify-self:stretch!important;
    min-width:0!important;text-align:center!important;
    display:flex!important;flex-direction:column!important;align-items:center!important;
  }
  .track-info strong,.track-info span{
    display:block!important;width:100%!important;max-width:100%!important;
    text-align:center!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  }
  .track-info strong{font-size:15px!important}
  .track-info span{font-size:11px!important}
  .player-buttons{grid-column:3!important;grid-row:1!important;align-self:center!important}
  .timeline{grid-column:1/4!important;grid-row:2!important}
  .mobile-play-kind{grid-column:1/2!important;grid-row:3!important}
  .player-options{grid-column:2/4!important;grid-row:3!important}

  /* Expanded song detail: centered title/artist and its own seek bar. */
  .detail-panel .song-name,
  .detail-panel .song-artist{text-align:center!important;width:100%!important}
  .detail-panel .song-name{margin-left:auto!important;margin-right:auto!important}
  .detail-timeline{
    display:grid;grid-template-columns:38px minmax(0,1fr) 38px;
    align-items:center;gap:7px;padding:8px 14px 2px;
    font-size:10px;color:#aeb2bd;
  }
  .detail-timeline input{width:100%;min-width:0}
  .detail-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
  .detail-actions .button{width:100%!important}
}
@media(min-width:721px){
  .detail-timeline{display:none!important}
  .mobile-meta-sort{display:none!important}
}

/* ===== Mobile v6: version filter ===== */
@media(max-width:720px){
  .mobile-version-filter{
    margin-top:12px;
    border-top:1px solid rgba(255,255,255,.08);
    padding-top:8px;
  }
  .mobile-filter-title{
    width:100%;height:38px;padding:0 2px;
    display:flex;align-items:center;justify-content:space-between;
    border:0;background:transparent;color:#f0f1f5;
    font-size:13px;font-weight:600;text-align:left;cursor:pointer;
  }
  .mobile-filter-chevron{
    font-size:16px;transition:transform .18s ease;
  }
  .mobile-filter-title.collapsed .mobile-filter-chevron{transform:rotate(-90deg)}
  .mobile-filter-body{display:block}
  .mobile-filter-body.collapsed{display:none}
  .mobile-filter-all,.mobile-version-option{
    min-height:34px;display:flex;align-items:center;gap:9px;
    padding:4px 4px;color:#d9dce5;font-size:12px;cursor:pointer;
  }
  .mobile-filter-all{
    margin-bottom:4px;padding-bottom:8px;
    border-bottom:1px solid rgba(255,255,255,.07);
  }
  .mobile-filter-all input,.mobile-version-option input{
    width:16px;height:16px;margin:0;accent-color:#8b70d6;
  }
  .mobile-version-options{
    max-height:calc(100vh - 245px);
    overflow-y:auto;padding-right:3px;
  }
}

/* ===== Mobile v6.1: compact playback selector ===== */
@media(max-width:720px){
  #mobile-list-click-mode{
    width:88px!important;
    padding-left:7px!important;
    padding-right:20px!important;
  }
}

/* ===== Mobile v6.2: song-list cover only ===== */
@media(max-width:720px){
  .table-wrap tr{
    grid-template-columns:22px 44px minmax(0,1fr) auto!important;
  }
  .mobile-row-cover{
    grid-column:2;
    grid-row:1/3;
    align-self:center;
    justify-self:center;
    width:44px;
    height:44px;
    border-radius:5px;
    overflow:hidden;
    background:#2b2d34;
  }
  .mobile-row-cover img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
  }
  .mobile-row-cover.missing-cover::after{
    content:attr(data-placeholder);
    display:grid;
    place-items:center;
    width:100%;
    height:100%;
    color:#6f7480;
    font-size:12px;
  }
  .table-wrap td:nth-child(4){grid-column:3!important}
  .table-wrap td:nth-child(5){grid-column:3!important}
  .table-wrap tr::after{grid-column:4!important}
}
@media(min-width:721px){
  .mobile-row-cover{display:none!important}
}

/* ===== Mobile v6.3: cover row alignment fix ===== */
@media(max-width:720px){
  /* Slightly larger song-number column to match the taller rows with covers. */
  .table-wrap tr{
    grid-template-columns:30px 44px minmax(0,1fr) auto!important;
    column-gap:6px!important;
  }

  /* Song ID is shown only by ::before; hide the real ID cell. */
  .table-wrap td:nth-child(3){
    display:none!important;
  }

  /* Restore title + artist after the extra cover element shifted DOM positions. */
  .table-wrap td:nth-child(4){
    display:block!important;
    grid-column:3!important;
    grid-row:1!important;
    font-size:14px!important;
    font-weight:600!important;
    color:inherit!important;
  }
  .table-wrap td:nth-child(5){
    display:block!important;
    grid-column:3!important;
    grid-row:2!important;
    font-size:11px!important;
    font-weight:400!important;
    color:#aeb2bd!important;
  }

  /* Enlarge the left-side song number for the new cover-based list. */
  .table-wrap tr::before{
    font-size:12px!important;
    font-weight:600!important;
    text-align:center!important;
    color:#aeb4c5!important;
  }

  .table-wrap tr::after{
    grid-column:4!important;
  }
}

/* ===== Mobile v6.4: player/list polish ===== */
@media(max-width:720px){
  /* Top song-list toolbar: consistent controls and stronger heading. */
  .song-panel>.panel-title{
    padding:0 7px 0 6px!important;
    gap:5px!important;
  }
  .mobile-song-heading{
    gap:4px!important;
    font-size:13px!important;
    font-weight:700!important;
  }
  .mobile-song-heading>span{
    font-size:13px!important;
    font-weight:700!important;
  }
  .mobile-id-sort,
  .mobile-meta-sort{
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
    flex:0 0 30px!important;
    padding:0!important;
    display:grid!important;
    place-items:center!important;
    border:1px solid #4d5059!important;
    border-radius:8px!important;
    background:#2b2d34!important;
    color:#e9eaf0!important;
    font-size:10px!important;
    line-height:1!important;
  }
  .mobile-list-controls{
    gap:5px!important;
  }
  .mobile-list-controls select{
    height:30px!important;
    border-radius:8px!important;
    border-color:#4d5059!important;
    background:#2b2d34!important;
    font-size:11px!important;
  }
  #mobile-list-click-mode{width:88px!important}
  #mobile-list-meta{width:82px!important}

  /* Give the title more room: tighter ID/cover spacing and a lighter metadata badge. */
  .table-wrap tr{
    grid-template-columns:27px 44px minmax(0,1fr) auto!important;
    column-gap:2px!important;
    padding-left:1px!important;
    padding-right:6px!important;
  }
  .table-wrap tr::before{
    font-size:12px!important;
    font-weight:600!important;
    text-align:center!important;
  }
  .table-wrap tr::after{
    margin-left:3px!important;
    padding-left:6px!important;
    padding-right:6px!important;
    max-width:100px!important;
  }

  /* Selected song: keep the accent line, but use only a subtle background lift. */
  .table-wrap tbody tr.selected,
  .table-wrap tbody tr.selected:nth-child(odd),
  .table-wrap tbody tr.selected:nth-child(even){
    background:#272a32!important;
    box-shadow:inset 3px 0 #7f8fe8!important;
  }

  /* Playback controls: one compact control group with a larger central play button. */
  .player-buttons{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    justify-self:end!important;
    gap:3px!important;
    padding:3px!important;
    border:1px solid #3e414a!important;
    border-radius:24px!important;
    background:#1d1e23!important;
  }
  .player-buttons #previous,
  .player-buttons #next{
    width:34px!important;
    min-width:34px!important;
    height:38px!important;
    min-height:38px!important;
    padding:0!important;
    border-radius:50%!important;
    font-size:19px!important;
    color:#d5d8e2!important;
  }
  .player-buttons .play-circle{
    width:44px!important;
    min-width:44px!important;
    height:44px!important;
    min-height:44px!important;
    padding:0!important;
    border-radius:50%!important;
    font-size:20px!important;
    background:#586ab7!important;
    box-shadow:0 2px 10px #0005!important;
  }

  /* Preview/full-song controls: true two-segment switch. */
  .mobile-play-kind{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:0!important;
    width:100%!important;
    height:30px!important;
    align-self:center!important;
    overflow:hidden!important;
    border:1px solid #4c4f58!important;
    border-radius:8px!important;
    background:#2d2f35!important;
  }
  .mobile-mode-button{
    width:100%!important;
    height:100%!important;
    padding:0 4px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    color:#c8cbd3!important;
    font-size:9.5px!important;
  }
  .mobile-mode-button+ .mobile-mode-button{
    border-left:1px solid #4c4f58!important;
  }
  .mobile-mode-button.active{
    background:#5667b0!important;
    color:#fff!important;
  }

  /* Playback order radios: keep them in the player, but style them like segmented buttons. */
  .player-options{
    width:auto!important;
    height:30px!important;
    display:flex!important;
    align-items:stretch!important;
    justify-content:flex-end!important;
    justify-self:end!important;
    gap:0!important;
    overflow:hidden!important;
    border:1px solid #4c4f58!important;
    border-radius:8px!important;
    background:#2d2f35!important;
  }
  .player-options label{
    position:relative!important;
    height:28px!important;
    min-width:0!important;
    margin:0!important;
    padding:0 7px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    border:0!important;
    background:transparent!important;
    color:#c8cbd3!important;
    font-size:9.5px!important;
    line-height:1!important;
    white-space:nowrap!important;
    cursor:pointer!important;
  }
  .player-options label+label{
    border-left:1px solid #4c4f58!important;
  }
  .player-options input{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    opacity:0!important;
    pointer-events:none!important;
  }
  .player-options label:has(input:checked){
    background:#5667b0!important;
    color:#fff!important;
  }
}

@media(max-width:390px){
  .song-panel>.panel-title{padding-left:4px!important;padding-right:4px!important}
  .mobile-song-heading{gap:3px!important}
  .mobile-song-heading>span{font-size:12px!important}
  #mobile-list-click-mode{width:82px!important}
  #mobile-list-meta{width:74px!important}
  .player-options label{padding-left:5px!important;padding-right:5px!important;font-size:9px!important}
}

/* ===== Mobile v6.5: instant mode feedback, larger time text, larger detail cover ===== */
@media(max-width:720px){
  .player .timeline{
    gap:6px!important;
    font-size:12px!important;
  }
  .player .timeline #elapsed,
  .player .timeline #total{
    min-width:38px!important;
    font-size:12px!important;
    font-weight:500!important;
    line-height:1!important;
    font-variant-numeric:tabular-nums!important;
  }
  .player .timeline #elapsed{text-align:left!important}
  .player .timeline #total{text-align:right!important}
  .player .timeline #seek{
    flex:1 1 auto!important;
    width:auto!important;
    min-width:0!important;
  }

  .detail-panel.mobile-open .detail-content{
    padding-left:6px!important;
    padding-right:6px!important;
  }
  .detail-panel.mobile-open .cover-stage{
    width:100%!important;
    max-width:none!important;
    margin:0 auto!important;
    overflow:visible!important;
  }
  .detail-panel.mobile-open .cover-placeholder,
  .detail-panel.mobile-open .cover-placeholder.has-image,
  .detail-panel.mobile-open .cover-placeholder.has-cover{
    width:min(calc(100vw - 12px),520px)!important;
    max-width:calc(100vw - 12px)!important;
    height:auto!important;
    min-width:0!important;
    min-height:0!important;
    aspect-ratio:1/1!important;
    margin:0 auto!important;
  }
}

/* ===== Mobile v6.6: full song IDs + ordered two-column version filter ===== */
@media(max-width:720px){
  /* Keep four-digit song IDs fully visible without using ellipsis. */
  .table-wrap tr{
    grid-template-columns:36px 44px minmax(0,1fr) auto!important;
    column-gap:3px!important;
  }
  .table-wrap tr::before{
    width:36px!important;
    min-width:36px!important;
    max-width:none!important;
    overflow:visible!important;
    text-overflow:clip!important;
    white-space:nowrap!important;
    font-size:11.5px!important;
    letter-spacing:-0.25px!important;
    text-align:center!important;
  }

  /* Version filter: two neat columns, row-by-row in version chronology. */
  .mobile-version-options{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    column-gap:8px!important;
    row-gap:2px!important;
    align-items:center!important;
  }
  .mobile-version-option{
    min-width:0!important;
    min-height:34px!important;
    margin:0!important;
    padding:4px 3px!important;
    gap:7px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
  }
  .mobile-version-option span{
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
}


/* ===== V6.15 desktop filter panel ===== */
@media(min-width:721px){
  /* Desktop song-list header: keep only "歌曲列表". */
  .song-panel>.panel-title .mobile-list-controls{
    display:none!important;
  }
  .song-panel>.panel-title .mobile-id-sort{
    display:none!important;
  }
  .song-panel>.panel-title .mobile-song-heading{
    display:flex!important;
    align-items:center!important;
    font-size:inherit!important;
    font-weight:600!important;
  }

  .desktop-filter-wrap{
    position:relative;
    flex:0 0 auto;
  }
  .desktop-filter-button{
    min-width:72px;
  }
  .desktop-filter-button.active{
    border-color:#8392d6;
    background:#3b4469;
    color:#f1f3ff;
  }
  .desktop-filter-popover{
    position:absolute;
    top:calc(100% + 7px);
    right:0;
    z-index:80;
    width:min(720px,calc(100vw - 48px));
    max-height:min(680px,calc(100vh - 150px));
    overflow:auto;
    padding:12px;
    border:1px solid #555a66;
    border-radius:8px;
    background:#23252a;
    box-shadow:0 16px 46px #0009;
  }
  .desktop-filter-popover[hidden]{
    display:none!important;
  }
  .desktop-filter-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:1px 2px 10px;
  }
  .desktop-filter-head strong{
    font-size:14px;
    color:#f0f1f5;
  }

  /* Each category is its own framed box. */
  .desktop-filter-group{
    min-width:0;
    margin:0 0 11px;
    padding:10px 11px 11px;
    border:1px solid #474b55;
    border-radius:7px;
    background:#292b30;
  }
  .desktop-filter-group:last-child{
    margin-bottom:0;
  }
  .desktop-filter-group legend{
    padding:0 7px;
    color:#e7e9ef;
    font-size:12px;
    font-weight:600;
  }
  .desktop-filter-note{
    margin:-1px 0 8px;
    color:#9399a7;
    font-size:10px;
  }
  .desktop-filter-options{
    display:grid;
    gap:5px 8px;
  }
  .desktop-version-options{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .desktop-difficulty-options{
    grid-template-columns:repeat(8,minmax(48px,1fr));
  }
  .desktop-genre-options{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .desktop-filter-option{
    display:flex;
    align-items:center;
    gap:6px;
    min-width:0;
    min-height:29px;
    padding:4px 7px;
    border:1px solid #41454e;
    border-radius:5px;
    background:#25272c;
    color:#dadde5;
    font-size:11px;
    cursor:pointer;
  }
  .desktop-filter-option:hover{
    background:#30333a;
    border-color:#555b68;
  }
  .desktop-filter-option input{
    width:14px;
    height:14px;
    margin:0;
    flex:0 0 auto;
    accent-color:#8392d6;
  }
  .desktop-filter-option span{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
}

/* Desktop filter is intentionally hidden on phone layout. */
@media(max-width:720px){
  .desktop-filter-wrap{
    display:none!important;
  }
}

/* ===== V6.16: desktop filter readability ===== */
@media(min-width:721px){
  .desktop-filter-popover{
    width:min(900px,calc(100vw - 36px))!important;
  }

  .desktop-filter-head-actions{
    display:flex;
    align-items:center;
    gap:12px;
    flex:0 0 auto;
  }
  .desktop-filter-head-actions .text-button{
    padding:4px 2px;
    white-space:nowrap;
  }

  /* 版本：改為自動欄寬，優先完整顯示字串，不再用 ... 省略。 */
  .desktop-version-options{
    grid-template-columns:repeat(auto-fit,minmax(155px,1fr))!important;
  }

  /* 難度：每個整數都有足夠空間顯示數字。 */
  .desktop-difficulty-options{
    grid-template-columns:repeat(auto-fit,minmax(64px,1fr))!important;
  }

  /* 分類通常字較長，欄位給更多寬度。 */
  .desktop-genre-options{
    grid-template-columns:repeat(auto-fit,minmax(210px,1fr))!important;
  }

  .desktop-filter-option{
    min-height:32px!important;
    height:auto!important;
    overflow:visible!important;
  }

  .desktop-filter-option span{
    display:block!important;
    flex:1 1 auto!important;
    min-width:0!important;
    overflow:visible!important;
    text-overflow:clip!important;
    white-space:normal!important;
    word-break:break-word!important;
    line-height:1.25!important;
    color:#eef0f5!important;
  }

  .desktop-version-options .desktop-filter-option span,
  .desktop-genre-options .desktop-filter-option span{
    text-align:left!important;
  }

  .desktop-difficulty-options .desktop-filter-option{
    justify-content:center!important;
  }
  .desktop-difficulty-options .desktop-filter-option span{
    flex:0 0 auto!important;
    min-width:18px!important;
    text-align:center!important;
    white-space:nowrap!important;
    font-weight:600!important;
    color:#f4f5f8!important;
  }
}

/* ===== V6.17: desktop filter checkbox/layout + filtering fix ===== */
@media(min-width:721px){
  /* Critical override: these checkboxes are descendants of .search-row.
     Prevent the search input rule from making them 100px+ wide. */
  .search-row .desktop-filter-option input[type="checkbox"]{
    appearance:auto!important;
    -webkit-appearance:checkbox!important;
    width:15px!important;
    height:15px!important;
    min-width:15px!important;
    max-width:15px!important;
    min-height:15px!important;
    padding:0!important;
    margin:0!important;
    flex:0 0 15px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    accent-color:#8392d6!important;
  }

  .desktop-filter-option{
    display:grid!important;
    grid-template-columns:18px minmax(0,1fr)!important;
    align-items:center!important;
    column-gap:7px!important;
    min-width:0!important;
    padding:6px 8px!important;
  }

  .desktop-filter-option span{
    min-width:0!important;
    width:auto!important;
    max-width:none!important;
    overflow:visible!important;
    text-overflow:clip!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
    line-height:1.2!important;
  }

  /* Version labels must stay on one line. */
  .desktop-version-options{
    grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;
  }
  .desktop-version-options .desktop-filter-option span{
    white-space:nowrap!important;
    text-align:left!important;
  }

  /* Difficulty values stay centered and fully visible. */
  .desktop-difficulty-options{
    grid-template-columns:repeat(auto-fit,minmax(68px,1fr))!important;
  }
  .desktop-difficulty-options .desktop-filter-option{
    grid-template-columns:18px auto!important;
    justify-content:center!important;
  }
  .desktop-difficulty-options .desktop-filter-option span{
    white-space:nowrap!important;
    text-align:center!important;
    font-weight:600!important;
  }

  /* Genre labels can wrap at spaces only when genuinely necessary. */
  .desktop-genre-options{
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;
  }
  .desktop-genre-options .desktop-filter-option span{
    white-space:normal!important;
    overflow-wrap:break-word!important;
    text-align:left!important;
  }
}


/* ===== V7.0: CHUNITHM / ONGEKI machine switch ===== */
.machine-switch{
  display:flex;
  align-items:center;
  padding:3px;
  gap:2px;
  border:1px solid #4c505a;
  border-radius:8px;
  background:#282a30;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.015);
}
.machine-switch button{
  border:0;
  border-radius:6px;
  min-height:30px;
  padding:0 13px;
  background:transparent;
  color:#9fa4b1;
  font-size:11px;
  font-weight:600;
  cursor:pointer;
}
.machine-switch button:hover{color:#e7e9ef;background:#33363d}
.machine-switch button.active{color:#fff;background:#5667b0;box-shadow:0 1px 5px #0006}
.desktop-machine-switch{margin-left:auto}
.level-chip.lunatic{border-bottom:2px solid #ef66aa}
.level-lunatic b{color:#f08bbd!important}

@media(max-width:720px){
  .mobile-machine-switch{
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    padding:2px;
    gap:1px;
  }
  .mobile-machine-switch button{
    min-height:27px;
    padding:0 8px;
    font-size:9px;
  }
  .mobile-app-title{max-width:112px}
  .mobile-app-title strong{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .desktop-machine-switch{display:none!important}
}
@media(min-width:721px){
  .mobile-machine-switch{display:none!important}
}

/* ===== V7.4: client favorites + resume ===== */
.favorite-filter-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
}
.favorite-filter-button.active,
.favorite-action.active{
  border-color:#b97a91;
  background:#513340;
  color:#ffd9e6;
}
.favorite-filter-count{
  min-width:18px;
  height:18px;
  padding:0 5px;
  display:inline-grid;
  place-items:center;
  border-radius:10px;
  background:#1f2024;
  color:#c7c9d1;
  font-size:9px;
  font-variant-numeric:tabular-nums;
}
.favorite-row-button{
  width:22px;
  height:22px;
  margin:0 5px 0 -3px;
  padding:0;
  border:0;
  background:transparent;
  color:#d58aa4;
  font-size:16px;
  line-height:1;
  cursor:pointer;
  vertical-align:middle;
}
.favorite-row-button:hover{
  color:#ffb0ca;
  transform:scale(1.08);
}
.song-title-text{
  vertical-align:middle;
}
.favorite-action:disabled{
  opacity:.45;
  cursor:default;
}
.mobile-favorite-filter{
  width:100%;
  margin:2px 0 10px;
}
@media(max-width:720px){
  .search-row>.favorite-filter-button{display:none}
  .favorite-row-button{
    width:20px;
    height:20px;
    margin-left:-2px;
    margin-right:3px;
    font-size:15px;
  }
  .detail-actions{
    display:grid!important;
    grid-template-columns:auto 1fr 1fr!important;
  }
  .detail-actions .favorite-action{
    min-width:66px;
  }
}
@media(min-width:721px){
  .mobile-favorite-filter{display:none}
}

/* ===== V7.5: favorite heart beside song ID ===== */
.id-cell{
  display:flex;
  align-items:center;
  gap:4px;
  white-space:nowrap;
}
.song-id-text{
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
  overflow-wrap:normal;
  flex-shrink:0;
}
.id-cell .favorite-row-button{
  flex:0 0 auto;
  margin:0;
}

@media(max-width:720px){
  /* Mobile: show the real ID cell so the heart can sit directly beside the ID. */
  .table-wrap tr{
    grid-template-columns:58px 44px minmax(0,1fr) auto!important;
    column-gap:3px!important;
  }
  .table-wrap tr::before{
    content:none!important;
    display:none!important;
  }
  .table-wrap td:nth-child(3){
    display:flex!important;
    grid-column:1!important;
    grid-row:1/3!important;
    align-items:center!important;
    justify-content:center!important;
    gap:2px!important;
    width:58px!important;
    min-width:58px!important;
    overflow:visible!important;
    color:#aeb4c5!important;
    font-size:11px!important;
    font-weight:600!important;
    white-space:nowrap!important;
  }
  .table-wrap td:nth-child(3) .song-id-text{
    min-width:0;
    letter-spacing:-.2px;
  }
  .table-wrap td:nth-child(3) .favorite-row-button{
    width:18px!important;
    height:22px!important;
    min-width:18px!important;
    margin:0!important;
    padding:0!important;
    font-size:16px!important;
    line-height:1!important;
  }
  .mobile-row-cover{
    grid-column:2!important;
    grid-row:1/3!important;
  }
  .table-wrap td:nth-child(4){
    grid-column:3!important;
    grid-row:1!important;
  }
  .table-wrap td:nth-child(5){
    grid-column:3!important;
    grid-row:2!important;
  }
  .table-wrap tr::after{
    grid-column:4!important;
  }
}

/* SDVX chart palettes, based on KONAMI difficulty badges. */
.level-chip.sdvx-nov,.level-sdvx-nov {color:#bc92ff!important;border-color:#9a6cff!important;background:#473365!important}
.level-chip.sdvx-exh,.level-sdvx-exh {color:#ffaaaa!important;border-color:#ff4b4b!important;background:#652c33!important}
.level-chip.sdvx-inf,.level-sdvx-inf {color:#fff!important;border-color:#cfb6ff!important;background:linear-gradient(110deg,#a73b61,#927127,#287a57,#37669b,#773f93)!important}
.level-chip.sdvx-grv,.level-sdvx-grv {color:#ffd399!important;border-color:#ff9a2f!important;background:#63411c!important}
.level-chip.sdvx-hvn,.level-sdvx-hvn {color:#c4edff!important;border-color:#4da6ff!important;background:#214e76!important}
.level-chip.sdvx-vvd,.level-sdvx-vvd {color:#ffc3e7!important;border-color:#ff69b4!important;background:#68264c!important}
.level-chip.sdvx-nbl,.level-sdvx-nbl {color:#bfffd0!important;border-color:#63d66f!important;background:#245833!important}
.level-chip.sdvx-mxm,.level-sdvx-mxm,.level-chip.sdvx-ult,.level-sdvx-ult,.level-chip.sdvx-fe,.level-sdvx-fe {color:#fff!important;border-color:#eee!important;background:#555!important}
.status-removed,#detail-info b {white-space:pre-line}
.sdvx-cover-options {display:flex;gap:8px;align-items:center;justify-content:center;margin:8px 0 14px;color:#d7dce5;font-size:13px}
.sdvx-cover-options[hidden] {display:none}
#cover.long-cover {width:100%!important;aspect-ratio:auto;min-height:100px;height:auto!important;border-radius:8px}
#cover.long-cover img {position:relative;width:100%;height:auto;object-fit:contain}
.game-badge {display:inline-block;margin-left:8px;font-size:10px;opacity:.7;border:1px solid #626975;border-radius:4px;padding:1px 4px}
.detail-actions {flex-wrap:wrap}
[hidden] {display:none!important}
@media(max-width:760px) {
  .mobile-topbar {flex-wrap:wrap;height:auto;min-height:64px;padding-bottom:8px}
  .mobile-machine-switch {display:flex;order:3;width:100%;justify-content:space-between;margin-top:5px}
  .mobile-machine-switch button {flex:1;white-space:nowrap;padding:7px 8px;font-size:12px}
  .mobile-topbar>.mobile-icon-button {margin-left:auto}
  .status-removed {white-space:pre-line!important}
  .detail-actions {display:flex;gap:6px}
  .detail-actions .button {flex:1;padding:9px 5px;font-size:11px;white-space:nowrap}
}
/* SDVX ADV is yellow; EXCEED is cyan. Keep other machines' palettes intact. */
.level-chip.sdvx-adv,.level-sdvx-adv {color:#fff0a0!important;border-color:#ffd23f!important;background:#645519!important}
.level-chip.sdvx-xcd,.level-sdvx-xcd {color:#a8fff4!important;border-color:#50e0cf!important;background:#1c605b!important}
.difficulty-row [class*="level-sdvx-"] b,.level-chip[class*="sdvx-"] i {color:inherit!important}
@media(max-width:720px) {
  :root {--mt:98px}
  .mobile-topbar {height:var(--mt);min-height:var(--mt);padding-top:5px;gap:0}
  .detail-actions {grid-template-columns:1fr 1fr 1fr!important}
  .table-wrap tr::after {white-space:pre-line!important}
  .table-wrap tr[data-mobile-difficulty="sdvx-nov"]::after {border-color:#9a6cff;color:#bc92ff}
  .table-wrap tr[data-mobile-difficulty="sdvx-adv"]::after {border-color:#ffd23f;color:#fff0a0}
  .table-wrap tr[data-mobile-difficulty="sdvx-exh"]::after {border-color:#ff4b4b;color:#ffaaaa}
  .table-wrap tr[data-mobile-difficulty="sdvx-inf"]::after {background:linear-gradient(110deg,#a73b61,#927127,#287a57,#37669b,#773f93);border-color:#cfb6ff}
  .table-wrap tr[data-mobile-difficulty="sdvx-grv"]::after {border-color:#ff9a2f;color:#ffd399}
  .table-wrap tr[data-mobile-difficulty="sdvx-hvn"]::after {border-color:#4da6ff;color:#c4edff}
  .table-wrap tr[data-mobile-difficulty="sdvx-vvd"]::after {border-color:#ff69b4;color:#ffc3e7}
  .table-wrap tr[data-mobile-difficulty="sdvx-xcd"]::after {border-color:#50e0cf;color:#a8fff4}
  .table-wrap tr[data-mobile-difficulty="sdvx-nbl"]::after {border-color:#63d66f;color:#bfffd0}
  .table-wrap tr[data-mobile-difficulty="sdvx-mxm"]::after {border-color:#fff;color:#fff}
}
@media(max-width:720px) {
  .mobile-machine-switch {position:static;left:auto;transform:none}
  .mobile-app-title {max-width:260px}
  .detail-panel {inset:var(--mt) 0 0;height:calc(100dvh - var(--mt))!important}
}

/* V8.1: character gallery temporarily hidden */
#characters{display:none!important}

/* ===== V8.2 playback / SDVX cover browser / SDVX no-category ===== */
.sdvx-other-covers{
  align-self:flex-start;
  margin:10px 0 2px;
  min-height:34px;
  padding:6px 10px;
}
.sdvx-other-covers[hidden]{display:none!important}

.sdvx-cover-dialog{
  --sdvx-cover-size:300px;
  width:min(1500px,98vw)!important;
  max-width:98vw;
}
.sdvx-cover-dialog header>div{
  min-width:0;
  display:grid;
  gap:3px;
}
.sdvx-cover-dialog header small{
  color:#9fa4af;
  font-size:11px;
  font-weight:400;
}
.sdvx-cover-toolbar{
  display:flex;
  align-items:center;
  gap:10px;
  margin:4px 2px 12px;
  color:#cfd3dc;
  font-size:12px;
}
.sdvx-cover-toolbar label{
  white-space:nowrap;
}
.sdvx-cover-toolbar input[type="range"]{
  width:min(360px,42vw);
}
.sdvx-cover-toolbar span{
  min-width:52px;
  text-align:right;
  color:#9fa4af;
  font-variant-numeric:tabular-nums;
}
.sdvx-cover-gallery{
  display:flex;
  flex-wrap:nowrap;
  gap:16px;
  width:100%;
  overflow-x:auto;
  padding:4px 2px 14px;
  scroll-snap-type:x proximity;
}
.sdvx-cover-card{
  flex:0 0 calc(var(--sdvx-cover-size) + 22px);
  width:calc(var(--sdvx-cover-size) + 22px);
  display:grid;
  gap:9px;
  padding:10px;
  border:1px solid #444852;
  border-radius:8px;
  background:#1e2025;
  scroll-snap-align:start;
}
.sdvx-cover-card>img{
  display:block;
  width:var(--sdvx-cover-size);
  height:var(--sdvx-cover-size);
  object-fit:contain;
  background:#141519;
  border-radius:5px;
}
.sdvx-cover-select{
  display:flex;
  align-items:center;
  gap:7px;
  margin:0!important;
  color:#d8dbe3;
  font-size:12px;
}
.sdvx-cover-select input{
  width:17px;
  height:17px;
  accent-color:#8799e8;
}
.sdvx-cover-card .button{
  min-height:34px;
  padding:6px 8px;
  font-size:12px;
}
.sdvx-cover-loading{
  padding:40px 18px;
  color:#aeb2bc;
}
.sdvx-long-cover-section{
  margin-top:8px;
  padding-top:14px;
  border-top:1px solid #41444c;
}
.sdvx-long-cover-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:9px;
}
.sdvx-long-cover-head span{
  color:#aeb2bc;
  font-size:11px;
}
.sdvx-long-cover-preview{
  min-height:150px;
  display:flex;
  align-items:center;
  gap:0;
  overflow-x:auto;
  padding:8px;
  background:#15161a;
  border:1px solid #3f424a;
  border-radius:6px;
}
.sdvx-long-cover-preview img{
  flex:0 0 auto;
  display:block;
  height:clamp(180px,calc(var(--sdvx-cover-size) * .72),300px);
  width:auto;
  margin:0;
  padding:0;
}
.sdvx-long-cover-preview.empty{
  display:grid;
  place-items:center;
  color:#8f949f;
}
.sdvx-cover-dialog-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:12px;
}

/* SDVX has no useful category field in this web UI. */
body.sdvx-mode .genre-column,
body.sdvx-mode td.genre-cell,
body.sdvx-mode .desktop-genre-group{
  display:none!important;
}
body.sdvx-mode col.genre-col{
  display:none!important;
}

/* "none" playback mode is simply all three checkboxes unchecked. */
.player-options input[type="checkbox"]{
  accent-color:#8799e8;
  vertical-align:middle;
}

@media(max-width:720px){
  .sdvx-other-covers{
    align-self:stretch;
    width:100%;
  }
  .sdvx-cover-dialog{
    width:96vw!important;
    max-width:96vw!important;
    padding:13px!important;
  }
  .sdvx-cover-gallery{
    gap:12px;
  }
  .sdvx-cover-card{
    padding:8px;
  }
  .sdvx-long-cover-preview{
    min-height:118px;
  }
  .sdvx-long-cover-preview img{
    height:130px;
  }
}

/* ===== V8.3 latest distribution date + SDVX duplicate ordering ===== */
.latest-distribution-date{
  margin-left:7px;
  color:#9da2ad;
  font-size:11px;
  font-weight:400;
  white-space:nowrap;
}
.latest-distribution-date[hidden]{display:none!important}

@media(max-width:720px){
  .latest-distribution-date{
    margin-left:3px;
    font-size:9px;
    color:#9196a2;
  }
}

/* SDVX category is not merely visually unused; its filter group/column are removed. */
body.sdvx-mode .desktop-genre-group,
body.sdvx-mode .genre-column,
body.sdvx-mode td.genre-cell{
  display:none!important;
}

/* ===== V8.4 SDVX column / cover-dialog fixes ===== */
.detail-difficulty-tools{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:13px 0;
  min-width:0;
}
.detail-difficulty-tools .difficulty-row{
  margin:0;
  min-width:0;
}
.detail-difficulty-tools .sdvx-other-covers{
  flex:0 0 auto;
  align-self:center;
  margin:0;
  min-height:30px;
  padding:5px 9px;
  font-size:11px;
}

/* Avoid table-layout overlap: hidden category column is removed from the colgroup,
   and app.js subtracts its width from the fixed table width. */
@media(min-width:721px){
  body.sdvx-mode .genre-column,
  body.sdvx-mode td.genre-cell{
    display:none!important;
  }
  body.sdvx-mode col.genre-col{
    display:none!important;
  }
}

.sdvx-cover-dialog>form{
  width:100%;
  min-width:0;
}
.sdvx-cover-gallery{
  min-height:250px;
}
.sdvx-cover-card img{
  background:#101115;
}

@media(max-width:720px){
  .detail-difficulty-tools{
    width:100%;
    flex-wrap:wrap;
    justify-content:flex-start;
    margin:9px 0;
  }
  .detail-difficulty-tools .sdvx-other-covers{
    width:auto;
    align-self:center;
  }
  .detail-difficulty-tools .difficulty-row{
    flex:1 1 auto;
    justify-content:flex-start;
  }
}

/* ===== V8.5 desktop song-list covers ===== */
@media(min-width:721px){
  .table-wrap td.title-cell{
    padding-top:5px;
    padding-bottom:5px;
    vertical-align:middle;
  }
  .desktop-title-wrap{
    display:flex;
    align-items:center;
    gap:9px;
    min-width:0;
    width:100%;
  }
  .desktop-row-cover{
    display:grid;
    place-items:center;
    flex:0 0 52px;
    width:52px;
    height:52px;
    overflow:hidden;
    border-radius:5px;
    background:#1b1c20;
    border:1px solid #3d4048;
  }
  .desktop-row-cover img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
  }
  .desktop-row-cover.missing-cover::after{
    content:attr(data-placeholder);
    display:grid;
    place-items:center;
    width:100%;
    height:100%;
    color:#6f7480;
    font-size:13px;
    font-weight:700;
  }
  .desktop-song-title-text{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    line-height:1.35;
  }
  .table-wrap tbody tr{
    min-height:62px;
  }
  .table-wrap tbody td{
    min-height:62px;
  }
}
@media(max-width:720px){
  .desktop-row-cover{display:none!important}
  .desktop-title-wrap{display:contents}
  .desktop-song-title-text{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
}

/* ===== V8.6 SDVX cover-count column ===== */
@media(min-width:721px){
  .sdvx-cover-count-column,
  .cover-count-cell{
    text-align:center!important;
    font-variant-numeric:tabular-nums;
  }

  body:not(.sdvx-mode) .sdvx-cover-count-column,
  body:not(.sdvx-mode) td.cover-count-cell,
  body:not(.sdvx-mode) col.sdvx-cover-count-col{
    display:none!important;
  }

  body.sdvx-mode .sdvx-cover-count-column,
  body.sdvx-mode td.cover-count-cell{
    display:table-cell!important;
  }
}
@media(max-width:720px){
  .sdvx-cover-count-column,
  td.cover-count-cell{
    display:none!important;
  }
}


/* ===== V9.15 desktop vertical workspace resize ===== */
.workspace-height-splitter{
  flex:0 0 10px;
  height:10px;
  margin:2px 0 -2px;
  position:relative;
  cursor:row-resize;
  touch-action:none;
  user-select:none;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#7f8492;
  z-index:8;
}
.workspace-height-splitter::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:4px;
  border-top:1px solid #3f4249;
}
.workspace-height-splitter span{
  position:relative;
  z-index:1;
  min-width:28px;
  text-align:center;
  line-height:16px;
  border:1px solid #484c56;
  border-radius:8px;
  background:#27292e;
  font-size:11px;
  color:#aeb4c5;
}
.workspace-height-splitter:hover::before,
.workspace-height-splitter.dragging::before{border-color:#7f91e8}
.workspace-height-splitter:hover span,
.workspace-height-splitter.dragging span{background:#39416a;color:#fff;border-color:#7f91e8}
@media(max-width:720px){
  .workspace-height-splitter{display:none!important}
}


/* ===== V9.20 always-visible list/detail resize handle ===== */
@media(min-width:721px){
  .panel-splitter{
    position:relative;
    z-index:8;
    width:10px;
    min-width:10px;
    margin:0 -2px;
    cursor:col-resize;
    touch-action:none;
    user-select:none;
    background:transparent!important;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .panel-splitter::before{
    content:"";
    position:absolute;
    top:0;
    bottom:0;
    left:4px;
    border-left:1px solid #3f4249;
  }
  .panel-splitter::after{
    content:"↔";
    position:relative;
    z-index:1;
    width:18px;
    height:30px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid #484c56;
    border-radius:8px;
    background:#27292e;
    color:#aeb4c5;
    font-size:11px;
    line-height:1;
  }
  .panel-splitter:hover::before,
  .panel-splitter.dragging::before{border-color:#7f91e8}
  .panel-splitter:hover::after,
  .panel-splitter.dragging::after{
    background:#39416a;
    color:#fff;
    border-color:#7f91e8;
  }
}

/* ===== V9.26: direct click-mode choices + smaller detail title ===== */
.click-mode-control{
  display:flex;
  align-items:center;
  gap:7px;
  color:#d5d7df;
  padding:0 5px;
  white-space:nowrap;
}
.click-mode-buttons{
  display:inline-flex;
  align-items:center;
  overflow:hidden;
  border:1px solid #50535a;
  border-radius:5px;
}
.click-mode-button{
  min-height:32px;
  padding:6px 10px;
  border:0;
  border-right:1px solid #50535a;
  background:#292a2e;
  color:#d5d7df;
  cursor:pointer;
  font:inherit;
  white-space:nowrap;
}
.click-mode-button:last-child{border-right:0}
.click-mode-button:hover{background:#34363b}
.click-mode-button.active{
  background:#4a5270;
  color:#fff;
}
.click-mode-button:focus-visible{
  outline:2px solid #aab7ff;
  outline-offset:-2px;
}
#detail-title{
  font-size:80%;
}
@media(max-width:900px){
  .click-mode-control{flex-wrap:wrap}
  .click-mode-button{padding-inline:8px}
}

/* V9.28: obsolete horizontal workspace-height splitter removed. */
.workspace-height-splitter{display:none!important}

/* ===== V9.30: draggable song-list columns ===== */
.table-wrap thead th[data-column-id]:not([data-column-id="check"]){cursor:grab}
.table-wrap thead th.column-dragging{opacity:.5;cursor:grabbing}
.table-wrap thead th.column-drop-before{box-shadow:inset 3px 0 0 #aab7ff}
.table-wrap thead th.column-drop-after{box-shadow:inset -3px 0 0 #aab7ff}
.table-wrap thead th.resizing{cursor:col-resize}

/* ===== V9.31: keep draggable columns and width grips independent ===== */
.table-wrap thead th[data-column-id]{position:relative}
.table-wrap thead th .resize-grip{
  z-index:5;
  pointer-events:auto;
  cursor:col-resize;
  user-select:none;
  -webkit-user-drag:none;
}
.table-wrap thead th.column-dragging .resize-grip{visibility:hidden}

/* ===== V9.32: song table header/body seam fix ===== */
.table-wrap table{
  border-collapse:collapse!important;
  border-spacing:0!important;
}
.table-wrap thead,
.table-wrap tbody{
  border-spacing:0!important;
}
.table-wrap thead th{
  margin:0!important;
  background-clip:padding-box;
}
.table-wrap tbody tr:first-child td{
  border-top-width:0!important;
}

/* ===== V9.33: narrow columns scale contents instead of wrapping ===== */
.table-wrap tbody td{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.table-wrap tbody td[data-column-id="id"]{font-size:calc(1em * var(--col-scale-id,1))}
.table-wrap tbody td[data-column-id="title"]{font-size:calc(1em * var(--col-scale-title,1))}
.table-wrap tbody td[data-column-id="artist"]{font-size:calc(1em * var(--col-scale-artist,1))}
.table-wrap tbody td[data-column-id="genre"]{font-size:calc(1em * var(--col-scale-genre,1))}
.table-wrap tbody td[data-column-id="version"]{font-size:calc(1em * var(--col-scale-version,1))}
.table-wrap tbody td[data-column-id="date"]{font-size:calc(1em * var(--col-scale-date,1))}
.table-wrap tbody td[data-column-id="cover_count"]{font-size:calc(1em * var(--col-scale-cover_count,1))}

/* Difficulty chips/icons shrink with their column as a unit and stay one row. */
.table-wrap tbody td[data-column-id="difficulty"]{
  white-space:nowrap;
  overflow:hidden;
}
.table-wrap tbody td[data-column-id="difficulty"] .difficulty-row,
.table-wrap tbody td[data-column-id="difficulty"] .diff-grid,
.table-wrap tbody td[data-column-id="difficulty"] .difficulty-list{
  flex-wrap:nowrap!important;
}
.table-wrap tbody td[data-column-id="difficulty"] span{
  font-size:calc(1em * var(--col-scale-difficulty,1));
  white-space:nowrap;
}
.table-wrap tbody td[data-column-id="id"] .favorite-row-button{
  font-size:calc(1em * var(--col-scale-id,1));
}

/* ===== V9.34: flush header seam + fixed-height rows + smoother resizing ===== */
/* The red-marked band was the table-wrap/header geometry, not tbody border spacing. */
.table-wrap{
  padding-top:0!important;
  margin-top:0!important;
}
.table-wrap table{
  margin-top:0!important;
  border-collapse:collapse!important;
  border-spacing:0!important;
}
.table-wrap thead{
  margin:0!important;
  padding:0!important;
  transform:none!important;
}
.table-wrap thead tr{
  height:36px!important;
  min-height:36px!important;
  max-height:36px!important;
}
.table-wrap thead th{
  height:36px!important;
  min-height:36px!important;
  max-height:36px!important;
  padding-top:0!important;
  padding-bottom:0!important;
  vertical-align:middle!important;
}
.table-wrap tbody tr{
  height:44px!important;
  min-height:44px!important;
  max-height:44px!important;
}
.table-wrap tbody td{
  height:44px!important;
  min-height:44px!important;
  max-height:44px!important;
  box-sizing:border-box!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  vertical-align:middle!important;
  line-height:1.15!important;
}
.table-wrap tbody td > *{
  max-height:40px;
}
.table-wrap tbody td[data-column-id="title"],
.table-wrap tbody td[data-column-id="artist"],
.table-wrap tbody td[data-column-id="genre"],
.table-wrap tbody td[data-column-id="version"],
.table-wrap tbody td[data-column-id="date"]{
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
/* Never let difficulty graphics wrap and grow the song row. */
.table-wrap tbody td[data-column-id="difficulty"] > *{
  flex-wrap:nowrap!important;
  white-space:nowrap!important;
  overflow:hidden!important;
}

/* ===== V9.35: true flush sticky header + shrink-first cells + smooth resize guide ===== */

/* Put sticky positioning on each TH instead of THEAD.
   This avoids Chromium's sticky table-section seam where scrolled rows can show above the header. */
.table-wrap thead{
  position:static!important;
  top:auto!important;
}
.table-wrap thead th{
  position:sticky!important;
  top:0!important;
  z-index:6!important;
}
.panel-title + .table-wrap{
  margin-top:0!important;
  padding-top:0!important;
  border-top:0!important;
}
.panel-title + .table-wrap > table{
  margin-block-start:0!important;
}

/* Keep rows a fixed height. Content must adapt to the row, never the other way around. */
.table-wrap tbody tr,
.table-wrap tbody td{
  height:44px!important;
  min-height:44px!important;
  max-height:44px!important;
}
.table-wrap tbody td{
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:clip!important;
}

/* Shrink text first. Ellipsis is only applied on the innermost text element after scaling. */
.table-wrap tbody td[data-column-id="id"]{font-size:calc(15px * var(--col-scale-id,1))!important}
.table-wrap tbody td[data-column-id="title"]{font-size:calc(15px * var(--col-scale-title,1))!important}
.table-wrap tbody td[data-column-id="artist"]{font-size:calc(15px * var(--col-scale-artist,1))!important}
.table-wrap tbody td[data-column-id="genre"]{font-size:calc(15px * var(--col-scale-genre,1))!important}
.table-wrap tbody td[data-column-id="version"]{font-size:calc(15px * var(--col-scale-version,1))!important}
.table-wrap tbody td[data-column-id="date"]{font-size:calc(15px * var(--col-scale-date,1))!important}
.table-wrap tbody td[data-column-id="cover_count"]{font-size:calc(15px * var(--col-scale-cover_count,1))!important}

.table-wrap tbody td[data-column-id="artist"],
.table-wrap tbody td[data-column-id="genre"],
.table-wrap tbody td[data-column-id="version"],
.table-wrap tbody td[data-column-id="date"],
.table-wrap tbody td[data-column-id="cover_count"]{
  text-overflow:ellipsis!important;
}

/* Title graphics shrink together with the title column, freeing real text width before ellipsis. */
@media(min-width:721px){
  .desktop-title-wrap{
    gap:var(--row-title-gap,7px)!important;
    overflow:hidden!important;
  }
  .desktop-row-cover{
    flex:0 0 var(--row-cover-size,36px)!important;
    width:var(--row-cover-size,36px)!important;
    height:var(--row-cover-size,36px)!important;
    border-radius:4px!important;
  }
  .desktop-song-title-text{
    flex:1 1 auto;
    min-width:0;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
}

/* Heart: 1.2x the old 16px desktop size, without double-applying the ID scale. */
.table-wrap tbody td[data-column-id="id"] .favorite-row-button{
  width:24px!important;
  height:24px!important;
  font-size:19.2px!important;
  line-height:1!important;
  flex:0 0 24px!important;
}

/* Drag only this guide while resizing; the thousands of table cells relayout once on release. */
.column-resize-guide{
  position:fixed;
  width:2px;
  z-index:9999;
  background:#9aa9f3;
  pointer-events:none;
  will-change:transform;
  box-shadow:0 0 0 1px rgba(0,0,0,.22);
}
.column-resize-guide[hidden]{display:none!important}

/* ===== V9.36: actual title/header gap cause + ID geometry + resize hit zones ===== */

/* The "gap" is not table padding. The desktop song-list title bar was globally forced to 42px,
   so vertically centered text left a large dark band below it. Compress only this title bar. */
@media(min-width:721px){
  .song-panel > .panel-title{
    height:28px!important;
    min-height:28px!important;
    padding-top:0!important;
    padding-bottom:0!important;
    border-bottom:0!important;
    line-height:1!important;
  }
  .song-panel > .panel-title .mobile-song-heading{
    min-height:0!important;
    line-height:1!important;
  }
}

/* Keep the ID TD in table layout. Flexing the TD itself can make its visual width disagree with COL/TH. */
.table-wrap tbody td.id-cell{
  display:table-cell!important;
}
.id-cell-content{
  display:flex;
  width:100%;
  min-width:0;
  align-items:center;
  justify-content:space-between;
  gap:4px;
}
.id-cell-content .song-id-text{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
}
.id-cell-content .favorite-row-button{
  margin-left:auto!important;
  margin-right:0!important;
  flex:0 0 24px!important;
}

/* Make width-resize easier to grab: 20px hit zone centered on the column boundary. */
.table-wrap thead th .resize-grip,
.resize-grip{
  right:-10px!important;
  width:20px!important;
  z-index:12!important;
  cursor:col-resize!important;
}

/* Reorder still works, but the resize edge wins; the JS arms reorder only in the header's middle area. */
.table-wrap thead th[data-column-id]:not([data-column-id="check"]){
  cursor:default;
}
.table-wrap thead th[data-column-id]:not([data-column-id="check"]):hover{
  cursor:grab;
}

/* Scale difficulty graphics as well as their text. */
.table-wrap tbody td[data-column-id="difficulty"] .difficulty-chips{
  transform:scale(var(--col-scale-difficulty,1));
  transform-origin:left center;
  width:calc(100% / var(--col-scale-difficulty,1));
}

/* ===== V9.37: mobile list must use semantic column IDs, never nth-child ===== */
@media(max-width:720px){
  /* Reset every real table cell first. Desktop reordering may move them to any DOM position. */
  .table-wrap tbody tr > td{
    display:none!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    padding:0!important;
    border:0!important;
  }

  .table-wrap tbody tr{
    display:grid!important;
    grid-template-columns:58px 44px minmax(0,1fr) auto!important;
    grid-template-rows:minmax(22px,auto) minmax(18px,auto)!important;
    column-gap:6px!important;
    row-gap:1px!important;
    min-height:66px!important;
    height:auto!important;
    max-height:none!important;
    padding:10px 8px 9px 5px!important;
    align-items:center!important;
  }

  /* ID + favorite: fixed left column. */
  .table-wrap tbody td[data-column-id="id"]{
    display:block!important;
    grid-column:1!important;
    grid-row:1/3!important;
    align-self:stretch!important;
    width:auto!important;
    min-width:0!important;
    overflow:hidden!important;
    color:#aeb4c5!important;
    font-size:11px!important;
    font-weight:600!important;
  }
  .table-wrap tbody td[data-column-id="id"] .id-cell-content{
    display:flex!important;
    width:100%!important;
    height:100%!important;
    min-width:0!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:2px!important;
  }
  .table-wrap tbody td[data-column-id="id"] .song-id-text{
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:11px!important;
  }
  .table-wrap tbody td[data-column-id="id"] .favorite-row-button{
    flex:0 0 20px!important;
    width:20px!important;
    height:24px!important;
    min-width:20px!important;
    margin:0!important;
    padding:0!important;
    font-size:17px!important;
    line-height:1!important;
  }

  /* Mobile cover always occupies column 2. */
  .table-wrap tbody .mobile-row-cover{
    display:block!important;
    grid-column:2!important;
    grid-row:1/3!important;
    align-self:center!important;
    justify-self:center!important;
    width:44px!important;
    height:44px!important;
    max-width:44px!important;
    max-height:44px!important;
    overflow:hidden!important;
  }

  /* Title + artist are selected by semantic IDs, so desktop column order cannot break mobile. */
  .table-wrap tbody td[data-column-id="title"]{
    display:block!important;
    grid-column:3!important;
    grid-row:1!important;
    align-self:end!important;
    min-width:0!important;
    overflow:hidden!important;
    color:#f0f1f5!important;
    font-size:14px!important;
    font-weight:600!important;
    line-height:1.18!important;
    white-space:nowrap!important;
    text-overflow:ellipsis!important;
  }
  .table-wrap tbody td[data-column-id="artist"]{
    display:block!important;
    grid-column:3!important;
    grid-row:2!important;
    align-self:start!important;
    min-width:0!important;
    overflow:hidden!important;
    color:#aeb2bd!important;
    font-size:11px!important;
    font-weight:400!important;
    line-height:1.15!important;
    white-space:nowrap!important;
    text-overflow:ellipsis!important;
  }

  /* Desktop title wrapper is reduced to text only on mobile; desktop cover is never rendered visibly here. */
  .table-wrap tbody td[data-column-id="title"] .desktop-title-wrap{
    display:block!important;
    min-width:0!important;
    width:100%!important;
    overflow:hidden!important;
  }
  .table-wrap tbody td[data-column-id="title"] .desktop-row-cover{
    display:none!important;
  }
  .table-wrap tbody td[data-column-id="title"] .desktop-song-title-text{
    display:block!important;
    min-width:0!important;
    overflow:hidden!important;
    white-space:nowrap!important;
    text-overflow:ellipsis!important;
  }

  /* Right-side mobile metadata continues to come from tr::after. */
  .table-wrap tbody tr::after{
    grid-column:4!important;
    grid-row:1/3!important;
    align-self:center!important;
    justify-self:end!important;
  }

  /* Never show desktop-only columns in the mobile row itself. */
  .table-wrap tbody td[data-column-id="check"],
  .table-wrap tbody td[data-column-id="genre"],
  .table-wrap tbody td[data-column-id="version"],
  .table-wrap tbody td[data-column-id="difficulty"],
  .table-wrap tbody td[data-column-id="date"],
  .table-wrap tbody td[data-column-id="cover_count"]{
    display:none!important;
  }
}

/* ===== V9.38: full-title hover tooltip for ellipsized song names ===== */
.song-field-hover-tip{
  position:fixed;
  z-index:10000;
  width:max-content;
  max-width:calc(100vw - 16px);
  padding:7px 10px;
  border:1px solid #626a79;
  border-radius:6px;
  background:#17191e;
  color:#f4f5f8;
  box-shadow:0 6px 18px rgba(0,0,0,.38);
  font-size:14px;
  line-height:1.35;
  white-space:normal;
  overflow-wrap:anywhere;
  pointer-events:none;
}
.song-field-hover-tip[hidden]{display:none!important}

/* ===== V9.39: truncated-field hover applies to every song-list data column ===== */
.song-field-hover-tip{
  white-space:pre-wrap!important;
}

/* ===== V9.41: zoom/subpixel seam guard between song title bar and table header ===== */
/*
   At certain browser zoom levels (100%, 110%, etc.), Chromium can round the
   adjacent flex/table boundaries to different physical pixels and expose a
   1px dark seam.  Do not rely on two boxes meeting at exactly the same pixel:
   overlap the table region upward by 2 CSS px on desktop.
*/
@media(min-width:721px){
  .song-panel > .table-wrap{
    margin-top:-2px!important;
    position:relative!important;
    z-index:2!important;
  }

  /* Extend every sticky header cell slightly upward as a second guard.
     background:inherit keeps each header's own color while covering any
     fractional-pixel crack produced by browser zoom. */
  .song-panel .table-wrap thead th{
    position:sticky!important;
    top:0!important;
    overflow:visible!important;
  }
  .song-panel .table-wrap thead th::before{
    content:"";
    position:absolute;
    left:0;
    right:0;
    top:-2px;
    height:2px;
    background:inherit;
    pointer-events:none;
    z-index:-1;
  }
}
