/* v26 overlays only. No change to genres, ad placement or main page design. */
#mmHistoryTab{display:flex;align-items:center;gap:9px;width:calc(100% - 28px);margin:0 14px 3px;padding:9px 12px;border:1px solid #e1d8f5;border-radius:10px;background:#fff;color:#706781;text-align:left;min-height:44px;cursor:pointer;flex:0 0 auto}
#mmHistoryTab>span:first-child{font-size:24px;line-height:1}
#mmHistoryTab strong{flex:1;font-size:13px}
#mmHistoryTab[aria-pressed=true]{background:#eee8ff;color:#5635b3;border-color:#cebef6}
#mmHistoryCount{min-width:22px;text-align:center;font-size:11px;padding:2px 5px;border-radius:6px;background:#e2d8f8}
#mmQueueDrawer.mm-show-history .mm-queue-item{gap:6px}
#mmQueueDrawer .mm-history-add{flex:0 0 40px;min-height:44px;width:40px;padding:0;border:1px solid #ddd0fa;border-radius:10px;background:#f1ebff;color:#6442c3;cursor:pointer;font-size:26px;line-height:1}
#mmQueueDrawer .mm-history-add:hover{background:#6546d7;color:#fff}
#mmQueueDrawer .mm-history-add:disabled{cursor:not-allowed;opacity:.4}
#mmQueueDrawer .mm-queue-main{flex:1;min-width:0}
#mmQueueDrawer.mm-show-history .mm-queue-remove{flex:0 0 26px;width:26px;min-height:44px}
#mmQueueDrawer .mm-queue-art-button:focus-visible .mm-queue-cover-play,#mmQueueDrawer .mm-queue-art-button:active .mm-queue-cover-play{opacity:1}
#mmQueueDrawer .mm-history-more{margin:4px 14px 10px;border:1px solid #ddd6eb;border-radius:8px;min-height:40px;background:#fff;color:#69518b;cursor:pointer;flex:0 0 auto}
#mmPlaylistPicker{display:none;position:fixed;inset:0;width:min(460px,calc(100vw - 24px));max-width:460px;max-height:calc(100dvh - 24px);overflow:auto;margin:auto;padding:22px;border:1px solid #e1d9ee;border-radius:20px;background:#fff;color:#2b2339;box-shadow:0 18px 90px rgba(30,16,64,.25);z-index:9500;font:inherit}
#mmPlaylistPicker[open]{display:block}
#mmPlaylistPicker::backdrop{background:rgba(22,17,35,.42)}
#mmPlaylistPicker.mm-picker-fallback{inset:50% auto auto 50%;transform:translate(-50%,-50%);box-shadow:0 0 0 100vmax rgba(22,17,35,.42)}
#mmPlaylistPicker .mm-picker-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
#mmPlaylistPicker h2{margin:0;font-size:20px;font-weight:800;line-height:1.5}
#mmPickerClose{border:0;border-radius:9px;background:#f4f1f8;color:#696073;min-width:44px;min-height:44px;font-size:27px;cursor:pointer}
#mmPickerTrackTitle{font-size:14px;line-height:1.7;margin:12px 0 0;overflow-wrap:anywhere}
#mmPickerDescription{font-size:12px;color:#888092;line-height:1.7;margin:4px 0 18px}
#mmPlaylistPicker .mm-picker-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
#mmPlaylistPicker [data-picker-slot]{padding:12px 4px 9px;min-height:86px;border:1px solid #e0d5f8;border-radius:12px;background:#f7f3ff;color:#5938af;cursor:pointer;min-width:0;text-align:center}
#mmPlaylistPicker [data-picker-slot] b{display:block;font-size:24px;line-height:1.3}
#mmPlaylistPicker [data-picker-slot] small{display:block;font-size:10px;line-height:1.6;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:100%}
#mmPlaylistPicker .mm-picker-count{display:block;font-size:9px;color:#918299;line-height:1.6;margin-top:3px}
#mmPlaylistPicker [data-picker-slot]:hover{border-color:#7655cf;background:#ebe2ff}
#mmPlaylistPicker button:focus-visible{outline:3px solid #9879e5;outline-offset:2px}
#mmPlaylistPicker button:disabled{opacity:.5;cursor:wait}
#mmPickerError{min-height:20px;font-size:12px;color:#af3c58;line-height:1.7;margin:15px 0 0;overflow-wrap:anywhere}
body.mm-shell-v19 .mm-player-toast{z-index:9800}
@media(max-width:767px){
 #mmPlaylistPicker{padding:16px}
 #mmPlaylistPicker .mm-picker-grid{gap:6px}
 #mmPlaylistPicker [data-picker-slot]{min-height:82px;padding-top:10px}
 #mmQueueDrawer .mm-queue-cover-play{opacity:.7}
 #mmQueueDrawer .mm-queue-art-button:disabled .mm-queue-cover-play{display:none}
 #mmQueueDrawer .mm-queue-grip{min-width:28px;min-height:44px}
 #mmQueueDrawer .mm-playlist-toolbar{padding-top:6px}
 #mmHistoryTab{min-height:40px;padding-block:6px}
}
@media(max-height:620px){#mmQueueDrawer .mm-playlist-current{padding:6px;margin-bottom:4px}#mmQueueDrawer .mm-playlist-status-row{padding-bottom:4px}#mmHistoryTab{margin-bottom:0}#mmPlaylistPicker{max-height:calc(100dvh - 16px)}}
body.mm-shell-v19 #mmQueueDrawer.mm-show-history .mm-queue-item{display:grid;grid-template-columns:minmax(0,1fr) 40px 26px;gap:6px}
