:root {
    color-scheme: dark;
    --bg: #090b0a;
    --panel: #121513;
    --panel-soft: #191d1a;
    --line: #2a302c;
    --text: #f5f7f5;
    --muted: #a7afa9;
    --green: #1ed760;
    --green-dark: #0fac49;
    --chrome: #d8ded9;
    --player-height: 102px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html { scroll-behavior: smooth; }

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

button, input, select { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

button { color: inherit; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

a { color: inherit; text-decoration: none; }

.skip-link {
    position: fixed;
    z-index: 100;
    top: 8px;
    left: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--text);
    color: var(--bg);
    transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.app-shell { min-height: calc(100vh - var(--player-height)); }

.sidebar {
    position: fixed;
    inset: 0 auto var(--player-height) 0;
    z-index: 10;
    display: flex;
    width: 248px;
    flex-direction: column;
    gap: 28px;
    padding: 28px 20px 20px;
    border-right: 1px solid var(--line);
    background: #0c0f0d;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.brand-mark,
.login-mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    overflow: hidden;
    border-radius: 10px;
}

.brand-mark img,
.login-mark img { display: block; width: 100%; height: 100%; }

.sidebar nav { display: grid; gap: 7px; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 8px;
    color: var(--muted);
    font-weight: 700;
}

.nav-link:hover,
.nav-link.active { background: var(--panel-soft); color: var(--text); }

.nav-link span { width: 22px; font-size: 1.25rem; text-align: center; }

.sidebar-note {
    display: grid;
    gap: 5px;
    margin-top: auto;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
}

.sidebar-note span,
.user-card small { color: var(--muted); font-size: .76rem; line-height: 1.45; }

.user-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
}

.user-card > span:nth-child(2) { display: grid; min-width: 0; }

.user-card strong,
.user-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.avatar {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: #354039;
    font-weight: 800;
    overflow: hidden;
}

.avatar img,
.profile-avatar img,
.settings-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }

.user-card button,
.quiet-button {
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.workspace {
    min-height: calc(100vh - var(--player-height));
    margin-left: 248px;
    padding: 32px clamp(22px, 5vw, 70px) 64px;
    background:
        radial-gradient(circle at 76% 4%, rgba(30, 215, 96, .14), transparent 27%),
        linear-gradient(180deg, #151a16 0, var(--bg) 350px);
}

.mobile-header { display: none; }

.mobile-profile-link { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: .75rem; font-weight: 750; }

.hero {
    display: grid;
    min-height: 440px;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    align-items: center;
    gap: 48px;
    padding: 32px 0;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--green);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    font-size: clamp(3.5rem, 7vw, 7rem);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: .82;
    text-transform: uppercase;
}

.hero h1 em {
    color: transparent;
    font-style: normal;
    -webkit-text-stroke: 1.5px var(--chrome);
    text-shadow: 5px 5px 0 rgba(30, 215, 96, .2);
}

.hero p:not(.eyebrow) {
    max-width: 650px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
}

.hero-copy { position: relative; z-index: 1; }

.power-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.power-tags span {
    padding: 7px 10px;
    border: 1px solid #4c5650;
    background: #0d100e;
    color: var(--chrome);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.hero-copy .install-button { margin-top: 24px; }
.import-button { display: inline-flex; min-height: 48px; margin-top: 12px; align-items: center; gap: 12px; padding: 0 18px; border: 1px solid #465149; border-radius: 999px; color: var(--text); font-size: .78rem; font-weight: 800; }
.import-button:hover { border-color: var(--green); color: var(--green); }

.hero-art {
    position: relative;
    display: grid;
    width: min(100%, 390px);
    aspect-ratio: 1;
    place-items: center;
    justify-self: end;
}

.hero-art::before {
    position: absolute;
    inset: 3%;
    border: 1px solid #38413b;
    content: "";
    transform: rotate(-7deg);
}

.hero-art::after {
    position: absolute;
    inset: 11%;
    border: 1px solid var(--green);
    content: "";
    opacity: .45;
    transform: rotate(10deg);
}

.sound-orbit {
    position: relative;
    z-index: 1;
    display: grid;
    width: 69%;
    aspect-ratio: 1;
    place-items: center;
    border: 2px solid #536057;
    border-radius: 50%;
    background:
        radial-gradient(circle, #171b18 0 12%, var(--green) 12.5% 15%, #0a0c0b 15.5% 30%, #2a302c 30.5% 31.5%, #080a09 32% 100%);
    box-shadow: 14px 16px 0 rgba(30, 215, 96, .12);
}

.sound-orbit::before,
.sound-orbit::after {
    position: absolute;
    border: 1px solid #303632;
    border-radius: 50%;
    content: "";
}

.sound-orbit::before { inset: 8%; }
.sound-orbit::after { inset: 20%; }

.sound-orbit span {
    position: absolute;
    top: 13%;
    left: 9%;
    color: var(--green);
    font-family: Impact, sans-serif;
    font-size: 2.5rem;
    transform: rotate(-18deg);
}

.sound-orbit strong {
    position: relative;
    z-index: 2;
    color: var(--chrome);
    font-family: Impact, sans-serif;
    font-size: clamp(1.5rem, 4vw, 3.3rem);
    letter-spacing: .04em;
    line-height: .82;
    text-align: center;
    text-shadow: 4px 4px 0 #0a0c0b;
}

.hero-stamp {
    position: absolute;
    z-index: 3;
    right: -1%;
    bottom: 13%;
    padding: 8px 12px;
    background: var(--green);
    color: #07140b;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .69rem;
    font-weight: 900;
    letter-spacing: .12em;
    transform: rotate(-6deg);
}

.power-strip {
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: space-around;
    gap: 20px;
    margin: 0 calc(clamp(22px, 5vw, 70px) * -1) 40px;
    padding: 11px clamp(22px, 5vw, 70px);
    border-block: 1px solid #3a433d;
    background: var(--green);
    color: #07140b;
    font-family: Impact, Haettenschweiler, sans-serif;
    font-size: .85rem;
    letter-spacing: .12em;
    white-space: nowrap;
}

.power-strip b { font-size: .72rem; }

.install-button,
.primary-button {
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--green);
    color: #06170c;
    font-weight: 850;
    cursor: pointer;
    white-space: nowrap;
}

.install-button:hover,
.primary-button:hover { background: #43e57b; transform: scale(1.02); }

.library { scroll-margin-top: 24px; }

.playlist-hub { margin-bottom: 48px; scroll-margin-top: 24px; }

.playlist-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.playlist-header h2 { margin: 0; font-size: 2.1rem; letter-spacing: -.035em; text-transform: uppercase; }
.playlist-header p { margin: 6px 0 0; color: var(--muted); font-size: .84rem; }
.playlist-create-panel { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; padding: 16px; border: 1px solid #354039; border-radius: 12px; background: #101411; }
.playlist-create-panel > div { display: grid; max-width: 420px; gap: 4px; }
.playlist-create-panel > div strong { font-size: .94rem; }
.playlist-create-panel > div small { color: var(--muted); font-size: .74rem; line-height: 1.45; }
.playlist-create { display: flex; align-items: end; gap: 8px; }
.compact-field { gap: 5px; }
.playlist-create input,
.playlist-editor select,
.track-playlist-form select {
    min-width: 0;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid #3b433e;
    border-radius: 9px;
    outline: 0;
    background: #0d100e;
    color: var(--text);
}
.playlist-create input { width: min(260px, 44vw); }
.playlist-create input::placeholder { color: #89918b; }
.playlist-create input:focus,
.playlist-editor select:focus,
.track-playlist-form select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(30,215,96,.13); }
.playlist-create button,
.playlist-editor-actions button,
.playlist-play,
.track-playlist-form button[type="submit"] {
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 9px;
    background: var(--green);
    color: #06170c;
    font-weight: 850;
    cursor: pointer;
}

.playlist-tabs { display: flex; gap: 9px; padding: 2px 2px 10px; overflow-x: auto; }
.playlist-tab {
    display: grid;
    min-width: 148px;
    grid-template-columns: 38px 1fr;
    grid-template-rows: 1fr 1fr;
    align-items: center;
    gap: 0 9px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--panel);
    color: var(--muted);
}
.playlist-tab > span { display: grid; width: 38px; height: 38px; grid-row: 1 / -1; place-items: center; border-radius: 7px; background: #29322c; color: var(--text); font-weight: 850; }
.playlist-tab > img { width: 38px; height: 38px; grid-row: 1 / -1; border-radius: 7px; object-fit: cover; }
.playlist-tab strong { overflow: hidden; align-self: end; color: var(--text); font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.playlist-tab small { align-self: start; font-size: .66rem; }
.playlist-tab:hover { border-color: #566159; }
.playlist-tab.active { border-color: var(--green); background: #15231a; }
.playlist-tab.active > span { background: var(--green); color: #06170c; }
.mix-tab { min-width: 190px; }

.monthly-mix-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; margin-top: 14px; padding: 22px; background: #111612; }
.monthly-mix-hero > img { width: 132px; height: 132px; object-fit: cover; }
.monthly-mix-hero > div { display: grid; gap: 5px; }
.monthly-mix-hero > div > span { color: var(--green); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.monthly-mix-hero h3 { margin: 0; font-size: 1.8rem; letter-spacing: -.03em; }
.monthly-mix-hero p { max-width: 560px; margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }

.playlist-editor { margin-top: 12px; padding: 20px 0 0; border-top: 1px solid var(--line); }
.playlist-editor-title { display: flex; align-items: center; gap: 13px; }
.playlist-editor-title > span:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.playlist-editor-title small { color: var(--muted); font-size: .64rem; letter-spacing: .08em; }
.playlist-editor-title strong { overflow: hidden; font-size: 1.3rem; text-overflow: ellipsis; white-space: nowrap; }
.playlist-cover { display: grid; width: 56px; height: 56px; flex: 0 0 auto; place-items: center; border-radius: 8px; background: var(--green); color: #06170c; font-size: 1.3rem; font-weight: 900; }
.playlist-play { display: inline-flex; margin-left: auto; align-items: center; gap: 8px; }
.playlist-play:disabled { cursor: not-allowed; opacity: .45; }
.playlist-editor-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.playlist-editor-actions form { display: grid; gap: 7px; }
.playlist-editor-actions label { color: var(--muted); font-size: .72rem; font-weight: 750; }
.playlist-editor-actions form > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.playlist-editor select { width: 100%; }
.playlist-editor-actions form:nth-child(2) button { border: 1px solid #59635c; background: transparent; color: var(--text); }
.playlist-delete { margin-top: 13px; text-align: right; }
.playlist-delete button { min-height: 36px; border: 0; background: transparent; color: #e5979f; font-size: .72rem; cursor: pointer; }
.message.success { border: 1px solid #2d7045; background: #12351f; color: #b8f6ca; }

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    letter-spacing: -.035em;
    text-transform: uppercase;
}

.section-heading > span { color: var(--muted); font-size: .82rem; }

.track-table {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(18, 21, 19, .7);
}

.track-row {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    border-bottom: 1px solid rgba(42, 48, 44, .7);
}

.track-row:last-child { border-bottom: 0; }

.track-main {
    display: grid;
    min-width: 0;
    grid-template-columns: 28px 46px minmax(180px, 1.5fr) minmax(120px, 1fr) 34px;
    align-items: center;
    gap: 12px;
    padding: 10px 8px 10px 14px;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background-color 180ms cubic-bezier(.22, 1, .36, 1);
}

.track-main:hover,
.track-main.active { background: #202521; }

.track-main.active .track-copy strong,
.track-main.active .track-number { color: var(--green); }

.track-tools { display: flex; align-items: center; gap: 2px; padding: 8px 10px 8px 2px; }
.track-tool { display: grid; min-width: 48px; min-height: 48px; place-items: center; align-content: center; gap: 2px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.track-tool:hover { background: #202521; color: var(--text); }
.track-tool span { font-size: 1.05rem; font-weight: 900; line-height: 1; }
.track-tool .tool-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: square; stroke-width: 2.25; }
.track-tools .track-tool:last-child { background: #1a201c; color: var(--text); }
.track-tool small { font-size: .58rem; font-weight: 700; }
.track-tool.saved { color: var(--green); }
.track-tool[aria-busy="true"] { cursor: progress; opacity: .7; }
.track-playlist-form { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(180px, 1fr) auto auto; align-items: end; gap: 8px; padding: 12px 14px 14px 88px; background: #0f1310; }
.track-playlist-form[hidden] { display: none; }
.track-playlist-form .quiet-button { min-height: 44px; padding: 0 12px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.track-playlist-form select { width: 100%; }

.track-number,
.track-album,
.track-play { color: var(--muted); font-size: .82rem; }

.track-number,
.track-play { text-align: center; }

.cover {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 6px;
    background: linear-gradient(135deg, #325c41, #11271a);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
    font-weight: 900;
}

.cover-1 { background: linear-gradient(135deg, #4e3b7d, #1d1830); }
.cover-2 { background: linear-gradient(135deg, #7d4c32, #2b1a11); }
.cover-3 { background: linear-gradient(135deg, #315b70, #14252d); }
.cover-4 { background: linear-gradient(135deg, #70364f, #2d1621); }

.track-copy { display: grid; min-width: 0; gap: 3px; }

.track-copy strong,
.track-copy small,
.track-album { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.track-copy strong { font-size: .93rem; }
.track-copy small { color: var(--muted); font-size: .79rem; }

.empty-state {
    display: grid;
    min-height: 280px;
    place-items: center;
    align-content: center;
    padding: 35px;
    border: 1px dashed #3a443d;
    border-radius: 14px;
    background: rgba(18, 21, 19, .65);
    text-align: center;
}

.empty-state > span { color: var(--green); font-size: 2.6rem; }
.empty-state h3 { margin: 14px 0 6px; }
.empty-state p { max-width: 590px; margin: 0; color: var(--muted); line-height: 1.55; }
.empty-state code { color: var(--text); }

.android-tip {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 28px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
}

.phone-icon {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 14px;
    background: #203b29;
    color: var(--green);
    font-size: 2rem;
}

.android-tip h2 { margin: 0 0 6px; font-size: 1.05rem; }
.android-tip p { margin: 4px 0; color: var(--muted); font-size: .84rem; line-height: 1.5; }

footer { padding-top: 28px; color: #737a75; font-size: .76rem; text-align: center; }

.player {
    position: fixed;
    inset: auto 0 0;
    z-index: 50;
    display: grid;
    height: var(--player-height);
    grid-template-columns: minmax(190px, 1fr) minmax(300px, 1.5fr) minmax(140px, 1fr);
    align-items: center;
    gap: 24px;
    padding: 12px 22px max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(12, 15, 13, .96);
    backdrop-filter: blur(18px);
}

.now-playing { display: flex; min-width: 0; align-items: center; gap: 12px; }
.now-playing .track-copy { max-width: 260px; flex: 1; }

.download-button {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 7px;
    padding: 0 11px;
    border: 1px solid #465149;
    background: #141815;
    color: var(--text);
    font-size: .72rem;
    font-weight: 800;
}

.download-button:hover { border-color: var(--green); color: var(--green); }
.download-button.saved { border-color: #2d7045; background: #14251a; color: var(--green); }
.download-button[hidden] { display: none; }

.offline-toast { position: fixed; z-index: 70; right: 18px; bottom: calc(var(--player-height) + 16px); max-width: min(360px, calc(100vw - 32px)); margin: 0; padding: 12px 14px; border-radius: 10px; background: #e9eee9; color: #0b0e0c; font-size: .8rem; font-weight: 750; }
.offline-toast[hidden] { display: none; }

.transport { display: grid; gap: 8px; }
.transport-buttons { display: flex; align-items: center; justify-content: center; gap: 13px; }
.transport button {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.transport button:hover,
.transport button.active { color: var(--green); }

.transport .play-button {
    width: 42px;
    height: 42px;
    padding-left: 3px;
    background: var(--text);
    color: var(--bg);
    font-size: 1rem;
}

.transport .play-button:hover { color: var(--bg); transform: scale(1.05); }

.timeline { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 8px; }
.timeline span { color: var(--muted); font-size: .68rem; text-align: center; }

input[type="range"] {
    height: 4px;
    margin: 0;
    accent-color: var(--green);
    cursor: pointer;
}

.volume { display: flex; justify-content: flex-end; align-items: center; gap: 9px; color: var(--muted); }
.volume input { width: min(125px, 12vw); }

.login-body {
    min-height: 100svh;
    background:
        radial-gradient(circle at 14% 12%, rgba(30, 215, 96, .14), transparent 24rem),
        radial-gradient(circle at 90% 88%, rgba(30, 215, 96, .07), transparent 21rem),
        #080a09;
}

.login-shell {
    display: flex;
    width: min(100%, 1180px);
    min-height: 100svh;
    margin: 0 auto;
    flex-direction: column;
    padding: max(24px, env(safe-area-inset-top)) clamp(22px, 5vw, 64px) max(20px, env(safe-area-inset-bottom));
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-brand > span:last-child { display: grid; gap: 1px; }
.login-brand strong { font-size: 1rem; letter-spacing: -.02em; }
.login-brand small { color: var(--muted); font-size: .67rem; letter-spacing: .06em; text-transform: uppercase; }
.login-mark { width: 42px; height: 42px; margin: 0; }

.login-stage {
    display: grid;
    width: 100%;
    margin: auto 0;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, .68fr);
    align-items: center;
    gap: clamp(44px, 8vw, 104px);
    padding: 54px 0;
}

.login-intro { position: relative; min-width: 0; padding: 24px 0; }

.login-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 12px;
    color: var(--chrome);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.login-status span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(30, 215, 96, .12); }

.login-intro h1 {
    position: relative;
    z-index: 1;
    max-width: 690px;
    margin: 0;
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    font-size: clamp(4.25rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: .88;
    text-transform: uppercase;
    text-wrap: balance;
}

.login-intro h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 1.5px var(--chrome); }
.login-intro > p:last-of-type { position: relative; z-index: 1; max-width: 520px; margin: 24px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.6; text-wrap: pretty; }

.login-features {
    position: relative;
    z-index: 1;
    display: flex;
    margin: 24px 0 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.login-features li { padding: 7px 11px; border: 1px solid #354039; border-radius: 999px; color: var(--chrome); font-size: .7rem; font-weight: 750; }

.login-signal { display: flex; height: 28px; align-items: end; gap: 5px; }
.login-signal i { width: 4px; border-radius: 2px; background: var(--green); }
.login-signal i:nth-child(1), .login-signal i:nth-child(5) { height: 8px; }
.login-signal i:nth-child(2), .login-signal i:nth-child(4) { height: 17px; }
.login-signal i:nth-child(3) { height: 28px; }

.login-vinyl {
    position: absolute;
    right: -12%;
    bottom: -22%;
    width: 250px;
    aspect-ratio: 1;
    border-radius: 50%;
    opacity: .32;
    background: radial-gradient(circle, var(--green) 0 8%, #0a0c0b 8.5% 25%, #303632 25.5% 26%, #0a0c0b 26.5% 42%, #303632 42.5% 43%, #0a0c0b 43.5% 100%);
}

.login-vinyl span { position: absolute; inset: 0; display: grid; place-items: center; color: #071b0e; font-family: Impact, sans-serif; font-size: 1.4rem; }

.login-panel {
    position: relative;
    z-index: 2;
    padding: clamp(28px, 4vw, 42px);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #121513;
}

.login-panel::before { position: absolute; inset: -1px 28px auto; height: 3px; background: var(--green); content: ""; }
.login-panel-label { margin: 0 0 8px; color: var(--green); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.login-panel h2 { margin: 0; font-size: 2rem; letter-spacing: -.03em; line-height: 1.05; }
.login-copy { margin: 11px 0 26px; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.login-form { display: grid; gap: 15px; }
.login-field { display: grid; gap: 7px; }
.login-field label { color: var(--chrome); font-size: .76rem; font-weight: 750; }
.login-form .login-field input {
    width: 100%;
    min-height: 52px;
    padding: 0 15px;
    border: 1px solid #3b433e;
    border-radius: 10px;
    outline: 0;
    background: #0d100e;
    color: var(--text);
    transition: border-color 180ms ease-out, background-color 180ms ease-out;
}

.login-form .login-field input::placeholder { color: #89918b; }
.login-form .login-field input:hover { border-color: #59635c; }
.login-form .login-field input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(30,215,96,.13); }

.profile-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.profile-picker legend { margin-bottom: 8px; color: var(--chrome); font-size: .76rem; font-weight: 750; }
.profile-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.profile-option {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 72px;
    grid-column: span 2;
    place-items: center;
    align-content: center;
    gap: 5px;
    padding: 8px 4px;
    border: 1px solid #354039;
    border-radius: 10px;
    background: #0d100e;
    color: var(--muted);
    cursor: pointer;
    transition: border-color 180ms ease-out, background-color 180ms ease-out, color 180ms ease-out, transform 180ms ease-out;
}
.profile-option:nth-last-child(2):nth-child(3n + 1) { grid-column: 2 / span 2; }
.profile-option:hover { border-color: #59635c; color: var(--text); transform: translateY(-1px); }
.profile-option:has(input:checked) { border-color: var(--green); background: #15231a; color: var(--text); }
.profile-option:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 3px; }
.profile-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.profile-avatar { display: grid; width: 42px; height: 42px; place-items: center; overflow: hidden; border: 2px solid transparent; border-radius: 50%; background: #29322c; color: var(--text); font-size: .82rem; font-weight: 850; }
.profile-option:has(input:checked) .profile-avatar { border-color: var(--green); background: var(--green); color: #06170c; }
.profile-name { max-width: 100%; overflow: hidden; font-size: .66rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.profile-check { position: absolute; top: 5px; right: 6px; color: var(--green); font-size: .62rem; opacity: 0; }
.profile-option:has(input:checked) .profile-check { opacity: 1; }
.login-form .primary-button { display: flex; width: 100%; min-height: 54px; margin-top: 3px; align-items: center; justify-content: space-between; padding: 0 18px 0 20px; border: 0; border-radius: 10px; background: var(--green); color: #06170c; font-weight: 850; cursor: pointer; transition: background-color 180ms ease-out, transform 180ms ease-out; }
.login-form .primary-button:hover { background: #35e774; transform: translateY(-1px); }
.login-form .primary-button:active { transform: translateY(0); }
.login-form .primary-button b { font-size: 1.25rem; }
.login-privacy { display: flex; margin: 20px 0 0; align-items: center; justify-content: center; gap: 7px; color: #8e9690; font-size: .68rem; text-align: center; }
.login-privacy span { color: var(--green); font-size: .5rem; }
.message { padding: 11px 13px; border-radius: 8px; font-size: .82rem; }
.message.error { border: 1px solid #71333c; background: #34191e; color: #ffcbd1; }
.login-footer { display: flex; justify-content: space-between; color: #6f7771; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .62rem; letter-spacing: .1em; }

.settings-body {
    min-height: 100svh;
    background: radial-gradient(circle at 82% 8%, rgba(30, 215, 96, .13), transparent 26rem), #090b0a;
}

.settings-topbar {
    display: flex;
    width: min(100% - 40px, 1080px);
    min-height: 82px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.back-link { color: var(--muted); font-size: .8rem; font-weight: 750; }
.back-link:hover { color: var(--green); }
.settings-shell { width: min(100% - 40px, 1080px); margin: 0 auto; padding: 44px 0 80px; }
.settings-hero { display: flex; align-items: center; gap: 24px; margin-bottom: 34px; }
.settings-avatar { display: grid; width: 112px; height: 112px; flex: 0 0 auto; place-items: center; overflow: hidden; border: 3px solid var(--green); border-radius: 50%; background: #243029; box-shadow: 10px 10px 0 rgba(30, 215, 96, .12); font-size: 2.2rem; font-weight: 900; }
.settings-hero h1 { margin: 0; font-size: 3.5rem; letter-spacing: -.04em; line-height: .92; }
.settings-hero p:last-child { margin: 10px 0 0; color: var(--muted); line-height: 1.5; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.settings-card { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: rgba(18, 21, 19, .92); }
.settings-card-wide { grid-column: 1 / -1; }
.settings-card-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.settings-card h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.035em; }
.settings-card-heading p { margin: 5px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.settings-card form { display: grid; gap: 16px; }
.field-group { display: grid; gap: 7px; }
.field-group label,
.quality-picker legend { color: var(--chrome); font-size: .76rem; font-weight: 750; }
.settings-card label small { display: block; margin-top: 3px; color: var(--muted); font-weight: 500; }
.settings-card input:not([type="radio"]):not([type="checkbox"]) { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid #3b433e; border-radius: 9px; outline: 0; background: #0d100e; color: var(--text); }
.settings-card input[type="file"] { padding: 11px 13px !important; }
.settings-card input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(30,215,96,.13); }
.settings-card button { justify-self: start; }
.secondary-button,
.danger-button { min-height: 44px; padding: 0 16px; border: 1px solid #4b554e; border-radius: 9px; background: transparent; color: var(--text); font-weight: 800; cursor: pointer; }
.danger-button { border-color: #71333c; color: #ffcbd1; }
.danger-button:hover { background: #34191e; }
.danger-button:disabled { cursor: not-allowed; opacity: .45; }
.field-note { margin: 1px 0 5px; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.quality-picker { display: grid; margin: 0 0 8px; padding: 0; border: 0; gap: 8px; }
.quality-picker legend { margin-bottom: 3px; }
.quality-picker label,
.settings-switch { display: flex; min-height: 62px; align-items: center; gap: 12px; padding: 12px; border: 1px solid #343c36; border-radius: 10px; background: #0d100e; cursor: pointer; }
.quality-picker label:has(input:checked) { border-color: var(--green); background: #14251a; }
.quality-picker input,
.settings-switch input { width: 19px; height: 19px; flex: 0 0 auto; accent-color: var(--green); }
.quality-picker label span,
.settings-switch span { display: grid; gap: 3px; }
.quality-picker strong,
.settings-switch strong { font-size: .85rem; }
.quality-picker small,
.settings-switch small { color: var(--muted); font-size: .72rem; }
.offline-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 20px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.offline-tools p { margin: 5px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.offline-tools .danger-button { grid-column: 2; grid-row: 1; margin: 0; }
.offline-tools .field-note { grid-column: 1 / -1; }
.offline-list { display: grid; grid-column: 1 / -1; margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.offline-list li { display: flex; min-height: 56px; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.offline-list li > span { display: grid; min-width: 0; gap: 3px; }
.offline-list li strong,
.offline-list li small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offline-list li strong { font-size: .82rem; }
.offline-list li small { color: var(--muted); font-size: .7rem; }
.offline-list li button { min-height: 40px; margin: 0; padding: 0 10px; border: 0; background: transparent; color: #ffcbd1; font-size: .72rem; cursor: pointer; }
.offline-list .offline-empty { justify-content: flex-start; color: var(--muted); font-size: .76rem; }

.import-shell { width: min(100% - 40px, 960px); margin: 0 auto; padding: 50px 0 90px; }
.import-hero { max-width: 720px; margin-bottom: 30px; }
.import-hero h1 { max-width: 680px; margin: 4px 0 12px; font-size: clamp(3rem, 8vw, 5.5rem); letter-spacing: -.055em; line-height: .9; text-transform: uppercase; }
.import-hero > p:last-child { margin: 0; color: var(--muted); line-height: 1.55; }
.music-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; margin-bottom: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.music-search input { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid #465149; border-radius: 9px; outline: 0; background: #0b0e0c; color: var(--text); }
.music-search input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(30,215,96,.13); }
.music-search .primary-button { border-radius: 9px; }
.search-results { margin-top: 34px; }
.import-list { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.import-track { display: grid; grid-template-columns: 42px minmax(0, 1fr) minmax(250px, 320px); align-items: center; gap: 14px; padding: 16px; border-bottom: 1px solid var(--line); }
.import-track:last-child { border-bottom: 0; }
.import-index { color: var(--green); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .75rem; font-weight: 800; }
.import-track h3 { margin: 0; font-size: .92rem; line-height: 1.35; }
.import-track p { margin: 5px 0 0; color: var(--muted); font-size: .74rem; }
.import-track form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px; }
.rights-check { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: .65rem; line-height: 1.35; cursor: pointer; }
.rights-check input { width: 18px; height: 18px; flex: 0 0 auto; margin: 0; accent-color: var(--green); }
.import-track button { min-height: 42px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--green); color: #06170c; font-size: .72rem; font-weight: 850; cursor: pointer; }
.import-empty { display: grid; gap: 5px; padding: 28px; border: 1px dashed #465149; border-radius: 12px; color: var(--muted); text-align: center; }
.import-empty strong { color: var(--text); }
.import-legal { margin: 24px 0 0; color: #838b85; font-size: .7rem; line-height: 1.5; }

@media (max-width: 850px) {
    :root { --player-height: 156px; }
    .sidebar { display: none; }
    .workspace { margin-left: 0; padding: 0 16px 48px; }
    .mobile-header {
        display: flex;
        height: 72px;
        align-items: center;
        justify-content: space-between;
    }
    .mobile-header .brand-mark { width: 34px; height: 34px; }
    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 18px 0 30px;
    }
    .hero-copy { grid-row: 2; }
    .hero h1 { font-size: clamp(3.75rem, 18vw, 6.25rem); }
    .hero h1 em { -webkit-text-stroke-width: 1px; }
    .hero-art {
        width: min(77vw, 300px);
        grid-row: 1;
        justify-self: center;
        margin: -10px 0 -6px;
    }
    .sound-orbit strong { font-size: clamp(2rem, 10vw, 3rem); }
    .sound-orbit span { font-size: 2rem; }
    .install-button { width: 100%; }
    .power-strip {
        justify-content: flex-start;
        margin: 0 -16px 32px;
        padding-inline: 18px;
    }
    .track-row { grid-template-columns: minmax(0, 1fr) auto; }
    .track-main { grid-template-columns: 46px minmax(0, 1fr) 28px; padding: 9px 6px 9px 9px; }
    .track-number, .track-album { display: none; }
    .android-tip { align-items: flex-start; }
    .player {
        height: var(--player-height);
        grid-template-columns: 1fr auto;
        grid-template-rows: 54px 72px;
        gap: 5px 12px;
        padding: 8px 14px max(10px, env(safe-area-inset-bottom));
    }
    .now-playing { grid-column: 1; grid-row: 1; }
    .now-playing .cover { width: 46px; height: 46px; }
    .download-label { display: none; }
    .download-button { width: 36px; justify-content: center; padding: 0; }
    .transport { grid-column: 1 / -1; grid-row: 2; }
    .volume { grid-column: 2; grid-row: 1; }
    .volume span { display: none; }
    .volume input { width: 74px; }
    .playlist-header { align-items: stretch; flex-direction: column; gap: 12px; }
    .playlist-create-panel { align-items: stretch; flex-direction: column; gap: 14px; }
    .playlist-create { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) auto; }
    .playlist-create input { width: 100%; }
    .playlist-editor-actions { grid-template-columns: 1fr; }
    .monthly-mix-hero { grid-template-columns: auto minmax(0, 1fr); }
    .monthly-mix-hero > img { width: 104px; height: 104px; }
    .monthly-mix-hero .playlist-play { grid-column: 1 / -1; width: 100%; margin: 0; justify-content: center; }
    .login-shell { min-height: 100svh; }
    .login-stage { grid-template-columns: 1fr; gap: 28px; padding: 44px 0 34px; }
    .login-intro { padding: 0; }
    .login-intro h1 { max-width: 640px; font-size: clamp(3.8rem, 13vw, 5.5rem); }
    .login-intro > p:last-of-type { max-width: 580px; }
    .login-vinyl { right: 0; bottom: -30%; width: 220px; opacity: .18; }
    .settings-grid { grid-template-columns: 1fr; }
    .settings-card-wide { grid-column: auto; }
    .import-track { grid-template-columns: 34px minmax(0, 1fr); }
    .import-track form { grid-column: 2; }
}

@media (max-width: 480px) {
    .hero p:not(.eyebrow) { font-size: .9rem; }
    .section-heading > span { display: none; }
    .android-tip { gap: 13px; padding: 17px; }
    .phone-icon { width: 42px; height: 42px; font-size: 1.5rem; }
    .volume { display: none; }
    .player { grid-template-columns: 1fr; }
    .now-playing { grid-column: 1; }
    .playlist-hub { margin-bottom: 36px; }
    .playlist-header h2 { font-size: 1.75rem; }
    .playlist-create { grid-template-columns: 1fr; }
    .playlist-create button { width: 100%; }
    .playlist-tab { min-width: 132px; }
    .playlist-editor-title { align-items: flex-start; }
    .playlist-cover { width: 48px; height: 48px; }
    .playlist-play { min-width: 48px; padding: 0; justify-content: center; font-size: 0; }
    .playlist-play span { font-size: .9rem; }
    .monthly-mix-hero { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 16px; }
    .monthly-mix-hero > img { width: 76px; height: 76px; }
    .monthly-mix-hero h3 { font-size: 1.35rem; }
    .monthly-mix-hero p { display: none; }
    .monthly-mix-hero .playlist-play { padding: 0 16px; font-size: .82rem; }
    .track-main { grid-template-columns: 42px minmax(0, 1fr); gap: 9px; }
    .track-main .cover { width: 42px; height: 42px; }
    .track-play { display: none; }
    .track-tools { padding-inline: 0 5px; }
    .track-tool { min-width: 44px; min-height: 48px; }
    .track-tool small { display: none; }
    .track-playlist-form { grid-template-columns: 1fr auto; padding: 12px; }
    .track-playlist-form .field-group { grid-column: 1 / -1; }
    .import-shell { width: min(100% - 28px, 960px); padding-top: 34px; }
    .import-hero h1 { font-size: 3.1rem; }
    .music-search { grid-template-columns: 1fr; padding: 14px; }
    .music-search button { width: 100%; }
    .import-track { grid-template-columns: 1fr; gap: 10px; padding: 15px; }
    .import-index { display: none; }
    .import-track form { grid-column: 1; grid-template-columns: 1fr; padding-top: 3px; }
    .import-track button { width: 100%; min-height: 46px; }
    .login-shell { padding-inline: 16px; }
    .login-brand small { display: none; }
    .login-stage { gap: 18px; padding: 28px 0 24px; }
    .login-signal { height: 20px; }
    .login-signal i:nth-child(2), .login-signal i:nth-child(4) { height: 13px; }
    .login-signal i:nth-child(3) { height: 20px; }
    .login-status { margin-top: 14px; }
    .login-intro h1 { font-size: 2.6rem; }
    .login-intro > p:last-of-type { display: block; margin-top: 14px; font-size: .88rem; line-height: 1.45; }
    .login-features { display: none; }
    .login-features li { padding: 6px 9px; font-size: .65rem; }
    .login-vinyl { display: none; }
    .login-panel { padding: 23px 20px; border-radius: 14px; }
    .login-panel h2 { font-size: 1.7rem; }
    .login-copy { display: none; }
    .login-form { gap: 12px; }
    .login-form .login-field input { min-height: 49px; }
    .login-form .primary-button { min-height: 51px; }
    .login-footer span:first-child { display: none; }
    .login-footer { justify-content: flex-end; }
    .mobile-profile-link > span:first-child { display: none; }
    .settings-topbar,
    .settings-shell { width: min(100% - 28px, 1080px); }
    .settings-topbar { min-height: 70px; }
    .settings-topbar .brand { font-size: 1rem; }
    .settings-topbar .brand-mark { width: 34px; height: 34px; }
    .settings-shell { padding-top: 30px; }
    .settings-hero { align-items: flex-end; gap: 15px; }
    .settings-avatar { width: 82px; height: 82px; box-shadow: 6px 6px 0 rgba(30, 215, 96, .12); }
    .settings-hero h1 { font-size: 2.35rem; }
    .settings-hero p:last-child { font-size: .76rem; }
    .settings-card { padding: 20px 17px; }
    .settings-card .field-group label,
    .settings-card .quality-picker legend { font-size: .875rem; }
    .offline-tools { grid-template-columns: 1fr; }
    .offline-tools .danger-button,
    .offline-tools .field-note { grid-column: 1; grid-row: auto; justify-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
