:root {
    --app-height: 100vh;
    --bg: #101215;
    --bg-soft: #171a1f;
    --panel: rgba(30, 34, 41, 0.52);
    --panel-strong: rgba(26, 29, 35, 0.68);
    --glass-edge: rgba(255,255,255,.14);
    --glass-sheen: rgba(255,255,255,.06);
    --text: #f5f7fb;
    --muted: #a5adbb;
    --line: rgba(255,255,255,0.10);
    --accent: #b9f550;
    --accent-ink: #1c260c;
    --danger: #ff8484;
    --shadow: 0 18px 55px rgba(0,0,0,.28);
    --glass-blur: blur(22px) saturate(1.4);
}

body.light {
    --bg: #f0f2f4;
    --bg-soft: #e4e7e9;
    --panel: rgba(255,255,255,.46);
    --panel-strong: rgba(255,255,255,.62);
    --glass-edge: rgba(255,255,255,.65);
    --glass-sheen: rgba(255,255,255,.35);
    --text: #1c222b;
    --muted: #68717d;
    --line: rgba(20,30,40,.12);
    --accent: #5f9319;
    --accent-ink: #fff;
    --shadow: 0 18px 55px rgba(24,35,43,.16);
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { position: relative; isolation: isolate; margin: 0; max-width: 100%; min-width: 320px; min-height: var(--app-height); overflow-x: hidden; background: var(--bg); color: var(--text); font-family: Inter, Arial, sans-serif; }
body::before { position: fixed; z-index: -2; inset: 0; background: linear-gradient(rgba(10,12,15,.48), rgba(10,12,15,.7)), var(--skin-image, none) center / cover no-repeat; content: ''; opacity: 0; transition: opacity .45s ease; pointer-events: none; }
body.light::before { background: linear-gradient(rgba(245,247,249,.48), rgba(235,239,242,.72)), var(--skin-image, none) center / cover no-repeat; }
body.has-skin::before { opacity: 1; }
button, input, select { font: inherit; }
input, select, textarea { max-width: 100%; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hidden { display: none !important; }
.ambient { position: fixed; z-index: -3; width: 48vw; height: 48vw; max-width: 670px; max-height: 670px; border-radius: 50%; filter: blur(90px); opacity: .22; pointer-events: none; transition: opacity .5s ease; }
.ambient-one { top: -18vw; left: 20vw; background: #8ddb28; }
.ambient-two { right: -20vw; bottom: 5vh; background: #7356e6; }
.eyebrow { margin: 0 0 5px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }

.login-screen { min-height: var(--app-height); display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 390px); gap: clamp(40px, 11vw, 180px); align-items: center; width: min(1040px, calc(100% - 48px)); margin: auto; padding: 48px 0; }
.login-brand h1 { margin: 8px 0 12px; font-size: clamp(58px, 9vw, 108px); line-height: .9; letter-spacing: -.075em; }
.login-copy { max-width: 320px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.brand-mark { display: inline-flex; align-items: end; justify-content: center; gap: 4px; width: 56px; height: 56px; padding: 12px; border-radius: 18px; background: var(--accent); color: var(--accent-ink); box-shadow: 0 12px 36px rgba(185,245,80,.22); }
.brand-mark span { display: block; width: 6px; border-radius: 5px; background: currentColor; }
.brand-mark span:nth-child(1) { height: 15px; }.brand-mark span:nth-child(2) { height: 27px; }.brand-mark span:nth-child(3) { height: 20px; }
.brand-mark.small { width: 34px; height: 34px; padding: 7px; border-radius: 10px; gap: 3px; box-shadow: none; }.brand-mark.small span { width: 4px; }.brand-mark.small span:nth-child(1) { height: 10px; }.brand-mark.small span:nth-child(2) { height: 18px; }.brand-mark.small span:nth-child(3) { height: 13px; }
.login-form { display: grid; gap: 9px; padding: 30px; border: 1px solid var(--glass-edge); border-radius: 22px; background: var(--panel); box-shadow: inset 0 1px 0 var(--glass-sheen), var(--shadow); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); animation: float-in .55s ease both; }
label { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .025em; }
input, select { width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 12px 13px; background: rgba(0,0,0,.16); color: var(--text); backdrop-filter: blur(6px); transition: border-color .2s, background .2s; }
body.light input, body.light select { background: rgba(255,255,255,.55); }
input:hover, select:hover { border-color: color-mix(in srgb, var(--muted) 60%, transparent); }
input[type=file] { padding: 10px; font-size: 13px; }
input::file-selector-button { margin-right: 10px; border: 0; border-radius: 8px; padding: 7px 9px; background: var(--bg-soft); color: var(--text); font-weight: 700; cursor: pointer; }
.form-note, .field-hint { margin: 2px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.link-button { border: 0; background: none; padding: 0; margin: 0; color: var(--accent); font: inherit; font-weight: 700; font-size: 11px; cursor: pointer; text-decoration: underline; }

.app { display: grid; grid-template-columns: 255px minmax(0, 1fr); min-height: var(--app-height); padding-bottom: 132px; }
.sidebar { position: fixed; z-index: 12; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column; width: 255px; padding: calc(24px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom)); border-right: 1px solid var(--glass-edge); background: var(--panel); box-shadow: inset -1px 0 0 var(--glass-sheen), 8px 0 38px rgba(0,0,0,.08); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.sidebar-head, .user-row, .queue-head, .modal-head, .topbar, .library-head, .control-row, .progress-row, .inline-form { display: flex; align-items: center; }
.sidebar-head { justify-content: space-between; padding: 0 8px 28px; }.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 20px; font-weight: 800; letter-spacing: -.05em; text-decoration: none; }
.nav-list { display: grid; gap: 3px; }.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; border: 0; border-radius: 10px; padding: 11px 12px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; text-align: left; cursor: pointer; transition: color .18s, background .18s, transform .18s; }.nav-item:hover { color: var(--text); background: rgba(255,255,255,.06); transform: translateX(2px); }.nav-item.active { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }.nav-icon { width: 19px; color: currentColor; font-size: 19px; text-align: center; }
.playlist-nav { min-height: 80px; margin-top: 28px; }.section-label { display: flex; align-items: center; justify-content: space-between; padding: 0 12px 8px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }.plain-button { border: 0; background: transparent; color: var(--muted); font-size: 21px; line-height: 1; cursor: pointer; }.plain-button:hover { color: var(--accent); }.playlist-links { display: grid; gap: 3px; max-height: 27vh; overflow: auto; }.playlist-link { overflow: hidden; border: 0; border-radius: 8px; padding: 8px 12px; background: transparent; color: var(--muted); font-size: 13px; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }.playlist-link:hover, .playlist-link.active { background: rgba(255,255,255,.06); color: var(--text); }
.sidebar-foot { margin-top: auto; }.user-row { gap: 9px; margin-top: 12px; padding: 12px 8px 0; border-top: 1px solid var(--line); }.user-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; }.user-info { display: grid; min-width: 0; flex: 1; }.user-info strong, .user-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.user-info strong { font-size: 12px; }.user-info span { color: var(--muted); font-size: 10px; }

.main-content { grid-column: 2; width: min(1280px, 100%); padding: 32px clamp(22px, 5vw, 76px) 46px; }.topbar { justify-content: space-between; gap: 18px; min-height: 56px; }.page-heading h2 { margin: 0; font-size: clamp(29px, 3.5vw, 45px); letter-spacing: -.065em; }.top-actions { display: flex; align-items: center; gap: 8px; }.icon-button { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: background .18s, color .18s, transform .18s; }.icon-button:hover { background: rgba(255,255,255,.09); color: var(--text); transform: translateY(-1px); }.mobile-only { display: none; }
.text-button, .secondary-button, .primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 10px 13px; font-size: 12px; font-weight: 800; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s; }.text-button, .secondary-button { background: rgba(255,255,255,.08); color: var(--text); }.secondary-button:hover, .text-button:hover { background: rgba(255,255,255,.14); transform: translateY(-1px); }.primary-button { background: var(--accent); color: var(--accent-ink); box-shadow: 0 9px 22px color-mix(in srgb, var(--accent) 23%, transparent); }.primary-button:hover { transform: translateY(-2px); box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 33%, transparent); }.wide { width: 100%; margin-top: 7px; padding: 12px; }
.queue-button { position: relative; }.queue-button b { position: absolute; right: -2px; top: -2px; display: grid; place-items: center; min-width: 15px; height: 15px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 9px; }
.library-head { justify-content: space-between; gap: 16px; margin: 42px 0 19px; }.search-wrap { display: flex; align-items: center; gap: 9px; width: min(430px, 100%); border-bottom: 1px solid var(--line); color: var(--muted); transition: border .2s; }.search-wrap:focus-within { border-color: var(--accent); }.search-wrap input { min-width: 0; border: 0; border-radius: 0; padding: 10px 0; background: transparent; box-shadow: none; }.search-wrap kbd { display: none; border: 1px solid var(--line); border-radius: 4px; padding: 2px 4px; font-size: 9px; }.library-actions { display: flex; gap: 8px; }
.genre-filters { display: flex; gap: 7px; min-height: 27px; margin-bottom: 15px; overflow: auto; scrollbar-width: none; }.genre-filter { flex: 0 0 auto; border: 0; border-bottom: 1px solid transparent; padding: 4px 1px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }.genre-filter:hover, .genre-filter.active { border-color: var(--accent); color: var(--text); }
.track-list { border-top: 1px solid var(--line); }.track-row { display: grid; grid-template-columns: 38px minmax(190px, 1.6fr) minmax(150px, 1fr) minmax(100px, .7fr) 90px 135px; align-items: center; gap: 13px; min-height: 68px; border-bottom: 1px solid var(--line); animation: row-in .38s both; }.track-row { border-radius: 12px; transition: background .16s ease, box-shadow .16s ease; }
.track-row:hover { background: linear-gradient(120deg, rgba(255,255,255,.075), rgba(255,255,255,.02)); box-shadow: inset 0 0 0 1px var(--glass-edge); }
.track-row.playing { background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }.track-number { padding-left: 8px; color: var(--muted); font-size: 12px; }.track-row.playing .track-number { color: var(--accent); font-weight: 800; }.track-main { display: flex; align-items: center; gap: 11px; min-width: 0; cursor: pointer; }.cover-art { position: relative; display: grid; flex: 0 0 auto; place-items: center; width: 41px; height: 41px; overflow: hidden; border-radius: 8px; background: linear-gradient(135deg, #285264, #8fd1b6); color: #f3ffed; font-size: 12px; font-weight: 800; }.cover-art img { width: 100%; height: 100%; object-fit: cover; }.cover-art span { position: absolute; }.cover-art.has-image span { display: none; }.track-row.playing .cover-art { animation: cover-pulse 1.8s ease-in-out infinite; }.track-name { display: grid; min-width: 0; gap: 3px; }.track-name strong, .track-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.track-name strong { font-size: 13px; }.track-name small, .track-meta { color: var(--muted); font-size: 12px; }.track-owner { display: inline-flex; width: max-content; max-width: 100%; overflow: hidden; border-radius: 5px; padding: 3px 6px; background: rgba(255,255,255,.07); color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.track-actions { display: flex; justify-content: flex-end; gap: 1px; padding-right: 5px; }.track-actions .icon-button { width: 31px; height: 31px; font-size: 17px; }.track-actions .icon-button.active { color: var(--accent); }.share-action { font-size: 14px !important; }.download-action { font-size: 16px !important; }
.empty-state { width: min(540px, 100%); margin: 16vh auto 0; text-align: center; animation: float-in .45s ease; }.empty-note { margin: 0; color: var(--accent); font-size: 13px; font-weight: 800; }.empty-state h3 { margin: 8px 0; font-size: clamp(28px, 5vw, 46px); letter-spacing: -.06em; }.empty-state p:not(.empty-note) { margin: 0 auto 22px; max-width: 360px; color: var(--muted); font-size: 13px; line-height: 1.6; }

.queue-panel { visibility: hidden; position: fixed; z-index: 18; top: 0; right: 0; bottom: 0; width: min(390px, 92vw); padding: calc(30px + env(safe-area-inset-top)) 20px calc(30px + env(safe-area-inset-bottom)); border-left: 1px solid var(--glass-edge); background: var(--panel-strong); box-shadow: inset 1px 0 0 var(--glass-sheen), -12px 0 46px rgba(0,0,0,.22); backdrop-filter: blur(28px) saturate(1.4); -webkit-backdrop-filter: blur(28px) saturate(1.4); transform: translateX(105%); transition: transform .3s cubic-bezier(.2,.8,.2,1), visibility .3s; }.queue-panel.open { visibility: visible; transform: translateX(0); }.queue-head { justify-content: space-between; }.queue-head h2 { margin: 0; font-size: 28px; letter-spacing: -.05em; }.queue-tip { margin: 23px 0 11px; color: var(--muted); font-size: 11px; }.queue-list { overflow: auto; max-height: calc(100% - 105px); }.queue-item { display: flex; align-items: center; gap: 9px; padding: 9px 4px; border-bottom: 1px solid var(--line); cursor: grab; }.queue-item.dragging { opacity: .35; }.queue-handle { color: var(--muted); font-size: 14px; }.queue-item-copy { display: grid; min-width: 0; gap: 3px; flex: 1; }.queue-item-copy strong, .queue-item-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.queue-item-copy strong { font-size: 12px; }.queue-item-copy span { color: var(--muted); font-size: 11px; }.queue-item button { width: 27px; height: 27px; }.queue-item.active strong { color: var(--accent); }

.player-bar { position: fixed; z-index: 15; right: 0; bottom: 0; left: 255px; display: grid; grid-template-columns: minmax(215px, 1fr) minmax(300px, 1.25fr) minmax(140px, 1fr); align-items: center; gap: 15px; min-height: 104px; padding: 13px clamp(20px, 5vw, 76px) calc(13px + env(safe-area-inset-bottom)); border-top: 1px solid var(--glass-edge); background: var(--panel-strong); box-shadow: inset 0 1px 0 var(--glass-sheen), 0 -10px 35px rgba(0,0,0,.1); backdrop-filter: blur(30px) saturate(1.5); -webkit-backdrop-filter: blur(30px) saturate(1.5); }.now-playing { display: flex; align-items: center; min-width: 0; gap: 11px; }.player-art { width: 54px; height: 54px; border-radius: 10px; }.now-copy { display: grid; min-width: 0; gap: 4px; flex: 1; }.now-copy strong, .now-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.now-copy strong { font-size: 12px; }.now-copy span { color: var(--muted); font-size: 11px; }.favorite-button.active { color: var(--accent); }.player-controls { display: grid; gap: 8px; }.control-row { justify-content: center; gap: 7px; }.control-button, .play-button { display: grid; place-items: center; width: 29px; height: 29px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; transition: color .16s, transform .16s; }.control-button:hover, .control-button.active { color: var(--accent); transform: scale(1.08); }.play-button { width: 38px; height: 38px; background: var(--text); color: var(--bg); font-size: 15px; }.play-button:hover { transform: scale(1.07); }.progress-row { gap: 8px; }.progress-row span { min-width: 31px; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }.progress-row span:last-child { text-align: right; } input[type=range] { appearance: none; -webkit-appearance: none; height: 4px; padding: 0; border: 0; border-radius: 5px; background: color-mix(in srgb, var(--muted) 35%, transparent); cursor: pointer; } input[type=range]::-webkit-slider-thumb { appearance: none; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); } input[type=range]::-moz-range-thumb { width: 11px; height: 11px; border: 0; border-radius: 50%; background: var(--accent); }.progress-row input { flex: 1; }.volume-wrap { display: flex; align-items: center; justify-content: flex-end; gap: 8px; color: var(--muted); }.volume-wrap input { width: min(130px, 75%); }.swipe-hint { display: none; }

.modal-layer { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 22px; }.modal-backdrop { position: absolute; inset: 0; background: rgba(5,7,10,.62); backdrop-filter: blur(4px); animation: fade-in .18s ease; }.modal { position: relative; z-index: 1; width: min(510px, 100%); max-height: min(760px, calc(var(--app-height) - 44px)); overflow: auto; border: 1px solid var(--glass-edge); border-radius: 21px; padding: 25px; background: var(--panel-strong); box-shadow: inset 0 1px 0 var(--glass-sheen), var(--shadow); backdrop-filter: blur(34px) saturate(1.5); -webkit-backdrop-filter: blur(34px) saturate(1.5); animation: modal-in .25s cubic-bezier(.2,.8,.2,1); }.compact-modal { width: min(420px, 100%); }.modal-grabber { display: none; }.modal-head { justify-content: space-between; margin-bottom: 20px; }.modal-head h2 { margin: 0; font-size: 26px; letter-spacing: -.05em; }.stack-form { display: grid; gap: 8px; }.inline-form { gap: 8px; }.inline-form input { min-width: 0; }.skin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; max-height: 270px; overflow: auto; }.skin-choice { position: relative; height: 93px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--bg-soft); cursor: pointer; }.skin-choice img { width: 100%; height: 100%; object-fit: cover; }.skin-choice span { position: absolute; right: 5px; bottom: 5px; max-width: calc(100% - 10px); overflow: hidden; border-radius: 5px; padding: 3px 5px; background: rgba(0,0,0,.58); color: white; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.skin-choice.active { border: 2px solid var(--accent); }.skin-choice .skin-delete { top: 5px; right: 5px; bottom: auto; left: auto; display: grid; place-items: center; width: 20px; height: 20px; max-width: 20px; padding: 0; border-radius: 50%; background: rgba(0,0,0,.6); font-size: 12px; line-height: 1; cursor: pointer; transition: background .15s, transform .15s; }.skin-choice .skin-delete:hover { background: var(--danger); transform: scale(1.1); }.skin-default { display: grid; place-items: center; color: var(--muted); font-size: 11px; font-weight: 800; }.skin-form { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }.share-track-name { margin: -5px 0 16px; color: var(--muted); font-size: 13px; }.recipient-list { display: grid; margin-bottom: 16px; border-top: 1px solid var(--line); }.recipient-option { display: flex; align-items: center; gap: 11px; padding: 11px 2px; border-bottom: 1px solid var(--line); color: var(--text); cursor: pointer; }.recipient-option input { width: 16px; height: 16px; accent-color: var(--accent); }.recipient-option small { color: var(--muted); }
.modal-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 7px; }.modal-actions .primary-button { flex: 1; }.danger-button { border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent); border-radius: 10px; padding: 10px 13px; background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); font-size: 12px; font-weight: 800; cursor: pointer; transition: background .16s, transform .16s; }.danger-button:hover { background: color-mix(in srgb, var(--danger) 22%, transparent); transform: translateY(-1px); }.danger-button:disabled, .primary-button:disabled, .secondary-button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.toast-area { position: fixed; z-index: 70; right: max(16px, env(safe-area-inset-right)); bottom: calc(120px + env(safe-area-inset-bottom)); display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); pointer-events: none; }.toast { padding: 12px 14px; border: 1px solid var(--glass-edge); border-left: 3px solid var(--accent); border-radius: 10px; background: var(--panel-strong); box-shadow: inset 0 1px 0 var(--glass-sheen), var(--shadow); color: var(--text); font-size: 12px; line-height: 1.45; backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); animation: toast-in .28s ease both; }.toast.error { border-left-color: var(--danger); }

@keyframes row-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float-in { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cover-pulse { 50% { transform: scale(1.05); filter: saturate(1.35); } }

@media (max-width: 860px) {
    .app { grid-template-columns: minmax(0, 1fr); padding-bottom: 154px; }.sidebar { transform: translateX(-105%); transition: transform .3s cubic-bezier(.2,.8,.2,1); width: min(300px, 86vw); }.sidebar.open { transform: translateX(0); }.mobile-backdrop { position: fixed; z-index: 11; inset: 0; background: rgba(0,0,0,.44); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }.mobile-backdrop.open { opacity: 1; visibility: visible; }.mobile-only { display: grid; }.main-content { grid-column: 1; width: 100%; min-width: 0; padding: calc(17px + env(safe-area-inset-top)) 18px 32px; }.topbar { min-height: 43px; }.page-heading { flex: 1; }.page-heading h2 { font-size: 29px; }.library-head { margin: 25px 0 17px; align-items: stretch; flex-direction: column; }.search-wrap { width: 100%; }.library-actions { justify-content: flex-end; }.track-row { grid-template-columns: 31px minmax(0, 1fr) auto; gap: 8px; min-height: 72px; }.track-row > .track-meta, .track-row > .track-owner { display: none; }.track-main { gap: 10px; }.track-name strong { font-size: 12px; }.track-actions { padding-right: 0; }.player-bar { left: 0; grid-template-columns: 1fr; gap: 7px; min-height: 138px; padding: 9px 15px calc(10px + env(safe-area-inset-bottom)); }.now-playing { min-width: 0; }.player-art { width: 40px; height: 40px; }.favorite-button { width: 31px; height: 31px; }.player-controls { gap: 4px; }.control-row { justify-content: space-between; padding: 0 5px; }.control-button { width: 35px; height: 32px; }.play-button { width: 39px; height: 39px; }.volume-wrap { display: none; }.progress-row { position: absolute; right: 15px; bottom: calc(5px + env(safe-area-inset-bottom)); left: 15px; }.progress-row span { display: none; }.progress-row input { height: 3px; }.swipe-hint { display: block; position: absolute; top: -3px; left: 50%; width: 34px; height: 3px; border-radius: 3px; background: var(--line); transform: translateX(-50%); }.toast-area { bottom: calc(148px + env(safe-area-inset-bottom)); }.modal-layer { align-items: end; padding: 0; }.modal { width: 100%; max-height: min(82vh, calc(var(--app-height) - 22px)); border-right: 0; border-bottom: 0; border-left: 0; border-radius: 22px 22px 0 0; padding: 15px 20px calc(23px + env(safe-area-inset-bottom)); animation-name: sheet-in; }.modal-grabber { display: block; width: 35px; height: 4px; margin: 0 auto 14px; border-radius: 5px; background: var(--line); }.skin-grid { grid-template-columns: repeat(3, 1fr); }.queue-panel { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
    @keyframes sheet-in { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: translateY(0); } }
}
@media (max-width: 550px) { .login-screen { grid-template-columns: minmax(0, 1fr); gap: 31px; width: min(100% - 36px, 390px); padding: 32px 0; }.login-brand h1 { font-size: 67px; }.login-form { padding: 22px; }.secondary-button { display: none; }.library-actions { justify-content: stretch; flex-wrap: wrap; }.library-actions .primary-button { flex: 1; }.library-actions #openYoutube.secondary-button { display: inline-flex; flex: 1; }.genre-filters { margin-left: -1px; }.track-actions .icon-button { width: 29px; }.track-row { grid-template-columns: 25px minmax(0, 1fr) auto; }.track-number { padding-left: 3px; }.cover-art { width: 38px; height: 38px; }.skin-grid { grid-template-columns: repeat(2, 1fr); }.inline-form { align-items: stretch; flex-direction: column; }.inline-form .secondary-button { display: inline-flex; }.empty-state { margin-top: 12vh; } }
.track-main { border: 0; padding: 0; background: transparent; color: inherit; text-align: left; }

@media (max-width: 860px) {
    .track-list { border-top: 0; }
    .track-row { grid-template-columns: 25px minmax(0, 1fr) auto; gap: 8px; min-height: 72px; margin-bottom: 7px; border: 1px solid var(--line); border-radius: 12px; padding: 7px 6px; background: rgba(255,255,255,.035); }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; } }
#openChat { position: relative; }
.chat-badge { position: absolute; top: 1px; right: 1px; display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-size: 9px; font-weight: 800; }
.profile-menu { position: relative; }
.profile-menu .user-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; }
.profile-dropdown { position: absolute; z-index: 22; top: calc(100% + 10px); right: 0; display: flex; flex-direction: column; gap: 2px; width: min(212px, 78vw); padding: 10px; border: 1px solid var(--glass-edge); border-radius: 16px; background: var(--panel-strong); box-shadow: var(--shadow), inset 0 1px 0 var(--glass-sheen); backdrop-filter: blur(28px) saturate(1.4); -webkit-backdrop-filter: blur(28px) saturate(1.4); }
.profile-dropdown.hidden { display: none; }
.profile-dropdown-info { padding: 5px 9px 11px; margin-bottom: 5px; border-bottom: 1px solid var(--line); }
.profile-dropdown-info strong { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.profile-dropdown-info span { color: var(--muted); font-size: 11px; }
.profile-dropdown-item { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; border-radius: 10px; padding: 9px 8px; background: transparent; color: var(--text); font-size: 13px; text-align: left; cursor: pointer; transition: background .15s; }
.profile-dropdown-item:hover { background: rgba(255,255,255,.08); }
.profile-dropdown-item.danger { color: var(--danger); }
.chat-panel { position: fixed; z-index: 19; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(390px, 92vw); padding: calc(30px + env(safe-area-inset-top)) 20px calc(30px + env(safe-area-inset-bottom)); border-left: 1px solid var(--glass-edge); background: var(--panel-strong); box-shadow: inset 1px 0 0 var(--glass-sheen), -12px 0 46px rgba(0,0,0,.22); backdrop-filter: blur(28px) saturate(1.4); -webkit-backdrop-filter: blur(28px) saturate(1.4); transform: translateX(105%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.chat-panel.open { transform: translateX(0); }
.chat-panel .queue-head h2 { margin: 0; font-size: 28px; letter-spacing: -.05em; }
.chat-tabs { display: flex; align-items: center; gap: 6px; margin: 18px 0 12px; }
.chat-tab { border: 1px solid var(--line); border-radius: 20px; padding: 6px 14px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; transition: color .16s, background .16s, border-color .16s; }
.chat-tab.active { border-color: transparent; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.chat-with-select { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 7px 8px; background: var(--panel); color: var(--text); font-size: 12px; }
.chat-messages { flex: 1; display: flex; flex-direction: column; gap: 9px; overflow: auto; padding: 4px 2px 10px; }
.chat-empty { margin-top: 20px; color: var(--muted); font-size: 12px; text-align: center; }
.chat-bubble { display: flex; flex-direction: column; gap: 3px; max-width: 84%; }
.chat-bubble .chat-meta { display: flex; gap: 6px; color: var(--muted); font-size: 10px; }
.chat-bubble .chat-text { padding: 9px 12px; border-radius: 14px; background: rgba(255,255,255,.07); color: var(--text); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.chat-bubble.mine { align-self: flex-end; align-items: flex-end; }
.chat-bubble.mine .chat-text { background: color-mix(in srgb, var(--accent) 78%, var(--panel)); color: var(--accent-ink); }
.chat-form { display: flex; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; border: 1px solid var(--line); border-radius: 20px; padding: 10px 14px; background: var(--panel); color: var(--text); font-size: 13px; }
.chat-form button { flex: 0 0 auto; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 15px; cursor: pointer; }

@media (max-width: 860px) {
    .chat-panel { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
    .library-actions { flex-wrap: wrap; }
}
