:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, sans-serif; background: #121212; color: #f5f5f5; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-width: 320px; margin: 0; background: radial-gradient(circle at 50% -20%, #313734 0, #121212 42rem); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid #b9d86d; outline-offset: 3px; }
.app-shell { width: min(860px, 100%); margin: 0 auto; padding: env(safe-area-inset-top) 18px calc(142px + env(safe-area-inset-bottom)); }
.topbar, .library-heading, .dialog-frame header, .player-frame header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar { min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; line-height: 1.05; }
.nav-button { padding: 0; border: 0; text-align: left; background: transparent; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #b9d86d; color: #17200d; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.brand strong, .brand small { display: block; }
.brand small, .eyebrow, .track-copy small, .now-playing-info span { color: #a7a7a7; }
.brand strong { font-size: 15px; }
.brand small { margin-top: 3px; font-size: 11px; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.playlist-button { min-height: 32px; padding: 0 11px; }
.account-button, .icon-button, .mini-control, .expand-button, .favorite-button, .transport-button, .play-button { border: 0; color: inherit; background: transparent; }
.account-button, .icon-button { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; color: #e5e5e5; font-size: 19px; }
.account-button:hover, .icon-button:hover, .mini-control:hover, .expand-button:hover, .favorite-button:hover { background: #292929; }
.library { padding: 28px 0; }
.eyebrow { margin: 0 0 7px; font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.library h1, .empty-state h2, .dialog-frame h2, .player-frame h2 { margin: 0; letter-spacing: -.04em; }
.library h1 { font-size: clamp(32px, 9vw, 50px); }
.quiet-button, .primary-button { min-height: 38px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 750; }
.quiet-button { border: 1px solid #4b4b4b; color: #f4f4f4; background: #242424; }
.primary-button { border: 0; color: #19210e; background: #b9d86d; }
.filters { display: grid; gap: 10px; margin: 28px 0 12px; }
.search-field input { width: 100%; min-height: 46px; padding: 0 17px; border: 0; border-radius: 999px; color: #f4f4f4; background: #2a2a2a; }
.search-field input::placeholder { color: #a8a8a8; }
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.filter-row:has(label:only-child) { grid-template-columns: 1fr; }
.filter-row label { display: grid; gap: 5px; color: #bcbcbc; font-size: 11px; font-weight: 750; }
.filter-row select { width: 100%; min-height: 36px; padding: 0 11px; border: 0; border-radius: 7px; color: #f1f1f1; background: #2a2a2a; }
.favorites-toggle { display: flex !important; align-items: end; gap: 8px; min-height: 53px; padding: 0 8px 11px; border-radius: 7px; background: #2a2a2a; }
.favorites-toggle input { accent-color: #b9d86d; }
.library-summary { min-height: 26px; padding: 8px 3px; color: #a9a9a9; font-size: 13px; }
.track-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #303030; }
.folder-browser { display: grid; gap: 8px; margin: 6px 0 14px; }
.folder-browser[hidden] { display: none; }
.folder-crumbs { display: flex; align-items: center; gap: 4px; min-width: 0; overflow-x: auto; padding: 3px 0; }
.folder-crumb { flex: 0 0 auto; min-height: 30px; padding: 0 8px; border: 0; border-radius: 5px; color: #b9d86d; background: transparent; font-size: 12px; font-weight: 700; }
.folder-crumb:hover { background: #282d22; }
.folder-separator { color: #757575; }
.folder-entries { display: grid; margin: 0; padding: 0; overflow: hidden; border: 1px solid #353535; border-radius: 8px; list-style: none; }
.folder-entry { border-bottom: 1px solid #353535; }
.folder-entry:last-child { border-bottom: 0; }
.folder-entry button { display: flex; align-items: center; width: 100%; min-height: 51px; gap: 11px; padding: 0 13px; border: 0; color: #f0f0f0; text-align: left; background: #1c1c1c; }
.folder-entry button:hover { background: #282828; }
.folder-icon { position: relative; flex: 0 0 auto; width: 19px; height: 14px; margin-top: 2px; border: 1px solid #b9d86d; border-radius: 2px; background: rgba(185,216,109,.15); }
.folder-icon::before { position: absolute; top: -5px; left: 2px; width: 8px; height: 4px; border: 1px solid #b9d86d; border-bottom: 0; border-radius: 2px 2px 0 0; content: ""; }
.folder-entry span:not(.folder-icon) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-browser:has(.folder-entry) + .library-summary:not(:empty) { margin-top: 8px; padding-top: 15px; border-top: 1px solid #353535; }
.track-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 42px; align-items: center; gap: 11px; min-height: 68px; border-bottom: 1px solid #303030; }
.track-row:hover { background: rgba(255,255,255,.045); }
.track-row { grid-template-columns: 48px minmax(0,1fr) auto; }
.track-actions { display: flex; align-items: center; }
.track-share { width: 32px; font-size: 18px; }
.public-render-choices { min-width: 0; border: 1px solid #444; border-radius: 8px; }
.public-render-choices > div { display: grid; gap: 12px; max-height: 260px; overflow-y: auto; padding: 10px 0; }
.public-render-choice { display: flex; gap: 9px; align-items: start; font-size: 13px; }
.public-render-choice input { flex-shrink: 0; accent-color: #b9d86d; }
.public-render-choice span { overflow-wrap: anywhere; }
.track-art { display: grid; place-items: center; color: #18200e; background: linear-gradient(145deg, #d1e998, #7c9650); }
.row-art { width: 44px; height: 44px; border-radius: 5px; font-size: 17px; }
.track-main { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-width: 0; padding: 11px 0; border: 0; color: inherit; text-align: left; background: transparent; }
.track-number, .track-meta { color: #a8a8a8; font-size: 12px; }
.track-copy { display: grid; min-width: 0; gap: 4px; }
.track-title, .track-copy small, .now-playing-info strong, .now-playing-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-title { font-size: 14px; }
.track-copy small { font-size: 12px; }
.track-meta { max-width: 122px; text-align: right; }
.favorite-button { width: 38px; height: 38px; border-radius: 50%; color: #aaa; font-size: 21px; }
.favorite-button.is-favorite { color: #c8e97c; }
.empty-state { max-width: 390px; margin: 66px auto; text-align: center; }
.empty-art { display: grid; width: 78px; height: 78px; margin: 0 auto 21px; place-items: center; border-radius: 50%; color: #19210e; background: linear-gradient(145deg, #d1e998, #7c9650); font-size: 32px; }
.empty-state p:not(.eyebrow) { color: #aaa; line-height: 1.55; }
.now-playing { position: fixed; z-index: 3; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr) 36px 36px 36px 36px; align-items: center; gap: 4px; padding: 10px max(14px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid #363636; background: rgba(25,25,25,.96); backdrop-filter: blur(18px); }
.mini-art { width: 46px; height: 46px; border-radius: 4px; font-size: 19px; }
.now-playing-info { display: grid; min-width: 0; gap: 4px; padding: 5px 2px; border: 0; color: inherit; text-align: left; background: transparent; }
.now-playing-info strong { font-size: 13px; }
.now-playing-info span { font-size: 11px; }
.mini-control, .expand-button { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; color: #e7e7e7; font-size: 15px; }
.mini-control { gap: 0; grid-auto-flow: column; }
.mini-control small { margin: 4px 0 0 -5px; font-size: 8px; font-weight: 800; }
.mini-play { color: #16200b; background: #b9d86d; }
.mini-play:hover { background: #d0ec8d; }
.source-dialog, .player-dialog { width: min(100%, 620px); max-width: none; margin: auto 0 0; padding: 0; border: 1px solid #454545; border-radius: 16px 16px 0 0; color: #f5f5f5; background: #242424; }
.source-dialog::backdrop, .player-dialog::backdrop { background: rgba(0,0,0,.65); }
.dialog-frame { padding: 24px 20px 30px; }
.sheet-top { position: sticky; top: 0; z-index: 2; margin: -24px -20px 0; padding: 8px 20px 18px; background: #242424; touch-action: pan-x; }
.sheet-grip { display: block; width: 72px; height: 22px; margin: 0 auto 4px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.sheet-grip::after { content: ''; display: block; width: 38px; height: 4px; margin: auto; border-radius: 4px; background: #747474; }
.player-frame .sheet-top { margin: -18px -22px 0; padding-right: 22px; padding-left: 22px; }
.source-panel { display: grid; gap: 17px; }
.source-panel fieldset { min-width: 0; }
#experimental-playback-controls:not([hidden]) { display: grid; gap: 14px; margin-top: 12px; }
.source-dialog { max-height: 94dvh; overflow-y: auto; }
.source-panel details > .source-panel { margin-top: 16px; }
.source-panel summary { cursor: pointer; }
.source-panel .dialog-actions { flex-wrap: wrap; }
.source-panel .remember-device { display: flex; align-items: center; gap: 8px; }
.remember-device input { width: auto; }
.band-share-dialog { max-height: 94dvh; overflow-y: auto; }
.share-compose { display: grid; gap: 14px; min-width: 0; margin: 0; padding: 16px; border: 1px solid #444; border-radius: 10px; }
.share-compose legend { padding: 0 5px; font-weight: 700; }
.share-compose hr { width: 100%; border: 0; border-top: 1px solid #444; }
.share-compose select, .source-panel select, .share-compose textarea { width: 100%; min-width: 0; padding: 10px; border: 1px solid #444; border-radius: 6px; color: inherit; background: #161616; font: inherit; }
.record-volumes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.record-hint { margin: 0; font-size: 12px; color: #bcbcbc; }
.record-indicator { padding: 12px; border: 1px solid #555; border-radius: 8px; background: #181818; }
.record-indicator[hidden] { display: none; }
.record-indicator.is-recording { border-color: #bb645c; background: #271c1b; }
.record-indicator-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.record-indicator-heading strong { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.record-dot { width: 9px; height: 9px; border-radius: 50%; background: #777; }
.is-recording .record-dot { background: #f0786b; box-shadow: 0 0 0 4px #f0786b20; }
.record-indicator output { color: #eee; font: 600 17px ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.record-indicator canvas { display: block; width: 100%; height: 64px; margin-top: 8px; }
.share-compose:has(.is-recording) #record-stop { border: 1px solid #bb645c; color: #ffd9d4; background: #502c27; }
.share-compose .dialog-actions { flex-wrap: wrap; }
.share-compose audio { width: 100%; }
.share-file-picker { display: flex; align-items: center; gap: 12px; min-width: 0; }
.file-picker { position: relative; flex: 0 0 auto; padding: 11px 14px; border: 1px solid #555; border-radius: 7px; font-size: 13px; font-weight: 700; cursor: pointer; background: #303030; }
.file-picker input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.file-picker:focus-within { outline: 2px solid #b9d86d; outline-offset: 3px; }
#band-share-file-name { min-width: 0; color: #aaa; font-size: 12px; overflow-wrap: anywhere; }
.share-player { display: grid; gap: 10px; width: 100%; margin-top: 12px; padding: 12px; border: 1px solid #444; border-radius: 8px; background: #191919; }
.share-player[hidden] { display: none; }
.share-player-controls { display: flex; align-items: center; gap: 8px; }
.share-player-button { min-width: 36px; min-height: 36px; padding: 5px; border: 0; border-radius: 6px; background: #333; color: #eee; }
.share-player-button:first-child { background: #b9d86d; color: #16200b; }
.share-player-clock { margin-left: auto; font-size: 12px; font-variant-numeric: tabular-nums; color: #bbb; }
.waveform-timeline { position: relative; height: 64px; border-radius: 4px; }
.waveform-timeline canvas { display: block; width: 100%; height: 64px; }
.waveform-timeline input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.waveform-timeline:focus-within { outline: 2px solid #b9d86d; outline-offset: 2px; }
.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px 8px; border-bottom: 1px solid #444; }
.share-row > div { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.share-row strong, .share-row small { display: block; }
.share-row small { margin-top: 5px; color: #aaa; font-size: 11px; }
.share-row p { margin-bottom: 0; color: #ccc; font-size: 13px; }
.share-row a { display: grid; align-items: center; text-decoration: none; }
.share-row audio { display: block; width: 100%; margin-top: 12px; }
.share-row img { display: block; max-width: 100%; max-height: 240px; margin-top: 12px; border-radius: 6px; object-fit: contain; background: #171717; }
.share-preview-note { display: block; margin-top: 8px; color: #bbb; font-size: 12px; }
.share-compose button:disabled { opacity: .45; cursor: default; }
.form-note:empty { display: none; }
.workspace-nav { display: grid; gap: 8px; }
.workspace-nav a, .workspace-nav button { display: grid; gap: 4px; width: 100%; padding: 14px; border: 1px solid #3c3c3c; border-radius: 9px; color: #f5f5f5; text-align: left; text-decoration: none; background: #1b1b1b; }
.workspace-nav a:hover, .workspace-nav button:hover { border-color: #6f7d51; background: #262626; }
.workspace-nav small { color: #aaa; font-size: 12px; }
.source-panel > p { margin: 0; color: #c0c0c0; line-height: 1.5; }
.form-field { display: grid; gap: 7px; color: #d5d5d5; font-size: 12px; font-weight: 700; }
.form-field input { width: 100%; min-height: 43px; padding: 0 12px; border: 0; border-radius: 7px; color: #f4f4f4; background: #161616; }
.form-field small { color: #aaa; font-weight: 500; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.playlist-create { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.playlist-create input { min-width: 0; min-height: 39px; padding: 0 12px; border: 0; border-radius: 7px; color: #f4f4f4; background: #161616; }
.playlist-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.playlist-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 6px; padding: 8px; border-radius: 8px; background: #1b1b1b; }
.playlist-row strong, .playlist-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.playlist-row small { margin-top: 3px; color: #aaa; font-size: 11px; }
.playlist-action { min-height: 32px; padding: 0 9px; border: 0; border-radius: 6px; color: #e5e5e5; background: #333; font-size: 12px; font-weight: 700; }
.playlist-action--delete { color: #f0aaa1; }
.form-note { min-height: 19px; margin: 0; color: #c8da99 !important; font-size: 12px; }
.player-frame { position: relative; min-height: min(720px, 100dvh); padding: 18px 22px 30px; display: grid; grid-template-rows: auto 1fr auto auto auto; gap: 24px; touch-action: manipulation; }
.large-art { display: grid; width: min(70vw, 310px); aspect-ratio: 1; place-self: center; place-items: center; border-radius: 11px; color: #19210e; background: linear-gradient(145deg, #d7ee9d, #78944b); font-size: 92px; }
.player-title { text-align: center; }
.player-title p { margin: 8px 0 0; color: #aaa; }
.timeline { display: grid; gap: 9px; }
.timeline input { width: 100%; accent-color: #b9d86d; }
.timeline div { display: flex; justify-content: space-between; color: #aaa; font-size: 12px; }
.transport { display: flex; align-items: center; justify-content: center; gap: 26px; }
.transport-button { display: grid; width: 68px; min-height: 58px; place-items: center; gap: 3px; font-size: 10px; font-weight: 750; letter-spacing: .02em; }
.transport-button svg { width: 29px; height: 29px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2.35; stroke-linecap: round; stroke-linejoin: round; }
.play-button { width: 62px; height: 62px; border-radius: 50%; color: #17200d; background: #b9d86d; font-size: 28px; }
.tap-seek-feedback { position: absolute; z-index: 3; top: 50%; width: 86px; min-height: 86px; display: grid; place-items: center; padding: 12px; border: 1px solid #7b8d58; border-radius: 50%; color: #eaf5cf; background: rgb(22 29 15 / .9); font-size: 12px; font-weight: 800; line-height: 1.1; text-align: center; opacity: 0; pointer-events: none; transform: translateY(-50%) scale(.82); transition: opacity .14s ease, transform .18s ease; }
.tap-seek-feedback[data-direction="back"] { left: 26px; }
.tap-seek-feedback[data-direction="forward"] { right: 26px; }
.tap-seek-feedback.is-visible { opacity: 1; transform: translateY(-50%) scale(1); }
.player-message { min-height: 19px; margin: 0; color: #e5a69b; text-align: center; font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (min-width: 700px) { .app-shell { padding-right: 34px; padding-left: 34px; } .now-playing { right: auto; left: 50%; width: min(760px, calc(100vw - 44px)); transform: translateX(-50%); border: 1px solid #3d3d3d; border-radius: 10px; } .source-dialog, .player-dialog { margin: auto; border-radius: 16px; } }
@media (max-width: 430px) { .app-shell { padding-right: 12px; padding-left: 12px; } .topbar { gap: 7px; } .header-actions { gap: 1px; } .playlist-button { padding-right: 8px; padding-left: 8px; } .account-button { width: 36px; } .playlist-create { grid-template-columns: 1fr; } .playlist-row { grid-template-columns: minmax(0, 1fr) auto auto; } .playlist-row .playlist-action--delete { grid-column: 2 / -1; } }
