[hidden] { display: none !important; }
:root {
  --bg: #121212; --card: #181818; --card-h: #282828; --card2: #2a2a2a; --line: #2a2a2a;
  --green: #1ed760; --green-h: #3be477; --gray: #b3b3b3; --white: #fff;
  --accent: #404040; --bar: 88px; --nav: 232px; --track: #4d4d4d;
}
* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: #4a4a4a transparent; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #4a4a4a; border-radius: 6px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #727272; background-clip: padding-box; border: 3px solid transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--white);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px; line-height: 1.35; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
input { font: inherit; }
img { display: block; }
.ic { display: block; flex-shrink: 0; pointer-events: none; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(30,215,96,.35); }
#app { display: flex; height: 100vh; height: 100dvh; }
/* Room for the player bar only while something is loaded; otherwise the page fills the window. */
body.has-bar #app { padding-bottom: var(--bar); }

/* ---------- navigation */
#nav { width: var(--nav); background: #000; padding: 20px 12px; display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
#nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -.02em; padding: 4px 12px 22px; }
#nav .brand img { width: 32px; height: 32px; }
#nav button { display: flex; justify-content: flex-start; align-items: center; gap: 16px; padding: 11px 12px; border-radius: 8px; color: var(--gray); font-weight: 700; text-align: left; transition: color .15s, background .15s; }
#nav button .i { width: 24px; height: 24px; display: grid; place-items: center; }
#nav button:hover { color: var(--white); background: rgba(255,255,255,.06); }
#nav button.active { color: var(--white); background: #1f1f1f; }
#nav button.active .ic { stroke-width: 2.4; }
#nav .bottom { margin-top: auto; }
#view { flex: 1; overflow-y: auto; position: relative; background: linear-gradient(#161616, var(--bg) 320px); }
.page { animation: in .28s ease; min-height: 100%; padding-bottom: 40px; }
@keyframes in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- typography */
h1.title { font-size: 32px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 16px; }
h2 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin: 32px 28px 14px; }
.sub { color: var(--gray); font-size: 13px; }
.ph, .page > h1.title:first-child { position: sticky; top: 0; z-index: 5; padding: 20px 28px 12px; margin: 0;
  background: rgba(18,18,18,.82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.ph { display: flex; align-items: center; gap: 6px; }
.ph h1 { flex: 1; margin: 0; }

/* ---------- home */
.hero { padding: 28px 28px 16px; background: linear-gradient(var(--accent), var(--bg)); transition: background .6s; }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.quick > div { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.1); border-radius: 6px; overflow: hidden; height: 64px; font-weight: 700; padding-right: 12px; transition: background .2s; cursor: pointer; }
.quick > div:hover { background: rgba(255,255,255,.2); }
.quick > div span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.quick img, .quick .skel { width: 64px; height: 64px; object-fit: cover; flex-shrink: 0; border-radius: 0; }
.row-scroll { display: flex; gap: 6px; overflow-x: auto; padding: 0 22px 8px; scrollbar-width: none; }
.row-scroll::-webkit-scrollbar { display: none; }
.card { width: 168px; flex-shrink: 0; padding: 12px; border-radius: 8px; background: var(--card); transition: background .25s; cursor: pointer; }
.card:hover { background: var(--card-h); }
.cw { position: relative; }
.card img, .cw > .skel { width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; border-radius: 6px; background: var(--card2); box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.cplay { position: absolute; right: 8px; bottom: 8px; width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #000; display: grid; place-items: center;
  box-shadow: 0 8px 8px rgba(0,0,0,.3); opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s, background .15s; }
.cplay .ic { margin-left: 2px; }
.cplay:hover { background: var(--green-h); transform: scale(1.06); }
@media (hover: none) { .cplay { display: none; } }
.card:hover .cplay { opacity: 1; transform: none; }
.card:hover .cplay:hover { transform: scale(1.06); }
.card .t { font-weight: 700; margin-top: 12px; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .a { color: var(--gray); font-size: 13px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.press { transition: transform .12s, filter .12s, background .2s; }
.press:active, .press.pressed { transform: scale(.97); filter: brightness(.85); }
.skel { background: var(--card2); border-radius: 6px; position: relative; overflow: hidden; }
.skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent); animation: sh 1.2s infinite; }
@keyframes sh { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.resume { display: flex; align-items: center; gap: 14px; margin: 16px 28px 0; padding: 12px 16px 12px 12px; background: var(--card-h); border-radius: 10px; max-width: 640px; cursor: pointer; }
.resume:hover { background: #333; }
.resume img, .resume .skel { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; }
.resume .g { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: 1px; }
.rplay { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #000; display: grid; place-items: center; flex-shrink: 0; }
.rplay .ic { margin-left: 2px; }

/* ---------- track rows */
.list { padding: 0 16px; }
.track { display: flex; align-items: center; gap: 14px; padding: 8px 12px; border-radius: 6px; cursor: pointer; transition: background .15s, transform .12s; }
.track:hover { background: rgba(255,255,255,.08); }
.track:active { transform: scale(.99); background: rgba(255,255,255,.12); }
.track img, .track .skel { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; background: var(--card2); flex-shrink: 0; }
.track .meta { flex: 1; min-width: 0; }
.track .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; display: flex; align-items: center; }
.track .a { color: var(--gray); font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track.current .t { color: var(--green); }
.track .more, .track .handle { color: var(--gray); width: 36px; height: 36px; border-radius: 50%; opacity: .0; transition: opacity .15s, color .15s, background .15s; }
.track .handle { cursor: grab; display: inline-flex; align-items: center; justify-content: center; }
.track:hover .more, .track:hover .handle, .track .more:focus-visible { opacity: 1; }
.track .more:hover, .track .handle:hover { color: var(--white); background: rgba(255,255,255,.1); }
@media (hover: none) { .track .more, .track .handle { opacity: .8; } }
.track.drag { opacity: .4; }
.track.over, .lrow.over { box-shadow: inset 0 2px 0 var(--green); }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; margin-right: 8px; }
.eq i { width: 3px; border-radius: 1px; background: var(--green); animation: eq .5s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-duration: .35s; } .eq i:nth-child(3) { animation-duration: .6s; }
.paused .eq i { animation-play-state: paused; height: 30%; }
@keyframes eq { from { height: 25%; } to { height: 100%; } }
.prog { height: 4px; background: var(--track); border-radius: 2px; margin-top: 8px; width: 60%; overflow: hidden; }
.prog > div { height: 100%; background: #fff; border-radius: 2px; }
.track:hover .prog > div { background: var(--green); }

/* ---------- search */
.searchbox { margin: 8px 28px 0; display: flex; align-items: center; gap: 12px; background: #242424; color: var(--white); border-radius: 500px; padding: 0 18px; height: 48px; max-width: 520px; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.searchbox:hover { background: #2a2a2a; }
.searchbox .ic { color: var(--gray); }
.searchbox input { flex: 1; border: 0; outline: 0; background: none; color: var(--white); font-size: 16px; height: 100%; min-width: 0; }
.searchbox input::placeholder { color: #8a8a8a; }
.searchbox:focus-within { border-color: #fff; background: #2a2a2a; outline: 0 !important; }
.sugg { margin: 8px 28px 0; max-width: 520px; }
.sugg div { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 6px; color: var(--white); cursor: pointer; }
.sugg div .ic { color: var(--gray); }
.sugg div:hover { background: var(--card-h); }
.genres { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; padding: 0 28px; }
.genres div { height: 100px; border-radius: 8px; padding: 14px 16px; font-weight: 800; font-size: 20px; letter-spacing: -.01em; cursor: pointer; position: relative; overflow: hidden; box-shadow: inset 0 -40px 60px rgba(0,0,0,.18); }
.genres div:hover { filter: brightness(1.1); }

/* ---------- library and detail pages */
.lrow { display: flex; align-items: center; gap: 14px; padding: 8px 28px; cursor: pointer; transition: background .15s; }
.lrow:hover { background: rgba(255,255,255,.07); }
.lrow .cover { width: 64px; height: 64px; border-radius: 4px; display: grid; place-items: center; color: var(--gray); background: var(--card2); object-fit: cover; flex-shrink: 0; }
.lrow .cover[style*="gradient"] { color: #fff; }
.lrow .t { font-weight: 600; }
.head { position: relative; display: flex; align-items: flex-end; gap: 24px; padding: 72px 28px 24px; background: linear-gradient(var(--accent), var(--bg)); }
.head .cover { width: 192px; height: 192px; border-radius: 6px; box-shadow: 0 8px 40px rgba(0,0,0,.6); object-fit: cover; display: grid; place-items: center; color: var(--gray); background: var(--card2); flex-shrink: 0; }
.head .cover[style*="gradient"] { color: #fff; }
.head h1 { font-size: 56px; margin: 6px 0; font-weight: 900; letter-spacing: -.03em; line-height: 1.05; }
.head .sub:first-child { font-weight: 700; color: var(--white); font-size: 13px; }
.back { position: absolute; top: 16px; left: 16px; width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.5); color: var(--white); transition: background .15s, transform .12s; }
.back:hover { background: rgba(0,0,0,.75); transform: scale(1.06); }
.actions { display: flex; align-items: center; gap: 20px; padding: 16px 28px; }
.bigplay { width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #000; transition: transform .12s, background .15s; }
.bigplay .ic { margin-left: 2px; }
.bigplay:hover { transform: scale(1.06); background: var(--green-h); }
.bigplay:active { transform: scale(.96); }
.ghost { color: var(--gray); width: 40px; height: 40px; border-radius: 50%; transition: color .15s, background .15s; }
.ghost:hover { color: var(--white); background: rgba(255,255,255,.08); }
.pill { border: 1px solid #727272; border-radius: 500px; padding: 7px 16px; font-weight: 700; font-size: 14px; transition: border-color .15s, transform .12s, color .15s; }
.pill:hover { border-color: #fff; transform: scale(1.03); }
.pill.on { border-color: var(--green); color: var(--green); }
.chips { display: flex; gap: 8px; padding: 4px 28px 14px; }
.chips button { background: var(--card-h); border-radius: 500px; padding: 7px 14px; font-size: 14px; font-weight: 500; transition: background .15s; }
.chips button:hover { background: #3a3a3a; }
.chips button.on { background: var(--white); color: #000; }
.impbar { margin: 0 28px 12px; padding: 12px 16px; background: var(--card-h); border-radius: 8px; font-size: 14px; }
.impbar .prog { margin-top: 10px; width: 100%; }
.impbar .prog > div { background: var(--green); }
.empty { color: var(--gray); padding: 16px 28px; margin: 0; }
.empty.big { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 56px 28px; }
.empty.big .ic { color: #6a6a6a; margin-bottom: 6px; }
.empty.big b { color: var(--white); font-size: 18px; }
.empty.big span { font-size: 14px; }

/* ---------- sliders (Spotify style: --p is the played part, set from JS) */
input[type=range] { -webkit-appearance: none; appearance: none; background: transparent; height: 16px; margin: 0; cursor: pointer; --f: #fff; --p: 0%; min-width: 0; }
input[type=range]:hover { --f: var(--green); }
input[type=range]:focus { outline: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--f) var(--p), var(--track) var(--p)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 4px rgba(0,0,0,.5); opacity: 0; transition: opacity .12s; }
input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--track); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--f); }
input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 4px rgba(0,0,0,.5); opacity: 0; transition: opacity .12s; }
input[type=range]:hover::-webkit-slider-thumb, input[type=range]:active::-webkit-slider-thumb, input[type=range]:focus-visible::-webkit-slider-thumb { opacity: 1; }
input[type=range]:hover::-moz-range-thumb, input[type=range]:active::-moz-range-thumb, input[type=range]:focus-visible::-moz-range-thumb { opacity: 1; }

/* ---------- player bar */
#bar { position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; height: var(--bar); background: #000; border-top: 1px solid #1c1c1c; display: grid;
  grid-template-columns: minmax(180px, 30%) minmax(280px, 40%) minmax(180px, 30%); grid-template-rows: 1fr 1fr; align-items: center; padding: 0 16px; column-gap: 16px; }
#bar .now { grid-column: 1; grid-row: 1 / span 2; display: flex; align-items: center; gap: 14px; min-width: 0; cursor: pointer; }
#bar .now img, #bar .now .skel { width: 56px; height: 56px; border-radius: 4px; object-fit: cover; flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,.5); }
#bar .now > div { min-width: 0; flex: 1; }
#bar .now .t { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#bar .now .t:hover { text-decoration: underline; }
#bar .now .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
#bar .now .fav { width: 32px; height: 32px; flex: none; }
#bar .controls { grid-column: 2; grid-row: 1; display: flex; justify-content: center; align-items: center; gap: 16px; align-self: end; padding-bottom: 2px; }
#bar .controls button:not(.play) { color: var(--gray); width: 32px; height: 32px; transition: color .15s, transform .12s; }
#bar .controls button:not(.play):hover { color: var(--white); transform: scale(1.08); }
#bar .controls button.on, #bar .extra button.on { color: var(--green) !important; position: relative; }
#bar .controls button.on::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--green); }
.play { position: relative; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #000 !important; transition: transform .12s; }
.play:hover { transform: scale(1.06); }
.play:active { transform: scale(.95); }
.play #bPlayIcon { display: grid; place-items: center; }
.play .ring { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid transparent; pointer-events: none; }
.loading .play .ring, .play.loading .ring { border-top-color: var(--green); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#bar .seek { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--gray); width: 100%; max-width: 600px; justify-self: center; align-self: start; grid-column: 2; grid-row: 2; font-variant-numeric: tabular-nums; }
#bar .seek span { min-width: 40px; }
#bar .seek span:first-child { text-align: right; }
#bar .seek input { flex: 1; }
#bar .extra { grid-row: 1 / span 2; grid-column: 3; display: flex; justify-content: flex-end; gap: 6px; align-items: center; }
#bar .extra button { color: var(--gray); width: 32px; height: 32px; transition: color .15s; }
#bar .extra button:hover { color: var(--white); }
#bar .extra .volic { color: var(--gray); margin-left: 8px; display: grid; }
#vol { width: 100px; }

/* ---------- full-screen player */
#full { position: fixed; inset: 0; z-index: 10; background: var(--bg); animation: up .35s cubic-bezier(.2,.8,.2,1); overflow: hidden; }
@keyframes up { from { transform: translateY(8%); opacity: 0; } to { transform: none; opacity: 1; } }
#full .fullbg { position: absolute; inset: 0; background: linear-gradient(var(--accent), var(--bg) 80%); transition: background .6s; }
#full header { position: relative; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 14px 20px; font-size: 11px; letter-spacing: 1.6px; font-weight: 800; text-align: center; }
#full header button { width: 44px; height: 44px; border-radius: 50%; transition: background .15s; }
#full header button:hover { background: rgba(255,255,255,.12); }
.fullbody { position: relative; display: flex; gap: 56px; padding: 16px 56px calc(var(--bar) + 24px); height: calc(100% - 72px); align-items: center; justify-content: center; }
#fArt { width: min(52vh, 44vw); aspect-ratio: 1; object-fit: cover; border-radius: 10px; box-shadow: 0 24px 64px rgba(0,0,0,.6); transition: transform .4s cubic-bezier(.3,1.6,.5,1); touch-action: pan-y; background: var(--card2); }
#fArt.paused { transform: scale(.92); }
#fArt.swipe-l { animation: swl .25s ease; } #fArt.swipe-r { animation: swr .25s ease; }
@keyframes swl { from { transform: translateX(40px); opacity: .3; } } @keyframes swr { from { transform: translateX(-40px); opacity: .3; } }
#fSide { width: min(560px, 45vw); height: 100%; display: flex; flex-direction: column; min-height: 0; }
.ftitle { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ftitle > div { min-width: 0; }
.ftitle h1 { font-size: 34px; margin: 0; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.ftitle p { color: var(--gray); margin: 6px 0 0; font-size: 18px; font-weight: 500; }
.fav { width: 44px; height: 44px; border-radius: 50%; color: var(--gray); flex-shrink: 0; transition: transform .2s, color .15s; }
.fav:hover { color: var(--white); transform: scale(1.08); }
.fav.on { color: var(--green); }
.fav.pop { animation: pop .35s; }
@keyframes pop { 40% { transform: scale(1.4); } }
.next { color: var(--gray); font-size: 13px; margin: 8px 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lyrics { position: relative; flex: 1; overflow-y: auto; -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 10%, #000 80%, transparent); padding: 40px 0 45vh; scroll-behavior: smooth; scrollbar-width: none; }
.lyrics::-webkit-scrollbar { display: none; }
.lyrics p { font-size: 26px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; margin: 0; padding: 8px 0; color: rgba(255,255,255,.4); cursor: pointer; transition: color .3s, transform .3s; transform-origin: left; }
.lyrics p:hover { color: rgba(255,255,255,.7); }
.lyrics p.done { color: rgba(255,255,255,.6); } .lyrics p.cur { color: #fff; transform: scale(1.04); }
.lyrics .plain { white-space: pre-wrap; font-size: 22px; font-weight: 700; line-height: 1.5; }

/* ---------- sheets, dialogs, toast */
#sheet { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.65); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); display: grid; place-items: center; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheetbox { background: #282828; border-radius: 14px; width: min(420px, 92vw); max-height: 80vh; overflow-y: auto; padding: 8px 0; animation: up .25s; box-shadow: 0 24px 64px rgba(0,0,0,.6); }
.sheetbox .hd { display: flex; gap: 14px; align-items: center; padding: 14px 20px; margin-bottom: 4px; border-bottom: 1px solid #3a3a3a; font-size: 16px; }
.sheetbox .hd img, .sheetbox .hd .skel { width: 48px; height: 48px; border-radius: 4px; object-fit: cover; }
.sheetbox .hd > div { min-width: 0; }
.sheetbox .hd > div > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheetbox .it { display: flex; justify-content: flex-start; gap: 16px; align-items: center; padding: 12px 20px; width: 100%; text-align: left; color: #e8e8e8; transition: background .12s; }
.sheetbox .it:hover { background: rgba(255,255,255,.1); color: #fff; }
.sheetbox .it .ic { color: var(--gray); }
.sheetbox .it:hover .ic { color: #fff; }
.sheetbox .it .go { margin-left: auto; }
.ph40 { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; background: var(--card2); display: grid; place-items: center; flex-shrink: 0; }
.sheetbox input:not([type=file]) { display: block; width: calc(100% - 40px); margin: 8px 20px; padding: 11px 16px; border-radius: 6px; border: 1px solid #727272; background: #1a1a1a; color: #fff; transition: border-color .15s; }
.sheetbox input:not([type=file]):hover { border-color: #aaa; }
.sheetbox .btn { margin-top: 8px; }
#toast { position: fixed; left: 50%; bottom: calc(var(--bar) + 20px); transform: translateX(-50%) translateY(20px); background: #fff; color: #000; padding: 12px 20px; border-radius: 8px; font-weight: 700; font-size: 14px; max-width: 90vw; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,.5); opacity: 0; transition: .25s; pointer-events: none; z-index: 30; }
#toast.show { opacity: 1; transform: translateX(-50%); }

/* ---------- settings */
.settings { padding: 8px 28px; max-width: 640px; }
.settings label { display: block; margin: 16px 0 6px; color: var(--gray); }
.settings h2 { margin: 36px 0 8px; font-size: 20px; }
.settings input[type=text], .settings input[type=password], .settings input:not([type]) { width: 100%; padding: 12px 16px; border-radius: 6px; border: 1px solid #727272; background: #1a1a1a; color: #fff; transition: border-color .15s; }
.settings input:hover { border-color: #aaa; }
.btn { background: var(--green); color: #000; font-weight: 800; border-radius: 500px; padding: 12px 28px; margin-top: 16px; transition: transform .12s, background .15s; }
.btn:hover { transform: scale(1.04); background: var(--green-h); }
.btn:active { transform: scale(.97); }
.switch { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.switch:last-of-type { border-bottom: 0; }
.settings .switch input[type=checkbox] { -webkit-appearance: none; appearance: none; width: 44px; height: 26px; border-radius: 13px; background: #727272; position: relative; flex-shrink: 0; cursor: pointer; transition: background .2s; }
.settings .switch input[type=checkbox]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.settings .switch input[type=checkbox]:checked { background: var(--green); }
.settings .switch input[type=checkbox]:checked::after { transform: translateX(18px); }
input[type=checkbox] { accent-color: var(--green); width: 18px; height: 18px; }
.check { display: flex; gap: 10px; align-items: center; margin: 12px 0 0; cursor: pointer; }
.settings input:focus, .sheetbox input:focus { outline: 2px solid var(--green); outline-offset: -1px; }
.settings .btn[style] { color: #000; }

/* ---------- phone */
@media (max-width: 760px) {
  :root { --nav: 0px; --bar: 132px; }
  #app { padding-bottom: 60px; } body.has-bar #app { padding-bottom: var(--bar); }
  #nav { position: fixed; bottom: 0; left: 0; right: 0; width: auto; height: 60px; flex-direction: row; padding: 0 4px calc(env(safe-area-inset-bottom) * .5); gap: 0; z-index: 16; justify-content: space-around; align-items: stretch;
    background: linear-gradient(rgba(0,0,0,.85), #000 40%); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  #nav .brand { display: none; }
  #nav button { flex: 1; flex-direction: column; justify-content: center; gap: 3px; font-size: 10px; font-weight: 600; padding: 6px 0; background: none !important; border-radius: 0; min-width: 0; }
  #nav button .i { width: 24px; height: 24px; }
  #nav .bottom { margin: 0; }
  .ph, .page > h1.title:first-child { padding: 16px 16px 10px; } h1.title { font-size: 28px; }
  h2 { margin: 28px 16px 12px; font-size: 20px; }
  .hero { padding: 20px 16px 12px; } .quick { grid-template-columns: 1fr 1fr; gap: 8px; } .quick > div { height: 56px; font-size: 13px; padding-right: 8px; gap: 10px; }
  .quick img, .quick .skel { width: 56px; height: 56px; }
  .row-scroll { padding: 0 10px 8px; } .card { width: 148px; padding: 10px; }
  .list { padding: 0 6px; } .lrow { padding: 8px 16px; } .searchbox { margin: 8px 16px 0; } .sugg { margin: 8px 16px; }
  .genres { padding: 0 16px; gap: 12px; grid-template-columns: 1fr 1fr; } .genres div { height: 88px; font-size: 18px; }
  .chips { padding: 4px 16px 12px; overflow-x: auto; } .actions { padding: 12px 16px; } .resume, .impbar { margin-left: 16px; margin-right: 16px; }
  .settings { padding: 8px 16px; } .empty { padding: 16px; }
  #bar { bottom: 60px; height: 72px; grid-template-columns: 1fr auto; grid-template-rows: 1fr; margin: 0 8px; left: 0; right: 0; border: 0; border-radius: 8px; background: #2a2a2a; padding: 0 8px; box-shadow: 0 4px 16px rgba(0,0,0,.5); }
  #bar .seek, #bar .extra, #bShuffle, #bRepeat, #bPrev { display: none; }
  #bar .now { grid-row: 1; } #bar .now img, #bar .now .skel { width: 48px; height: 48px; }
  #bar .controls { grid-row: 1; align-self: center; padding: 0; gap: 8px; }
  #bar .controls button.on::after { display: none; }
  .play { width: 40px; height: 40px; }
  /* Phone: the full player scrolls as one column (cover, title, lyrics) above the bar. */
  #full { display: flex; flex-direction: column; }
  #full header { flex-shrink: 0; padding: 10px 12px; }
  .fullbody { flex-direction: column; justify-content: flex-start; align-items: center; padding: 8px 24px calc(var(--bar) + 8px);
    gap: 20px; height: auto; flex: 1; overflow-y: auto; }
  #fArt { width: min(84vw, 40vh); flex-shrink: 0; border-radius: 8px; } #fSide { width: 100%; height: auto; }
  .kbd { display: none; } .ftitle h1 { font-size: 24px; } .ftitle p { font-size: 16px; }
  .lyrics { flex: none; overflow: visible; -webkit-mask-image: none; mask-image: none; padding: 8px 0 24px; }
  .lyrics p { font-size: 22px; }
  .head { flex-direction: column; align-items: flex-start; padding: 64px 16px 16px; gap: 16px; } .head h1 { font-size: 32px; }
  .head .cover { width: 160px; height: 160px; align-self: center; }
  .head > div:last-child { width: 100%; }
  #toast { bottom: calc(var(--bar) + 12px); }
  #sheet { place-items: end center; }
  .sheetbox { width: 100vw; max-height: 85vh; border-radius: 16px 16px 0 0; padding-bottom: calc(env(safe-area-inset-bottom) + 12px); animation: sheetup .25s cubic-bezier(.2,.8,.2,1); }
  @keyframes sheetup { from { transform: translateY(100%); } }
}
