/* DAGSTUDIO PLAYER 2305 — touch-first layout and full-page playlist editor. */
.studio-showcase{--touch-accent:var(--theme-bright,var(--accent-color,#d99b79));--dag-safe-top:env(safe-area-inset-top,0px);--dag-safe-bottom:env(safe-area-inset-bottom,0px)}
.studio-showcase button,.playlist-editor-page button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.studio-showcase button:focus-visible,.playlist-editor-page button:focus-visible,.playlist-editor-page input:focus-visible{outline:2px solid var(--touch-accent);outline-offset:3px}
.studio-showcase .showcase-brand{display:flex;gap:8px;min-width:0}
.studio-showcase .showcase-brand-text{flex:1;overflow:hidden}
.showcase-rail-toggle{border:1px solid rgba(var(--theme-rgb,192,108,66),.32);background:rgba(var(--theme-rgb,192,108,66),.11);color:var(--theme-bright,#f2b486);width:36px;height:40px;min-width:36px;border-radius:11px;display:grid;place-items:center;cursor:pointer;font-size:.98rem;flex-shrink:0}
.showcase-rail-toggle:hover{background:rgba(var(--theme-rgb,192,108,66),.22)}
.studio-showcase .showcase-nav-btn{min-height:46px!important;user-select:none}
.studio-showcase .showcase-nav-btn:active,.studio-showcase .showcase-curation-card:active{transform:scale(.985);filter:brightness(1.16)}
.studio-showcase .showcase-curations .showcase-curation-card,.studio-showcase .showcase-curations .showcase-center-card{min-height:78px!important}
.studio-showcase .showcase-center-card-open{min-height:inherit}
.studio-showcase .showcase-curations .showcase-center-card-settings{width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;flex:0 0 46px!important;font-size:1.1rem;border-color:var(--showcase-stroke)!important;margin-right:9px!important}
.showcase-card-cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:2;filter:none!important}
.studio-showcase .showcase-card-art:has(.showcase-card-cover)::after{display:none}
.studio-showcase #tab-search-btn{width:48px!important;min-width:48px!important;max-width:48px!important;height:48px!important;display:grid!important;place-items:center!important;padding:0!important;font-size:1.2rem!important;border-radius:14px!important}
.studio-showcase #tab-search-btn i{margin:0!important}
.studio-showcase .showcase-mobile-tools{display:none}
.studio-showcase .showcase-mobile-topbar{display:none}
.studio-showcase .showcase-list-toggle{min-height:46px!important;padding:9px 21px!important;font-size:.85rem!important;font-weight:800!important;border-radius:25px!important;border:1px solid var(--theme-bright,var(--accent-color))!important;background:linear-gradient(115deg,rgba(var(--theme-rgb,192,108,66),.24),rgba(var(--theme-rgb,192,108,66),.06))!important;box-shadow:0 6px 25px rgba(var(--theme-rgb,192,108,66),.13)!important}
.studio-showcase .showcase-list-toggle i{font-size:1.07rem}
.showcase-queue-pill{min-width:24px;height:24px;border-radius:12px;padding:2px 5px;display:grid;place-items:center;color:var(--theme-on-accent,#16121c);background:var(--theme-bright,var(--accent-color));font-size:.72rem;font-weight:900;font-variant-numeric:tabular-nums}
.studio-showcase>.left-col .track-info-display .np-title{order:0!important;color:var(--theme-bright-text,#fff)!important;font-size:clamp(1.13rem,2vw,1.85rem)!important;font-weight:850!important;line-height:1.2!important;letter-spacing:-.035em!important;white-space:normal!important;overflow-wrap:anywhere;max-width:100%!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.studio-showcase>.left-col .track-info-display .np-artist{order:1!important;color:var(--theme-bright,var(--accent-color))!important;font-size:clamp(.77rem,1.05vw,.98rem)!important;font-weight:550!important;letter-spacing:.015em!important;line-height:1.3!important}
.studio-showcase>.left-col .track-info-display{min-height:68px!important;gap:5px!important}
/* Default mountain artwork adapts to the selected palette. Actual album images retain original colors. */
.studio-showcase[data-showcase-tint="purple"] .showcase-sunset-art{filter:hue-rotate(26deg) saturate(1.37) contrast(1.07)!important}
.studio-showcase[data-showcase-tint="blue"] .showcase-sunset-art{filter:hue-rotate(105deg) saturate(1.35) contrast(1.05)!important}
.studio-showcase[data-showcase-tint="green"] .showcase-sunset-art{filter:hue-rotate(195deg) saturate(1.2) contrast(1.06)!important}
.studio-showcase[data-showcase-tint="red"] .showcase-sunset-art{filter:hue-rotate(-43deg) saturate(1.45) contrast(1.05)!important}
.studio-showcase[data-showcase-tint="brown"] .showcase-sunset-art{filter:hue-rotate(-18deg) saturate(.96) contrast(1.05)!important}
@media(min-width:769px){
 .main-container.studio-showcase.showcase-nav-collapsed{grid-template-columns:76px minmax(270px,35%) minmax(0,1fr)!important}
 .main-container.studio-showcase.showcase-nav-collapsed.showcase-wave-only{grid-template-columns:76px minmax(0,1fr)!important}
 .studio-showcase.showcase-nav-collapsed>.showcase-sidebar{padding:10px 7px!important;overflow-x:hidden!important}
 .studio-showcase.showcase-nav-collapsed .showcase-brand{flex-direction:column;gap:8px;padding:4px 0 12px;align-items:center}
 .studio-showcase.showcase-nav-collapsed .showcase-brand-icon{width:39px;height:39px;min-width:39px}
 .studio-showcase.showcase-nav-collapsed .showcase-brand-text,.studio-showcase.showcase-nav-collapsed .showcase-nav-btn span,.studio-showcase.showcase-nav-collapsed .showcase-sidebar-bottom{display:none!important}
 .studio-showcase.showcase-nav-collapsed .showcase-rail-toggle{width:45px;min-width:45px;height:39px}
 .studio-showcase.showcase-nav-collapsed .showcase-nav-btn{justify-content:center!important;padding:0!important;min-height:49px!important;border-radius:13px!important}
 .studio-showcase.showcase-nav-collapsed .showcase-nav-btn i{flex:0 0 auto;width:auto;font-size:1.2rem}
 .studio-showcase.showcase-nav-collapsed .showcase-menu{gap:7px!important}
 .studio-showcase.showcase-nav-collapsed.showcase-wave-only>.left-col{grid-column:2!important}
}
@media(min-width:769px) and (max-height:720px){
 .studio-showcase .showcase-curations .showcase-center-card{min-height:67px!important}
 .studio-showcase .showcase-curations .showcase-center-card .showcase-card-art{min-height:67px!important}
 .studio-showcase>.left-col .track-info-display .np-title{font-size:clamp(1.02rem,1.55vw,1.44rem)!important}
 .studio-showcase>.left-col .track-info-display .np-artist{font-size:clamp(.72rem,.9vw,.9rem)!important}
}
@media(max-width:768px){
 html:has(.studio-showcase),body:has(.studio-showcase){height:100%;overflow:hidden!important}
 .main-container.studio-showcase{height:100dvh!important;max-height:100dvh!important;overflow:hidden!important}
 .studio-showcase>.left-col{height:clamp(390px,calc(60dvh + var(--dag-safe-top)),560px)!important;min-height:0!important;flex:0 0 clamp(390px,calc(60dvh + var(--dag-safe-top)),560px)!important;overflow:hidden!important;padding-top:calc(var(--dag-safe-top) + 78px)!important}
 .studio-showcase>.left-col .visual-container{min-height:90px!important}
 .studio-showcase>.left-col .vinyl-wrapper{width:min(40vw,23dvh,205px)!important;height:min(40vw,23dvh,205px)!important;min-width:100px!important;min-height:100px!important}
 .studio-showcase>.left-col .track-info-display{min-height:60px!important;padding:0 45px!important}
 .studio-showcase>.left-col .track-info-display .np-title{font-size:clamp(1rem,4.9vw,1.35rem)!important}
 .studio-showcase>.left-col .track-info-display .np-artist{font-size:.78rem!important}
 .studio-showcase>.left-col .main-btns .c-btn{min-width:43px!important;width:43px!important;height:43px!important}
 .studio-showcase>.left-col .main-btns .play-btn{min-width:57px!important;width:57px!important;height:57px!important}
 .studio-showcase .showcase-list-toggle{min-height:40px!important;padding:6px 13px!important;font-size:.74rem!important}
 .studio-showcase>.right-col{order:2!important;flex:1 1 auto!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
 .studio-showcase>.right-col .showcase-curations{height:auto!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch;flex:1!important;padding-bottom:calc(18px + var(--dag-safe-bottom))!important}
 .studio-showcase>.right-col.showcase-list .playlist-area{height:auto!important;min-height:0!important;flex:1!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch}
 .studio-showcase>.right-col.showcase-list .right-col-header{flex:0 0 auto!important}
 .studio-showcase .showcase-mobile-topbar{display:block;position:fixed;top:0;left:0;right:0;height:calc(var(--dag-safe-top) + 122px);z-index:165;pointer-events:none;border:0;box-shadow:none;background:radial-gradient(ellipse 85% 85% at 50% 0%,rgba(var(--theme-rgb,192,108,66),.15),transparent 95%),linear-gradient(180deg,var(--theme-shell-a,#111723) 0%,rgba(8,12,20,.93) 43%,rgba(8,12,20,.49) 74%,rgba(8,12,20,0) 100%)}
 .studio-showcase>.showcase-mobile-toggle{width:48px!important;height:48px!important;right:calc(env(safe-area-inset-right,0px) + 10px)!important;top:calc(var(--dag-safe-top) + 9px)!important;border:1px solid rgba(var(--theme-rgb,192,108,66),.7)!important;background:linear-gradient(145deg,rgba(var(--theme-rgb,192,108,66),.24),rgba(11,17,28,.82))!important;color:var(--theme-bright-text,#fff)!important;box-shadow:0 8px 24px #0007,inset 0 1px 0 #ffffff22;z-index:180!important}
 .studio-showcase .showcase-mobile-tools{display:flex!important;position:fixed!important;left:calc(env(safe-area-inset-left,0px) + 10px);top:calc(var(--dag-safe-top) + 9px);gap:8px;z-index:180!important}
 .studio-showcase .showcase-mobile-action{width:48px;height:48px;display:grid;place-items:center;border:1px solid rgba(var(--theme-rgb,192,108,66),.7);border-radius:14px;background:linear-gradient(145deg,rgba(var(--theme-rgb,192,108,66),.24),rgba(11,17,28,.82));color:var(--theme-bright-text,#fff);font-size:1.17rem;box-shadow:0 8px 24px #0007,inset 0 1px 0 #ffffff22}
 .studio-showcase .showcase-mobile-action:active{background:rgba(var(--theme-rgb,192,108,66),.32)}
 .studio-showcase>.showcase-sidebar{z-index:200!important;width:min(315px,88vw)!important}
 .studio-showcase>.showcase-mobile-shade{z-index:190!important}
 .studio-showcase .showcase-nav-btn{min-height:50px!important;font-size:.91rem!important}
 .studio-showcase .showcase-rail-toggle{display:none}
 .studio-showcase .showcase-curations .showcase-center-card-settings{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;flex-basis:48px!important}
 .studio-showcase .showcase-curation-card{min-height:82px!important}
 .studio-showcase.showcase-wave-only>.left-col{height:100dvh!important;flex-basis:100dvh!important;padding-top:calc(var(--dag-safe-top) + 78px)!important}
 .studio-showcase.showcase-wave-only>.right-col{display:none!important}
}
@media(max-width:380px) and (max-height:690px){
 .studio-showcase>.left-col{height:clamp(365px,calc(62dvh + var(--dag-safe-top)),465px)!important;flex-basis:clamp(365px,calc(62dvh + var(--dag-safe-top)),465px)!important}
 .studio-showcase>.left-col .vinyl-wrapper{width:min(33vw,20dvh,145px)!important;height:min(33vw,20dvh,145px)!important;min-width:90px!important;min-height:90px!important}
 .studio-showcase>.left-col .main-btns{gap:5px!important}
 .studio-showcase>.left-col .main-btns .c-btn{width:39px!important;min-width:39px!important;height:39px!important}
}
/* Short CC3 screens: 46px finger targets without a scrolling sidebar. */
@media(min-width:769px) and (max-height:540px){
 .studio-showcase>.showcase-sidebar{padding:4px 8px!important}
 .studio-showcase .showcase-brand{height:35px!important;min-height:35px!important;max-height:35px!important;margin:0!important;padding:0!important;gap:5px!important}
 .studio-showcase .showcase-brand-icon{width:30px!important;height:30px!important;min-width:30px!important}
 .studio-showcase .showcase-rail-toggle{width:32px;height:32px;min-width:32px}
 .studio-showcase .showcase-menu{gap:0!important}
 .studio-showcase .showcase-nav-btn{height:46px!important;min-height:46px!important;max-height:46px!important;padding:0 10px!important}
 .studio-showcase .showcase-sidebar-bottom{display:none!important}
}
@media(min-width:769px) and (min-height:541px) and (max-height:680px){
 .studio-showcase>.showcase-sidebar{padding:9px 10px!important}
 .studio-showcase .showcase-brand{height:46px!important;min-height:46px!important;max-height:46px!important;margin:0!important;padding:0!important}
 .studio-showcase .showcase-brand-icon{width:38px!important;height:38px!important;min-width:38px!important}
 .studio-showcase .showcase-rail-toggle{height:38px}
 .studio-showcase .showcase-menu{gap:0!important}
 .studio-showcase .showcase-nav-btn{height:46px!important;min-height:46px!important;max-height:46px!important;padding:0 10px!important}
 .studio-showcase .showcase-sidebar-bottom{padding:5px 0 0!important;gap:0!important}
 .studio-showcase .showcase-road-heading,.studio-showcase .showcase-sidebar-bottom p{display:none!important}
 .studio-showcase .showcase-cache-action{min-height:44px!important;padding:7px 10px!important}
}
/* Queue: right-hand drawer with comfortable reorder controls. */
#queue-modal .studio-queue-dialog{max-width:min(490px,100vw)!important;padding:25px 18px!important}
#queue-modal .studio-queue-hint{color:var(--theme-muted,#bbb);font-size:.84rem;line-height:1.5;margin:8px 8px 18px}
#queue-modal .queue-list{display:flex;flex-direction:column;gap:10px;overflow-y:auto;min-height:80px;max-height:calc(100dvh - 240px);padding:2px 3px 10px;overscroll-behavior:contain}
#queue-modal .queue-row{display:grid;grid-template-columns:minmax(0,1fr) repeat(4,43px);gap:6px;padding:10px;border:1px solid rgba(var(--theme-rgb,192,108,66),.3);border-radius:15px;background:linear-gradient(120deg,rgba(var(--theme-rgb,192,108,66),.15),var(--theme-surface,#171821))}
#queue-modal .queue-name{font-size:.86rem;min-width:0;line-height:1.38;overflow-wrap:anywhere;color:var(--theme-bright-text,#fff)}
#queue-modal .queue-mini-btn{width:43px;height:43px;min-width:43px;min-height:43px;padding:0;border-radius:12px;background:rgba(var(--theme-rgb,192,108,66),.14);color:var(--theme-bright,#dfbaeb);border:1px solid rgba(var(--theme-rgb,192,108,66),.32);font-size:1.05rem}
#queue-modal .queue-mini-btn:disabled{opacity:.25}
#queue-modal .queue-empty{border:1px dashed var(--theme-border,#444);border-radius:16px;background:rgba(var(--theme-rgb,192,108,66),.06);text-align:center;padding:30px 12px}
@media(max-width:500px){#queue-modal .queue-row{grid-template-columns:repeat(4,minmax(0,1fr))}#queue-modal .queue-name{grid-column:1/-1;font-size:.89rem}#queue-modal .queue-mini-btn{width:100%;min-width:0}#queue-modal .queue-list{max-height:calc(100dvh - 260px)}}
/* Full-viewport playlist editor. Scrolling is contained inside its panels. */
.playlist-editor-page[hidden]{display:none!important}
.playlist-editor-page{--touch-accent:var(--theme-bright,var(--accent-color,#dc9d82));display:none;position:fixed;inset:0;z-index:950;width:100vw;height:100dvh;background:radial-gradient(ellipse at 18% 4%,rgba(var(--theme-rgb,192,108,66),.19),transparent 50%),linear-gradient(145deg,var(--theme-left-a,#19171f),var(--theme-page,#090a0e) 72%);color:var(--theme-bright-text,#f6f3f8);font-family:Inter,Arial,sans-serif;overflow:hidden}
.playlist-editor-page.show{display:block}
.playlist-editor-shell{display:flex;flex-direction:column;height:100%;min-height:0;max-width:1650px;margin:0 auto;padding:12px clamp(12px,2vw,30px) 17px;box-sizing:border-box}
.playlist-editor-header{display:flex;align-items:center;gap:20px;min-height:68px;flex:0 0 auto;border-bottom:1px solid rgba(var(--theme-rgb,192,108,66),.28);padding-bottom:11px}
.playlist-editor-header>div{flex:1;min-width:0}
.playlist-editor-header h2{font-size:clamp(1.17rem,2vw,1.7rem);line-height:1.2;margin:3px 0 0}
.playlist-editor-back,.playlist-editor-done,.playlist-editor-name-row button{border:1px solid rgba(var(--theme-rgb,192,108,66),.45);border-radius:13px;background:rgba(var(--theme-rgb,192,108,66),.12);color:var(--theme-bright-text,#fff);min-height:47px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:9px 18px;cursor:pointer;font-size:.83rem;font-weight:750}
.playlist-editor-back i{color:var(--touch-accent)}
.playlist-editor-done{background:linear-gradient(115deg,var(--theme-bright,var(--accent-color)),var(--accent-color));color:var(--theme-on-accent,#120d12);border-color:transparent}
.playlist-editor-columns{display:grid;grid-template-columns:minmax(340px,.95fr) minmax(0,1.05fr);gap:clamp(11px,2vw,28px);flex:1;min-height:0;padding-top:18px}
.playlist-editor-settings,.playlist-editor-tracks{border:1px solid rgba(var(--theme-rgb,192,108,66),.28);background:linear-gradient(145deg,rgba(var(--theme-rgb,192,108,66),.08),rgba(255,255,255,.015));border-radius:20px;padding:clamp(12px,1.5vw,24px);min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:var(--theme-outline,#585160) transparent}
.playlist-editor-cover-row{display:flex;gap:18px;align-items:center;min-width:0;margin-bottom:21px}
.playlist-editor-cover{width:clamp(135px,16vw,230px);aspect-ratio:1;flex:0 0 clamp(135px,16vw,230px);display:grid;place-items:center;position:relative;overflow:hidden;border-radius:22px;border:2px solid var(--touch-accent);background:radial-gradient(circle at 25% 20%,rgba(var(--theme-rgb,192,108,66),.4),transparent 60%),linear-gradient(135deg,var(--theme-surface,#23212c),var(--theme-page,#0b0b10));box-shadow:0 0 28px rgba(var(--theme-rgb,192,108,66),.17)}
.playlist-editor-cover img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.playlist-editor-cover img[hidden],.playlist-editor-cover i[hidden]{display:none!important}
.playlist-editor-cover i{font-size:3rem;color:var(--touch-accent)}
.playlist-editor-cover-controls{min-width:0;flex:1}
.playlist-editor-cover-controls>strong{display:block;font-size:1.15rem;font-weight:850}
.playlist-editor-cover-controls p{font-size:.82rem;color:var(--theme-muted,#b4a8b4);line-height:1.5;margin:7px 0 12px}
.playlist-editor-cover-buttons{display:flex;flex-wrap:wrap;gap:9px}
.playlist-editor-cover-buttons button{display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:9px 12px;border-radius:12px;cursor:pointer;font-size:.77rem;font-weight:750;border:1px solid var(--theme-middle,#bd85cc);background:rgba(var(--theme-rgb,192,108,66),.18);color:var(--theme-bright-text,#fff)}
.playlist-editor-cover-buttons button:first-child{background:var(--theme-middle,var(--accent-color));color:var(--theme-on-accent,#101015)}
.playlist-editor-cover-buttons button:disabled{opacity:.42;cursor:not-allowed}
.playlist-editor-cover-controls small{display:block;margin-top:9px;color:var(--theme-muted,#b4a5b7);line-height:1.4;font-size:.7rem}
.playlist-editor-field{display:block;font-size:.81rem;font-weight:800;margin-bottom:9px;color:var(--theme-bright,#efc0ff)}
.playlist-editor-name-row{display:flex;gap:8px;align-items:center}
.playlist-editor-name-row .tm-rename-input{flex:1;min-width:0;margin:0!important;font-size:1rem;min-height:48px;background:var(--theme-field,#12131b);border:1px solid var(--theme-border,#514657);border-radius:12px;color:var(--theme-bright-text,#fff);padding:10px 13px}
.playlist-editor-name-row button{flex:0 0 auto}
.playlist-editor-page .playlist-icon-editor{margin:18px 0;padding:13px}
.playlist-editor-page .playlist-icon-grid{grid-template-columns:repeat(9,minmax(0,1fr));gap:6px}
.playlist-editor-page .playlist-icon-choice{min-height:44px;height:44px}
.playlist-editor-page .studio-likes-exclusion{display:flex;align-items:flex-start;gap:10px;border:1px solid var(--theme-border,#514657);border-radius:15px;padding:15px;background:rgba(var(--theme-rgb,192,108,66),.09)}
.playlist-editor-page .studio-likes-exclusion input{width:22px;height:22px;flex:0 0 22px;accent-color:var(--theme-bright,var(--accent-color))}
.playlist-editor-page .studio-likes-exclusion strong{display:block;font-size:.83rem}
.playlist-editor-page .studio-likes-exclusion small{display:block;color:var(--theme-muted,#b4adbd);font-size:.74rem;line-height:1.5;margin-top:4px}
.playlist-editor-tracks{display:flex;flex-direction:column;gap:13px}
.playlist-editor-tracks-heading h3{font-size:1.14rem;line-height:1.2;margin:4px 0 0}
.playlist-editor-tracks-heading h3 span{color:var(--touch-accent);font-size:.86rem}
.playlist-editor-page .tm-actions-bar{display:flex!important;gap:10px!important;flex-wrap:wrap;flex:0 0 auto;margin:0!important}
.playlist-editor-page .tm-act-btn{display:inline-flex!important;align-items:center;justify-content:center;gap:9px;flex:1 1 170px;min-height:49px;padding:10px 12px;border-radius:13px;font-size:.85rem;font-weight:750;color:var(--theme-bright-text,#fff);background:rgba(var(--theme-rgb,192,108,66),.16);border:1px solid rgba(var(--theme-rgb,192,108,66),.48)}
.playlist-editor-page #tm-add-link-area[hidden]{display:none!important}
.playlist-editor-page #tm-add-link-area{flex:0 0 auto;padding:12px;border-radius:13px;background:rgba(var(--theme-rgb,192,108,66),.08);border:1px solid var(--theme-border,#444)}
.playlist-editor-page #tm-add-link-area input{margin:0 0 8px;min-height:45px;text-align:left}
.playlist-editor-page #track-manage-list{display:flex;flex-direction:column;gap:8px;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:3px}
.playlist-editor-page .tm-row{min-height:57px;padding:9px 11px;border-radius:13px;background:rgba(var(--theme-rgb,192,108,66),.07);border:1px solid rgba(var(--theme-rgb,192,108,66),.21)}
.playlist-editor-page .tm-del{min-width:46px;min-height:46px;border-radius:12px;display:grid;place-items:center}
@media(max-width:950px){.playlist-editor-cover-row{flex-direction:column;align-items:flex-start}.playlist-editor-cover{width:150px;flex-basis:150px}.playlist-editor-page .playlist-icon-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:700px){
 .playlist-editor-shell{padding:8px 9px 11px}
 .playlist-editor-header{min-height:60px;gap:8px;padding-bottom:7px}
 .playlist-editor-back,.playlist-editor-done{padding:8px 10px;min-height:45px;font-size:.76rem}
 .playlist-editor-header h2{font-size:1.02rem}
 .playlist-editor-header .studio-drawer-eyebrow{font-size:.58rem}
 .playlist-editor-columns{display:flex;flex-direction:column;gap:12px;overflow-y:auto;overscroll-behavior:contain;padding-top:10px}
 .playlist-editor-settings,.playlist-editor-tracks{min-height:auto;overflow:visible;flex:0 0 auto;padding:12px;border-radius:16px}
 .playlist-editor-cover-row{flex-direction:row;align-items:center;gap:12px;margin-bottom:15px}
 .playlist-editor-cover{width:115px;flex:0 0 115px;border-radius:16px}
 .playlist-editor-cover-controls>strong{font-size:.96rem}
 .playlist-editor-cover-controls p{font-size:.7rem;line-height:1.35;margin:4px 0 7px}
 .playlist-editor-cover-buttons{gap:5px}
 .playlist-editor-cover-buttons button{font-size:.71rem;min-height:42px;padding:7px}
 .playlist-editor-name-row button span{display:none}
 .playlist-editor-name-row button{min-width:48px}
 .playlist-editor-page #track-manage-list{overflow:visible;min-height:100px}
}
@media(max-height:580px) and (min-width:701px){
 .playlist-editor-shell{padding-top:5px;padding-bottom:8px}
 .playlist-editor-header{min-height:54px;padding-bottom:5px}
 .playlist-editor-columns{padding-top:8px}
 .playlist-editor-cover-row{flex-direction:row;margin-bottom:7px}
 .playlist-editor-cover{width:105px;flex-basis:105px}
 .playlist-editor-page .playlist-icon-editor{margin:8px 0;padding:9px}
 .playlist-editor-page .playlist-icon-choice{height:35px;min-height:35px}
}
@media(prefers-reduced-motion:reduce){.studio-showcase *,.playlist-editor-page *{scroll-behavior:auto!important;transition-duration:0s!important}}

/* The wave launch action belongs at the exact center of the circular artwork.
   Keep only the section heading above it; the ornamental slogan is gone. */
.studio-showcase>.left-col .vinyl-wave-play{top:50%!important;left:50%!important}
.studio-showcase .showcase-hero-copy h1{margin:0!important;line-height:1.12!important;letter-spacing:-.045em!important;text-shadow:0 5px 24px #000c,0 0 26px rgba(var(--theme-rgb,192,108,66),.24)}


/* Search must remain visible when the real list replaces the home cards. */
.studio-showcase>.right-col.showcase-list #search-container-box{
 display:block!important;flex:0 0 auto;position:relative;z-index:2;
 width:auto;min-width:0;margin:3px 12px 8px!important;
}
.studio-showcase>.right-col.showcase-list #search-container-box .search-input{
 display:block!important;width:100%;box-sizing:border-box;
 min-height:48px!important;font-size:16px!important;
 border:1px solid rgba(var(--theme-rgb,192,108,66),.48)!important;
 border-radius:14px!important;
}
.studio-showcase>.right-col.showcase-curated #search-container-box,
.studio-showcase>.right-col.showcase-curated #dag-search-status{display:none!important}
.dag-search-status{
 display:flex;align-items:center;justify-content:space-between;gap:10px;
 min-height:30px;margin:0 12px 9px;padding:7px 12px;border-radius:11px;
 background:rgba(var(--theme-rgb,192,108,66),.085);
 color:var(--theme-muted,#bec0c6);font-size:.75rem;line-height:1.45;
}
.dag-search-status[hidden]{display:none!important}
.dag-search-status button{
 flex-shrink:0;min-height:42px;padding:8px 14px;cursor:pointer;
 border:1px solid rgba(var(--theme-rgb,192,108,66),.6);
 color:var(--theme-bright-text,#fff);background:rgba(var(--theme-rgb,192,108,66),.22);
 border-radius:11px;font-size:.78rem;font-weight:750;
}
.dag-search-empty{
 color:var(--theme-muted,#bec0c6);margin:15px 8px;padding:24px 10px;
 font-size:.9rem;line-height:1.55;text-align:center;
}
/* The logo, title and expand button must never compete for the same 90px. */
@media(min-width:769px) and (max-width:1199px){
 .studio-showcase:not(.showcase-nav-collapsed) .showcase-brand-icon{
  display:none!important;
 }
 .studio-showcase:not(.showcase-nav-collapsed) .showcase-brand{
  width:100%;min-width:0;box-sizing:border-box;
 }
 .studio-showcase:not(.showcase-nav-collapsed) .showcase-brand-text{
  flex:1;min-width:0;overflow:visible!important;
 }
 .studio-showcase:not(.showcase-nav-collapsed) .showcase-brand-text strong{
  font-size:clamp(.74rem,1.08vw,.89rem)!important;
  letter-spacing:-.025em!important;white-space:nowrap!important;
 }
 .studio-showcase:not(.showcase-nav-collapsed) .showcase-brand-text small{
  font-size:.54rem!important;letter-spacing:.19em!important;
 }
}


/* 2309: keep network/search feedback below the field, not beside it. */
.studio-showcase>.right-col.showcase-list #search-container-box{
 box-sizing:border-box!important;max-width:calc(100% - 20px)!important;
 width:calc(100% - 20px)!important;margin:4px 10px 8px!important;
 padding:0!important;min-width:0!important;flex:0 0 auto!important;
}
.studio-showcase #search-container-box .dag-search-status{
 box-sizing:border-box!important;width:100%!important;max-width:100%!important;
 display:flex!important;flex-wrap:wrap!important;align-items:center!important;
 justify-content:space-between!important;gap:8px!important;
 margin:8px 0 0!important;padding:9px 11px!important;min-width:0!important;
 background:rgba(var(--theme-rgb,192,108,66),.09);
 border:1px solid rgba(var(--theme-rgb,192,108,66),.19);
 border-radius:12px;
}
.studio-showcase #search-container-box .dag-search-status[hidden]{display:none!important}
.studio-showcase #search-container-box .dag-search-status span{
 display:block;flex:1 1 135px;min-width:0;white-space:normal!important;
 overflow-wrap:anywhere!important;word-break:normal!important;
 line-height:1.45;
}
.studio-showcase #search-container-box .dag-search-status button{
 flex:0 0 auto;min-height:43px;max-width:100%;white-space:normal;
}
@media(max-width:580px){
 .studio-showcase #search-container-box .dag-search-status button{
  width:100%;min-height:44px!important;
 }
}
/* Expanded nav: provide enough room for the last letter of DAGSTUDIO. */
@media(min-width:1200px) and (max-width:1600px){
 .studio-showcase:not(.showcase-nav-collapsed) .showcase-brand{
  gap:4px!important;padding-left:0!important;padding-right:0!important;
  width:100%;box-sizing:border-box;min-width:0!important;
 }
 .studio-showcase:not(.showcase-nav-collapsed) .showcase-brand-icon{
  width:29px!important;height:29px!important;min-width:29px!important;
 }
 .studio-showcase:not(.showcase-nav-collapsed) .showcase-brand-text{
  min-width:0!important;flex:1 1 auto!important;overflow:visible!important;
 }
 .studio-showcase:not(.showcase-nav-collapsed) .showcase-brand-text strong{
  font-size:clamp(.68rem,.82vw,.84rem)!important;letter-spacing:-.045em!important;
  white-space:nowrap!important;
 }
 .studio-showcase:not(.showcase-nav-collapsed) .showcase-brand-text small{
  font-size:.47rem!important;letter-spacing:.18em!important;white-space:nowrap;
 }
 .studio-showcase:not(.showcase-nav-collapsed) .showcase-rail-toggle{
  min-width:29px!important;width:29px!important;height:33px!important;
 }
}
@media(min-width:769px) and (max-width:1199px){
 .studio-showcase:not(.showcase-nav-collapsed) .showcase-brand-text strong{
  font-size:clamp(.68rem,1.05vw,.81rem)!important;
 }
 .studio-showcase:not(.showcase-nav-collapsed) .showcase-rail-toggle{
  min-width:29px!important;width:29px!important;
 }
}
#alert-modal .modal-box{
 width:min(440px,calc(100vw - 24px))!important;
 max-height:min(86dvh,650px)!important;overflow-y:auto!important;
 box-sizing:border-box!important;
}
#alert-modal #alert-msg{max-width:100%;overflow-wrap:anywhere;line-height:1.5}


/* 2311 · Touch-first unified search across desktop, iPhone and TEYES CC3 */
.studio-showcase>.right-col.showcase-list #search-container-box{
 display:flex!important;flex-direction:column!important;align-items:stretch!important;
 width:calc(100% - 20px)!important;max-width:calc(100% - 20px)!important;
 margin:7px 10px 10px!important;gap:0!important;
 padding:10px!important;border-radius:17px!important;
 border:1px solid rgba(var(--theme-rgb,192,108,66),.29)!important;
 background:linear-gradient(135deg,rgba(var(--theme-rgb,192,108,66),.14),
  rgba(var(--theme-rgb,192,108,66),.035) 60%,rgba(6,9,16,.38))!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 5px 18px rgba(0,0,0,.14);
}
.studio-showcase #search-container-box .dag-search-heading{
 display:flex!important;align-items:center;justify-content:space-between;
 gap:6px;margin:0 1px 9px;min-width:0;white-space:normal;
}
.studio-showcase .dag-search-heading span{
 color:var(--theme-bright,#e5a078);font-weight:850;font-size:.63rem;
 letter-spacing:.105em;
}
.studio-showcase .dag-search-heading small{
 color:var(--theme-muted,#b7bac2);font-size:.61rem;line-height:1.25;
 text-align:right;
}
.studio-showcase .dag-search-field{
 display:flex!important;align-items:center!important;gap:9px;
 width:100%!important;max-width:100%!important;min-width:0!important;
 padding:0 10px 0 12px!important;box-sizing:border-box!important;
 min-height:52px;border-radius:14px;
 background:rgba(5,10,16,.6);
 border:1px solid rgba(var(--theme-rgb,192,108,66),.42);
 box-shadow:inset 0 1px 2px rgba(0,0,0,.28);
 transition:border-color .15s,background .15s,box-shadow .15s;
}
.studio-showcase .dag-search-field:focus-within{
 background:rgba(var(--theme-rgb,192,108,66),.09);
 border-color:var(--theme-bright,#e5a078)!important;
 box-shadow:0 0 0 3px rgba(var(--theme-rgb,192,108,66),.15);
}
.studio-showcase .dag-search-glass{
 flex:0 0 18px;width:18px;text-align:center;
 color:var(--theme-bright,#e5a078);font-size:.97rem;
}
.studio-showcase>.right-col.showcase-list .dag-search-field #search-input{
 display:block!important;min-width:0!important;flex:1 1 auto!important;
 width:100%!important;height:50px!important;min-height:50px!important;
 margin:0!important;padding:0!important;border:none!important;
 background:transparent!important;box-shadow:none!important;outline:none!important;
 font-size:16px!important;font-weight:550;letter-spacing:0;
 color:var(--theme-bright-text,#f5f5f7)!important;
 -webkit-appearance:none;appearance:none;
}
.studio-showcase .dag-search-field #search-input::-webkit-search-cancel-button{
 display:none!important;
}
.studio-showcase .dag-search-field #search-input::placeholder{
 color:var(--theme-muted,#aeb1ba);opacity:.8;
}
.studio-showcase .dag-search-clear{
 display:grid!important;place-items:center;flex:0 0 39px;
 width:39px!important;height:39px!important;min-width:39px!important;
 background:rgba(var(--theme-rgb,192,108,66),.19);
 border:1px solid rgba(var(--theme-rgb,192,108,66),.34);
 border-radius:11px;cursor:pointer;color:var(--theme-bright-text,#f1f3f5);
}
.studio-showcase .dag-search-clear[hidden]{display:none!important}
.studio-showcase .dag-search-clear:active{transform:scale(.94)}
.studio-showcase #search-container-box .dag-search-status{
 align-items:center!important;padding:9px!important;margin:10px 0 0!important;
 border-radius:12px!important;gap:9px!important;
}
.studio-showcase #search-container-box .dag-search-status>i{
 color:var(--theme-bright,#e5a078);font-size:.9rem;flex:0 0 18px;text-align:center;
}
.studio-showcase #search-container-box .dag-search-status span{
 flex:1 1 145px;font-size:.73rem;line-height:1.4;
}
.studio-showcase #search-container-box .dag-search-status.is-error{
 border-color:rgba(var(--theme-rgb,192,108,66),.43)!important;
 background:rgba(var(--theme-rgb,192,108,66),.12)!important;
}
.studio-showcase #search-container-box .dag-search-status button{
 width:auto;display:inline-flex;justify-content:center;align-items:center;gap:7px;
 margin-left:auto;min-height:44px!important;
 border-color:rgba(var(--theme-rgb,192,108,66),.5);
}
.studio-showcase #search-container-box .search-suggestions{
 z-index:90;max-width:100%;box-sizing:border-box;
}
.studio-showcase .dag-search-empty{
 margin:10px 0!important;padding:20px 16px!important;
 border:1px dashed rgba(var(--theme-rgb,192,108,66),.23);
 border-radius:13px;color:var(--theme-muted,#afb3bb);
}
@media(min-width:769px) and (max-height:640px){
 .studio-showcase>.right-col.showcase-list #search-container-box{
  margin:3px 9px 6px!important;padding:7px 9px!important;
 }
 .studio-showcase .dag-search-heading{margin-bottom:5px!important}
 .studio-showcase .dag-search-field{min-height:46px!important}
 .studio-showcase>.right-col.showcase-list .dag-search-field #search-input{
  height:44px!important;min-height:44px!important;
 }
}
@media(max-width:768px){
 .studio-showcase>.right-col.showcase-list #search-container-box{
  margin:7px 10px 9px!important;padding:10px!important;
 }
 .studio-showcase .dag-search-heading small{font-size:.59rem}
 .studio-showcase .dag-search-field{min-height:52px!important}
}

/* Suppress the legacy ::before magnifier; the new search field owns its icon. */
.studio-showcase .right-col-header #search-container-box::before,
.studio-showcase #search-container-box::before,
.studio-showcase .search-container-wrap::before {
 content:none!important;display:none!important;
}
.studio-showcase .dag-search-field .dag-search-glass {
 display:inline-flex!important;align-items:center;justify-content:center;
 flex:0 0 18px;pointer-events:none;
}

/* 2314: The modern search card is its own panel, not a flex item next to
   obsolete toolbar icons. The shuffle action remains in the card heading. */
.studio-showcase>.right-col.showcase-list>.right-col-header{
 display:none!important;
}
.studio-showcase>.right-col.showcase-list #search-container-box{
 position:relative;box-sizing:border-box!important;
 width:calc(100% - 20px)!important;max-width:calc(100% - 20px)!important;
 min-width:0!important;flex:0 0 auto!important;
}
.studio-showcase #search-container-box .dag-search-heading{
 display:flex!important;align-items:center!important;flex-wrap:wrap!important;
 gap:6px 10px!important;min-width:0!important;
}
.studio-showcase #search-container-box .dag-search-heading-actions{
 display:flex;align-items:center;justify-content:flex-end;
 gap:9px;min-width:0;max-width:100%;margin-left:auto;
}
.studio-showcase #search-container-box .dag-search-heading-actions small{
 flex:1 1 auto;min-width:0;white-space:normal;overflow-wrap:break-word;
 text-align:right;
}
.studio-showcase #search-container-box .dag-search-heading-actions #smart-shuffle-btn{
 display:grid!important;place-items:center!important;
 width:40px!important;min-width:40px!important;height:40px!important;
 min-height:40px!important;flex:0 0 40px!important;
 padding:0!important;margin:0!important;border-radius:11px!important;
 background:rgba(var(--theme-rgb,192,108,66),.10)!important;
 border:1px solid rgba(var(--theme-rgb,192,108,66),.32)!important;
 box-shadow:none!important;color:var(--theme-bright,#e5a078)!important;
}
.studio-showcase #search-container-box .dag-search-heading-actions #smart-shuffle-btn:hover{
 background:rgba(var(--theme-rgb,192,108,66),.23)!important;
 border-color:var(--theme-bright,#e5a078)!important;
}
@media(max-width:450px){
 .studio-showcase #search-container-box .dag-search-heading-actions{
  flex-wrap:wrap;gap:6px;justify-content:flex-end;
 }
 .studio-showcase #search-container-box .dag-search-heading-actions small{
  font-size:.57rem;line-height:1.25;
 }
}


/* Mobile listening view: keep the song list visible without scrolling the
   entire page. The standalone Wave view remains full-screen. */
@media(max-width:768px){
 .main-container.studio-showcase.showcase-mobile-list:not(.showcase-wave-only){
  display:flex!important;flex-direction:column!important;
  height:100dvh!important;max-height:100dvh!important;
  overflow:hidden!important;overscroll-behavior:none!important;
 }
 .studio-showcase.showcase-mobile-list:not(.showcase-wave-only)>.left-col{
  min-height:0!important;
  height:clamp(205px,33dvh,285px)!important;
  max-height:clamp(205px,33dvh,285px)!important;
  flex:0 0 clamp(205px,33dvh,285px)!important;
  gap:2px!important;
  padding:calc(var(--dag-safe-top) + 57px) 10px 5px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
 }
 .studio-showcase.showcase-mobile-list>.left-col .visual-container{
  min-height:0!important;flex:1 1 30px!important;
  overflow:hidden!important;
 }
 .studio-showcase.showcase-mobile-list>.left-col .vinyl-wrapper{
  min-width:0!important;min-height:0!important;
  width:min(24vw,13dvh,104px)!important;
  height:min(24vw,13dvh,104px)!important;
  flex:0 0 auto!important;
 }
 .studio-showcase.showcase-mobile-list>.left-col .showcase-hero-copy,
 .studio-showcase.showcase-mobile-list>.left-col .showcase-hero-foot{
  display:none!important;
 }
 .studio-showcase.showcase-mobile-list>.left-col .track-info-display{
  padding:0 28px!important;min-height:35px!important;gap:1px!important;
 }
 .studio-showcase.showcase-mobile-list>.left-col .track-info-display .np-title{
  font-size:clamp(.91rem,3.7vw,1.12rem)!important;-webkit-line-clamp:1!important;
 }
 .studio-showcase.showcase-mobile-list>.left-col .progress-area{
  margin:1px 0!important;
 }
 .studio-showcase.showcase-mobile-list>.left-col .main-btns{
  gap:clamp(5px,2vw,12px)!important;margin:0!important;
 }
 .studio-showcase.showcase-mobile-list>.left-col .main-btns .c-btn{
  width:39px!important;height:39px!important;min-width:39px!important;
 }
 .studio-showcase.showcase-mobile-list>.left-col .main-btns .play-btn{
  width:49px!important;height:49px!important;min-width:49px!important;
 }
 .studio-showcase.showcase-mobile-list>.left-col .showcase-list-toggle{
  min-height:30px!important;padding:3px 12px!important;
 }
 .studio-showcase.showcase-mobile-list:not(.showcase-wave-only)>.right-col{
  display:flex!important;flex:1 1 0!important;
  height:auto!important;max-height:none!important;min-height:0!important;
  overflow:hidden!important;
 }
 .studio-showcase.showcase-mobile-list>.right-col .playlist-area,
 .studio-showcase.showcase-mobile-list>.right-col.showcase-list>.playlist-area{
  min-height:0!important;height:auto!important;max-height:none!important;
  flex:1 1 0!important;
  overflow-x:hidden!important;overflow-y:auto!important;
  padding-bottom:calc(18px + var(--dag-safe-bottom))!important;
  -webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;
 }
 .studio-showcase.showcase-mobile-list>.right-col .showcase-curations{
  overflow-y:auto!important;min-height:0!important;height:auto!important;
  flex:1 1 0!important;padding-bottom:calc(20px + var(--dag-safe-bottom))!important;
 }
 .studio-showcase.showcase-mobile-list>.right-col.showcase-list .track-row{
  min-height:59px!important;padding:9px 11px!important;
 }
}
/* Short phones should prioritize at least two scrollable song rows. */
@media(max-width:768px) and (max-height:690px){
 .studio-showcase.showcase-mobile-list:not(.showcase-wave-only)>.left-col{
  height:clamp(174px,34dvh,223px)!important;
  max-height:clamp(174px,34dvh,223px)!important;
  flex-basis:clamp(174px,34dvh,223px)!important;
 }
 .studio-showcase.showcase-mobile-list>.left-col .vinyl-wrapper{
  width:min(20vw,10dvh,72px)!important;height:min(20vw,10dvh,72px)!important;
 }
}
