:root{--accent-ink:#102c26;--surface:#17212c;--soft:#22352f;--border:#34443f}
:root[data-accent=mint]{--accent:#65dfc1;--accent-ink:#102c26;--soft:#203f36}
:root[data-accent=blue]{--accent:#8bbaff;--accent-ink:#12243f;--soft:#23344d}
:root[data-accent=purple]{--accent:#c5a4ff;--accent-ink:#29163f;--soft:#392e49}
:root[data-accent=pink]{--accent:#ffa2c6;--accent-ink:#421d30;--soft:#492d3d}
:root[data-accent=orange]{--accent:#ffc085;--accent-ink:#3b2410;--soft:#443628}
:root[data-theme=light]{color-scheme:light;--bg:#f5f7fb;--panel:#fff;--surface:#eef1f6;--text:#172333;--muted:#546478;--line:#d6dde7;--border:#c4cfdd;--soft:#e7edf4}
:root[data-theme=amoled]{color-scheme:dark;--bg:#000;--panel:#080808;--surface:#111;--line:#262626;--text:#f1f4f7;--muted:#a1abb8}
:root[data-theme=dark],:root[data-theme=telegram]{color-scheme:dark}
body{background:var(--bg);color:var(--text)}
body .sidebar{display:none}body main{margin:0 auto;max-width:1100px}
body .primary,body .play-toggle{background:var(--accent);color:var(--accent-ink);box-shadow:none}
body .player,body dialog,body .account-flow,body .sync-panel{background:var(--panel);color:var(--text);border-color:var(--line)}
body .search,body .profile,body .secondary,body .account-actions button,body .sync-actions button{background:var(--surface);color:var(--text);border-color:var(--line)}
body .track:hover,body .track.current,body .tabs button.active,body .play-controls [aria-pressed=true]{background:var(--soft);color:var(--text)}
body .tabs button,body .track-title,body .playing-info strong,body .track-link,body .empty h3{color:var(--text)}
body .track-artist,body .track-duration,body .track-source,body .playing-info span,body .profile-hint,body .profile-footer,body .muted,body .timeline span{color:var(--muted)}
body .search input,body .sort-label select{color:var(--text);background:transparent}
body .hero{background:var(--surface);border-color:var(--line)}body .hero h1{color:var(--text)}body .hero h1 span{color:var(--accent)}
body .player .play-controls .icon-button,body .player #report-audio{color:var(--text)}
body .play-controls [aria-pressed=true]{color:var(--accent)}
body .timeline input::-webkit-slider-thumb,body .volume input::-webkit-slider-thumb{background:var(--accent);border-color:var(--accent)}
body .timeline input::-moz-range-thumb,body .volume input::-moz-range-thumb{background:var(--accent);border-color:var(--accent)}
body .hero .eyebrow,body .profile #greeting,body .account-info .connected{color:var(--text)}
body .topbar .profile{margin-left:auto}
.track-entry{display:grid;grid-template-columns:minmax(0,1fr) 34px 34px;align-items:center;gap:3px}.track-more{font-size:23px;min-height:40px;color:var(--muted);border-radius:8px}
.track-download{width:34px;height:44px;min-height:44px;color:var(--muted);border-radius:10px}.track-download svg{width:18px;height:18px}.track-download:hover{background:var(--surface);color:var(--accent)}
.library-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.library-actions #download-all,.library-actions #offline-bulk-control{min-height:36px;padding:7px 12px}
#offline-bulk-control.is-running{color:#ef9a9a;border-color:#d66a6a66;background:#8e303015}#offline-bulk-control.is-paused{color:var(--accent);border-color:color-mix(in srgb,var(--accent) 42%,var(--line));background:color-mix(in srgb,var(--accent) 8%,var(--panel))}
.section-heading-actions{display:flex;align-items:center;gap:4px}.section-heading-actions #library-menu-open{font-size:23px;line-height:1}
.avatar.has-photo{background-size:cover;background-position:center;color:transparent}.profile-identity #profile-avatar-change{display:block;margin-top:6px;padding:0;min-height:28px;color:var(--accent)}
.choice-list small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.choice-list strong{font-size:13px}.danger-zone{margin-top:18px;padding:18px;border:1px solid color-mix(in srgb,#e66 40%,var(--line));border-radius:16px;background:color-mix(in srgb,#e66 7%,var(--panel))}.danger-zone p{font-size:12px;color:var(--muted);line-height:1.7}.danger-zone button{margin:6px 8px 0 0}.action-menu-item.danger{color:#ef8f8f}
.empty #empty-connect{margin-top:18px}.empty:has(#empty-connect:not([hidden])) p{margin-bottom:0}
.appearance-settings,.sleep-settings{margin:24px 0;padding-top:18px;border-top:1px solid var(--line)}
.appearance-settings h3{font-size:15px;margin:0 0 14px}.appearance-settings p,.sleep-settings p{font-size:12px;line-height:1.6;color:var(--muted)}
.setting-row{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:12px 0;font-size:13px}
.setting-row select,.setting-row input:not([type=checkbox]){min-width:0;max-width:100%;border:1px solid var(--line);border-radius:9px;padding:10px;background:var(--surface);color:var(--text);font-size:13px}
.setting-row input[type=checkbox]{width:22px;height:22px;accent-color:var(--accent)}.setting-row input[type=number]{width:85px}
.tool-track{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid var(--line)}
.tool-track .track-link,.tool-track>span{flex:1 1 180px;text-align:left;font-size:13px;overflow-wrap:anywhere;padding:6px 0}
.tool-track .secondary{font-size:11px;padding:7px 9px;min-height:34px}.admin-run{padding:12px 0;border-bottom:1px solid var(--line)}.admin-run p{font-size:12px;overflow-wrap:anywhere}
#tools-content{padding-top:16px}#tools-content>.secondary{margin:5px}#tools-content>p{font-size:13px;line-height:1.7}
body .playing-info>div:nth-child(2){min-width:0;flex:1}.player-expand{flex-shrink:0;border:0;background:transparent;color:var(--muted);font-size:0;padding:4px;min-width:30px;min-height:30px}
.player-expand:before{content:'⌃';font-size:23px;line-height:1}
body .account-info .account-warning{color:var(--muted);white-space:normal;line-height:1.5;margin-top:5px}
body .player #report-audio[hidden]{display:block;visibility:hidden;pointer-events:none}
dialog.full-player{width:100%;height:100dvh;max-width:none;max-height:none;border:0;border-radius:0;margin:0;padding:calc(18px + env(safe-area-inset-top,0px)) 24px calc(20px + var(--safe-bottom));overflow:auto}
.full-player .dialog-heading{max-width:600px;margin:auto}.full-player .dialog-heading strong{font-size:13px;color:var(--muted)}
body .full-player .player{position:static;display:flex;flex-direction:column;width:100%;max-width:520px;min-height:0;margin:24px auto 0;padding:0;background:transparent;border:0;box-shadow:none;backdrop-filter:none;gap:26px}
body .full-player .playing-info{display:flex;flex-direction:column;width:100%;text-align:center;gap:15px;padding:0}
body .full-player .player-cover{width:min(54vw,220px);height:min(54vw,220px);border-radius:25px}
body .full-player .player-cover svg{width:72px;height:72px}
body .full-player .playing-info>div:nth-child(2){width:100%}body .full-player .playing-info strong{font-size:20px;white-space:normal;line-height:1.4}
body .full-player .playing-info span{font-size:13px;white-space:normal}
body .full-player .player-expand{display:none}body .full-player .playback{width:100%}
body .full-player .play-controls{grid-template-columns:repeat(5,44px);gap:14px;margin-bottom:15px}
body .full-player .play-toggle{width:48px;height:48px}
body .full-player .volume{display:none}
.full-actions,.sleep-settings{max-width:520px;margin:22px auto}.full-actions{display:flex;gap:10px;justify-content:center}
.sleep-settings>label{font-size:14px;font-weight:650}#sleep-status{min-height:24px}body:has(dialog[open]){overflow:hidden}
@media(max-width:365px){dialog.full-player{padding-left:16px;padding-right:16px}body .full-player .play-controls{grid-template-columns:repeat(5,40px);gap:10px}.minimize-app{font-size:10px;padding:6px}.mobile-brand{font-size:15px!important}.mobile-brand img{width:24px!important}}

/* MusicSync library, sheets and player: a shared visual language. */
:root{--track-rail:#35414a;--lift:0 18px 55px #0002}
:root[data-theme=light]{--track-rail:#d5dce5;--lift:0 14px 45px #23364b12}
:root[data-theme=amoled]{--track-rail:#303030}
button{ -webkit-tap-highlight-color:transparent }
button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.ui-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.ui-icon svg{width:21px;height:21px}
body main{max-width:1100px;padding-top:0}
body .hero{border-radius:24px;background:radial-gradient(ellipse at 90% 0,color-mix(in srgb,var(--accent) 11%,transparent),transparent 65%),var(--panel);box-shadow:none}
body .hero h1{letter-spacing:-1.6px;line-height:1.16}
body .hero .eyebrow{color:var(--muted)}
body .hero p{color:var(--muted)}
body .hero-actions>span{color:var(--muted)}
body .record-label{background:var(--soft)}
body .hero .primary{border-radius:999px;padding:13px 24px}
body .library-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:6px;margin:28px 0 30px;background:var(--panel);border:1px solid var(--line);border-radius:18px}
.browse-tab{min-height:50px;display:flex;align-items:center;justify-content:center;gap:9px;border-radius:12px;color:var(--muted);font-size:13px;font-weight:650;transition:background .18s,color .18s}
.browse-tab[aria-pressed=true]{color:var(--text);background:var(--surface);box-shadow:0 2px 8px #0001}
.browse-tab[aria-pressed=true] .ui-icon{color:var(--accent)}
:root[data-theme=light] .browse-tab[aria-pressed=true] .ui-icon{color:var(--accent-ink)}
body .collection{margin-top:0}
body .section-heading{margin-bottom:22px}
body .section-heading h2{font-size:26px;letter-spacing:-.9px;line-height:1.25}
body .section-heading .eyebrow{font-size:9px;color:var(--muted);letter-spacing:1.6px}
body .tabs{gap:5px;justify-content:flex-start}
body .tabs button{border-radius:999px;padding:9px 14px;color:var(--muted);font-size:12px}
body .tabs button.active{background:color-mix(in srgb,var(--accent) 12%,var(--panel));color:var(--text)}
body .search{background:var(--panel);border:1px solid var(--line);border-radius:14px}
body .search input{padding:13px 0}
body .list-options{color:var(--muted);font-size:11px;margin:20px 0 10px}
body .track-entry{border-radius:13px;padding-right:3px;transition:background .18s}
body .track-entry:hover{background:color-mix(in srgb,var(--accent) 4%,var(--panel))}
body .track-entry .track{width:100%;min-height:76px;border-radius:12px;background:transparent}
body .track.current{background:color-mix(in srgb,var(--accent) 9%,var(--panel))}
body .track .cover{border-radius:10px;width:46px;height:46px}
body .track-title{font-size:14px;font-weight:650}
body .track-artist{font-size:12px}
.track-more{width:34px;height:44px;min-height:44px;border-radius:10px;font-size:24px;line-height:1;color:var(--muted)}
.track-more:hover,.row-action:hover{background:var(--surface);color:var(--text)}
.view-description{font-size:13px;color:var(--muted);line-height:1.7;margin:10px 0 22px}
.view-loading{padding:30px 0;color:var(--muted);font-size:13px}
.view-toolbar{display:flex;justify-content:space-between;align-items:center;margin:0 0 20px;gap:14px;font-size:12px}
.view-toolbar .primary{border-radius:999px;padding:10px 18px}
.section-kicker{font-size:9px;font-weight:700;letter-spacing:1.8px;color:var(--muted);display:block}
.view-subheading{font-size:13px;font-weight:650;margin:25px 0 12px;color:var(--muted)}
.view-empty{padding:48px 20px;text-align:center;max-width:420px;margin:0 auto}
.view-empty>.ui-icon{width:70px;height:70px;border-radius:22px;background:color-mix(in srgb,var(--accent) 10%,var(--panel));color:var(--accent);margin-bottom:12px}
.view-empty>.ui-icon svg{width:29px;height:29px}
.view-empty h3{font-size:19px;font-weight:650;letter-spacing:-.5px;margin:8px 0}
.view-empty p{font-size:13px;color:var(--muted);line-height:1.8;margin:0}
.view-content .tool-track{display:flex;align-items:center;flex-wrap:nowrap;gap:10px;padding:10px 4px;border:0;border-radius:13px;min-width:0}
.view-content .tool-track:hover{background:color-mix(in srgb,var(--accent) 4%,var(--panel))}
.tool-track .track-link{display:flex;align-items:center;gap:12px;min-width:0;flex:1 1 0;text-align:left;padding:0;border-radius:10px}
.tool-track .track-link:disabled{opacity:.5}
.tool-track .cover{height:44px;width:44px;border-radius:11px}
.tool-track .cover svg{width:19px;height:19px}
.tool-track-info{display:block;min-width:0}
.tool-track-info strong,.tool-track-info>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tool-track-info strong{font-size:13px;font-weight:650;color:var(--text);line-height:1.5}
.tool-track-info>span{font-size:11px;color:var(--muted);line-height:1.5;margin-top:3px}
.tool-track .tool-duration{flex:0 0 auto;font-size:10px;font-variant-numeric:tabular-nums;color:var(--muted);padding:0;min-width:28px;text-align:right}
.row-action{display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:40px;border-radius:10px;color:var(--muted)}
.row-action svg{width:18px;height:18px}
.track-downloaded,.track-download-pending{display:grid;place-items:center;flex:0 0 36px;width:36px;height:40px;color:var(--accent);font-size:20px;font-weight:750}.track-download-pending{color:var(--muted);font-size:18px}
.track-downloaded.just-delivered{animation:download-complete .55s cubic-bezier(.2,.9,.25,1.25)}
@keyframes download-complete{0%{opacity:0;transform:scale(.2) rotate(-18deg)}65%{opacity:1;transform:scale(1.3) rotate(4deg)}100%{transform:scale(1) rotate(0)}}
.queue-now{padding:20px;border-radius:20px;background:color-mix(in srgb,var(--accent) 8%,var(--panel));border:1px solid color-mix(in srgb,var(--accent) 18%,var(--line))}
.queue-now .section-kicker{color:var(--accent);margin-bottom:10px}
:root[data-theme=light] .queue-now .section-kicker{color:var(--accent-ink)}
.queue-now .tool-track{padding:0}
.queue-now .cover{width:54px;height:54px;border-radius:14px}
.queue-now .tool-track-info strong{font-size:15px}
.playlist-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px 20px}
.playlist-card{display:flex;flex-direction:column;text-align:left;min-width:0;border-radius:19px;padding:0;color:var(--text)}
.playlist-card>strong{font-size:15px;font-weight:700;margin:13px 0 4px;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;letter-spacing:-.3px}
.playlist-card>span:last-child{font-size:12px;color:var(--muted)}
.playlist-art{display:flex;align-items:center;justify-content:center;aspect-ratio:1;width:100%;border-radius:20px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 0 100%,color-mix(in srgb,var(--accent) 62%,#162128),#17212c 75%);box-shadow:var(--lift);isolation:isolate;transition:transform .2s}
.playlist-art:before,.playlist-art:after{content:'';position:absolute;width:110%;height:110%;border-radius:50%;border:1px solid #ffffff23;left:26%;top:22%;z-index:-1}
.playlist-art:after{width:75%;height:75%;top:39%;left:44%;background:#ffffff04}
.playlist-art.art-1{background:linear-gradient(140deg,#3f2f53,color-mix(in srgb,var(--accent) 28%,#75628a),#211e35)}
.playlist-art.art-2{background:linear-gradient(145deg,#25384c,color-mix(in srgb,var(--accent) 25%,#437d91),#182c38)}
.playlist-art.art-3{background:linear-gradient(140deg,#574031,color-mix(in srgb,var(--accent) 20%,#bb8166),#332823)}
.playlist-initial{font-size:clamp(48px,7vw,88px);font-weight:450;letter-spacing:-4px;color:#ffffffd9;line-height:1}
.playlist-art>.ui-icon{position:absolute;bottom:16px;right:16px;color:#ffffff85}
.playlist-art.has-custom-cover{background-size:cover;background-position:center;background-repeat:no-repeat}.playlist-art.has-custom-cover:before,.playlist-art.has-custom-cover:after{display:none}
.playlist-card:hover .playlist-art{transform:translateY(-3px)}
.create-card .playlist-art{background:var(--panel);border:1px dashed var(--border);box-shadow:none}
.create-card .playlist-art:before,.create-card .playlist-art:after{display:none}
.create-card .playlist-art>.ui-icon{position:static;width:52px;height:52px;border-radius:50%;background:var(--surface);color:var(--muted)}
.create-card .playlist-art svg{width:25px;height:25px}
.playlist-create{display:flex;gap:10px;align-items:center;padding:17px;margin-bottom:24px;border:1px solid var(--line);background:var(--panel);border-radius:16px}
.playlist-create input{width:100%;min-width:0;flex:1;border:0;padding:10px 5px;background:transparent;color:var(--text);font-size:13px}
.playlist-detail{display:flex;align-items:center;gap:26px;margin:24px 0 30px}
.playlist-detail>.playlist-art{width:155px;flex:0 0 155px}
.playlist-detail-info{min-width:0}
.playlist-detail-info h3{font-size:27px;line-height:1.2;letter-spacing:-.8px;margin:9px 0;overflow-wrap:anywhere}
.playlist-detail-info p{font-size:12px;color:var(--muted);margin:0 0 16px}
.playlist-detail .primary{border-radius:999px;padding:10px 17px}
.playlist-more{align-self:flex-start;display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:50%;background:var(--surface);color:var(--muted)}
.playlist-more:hover{color:var(--text)}
.playlist-editor-dialog form{display:grid;gap:22px;margin-top:22px}.playlist-title-field{display:grid;gap:9px;font-size:12px;color:var(--muted)}
.playlist-title-field input,.playlist-search input{width:100%;min-width:0;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:13px;padding:13px 15px;font-size:14px}
.playlist-cover-editor{display:grid;grid-template-columns:118px minmax(0,1fr);align-items:center;gap:20px}.playlist-cover-editor>.playlist-art{width:118px}.playlist-cover-editor strong{font-size:14px}.playlist-cover-editor p{font-size:12px;line-height:1.65;color:var(--muted);margin:7px 0 12px}
.playlist-editor-dialog .dialog-actions{flex-wrap:wrap}.playlist-editor-dialog .dialog-actions .primary{flex:1}.playlist-editor-dialog .danger-zone{margin-top:0}
.playlist-add-tracks{display:block;margin:26px auto 8px;min-width:min(100%,260px);border-radius:999px}
.playlist-picker-title{font-size:24px;margin:18px 0}.playlist-search{display:flex;align-items:center;gap:10px;margin-bottom:20px}.playlist-search>.ui-icon{margin-right:-44px;margin-left:14px;z-index:1;color:var(--muted)}.playlist-search input{padding-left:45px}
.playlist-picker-results{display:grid}.playlist-pick-button{flex:0 0 auto;border:1px solid var(--line);border-radius:999px;padding:8px 11px;min-height:34px;font-size:10px;color:var(--accent)}.playlist-pick-button:disabled{color:var(--muted);opacity:.75}
.playlist-top-button{position:fixed;right:max(22px,env(safe-area-inset-right,0px));bottom:calc(115px + var(--safe-bottom));z-index:12;display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--accent);color:var(--accent-ink,#082118);box-shadow:0 12px 30px #0005}.playlist-top-button[hidden]{display:none}
.text-action{display:inline-flex;align-items:center;gap:5px;color:var(--muted);font-size:12px;min-height:40px}
.text-action svg{width:17px}
body dialog.music-sheet{width:min(580px,calc(100% - 32px));padding:26px;border-radius:26px;max-height:calc(100dvh - 40px)}
.music-sheet .dialog-heading{position:sticky;top:-26px;background:var(--panel);padding:10px 0 16px;z-index:2}
.music-sheet .dialog-heading h2{font-size:23px;letter-spacing:-.7px}
.music-sheet .dialog-heading .icon-button{width:36px;height:36px;border-radius:50%;color:var(--muted);background:var(--surface)}
.music-sheet .playlist-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 16px}
.action-menu-item{display:flex;align-items:center;gap:14px;width:100%;min-height:57px;padding:10px 14px;margin-top:7px;border-radius:13px;background:var(--surface);text-align:left;font-size:13px;color:var(--text)}
.action-menu-item>.ui-icon{color:var(--muted)}
body .player{background:var(--panel);border-top:1px solid var(--line);box-shadow:0 -6px 32px #0002;padding-top:13px;padding-bottom:calc(10px + var(--safe-bottom))}
body .player .player-cover{border-radius:12px;width:46px;height:46px}
body .player .play-toggle{width:46px;height:46px;box-shadow:0 3px 18px color-mix(in srgb,var(--accent) 14%,transparent)}
body .player .play-controls{gap:16px}
body .player .play-controls .icon-button{color:var(--muted)}
body .player .play-controls [aria-pressed=true]{color:var(--accent)}
body .player .timeline{margin-top:5px;gap:12px}
body .timeline input::-webkit-slider-runnable-track{height:4px;border-radius:99px;background:linear-gradient(to right,var(--accent) 0%,var(--accent) var(--played,0%),var(--track-rail) var(--played,0%),var(--track-rail) 100%)}
body .timeline input::-moz-range-track{height:4px;border-radius:99px;background:linear-gradient(to right,var(--accent) 0%,var(--accent) var(--played,0%),var(--track-rail) var(--played,0%),var(--track-rail) 100%)}
body .volume input::-webkit-slider-runnable-track{height:4px;border-radius:99px;background:linear-gradient(to right,var(--accent) 0%,var(--accent) var(--volume,80%),var(--track-rail) var(--volume,80%),var(--track-rail) 100%)}
body .volume input::-moz-range-track{height:4px;border-radius:99px;background:linear-gradient(to right,var(--accent) 0%,var(--accent) var(--volume,80%),var(--track-rail) var(--volume,80%),var(--track-rail) 100%)}
body .timeline input::-webkit-slider-thumb{width:12px;height:12px;margin-top:-4px;border:0;box-shadow:none;background:var(--accent)}
body .timeline input::-moz-range-thumb{width:12px;height:12px;border:0;box-shadow:none;background:var(--accent)}
body .timeline input:active::-webkit-slider-thumb{box-shadow:0 0 0 6px color-mix(in srgb,var(--accent) 15%,transparent)}
body dialog.full-player{background:radial-gradient(ellipse at 50% 15%,color-mix(in srgb,var(--accent) 9%,transparent),transparent 65%),var(--bg);padding:calc(18px + env(safe-area-inset-top,0px)) 24px calc(28px + var(--safe-bottom))}
.full-player>.dialog-heading{max-width:480px;display:grid;grid-template-columns:42px minmax(0,1fr) 42px;text-align:center;gap:12px}
.full-player>.dialog-heading>div{display:flex;flex-direction:column;gap:6px}
.full-player .dialog-heading strong{font-size:12px;font-weight:500;color:var(--text)}
.full-player #player-collapse{border-radius:50%;width:42px;height:42px;color:var(--text);background:var(--surface)}
body .full-player .player{max-width:440px;margin:32px auto 0;gap:30px;background:transparent;padding:0;box-shadow:none}
body .full-player .playing-info{gap:25px}
body .full-player .player-cover{display:grid;width:min(68vw,290px);height:min(68vw,290px);border-radius:26px;box-shadow:0 24px 55px #0004;border:1px solid #ffffff18}
body .full-player .player-cover:after{width:90%;height:90%;right:-27%;bottom:-29%;border-color:#ffffff25}
body .full-player .player-cover svg{width:74px;height:74px;opacity:.85}
body .full-player .playing-info strong{font-size:23px;letter-spacing:-.8px;font-weight:700;line-height:1.25}
body .full-player .playing-info span{font-size:13px;margin-top:8px;font-weight:400;color:var(--muted)}
body .full-player .playback{display:flex;flex-direction:column}
body .full-player .timeline{order:-1;display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:0 0 23px}
body .full-player .timeline input{grid-column:1/-1;grid-row:1;width:100%;height:25px}
body .full-player .timeline span{grid-row:2;font-size:11px}
body .full-player .play-controls{grid-template-columns:42px 48px 68px 48px 42px;gap:14px;margin:0}
body .full-player .play-toggle{width:66px;height:66px}
body .full-player .play-toggle svg{width:29px;height:29px}
body .full-player .play-controls .icon-button{width:44px;height:44px}
body .full-player .play-controls .icon-button svg{width:25px;height:25px}
body .full-player #report-audio svg{width:20px;height:20px}
.full-actions{max-width:390px;margin:30px auto 0;display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding-top:22px;border-top:1px solid var(--line)}
.full-actions>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:64px;border-radius:15px;color:var(--muted);font-size:11px;font-weight:550}
.full-actions>button:hover{background:var(--surface);color:var(--text)}
.full-actions>button.timer-active{color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,transparent)}
:root[data-theme=light] .full-actions>button.timer-active{color:var(--accent-ink)}
.sleep-presets{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:24px 0}
.sleep-presets button{border-radius:16px;border:1px solid var(--line);background:var(--surface);min-height:82px;color:var(--text);padding:12px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
.sleep-presets strong{font-size:25px;font-weight:650;letter-spacing:-.7px}.sleep-presets span{font-size:10px;color:var(--muted)}
.sleep-presets button[aria-pressed=true]{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,var(--panel))}
.sleep-presets .sleep-wide{grid-column:span 2;min-height:49px;font-size:12px}
.sleep-custom-label{display:block;font-size:12px;color:var(--muted);margin-bottom:12px}
.sleep-custom-row{display:flex;gap:12px}.sleep-custom-row input{width:100%;min-width:0;flex:1;border:1px solid var(--line);background:var(--surface);padding:12px 15px;border-radius:12px;color:var(--text);font-size:15px}
#sleep-status{font-size:12px;color:var(--muted);margin:20px 0 0;line-height:1.6}
@media(min-width:1000px){.playlist-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){
  body main{padding-left:20px;padding-right:20px;padding-bottom:calc(190px + var(--safe-bottom))}
  body .hero{min-height:270px;padding:27px 23px;border-radius:23px}
  body .hero h1{font-size:30px;line-height:1.16;margin:18px 0 13px}
  body .hero .record-art{right:-86px;opacity:.28}
  body .hero .hero-actions{margin-top:22px;gap:13px}
  body .hero .hero-actions>span{font-size:10px}
  body .library-nav{margin:23px 0 26px;gap:2px;padding:5px;border-radius:16px}
  .browse-tab{min-height:60px;flex-direction:column;gap:6px;font-size:10px}
  .browse-tab svg{width:19px;height:19px}
  body .section-heading h2{font-size:23px}
  body .tabs{display:flex;gap:3px;justify-content:space-between;flex-wrap:nowrap}
  body .tabs button{font-size:10px;padding:9px 10px;white-space:nowrap;width:auto}
  body .track-entry .track{grid-template-columns:minmax(0,1fr) 30px;gap:9px;padding:9px 4px}
  body .track-number{display:none}
  body .track .cover{width:43px;height:43px;border-radius:11px}
  body .track-title{font-size:13px}body .track-artist{font-size:11px}
  .playlist-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px}
  .playlist-card>strong{font-size:14px;margin-top:12px}
  .playlist-card>span:last-child{font-size:11px}
  .playlist-art{border-radius:18px}
  .playlist-detail{gap:18px;margin:19px 0 25px}.playlist-detail>.playlist-art{width:112px;flex-basis:112px}.playlist-detail-info h3{font-size:23px}
  .playlist-detail{align-items:flex-start}.playlist-more{width:38px;height:38px;flex-basis:38px}.playlist-cover-editor{grid-template-columns:90px minmax(0,1fr);gap:14px}.playlist-cover-editor>.playlist-art{width:90px}.playlist-cover-editor .secondary{padding:9px 11px}
  .playlist-create{padding:12px;flex-wrap:wrap}.playlist-create input{flex-basis:100%}.playlist-create .primary{width:100%}
  .view-content .tool-track{gap:6px;padding:9px 0}
  .tool-track .track-link{gap:10px}.tool-track .cover{width:40px;height:40px}.tool-track-info strong{font-size:12px}.tool-track-info>span{font-size:10px}
  .row-action{flex-basis:30px;width:30px;min-height:42px}.tool-track .tool-duration{font-size:9px;min-width:25px}
  .queue-now{padding:17px}.queue-now .tool-track-info strong{font-size:13px}
  body .player{padding:10px 18px calc(6px + var(--safe-bottom));gap:5px;grid-template-rows:40px auto}
  body .player .player-cover{width:38px;height:38px;border-radius:10px}
  body .player .play-controls{grid-template-columns:repeat(5,40px);gap:16px}
  body .player .timeline{margin:4px 0 0;gap:10px}
  body .player .play-toggle{width:42px;height:42px}
  body dialog.music-sheet{margin:auto auto 0;width:100%;max-height:90dvh;border-radius:26px 26px 0 0;padding:24px 20px calc(24px + var(--safe-bottom))}
  .music-sheet .dialog-heading{top:-24px;padding:5px 0 15px}
  body .full-player .player-cover{width:min(65vw,280px);height:min(65vw,280px)}
  body .full-player .player{margin-top:25px;gap:24px}
  body .full-player .playing-info{gap:24px}
  body .full-player .play-controls{grid-template-columns:36px 44px 66px 44px 36px;gap:14px}
  .full-actions{margin-top:26px;padding-top:18px}
}
@media(max-width:365px){
  body main{padding-left:14px;padding-right:14px}
  body .hero h1{font-size:27px}
  body .tabs button{padding:8px 9px;font-size:9px}
  body .full-player .play-controls{grid-template-columns:32px 40px 62px 40px 32px;gap:10px}
  body .full-player .play-toggle{width:60px;height:60px}
  .playlist-detail>.playlist-art{width:90px;flex-basis:90px}.playlist-detail-info h3{font-size:20px}
}
@media(prefers-reduced-motion:reduce){.playlist-art,.browse-tab,.track-entry{transition:none}.track-downloaded.just-delivered{animation:none}}
/* Full-player controls keep their size independently of the compact player. */
body .full-player .player .player-cover{border-radius:26px}
body .full-player .player .play-toggle{width:66px;height:66px}
body .full-player .player .play-controls{grid-template-columns:36px 44px 66px 44px 36px;gap:14px}
@media(max-width:365px){body .full-player .player .play-toggle{width:60px;height:60px}body .full-player .player .play-controls{grid-template-columns:32px 40px 62px 40px 32px;gap:10px}}
*{scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.playlist-management{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 20px}
.playlist-delete-confirm{border:1px solid var(--line);background:var(--surface);border-radius:18px;padding:18px;margin-bottom:20px}
.playlist-delete-confirm p{font-size:13px;line-height:1.6;margin:0 0 15px}
.playlist-delete-confirm button{margin-right:10px}
.danger{color:#e76578!important}
#full-player .dialog-heading,#full-player .player-cover{touch-action:none;user-select:none}
.music-sheet[open]{animation:sheet-appear .24s cubic-bezier(.2,.7,.2,1)}
@keyframes sheet-appear{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.music-sheet[open]{animation:none}}

/* System cutouts and Telegram's floating controls both reserve space. */
body:not(.has-track)>.player{display:none}
body:not(.has-track) main{padding-bottom:60px}
.cover{position:relative;overflow:hidden}
.cover>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .18s ease}
.cover>.cover-fallback{opacity:1;object-fit:cover}
.cover.artwork-pending{background:var(--surface)}.cover.artwork-pending>.cover-fallback{opacity:0}
.cover.has-artwork>.cover-fallback{opacity:0}
.cover.has-artwork>img:not(.cover-fallback){opacity:1}
:root{--safe-bottom:max(env(safe-area-inset-bottom,0px),var(--app-safe-bottom,0px))}
body main{padding-top:max(18px,var(--app-safe-top,0px));padding-left:max(20px,var(--app-safe-left,0px));padding-right:max(20px,var(--app-safe-right,0px))}
body dialog{max-height:calc(100dvh - var(--app-safe-top,0px) - var(--safe-bottom));scroll-padding-top:20px}
body dialog.full-player{height:100dvh;max-height:100dvh;padding-top:max(20px,var(--app-safe-top,0px));padding-bottom:max(20px,var(--safe-bottom));overflow-y:auto}
body .library-nav:has([data-browse="offline"]){grid-template-columns:repeat(4,minmax(0,1fr))}
.hero-shuffle{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px}.hero-shuffle svg{width:17px;height:17px}
.offline-current{display:block;width:min(100%,440px);margin:22px auto 0;min-height:46px}
.offline-current[hidden]{display:none}
.offline-guide{border:1px solid var(--line);border-radius:24px;padding:0;background:var(--panel);margin-bottom:20px;overflow:hidden}
.offline-guide-summary{display:grid;grid-template-columns:32px 1fr 24px;align-items:center;gap:13px;padding:20px 24px;cursor:pointer;list-style:none}.offline-guide-summary::-webkit-details-marker{display:none}.offline-guide-summary h3{margin:0}.offline-guide-summary>.ui-icon:first-child{width:32px;height:32px;color:var(--accent)}.offline-guide-summary>.ui-icon:last-child{transition:transform .18s}.offline-guide[open] .offline-guide-summary>.ui-icon:last-child{transform:rotate(180deg)}
.offline-guide-content{padding:0 24px 24px}
.offline-guide p,.offline-row p{font-size:13px;line-height:1.7}
.offline-guide-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.offline-clear-confirm{width:100%}
.offline-row{display:grid;gap:7px;padding:20px 0;border-bottom:1px solid var(--line)}
.offline-row>span{font-size:12px;color:var(--muted)}
.offline-status{color:var(--accent);margin:0}
.offline-track-done,.offline-track-pending{display:flex;align-items:center;min-height:54px;margin-top:7px;padding:10px 15px;border-radius:13px;background:color-mix(in srgb,var(--accent) 9%,var(--surface));color:var(--accent);font-size:13px;font-weight:650}.offline-track-pending{color:var(--muted)}
.offline-row button{justify-self:start;min-height:44px}
@media(max-width:700px){
  body main{padding-top:max(12px,var(--app-safe-top,0px))}
  body .hero{min-height:180px;padding:22px;border-radius:22px}
  body .hero h1{font-size:28px}
  body .hero-copy>p{display:none}
  body .hero .record-art{display:grid;right:-78px;opacity:.38;width:52%}
  body .hero .hero-actions{margin-top:18px}
  .telegram-fullscreen body .hero{min-height:180px;padding:20px 18px}
  .telegram-fullscreen body .hero h1{font-size:25px;max-width:70%}
  .telegram-fullscreen body .hero .hero-actions{margin-top:14px}
  body .library-nav{position:sticky;top:var(--app-safe-top,0px);z-index:5;margin:18px 0;background:var(--panel)}
  body .browse-tab{min-width:0;min-height:54px;font-size:10px;padding:7px 3px}
  .offline-guide-summary{padding:18px 20px}.offline-guide-content{padding:0 20px 20px}
  body .full-player .player{margin-top:16px;gap:18px}
  body .full-player .player .player-cover{width:min(58vw,260px);height:min(58vw,260px)}
}
@media(max-height:600px) and (orientation:landscape){
  body .full-player .player .player-cover{width:110px;height:110px}
  body .full-player .playing-info{gap:10px}
  body .full-player .player{gap:10px}
}
