/* ==========================================================================
   Liberian Music — Apple Music-style design system
   ========================================================================== */

:root {
	--lm-red: #FA243C;
	--lm-red-hover: #D61E34;
	--bg-primary: #FFFFFF;
	--bg-sidebar: rgba(249, 249, 251, 0.85);
	--bg-elevated: #F2F2F7;
	--bg-glass: rgba(255, 255, 255, 0.78);
	--bg-mini: rgba(246, 246, 249, 0.86);
	--text-primary: #1D1D1F;
	--text-secondary: #86868B;
	--border-subtle: rgba(0, 0, 0, 0.08);
	--shadow-art: 0 10px 30px rgba(0, 0, 0, 0.18);
	--font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
	--safe-b: env(safe-area-inset-bottom, 0px);
	--ease: cubic-bezier(.32, .72, 0, 1);
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg-primary: #1C1C1E;
		--bg-sidebar: rgba(28, 28, 30, 0.85);
		--bg-elevated: #2C2C2E;
		--bg-glass: rgba(28, 28, 30, 0.78);
		--bg-mini: rgba(44, 44, 46, 0.86);
		--text-primary: #F5F5F7;
		--text-secondary: #98989D;
		--border-subtle: rgba(255, 255, 255, 0.10);
		--shadow-art: 0 10px 30px rgba(0, 0, 0, 0.5);
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--bg-primary: #1C1C1E;
	--bg-sidebar: rgba(28, 28, 30, 0.85);
	--bg-elevated: #2C2C2E;
	--bg-glass: rgba(28, 28, 30, 0.78);
	--bg-mini: rgba(44, 44, 46, 0.86);
	--text-primary: #F5F5F7;
	--text-secondary: #98989D;
	--border-subtle: rgba(255, 255, 255, 0.10);
	--shadow-art: 0 10px 30px rgba(0, 0, 0, 0.5);
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.lm-body {
	margin: 0; font-family: var(--font); background: var(--bg-primary); color: var(--text-primary);
	font-size: 14px; line-height: 1.4; -webkit-font-smoothing: antialiased; overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--lm-red); outline-offset: 2px; }

.lm-i { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* progress bar */
.lm-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--lm-red); z-index: 999; transition: width .25s ease, opacity .3s; opacity: 0; }
.lm-progress.is-on { opacity: 1; }

/* ---------- App shell ---------- */
.lm-app { display: grid; grid-template-columns: 256px 1fr; grid-template-rows: minmax(0, 1fr); height: 100vh; height: 100dvh; overflow: hidden; }
.lm-right { display: flex; flex-direction: column; min-width: 0; height: 100%; overflow: hidden; position: relative; }
.lm-main { position: relative; flex: 1; overflow-y: auto; overflow-x: hidden; padding: 24px 28px 96px; outline: none; scroll-behavior: auto; }

/* ---------- Sidebar ---------- */
.lm-sidebar {
	background: var(--bg-sidebar); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
	border-right: 1px solid var(--border-subtle); display: flex; flex-direction: column; overflow-y: auto; padding: 18px 14px 12px; gap: 14px;
}
.lm-sidebar__logo { display: block; padding: 2px 8px 0; color: var(--text-primary); }
.lm-logo { height: 34px; width: auto; display: block; }
.lm-sidebar__logo .lm-logo { height: var(--lm-logo-h, 34px); max-width: 100%; object-fit: contain; object-position: left center; }
.lm-logo--icon { border-radius: 22%; object-fit: cover; }
.lm-lockup { display: inline-flex; align-items: center; gap: calc(var(--lm-logo-h, 34px) * .19); line-height: 1; white-space: nowrap; }
.lm-lockup img { height: var(--lm-logo-h, 34px); width: var(--lm-logo-h, 34px); border-radius: 22%; object-fit: cover; flex: none; }
.lm-lockup__name { font-size: calc(var(--lm-logo-h, 34px) * .47); letter-spacing: -.02em; }
.lm-lockup__name b { font-weight: 700; }
.lm-lockup__name i { font-style: normal; font-weight: 500; opacity: .55; }
.lm-mheader__brand .lm-lockup { --lm-logo-h: 30px; }
.lm-logo--dark { display: none; }
:root[data-theme="dark"] .lm-logo--dark { display: block; }
:root[data-theme="dark"] .lm-logo--light { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .lm-logo--dark { display: block; }
	:root:not([data-theme="light"]) .lm-logo--light { display: none; }
}
.lm-search { position: relative; display: flex; align-items: center; background: rgba(120, 120, 128, 0.12); border-radius: 8px; padding: 0 10px; height: 32px; gap: 6px; color: var(--text-secondary); box-shadow: inset 0 0 0 .5px var(--border-subtle); }
.lm-search .lm-i { width: 15px; height: 15px; }
.lm-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; font: inherit; font-size: 14px; color: var(--text-primary); height: 100%; -webkit-appearance: none; appearance: none; }
.lm-search input::placeholder { color: var(--text-secondary); }
.lm-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.lm-search:focus-within { box-shadow: 0 0 0 3px rgba(250, 36, 60, .28); }
.lm-search__dd {
	position: absolute; left: 0; right: -4px; top: 38px; z-index: 40; background: var(--bg-primary); border: 1px solid var(--border-subtle);
	border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, .22); max-height: 70vh; overflow-y: auto; padding: 6px; min-width: 300px;
}
.lm-sr h4 { margin: 8px 10px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-secondary); font-weight: 600; }
.lm-sr a, .lm-sr button.lm-sr__item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 6px 8px; border-radius: 8px; color: var(--text-primary); }
.lm-sr a:hover, .lm-sr button.lm-sr__item:hover { background: var(--bg-elevated); }
.lm-sr img { width: 36px; height: 36px; border-radius: 5px; object-fit: cover; flex: none; background: var(--bg-elevated); }
.lm-sr .is-round img { border-radius: 50%; }
.lm-sr b { display: block; font-weight: 500; font-size: 13px; line-height: 1.25; }
.lm-sr small { color: var(--text-secondary); font-size: 12px; }
.lm-sr__empty { padding: 14px; color: var(--text-secondary); text-align: center; }

.lm-nav { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.lm-nav__group { display: flex; flex-direction: column; gap: 1px; }
.lm-nav__group h3 { font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--text-secondary); padding: 0 10px 4px; text-transform: none; }
.lm-nav a { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border-radius: 8px; font-size: 14px; font-weight: 500; letter-spacing: -.01em; }
.lm-nav a .lm-i { color: var(--lm-red); width: 19px; height: 19px; }
.lm-nav a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-nav a:hover { background: rgba(120, 120, 128, .1); }
.lm-nav a.is-active { background: rgba(120, 120, 128, .18); }
.lm-sidebar__foot { display: flex; flex-direction: column; gap: 10px; padding: 8px 4px 0; border-top: 1px solid var(--border-subtle); }
.lm-theme-seg { display: flex; background: rgba(120, 120, 128, .14); border-radius: 8px; padding: 2px; }
.lm-theme-seg button { flex: 1; height: 26px; border-radius: 6px; color: var(--text-secondary); display: grid; place-items: center; }
.lm-theme-seg button .lm-i { width: 16px; height: 16px; }
.lm-theme-seg button.is-active { background: var(--bg-primary); color: var(--text-primary); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.lm-account { font-size: 12px; color: var(--text-secondary); padding: 0 6px; display: flex; align-items: center; gap: 4px; }
.lm-account a:hover { color: var(--lm-red); }
.lm-account .lm-i { width: 14px; height: 14px; vertical-align: -2px; }

/* ---------- Top player bar ---------- */
.lm-topbar {
	height: 56px; flex: none; display: grid; grid-template-columns: 1fr minmax(320px, 520px) 1fr; align-items: center; gap: 16px; padding: 0 20px;
	background: var(--bg-glass); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
	border-bottom: 1px solid var(--border-subtle); z-index: 20;
}
.lm-transport { display: flex; align-items: center; gap: 6px; }
.lm-ctl { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--text-primary); transition: opacity .15s, transform .1s, color .15s; }
.lm-ctl:hover { opacity: .65; }
.lm-ctl:active { transform: scale(.92); }
.lm-ctl .lm-i { width: 20px; height: 20px; }
.lm-ctl--sm { width: 30px; height: 30px; color: var(--text-secondary); }
.lm-ctl--sm .lm-i { width: 17px; height: 17px; }
.lm-ctl--play { width: 32px; height: 32px; }
.lm-ctl--play .lm-i { width: 26px; height: 26px; }
.lm-ctl.is-on { color: var(--lm-red); }
.lm-ctl:disabled { opacity: .35; cursor: default; }

/* play/pause + repeat icon swaps */
[data-lm-toggle] .i-pause, [data-lm-repeat] .i-r1 { display: none; }
body.is-playing [data-lm-toggle] .i-play { display: none; }
body.is-playing [data-lm-toggle] .i-pause { display: block; }
[data-lm-repeat][data-mode="2"] .i-r0 { display: none; }
[data-lm-repeat][data-mode="2"] .i-r1 { display: block; }
[data-lm-repeat][data-mode="1"], [data-lm-repeat][data-mode="2"], [data-lm-shuffle].is-on { color: var(--lm-red); }

/* LCD */
.lm-lcd { position: relative; height: 44px; display: flex; align-items: stretch; background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: 6px; overflow: hidden; }
.lm-lcd__art { width: 44px; height: 44px; flex: none; margin: -1px 0 -1px -1px; }
.lm-lcd__art img { width: 100%; height: 100%; object-fit: cover; }
.lm-lcd.is-idle .lm-lcd__art img { padding: 7px; }
.lm-lcd__body { position: relative; flex: 1; min-width: 0; padding: 4px 56px 0; text-align: center; }
.lm-lcd__title, .lm-lcd__sub { overflow: hidden; white-space: nowrap; line-height: 15px; }
.lm-lcd__title { font-size: 12.5px; font-weight: 500; }
.lm-lcd__sub { font-size: 12px; color: var(--text-secondary); }
.lm-lcd__title span, .lm-lcd__sub span { display: inline-block; }
.lm-lcd .is-marquee span { padding-right: 40px; animation: lm-marquee 12s linear infinite; }
@keyframes lm-marquee { 0%, 12% { transform: translateX(0); } 88%, 100% { transform: translateX(-100%); } }
.lm-lcd__elapsed, .lm-lcd__remain { position: absolute; bottom: 3px; font-size: 9.5px; color: var(--text-secondary); font-variant-numeric: tabular-nums; line-height: 1; }
.lm-lcd__elapsed { left: 8px; } .lm-lcd__remain { right: 8px; }
.lm-lcd.is-idle .lm-lcd__elapsed, .lm-lcd.is-idle .lm-lcd__remain { visibility: hidden; }

/* scrubber (shared) */
.lm-scrub { position: relative; cursor: pointer; touch-action: none; }
.lm-scrub i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--text-secondary); pointer-events: none; }
.lm-lcd__scrub { position: absolute; left: 44px; right: 0; bottom: 0; height: 3px; background: rgba(120, 120, 128, .25); transition: height .12s; }
.lm-lcd__scrub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; bottom: -4px; }
.lm-lcd__scrub:hover { height: 5px; }
.lm-lcd__scrub i { background: var(--text-primary); opacity: .75; }

.lm-topbar__right { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.lm-dlbtn {
	position: relative; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
	background: rgba(250, 36, 60, .12); color: var(--lm-red); overflow: hidden; transition: background .15s;
}
.lm-dlbtn .lm-i { width: 15px; height: 15px; position: relative; z-index: 1; }
.lm-dlbtn span { position: relative; z-index: 1; }
.lm-dlbtn:hover:not(:disabled) { background: rgba(250, 36, 60, .2); }
.lm-dlbtn:disabled { opacity: .45; cursor: default; }
.lm-dlbtn::before, .lm-dlpill::before { content: ""; position: absolute; inset: 0; width: var(--p, 0%); background: rgba(250, 36, 60, .25); transition: width .2s linear; }
.i-done { display: none; }
.is-done > .i-done { display: block; }
.is-done > .i-dl, .is-done > .lm-i-download { display: none; }
.is-busy { pointer-events: none; }
.is-busy > .lm-i-download { animation: lm-pulse 1s ease-in-out infinite; }
@keyframes lm-pulse { 50% { opacity: .35; transform: translateY(2px); } }

.lm-vol { display: flex; align-items: center; gap: 6px; color: var(--text-secondary); }
.lm-vol .lm-i { width: 16px; height: 16px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 70px; height: 20px; background: transparent; margin: 0; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--text-secondary) var(--v, 100%), rgba(120, 120, 128, .3) var(--v, 100%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 0; height: 0; }
input[type="range"]:hover::-webkit-slider-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); margin-top: -4px; }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(120, 120, 128, .3); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--text-secondary); }
input[type="range"]::-moz-range-thumb { width: 0; height: 0; border: 0; }

/* Drawer */
.lm-drawer { position: absolute; top: 56px; right: 0; bottom: 0; width: 340px; background: var(--bg-glass); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); border-left: 1px solid var(--border-subtle); transform: translateX(100%); transition: transform .3s var(--ease); z-index: 15; display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,.08); }
.lm-drawer.is-open { transform: none; }
.lm-drawer__tabs { display: flex; gap: 6px; padding: 14px 16px 6px; }
.lm-drawer__tabs button { padding: 5px 12px; border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--text-secondary); }
.lm-drawer__tabs button.is-active { background: var(--bg-elevated); color: var(--text-primary); }
.lm-drawer__body { flex: 1; overflow-y: auto; padding: 6px 10px 90px; }
.lm-lyrics { white-space: pre-wrap; font-size: 16px; font-weight: 600; line-height: 1.6; padding: 14px 20px 90px; }
.lm-q { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 8px; width: 100%; text-align: left; }
.lm-q:hover { background: var(--bg-elevated); }
.lm-q img { width: 40px; height: 40px; border-radius: 5px; object-fit: cover; flex: none; background: var(--bg-elevated); }
.lm-q b { display: block; font-weight: 500; font-size: 13px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-q small { color: var(--text-secondary); font-size: 12px; }
.lm-q > span { min-width: 0; flex: 1; }
.lm-q.is-current b { color: var(--lm-red); }
.lm-q__empty { padding: 24px; text-align: center; color: var(--text-secondary); }

/* ---------- Typography ---------- */
.lm-title { font-size: 34px; font-weight: 700; letter-spacing: -.022em; line-height: 1.12; margin: 0 0 22px; }
.lm-section { margin: 0 0 30px; }
.lm-section__head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.lm-section__head h2 { font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
.lm-section__more { margin-left: auto; }
.lm-rownav { display: inline-flex; gap: 6px; }
.lm-rownav button { width: 26px; height: 26px; border-radius: 50%; background: rgba(120,120,128,.18); display: grid; place-items: center; color: var(--text-secondary); }
.lm-rownav button:hover { color: var(--text-primary); background: rgba(120,120,128,.3); }
.lm-rownav .lm-i { width: 13px; height: 13px; }
.lm-section__more { color: var(--lm-red); font-size: 14px; font-weight: 500; }
.lm-section__more:hover { color: var(--lm-red-hover); }
.lm-empty { padding: 60px 20px; text-align: center; color: var(--text-secondary); max-width: 520px; margin: 0 auto; }
.lm-empty h2 { color: var(--text-primary); margin-bottom: 8px; font-size: 22px; }
.lm-prose { max-width: 720px; color: var(--text-secondary); font-size: 15px; line-height: 1.6; }
.lm-prose--page { color: var(--text-primary); }
.lm-foot-meta { color: var(--text-secondary); font-size: 12px; margin: 18px 0 0; }
.lm-lyrics-page { white-space: pre-wrap; font-size: 17px; line-height: 1.7; font-weight: 500; max-width: 640px; }
.lm-e { display: inline-grid; place-items: center; width: 14px; height: 14px; margin-left: 5px; border-radius: 3px; background: var(--text-secondary); color: var(--bg-primary); font-size: 9.5px; font-weight: 700; vertical-align: 1px; line-height: 1; }
.lm-pager { display: flex; gap: 6px; justify-content: center; margin: 24px 0; }
.lm-pager a, .lm-pager span { padding: 6px 12px; border-radius: 8px; background: var(--bg-elevated); }
.lm-pager .current { background: var(--lm-red); color: #fff; }

/* ---------- Buttons ---------- */
.lm-btn { white-space: nowrap; flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 16px; border-radius: 6px; background: rgba(120, 120, 128, .14); font-size: 14px; font-weight: 600; transition: background .15s; position: relative; overflow: hidden; }
.lm-btn:hover { background: rgba(120, 120, 128, .24); }
.lm-btn .lm-i { width: 16px; height: 16px; }
.lm-btn small { font-weight: 500; opacity: .7; font-size: 11px; }
.lm-btn--primary { background: var(--lm-red); color: #fff; }
.lm-btn--primary:hover { background: var(--lm-red-hover); }
.lm-btn.is-done { color: var(--lm-red); }

/* ---------- Hero carousel ---------- */
.lm-hero { position: relative; margin: 0 0 34px; }
.lm-hero__track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.lm-hero__track::-webkit-scrollbar { display: none; }
.lm-hero__card { position: relative; flex: 0 0 calc((100% - 28px) / 3.12); aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; scroll-snap-align: start; background: var(--bg-elevated); box-shadow: 0 2px 14px rgba(0, 0, 0, .12); }
.lm-hero__link { position: absolute; inset: 0; display: block; color: #fff; }
.lm-hero__link img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.lm-hero__card:hover img { transform: scale(1.03); }
.lm-hero__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .25) 45%, transparent 70%); }
.lm-hero__text { position: absolute; left: 16px; right: 60px; bottom: 14px; display: flex; flex-direction: column; gap: 2px; }
.lm-hero__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: rgba(255, 255, 255, .8); }
.lm-hero__title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.12; text-shadow: 0 1px 8px rgba(0, 0, 0, .3); }
.lm-hero__sub { font-size: 13px; opacity: .85; }
.lm-hero__play { position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; display: grid; place-items: center; transition: transform .15s, background .15s; }
.lm-hero__play:hover { background: rgba(255, 255, 255, .45); transform: scale(1.06); }
.lm-hero__play .lm-i { width: 17px; height: 17px; }
.lm-hero__nav { position: absolute; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%; background: var(--bg-primary); box-shadow: 0 2px 12px rgba(0, 0, 0, .25); display: grid; place-items: center; z-index: 3; opacity: 0; transition: opacity .2s; }
.lm-hero:hover .lm-hero__nav { opacity: 1; }
.lm-hero__nav--prev { left: -14px; } .lm-hero__nav--next { right: -14px; }
.lm-hero__nav .lm-i { width: 16px; height: 16px; }

/* ---------- Cards & grids ---------- */
.lm-grid { --card-w: clamp(138px, 12vw, 176px); display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--card-w), 1fr)); gap: 22px 14px; }
.lm-grid--row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin-right: -28px; padding-right: 28px; scroll-padding-left: 0; }
.lm-grid--row::-webkit-scrollbar { display: none; }
.lm-grid--row > .lm-card { flex: 0 0 var(--card-w); scroll-snap-align: start; }

.lm-card { min-width: 0; }
.lm-card__media { position: relative; border-radius: 9px; overflow: hidden; aspect-ratio: 1; background: var(--bg-elevated); box-shadow: 0 1px 4px rgba(0, 0, 0, .12), 0 0 0 .5px var(--border-subtle); margin-bottom: 8px; }
.lm-card__art, .lm-card__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lm-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .35), transparent 45%); opacity: 0; transition: opacity .2s; pointer-events: none; }
.lm-card:hover .lm-card__media::after { opacity: 1; }
.lm-card__play, .lm-card__dl, .lm-card__more {
	position: absolute; z-index: 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff;
	background: rgba(60, 60, 67, .55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; transform: scale(.9); transition: opacity .18s, transform .18s, background .15s;
}
.lm-card__play { left: 10px; bottom: 10px; }
.lm-card__dl { right: 10px; bottom: 10px; }
.lm-card__more { right: 10px; top: 10px; width: 28px; height: 28px; }
.lm-card__play .lm-i, .lm-card__dl .lm-i { width: 16px; height: 16px; }
.lm-card__more .lm-i { width: 16px; height: 16px; }
.lm-card:hover .lm-card__play, .lm-card:hover .lm-card__dl, .lm-card:hover .lm-card__more,
.lm-card:focus-within .lm-card__play, .lm-card:focus-within .lm-card__dl, .lm-card:focus-within .lm-card__more { opacity: 1; transform: none; }
.lm-card__play:hover, .lm-card__dl:hover, .lm-card__more:hover { background: var(--lm-red); }
.lm-card__title { display: inline; font-size: 13px; font-weight: 500; letter-spacing: -.01em; }
.lm-card__title:hover { text-decoration: underline; }
.lm-card__sub { display: block; font-size: 12.5px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-card .lm-e { margin-left: 4px; }
.lm-card--artist .lm-card__media { border-radius: 50%; width: 84%; margin-left: auto; margin-right: auto; }
.lm-card--artist .lm-card__title, .lm-card--artist .lm-card__sub { display: block; text-align: center; }
.lm-card--genre .lm-card__media { margin-bottom: 6px; }
.lm-card--genre .lm-card__title { font-weight: 600; }
.lm-card__title, .lm-card .lm-e { vertical-align: baseline; }

/* ---------- Detail header ---------- */
.lm-detail { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: end; margin: 4px 0 28px; }
.lm-detail__art { width: 260px; height: 260px; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-art); background: var(--bg-elevated); }
.lm-detail__art.is-round { border-radius: 50%; width: 200px; height: 200px; }
.lm-detail__art img { width: 100%; height: 100%; object-fit: cover; }
.lm-detail__info { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.lm-detail__eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-secondary); }
.lm-detail__title { font-size: 34px; font-weight: 700; letter-spacing: -.022em; line-height: 1.1; }
.lm-detail__artist { font-size: 22px; font-weight: 500; color: var(--lm-red); letter-spacing: -.01em; }
.lm-detail__artist a:hover { color: var(--lm-red-hover); text-decoration: underline; }
.lm-detail__meta { margin: 2px 0 0; color: var(--text-secondary); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; }
.lm-detail__desc { margin: 4px 0 0; color: var(--text-secondary); max-width: 560px; }
.lm-detail__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.lm-detail__actions--solo { margin: 0 0 20px; }

/* ---------- Tracklist ---------- */
.lm-tracklist { display: flex; flex-direction: column; }
.lm-row { display: grid; grid-template-columns: 40px minmax(0, 2.2fr) minmax(0, 1.4fr) 56px 36px 32px; align-items: center; gap: 12px; height: 48px; padding: 0 8px; border-radius: 8px; position: relative; }
.lm-tracklist.has-cover .lm-row { grid-template-columns: 40px 40px minmax(0, 2.2fr) minmax(0, 1.4fr) 56px 36px 32px; }
.lm-tracklist.has-album .lm-row { grid-template-columns: 40px minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1.2fr) 56px 36px 32px; }
.lm-tracklist.has-cover.has-album .lm-row { grid-template-columns: 40px 40px minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1.2fr) 56px 36px 32px; }
.lm-row:nth-child(odd) { background: rgba(120, 120, 128, .06); }
.lm-row:hover { background: rgba(120, 120, 128, .13); }
.lm-row__idx { position: relative; height: 32px; display: grid; place-items: center; color: var(--text-secondary); font-variant-numeric: tabular-nums; font-size: 14px; }
.lm-row__play { position: absolute; inset: 0; display: none; place-items: center; color: var(--text-primary); }
.lm-row__play .lm-i { width: 16px; height: 16px; }
.lm-row__play .i-pause { display: none; }
.lm-row:hover .lm-row__num, .lm-row:hover .lm-eq { display: none; }
.lm-row:hover .lm-row__play { display: grid; }
.lm-row.is-playing .lm-row__play .i-play { display: none; }
.lm-row.is-playing .lm-row__play .i-pause { display: block; }
.lm-row__cover { width: 40px; height: 40px; border-radius: 5px; object-fit: cover; background: var(--bg-elevated); }
.lm-row__title { min-width: 0; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-row__name:hover { text-decoration: underline; }
.lm-row__artist-m { display: none; }
.lm-row__artist, .lm-row__album { color: var(--text-secondary); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-row__artist:hover, .lm-row__album:hover { color: var(--lm-red); }
.lm-row__dur { text-align: right; color: var(--text-secondary); font-variant-numeric: tabular-nums; font-size: 14px; }
.lm-row__dl, .lm-row__more { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--text-secondary); position: relative; }
.lm-row__dl:hover, .lm-row__more:hover { color: var(--lm-red); background: rgba(250, 36, 60, .1); }
.lm-row__dl .lm-i { width: 18px; height: 18px; }
.lm-row__more { opacity: 0; } .lm-row:hover .lm-row__more, .lm-row__more:focus-visible { opacity: 1; }
.lm-row.is-current .lm-row__name, .lm-row.is-current .lm-row__num { color: var(--lm-red); }
.lm-row.is-done .lm-row__dl, .lm-row__dl.is-done { color: var(--lm-red); }

/* equalizer */
.lm-eq { display: none; align-items: flex-end; gap: 2px; height: 14px; }
.lm-eq i { width: 3px; height: 100%; background: var(--lm-red); border-radius: 1px; transform-origin: bottom; transform: scaleY(.3); }
.lm-row.is-current .lm-row__num { display: none; }
.lm-row.is-current .lm-eq { display: flex; }
.lm-row.is-current:hover .lm-eq { display: none; }
.lm-row.is-playing .lm-eq i { animation: lm-eq 0.9s ease-in-out infinite; }
.lm-row.is-playing .lm-eq i:nth-child(2) { animation-delay: -.3s; animation-duration: 1.1s; }
.lm-row.is-playing .lm-eq i:nth-child(3) { animation-delay: -.6s; animation-duration: .8s; }
.lm-row.is-playing .lm-eq i:nth-child(4) { animation-delay: -.15s; animation-duration: 1.2s; }
@keyframes lm-eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

/* library list + search page */
.lm-liblist { display: flex; flex-direction: column; margin: 0 0 24px; }
.lm-liblist a { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--border-subtle); font-size: 17px; }
.lm-liblist a .lm-i:first-child { color: var(--lm-red); width: 22px; height: 22px; }
.lm-liblist a span { flex: 1; }
.lm-liblist a .lm-i:last-child { color: var(--text-secondary); width: 16px; height: 16px; }
.lm-search--page { height: 40px; max-width: 560px; margin-bottom: 24px; }
.lm-search--page input { font-size: 16px; }
#lm-search-results .lm-sr a, #lm-search-results .lm-sr button.lm-sr__item { padding: 8px; }
#lm-search-results .lm-sr h4 { margin-left: 0; font-size: 18px; text-transform: none; letter-spacing: -.01em; color: var(--text-primary); }
#lm-search-results .lm-sr img { width: 48px; height: 48px; }

/* context menu */
.lm-menu { position: fixed; z-index: 200; min-width: 210px; background: var(--bg-glass); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); border: 1px solid var(--border-subtle); border-radius: 10px; box-shadow: 0 12px 40px rgba(0, 0, 0, .25); padding: 5px; }
.lm-menu a, .lm-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border-radius: 6px; font-size: 13.5px; text-align: left; }
.lm-menu a:hover, .lm-menu button:hover { background: var(--lm-red); color: #fff; }
.lm-menu hr { border: 0; border-top: 1px solid var(--border-subtle); margin: 4px 0; }

.lm-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: rgba(30, 30, 32, .94); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 400; max-width: 90vw; text-align: center; }
.lm-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Mobile-only chrome hidden on desktop ---------- */
.lm-mheader, .lm-mpage, .lm-mmenu, .lm-mini, .lm-sheet, .lm-tabbar { display: none; }
body.has-track .lm-main { padding-bottom: 96px; }

/* ==========================================================================
   MOBILE (max-width: 767px)
   ========================================================================== */
@media (max-width: 767px) {
	.lm-app { display: block; height: auto; overflow: visible; }
	.lm-sidebar, .lm-topbar, .lm-drawer, .lm-title--desktop { display: none !important; }
	.lm-right { height: auto; overflow: visible; display: block; }
	.lm-main { overflow: visible; padding: 0 0 calc(54px + var(--safe-b) + 24px); }
	body.has-track .lm-main { padding-bottom: calc(54px + var(--safe-b) + 58px + 30px); }
	.lm-main > [data-lm-page] { padding: 4px 16px 0; }
	.lm-rownav { display: none; }

	/* sticky top bar: logo + name left, theme + menu right */
	.lm-mheader { display: flex; align-items: center; gap: 4px; position: sticky; top: 0; z-index: 30; height: 52px; padding: 0 10px 0 16px; padding-top: env(safe-area-inset-top, 0px); box-sizing: content-box; background: var(--bg-glass); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); border-bottom: 1px solid var(--border-subtle); }
	.lm-mheader__brand { flex: 1; min-width: 0; display: block; color: var(--text-primary); }
	.lm-mheader__brand .lm-logo { height: 30px; width: auto; }
	.lm-mheader .lm-ctl { width: 38px; height: 38px; }
	.lm-mheader .lm-ctl .lm-i { width: 22px; height: 22px; }
	.lm-mheader__theme .i-sun { display: none; }
	:root[data-theme="dark"] .lm-mheader__theme .i-sun { display: block; }
	:root[data-theme="dark"] .lm-mheader__theme .i-moon { display: none; }
	@media (prefers-color-scheme: dark) {
		:root:not([data-theme="light"]) .lm-mheader__theme .i-sun { display: block; }
		:root:not([data-theme="light"]) .lm-mheader__theme .i-moon { display: none; }
	}
	.lm-mmenu { display: block; position: fixed; z-index: 120; top: calc(52px + env(safe-area-inset-top, 0px) + 4px); right: 10px; width: 230px; background: var(--bg-glass); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); border: 1px solid var(--border-subtle); border-radius: 14px; box-shadow: 0 14px 44px rgba(0,0,0,.28); padding: 10px; }
	.lm-mmenu a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; font-size: 15px; }
	.lm-mmenu a:active { background: var(--bg-elevated); }
	.lm-mmenu a .lm-i { color: var(--lm-red); width: 18px; height: 18px; }
	.lm-mmenu h4 { margin: 2px 4px 6px; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--text-secondary); }
	.lm-mmenu hr { border: 0; border-top: 1px solid var(--border-subtle); margin: 8px 0; }

	/* page-name / back section below the bar */
	.lm-mpage { display: flex; align-items: center; min-height: 52px; padding: 8px 16px 0; }
	.lm-mpage[hidden] { display: none; }
	.lm-mpage__title { font-size: 32px; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.lm-mpage__back { display: inline-flex; align-items: center; gap: 2px; margin-left: -8px; color: var(--lm-red); font-size: 17px; }
	.lm-mpage__back .lm-i { width: 24px; height: 24px; }

	/* sections */
	.lm-section { margin-bottom: 26px; }
	.lm-section__head { border-top: 0; margin-bottom: 10px; padding-top: 0; }
	.lm-section__head h2 { padding-top: 0; font-size: 21px; }

	/* horizontal snap carousels: 2.25 cards per viewport */
	.lm-grid--row {
		display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 0 16px; margin: 0 -16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-padding-left: 16px;
	}
	.lm-grid--row::-webkit-scrollbar { display: none; }
	.lm-grid--row > .lm-card, .lm-grid--row > .lm-card:nth-child(n) { display: block; flex: 0 0 calc((100vw - 40px) / 2.25); scroll-snap-align: start; }
	.lm-grid:not(.lm-grid--row) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
	.lm-grid--genres:not(.lm-grid--row) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lm-card__play, .lm-card__dl, .lm-card__more { display: none; }
	.lm-card__media::after { display: none; }

	/* hero */
	.lm-hero { margin-bottom: 26px; }
	.lm-hero__track { gap: 12px; margin: 0 -16px; padding: 0 16px; scroll-padding-left: 16px; }
	.lm-hero__card { flex: 0 0 88%; }
	.lm-hero__nav { display: none; }
	.lm-hero__title { font-size: 20px; } .lm-hero__sub { font-size: 13px; }
	.lm-hero__text { left: 14px; bottom: 14px; right: 60px; }
	.lm-hero__play { width: 36px; height: 36px; right: 12px; bottom: 12px; }

	/* detail header stacks */
	.lm-detail { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 16px; margin-top: 6px; }
	.lm-detail__art { width: min(260px, 70vw); height: min(260px, 70vw); }
	.lm-detail__art.is-round { width: 128px; height: 128px; }
	.lm-card--artist .lm-card__media { width: 78%; }
	.lm-detail__info { align-items: center; }
	.lm-detail__title { font-size: 24px; }
	.lm-detail__artist { font-size: 19px; }
	.lm-detail__actions { justify-content: center; width: 100%; }
	.lm-detail__actions .lm-btn { flex: 1 1 calc(50% - 10px); justify-content: center; height: 42px; }
	.lm-detail__actions .lm-btn[data-lm-download] { flex-basis: 100%; }
	.lm-detail__actions--solo { justify-content: stretch; }

	/* 56px tracklist rows */
	.lm-row, .lm-tracklist.has-cover .lm-row, .lm-tracklist.has-album .lm-row, .lm-tracklist.has-cover.has-album .lm-row { grid-template-columns: 28px minmax(0, 1fr) 36px 32px; height: 56px; gap: 10px; padding: 0 2px; }
	.lm-tracklist.has-cover .lm-row, .lm-tracklist.has-cover.has-album .lm-row { grid-template-columns: 48px minmax(0, 1fr) 36px 32px; }
	.lm-tracklist.has-cover .lm-row__idx { display: none; }
	.lm-row, .lm-row:nth-child(odd), .lm-row:hover { background: transparent; border-bottom: 1px solid var(--border-subtle); border-radius: 0; }
	.lm-row__artist, .lm-row__album, .lm-row__dur { display: none; }
	.lm-row__artist-m { display: block; font-size: 13px; font-weight: 400; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; }
	.lm-row__title { line-height: 1.25; }
	.lm-row__cover { width: 48px; height: 48px; }
	.lm-row__more { opacity: 1; }
	.lm-row__play { display: none !important; }
	.lm-row:hover .lm-row__num { display: inline; }
	.lm-row:hover .lm-eq { display: none; }
	.lm-row.is-current .lm-row__num { display: none !important; }
	.lm-row.is-current .lm-eq { display: flex !important; }

	.lm-search--page { max-width: none; }

	/* Mini player */
	.lm-mini {
		display: flex; align-items: center; gap: 4px; position: fixed; z-index: 60; left: 0; right: 0; margin: 0 8px; height: 58px; padding: 0 6px 0 8px;
		bottom: calc(54px + env(safe-area-inset-bottom) + 8px); border-radius: 12px; background: var(--bg-mini);
		-webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); box-shadow: 0 6px 24px rgba(0, 0, 0, .22), 0 0 0 .5px var(--border-subtle);
		transition: transform .35s var(--ease), opacity .2s;
	}
	.lm-mini.is-empty { transform: translateY(140%); opacity: 0; pointer-events: none; }
	.lm-mini__art { width: 42px; height: 42px; border-radius: 8px; overflow: hidden; flex: none; margin-right: 6px; background: var(--bg-elevated); }
	.lm-mini__art img { width: 100%; height: 100%; object-fit: cover; }
	.lm-mini__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
	.lm-mini__text strong { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.lm-mini__text span { font-size: 12px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.lm-mini .lm-ctl { width: 38px; height: 38px; }
	.lm-mini .lm-ctl .lm-i { width: 21px; height: 21px; }
	.lm-mini [data-lm-dl-current] { color: var(--lm-red); }
	.lm-mini [data-lm-dl-current] .lm-i { width: 20px; height: 20px; }
	.lm-mini [data-lm-toggle] .lm-i { width: 24px; height: 24px; }

	/* Tab bar */
	.lm-tabbar { display: flex; position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; height: calc(54px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--bg-glass); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); border-top: 1px solid var(--border-subtle); }
	.lm-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--text-secondary); font-size: 10px; font-weight: 500; }
	.lm-tabbar a .lm-i { width: 24px; height: 24px; }
	.lm-tabbar a.is-active { color: var(--lm-red); }

	.lm-toast { bottom: calc(54px + var(--safe-b) + 80px); }

	/* Now Playing sheet */
	.lm-sheet {
		display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 100; height: 100vh; height: 100dvh; transform: translateY(100%); visibility: hidden;
		transition: transform .42s var(--ease), visibility 0s .42s; background: var(--amb, linear-gradient(180deg, #5a1b24, #1c1c1e)); color: #fff; overflow: hidden;
	}
	.lm-sheet.is-open { transform: none; visibility: visible; transition: transform .42s var(--ease), visibility 0s; }
	.lm-sheet.is-dragging { transition: none; }
	.lm-sheet::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .45)); pointer-events: none; }
	.lm-sheet > * { position: relative; }
	.lm-sheet__top { flex: none; height: 44px; padding-top: env(safe-area-inset-top, 0px); display: grid; place-items: center; touch-action: none; }
	.lm-sheet__handle { width: 40px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .45); }
	.lm-sheet__close { position: absolute; right: 12px; top: calc(env(safe-area-inset-top, 0px) + 4px); width: 36px; height: 36px; display: grid; place-items: center; color: rgba(255, 255, 255, .85); }
	.lm-sheet__scroll { flex: 1; overflow-y: auto; padding: 8px 28px calc(24px + var(--safe-b)); -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; align-items: stretch; }
	.lm-sheet__art { width: min(340px, calc(100vw - 56px)); aspect-ratio: 1; margin: 6px auto 22px; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 50px rgba(0, 0, 0, .5); transform: scale(.82); transition: transform .5s var(--ease); background: rgba(255, 255, 255, .1); flex: none; max-height: 340px; }
	body.is-playing .lm-sheet__art { transform: scale(1); }
	.lm-sheet__art img { width: 100%; height: 100%; object-fit: cover; }
	.lm-sheet__meta { margin-bottom: 14px; }
	.lm-sheet__meta h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
	.lm-sheet__meta p { margin: 2px 0 0; font-size: 19px; opacity: .72; }
	.lm-dlpill { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 14px; align-self: stretch; min-height: 52px; padding: 6px 18px; border-radius: 999px; background: rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; font-weight: 600; font-size: 15px; margin-bottom: 20px; flex: none; }
	.lm-dlpill > * { position: relative; z-index: 1; }
	.lm-dlpill::before { background: rgba(255, 255, 255, .3); }
	.lm-dlpill:disabled { opacity: .5; }
	.lm-dlpill__act { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; flex: none; }
	.lm-dlpill__act .lm-i { width: 18px; height: 18px; flex: none; }
	.lm-dlpill__count { display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.1; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .35); min-width: 0; }
	.lm-dlpill__count b { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
	.lm-dlpill__count small { font-size: 11px; font-weight: 500; opacity: .8; white-space: nowrap; }
	.lm-sheet__scrubwrap { margin-bottom: 8px; flex: none; }
	.lm-sheet__scrub { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .28); overflow: hidden; margin: 10px 0 6px; }
	.lm-sheet__scrub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; bottom: -14px; }
	.lm-sheet__scrub i { background: rgba(255, 255, 255, .9); }
	.lm-sheet__times { display: flex; justify-content: space-between; font-size: 12px; opacity: .65; font-variant-numeric: tabular-nums; }
	.lm-sheet__times span { position: static; color: inherit; font-size: inherit; }
	.lm-sheet .lm-lcd__elapsed, .lm-sheet .lm-lcd__remain { position: static; }
	.lm-sheet__controls { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 14px; flex: none; }
	.lm-sheet .lm-ctl { color: #fff; }
	.lm-sheet .lm-ctl--sm { color: rgba(255, 255, 255, .6); width: 40px; height: 40px; }
	.lm-sheet .lm-ctl--sm .lm-i { width: 22px; height: 22px; }
	.lm-sheet .lm-ctl--lg { width: 56px; height: 56px; } .lm-sheet .lm-ctl--lg .lm-i { width: 34px; height: 34px; }
	.lm-sheet .lm-ctl--xl { width: 72px; height: 72px; } .lm-sheet .lm-ctl--xl .lm-i { width: 54px; height: 54px; }
	.lm-sheet [data-lm-shuffle].is-on, .lm-sheet [data-lm-repeat][data-mode="1"], .lm-sheet [data-lm-repeat][data-mode="2"] { color: #fff; background: rgba(255, 255, 255, .22); }
	.lm-vol--sheet { color: rgba(255, 255, 255, .7); gap: 10px; margin-bottom: 18px; flex: none; }
	.lm-vol--sheet input[type="range"] { flex: 1; width: auto; }
	.lm-vol--sheet input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(to right, rgba(255, 255, 255, .85) var(--v, 100%), rgba(255, 255, 255, .28) var(--v, 100%)); }
	.lm-sheet__queue { border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 14px; }
	.lm-sheet__queue h3 { font-size: 17px; margin-bottom: 8px; }
	.lm-sheet .lm-q:hover { background: rgba(255, 255, 255, .1); }
	.lm-sheet .lm-q small { color: rgba(255, 255, 255, .6); }
	.lm-sheet .lm-q.is-current b { color: #fff; text-decoration: underline; }
	.lm-sheet .lm-q__empty { color: rgba(255, 255, 255, .6); }
	body.sheet-open { overflow: hidden; }
}

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

/* ==========================================================================
   Sign-in, artist registration & artist account (Apple settings style)
   ========================================================================== */

.lm-signin-btn { display: flex; align-items: center; justify-content: center; gap: 7px; height: 36px; border-radius: 999px; background: var(--text-primary); color: var(--bg-primary); font-weight: 600; font-size: 14px; }
.lm-signin-btn:hover { opacity: .85; }
.lm-signin-btn .lm-i { width: 15px; height: 15px; }
.lm-account { flex-direction: column; align-items: stretch; gap: 8px; padding: 0; }
.lm-account__link { text-align: center; font-size: 13px; color: var(--text-secondary); }
.lm-account__link:hover { color: var(--lm-red); }

.lm-btn--lg { height: 44px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.lm-btn--sm { height: 28px; padding: 0 12px; font-size: 13px; border-radius: 999px; }
.lm-btn--danger { color: var(--lm-red); }
.lm-btn.is-busy { opacity: .85; }
.lm-btn--primary.is-busy::before { content: ""; position: absolute; inset: 0; width: var(--p, 0%); background: rgba(255,255,255,.28); transition: width .2s linear; }
.lm-btn--primary.is-busy > * { position: relative; }
.lm-btn:disabled { cursor: default; }

/* auth card */
.lm-auth { max-width: 420px; margin: 4vh auto 40px; text-align: center; }
.lm-auth__logo { width: 72px; height: 72px; margin: 0 auto 18px; filter: drop-shadow(0 8px 20px rgba(250,36,60,.35)); }
.lm-auth__logo .lm-logo { width: 72px; height: 72px; }
.lm-auth h1 { font-size: 28px; font-weight: 700; letter-spacing: -.022em; margin-bottom: 8px; }
.lm-auth__sub { color: var(--text-secondary); margin: 0 0 24px; font-size: 15px; }
.lm-auth__links { margin: 14px 0 0; font-size: 14px; }
.lm-auth__links a, .lm-auth__alt a, .lm-note a { color: var(--lm-red); }
.lm-auth__alt { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border-subtle); color: var(--text-secondary); font-size: 14px; }
.lm-auth .lm-form { text-align: left; }

/* join page */
.lm-join { max-width: 640px; margin: 2vh auto 60px; }
.lm-join__hero { text-align: center; margin-bottom: 28px; }
.lm-join__hero h1 { font-size: 34px; font-weight: 700; letter-spacing: -.025em; line-height: 1.12; margin-bottom: 10px; }
.lm-join__hero p { color: var(--text-secondary); font-size: 16px; max-width: 520px; margin: 0 auto; }
.lm-join .lm-auth__alt { text-align: center; }
.lm-hp { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.lm-success { text-align: center; padding: 40px 20px; background: var(--bg-elevated); border-radius: 18px; }
.lm-success__tick { width: 64px; height: 64px; border-radius: 50%; background: var(--lm-red); color: #fff; display: grid; place-items: center; margin: 0 auto 16px; }
.lm-success__tick .lm-i { width: 32px; height: 32px; }
.lm-success h2 { font-size: 24px; margin-bottom: 8px; }
.lm-success p { color: var(--text-secondary); max-width: 440px; margin: 0 auto 20px; }

/* grouped form (iOS settings look) */
.lm-form { display: block; position: relative; }
.lm-fgroup { margin: 0 0 22px; }
.lm-fgroup h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-secondary); margin: 0 0 8px 14px; }
.lm-fgroup__lead { margin: -4px 0 10px 14px; color: var(--text-secondary); font-size: 13px; }
.lm-fgroup__foot { margin: 8px 14px 0; font-size: 13px; color: var(--text-secondary); }
.lm-group { background: var(--bg-elevated); border-radius: 12px; overflow: hidden; }
.lm-frow { position: relative; display: grid; grid-template-columns: 38% 1fr; align-items: center; gap: 4px 12px; min-height: 46px; padding: 8px 14px; border-top: 1px solid var(--border-subtle); cursor: text; }
.lm-frow:first-child { border-top: 0; }
.lm-group > .lm-drop, .lm-group > .lm-dropwrap { border-top: 0; }
.lm-frow__label { font-size: 15px; color: var(--text-primary); }
.lm-frow__label i { color: var(--lm-red); font-style: normal; margin-left: 2px; }
.lm-frow input[type="text"], .lm-frow input[type="email"], .lm-frow input[type="tel"], .lm-frow input[type="password"], .lm-frow input[type="url"], .lm-frow input[type="number"], .lm-frow textarea, .lm-frow select {
	width: 100%; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--text-primary); outline: 0; padding: 4px 0; -webkit-appearance: none; appearance: none; min-width: 0;
}
.lm-frow input::placeholder, .lm-frow textarea::placeholder { color: var(--text-secondary); opacity: .7; }
.lm-frow textarea { resize: vertical; line-height: 1.45; }
.lm-frow--stack { grid-template-columns: 1fr; }
.lm-frow:focus-within { background: rgba(250, 36, 60, .06); }
.lm-frow__hint { grid-column: 2; font-size: 12px; color: var(--text-secondary); }
.lm-frow--stack .lm-frow__hint, .lm-frow--stack .lm-ferr { grid-column: 1; }
.lm-ferr { grid-column: 1 / -1; font-size: 12.5px; color: var(--lm-red); margin: 0; }
.lm-ferr:empty { display: none; }
.lm-frow.has-error { background: rgba(250, 36, 60, .07); }
.lm-frow.is-locked { cursor: default; }
.lm-frow.is-locked input { color: var(--text-secondary); }
.lm-lock { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--text-secondary); }
.lm-lock .lm-i { width: 15px; height: 15px; }
.lm-frow.is-locked input { padding-right: 24px; }
.lm-select { position: relative; display: block; }
.lm-select .lm-i { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--text-secondary); pointer-events: none; }
.lm-select select { padding-right: 20px; cursor: pointer; }
.lm-select select option { color: #1D1D1F; }

/* switches + radios + checks */
.lm-frow--switch, .lm-frow--radio { grid-template-columns: 1fr auto; cursor: pointer; }
.lm-frow--switch small { display: block; color: var(--text-secondary); font-size: 12px; }
.lm-switch { -webkit-appearance: none; appearance: none; width: 51px; height: 31px; border-radius: 999px; background: rgba(120,120,128,.32); position: relative; cursor: pointer; transition: background .2s; flex: none; margin: 0; }
.lm-switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.3); transition: transform .2s var(--ease); }
.lm-switch:checked { background: #34C759; }
.lm-switch:checked::after { transform: translateX(20px); }
.lm-radio { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(120,120,128,.5); margin: 0; position: relative; cursor: pointer; flex: none; }
.lm-radio:checked { border-color: var(--lm-red); background: radial-gradient(circle, var(--lm-red) 0 5px, transparent 6px); }
.lm-ferr--group { padding: 6px 14px; }
.lm-checkwrap { margin: 0 0 12px; }
.lm-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14.5px; line-height: 1.4; }
.lm-check { position: relative; }
.lm-check input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lm-check__box { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid rgba(120,120,128,.5); display: grid; place-items: center; color: transparent; transition: all .15s; margin-top: 1px; }
.lm-check__box .lm-i { width: 15px; height: 15px; }
.lm-check input:checked + .lm-check__box { background: var(--lm-red); border-color: var(--lm-red); color: #fff; }
.lm-check input:focus-visible + .lm-check__box { outline: 2px solid var(--lm-red); outline-offset: 2px; }
.lm-checkwrap.has-error .lm-check__box { border-color: var(--lm-red); }
.lm-checkwrap .lm-ferr { margin: 4px 0 0 36px; }
.lm-fgroup--consent { background: var(--bg-elevated); border-radius: 12px; padding: 16px 16px 6px; }
.lm-fgroup--consent h3 { margin-left: 0; }

/* genre chips */
.lm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lm-chip { position: relative; }
.lm-chip input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lm-chip span { display: inline-block; padding: 7px 16px; border-radius: 999px; background: var(--bg-elevated); font-size: 14px; font-weight: 500; cursor: pointer; transition: background .15s, color .15s; border: 1px solid var(--border-subtle); }
.lm-chip input:checked + span { background: var(--lm-red); color: #fff; border-color: var(--lm-red); }
.lm-chip input:focus-visible + span { outline: 2px solid var(--lm-red); outline-offset: 2px; }

/* file drop */
.lm-drop { position: relative; padding: 16px; cursor: pointer; transition: background .15s; }
.lm-drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.lm-drop__ui { display: flex; align-items: center; gap: 14px; pointer-events: none; }
.lm-drop__icon { width: 56px; height: 56px; border-radius: 12px; background: rgba(250,36,60,.12); color: var(--lm-red); display: grid; place-items: center; flex: none; }
.lm-drop__icon .lm-i { width: 26px; height: 26px; }
.lm-drop__preview { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex: none; }
.lm-drop__preview:not([hidden]) + .lm-drop__icon { display: none; }
.lm-drop__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lm-drop__text b { font-size: 15px; font-weight: 600; }
.lm-drop__text small { color: var(--text-secondary); font-size: 12.5px; }
.lm-drop__file { font-style: normal; font-size: 12.5px; color: var(--lm-red); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-drop.is-over { background: rgba(250,36,60,.1); outline: 2px dashed var(--lm-red); outline-offset: -6px; }
.lm-dropwrap .lm-ferr { padding: 0 16px 10px; }
.lm-dropwrap.has-error { background: rgba(250,36,60,.07); }
.lm-current { margin: 0; padding: 0 16px 12px; font-size: 12.5px; color: var(--text-secondary); }

.lm-form__actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.lm-auth .lm-form__actions { margin-top: 18px; }
.lm-auth .lm-form__actions .lm-btn { width: 100%; justify-content: center; }
.lm-form__msg { min-height: 20px; margin: 12px 0 0; font-size: 14px; }
.lm-form__msg.is-error { color: var(--lm-red); }
.lm-auth .lm-frow--switch { margin-top: 12px; background: transparent; padding-left: 4px; padding-right: 4px; border: 0; }

/* account */
.lm-acct { max-width: 640px; margin: 0 auto; }
.lm-acct__head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; margin: 0 0 22px; }
.lm-avatar { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg,#FA243C,#C8102E); color: #fff; display: grid; place-items: center; font-size: 28px; font-weight: 700; flex: none; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.lm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lm-acct__who { min-width: 0; }
.lm-acct__who h1 { font-size: 28px; font-weight: 700; letter-spacing: -.022em; display: flex; align-items: center; justify-content: center; gap: 8px; line-height: 1.15; }
.lm-acct__who p { margin: 2px 0 0; color: var(--text-secondary); }
.lm-acct__actions { display: flex; justify-content: center; gap: 8px; flex-wrap: nowrap; }
.lm-verified { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--lm-red); color: #fff; vertical-align: 3px; flex: none; }
.lm-verified .lm-i { width: 12px; height: 12px; }
.lm-detail__title .lm-verified { width: 24px; height: 24px; vertical-align: 6px; margin-left: 4px; }
.lm-tabs2 { display: flex; gap: 4px; padding: 3px; background: var(--bg-elevated); border-radius: 10px; margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; width: 100%; }
.lm-tabs2::-webkit-scrollbar { display: none; }
.lm-tabs2 a { flex: 1; text-align: center; padding: 7px 8px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text-secondary); white-space: nowrap; }
.lm-tabs2 a:hover { color: var(--text-primary); }
.lm-tabs2 a.is-active { background: var(--bg-primary); color: var(--text-primary); box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.lm-acct__bar { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; gap: 10px; }
.lm-acct__bar h2 { font-size: 22px; font-weight: 700; letter-spacing: -.015em; }
.lm-acct__body .lm-form { max-width: 640px; }
.lm-stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.lm-stats3 > div { background: var(--bg-elevated); border-radius: 14px; padding: 16px 18px; }
.lm-stats3 b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.lm-stats3 span { color: var(--text-secondary); font-size: 13px; }
.lm-note { background: rgba(255,159,10,.14); border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 0 0 18px; }
.lm-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 28px; }
.lm-quick__card { background: var(--bg-elevated); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 4px; transition: transform .15s, background .15s; }
.lm-quick__card:hover { transform: translateY(-2px); background: rgba(120,120,128,.18); }
.lm-quick__card .lm-i { color: var(--lm-red); width: 26px; height: 26px; margin-bottom: 6px; }
.lm-quick__card b { font-size: 15px; }
.lm-quick__card span { color: var(--text-secondary); font-size: 13px; }
.lm-list { background: var(--bg-elevated); border-radius: 12px; overflow: hidden; }
.lm-list__row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--border-subtle); }
.lm-list__row:first-child { border-top: 0; }
.lm-list__row img { width: 48px; height: 48px; border-radius: 7px; object-fit: cover; flex: none; background: var(--bg-primary); }
.lm-list__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lm-list__main b { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.lm-list__main a:hover b { text-decoration: underline; }
.lm-list__main small { color: var(--text-secondary); font-size: 12.5px; }
.lm-chipstat { font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; flex: none; }
.lm-chipstat--ok { background: rgba(52,199,89,.16); color: #1f9d43; }
.lm-chipstat--warn { background: rgba(255,159,10,.18); color: #c67700; }
.lm-chipstat--off { background: rgba(120,120,128,.2); color: var(--text-secondary); }
.lm-empty--sm { padding: 30px 10px; }
.lm-linkrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; }
.lm-linkrow a { padding: 4px 12px; border-radius: 999px; background: rgba(120,120,128,.16); font-size: 13px; font-weight: 500; }
.lm-linkrow a:hover { color: var(--lm-red); }

@media (max-width: 767px) {
	.lm-signin-btn { display: none; }
	.lm-auth { margin-top: 0; }
	.lm-auth h1 { font-size: 26px; }
	.lm-join__hero h1 { font-size: 26px; }
	.lm-frow { grid-template-columns: 1fr; gap: 0; padding: 8px 14px 10px; }
	.lm-frow__label { font-size: 12.5px; color: var(--text-secondary); }
	.lm-frow__hint, .lm-frow .lm-ferr { grid-column: 1; }
	.lm-frow--switch, .lm-frow--radio { grid-template-columns: 1fr auto; }
	.lm-frow--switch .lm-frow__label, .lm-frow--radio .lm-frow__label { font-size: 15px; color: var(--text-primary); }
	.lm-frow input, .lm-frow textarea, .lm-frow select { font-size: 16px !important; }
	.lm-lock { top: auto; bottom: 14px; transform: none; }
	.lm-avatar { width: 56px; height: 56px; font-size: 22px; }
	.lm-acct__head { gap: 8px; }
	.lm-acct__who h1 { font-size: 22px; }
	.lm-acct__actions { width: 100%; }
	.lm-tabs2 a { padding: 7px 2px; font-size: 13px; }
	.lm-acct__actions .lm-btn { flex: 1; justify-content: center; }
	.lm-stats3 { gap: 8px; } .lm-stats3 > div { padding: 12px; } .lm-stats3 b { font-size: 24px; }
	.lm-quick { grid-template-columns: 1fr; }
	.lm-list__row { flex-wrap: wrap; }
	.lm-list__main { flex-basis: calc(100% - 70px); }
	.lm-list__row .lm-chipstat { margin-left: 60px; }
	.lm-tabs2 { width: 100%; }
	.lm-acct__bar h2 { font-size: 20px; }
	.lm-form__actions .lm-btn { flex: 1; justify-content: center; }
}
