/* The queue uses the same neutral surfaces and type as the archive. */
:root{--archive-safe-top:env(safe-area-inset-top,0px);--archive-safe-bottom:env(safe-area-inset-bottom,0px);--archive-safe-left:env(safe-area-inset-left,0px);--archive-safe-right:env(safe-area-inset-right,0px)}
#queue-panel:focus{outline:none}
#queue-panel[open]{display:flex;flex-direction:column;overflow:hidden}
#queue-panel .panel-head{flex:none;margin-bottom:14px;gap:10px}
#queue-panel h2{font-size:15px;margin:0;flex:1}
.qv-tabs{display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:3px;background:#24272d;border-radius:7px;margin-bottom:12px;flex:none}
.qv-tabs button{min-height:36px;font-size:13px;border-radius:5px;color:#abb3bf;padding:7px}
.qv-tabs button[aria-selected=true]{background:#101113;color:#f4f5f6}
#queue-panel .queue-summary{display:flex;align-items:center;justify-content:space-between;flex:none;gap:12px;min-height:36px;margin:0 4px 10px;padding:0;font-size:12px;color:#abb3bf}
#queue-panel #queue-clear{display:inline-flex;align-items:center;justify-content:center;flex:none;box-sizing:border-box;min-width:64px;min-height:32px;padding:5px 12px;font-size:12px;line-height:20px;color:#abb3bf;border:1px solid #34383f;border-radius:7px}
#queue-history-note{font-size:11px;line-height:1.5;color:#929cab;margin:0 6px 8px;flex:none}
#queue-list{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;overflow-anchor:none;padding:0 4px 18px;scrollbar-width:none}
#queue-list::-webkit-scrollbar{display:none;width:0;height:0}
.qv-row{position:relative;user-select:none;border-radius:5px;min-height:67px}
.qv-row-main{position:relative;display:grid;grid-template-columns:43px minmax(0,1fr) 39px;gap:10px;align-items:center;min-height:67px;padding:8px 3px;background:#191b1f;border-bottom:1px solid #ffffff06;border-radius:4px}
.qv-row-main:hover,.qv-row-main:focus-within{background:#202226}
.qv-cover{width:43px;height:43px;position:relative}
.qv-cover img{width:100%;height:100%;object-fit:cover;border-radius:4px;display:block}
.qv-copy{min-width:0;padding:0;text-align:left;min-height:43px;border-radius:3px;touch-action:none;cursor:grab}
.qv-copy:hover{background:transparent}.qv-copy:active{transform:none!important;cursor:grabbing}
.qv-copy strong,.qv-current-row strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:14px;line-height:1.45;font-weight:500;color:#e8eaed;overflow-wrap:anywhere}
.qv-artist{display:block;font-size:11px;color:#929cab;margin-top:3px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.qv-copy .qv-performers,.qv-current-row .qv-performers{display:flex;flex-wrap:wrap;gap:2px 6px;font-size:11px;margin-top:4px;line-height:1.5}
.qv-copy .member-badge,.qv-current-row .member-badge{gap:4px}.qv-copy .member-badge i,.qv-current-row .member-badge i{width:7px;height:7px;border-width:1px}
.qv-copy .guest-credit,.qv-current-row .guest-credit{font-size:11px;line-height:1.5}
.qv-copy .guest-credit small,.qv-current-row .guest-credit small{display:inline!important;font-size:inherit}
.qv-end{position:relative;width:39px;min-height:32px;display:grid;place-items:center}
.qv-duration{font-size:12px;color:#929cab;font-variant-numeric:tabular-nums}
.qv-more{position:absolute;inset:0;width:39px;min-height:32px;padding:5px;color:#abb3bf;opacity:0}
.qv-more svg{width:19px;height:19px}
.qv-remove{position:absolute;left:-1px;top:4px;display:grid;place-items:center;width:20px;height:20px;min-height:20px;border-radius:50%;background:#c46170;border:1.5px solid #f4f5f6;color:#fff;padding:0;opacity:0;z-index:2}
.qv-remove span{font-size:17px;line-height:1;font-weight:500}.qv-remove:hover{background:#d77583}
.qv-row:hover .qv-more,.qv-row:focus-within .qv-more,.qv-row:hover .qv-remove,.qv-row:focus-within .qv-remove{opacity:1}
.qv-row:hover .qv-duration,.qv-row:focus-within .qv-duration{opacity:0}
.qv-swipe-remove,.qv-sheet-handle,#queue-edit,#queue-context,#queue-current,#queue-footer{display:none}
.qv-grip{display:grid;place-items:center;position:absolute;right:40px;top:13px;opacity:0;width:32px;min-height:36px;padding:5px;touch-action:none}
.qv-grip:focus-visible{opacity:1;display:grid;position:absolute;right:40px;top:13px;background:#24272d;width:32px;min-height:36px}
.qv-lines{display:block;width:16px;height:13px;border-block:2px solid #c5cbd4;position:relative}.qv-lines:after{content:'';position:absolute;left:0;right:0;top:4px;height:2px;background:#c5cbd4}
.qv-empty{padding:30px 4px;text-align:center;color:#c5cbd4;font-size:13px;line-height:1.7}.qv-empty p{font-size:11px;color:#929cab;margin:8px 0}
#queue-list[data-drag-active=true]>.qv-row{opacity:.45}.qv-row[data-placeholder=true]{opacity:0!important}
.qv-ghost{position:fixed!important;z-index:5;margin:0!important;pointer-events:none;box-shadow:0 12px 35px #0008;border:1px solid #505761;border-radius:5px;transform-origin:center center;opacity:.98!important}.qv-ghost .qv-row-main{background:#2b2e34!important}.qv-ghost .qv-remove,.qv-ghost .qv-more{opacity:1}.qv-ghost .qv-duration{opacity:0}
#queue-row-menu{position:fixed;z-index:8;min-width:184px;max-width:calc(100vw - 16px);padding:5px;border:1px solid #454b55;border-radius:7px;background:#25282e;box-shadow:0 12px 35px #0008}
#queue-row-menu[hidden]{display:none}#queue-row-menu button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;min-height:36px;font-size:12px;padding:7px 10px}#queue-row-menu svg{width:15px;height:15px;color:#abb3bf}
@media(min-width:1024px){#queue-panel[open]{padding:16px 10px 0}#queue-list .qv-row{border:0}}
@media(hover:none) and (min-width:1024px){.qv-more{opacity:1}.qv-duration{opacity:0}}
@media(max-width:1023px){
 #queue-panel[open]{--queue-sheet-max-height:calc(100dvh - max(12px,var(--archive-safe-top)) - max(8px,var(--archive-safe-bottom)) - 8px);position:fixed;inset:auto max(8px,var(--archive-safe-right)) max(8px,var(--archive-safe-bottom)) max(8px,var(--archive-safe-left));width:calc(100% - max(8px,var(--archive-safe-left)) - max(8px,var(--archive-safe-right)))!important;max-width:600px;height:min(var(--queue-sheet-height,64dvh),var(--queue-sheet-max-height));max-height:var(--queue-sheet-max-height);margin:0 auto;padding:5px 16px 12px;border:1px solid #ffffff14;border-radius:26px;background:#202226f5;box-shadow:0 -5px 35px #0005;color:#f4f5f6;transition:height 200ms cubic-bezier(.2,.75,.25,1);animation:none}
 #queue-panel::backdrop{background:#0006}#queue-panel.queue-sheet-dragging{transition:none}
 #queue-panel .qv-sheet-handle{display:flex;justify-content:center;flex:none;height:44px;margin-inline:-16px}
 #queue-snap{width:100%;height:44px;min-height:44px;padding:0;display:grid;place-items:center;touch-action:none}
 #queue-panel [data-queue-sheet-drag]{touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}
 #queue-panel.queue-sheet-dragging [data-queue-sheet-drag]{cursor:grabbing}
 #queue-panel #queue-snap:active{transform:none}
 #queue-snap span{width:34px;height:4px;background:#69717c;border-radius:4px}
 #queue-panel .panel-head{margin:5px 0 0;min-height:42px;align-items:center}#queue-panel h2{font-size:21px;letter-spacing:-.03em}
 #queue-panel #queue-edit{display:block;min-width:64px;width:auto;height:44px;min-height:44px;white-space:nowrap;border-radius:22px;padding:7px 16px;background:#ffffff09;font-size:13px;font-weight:600;color:#e2e5ea}
 #queue-context{display:block;margin:2px 0 13px;font-size:12px;color:#abb3bf;flex:none}
 #queue-panel .qv-desktop-close,#queue-panel .qv-tabs,#queue-panel .queue-summary,#queue-panel #queue-history-note{display:none}
 #queue-current{display:block;flex:none;border-bottom:1px solid #ffffff08;padding-bottom:8px;margin-bottom:4px}
 #queue-current:empty{display:none}
 .qv-current-row{display:grid;grid-template-columns:46px minmax(0,1fr) 44px;gap:11px;align-items:center;padding:5px 0 9px}
 .qv-current-row>img{width:46px;height:46px;border-radius:5px;object-fit:cover}.qv-current-row>div{min-width:0}
 .qv-current-label{font-size:10px;color:#abb3bf;margin-bottom:3px;display:block}.qv-current-row strong{font-size:15px;font-weight:650}
 #queue-current-play{display:grid;place-items:center;width:38px;height:38px;min-height:38px;border-radius:50%;padding:9px;background:#f4f5f6;color:#191b1f;justify-self:end}#queue-current-play svg{width:20px;height:20px;fill:currentColor;stroke:currentColor}
 #queue-list{scrollbar-width:none;padding:0 4px 8px;margin-inline:-4px}#queue-list::-webkit-scrollbar{display:none}
 .qv-row{overflow:hidden;min-height:73px}.qv-row-main{grid-template-columns:44px minmax(0,1fr) 44px;gap:10px;min-height:73px;padding:10px 0;background:#222428;border:0;z-index:1;transition:transform 160ms ease-out}
 .qv-cover{width:44px;height:44px}.qv-copy{min-height:44px;touch-action:pan-y;cursor:pointer}.qv-copy:active{cursor:pointer}
 .qv-grip{display:grid;place-items:center;position:static;opacity:1;width:44px;min-height:44px;padding:8px;touch-action:none;cursor:grab}.qv-grip:focus-visible{position:static;width:44px;min-height:44px;background:#ffffff09}
 .qv-end{display:none}.qv-remove{display:none;position:static;border:0;opacity:1;width:44px;min-height:44px;height:44px;background:none!important}.qv-remove span{display:grid;place-items:center;border-radius:50%;width:19px;height:19px;background:#c46170;color:#fff;font-size:17px}
 .queue-editing .qv-remove{display:grid}.queue-editing .qv-row-main{grid-template-columns:44px 40px minmax(0,1fr) 44px;gap:7px}.queue-editing .qv-cover{width:40px;height:40px}
 .qv-swipe-remove{display:grid;place-items:center;position:absolute;inset:0 0 0 auto;width:80px;border-radius:0;background:#ad4d5c;color:#f4f5f6;z-index:0}.qv-swipe-remove svg{width:22px;height:22px}
 #queue-footer{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding-top:9px;flex:none;border-top:1px solid #ffffff08;margin-top:2px}
 #queue-footer button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:65px;padding:9px 4px;border-radius:13px;background:#ffffff06;color:#abb3bf;font-size:11px}#queue-footer svg{width:23px;height:23px}#queue-footer button[aria-pressed=true]{color:#f4f5f6;background:#ffffff13}
 #queue-row-menu button{min-height:44px;font-size:13px}
 #queue-panel[data-panel-pulling=true],#player-panel[data-panel-pulling=true]{transition:none!important;will-change:translate;user-select:none}
 #player-profile,#artwork-background,#queue-current img,#queue-list img{-webkit-user-drag:none}
}
@media(max-width:1023px) and (max-height:480px){
 #queue-panel[open]{height:var(--queue-sheet-max-height);padding:4px 12px 8px;border-radius:18px}
 #queue-panel .qv-sheet-handle{margin-inline:-12px}
 #queue-panel .panel-head{margin:0;min-height:36px}#queue-panel h2{font-size:18px}#queue-panel #queue-edit{height:36px;min-height:36px}
 #queue-context{font-size:11px;margin:0 0 4px}#queue-current{padding-bottom:4px;margin-bottom:2px}
 .qv-current-row{grid-template-columns:36px minmax(0,1fr) 36px;padding:0 0 4px}.qv-current-row>img{width:36px;height:36px}.qv-current-label,.qv-current-row .qv-artist{display:none}.qv-current-row strong{-webkit-line-clamp:1;font-size:14px}.qv-current-row .qv-performers{margin-top:2px}
 #queue-current-play{width:32px;height:32px;min-height:32px;padding:7px}
 #queue-footer{padding-top:4px;gap:6px}#queue-footer button{min-height:48px;padding:4px;gap:3px;font-size:10px}#queue-footer svg{width:18px;height:18px}
}
@media(prefers-reduced-motion:reduce){#queue-panel[open],.qv-row-main{transition:none!important}}
.qv-ghost .qv-row-main{padding-inline:10px}
