:root {
  /* Dark theme (default). Light values below; the full-screen player always uses the dark set. */
  --bg: #0d0d10;
  --bg2: #16161b;
  --bg3: #202028;
  --line: #ffffff12;
  --text: #f4f4f6;
  --muted: #9a9aa6;
  --accent: #ff4d6d;
  --accent2: #ff8a5b;
  --art1: #2a2a35; --art2: #1a1a22;
  --glass: #24242ee6;
  --tabs-bg: #0d0d10f0;
  --shadow: #000a;
  --scroll: #ffffff24;
  color-scheme: dark;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tabs-h: 58px;
  --mini-h: 64px;
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) {
  --bg: #f6f5f8; --bg2: #ebeaf0; --bg3: #ffffff; --line: #1a183014; --text: #17161c; --muted: #6d6a7a;
  --accent: #e5304f; --accent2: #f07a45; --art1: #e2e0ea; --art2: #d2d0dc; --glass: #ffffffe6;
  --tabs-bg: #f6f5f8f0; --shadow: #1a18302e; --scroll: #1a183030; color-scheme: light; } }
:root[data-theme="light"] {
  --bg: #f6f5f8; --bg2: #ebeaf0; --bg3: #ffffff; --line: #1a183014; --text: #17161c; --muted: #6d6a7a;
  --accent: #e5304f; --accent2: #f07a45; --art1: #e2e0ea; --art2: #d2d0dc; --glass: #ffffffe6;
  --tabs-bg: #f6f5f8f0; --shadow: #1a18302e; --scroll: #1a183030; color-scheme: light; }
/* The player screen stays dark in every theme (it sits on blurred album art) */
.player { --bg: #0d0d10; --bg2: #16161b; --bg3: #202028; --line: #ffffff12; --text: #f4f4f6; --muted: #9a9aa6;
  --accent: #ff4d6d; --accent2: #ff8a5b; --art1: #2a2a35; --art2: #1a1a22; --shadow: #000a; --scroll: #ffffff24;
  color: var(--text); color-scheme: dark; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font: 15px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  overscroll-behavior: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
svg { width: 24px; height: 24px; fill: currentColor; display: block; }
.hidden { display: none !important; }
.error { color: var(--accent); min-height: 1.2em; font-size: 13px; }

/* ---------- Login ---------- */
.login { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(circle at 30% 10%, #ff4d6d33, transparent 60%), var(--bg); }
.login-card { width: 100%; max-width: 340px; text-align: center; }
.login-logo { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 12px 40px #ff4d6d40; }
.login h1 { margin: 18px 0 4px; font-size: 28px; }
.login p { color: var(--muted); margin: 0 0 28px; }
.login input { width: 100%; padding: 15px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--bg2); outline: none; font-size: 16px; }
.login input:focus { border-color: var(--accent); }
.login button { width: 100%; margin-top: 12px; padding: 15px; border-radius: 14px; font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }

/* ---------- Layout ---------- */
#app { height: 100%; display: flex; flex-direction: column; }
.top { padding: calc(var(--safe-t) + 10px) 18px 10px; background: var(--bg);
  position: sticky; top: 0; z-index: 5; }
.top-row { display: flex; align-items: center; justify-content: space-between; }
.top h1 { font-size: 30px; margin: 4px 0 12px; letter-spacing: -0.5px; display: flex; align-items: center; gap: 6px; }
.top h1 .back { color: var(--accent); }
.search { display: flex; align-items: center; gap: 8px; background: var(--bg2); border-radius: 12px; padding: 0 12px; }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { flex: 1; border: 0; background: none; outline: none; padding: 11px 0; font-size: 16px; }
.search input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }

.content { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--tabs-h) + var(--mini-h) + var(--safe-b) + 16px); }

.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--text); }
.icon-btn:active { background: var(--line); }

.menu { position: fixed; right: 14px; top: calc(var(--safe-t) + 56px); z-index: 30; background: var(--bg3);
  border-radius: 14px; overflow: hidden; box-shadow: 0 10px 40px var(--shadow); min-width: 190px; }
.menu button { display: block; width: 100%; text-align: left; padding: 14px 18px; }
.menu button + button { border-top: 1px solid var(--line); }
.menu button:active { background: var(--line); }

/* ---------- Lists ---------- */
.list { padding: 0 8px; }
.row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; user-select: none; }
.row:active { background: var(--bg2); }
.row .art { width: 48px; height: 48px; border-radius: 8px; flex: none; }
.row .meta { flex: 1; min-width: 0; }
.row .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .s { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.row .num { width: 26px; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.row .more { width: 36px; height: 36px; color: var(--muted); display: grid; place-items: center; flex: none; }
.row .more svg { width: 20px; height: 20px; }
.row.playing .t { color: var(--accent); }
.row.round .art { border-radius: 50%; }
.section-label { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; padding: 14px 18px 6px; }

.action-row { display: flex; gap: 10px; padding: 6px 18px 12px; }
.pill { flex: 1; padding: 12px; border-radius: 12px; background: var(--bg2); font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--accent); }
.pill svg { width: 20px; height: 20px; }
.pill:active { background: var(--bg3); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 14px; padding: 6px 18px; }
.card .art { width: 100%; aspect-ratio: 1; border-radius: 12px; }
.card .t { margin-top: 8px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .s { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card:active { opacity: .7; }

.album-hero { display: flex; flex-direction: column; align-items: center; padding: 4px 18px 14px; text-align: center; }
.album-hero .art { width: 62%; max-width: 260px; aspect-ratio: 1; border-radius: 14px; box-shadow: 0 16px 50px var(--shadow); }
.album-hero h2 { margin: 16px 0 2px; font-size: 21px; }
.album-hero .s { color: var(--accent); }
.album-hero .y { color: var(--muted); font-size: 13px; margin-top: 2px; }

.empty { text-align: center; color: var(--muted); padding: 60px 30px; }
.empty h3 { color: var(--text); margin: 0 0 8px; }
.empty code { background: var(--bg2); padding: 2px 6px; border-radius: 6px; font-size: 13px; }

/* Artwork placeholder */
.art { background: linear-gradient(135deg, var(--art1), var(--art2)); background-size: cover; background-position: center;
  position: relative; overflow: hidden; }
.art.noart::after { content: ""; position: absolute; inset: 28%;
  background: var(--muted); opacity: .45;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v10.6A4 4 0 1014 17V7h4V3h-6z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v10.6A4 4 0 1014 17V7h4V3h-6z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---------- Mini player ---------- */
.mini { position: fixed; left: 8px; right: 8px; bottom: calc(var(--tabs-h) + var(--safe-b) + 6px); z-index: 10;
  background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: 14px; overflow: hidden; box-shadow: 0 8px 30px var(--shadow); }
.mini-progress { height: 2px; background: var(--line); }
.mini-progress div { height: 100%; width: 0; background: var(--accent); }
.mini-inner { display: flex; align-items: center; gap: 10px; padding: 7px 6px 7px 8px; height: 60px; }
.mini-art { width: 44px; height: 44px; border-radius: 8px; flex: none; }
.mini-meta { flex: 1; min-width: 0; }
.mini-title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-artist { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Tabs ---------- */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; display: flex;
  padding-bottom: var(--safe-b); height: calc(var(--tabs-h) + var(--safe-b));
  background: var(--tabs-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid var(--line); }
.tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); font-size: 11px; }
.tabs button.active { color: var(--accent); }

/* ---------- Full player ---------- */
.player { position: fixed; inset: 0; z-index: 40; background: var(--bg); transform: translateY(100%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1); overflow: hidden; touch-action: pan-x; }
.player.open { transform: translateY(0); }
.player-bg { position: absolute; inset: -20%; background-size: cover; background-position: center;
  filter: blur(60px) saturate(1.4) brightness(.45); transform: scale(1.2); opacity: .9; transition: background-image .4s; }
.player-inner { position: relative; height: 100%; display: flex; flex-direction: column;
  padding: calc(var(--safe-t) + 8px) 26px calc(var(--safe-b) + 24px); max-width: 520px; margin: 0 auto; }
.player-head { display: flex; align-items: center; justify-content: space-between; }
.player-head svg { width: 30px; height: 30px; }
.player-label { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: #ffffffb0; font-weight: 600; }
.player-art { width: 100%; aspect-ratio: 1; border-radius: 16px; margin: auto 0 0; box-shadow: 0 24px 70px #000c;
  transition: transform .3s; max-height: 52vh; max-width: 52vh; align-self: center; }
.player.paused .player-art { transform: scale(.88); }
.player-meta { margin-top: auto; padding-top: 26px; }
.player-title { font-size: 22px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-artist { font-size: 17px; color: #ffffffa0; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.seek { margin-top: 20px; }
.seek input { width: 100%; -webkit-appearance: none; appearance: none; height: 22px; background: transparent; margin: 0; }
.seek input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px;
  background: linear-gradient(to right, #fff var(--p, 0%), #ffffff33 var(--p, 0%)); }
.seek input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; margin-top: -5px; }
.seek input::-moz-range-track { height: 4px; border-radius: 2px; background: #ffffff33; }
.seek input::-moz-range-progress { height: 4px; border-radius: 2px; background: #fff; }
.seek input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
.times { display: flex; justify-content: space-between; font-size: 12px; color: #ffffff90; font-variant-numeric: tabular-nums; margin-top: 2px; }

.controls { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.controls .icon-btn svg { width: 36px; height: 36px; }
.controls .icon-btn.small svg { width: 24px; height: 24px; }
.controls .icon-btn.small { color: #ffffff80; position: relative; }
.controls .icon-btn.small.on { color: var(--accent); }
.volume { display: flex; align-items: center; gap: 6px; margin-top: 14px; color: #ffffff90; }
.volume .icon-btn { width: 36px; height: 36px; color: inherit; flex: none; margin-left: -6px; }
.volume svg { width: 20px; height: 20px; fill: currentColor; }
.volume .vol-max { flex: none; }
.volume .vol-off, .volume.muted .vol-on { display: none; }
.volume.muted .vol-off { display: block; }
.volume input { flex: 1; -webkit-appearance: none; appearance: none; height: 22px; background: transparent; margin: 0; }
.volume input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px;
  background: linear-gradient(to right, #fff var(--p, 100%), #ffffff33 var(--p, 100%)); }
.volume input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; margin-top: -5px; }
.volume input::-moz-range-track { height: 4px; border-radius: 2px; background: #ffffff33; }
.volume input::-moz-range-progress { height: 4px; border-radius: 2px; background: #fff; }
.volume input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
.repeat-one { position: absolute; font-size: 9px; font-weight: 800; top: 9px; right: 7px; display: none; }
#repeatBtn.one .repeat-one { display: block; }
.play-big { width: 74px; height: 74px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; }
.play-big svg { width: 36px; height: 36px; }
.play-big:active { transform: scale(.94); }

/* Queue */
.queue { position: absolute; inset: 0; z-index: 2; background: #0d0d10f5; backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px); transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column; padding-top: var(--safe-t); }
.queue.open { transform: translateY(0); }
.queue-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 8px 18px; }
.queue-head h2 { margin: 0; font-size: 20px; }
.queue .list { flex: 1; overflow-y: auto; padding-bottom: calc(var(--safe-b) + 20px); }
.row .rm { width: 36px; height: 36px; color: var(--muted); display: grid; place-items: center; }
.row .rm svg { width: 18px; height: 18px; }

/* Action sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; background: #0008; display: flex; align-items: flex-end;
  animation: fade .2s; }
.sheet { width: 100%; padding: 8px 8px calc(var(--safe-b) + 8px); animation: up .25s cubic-bezier(.2,.8,.2,1); }
.sheet > * { display: block; width: 100%; background: var(--bg3); padding: 16px; text-align: center; color: var(--accent); font-size: 17px; }
.sheet-title { color: var(--muted) !important; font-size: 13px !important; border-radius: 14px 14px 0 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet > button { border-top: 1px solid var(--line); }
.sheet > button[data-act="artist"] { border-radius: 0 0 14px 14px; }
.sheet .cancel { margin-top: 8px; border-radius: 14px; font-weight: 600; border: 0; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(100%); } }

.toast { position: fixed; left: 50%; bottom: calc(var(--tabs-h) + var(--mini-h) + var(--safe-b) + 20px); z-index: 70;
  transform: translate(-50%, 20px); background: var(--bg3); padding: 10px 16px; border-radius: 20px; font-size: 14px;
  opacity: 0; transition: .25s; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); text-align: center; box-shadow: 0 6px 24px var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 760px) {
  .content, .top { max-width: 900px; margin: 0 auto; width: 100%; }
  .mini { max-width: 600px; margin: 0 auto; }
}
.art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.row { content-visibility: auto; contain-intrinsic-size: auto 64px; }

/* Google Drive panel */
.panel { width: 100%; background: var(--bg3); border-radius: 20px 20px 0 0; padding: 8px 20px calc(var(--safe-b) + 22px);
  animation: up .25s cubic-bezier(.2,.8,.2,1); }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-right: -10px; }
.panel-head h2 { margin: 0; font-size: 19px; }
.panel-help { color: var(--muted); font-size: 14px; line-height: 1.45; margin: 4px 0 16px; }
.panel-help b { color: var(--text); font-weight: 600; }
.panel input { width: 100%; padding: 15px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--bg2); outline: none; font-size: 16px; }
.panel input:focus { border-color: var(--accent); }
.panel .primary { width: 100%; margin-top: 12px; padding: 15px; border-radius: 14px; font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.panel .primary:disabled { opacity: .55; }
.panel-status { min-height: 1.3em; margin-top: 14px; font-size: 14px; color: var(--muted); line-height: 1.4; }
.panel-status.ok { color: var(--text); }
.panel-status.err { color: var(--accent); }
.progress { height: 4px; border-radius: 2px; background: var(--line); margin-top: 10px; overflow: hidden; }
.progress div { height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.link-btn { display: block; margin: 14px auto 0; color: var(--muted); font-size: 14px; text-decoration: underline; }

/* Playlists */
.sheet > .last { border-radius: 0 0 14px 14px; }
.sheet > .accent-btn { font-weight: 600; }
.new-pl { display: flex; align-items: center; gap: 12px; padding: 8px 10px; margin: 0 8px 4px; border-radius: 12px; color: var(--accent);
  font-weight: 600; width: calc(100% - 16px); text-align: left; }
.new-pl .plus { width: 48px; height: 48px; border-radius: 8px; background: var(--bg2); display: grid; place-items: center; font-size: 26px; font-weight: 400; flex: none; }
.new-pl:active { background: var(--bg2); }
.pl-tools { display: flex; gap: 18px; justify-content: center; margin-top: 8px; }
.pl-tools button { color: var(--muted); font-size: 14px; }
.row .drag { width: 36px; height: 36px; color: var(--muted); display: grid; place-items: center; flex: none; touch-action: none; cursor: grab; }
.row .drag svg { width: 22px; height: 22px; fill: currentColor; }
.row.dragging { position: relative; z-index: 5; background: var(--bg3); box-shadow: 0 8px 30px var(--shadow); transform: scale(1.02); }
.list.reordering .row { content-visibility: visible; }

/* "All songs" automatic playlist art */
.auto-art { display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent2)) !important; }
.auto-art svg { width: 46%; height: 46%; fill: #fff; }
.album-hero .auto-art svg { width: 34%; height: 34%; }

/* Drive folder collections */
.folder-art { display: grid; place-items: center; background: var(--bg3) !important; }
.folder-art svg { width: 48%; height: 48%; fill: var(--accent2); }
.album-hero .folder-art svg { width: 36%; height: 36%; }

/* Scrollbars: thin, rounded, blend into the dark UI; turn accent-colored on hover */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scroll); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; min-height: 40px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(var(--accent), var(--accent2)); border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:active { background: var(--accent); border: 2px solid transparent; background-clip: padding-box; }
/* Firefox (and browsers without ::-webkit-scrollbar). Kept separate: newer Chrome ignores the
   webkit rules above if these standard properties are also set on the same element. */
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: var(--scroll) transparent; }
}

/* Theme switch in the menu */
.menu .theme-row { display: flex; gap: 4px; padding: 8px; border-top: 1px solid var(--line); }
.menu .theme-row button { flex: 1; padding: 8px 6px; border-radius: 9px; text-align: center; font-size: 13px; color: var(--muted); border: 0; }
.menu .theme-row button + button { border-top: 0; }
.menu .theme-row button.on { background: var(--bg2); color: var(--text); font-weight: 600; }
.menu .theme-label { padding: 12px 18px 0; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; border-top: 1px solid var(--line); }

/* Edit song info */
.field { display: grid; gap: 6px; margin-top: 12px; }
.field span { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.panel-help.small { font-size: 13px; margin: 12px 0 0; }
.panel-help.small:empty { display: none; }

/* Duplicates */
.dupe-intro { color: var(--muted); font-size: 14px; line-height: 1.45; margin: 4px 18px 14px; }
.dupe-group { margin: 0 10px 14px; background: var(--bg2); border-radius: 14px; padding: 4px 0; }
.dupe-head { display: grid; gap: 2px; padding: 10px 12px 4px; }
.dupe-head b { font-weight: 600; }
.dupe-head span { font-size: 12px; color: var(--muted); }
.row.dupe .s.file { font-size: 12px; opacity: .8; }
.dupe-btn { flex: none; padding: 7px 14px; border-radius: 16px; font-size: 13px; font-weight: 600;
  background: var(--bg3); color: var(--accent); border: 1px solid var(--line); }
.dupe-btn[data-unhide] { color: var(--text); }
.dupe-btn:active { opacity: .7; }

/* Delete */
:root { --danger: #ff453a; }
.sheet > .danger { color: var(--danger); }
.dupe-btn.del { color: var(--danger); }
.dupe-btns { display: flex; gap: 6px; flex: none; }

.danger-text { color: var(--danger) !important; }
.player-artist { cursor: pointer; }
.player-artist:active { opacity: .6; }
.pl-tools { flex-wrap: wrap; row-gap: 6px; }

/* "In playlists" chips in Edit song info */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 18px; font-size: 14px;
  background: var(--bg2); border: 1px solid var(--line); color: var(--text); }
.chip svg { width: 16px; height: 16px; fill: var(--accent2); }
.chip:active { opacity: .7; }
.chips-empty { color: var(--muted); font-size: 14px; }

/* Delete song sits last in the song menu: it takes the rounded bottom corners when shown */
.sheet > button[data-act="artist"]:has(+ #sheetDelete:not(.hidden)) { border-radius: 0; }
.sheet > #sheetDelete { border-radius: 0 0 14px 14px; }

/* Sliders: take the finger drag ourselves. The player allows sideways swipes (touch-action: pan-x),
   which on Android stole the drag from the time and volume sliders. */
.seek input, .volume input { touch-action: none; }

/* Playlist picker: tick several playlists */
.sheet > .pick-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; color: var(--text); }
.sheet > .pick-row span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-row .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.pick-row .tick svg { width: 16px; height: 16px; fill: #fff; opacity: 0; }
.pick-row.on .tick { background: var(--accent); border-color: var(--accent); }
.pick-row.on .tick svg { opacity: 1; }
.sheet > .done { margin-top: 8px; border-radius: 14px; border: 0; font-weight: 600; background: var(--accent); color: #fff; }
.sheet > .done + .cancel { margin-top: 8px; }
