@font-face{font-family:Inter;src:url('/assets/inter-regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:Inter;src:url('/assets/inter-semibold.ttf') format('truetype');font-weight:600;font-display:swap}
@font-face{font-family:Inter;src:url('/assets/inter-bold.ttf') format('truetype');font-weight:700 900;font-display:swap}
.browser-audio{position:fixed;left:0;bottom:0;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}
.browser-audio iframe{width:1px;height:1px;border:0}
:root{color-scheme:dark;--canvas:#000;--panel:#121212;--raised:#242424;--hover:#2b2b2b;--text:#fff;--muted:#b3b3b3;--green:#1ed760;--mint:#8cf5c2;--purple:#30264f;--radius:8px;--left:330px;--right:350px;--header:64px;--player:88px;--gap:8px}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--canvas);color:var(--text);font-family:Inter,Arial,sans-serif;font-size:14px}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{color:inherit;border:0;background:none;cursor:pointer}button:disabled{opacity:.35;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #fff;outline-offset:3px}a{color:inherit;text-decoration:none}button:not(:disabled),a{touch-action:manipulation}svg.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none;pointer-events:none}button:hover{color:white}img{display:block;object-fit:cover;max-width:100%}h1,h2,h3,p{margin:0}h1,h2,h3{letter-spacing:-.04em}h2{font-size:24px;line-height:1.3;font-weight:700}small{font-size:12px}::selection{background:#5b4986}::-webkit-scrollbar{width:10px;height:6px}::-webkit-scrollbar-thumb{background:#ffffff22;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#ffffff50}button.icon-btn{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;color:var(--muted);flex:none}.icon-btn:hover{background:#ffffff10;color:#fff}.icon-btn.active{color:var(--green)}.pill{border-radius:30px;background:#ffffff13;padding:8px 14px;font-size:14px;line-height:18px;white-space:nowrap}.pill:hover{background:#ffffff22}.pill.selected{background:#fff;color:#000}.solid{background:#fff;color:#000;border-radius:30px;padding:12px 22px;font-weight:700}.solid:hover{background:#eee;transform:scale(1.025)}.solid.green{background:var(--green);color:#000}.solid.green:hover{background:#3be477}.quiet{color:var(--muted)}.flex{display:flex;align-items:center}.spacer{flex:1;min-width:0}.hide{display:none!important}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.boot{height:100vh;display:flex;align-items:center;justify-content:center;gap:24px}.spinner{display:inline-block;width:22px;height:22px;border:2px solid #ffffff30;border-top-color:var(--mint);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.app-shell{height:100dvh;display:grid;grid-template-rows:var(--header) minmax(0,1fr) var(--player);gap:0}.topbar{display:flex;align-items:center;padding:0 16px;gap:12px;background:#000;position:relative;z-index:10}.brand{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:700;min-width:186px}.brand img{width:36px;height:36px;border-radius:8px}.brand small{font-size:9px;letter-spacing:.26em;color:var(--mint);display:block;margin-top:2px}.history-controls{display:flex;gap:0}.history-controls .icon-btn{width:32px}.search-dock{display:flex;align-items:center;gap:8px;position:absolute;left:50%;transform:translateX(-50%);max-width:48%;width:540px}.home-btn{width:48px!important;height:48px!important;background:#202020;color:#fff!important}.home-btn svg{width:25px;height:25px}.search-box{height:48px;display:flex;align-items:center;gap:12px;border-radius:30px;background:#202020;border:1px solid transparent;flex:1;padding:0 17px;min-width:0;transition:background .15s,border .15s}.search-box:hover{background:#282828;border-color:#444}.search-box:focus-within{border:2px solid #fff;padding:0 16px}.search-box input{border:0;background:none;color:#fff;outline:0!important;width:100%;min-width:0;font-size:15px}.search-box input::placeholder{color:#b3b3b3}.search-box .icon{color:var(--muted);width:23px;height:23px}.search-key{font-size:11px;border:1px solid #5a5a5a;border-radius:4px;padding:2px 5px;color:var(--muted)}.top-tools{margin-left:auto;display:flex;gap:8px;align-items:center}.connection{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted);margin-right:8px}.connection span{width:6px;height:6px;background:var(--green);border-radius:50%}.connection.offline span{background:#f3aa48}.profile-btn{background:#202020;border-radius:50%;width:48px;height:48px;padding:7px}.profile-btn>span{background:#ff6437;border-radius:50%;color:#101010;width:34px;height:34px;display:grid;place-items:center;font-weight:700}.profile-btn:hover{transform:scale(1.04)}
.workspace{display:grid;grid-template-columns:var(--left) minmax(0,1fr) var(--right);gap:var(--gap);padding:0 8px;min-height:0;position:relative}.workspace.no-right{grid-template-columns:var(--left) minmax(0,1fr)}.workspace.collapsed{--left:72px}.panel{background:var(--panel);border-radius:var(--radius);min-width:0;min-height:0;overflow:hidden}.library{display:flex;flex-direction:column;padding:12px 8px 8px}.library-head{display:flex;align-items:center;gap:5px;padding:0 8px 8px;min-height:44px}.library-title{font-weight:700;display:flex;gap:10px;align-items:center;flex:1;text-align:left}.library-title .icon{width:21px;color:#b3b3b3}.create-btn{display:flex;align-items:center;gap:7px;background:#222;border-radius:30px;padding:9px 13px;font-weight:700}.create-btn:hover{background:#303030}.create-btn .icon{width:18px;height:18px}.library-filters{padding:7px 8px 10px;display:flex;gap:8px}.library-sort{display:flex;justify-content:space-between;align-items:center;padding:0 4px 8px;color:var(--muted)}.library-sort input{min-width:0;width:120px;background:none;border:0;outline:0;color:white;padding:6px;display:none}.library-sort.searching input{display:block}.sort-btn{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}.sort-btn .icon{width:16px;height:16px}.library-items{overflow:auto;flex:1}.library-item{display:flex;align-items:center;gap:12px;padding:9px 8px;width:100%;text-align:left;border-radius:5px;min-height:68px}.library-item:hover,.library-item.selected{background:#ffffff0c}.library-art{width:48px;height:48px;border-radius:4px;flex:none;background:var(--raised);display:grid;place-items:center}.library-art img{width:100%;height:100%;border-radius:4px;object-fit:cover}.library-art .icon{width:24px;height:24px}.liked-art{background:linear-gradient(135deg,#450af5 0%,#8769de 52%,#c4efd9 100%);color:#fff}.liked-art .icon{fill:currentColor;stroke:none}.library-info{min-width:0;flex:1}.library-info strong{font-size:14px;font-weight:600;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:6px}.library-info p{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:4px}.library-info .icon{width:12px;height:12px;color:var(--green)}.library-bottom{padding:24px 10px 12px}.library-bottom p{font-size:12px;line-height:1.7;color:#858585}.library-bottom a:hover{color:white}.collapsed .library-head{padding:0;justify-content:center}.collapsed .library-title{flex:0}.collapsed .library-title span,.collapsed .library-filters,.collapsed .library-sort,.collapsed .create-btn,.collapsed .library-head>.icon-btn,.collapsed .library-info,.collapsed .library-bottom{display:none}.collapsed .library-item{padding:8px 4px;justify-content:center}.collapsed .library-art{width:48px}
.main-panel{position:relative;overflow:auto;scroll-behavior:smooth;background:linear-gradient(180deg,#30264f 0,#201c30 180px,#121212 450px);container-type:inline-size}.page{padding:20px 32px 54px;min-height:100%;animation:page-in .24s cubic-bezier(.2,.7,.3,1)}
@keyframes page-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}.page-tabs{display:flex;gap:8px;margin-bottom:16px}.quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:38px}.quick-tile{display:flex;align-items:center;min-width:0;min-height:48px;background:#ffffff13;border-radius:4px;text-align:left;overflow:hidden;position:relative;transition:background .2s}.quick-tile:hover{background:#ffffff25}.quick-tile .quick-art{width:48px;height:48px;flex:none;display:grid;place-items:center}.quick-art img{width:100%;height:100%;object-fit:cover}.quick-art .icon{fill:currentColor;stroke:none}.quick-tile strong{padding:0 12px;white-space:normal;font-size:13px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-weight:700}.quick-tile .quick-play{position:absolute;right:9px;width:32px;height:32px;background:var(--green);border-radius:50%;color:#000;display:none;align-items:center;justify-content:center}.quick-tile:hover .quick-play{display:flex}.quick-play .icon{width:16px;height:16px;fill:#000}.shelf{margin-bottom:35px}.section-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:17px}.section-head .eyebrow{display:block;font-size:12px;color:var(--muted);letter-spacing:0;margin-bottom:4px}.section-head>button{font-size:12px;font-weight:700;color:var(--muted);padding:4px 0;white-space:nowrap}.section-head>button:hover{text-decoration:underline}.shelf-track{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 64px)/5);gap:16px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;padding:0 0 5px;scroll-snap-type:x proximity}.shelf-track::-webkit-scrollbar{display:none}.music-card{position:relative;text-align:left;min-width:0;border-radius:7px;scroll-snap-align:start;padding:8px;margin:-8px;transition:background .15s;isolation:isolate}.music-card:hover{background:#ffffff0a}.cover-wrap{aspect-ratio:1;position:relative;border-radius:6px;overflow:hidden;background:linear-gradient(135deg,#42396b,#2e5360);box-shadow:0 6px 24px #0004;margin-bottom:12px}.cover-wrap img{width:100%;height:100%;object-fit:cover;transition:transform .3s}.music-card:hover .cover-wrap img{transform:scale(1.025)}.cover-wrap .art-fallback{font-size:40px}.card-title{display:block;width:100%;max-width:100%;text-align:left;line-height:1.45;font-size:14px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:600}.card-by{color:var(--muted);font-size:12px;line-height:1.6;margin-top:5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:36px}.card-play{position:absolute;right:8px;bottom:8px;width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#000;background:var(--green);opacity:0;transform:translateY(6px);transition:opacity .15s,transform .15s;box-shadow:0 8px 15px #0006;z-index:2}.card-play .icon{fill:#000;stroke-width:1.3;width:22px;height:22px}.music-card:hover .card-play,.music-card:focus-within .card-play{opacity:1;transform:translateY(0)}.card-play:hover{background:#3be477;scale:1.06}.card-menu{position:absolute;right:6px;top:7px;z-index:3;opacity:0;background:#0008!important;color:white!important;width:30px!important;height:30px!important}.music-card:hover .card-menu,.music-card:focus-within .card-menu{opacity:1}.art-fallback{width:100%;height:100%;display:grid;place-items:center;background:linear-gradient(135deg,#514273,#29454c);color:#ffffffcf;font-size:24px;font-weight:700}.hero-banner{background:linear-gradient(125deg,#164f39,#132c27 60%,#101f1f);min-height:185px;border-radius:8px;padding:28px;display:flex;align-items:center;position:relative;overflow:hidden;margin-bottom:28px}.hero-banner img{width:114px;height:114px;position:absolute;right:25px;bottom:-10px;rotate:-13deg;opacity:.55}.hero-banner h2{font-size:30px;max-width:65%;line-height:1.15;margin-bottom:9px}.hero-banner p{color:#afc4b9;max-width:65%;line-height:1.7;font-size:13px}.empty{min-height:280px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;text-align:center;padding:36px}.empty>svg{width:56px;height:56px;color:#d5d5d5}.empty h2{font-size:24px;max-width:420px}.empty p{line-height:1.7;color:var(--muted);max-width:430px}.empty>.solid{margin-top:8px}.offline-banner{padding:18px 20px;background:#352c1b;border-radius:7px;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.offline-banner strong{display:block;margin-bottom:6px}.offline-banner p{color:#cfbfa6;font-size:12px;line-height:1.6;max-width:550px}.skeleton{background:linear-gradient(90deg,#ffffff08,#ffffff11,#ffffff08);background-size:200% 100%;animation:shimmer 1.6s infinite;border-radius:6px}.skeleton-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;margin-top:18px}.skeleton-card{aspect-ratio:.82}.skeleton-line{height:22px;width:210px;margin:26px 0}@keyframes shimmer{to{background-position:-200% 0}}.results-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:30px 20px;padding-top:12px}.search-title{margin:22px 0 24px;font-size:30px}.collection-hero{display:flex;align-items:end;gap:24px;padding:24px 0 30px}.collection-cover{width:190px;height:190px;flex:none;border-radius:6px;display:grid;place-items:center;box-shadow:0 7px 30px #0005}.collection-cover .icon{width:70px;height:70px}.collection-hero h1{font-size:clamp(30px,5cqw,64px);font-weight:800;line-height:1.05;margin:12px 0 20px}.collection-hero small{font-weight:600}.collection-hero p{color:var(--muted)}.collection-actions{display:flex;align-items:center;gap:20px;margin-bottom:20px}.big-play{width:56px;height:56px;display:grid;place-items:center;background:var(--green);color:#000;border-radius:50%}.big-play .icon{fill:#000;width:28px;height:28px}.track-list{width:100%}.track-row{width:100%;display:flex;align-items:center;gap:12px;min-height:64px;padding:8px 12px;border-radius:5px;text-align:left}.track-row:hover{background:#ffffff10}.track-row.playing .row-title{color:var(--green)}.track-row .row-art{width:48px;height:48px;flex:none;border-radius:4px;overflow:hidden}.row-art img{width:100%;height:100%;object-fit:cover}.row-number{width:20px;color:var(--muted);text-align:center;font-size:13px;flex:none}.row-meta{min-width:0;flex:1}.row-title{font-size:14px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:1.7;display:block}.row-artists{font-size:12px;color:var(--muted);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:block}.row-duration{color:var(--muted);font-size:12px;min-width:38px;text-align:right}.row-actions{width:30px!important;height:30px!important;opacity:0}.track-row:hover .row-actions,.track-row:focus-within .row-actions{opacity:1}.list-header{color:var(--muted);padding:12px;border-bottom:1px solid #ffffff15;margin-bottom:10px;display:flex;gap:20px;font-size:12px}
.right-panel{display:flex;flex-direction:column;position:relative}.right-head{display:flex;align-items:center;gap:8px;padding:12px 12px 8px;min-height:58px;flex:none}.right-head strong{font-size:14px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.right-head .icon-btn{width:32px;height:32px}.right-body{overflow:auto;min-height:0;flex:1;padding:0 8px 18px}.now-cover{aspect-ratio:1;overflow:hidden;border-radius:8px;margin:0 8px 18px;background:var(--raised)}.now-cover img{width:100%;height:100%;object-fit:cover}.now-info{padding:0 9px 22px}.now-info h2{font-size:22px;line-height:1.3;letter-spacing:-.04em}.now-info p{color:var(--muted);font-size:13px;line-height:1.65;margin-top:6px}.now-line{display:flex;align-items:center;gap:8px}.now-line>div{flex:1;min-width:0}.right-section{padding:10px 8px 8px;display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.right-section h3{font-size:14px;letter-spacing:0}.right-tabs{display:flex;gap:14px;flex:1}.right-tab{padding:8px 0;position:relative;font-size:13px;font-weight:700;color:var(--muted);white-space:nowrap}.right-tab.selected{color:#fff}.right-tab.selected:after{position:absolute;content:'';left:0;right:0;height:2px;background:var(--green);bottom:0}.right-panel .track-row{gap:10px}.right-panel .row-actions{display:none}.right-panel .empty{min-height:240px;padding:20px 12px}.right-panel .empty h2{font-size:20px}.lyrics-preview{border-radius:8px;background:#432a60;margin:0 8px 18px;padding:18px}.lyrics-preview h3{font-size:13px;letter-spacing:0;margin-bottom:19px}.lyrics-preview p{font-size:22px;font-weight:700;line-height:1.5;letter-spacing:-.04em}.lyrics-preview .pill{margin-top:18px;background:#ffffff14}.lyrics-full{padding:22px 16px;font-size:24px;font-weight:700;line-height:1.6}.lyrics-line{color:#ffffff55;margin-bottom:16px;cursor:pointer}.lyrics-line.active{color:white}.lyrics-line:hover{color:white}.output-card{padding:20px 16px;margin:8px;border-radius:8px;background:#202020}.output-title{display:flex;gap:14px;align-items:center;color:var(--green);font-size:15px;font-weight:600;margin-bottom:10px}.output-card p{font-size:12px;color:var(--muted);line-height:1.8;margin:8px 0}.output-card .solid{margin-top:15px;font-size:12px}
.player{display:grid;grid-template-columns:minmax(200px,1fr) minmax(300px,640px) minmax(200px,1fr);gap:16px;align-items:center;background:#000;padding:8px 16px;z-index:20;position:relative}.playing-track{display:flex;gap:12px;align-items:center;min-width:0}.player-art{width:56px;height:56px;border-radius:4px;overflow:hidden;flex:none;cursor:pointer}.player-art img{width:100%;height:100%;object-fit:cover}.player-track-meta{min-width:0;max-width:240px}.player-title{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;margin-bottom:5px}.player-artists{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.player-like{width:30px!important;height:30px!important}.player-like .icon{width:18px;height:18px}.player-like.active .icon{fill:var(--green);stroke:var(--green)}.player-mid{display:flex;flex-direction:column;align-items:center;gap:7px;min-width:0}.transport{display:flex;align-items:center;gap:17px}.transport .icon-btn{width:27px;height:27px;position:relative}.transport .icon-btn .icon{width:20px;height:20px}.transport .icon-btn.active:after{content:'';position:absolute;bottom:-4px;left:calc(50% - 2px);width:4px;height:4px;border-radius:50%;background:var(--green)}.play-toggle{width:33px;height:33px;border-radius:50%;background:#fff;color:#000;display:grid;place-items:center;transition:scale .12s}.play-toggle:hover{color:#000;scale:1.06}.play-toggle .icon{width:20px;height:20px;fill:#000;stroke:#000}.progress{display:flex;align-items:center;gap:10px;width:100%}.clock{font-size:10px;color:var(--muted);min-width:28px;font-variant-numeric:tabular-nums}.clock:last-child{text-align:right}.range{height:4px;accent-color:#fff;cursor:pointer;appearance:none;-webkit-appearance:none;width:100%;border-radius:10px;background:linear-gradient(to right,#fff var(--progress,0%),#4d4d4d var(--progress,0%));margin:5px 0}.range::-webkit-slider-thumb{appearance:none;background:white;width:12px;height:12px;border-radius:50%;opacity:0}.range::-moz-range-thumb{background:white;border:0;width:12px;height:12px;opacity:0}.range:hover{background:linear-gradient(to right,var(--green) var(--progress,0%),#4d4d4d var(--progress,0%))}.range:hover::-webkit-slider-thumb,.range:focus-visible::-webkit-slider-thumb{opacity:1}.player-tools{display:flex;align-items:center;justify-content:flex-end;gap:4px;min-width:0}.player-tools .icon-btn{width:30px;height:30px;position:relative}.player-tools .icon{width:18px;height:18px}.player-tools .active:after{content:'';position:absolute;width:4px;height:4px;background:var(--green);bottom:0;border-radius:50%}.volume-range{max-width:94px;margin:0 9px 0 2px}.idle-meta{font-size:12px;color:#aaa}
.overlay-shade{position:fixed;inset:0;background:#000b;backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;padding:24px;z-index:100}.modal{width:640px;max-width:100%;max-height:85dvh;overflow:auto;background:#181818;border:1px solid #ffffff16;box-shadow:0 20px 100px #000a;border-radius:14px;padding:28px}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.modal h2{font-size:24px}.modal p{line-height:1.8;color:var(--muted)}.modal-brand{display:flex;align-items:center;gap:16px;margin-bottom:28px}.modal-brand img{width:64px;height:64px;border-radius:12px}.modal-brand h2{font-size:25px}.modal-brand small{color:var(--mint)}.owner-row{display:flex;align-items:center;gap:14px;padding:14px 0;min-width:0}.owner-row>img{width:54px;height:54px;border-radius:50%}.owner-row strong{font-size:15px;display:block;margin-bottom:5px}.owner-row p{font-size:12px}.owner-row>div{flex:1}.owner-row .pill{font-size:12px;padding:10px 13px;background:#292929}.modal-section-title{font-size:15px;font-weight:700;margin:22px 0 8px;letter-spacing:0}.community-card{display:flex;align-items:center;gap:16px;flex-wrap:wrap;background:#242424;padding:16px;border-radius:8px;margin:16px 0}.community-card img{width:76px;height:76px;border-radius:7px}.community-card>div{flex:1;min-width:140px}.community-card strong{display:block;margin-bottom:6px}.community-card p{font-size:12px}.community-card .solid{font-size:12px;padding:10px 15px}.modal-footer{font-size:12px;color:#777;line-height:1.8;margin-top:22px}.create-form label{font-size:13px;display:block;margin:22px 0 9px}.create-form input{display:block;width:100%;background:#282828;border:1px solid #555;color:#fff;padding:13px;border-radius:5px}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.popover{position:fixed;background:#282828;box-shadow:0 12px 40px #0008;border-radius:5px;min-width:225px;padding:4px;z-index:110;border:1px solid #ffffff08}.popover button,.popover a{display:flex;gap:10px;align-items:center;padding:12px;width:100%;border-radius:3px;text-align:left;font-size:13px;color:#eee}.popover button:hover,.popover a:hover{background:#ffffff16}.popover .icon{width:17px;height:17px;color:var(--muted)}.popover hr{border:0;border-top:1px solid #ffffff18;margin:4px}.popover .menu-label{padding:9px 12px;font-size:11px;color:var(--muted)}#toast{position:fixed;left:50%;bottom:112px;transform:translateX(-50%) translateY(12px);background:#fff;color:#141414;padding:14px 22px;font-size:13px;font-weight:600;border-radius:7px;z-index:150;max-width:90%;box-shadow:0 6px 35px #0006;opacity:0;pointer-events:none;transition:opacity .18s,transform .18s}#toast.visible{opacity:1;transform:translateX(-50%) translateY(0)}
@media(min-width:1700px){:root{--left:420px;--right:420px}.page{padding-left:40px;padding-right:40px}.shelf-track{grid-auto-columns:calc((100% - 96px)/5.5);gap:24px}.quick-tile{min-height:48px}}
@media(max-width:1390px){:root{--left:260px;--right:300px}.page{padding-left:24px;padding-right:24px}.shelf-track{grid-auto-columns:calc((100% - 48px)/4);gap:16px}.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.brand{min-width:125px}.brand>span{display:none}.connection{display:none}.search-dock{max-width:52%;width:480px}.owner-row .pill{font-size:11px}.player{grid-template-columns:minmax(150px,1fr) minmax(280px,540px) minmax(170px,1fr);gap:8px}.player-tools{gap:0}.player-track-meta{max-width:160px}}
@media(max-width:1100px){:root{--left:72px;--right:280px}.library-head{padding:0;justify-content:center}.library-title{flex:0}.library-title span,.library-filters,.library-sort,.create-btn,.library-head>.icon-btn,.library-info,.library-bottom{display:none}.library-item{padding:8px 4px;justify-content:center}.library-art{width:48px}.page{padding:20px 22px 40px}.shelf-track{grid-auto-columns:calc((100% - 32px)/3)}.player-tools .volume-range{max-width:65px}.search-dock{width:430px}.right-panel .row-duration{display:none}.history-controls{display:none}.player{padding:8px 12px}.player-tools [data-action=fullscreen]{display:none}}
@media(max-width:800px){:root{--left:64px;--player:108px}.workspace{grid-template-columns:var(--left) minmax(0,1fr)!important}.right-panel{position:absolute;right:8px;top:0;bottom:0;width:min(360px,calc(100% - 80px));z-index:25;box-shadow:-15px 0 35px #0006;border:1px solid #333}.workspace.no-right .right-panel{display:none}.search-dock{position:static;transform:none;max-width:none;flex:1;width:auto}.brand{min-width:36px}.top-tools{gap:0}.top-tools>.icon-btn{display:none}.profile-btn{width:42px;height:42px;padding:5px}.home-btn{display:none!important}.topbar{gap:10px;padding:0 10px}.search-key{display:none}.page{padding:16px 18px 40px}.page-tabs .pill{font-size:12px;padding:7px 12px}.shelf-track{grid-auto-columns:calc((100% - 32px)/3)}.player{grid-template-columns:minmax(130px,1fr) 1fr;grid-template-rows:44px 30px;gap:5px 8px;padding:8px 12px}.player-mid{display:contents}.transport{grid-column:2;grid-row:1;justify-content:flex-end;gap:10px}.progress{grid-column:1/-1;grid-row:2}.player-tools{display:none}.player-art{width:42px;height:42px}.player-like{display:none!important}.player-title{font-size:12px}.player-artists{font-size:10px}.player-track-meta{max-width:210px}.library{padding:12px 5px 8px}.library-item{padding:8px 0}.library-art{width:44px;height:44px}.library-title .icon{width:23px}.hero-banner{padding:22px;min-height:160px}.hero-banner h2{font-size:25px}.collection-cover{width:125px;height:125px}.collection-hero{gap:16px}.collection-hero h1{font-size:32px;margin:10px 0}.modal{padding:22px}.modal-brand h2{font-size:22px}.community-card .solid{width:100%;text-align:center}.owner-row{gap:10px}.owner-row>img{width:42px;height:42px}.owner-row .pill{font-size:10px;padding:9px}.offline-banner{flex-direction:column;align-items:flex-start}.offline-banner .solid{font-size:12px}.clock{font-size:10px}.section-head h2{font-size:21px}.quick-grid{margin-bottom:28px}.quick-tile strong{font-size:12px;padding:0 8px}}
@media(max-width:480px){.shelf-track{grid-auto-columns:calc((100% - 14px)/2.15);gap:14px}.hero-banner{display:none}.search-box{height:42px;padding:0 12px;gap:7px}.search-box input{font-size:12px}.brand img{width:31px;height:31px}.topbar{gap:7px}.profile-btn{width:38px;height:38px}.profile-btn>span{width:28px;height:28px}.profile-btn{padding:5px}.quick-tile .quick-art{width:40px;height:48px}.quick-tile strong{font-size:10px}.page{padding:14px 13px 36px}.page-tabs{gap:6px}.page-tabs .pill{font-size:11px;padding:7px 10px}.modal-brand img{width:48px;height:48px}.modal-brand h2{font-size:19px}.owner-row{flex-wrap:wrap}.owner-row .pill{margin-left:52px}.collection-hero{flex-direction:column;align-items:flex-start}.collection-cover{width:140px;height:140px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}

/* Quick picks deck and shelf pagers, matching the desktop home */
.picks-section{margin-bottom:35px}
.picks-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.pick-tile{display:flex;align-items:center;gap:12px;padding:8px;border-radius:6px;background:#ffffff12;text-align:left;min-width:0;transition:background .15s,transform .15s}
.pick-tile:hover{background:#ffffff25}
.pick-tile:active{transform:scale(.995)}
.pick-art{width:48px;height:48px;border-radius:4px;overflow:hidden;flex:none;background:var(--raised);display:grid;place-items:center}
.pick-art img{width:100%;height:100%;object-fit:cover}
.pick-art .art-fallback{font-size:20px}
.pick-meta{min-width:0;display:flex;flex-direction:column;gap:3px}
.pick-meta strong{font-size:13px;line-height:1.3;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pick-meta span{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pager{display:flex;gap:6px;flex:none}
.pager-btn{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;background:#ffffff14;color:var(--text);transition:background .15s,transform .15s}
.pager-btn:hover{background:#ffffff2b}
.pager-btn:active{transform:scale(.92)}
.pager-btn:disabled{opacity:.35;cursor:default;transform:none}
.pager-btn .icon{width:15px;height:15px}
.picks-section .section-head,.shelf .section-head{align-items:center}
@media(max-width:1390px){.picks-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){.picks-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.picks-grid{grid-template-columns:1fr}.pick-tile{padding:7px}.pick-art{width:44px;height:44px}}

/* Phone layout: the same panels, with the library as a drawer and a tab bar. */
.phone-nav,.phone-scrim,.phone-close{display:none}
@media(max-width:600px){
  :root{--header:56px;--player:108px;--left:0;--right:0}
  .app-shell{grid-template-rows:var(--header) minmax(0,1fr) var(--player) calc(58px + env(safe-area-inset-bottom))}
  .topbar{gap:8px;padding:0 10px}
  .brand{min-width:0;flex:none}
  .brand img{width:32px;height:32px;border-radius:9px}
  .history-controls,.home-btn,.search-key,.connection,.top-tools>[data-action=about]{display:none!important}
  .search-dock{position:static;transform:none;flex:1;width:auto;max-width:none;min-width:0}
  .search-box{height:42px;padding:0 13px;gap:8px}
  .search-box input{font-size:13px}
  .search-box:focus-within{padding:0 12px}
  .profile-btn{width:38px;height:38px;padding:5px}
  .profile-btn>span{width:28px;height:28px;font-size:12px}
  .workspace{grid-template-columns:minmax(0,1fr)!important;padding:0 6px}
  .library{position:fixed;left:0;top:0;bottom:0;width:min(330px,88vw);z-index:130;border-radius:0 16px 16px 0;transform:translateX(-103%);transition:transform .28s cubic-bezier(.2,.7,.3,1);box-shadow:14px 0 60px #000b;padding:calc(14px + env(safe-area-inset-top)) 10px 10px}
  .app-shell.phone-library .library{transform:none}
  .phone-scrim{position:fixed;inset:0;background:#000b;z-index:125;backdrop-filter:blur(2px)}
  .app-shell.phone-library .phone-scrim{display:block}
  .library-title{flex:1;justify-content:flex-start}
  .library-title span,.library-info,.library-bottom{display:block}
  .library-filters,.library-sort,.create-btn{display:flex}
  .library-head>.phone-close{display:inline-flex;width:34px;height:34px;color:var(--muted)}
  .library-item{padding:9px 8px;justify-content:flex-start;min-height:64px}
  .library-art{width:46px;height:46px}
  .right-panel{position:absolute;inset:0!important;width:auto!important;border-radius:0;box-shadow:none;border:0}
  .page{padding:14px 12px 30px}
  .page-tabs{gap:7px;margin-bottom:14px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
  .page-tabs::-webkit-scrollbar{display:none}
  .page-tabs .pill{font-size:12px;padding:7px 13px}
  .search-title{font-size:22px;margin:16px 0;line-height:1.25}
  .results-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px;padding-top:8px}
  .music-card{padding:6px;margin:-6px}
  .card-title{font-size:12.5px}
  .card-by{font-size:11px;min-height:0;-webkit-line-clamp:1}
  .section-head h2{font-size:19px}
  .section-head{margin-bottom:12px}
  .shelf,.picks-section{margin-bottom:26px}
  .shelf-track{grid-auto-columns:calc((100% - 14px)/2.15);gap:14px}
  .quick-tile{min-height:54px}
  .hero-banner{display:none}
  .player{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:46px 26px;gap:2px 16px;padding:6px 10px 4px}
  .player-art{width:44px;height:44px}
  .player-track-meta{max-width:none;min-width:0}
  .player-title{font-size:12.5px;margin-bottom:3px;width:100%;max-width:100%}
  .player-artists{font-size:10.5px}
  .transport{gap:6px}
  .transport .icon-btn{width:28px;height:28px}
  .transport .play-toggle{width:36px;height:36px}
  .transport .play-toggle .icon{width:22px;height:22px}
  .progress{gap:8px;padding-bottom:2px}
  .clock{min-width:24px}
  .phone-nav{display:grid;grid-template-columns:repeat(4,1fr);align-items:center;background:#000;border-top:1px solid #ffffff0d;padding-bottom:env(safe-area-inset-bottom)}
  .phone-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:54px;padding:7px 0 6px;font-size:10px;color:#8f8f8f}
  .phone-nav button.active{color:#fff}
  .phone-nav button.active .icon{stroke:var(--green)}
  .phone-nav .icon{width:22px;height:22px}
}
@media(min-width:601px){.phone-nav,.phone-scrim{display:none!important}}
/* Picture-in-picture shows a square mini player instead of the whole page. */
.pip-card{display:none}
html.pip .app-shell>*:not(.pip-card){display:none!important}
html.pip .pip-card{display:flex;position:fixed;inset:0;z-index:400;background:#0d0f14;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:14px;text-align:center}
html.pip .pip-art{width:62%;max-width:190px;aspect-ratio:1;border-radius:12px;overflow:hidden;flex:none;box-shadow:0 10px 30px #0008}
html.pip .pip-art img,html.pip .pip-art .art-fallback{width:100%;height:100%;object-fit:cover;display:grid;place-items:center}
html.pip .pip-copy{min-width:0;width:100%}
html.pip .pip-copy strong{display:block;font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.pip .pip-copy span{display:block;font-size:10.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.pip .pip-toggle{width:38px;height:38px;border-radius:50%;background:#fff;color:#000;display:grid;place-items:center;flex:none}
html.pip .pip-toggle .icon{width:20px;height:20px;fill:#000;stroke:#000}

/* Match the native theme tokens and centered page widths. */
:root {
  --line: #ffffff14;
  --content-tint: #30264f;
  --player-surface: #000;
  --chrome-control: #262626;
  --solid-bg: #fff;
  --solid-text: #000;
  --hover-fill: #ffffff10;
  --liked-start: #450af5;
  --liked-end: #c4efd9;
  --radius: 16px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --canvas: #e5e5e5;
  --panel: #fafafa;
  --raised: #f5f5f5;
  --text: #171717;
  --muted: #606060;
  --green: #171717;
  --line: #9b9b9b66;
  --content-tint: #ddd4f8;
  --player-surface: #fafafa;
  --chrome-control: #f5f5f5;
  --solid-bg: #171717;
  --solid-text: #fafafa;
  --hover-fill: #00000010;
}
.topbar, .player, .phone-nav { background: var(--player-surface); }
.main-panel { background: linear-gradient(180deg, var(--content-tint), var(--panel) 420px); }
.search-box, button.home-btn, .profile-btn, .create-btn { background: var(--chrome-control); color: var(--text) !important; }
.search-box, button.home-btn { border: 1px solid var(--line); }
.search-box input { color: var(--text); }
.search-box input::placeholder, .library-title .icon { color: var(--muted); }
.search-box:focus-within { border-color: var(--text); }
.profile-btn { background: transparent; }
.home-btn svg, .search-box .icon { width: 17px; height: 17px; }
.library { padding-top: 8px; }
.library-item { min-height: 62px; padding-block: 6px; }
.library-info strong { margin-bottom: 3px; }
.library-bottom, .library-head > button.phone-close { display: none; }
.liked-art { background: linear-gradient(135deg, var(--liked-start), var(--liked-end)); }
button:hover { color: var(--text); }
button.icon-btn:hover { background: var(--hover-fill); color: var(--text); }
.pill { background: var(--chrome-control); border: 1px solid var(--line); font-size: 13px; padding: 6px 12px; }
.pill:hover { background: var(--raised); }
.pill.selected, .solid, .solid:hover { background: var(--solid-bg); color: var(--solid-text); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline-color: var(--text); }
.play-toggle, .play-toggle:hover { background: var(--solid-bg); color: var(--solid-text); }
.play-toggle .icon { fill: none; stroke: currentColor; }
.range { background: linear-gradient(to right, var(--solid-bg) var(--progress,0%), #7777 var(--progress,0%)); }
.range::-webkit-slider-thumb { background: var(--solid-bg); }
.range::-moz-range-thumb { background: var(--solid-bg); }
.centered-pages .page { max-width: 1240px; margin-inline: auto; }
.home-page .page-tabs { margin-bottom: 42px; }
.pick-tile { min-height: 52px; padding: 7px; border-radius: 28px; }
.pick-art { width: 36px; height: 36px; border-radius: 5px; }
.pick-meta { gap: 2px; }
.pick-meta strong { font-size: 14px; font-weight: 400; }
.pick-meta span { font-size: 12px; }
.picks-grid { gap: 4px 7px; }
.picks-section .section-head { padding-inline: 8px; }
.pager-btn { border: 1px solid var(--line); background: transparent; width: 30px; height: 28px; }
.pager-btn:hover { background: var(--hover-fill); }
.music-card { padding: 0; margin: 0; background: transparent; }
.cover-wrap { border-radius: 18px; margin-bottom: 6px; box-shadow: none; }
.card-by { margin-top: 1px; min-height: 0; -webkit-line-clamp: 1; }
.shelf-track { grid-auto-columns: clamp(136px, 15cqw, 172px); gap: 16px; padding-block: 3px; }
.shelf .section-head { margin-bottom: 10px; }
.offline-banner { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); }
.offline-banner[hidden] { display: none; }
.offline-message { display: flex; align-items: flex-start; gap: 12px; }
.offline-message .icon, .offline-banner p { color: var(--muted); }
.offline-banner .solid { flex: none; }
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after {
  animation-duration: .001ms !important;
  transition-duration: .001ms !important;
  scroll-behavior: auto !important;
}
.hide-lyrics .lyrics-preview { display: none; }

.settings-layout { max-width: 640px; margin-inline: auto; }
.settings-header { padding-block: 20px 42px; }
.settings-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding-inline: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
}
.settings-search:focus-within { border-color: var(--muted); }
.settings-search .icon { width: 16px; height: 16px; color: var(--muted); }
.settings-search input { width: 100%; background: transparent; color: var(--text); border: 0; outline: none; }
.settings-search input::placeholder { color: var(--muted); }
.settings-navigation {
  display: flex;
  gap: 2px;
  width: fit-content;
  max-width: 100%;
  margin: 6px auto 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.settings-navigation button {
  display: flex;
  flex: none;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 14px;
  white-space: nowrap;
}
.settings-navigation .icon { width: 15px; height: 15px; }
.settings-navigation button:hover, .settings-navigation:not(.is-searching) [aria-current] { background: var(--hover-fill); }
.settings-section + .settings-section { margin-top: 58px; }
.settings-section h2 { margin-bottom: 24px; }
.settings-group-label { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 9px; }
.setting-row, .provider-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding-block: 10px;
}
.setting-row p, .provider-card p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.setting-row > :not(div) { flex: none; }
.setting-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.setting-row select {
  max-width: 100%;
  min-height: 30px;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--chrome-control);
  color: var(--text);
  font: inherit;
}
.setting-volume { accent-color: var(--green); cursor: pointer; }
.setting-switch {
  appearance: none;
  width: 34px;
  height: 20px;
  margin: 0;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--chrome-control);
  display: grid;
  place-items: center start;
  padding: 2px;
  cursor: pointer;
}
.setting-switch::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--muted);
}
.setting-switch:checked { background: var(--green); }
.setting-switch:checked::before { justify-self: end; background: var(--panel); }
.provider-card {
  justify-content: flex-start;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 20px;
  background: var(--chrome-control);
}
.provider-summary { flex: 1; min-width: 120px; }
.provider-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.provider-actions .solid { padding: 7px 12px; font-size: 13px; line-height: 18px; }
.install-app { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); white-space: nowrap; font-weight: 600; }
.install-app .icon { width: 16px; height: 16px; }
.phone-session { display: none; }
.session-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.modal .session-code { color: var(--text); font-size: 30px; letter-spacing: .2em; font-variant-numeric: tabular-nums; }
.session-members { padding-left: 20px; color: var(--muted); line-height: 1.6; }
@media (max-width: 800px) {
  .phone-session { display: inline-flex; }
  .phone-session .icon-btn { width: 28px; height: 36px; }
  .install-app { padding: 8px 5px; }
  .install-app span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
.settings-provider-note { margin: 8px 0 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.provider-card h3 { font-size: 14px; letter-spacing: 0; }
.provider-mark { display: grid; place-items: center; color: #ff0033; }
:root[data-theme="light"] .popover, :root[data-theme="light"] .modal { background: #fff; }
:root[data-theme="light"] .popover button, :root[data-theme="light"] .popover a { color: var(--text); }
:root[data-theme="light"] .pick-tile { background: #0000000c; }
:root[data-theme="light"] .lyrics-preview { background: var(--content-tint); }
:root[data-theme="light"] .phone-nav button.active { color: var(--text); }
@media (min-width: 1101px) {
  :root { --left: 292px; --right: 320px; }
  .brand { display: none; }
  .search-dock { left: 46%; width: 530px; }
  .library-title .icon { display: none; }
  .collapsed .library-title .icon { display: block; }
}
@media (max-width: 600px) {
  :root { --player: 84px; }
  .library { visibility: hidden; }
  .app-shell.phone-library .library { visibility: visible; }
  .library-head > button.phone-close { display: inline-flex; }
  .home-page .page-tabs { margin-bottom: 24px; }
  .shelf-track { grid-auto-columns: calc((100% - 14px)/2.15); gap: 14px; }
  .cover-wrap { border-radius: 12px; }
  .settings-header { padding-block: 8px 26px; }
  .settings-navigation { max-width: 100%; }
  .settings-section + .settings-section { margin-top: 34px; }
  .setting-row { flex-wrap: wrap; }
  .setting-row:has(.setting-switch) { flex-wrap: nowrap; }
  .provider-card { display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .provider-actions { grid-column: 2; }
}
