/* Sound Island · Native-inspired music library */
:root{
  color-scheme:light;
  --bg:#f5f5f7;--surface:#fff;--surface-raised:#fff;--grouped:#efeff2;
  --ink:#1d1d1f;--body:#424245;--secondary:#86868b;--tertiary:#a0a0a6;
  --accent:#fa2d48;--accent-hover:#e51c3a;--accent-soft:#fa2d4810;
  --line:#0000000c;--line-strong:#00000014;--sidebar-bg:#eeeef2d9;
  --glass:#ffffffcf;--glass-border:#ffffffc9;--shadow:0 8px 30px #0000000b,0 1px 4px #00000006;
  --control:#76768014;--hover:#7676800c;--selected:#fa2d480b;
  --sidebar:248px;--player:84px;--safe:env(safe-area-inset-bottom,0px);
  --spring:cubic-bezier(.22,1,.36,1);--row-bg:var(--surface);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Helvetica Neue","PingFang SC",sans-serif;
  font-synthesis:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
html[data-theme="dark"]{
  color-scheme:dark;--bg:#000;--surface:#1c1c1e;--surface-raised:#2c2c2e;--grouped:#2c2c2e;
  --ink:#f5f5f7;--body:#d1d1d6;--secondary:#98989d;--tertiary:#707075;
  --accent:#ff375f;--accent-hover:#ff5274;--accent-soft:#ff375f1b;
  --line:#ffffff0d;--line-strong:#ffffff17;--sidebar-bg:#1c1c1edb;
  --glass:#242426d6;--glass-border:#ffffff19;--shadow:0 12px 40px #00000050,0 1px 3px #00000030;
  --control:#76768030;--hover:#ffffff05;--selected:#ff375f10;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--body)}
body{font-size:14px;line-height:1.5;overscroll-behavior-y:none}
button,input,select,textarea{font:inherit;color:inherit}
button,input,select,textarea,a{-webkit-tap-highlight-color:transparent}
button{border:0;background:none;cursor:pointer;touch-action:manipulation;transition:background .2s,color .2s,box-shadow .2s,transform .35s var(--spring)}
button:active:not(:disabled){transform:scale(.97)}
button:disabled{opacity:.35;cursor:not-allowed}
a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #007aff75;outline-offset:3px}
input::placeholder,textarea::placeholder{color:var(--secondary)}
[hidden]{display:none!important}
::selection{color:var(--ink);background:#fa2d4828}
svg{display:block;width:22px;height:22px;flex-shrink:0;stroke-width:1.8}
span[data-icon]{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
button[data-icon]{display:inline-flex;align-items:center;justify-content:center}
.app-shell{min-height:100vh}.main-shell{margin-left:var(--sidebar)}
.eyebrow,.heading-dot,.section-heading h2>span{display:none}

/* Translucent system sidebar */
.sidebar{position:fixed;inset:0 auto 0 0;z-index:40;width:var(--sidebar);display:flex;flex-direction:column;padding:36px 16px 0;border-right:1px solid var(--line);background:var(--sidebar-bg);backdrop-filter:blur(40px) saturate(145%);-webkit-backdrop-filter:blur(40px) saturate(145%)}
.brand{display:flex;align-items:center;gap:12px;padding:0 15px;width:fit-content;color:var(--ink);font-size:28px;font-weight:700;letter-spacing:-.6px;line-height:1.15}
.brand-mark{width:43px;height:43px;border-radius:13px;color:#fff;background:linear-gradient(155deg,#ff5b6f,#fa2348);box-shadow:inset 0 1px 0 #ffffff3d,0 3px 8px #fa2d481c}
.brand-mark svg{width:28px;height:28px;stroke-width:2.2}
.brand small{display:block;font-size:9px;letter-spacing:1.5px;font-weight:600;color:var(--secondary);margin-top:6px}
.workspace-label{display:flex;align-items:center;gap:8px;padding:0 12px;height:38px;margin:28px 8px 29px;border:1px solid var(--line);border-radius:10px;background:var(--control);font-size:12px;color:var(--secondary)}
.workspace-label>span:last-child{margin-left:auto}.workspace-label svg{width:14px;height:14px}
.status-dot,.tiny-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#a1a1a6;flex-shrink:0}
.nav-label{font-size:12px;font-weight:600;color:var(--secondary);padding:0 15px;margin-bottom:8px}
.primary-nav,.collection-nav,.secondary-nav{display:flex;flex-direction:column;gap:3px}
.nav-item{display:flex;align-items:center;gap:12px;min-height:44px;width:100%;padding:0 15px;border-radius:10px;text-align:left;color:var(--body);font-size:14px;white-space:nowrap}
.nav-item svg{width:20px;height:20px;color:var(--accent);stroke-width:1.7}
.nav-item:hover{background:var(--control)}
.nav-item.active{background:var(--accent);color:#fff;font-weight:500;box-shadow:0 2px 4px #fa2d4810}
.nav-item.active svg{color:#fff}.nav-count{margin-left:auto;font-size:12px;color:var(--secondary);min-width:20px;text-align:right;font-variant-numeric:tabular-nums}
.nav-item.active .nav-count{color:#ffffffe0}
.collection-label{display:flex;align-items:center;justify-content:space-between;margin-top:27px;margin-bottom:8px;padding-right:8px}
.collection-label .icon-btn{width:28px;height:28px;color:var(--secondary)}
.collection-label .icon-btn svg{width:17px;height:17px}
.collection-nav .nav-item{min-height:39px;font-size:13px;gap:12px}
.collection-dot{width:8px;height:8px;border-radius:3px;margin:0 6px;flex-shrink:0;background:#a7a7ad}
.collection-dot.dot-0{background:#8c9db0}.collection-dot.dot-1{background:#c6a181}.collection-dot.dot-2{background:#b29ac7}.collection-dot.dot-3{background:#8eb5ae}
.collection-name{min-width:0;overflow:hidden;text-overflow:ellipsis}
.sidebar-spacer{flex:1;min-height:26px}.secondary-nav{margin-bottom:18px}.secondary-nav .nav-item{min-height:40px;font-size:13px}.secondary-nav .nav-item svg{color:var(--secondary);width:18px;height:18px}.secondary-nav .nav-item.active svg{color:#fff}
.storage-note{display:flex;align-items:center;gap:10px;text-align:left;padding:13px 11px;margin:0 5px 20px;border-radius:12px;background:var(--control);font-size:11px;color:var(--body)}
.storage-note .storage-symbol svg{width:19px;height:19px;color:var(--secondary)}
.storage-note small{display:block;font-size:10px;margin-top:4px;color:var(--secondary)}
.storage-note>span:last-child{margin-left:auto;color:var(--secondary)}.storage-note>span:last-child svg{width:14px;height:14px}
.profile{display:flex;align-items:center;gap:10px;min-height:79px;margin:0 5px;padding:12px 7px;border-top:1px solid var(--line-strong);font-size:12px;font-weight:500;color:var(--body)}
.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;background:linear-gradient(155deg,#d2d2d7,#aaaab1);color:#fff;font-size:17px;font-weight:600;border:1px solid #ffffff40}
.profile small{display:block;margin-top:3px;font-size:10px;font-weight:400;color:var(--secondary)}.profile-dot{width:5px;height:5px;border-radius:50%;background:#a9a9ae;margin-left:auto}

/* The toolbar and large title follow the iOS hierarchy. */
.topbar{height:73px;padding:0 48px;display:flex;align-items:center;gap:20px;border-bottom:1px solid var(--line);background:var(--bg)}
.breadcrumb{display:flex;align-items:center;gap:14px;color:var(--secondary);font-size:13px;white-space:nowrap}.breadcrumb svg{width:17px;height:17px}.breadcrumb-slash{color:var(--tertiary)}
.search-box{display:flex;align-items:center;gap:9px;width:344px;height:38px;border:1px solid transparent;background:var(--control);border-radius:11px;padding:0 12px;margin-left:auto;transition:background .2s,border-color .2s}
.search-box>span{color:var(--secondary)}.search-box svg{width:18px;height:18px}.search-box input{width:100%;min-width:0;border:0;background:transparent;outline:none!important;font-size:13px;color:var(--ink)}
.search-box:focus-within{background:var(--surface);border-color:#fa2d4840;box-shadow:0 0 0 3px #fa2d4809}
.search-box kbd{font:11px -apple-system,BlinkMacSystemFont,sans-serif;white-space:nowrap;color:var(--secondary);padding:1px 4px;border:1px solid var(--line-strong);border-radius:4px}
.icon-btn{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;height:36px;border-radius:50%;color:var(--secondary)}
.icon-btn svg{width:20px;height:20px}.icon-btn:hover:not(:disabled){color:var(--ink);background:var(--control)}
.icon-btn.mobile-menu{display:none}.help-button{margin-right:-7px}
main{max-width:1700px;margin:0 auto;padding:35px 48px 240px}
.page-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:34px}
.page-heading h1{font-size:40px;font-weight:700;line-height:1.25;letter-spacing:-1.6px;color:var(--ink)}
.page-heading p{margin-top:10px;font-size:15px;line-height:1.6;color:var(--secondary)}
.heading-actions{display:flex;align-items:center;gap:12px;flex-shrink:0}.heading-actions .theme-toggle{width:42px;height:42px;background:var(--surface);border:1px solid var(--line);box-shadow:0 2px 5px #00000003;color:var(--body)}
.primary-btn,.secondary-btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 20px;border-radius:12px;font-size:14px;font-weight:600;white-space:nowrap}
.primary-btn{color:#fff;background:var(--accent);box-shadow:0 3px 9px #fa2d4812}.primary-btn:hover:not(:disabled){background:var(--accent-hover);box-shadow:0 4px 12px #fa2d4825}.primary-btn svg{width:18px;height:18px;stroke-width:2}
.secondary-btn{background:var(--control);color:var(--ink)}.secondary-btn:hover{background:var(--line-strong)}
.text-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:13px;min-height:32px;padding:4px 0;color:var(--accent);white-space:nowrap}
.text-btn svg{width:15px;height:15px}.text-btn:hover{opacity:.75}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:15px}
.section-heading h2{font-size:20px;font-weight:650;color:var(--ink);letter-spacing:-.4px}
.feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.feature-card{position:relative;display:block;isolation:isolate;height:210px;border-radius:22px;overflow:hidden;text-align:left;color:#fff;background-size:cover;background-position:center;box-shadow:0 4px 12px #00000008;transition:transform .45s var(--spring),box-shadow .3s}
.feature-card:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#0000000c 0%,transparent 35%,#00000046 100%)}
.feature-card:after{content:"";position:absolute;inset:0;border:1px solid #ffffff20;border-radius:inherit;pointer-events:none}
.feature-card:hover{transform:translateY(-3px);box-shadow:0 9px 26px #00000014}.feature-card:active{transform:scale(.98)!important}
.feature-sea{background-color:#7b8f9a;background-image:url("assets/cover-calm.svg")}.feature-sunset{background-color:#ab907d;background-image:url("assets/cover-cinematic.svg")}.feature-lilac{background-color:#9583ad;background-image:url("assets/cover-details.svg")}
.feature-art{display:none}.feature-number{position:absolute;top:19px;left:20px;font-size:10px;letter-spacing:1.4px;font-weight:500;line-height:1.5;opacity:.78;z-index:1}
.feature-text{position:absolute;left:20px;right:40px;bottom:21px;z-index:1}.feature-text strong{display:block;font-size:23px;font-weight:650;letter-spacing:-.6px;line-height:1.3;text-shadow:0 1px 5px #0000000d}.feature-text small{display:block;font-size:12px;margin-top:7px;color:#ffffffbf;letter-spacing:.2px}
.feature-arrow{position:absolute;right:17px;bottom:22px;display:flex;align-items:center;justify-content:center;width:28px;height:28px;background:#ffffff25;backdrop-filter:blur(10px);border:1px solid #ffffff22;border-radius:50%;z-index:1}.feature-arrow svg{width:14px;height:14px}

/* Library, filters, and native-sized list rows */
.library-section{margin-top:37px}.library-topline{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:19px}.library-title{display:flex;align-items:center;gap:12px;min-width:0}.library-title h2{font-size:24px;letter-spacing:-.65px;font-weight:650;color:var(--ink)}.result-count{font-size:12px;color:var(--secondary);white-space:nowrap}
.view-switch{display:flex;gap:2px;padding:3px;border-radius:10px;background:var(--control)}.view-switch .icon-btn{width:32px;height:28px;border-radius:7px}.view-switch .icon-btn svg{width:17px;height:17px}.view-switch .icon-btn.active{color:var(--ink);background:var(--surface-raised);box-shadow:0 1px 4px #0000000e,0 0 1px #00000009}
.filter-toolbar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:20px}.segmented{display:flex;flex-shrink:0;gap:2px;padding:3px;background:var(--control);border-radius:11px}.segmented button{min-height:32px;padding:0 17px;min-width:58px;font-size:13px;color:var(--secondary);border-radius:8px}.segmented button.active{background:var(--surface-raised);box-shadow:0 2px 5px #0000000c,0 0 1px #0000000c;color:var(--ink);font-weight:600}.segmented button:hover:not(.active){color:var(--ink)}
.filter-selects{display:flex;align-items:center;gap:8px;min-width:0}.select-wrap{display:flex;align-items:center;gap:4px;min-height:37px;border:1px solid var(--line);background:var(--surface);border-radius:10px;padding-left:9px;flex-shrink:0}.select-wrap>span{color:var(--secondary)}.select-wrap>span svg{width:15px;height:15px}.select-wrap:not(:has(>span)){padding-left:4px}
.select-wrap select,.sort-wrap select{appearance:none;border:0;min-height:35px;color:var(--body);font-size:12px;padding:0 25px 0 6px;max-width:142px;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3.5 4.5 2.5 2.5 2.5-2.5' fill='none' stroke='%2386868b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 8px center;cursor:pointer;border-radius:9px}
select option{color:var(--ink);background:var(--surface)}
.sort-wrap{display:flex;align-items:center;gap:3px;margin-left:auto;flex-shrink:0}.sort-wrap svg{width:16px;height:16px;color:var(--secondary)}.sort-wrap select{font-size:12px;color:var(--secondary);max-width:139px;padding-left:4px;padding-right:21px;background-position:right 3px center}
.active-filter{display:flex;align-items:center;gap:6px;color:var(--accent);font-size:13px;margin:-7px 0 12px}.active-filter .icon-btn{width:26px;height:26px;color:var(--accent)}.active-filter .icon-btn svg{width:15px;height:15px}
.track-table{border:1px solid var(--line);border-radius:16px;background:var(--surface);overflow:hidden}.table-head,.track-row{display:grid;grid-template-columns:24px minmax(200px,1.4fr) minmax(116px,1fr) minmax(110px,.8fr) 67px 114px;column-gap:16px;align-items:center;padding:0 18px}.table-head{height:43px;font-size:11px;color:var(--secondary);background:var(--surface);border-bottom:1px solid var(--line)}.align-right{text-align:right;padding-right:9px}
.track-row{height:78px;background:var(--row-bg);border-bottom:1px solid var(--line);position:relative;transition:background .2s,transform .35s var(--spring);touch-action:pan-y}.track-row:last-child{border-bottom:0}.track-row:hover{background:color-mix(in srgb,var(--surface) 96%,var(--ink))}.track-row.selected,.track-row.playing{--row-bg:var(--selected);background:var(--selected)}.track-row.current .track-names strong{color:var(--accent)}
.check-wrap{display:flex;align-items:center;justify-content:flex-start;width:22px;height:40px;cursor:pointer}.check-wrap input,input[type="checkbox"]{appearance:none;width:16px;height:16px;flex-shrink:0;display:grid;place-items:center;padding:0;border-radius:5px;border:1.5px solid var(--line-strong);background:transparent;margin:0;cursor:pointer;transition:background .2s,border .2s}.check-wrap input:checked,input[type="checkbox"]:checked{background:var(--accent);border-color:var(--accent)}input[type="checkbox"]:checked:after{content:"";width:6px;height:3.5px;border-left:1.8px solid #fff;border-bottom:1.8px solid #fff;transform:translateY(-1px) rotate(-45deg)}input[type="checkbox"]:indeterminate{background:var(--accent);border-color:var(--accent)}input[type="checkbox"]:indeterminate:after{content:"";height:1.5px;width:7px;background:#fff}
.track-identity{display:flex;align-items:center;gap:13px;min-width:0}.track-art{display:flex;align-items:center;justify-content:center;position:relative;isolation:isolate;width:46px;height:46px;min-width:46px;border-radius:10px;color:#ffffffdb;overflow:hidden;background-size:cover;background-position:center;box-shadow:0 2px 5px #00000007}.track-art:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(140deg,#ffffff0e,transparent 40%,#00000010)}.track-art:after{content:"";position:absolute;width:50px;height:50px;left:12px;top:17px;border:1px solid #ffffff25;border-radius:50%;box-shadow:0 0 0 8px #ffffff08,0 0 0 17px #ffffff07;z-index:-1}.track-art>span{display:flex}.track-art svg{width:20px;height:20px;stroke-width:1.6}.art-sea{background-image:url("assets/cover-calm.svg");background-color:#7894a6}.art-amber{background-image:url("assets/cover-cinematic.svg");background-color:#bb8b65}.art-violet{background-image:url("assets/cover-details.svg");background-color:#9a84bd}.art-rose{background:linear-gradient(135deg,#d4a0ac,#b05d7d)}.art-night{background:linear-gradient(145deg,#65728b,#2e3858)}.art-mint{background:linear-gradient(140deg,#8eb2a6,#526f74)}.art-blue{background:linear-gradient(145deg,#98b7d8,#647b9e)}.art-sand{background:linear-gradient(135deg,#ccbd9d,#9e8463)}
.row-play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;border-radius:inherit;background:#00000035;color:#fff;opacity:0;transition:opacity .2s}.row-play svg{width:21px;height:21px;stroke-width:2}.track-row:hover .row-play,.row-play:focus-visible,.track-row.current .row-play{opacity:1}.track-row.current .track-art>span{opacity:0}
.track-names{min-width:0;line-height:1.35}.track-names strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:500;letter-spacing:-.1px;color:var(--ink)}.track-names small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--secondary);font-size:12px;margin-top:5px}.track-names small>span:not(.demo-label){margin:0 5px;color:var(--tertiary)}.demo-label{display:inline-block;vertical-align:1px;margin-left:6px;padding:0 4px;border:1px solid var(--line-strong);border-radius:3px;color:var(--secondary);font-size:9px;line-height:14px}
.waveform{display:flex;align-items:center;justify-content:center;gap:2px;min-width:0;height:44px;padding:8px 0;border-radius:6px;overflow:hidden;color:#b9b9c0}.waveform span{display:block;width:2px;min-width:2px;max-height:27px;border-radius:2px;background:currentColor;transition:background .15s}.waveform:hover{color:#919197}.track-row.playing .waveform{color:var(--accent)}.waveform span.played{background:var(--accent)}html[data-theme="dark"] .waveform{color:#5e5e66}html[data-theme="dark"] .track-row.playing .waveform{color:var(--accent)}
.track-tags{display:flex;align-items:center;flex-wrap:wrap;gap:5px;max-height:44px;overflow:hidden}.tag{display:inline-flex;align-items:center;white-space:nowrap;min-height:23px;padding:2px 7px;background:var(--control);border-radius:6px;font-size:11px;color:var(--secondary)}.tag:hover{color:var(--accent);background:var(--accent-soft)}
.track-duration{color:var(--body);font-size:13px;line-height:1.3;font-variant-numeric:tabular-nums}.track-duration strong{font-weight:400}.track-duration small{display:block;color:var(--secondary);font-size:10px;letter-spacing:.2px;margin-top:5px}
.track-actions{display:flex;align-items:center;justify-content:flex-end;gap:2px}.track-actions .icon-btn{width:36px;height:36px;color:var(--secondary)}.track-actions .icon-btn svg{width:18px;height:18px}.track-actions .icon-btn:last-child{color:var(--accent)}.favorite.active,#playerFavorite.active{color:var(--accent)!important}.favorite.active svg,#playerFavorite.active svg{fill:currentColor;stroke:currentColor}
.library-footer{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-top:15px;color:var(--secondary);font-size:11px}.library-footer>span:last-child{display:flex;align-items:center;gap:6px}.library-footer .tiny-dot{width:4px;height:4px}.bottom-note{display:flex;align-items:center;justify-content:center;gap:13px;margin-top:38px;color:var(--tertiary);font-size:11px}.bottom-note span{font-size:9px;padding-left:13px;border-left:1px solid var(--line-strong);letter-spacing:.5px}

/* Album-grid view */
.grid-mode .table-head{display:none}.track-table.grid-mode{background:none;border:0;overflow:visible}.grid-mode .track-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.grid-mode .track-row{height:auto;min-height:232px;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto 40px auto auto;column-gap:10px;row-gap:13px;border:1px solid var(--line);border-radius:18px;padding:20px;background:var(--surface);box-shadow:0 2px 6px #00000002}.grid-mode .track-row.selected,.grid-mode .track-row.playing{background:var(--surface);border-color:#fa2d4850;box-shadow:0 0 0 2px var(--accent-soft)}.grid-mode .track-row>.check-wrap{position:absolute;right:15px;top:12px;width:22px;z-index:3}.grid-mode .track-identity{grid-column:1/-1;padding-right:20px;gap:12px}.grid-mode .track-art{width:54px;height:54px;min-width:54px;border-radius:12px}.grid-mode .track-names strong{font-size:14px}.grid-mode .track-names small{font-size:11px}.grid-mode .waveform{grid-column:1/-1;width:100%;justify-content:space-between}.grid-mode .track-tags{grid-column:1/-1;min-height:23px;max-height:23px}.grid-mode .track-duration{grid-column:1;display:flex;align-items:center;gap:8px;font-size:12px}.grid-mode .track-duration small{margin:0}.grid-mode .track-actions{grid-column:2}.grid-mode .track-actions .icon-btn{width:31px;height:31px}.grid-mode .track-actions .icon-btn svg{width:17px;height:17px}.grid-mode .row-play{opacity:1;background:#00000015}.grid-mode .track-row:hover .row-play{background:#00000040}

/* One continuous, floating glass player */
.player{position:fixed;z-index:35;left:calc(var(--sidebar) + 32px);right:32px;bottom:20px;height:84px;padding:10px 22px;display:grid;grid-template-columns:minmax(220px,1fr) minmax(250px,1.15fr) minmax(160px,.72fr);align-items:center;gap:22px;border:1px solid var(--glass-border);border-radius:24px;background:var(--glass);backdrop-filter:blur(35px) saturate(175%);-webkit-backdrop-filter:blur(35px) saturate(175%);box-shadow:0 10px 40px #00000010,0 2px 8px #00000006,inset 0 1px 0 #ffffff60}
html[data-theme="dark"] .player{box-shadow:0 12px 40px #00000066,inset 0 1px 0 #ffffff09}
.player-track{display:flex;align-items:center;gap:12px;min-width:0}.player-track .track-art{width:48px;height:48px;min-width:48px;border-radius:11px}.player-track>div:nth-child(2){min-width:0}.player-track strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink);font-size:13px;font-weight:500;letter-spacing:-.2px}.player-track small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--secondary);font-size:11px;margin-top:5px}.player-track>.icon-btn{margin-left:2px;width:30px;height:30px}.player-track>.icon-btn svg{width:18px;height:18px}
.player-center{min-width:0}.player-controls{height:37px;display:flex;align-items:center;justify-content:center;gap:21px;position:relative}.player-controls>.icon-btn{width:28px;height:28px;color:var(--body)}.player-controls>.icon-btn svg{width:18px;height:18px;stroke-width:2}.play-main{display:flex;align-items:center;justify-content:center;width:37px;height:37px;border-radius:50%;color:var(--ink)}.play-main:hover{background:var(--control)}.play-main svg{width:24px;height:24px;stroke-width:2.3;fill:currentColor}.play-main svg>path{stroke-linejoin:round}.player-controls .loop-button{position:absolute;left:calc(50% + 91px);color:var(--secondary)}.player-controls .loop-button svg{width:16px;height:16px}.loop-button[aria-pressed="true"]{background:var(--accent-soft);color:var(--accent)}
.player-progress{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:4px;color:var(--secondary);font-size:10px;font-variant-numeric:tabular-nums}.player-progress>span{min-width:24px}.player-progress>span:last-child{text-align:right}.player-progress input{flex:1;width:100%}
input[type="range"]{appearance:none;-webkit-appearance:none;min-width:0;height:12px;background:transparent;cursor:pointer;margin:0;--range-color:#9c9ca3}input[type="range"]::-webkit-slider-runnable-track{height:3px;border-radius:4px;background:var(--line-strong)}input[type="range"]::-moz-range-track{height:3px;border-radius:4px;background:var(--line-strong)}input[type="range"]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:8px;height:8px;border-radius:50%;background:var(--range-color);margin-top:-2.5px;box-shadow:0 0 0 1px var(--glass)}input[type="range"]::-moz-range-thumb{width:8px;height:8px;border:0;border-radius:50%;background:var(--range-color)}input[type="range"]:hover{--range-color:var(--accent)}
.player-tools{display:flex;justify-content:flex-end;align-items:center;gap:7px}.player-tools .icon-btn{width:29px;height:29px}.player-tools .icon-btn svg{width:17px;height:17px}.player-tools input{width:66px}.player-divider{width:1px;height:18px;background:var(--line-strong);margin:0 7px}.mobile-tabbar{display:none}

/* States and floating feedback */
.empty-state{min-height:300px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:35px}.empty-state>[data-icon]{width:60px;height:60px;border-radius:20px;display:grid;place-items:center;background:var(--control);color:var(--secondary);margin-bottom:20px}.empty-state>[data-icon] svg{width:28px;height:28px}.empty-state h3{font-size:20px;font-weight:600;color:var(--ink)}.empty-state p{font-size:14px;color:var(--secondary);margin:10px 0 24px}
.batch-bar{position:fixed;left:calc(var(--sidebar) + (100vw - var(--sidebar))/2);bottom:123px;transform:translateX(-50%);z-index:38;display:flex;align-items:center;gap:22px;padding:9px 14px 9px 21px;max-width:calc(100vw - var(--sidebar) - 48px);white-space:nowrap;border:1px solid var(--glass-border);border-radius:17px;background:var(--glass);backdrop-filter:blur(24px) saturate(150%);-webkit-backdrop-filter:blur(24px) saturate(150%);box-shadow:var(--shadow)}.batch-bar strong{font-size:13px;font-weight:600;color:var(--ink)}.batch-bar .text-btn{font-size:13px;min-height:36px}.batch-bar .icon-btn{width:29px;height:29px}.danger{color:var(--accent)}
.toast-container{position:fixed;z-index:120;bottom:126px;right:34px;display:flex;flex-direction:column;gap:8px;align-items:flex-end;pointer-events:none}.toast{display:flex;align-items:center;gap:10px;max-width:420px;padding:14px 19px;border-radius:18px;border:1px solid var(--glass-border);background:var(--glass);backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px);box-shadow:var(--shadow);font-size:13px;line-height:1.7;color:var(--ink);animation:toast-in .4s var(--spring)}.toast>svg{width:19px;height:19px;color:var(--accent);flex-shrink:0}.toast.error>svg{color:#ff453a}.mobile-backdrop{position:fixed;inset:0;z-index:45;background:#0000003b;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
@keyframes toast-in{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}

/* Native sheets use grouped system surfaces and 44px controls. */
.modal{width:520px;max-width:calc(100vw - 40px);max-height:calc(100dvh - 64px);border:1px solid var(--glass-border);border-radius:28px;background:var(--surface);box-shadow:0 30px 100px #00000025;padding:30px;color:var(--body);overflow:auto;overscroll-behavior:contain}
.modal[open]{animation:sheet-in .45s var(--spring)}.modal::backdrop{background:#0000003c;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.modal:before{content:"";display:none}
.modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:25px}.modal-header h2{font-size:25px;font-weight:700;letter-spacing:-.7px;line-height:1.4;color:var(--ink)}.modal-header>.icon-btn{width:31px;height:31px;background:var(--control);margin:-2px -4px 0 0;color:var(--secondary)}.modal-header>.icon-btn svg{width:17px;height:17px;stroke-width:2.5}
.modal-footer{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:27px;padding-top:22px;border-top:1px solid var(--line)}.modal-footer>.danger:first-child{margin-right:auto}.modal .primary-btn,.modal .secondary-btn{min-height:44px;font-size:14px;padding:0 21px;border-radius:12px}.modal-footer .text-btn{min-height:44px;font-size:13px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-bottom:18px}.form-grid>label,.form-field{display:flex;flex-direction:column;gap:8px;font-size:13px;color:var(--secondary);min-width:0}.form-field{margin-bottom:18px}.modal input:not([type="file"]),.modal select,.modal textarea{width:100%;min-width:0;min-height:46px;padding:10px 12px;border:1px solid transparent;border-radius:11px;background:var(--grouped);font-size:16px;color:var(--ink);line-height:1.5;transition:border .2s,background .2s,box-shadow .2s}.modal input:not([type="file"]):focus,.modal select:focus,.modal textarea:focus{outline:0;border-color:#fa2d4855;box-shadow:0 0 0 3px #fa2d480a}.modal textarea{resize:vertical;min-height:94px}.modal select{cursor:pointer;padding-right:25px}
.drop-zone{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:190px;padding:27px 18px;border:1.5px dashed var(--line-strong);border-radius:18px;background:var(--bg);cursor:pointer;margin-bottom:22px;transition:background .2s,border .2s}.drop-zone:hover,.drop-zone.dragging,.drop-zone.dragover{background:var(--accent-soft);border-color:var(--accent)}.drop-zone>span{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:var(--accent-soft);color:var(--accent);margin-bottom:15px}.drop-zone>span svg{width:26px;height:26px}.drop-zone strong{font-size:16px;font-weight:600;color:var(--ink)}.drop-zone small{font-size:11px;color:var(--secondary);margin-top:9px;text-align:center;line-height:1.7}
.upload-files{max-height:185px;overflow:auto;margin-bottom:20px}.upload-file,.upload-file-row{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--line);font-size:13px;color:var(--ink)}.upload-file:last-child,.upload-file-row:last-child{border-bottom:0}.upload-file>span:first-child{flex-shrink:0;width:34px;height:38px;display:grid;place-items:center;background:var(--grouped);border-radius:9px;color:var(--accent)}.upload-file>span:first-child svg{width:18px;height:18px}.upload-file>span:nth-child(2){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-file small{display:block;font-size:11px;color:var(--secondary);margin-top:4px}.upload-file .icon-btn{width:32px;height:32px;flex-shrink:0}.form-note{display:flex;align-items:flex-start;gap:8px;padding:12px 13px;border-radius:10px;background:var(--bg);font-size:11px;color:var(--secondary);line-height:1.8}.form-note>span svg{width:15px;height:15px;margin-top:3px}.upload-progress{font-size:13px;color:var(--accent);margin-top:14px;line-height:1.7}.upload-progress:empty{display:none}.file-meta{padding:12px 14px;background:var(--grouped);border-radius:11px;color:var(--secondary);font-size:12px;line-height:1.8;margin-bottom:22px;overflow-wrap:anywhere}.compact-modal{width:460px}.compact-modal .modal-header{margin-bottom:14px}.dialog-description{font-size:14px;line-height:1.8;color:var(--secondary);margin-bottom:24px}.help-list{display:flex;flex-direction:column;gap:23px;margin:25px 0 29px;padding:0;list-style:none}.help-list li{display:flex;flex-direction:column;gap:7px}.help-list strong{font-size:14px;font-weight:600;color:var(--ink)}.help-list li>span{font-size:13px;line-height:1.8;color:var(--secondary)}.full-width{width:100%}
@keyframes sheet-in{from{opacity:0;transform:translateY(22px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}

/* Collection overview accepts the same card structure as the curated shelf. */
.collection-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:0 0 30px}.collection-overview .feature-card{height:190px}.collection-overview>button:not(.feature-card),.collection-card{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-height:160px;border-radius:22px;padding:24px;background:var(--surface);color:var(--ink);text-align:left;border:1px solid var(--line)}.collection-card>svg{width:34px;height:34px;color:var(--accent)}.collection-card strong{font-size:18px;font-weight:600}.collection-card small{font-size:12px;color:var(--secondary)}

@media(min-width:1600px){.feature-card{height:238px}.feature-text strong{font-size:26px}.feature-text{bottom:25px;left:24px}.feature-number{left:24px;top:23px}.feature-arrow{right:23px;bottom:26px}.table-head,.track-row{column-gap:22px}.track-row{height:82px}.player{right:40px;left:calc(var(--sidebar) + 40px)}}
@media(max-width:1250px){:root{--sidebar:224px}.sidebar{padding-left:12px;padding-right:12px}.brand{font-size:26px;gap:10px}.brand-mark{width:40px;height:40px}.brand small{font-size:8px}.nav-item{font-size:13px;padding-left:13px;gap:11px}.storage-note{gap:8px;padding-left:8px;padding-right:8px}.storage-note>span:last-child{display:none}.topbar{padding:0 34px}main{padding-left:34px;padding-right:34px}.feature-grid{gap:15px}.feature-card{height:200px}.feature-text strong{font-size:21px}.feature-number{font-size:9px;letter-spacing:1px}.table-head,.track-row{grid-template-columns:22px minmax(190px,1.4fr) minmax(100px,.8fr) 64px 110px;column-gap:14px;padding:0 16px}.table-head>span:nth-child(4),.track-row>.track-tags{display:none}.track-names strong{font-size:14px}.track-names small{font-size:11px}.track-actions .icon-btn{width:35px}.filter-toolbar{gap:12px}.segmented button{min-width:52px;padding:0 14px}.filter-selects{gap:6px}.select-wrap select{font-size:12px}.sort-wrap{margin-left:0}.player{left:calc(var(--sidebar) + 24px);right:24px;padding:10px 20px;grid-template-columns:minmax(195px,1fr) minmax(225px,1.1fr) 130px;gap:18px}.player-tools input{width:47px}.player-tools{gap:4px}.player-divider{margin:0 3px}.player-track>.icon-btn{display:none}.grid-mode .track-row>.track-tags{display:flex}.grid-mode .track-row{padding:17px}.grid-mode .track-art{width:47px;height:47px;min-width:47px}.grid-mode .track-names strong{font-size:13px}.grid-mode .track-names small{font-size:10px}}
@media(max-width:1080px){:root{--sidebar:208px}.sidebar{padding-left:10px;padding-right:10px}.brand{padding-left:13px}.workspace-label{margin-left:7px;margin-right:7px;font-size:11px;padding:0 9px}.profile{gap:8px;font-size:11px}.profile small{font-size:9px}.storage-note small{font-size:9px}.topbar{padding:0 27px;gap:14px}.search-box{width:300px}main{padding:30px 27px 240px}.page-heading h1{font-size:36px}.page-heading p{font-size:14px}.page-heading{gap:18px}.heading-actions{gap:8px}.heading-actions .theme-toggle{width:39px;height:39px}.primary-btn{padding:0 15px;font-size:13px}.feature-card{height:190px}.feature-text{left:17px;bottom:18px}.feature-text strong{font-size:19px}.feature-text small{font-size:11px}.feature-number{left:17px;top:17px;font-size:8px}.feature-arrow{right:14px;bottom:18px;width:26px;height:26px}.filter-toolbar{gap:11px 14px}.segmented{order:0}.sort-wrap{order:1;margin-left:auto}.filter-selects{order:2;flex:1 0 100%;width:100%;overflow-x:auto;gap:8px;scrollbar-width:thin;padding-bottom:2px}.table-head,.track-row{grid-template-columns:20px minmax(178px,1.3fr) minmax(85px,.7fr) 57px 98px;column-gap:11px;padding:0 13px}.track-identity{gap:10px}.track-art{width:43px;height:43px;min-width:43px}.track-actions .icon-btn{width:31px;height:34px}.track-actions .icon-btn svg{width:17px;height:17px}.track-names strong{font-size:14px}.track-duration{font-size:12px}.waveform{gap:1.5px}.waveform span{width:1.5px;min-width:1.5px}.player{grid-template-columns:minmax(185px,1fr) minmax(220px,1.05fr);gap:16px;padding:10px 19px;left:calc(var(--sidebar) + 20px);right:20px}.player-tools{display:none}.grid-mode .track-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.grid-mode .track-row{padding:18px}.grid-mode .track-names strong{font-size:14px}.grid-mode .track-names small{font-size:11px}.collection-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.batch-bar{gap:17px;max-width:calc(100vw - var(--sidebar) - 35px)}.batch-bar .text-btn{font-size:12px}}
@media(max-width:900px) and (min-width:761px){:root{--sidebar:190px}.sidebar{padding-left:8px;padding-right:8px}.brand{gap:9px;font-size:25px;padding-left:12px}.brand small{font-size:7px}.brand-mark{width:36px;height:36px}.nav-item{gap:9px;font-size:12px}.nav-item svg{width:18px;height:18px}.workspace-label{font-size:10px}.nav-count{font-size:10px}.collection-nav .nav-item{font-size:12px}.profile small{font-size:8px}.storage-note{font-size:10px}.storage-note small{font-size:8px}.topbar{padding:0 22px}.search-box{width:255px}.breadcrumb{font-size:12px;gap:10px}main{padding-left:22px;padding-right:22px}.page-heading h1{font-size:33px}.page-heading p{font-size:13px}.primary-btn{padding:0 13px;font-size:12px}.heading-actions .theme-toggle{width:36px;height:36px}.feature-grid{gap:12px}.feature-card{height:183px}.feature-text strong{font-size:17px}.feature-text small{font-size:10px}.feature-number{font-size:7px;letter-spacing:.5px}.feature-text{left:15px;right:30px}.feature-arrow{width:23px;height:23px;right:11px}.section-heading h2{font-size:18px}.section-heading .text-btn{font-size:12px}.table-head,.track-row{grid-template-columns:19px minmax(180px,1fr) 54px 98px;column-gap:10px}.table-head>span:nth-child(3),.track-row>.waveform{display:none}.grid-mode .track-row>.waveform{display:flex}.library-footer{font-size:10px}.library-footer>span:last-child{max-width:240px;text-align:right}.player-track .track-art{width:41px;height:41px;min-width:41px}.player-track{gap:9px}.player-track strong{font-size:12px}.player-track small{font-size:10px}.player{grid-template-columns:minmax(165px,1fr) minmax(185px,1fr);gap:10px}.player-controls{gap:15px}.player-controls .loop-button{left:calc(50% + 73px)}.batch-bar{gap:13px}.batch-bar strong{font-size:12px}.batch-bar .text-btn{font-size:11px}}

/* iPhone: large title, horizontal shelf, grouped list, and glass tab bar. */
@media(max-width:760px){
  :root{--sidebar:248px;--player:64px}
  body{font-size:15px}.main-shell{margin-left:0}.sidebar{z-index:60;width:248px;transform:translateX(-101%);transition:transform .45s var(--spring);padding:34px 16px 0;box-shadow:12px 0 50px #00000015}.sidebar.open{transform:translateX(0)}.brand{font-size:28px;gap:12px}.brand-mark{width:43px;height:43px}.brand small{font-size:9px}.workspace-label{font-size:12px}.nav-item{font-size:14px;min-height:46px;padding:0 15px;gap:12px}.nav-item svg{width:20px;height:20px}.nav-count{font-size:12px}.collection-nav .nav-item,.secondary-nav .nav-item{font-size:13px}.storage-note{font-size:11px}.storage-note small{font-size:10px}.profile{font-size:12px}.profile small{font-size:10px}.mobile-backdrop{z-index:55}
  .topbar{height:62px;padding:0 20px;gap:10px;position:sticky;top:0;z-index:26;background:color-mix(in srgb,var(--bg) 80%,transparent);backdrop-filter:blur(25px) saturate(140%);-webkit-backdrop-filter:blur(25px) saturate(140%);border-bottom:0}.breadcrumb{gap:0}.breadcrumb>[data-icon],.breadcrumb-slash,#breadcrumbTitle{display:none}.icon-btn.mobile-menu{display:inline-flex;width:36px;height:44px;color:var(--accent);margin-left:-6px}.mobile-menu svg{width:23px;height:23px}.search-box{height:37px;flex:1;width:auto;max-width:none;padding:0 11px;margin-left:0;border-radius:11px;gap:7px}.search-box input{font-size:14px}.search-box kbd{display:none}.search-box svg{width:18px;height:18px}.help-button{width:32px;height:44px;margin-right:-5px;color:var(--accent)}.help-button svg{width:21px;height:21px}
  main{padding:14px 20px calc(240px + var(--safe))}.page-heading{align-items:flex-start;gap:12px;margin-bottom:28px}.page-heading h1{font-size:34px;letter-spacing:-1.2px;line-height:1.24}.page-heading p{font-size:13px;line-height:1.6;margin-top:8px;max-width:230px}.heading-actions{gap:5px;align-items:center;padding-top:2px}.heading-actions .theme-toggle{width:36px;height:36px;background:var(--control);box-shadow:none;border:0}.heading-actions .theme-toggle svg{width:19px;height:19px}.heading-actions .primary-btn{width:38px;min-width:38px;height:38px;min-height:38px;overflow:hidden;white-space:nowrap;padding:0;font-size:0;border-radius:50%;gap:0}.heading-actions .primary-btn svg{width:21px;height:21px}.page-heading>.primary-btn{margin-top:4px;min-height:39px;font-size:12px;padding:0 12px}
  .section-heading{gap:10px;margin-bottom:13px}.section-heading h2{font-size:19px;letter-spacing:-.4px}.section-heading>.text-btn{font-size:12px;gap:4px;min-height:33px}.section-heading .text-btn svg{width:13px;height:13px}.feature-grid{display:flex;gap:14px;overflow-x:auto;margin:0 -20px;padding:0 20px 8px;scroll-snap-type:x mandatory;scroll-padding-left:20px;scrollbar-width:none}.feature-grid::-webkit-scrollbar{display:none}.feature-card{width:275px;min-width:275px;height:210px;scroll-snap-align:start;border-radius:22px}.feature-text{left:20px;bottom:22px;right:40px}.feature-text strong{font-size:23px;letter-spacing:-.5px}.feature-text small{font-size:12px;margin-top:7px}.feature-number{left:20px;top:20px;font-size:10px;letter-spacing:1.2px}.feature-arrow{right:17px;bottom:23px;width:28px;height:28px}.feature-arrow svg{width:14px;height:14px}
  .library-section{margin-top:25px}.library-topline{margin-bottom:16px;gap:10px}.library-title{gap:10px}.library-title h2{font-size:24px;letter-spacing:-.6px}.result-count{font-size:11px}.view-switch{border-radius:10px;padding:3px}.view-switch .icon-btn{width:30px;height:27px}.view-switch .icon-btn svg{width:17px;height:17px}.filter-toolbar{gap:12px 10px;margin-bottom:17px}.segmented{order:0;border-radius:10px}.segmented button{min-height:32px;min-width:49px;padding:0 13px;font-size:13px;border-radius:7px}.sort-wrap{order:1;margin-left:auto;gap:0}.sort-wrap>span svg{width:16px;height:16px}.sort-wrap select{font-size:12px;max-width:120px;padding-right:17px}.filter-selects{order:2;flex:1 0 100%;width:100%;overflow-x:auto;gap:7px;padding-bottom:3px;scrollbar-width:none}.filter-selects::-webkit-scrollbar{display:none}.select-wrap{min-height:37px;border-radius:10px;padding-left:8px}.select-wrap select{min-height:35px;font-size:12px;max-width:130px;padding-right:22px;padding-left:4px}.select-wrap:not(:has(>span)){padding-left:4px}.select-wrap>span svg{width:14px;height:14px}.filter-selects #clearFilters{font-size:12px;flex-shrink:0}.active-filter{font-size:12px;margin-bottom:12px}
  .track-table{border-radius:16px;border:1px solid var(--line)}.table-head,.track-row{grid-template-columns:19px minmax(0,1fr) 42px 70px;column-gap:7px;padding:0 12px}.table-head{height:37px;font-size:10px}.table-head>span:nth-child(3),.table-head>span:nth-child(4),.track-row>.waveform,.track-row>.track-tags{display:none}.table-head>span:nth-child(5){font-size:9px;white-space:nowrap}.table-head .align-right{padding-right:4px}.track-row{height:82px}.check-wrap{width:20px;height:44px}.check-wrap input,input[type="checkbox"]{width:15px;height:15px;border-radius:5px}.track-identity{gap:10px}.track-art{width:43px;height:43px;min-width:43px;border-radius:9px}.track-art svg{width:18px;height:18px}.track-names strong{font-size:14px;font-weight:500;letter-spacing:-.2px}.track-names small{font-size:11px;margin-top:5px}.track-names small>span:not(.demo-label){margin:0 4px}.track-names .demo-label{display:none}.track-duration{font-size:11px}.track-duration small{font-size:9px;margin-top:4px}.track-actions{gap:0}.track-actions .icon-btn{width:35px;height:44px;border-radius:12px}.track-actions .icon-btn svg{width:18px;height:18px}.track-actions .favorite{display:none}.track-actions .icon-btn[data-restore]{display:none}.row-play{opacity:1;background:#00000020}.row-play svg{width:20px;height:20px}.track-row.current .row-play{background:#00000035}.library-footer{margin-top:14px;font-size:10px;line-height:1.7;gap:15px}.library-footer>span:last-child{max-width:220px;text-align:right;justify-content:flex-end}.bottom-note{font-size:10px;gap:9px;margin-top:30px}.bottom-note span{font-size:8px;padding-left:9px}
  .grid-mode .track-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.grid-mode .track-row{padding:15px;min-height:240px;grid-template-columns:1fr auto;grid-template-rows:auto 32px auto auto;gap:10px 5px;border-radius:18px}.grid-mode .track-identity{display:block;padding-right:0}.grid-mode .track-art{width:48px;height:48px;min-width:48px;margin-bottom:11px;border-radius:11px}.grid-mode .track-names strong{font-size:14px}.grid-mode .track-names small{font-size:11px}.grid-mode .track-row>.check-wrap{right:11px;top:9px}.grid-mode .track-row>.waveform{display:flex;height:32px;gap:1px}.grid-mode .waveform span{width:1px;min-width:1px;max-height:24px}.grid-mode .track-row>.track-tags{display:flex;max-height:21px;min-height:21px}.grid-mode .tag{font-size:10px;min-height:21px;padding:2px 6px;line-height:17px}.grid-mode .track-duration{font-size:11px;gap:4px}.grid-mode .track-duration small{display:none}.grid-mode .track-actions .icon-btn{width:30px;height:34px}.grid-mode .track-actions .icon-btn svg{width:17px;height:17px}.grid-mode .track-actions .favorite{display:none}
  .player{left:12px;right:12px;bottom:calc(76px + var(--safe));height:64px;border-radius:20px;padding:9px 12px;display:grid;grid-template-columns:minmax(0,1fr) 94px;gap:8px;box-shadow:0 5px 24px #0000000b,0 1px 4px #00000005,inset 0 1px 0 #ffffff60;overflow:hidden;background:var(--glass)}.player-track{gap:10px;min-width:0}.player-track .track-art{width:43px;height:43px;min-width:43px;border-radius:10px}.player-track strong{font-size:13px;font-weight:500}.player-track small{font-size:10px;margin-top:3px}.player-track>.icon-btn{display:none}.player-center{align-self:stretch;display:flex;align-items:center;justify-content:flex-end}.player-controls{height:44px;width:94px;gap:2px;justify-content:flex-end}.player-controls #prevTrack,.player-controls .loop-button{display:none}.player-controls #nextTrack{width:40px;height:44px}.player-controls #nextTrack svg{width:21px;height:21px}.play-main{width:44px;height:44px}.play-main svg{width:24px;height:24px}.player-progress{position:absolute;left:16px;right:16px;bottom:-3px;margin:0;height:10px;gap:0;opacity:.65}.player-progress>span{display:none}.player-progress input{height:10px}.player-progress input::-webkit-slider-runnable-track{height:2px}.player-progress input::-webkit-slider-thumb{width:4px;height:4px;margin-top:-1px;box-shadow:none}.player-progress input::-moz-range-track{height:2px}.player-progress input::-moz-range-thumb{width:4px;height:4px}.player-tools{display:none}
  .mobile-tabbar{position:fixed;z-index:36;display:flex;align-items:center;justify-content:space-around;gap:2px;left:50%;bottom:calc(10px + var(--safe));transform:translateX(-50%);width:calc(100% - 28px);max-width:430px;height:59px;padding:5px 7px;border:1px solid var(--glass-border);border-radius:32px;background:var(--glass);backdrop-filter:blur(35px) saturate(190%);-webkit-backdrop-filter:blur(35px) saturate(190%);box-shadow:0 4px 25px #0000000c,0 1px 4px #00000005,inset 0 1px 0 #ffffff50}.mobile-tabbar button{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;min-width:0;gap:3px;height:48px;border-radius:24px;color:var(--secondary);font-size:10px;font-weight:500}.mobile-tabbar button svg{width:22px;height:22px;stroke-width:1.9}.mobile-tabbar button.active,.mobile-tabbar button[aria-selected="true"]{color:var(--accent);background:var(--control)}.mobile-tabbar button.active svg{stroke-width:2.1}html[data-theme="dark"] .mobile-tabbar{box-shadow:0 4px 24px #00000050,inset 0 1px 0 #ffffff07}
  .batch-bar{left:12px;right:12px;bottom:calc(151px + var(--safe));max-width:none;transform:none;flex-wrap:wrap;justify-content:center;gap:6px 16px;padding:9px 12px;border-radius:18px}.batch-bar strong{font-size:12px}.batch-bar .text-btn{font-size:12px;min-height:34px}.batch-bar>.icon-btn{width:26px;height:30px;margin-left:auto}.toast-container{left:20px;right:20px;bottom:calc(153px + var(--safe));align-items:center}.toast{max-width:100%;font-size:13px;padding:13px 17px;border-radius:18px}.empty-state{min-height:280px;padding:28px}.empty-state h3{font-size:19px}.empty-state p{font-size:13px}
  .modal{position:fixed;inset:auto 0 0;width:100%;max-width:100%;max-height:calc(100dvh - 34px);margin:0;border-radius:28px 28px 0 0;padding:32px 23px calc(24px + var(--safe));border-bottom:0;box-shadow:0 -10px 50px #00000017;animation:none}.modal[open]{animation:mobile-sheet-in .5s var(--spring)}.modal:before{display:block;position:absolute;width:35px;height:5px;border-radius:4px;top:9px;left:50%;transform:translateX(-50%);background:var(--line-strong)}.modal::backdrop{background:#00000048;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}.modal-header{margin-bottom:23px;gap:15px}.modal-header h2{font-size:26px;letter-spacing:-.7px}.modal-header>.icon-btn{width:32px;height:32px;margin:-1px -1px 0 0}.modal-footer{margin-top:24px;padding-top:20px}.modal-footer .text-btn{font-size:13px}.modal .primary-btn,.modal .secondary-btn{min-height:46px;font-size:15px;padding:0 20px}.modal input:not([type="file"]),.modal select,.modal textarea{font-size:16px;min-height:46px}.form-grid{gap:12px}.form-field,.form-grid>label{font-size:13px}.drop-zone{min-height:180px;padding:24px 14px}.drop-zone strong{font-size:16px}.drop-zone small{font-size:11px}.form-note{font-size:11px}.compact-modal{width:100%;max-width:100%}.dialog-description{font-size:14px}.help-list li>span{font-size:13px}.full-width{min-height:46px}.collection-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.collection-overview .feature-card{width:auto;min-width:0;height:170px}.collection-overview .feature-text{left:16px;bottom:18px}.collection-overview .feature-text strong{font-size:18px}.collection-overview .feature-number{left:16px;top:16px;font-size:8px}.collection-card{min-height:150px;padding:20px;border-radius:20px}.collection-card strong{font-size:16px}
}
@keyframes mobile-sheet-in{from{transform:translateY(100%)}to{transform:translateY(0)}}
@media(max-width:390px){.topbar{padding-left:16px;padding-right:16px;gap:8px}main{padding-left:16px;padding-right:16px}.page-heading h1{font-size:32px}.page-heading p{font-size:12px;max-width:214px}.heading-actions{gap:4px}.heading-actions .theme-toggle{width:32px;height:36px}.heading-actions .primary-btn{width:36px;min-width:36px;height:36px;min-height:36px}.feature-grid{margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px;scroll-padding-left:16px}.section-heading h2{font-size:18px}.section-heading>.text-btn{font-size:11px}.feature-card{width:264px;min-width:264px}.table-head,.track-row{grid-template-columns:17px minmax(0,1fr) 37px 64px;column-gap:6px;padding:0 10px}.track-identity{gap:8px}.track-art{width:38px;height:38px;min-width:38px}.track-names strong{font-size:13px}.track-names small{font-size:10px}.track-actions .icon-btn{width:32px;height:44px}.track-actions .icon-btn svg{width:17px;height:17px}.track-duration{font-size:11px}.track-duration small{font-size:9px}.segmented button{min-width:47px;padding:0 12px}.sort-wrap select{max-width:119px;font-size:12px}.library-footer>span:last-child{max-width:200px}.grid-mode .track-row{padding:13px}.grid-mode .track-names strong{font-size:13px}.grid-mode .track-names small{font-size:10px}.grid-mode .tag{font-size:10px}.grid-mode .track-actions .icon-btn{width:28px}.player-track strong{font-size:12px}.player-track small{font-size:10px}.modal{padding-left:20px;padding-right:20px}.modal-header h2{font-size:25px}}
@media(max-height:790px) and (min-width:761px){.sidebar{padding-top:24px}.workspace-label{margin-top:20px;margin-bottom:18px}.collection-label{margin-top:20px}.nav-item{min-height:40px}.collection-nav .nav-item{min-height:35px}.secondary-nav{margin-bottom:12px}.secondary-nav .nav-item{min-height:36px}.storage-note{margin-bottom:13px}.profile{min-height:68px}.sidebar-spacer{min-height:16px}}
.heading-actions #selectionToggle{min-height:42px;padding:0 17px;border-radius:12px;font-size:13px;background:var(--surface);border:1px solid var(--line);font-weight:500;color:var(--accent)}
.heading-actions #selectionToggle[aria-pressed="true"]{background:var(--accent-soft);border-color:#fa2d482e}
.modal-header>.icon-btn{width:44px;height:44px;position:relative;background:transparent;margin:-7px -10px 0 0}
.modal-header>.icon-btn:before{content:"";position:absolute;inset:6px;background:var(--control);border-radius:50%;z-index:-1}
.modal-header>.icon-btn{isolation:isolate}
@media(max-width:760px){
  .heading-actions{gap:3px}.heading-actions #selectionToggle{min-height:44px;padding:0 9px;font-size:12px;background:none;border:0;border-radius:12px}.heading-actions .theme-toggle{width:42px;height:44px;background:none}.heading-actions .primary-btn{width:44px;min-width:44px;height:44px;min-height:44px;position:relative;background:none;box-shadow:none;color:var(--accent)}.heading-actions .primary-btn:before{content:"";position:absolute;inset:4px;border-radius:50%;background:var(--accent-soft);z-index:-1}.heading-actions .primary-btn{isolation:isolate}.heading-actions .primary-btn svg{width:24px;height:24px}.page-heading>div:first-child{min-width:0}
  .table-head,.track-row{grid-template-columns:minmax(0,1fr) 42px 88px;column-gap:7px;padding:0 12px}.table-head>.check-wrap,.track-row>.check-wrap{display:none}.track-actions .icon-btn{width:44px;height:44px}.track-actions .icon-btn svg{width:19px;height:19px}body.selecting .table-head,body.selecting .track-row{grid-template-columns:19px minmax(0,1fr) 42px 88px}body.selecting .table-head>.check-wrap,body.selecting .track-row>.check-wrap{display:flex}.grid-mode .track-row{grid-template-columns:1fr auto;padding:15px}body.selecting .grid-mode .track-row{grid-template-columns:1fr auto}.grid-mode .track-row>.check-wrap{display:none}body.selecting .grid-mode .track-row>.check-wrap{display:flex}.grid-mode .track-actions .icon-btn{width:37px;height:44px}.grid-mode .track-actions .icon-btn svg{width:18px;height:18px}.modal-header>.icon-btn{width:44px;height:44px;margin:-5px -6px 0 0}
}
@media(max-width:390px){.heading-actions{gap:0}.heading-actions #selectionToggle{padding:0 8px;font-size:12px}.heading-actions .theme-toggle{width:38px;height:44px}.heading-actions .primary-btn{width:42px;min-width:42px;height:44px;min-height:44px}.table-head,.track-row{grid-template-columns:minmax(0,1fr) 37px 88px;padding:0 10px;column-gap:6px}body.selecting .table-head,body.selecting .track-row{grid-template-columns:17px minmax(0,1fr) 37px 88px}.grid-mode .track-row,body.selecting .grid-mode .track-row{grid-template-columns:1fr auto;padding:13px}.grid-mode .track-actions .icon-btn{width:34px;height:44px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.feature-card:hover,.feature-card:active,button:active:not(:disabled){transform:none!important}}
