/* BAZINGA — electric yellow on ink black, chunky outlines borrowed from the bolt logo */
:root {
  --bg: #0c0c0e;
  --bg2: #121215;
  --surface: #17171b;
  --surface2: #1f1f25;
  --surface3: #2a2a31;
  --line: #2c2c34;
  --text: #f5f2e8;
  --muted: #9b988f;
  --dim: #6c6a64;
  --volt: #ffd60a;
  --volt-2: #ff9500;
  --volt-rgb: 255 214 10;
  --volt-2-rgb: 255 149 0;
  --volt-hi: #ffe14a;
  --volt-ink: #141000;
  --danger: #ff5a4e;
  --ok: #4ade80;
  --r: 14px;
  --r-sm: 9px;
  --side: 248px;
  --queue: 340px;
  --bar: 88px;
  --tab: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --display: 'Bricolage Grotesque', 'Arial Black', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.45 var(--body); -webkit-font-smoothing: antialiased; overflow: hidden; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; -webkit-appearance: none; appearance: none; border-radius: 0; }
input, textarea, select { font: inherit; color: var(--text); }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; }
h2 { font-size: 21px; margin: 28px 0 12px; }
h3 { font-size: 19px; }
h4 { margin: 16px 0 8px; display: flex; gap: 8px; align-items: center; font-size: 15px; }
code { background: var(--surface3); padding: 2px 6px; border-radius: 6px; font-size: 13px; word-break: break-all; }
.ic { width: 20px; height: 20px; flex: none; }
.muted { color: var(--muted); }
.tiny { font-size: 12.5px; }
.center { text-align: center; }
.pad { padding: 16px 4px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 2px; border-radius: 6px; }

.wordmark { font-family: var(--display); font-weight: 800; font-style: italic; letter-spacing: -0.01em; text-transform: uppercase; }

/* ================= LAYOUT ================= */
#app { display: grid; height: 100vh; height: 100dvh; grid-template-columns: var(--side) 1fr 0; grid-template-rows: 1fr calc(var(--bar)); grid-template-areas: "side main queue" "bar bar bar"; }
body:not(.has-track) #app { grid-template-rows: 1fr 0; }
body.queue-open #app { grid-template-columns: var(--side) 1fr var(--queue); }

.sidebar { grid-area: side; background: var(--bg2); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 12px 12px; min-height: 0; }
.brand { display: flex; align-items: center; gap: 8px; padding: 2px 10px 18px; }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 2px 10px rgb(var(--volt-rgb) / .35)); }
.brand .wordmark { font-size: 25px; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 13px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; transition: background .15s, color .15s; }
.nav a:not(.on):hover { color: var(--text); background: var(--surface); }
.nav a.on { color: var(--volt-ink); background: var(--volt); box-shadow: 3px 3px 0 #000, inset 0 0 0 2px #000; }
.side-h { display: flex; justify-content: space-between; align-items: center; margin: 22px 10px 6px; color: var(--dim); text-transform: uppercase; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; }
.side-h .ib { font-size: 18px; width: 26px; height: 26px; }
.side-pl { flex: 1; overflow: auto; min-height: 0; display: grid; align-content: start; gap: 1px; scrollbar-width: thin; }
.spl { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; color: var(--muted); font-size: 14px; }
.spl:hover { background: var(--surface); color: var(--text); }
.spl span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-chip { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; margin-top: 8px; font-weight: 600; border: 1px solid var(--line); }
.profile-chip:hover { background: var(--surface); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--volt); color: var(--volt-ink); display: grid; place-items: center; font-weight: 800; overflow: hidden; flex: none; border: 2px solid #000; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.xl { width: 104px; height: 104px; font-size: 40px; border-width: 3px; box-shadow: 4px 4px 0 #000; }
.avatar.xl .ic { width: 44px; height: 44px; }

#main { grid-area: main; overflow-y: auto; overflow-x: hidden; min-width: 0; position: relative; scrollbar-width: thin; scrollbar-color: var(--surface3) transparent; }
.topbar { display: none; }
.tabbar { display: none; }
#view { min-height: 100%; }
.page { padding: 28px clamp(16px, 3.5vw, 40px) 60px; max-width: 1400px; }
.page-h { font-size: clamp(28px, 4vw, 40px); margin-bottom: 18px; }
.loading { display: grid; place-items: center; padding: 90px 0; }
.loading.sm { padding: 30px 0; }
.bolt-spin { width: 38px; height: 38px; background: var(--logo-url, url(../icons/icon-192.png)) center/contain no-repeat; animation: zap 1s ease-in-out infinite; }
@keyframes zap { 0%, 100% { transform: scale(.85) rotate(-8deg); opacity: .6 } 50% { transform: scale(1.1) rotate(6deg); opacity: 1 } }

#queue-panel { grid-area: queue; background: var(--bg2); border-left: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.qp-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 16px 8px; }
.qp-body { overflow: auto; padding: 0 10px 20px; flex: 1; }

/* ================= HERO / HEADERS ================= */
.hero { display: flex; align-items: flex-end; gap: 24px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(30px, 5.2vw, 64px); line-height: 1; font-weight: 800; word-break: break-word; }
.hero-art { width: clamp(130px, 18vw, 220px); flex: none; box-shadow: 0 20px 50px rgb(0 0 0 / .55); border-radius: var(--r); overflow: hidden; }
.hero-art.round { border-radius: 50%; }
.hero-art .cover { width: 100%; border-radius: inherit; }
.kicker { text-transform: uppercase; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--volt); margin-bottom: 8px; }
.hero-sub { color: var(--muted); margin-top: 12px; font-weight: 500; }
.hero-sub .lnk { color: var(--text); font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 18px; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; }
.sec-h .lnk { color: var(--muted); font-weight: 600; font-size: 13px; }
section { margin-bottom: 8px; }

/* ================= BUTTONS ================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--line); font-weight: 650; font-size: 14px; white-space: nowrap; transition: transform .08s, background .15s; }
.btn:hover { background: var(--surface3); }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 18px; height: 18px; }
.btn.primary { background: var(--volt); color: var(--volt-ink); border: 2px solid #000; box-shadow: 3px 3px 0 #000; }
.btn.primary:hover { background: var(--volt-hi); }
.btn.primary:active { box-shadow: 1px 1px 0 #000; transform: translate(2px, 2px); }
.btn.primary-o { border: 2px solid var(--volt); color: var(--volt); background: transparent; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--surface); }
.btn.danger { background: var(--danger); color: #fff; border-color: #000; box-shadow: 3px 3px 0 #000; }
.btn.big { padding: 14px 22px; font-size: 16px; width: 100%; }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.block { display: flex; width: 100%; margin-bottom: 8px; }
.round-play { width: 56px; height: 56px; padding: 0; border-radius: 50%; }
.round-play .ic { width: 24px; height: 24px; margin-left: 3px; }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.ib { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--muted); position: relative; flex: none; transition: color .15s, background .15s; }
@media (hover: hover) { .ib:hover { color: var(--text); background: var(--surface2); } } /* phones: no grey circle left behind after a tap */
.ib.on { color: var(--volt); }
.ib.sm { width: 30px; height: 30px; }
.ib.sm .ic { width: 16px; height: 16px; }
.ib.lg { width: 46px; height: 46px; }
.ib.lg .ic { width: 24px; height: 24px; }
.ib.xl .ic { width: 30px; height: 30px; }
.ib.xl { width: 54px; height: 54px; color: var(--text); }
.ib .r1 { position: absolute; font-size: 9px; bottom: 6px; right: 6px; background: var(--volt); color: #000; border-radius: 50%; width: 13px; height: 13px; display: grid; place-items: center; }
.like.on { color: var(--volt); }
.lnk { cursor: pointer; }
.lnk:hover { text-decoration: underline; color: var(--text); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--text); }
.chip .ic { width: 15px; height: 15px; }
.chip small { color: var(--muted); font-weight: 500; }
.chip b { background: var(--volt); color: #000; border-radius: 99px; padding: 0 6px; font-size: 11px; }
.chip.on { background: var(--volt); color: var(--volt-ink); border-color: #000; }
.chip.on small { color: rgb(0 0 0 / .62); }
.chip.ghost { background: none; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.pill { display: inline-block; font-size: 11.5px; padding: 2px 8px; border-radius: 99px; background: var(--surface3); color: var(--muted); margin-right: 6px; white-space: nowrap; max-width: 130px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.badge { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; padding: 6px 10px; border-radius: 99px; background: rgb(74 222 128 / .12); color: var(--ok); font-weight: 600; }
.badge .ic { width: 15px; height: 15px; }

/* ================= COVERS ================= */
.cover { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--c, var(--surface3)); flex: none; display: grid; place-items: center; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.cover span { font-family: var(--display); font-weight: 800; font-size: 2.2em; color: rgb(255 255 255 / .85); }
.cover.ld:not(.noimg) span { visibility: hidden; }
.cover.sm { width: 42px; border-radius: 6px; }
.cover.sm span { font-size: 18px; }
.cover.round { border-radius: 50%; }
.liked-cover { background: linear-gradient(135deg, var(--volt), var(--volt-2)) !important; }
.liked-cover span { color: #000 !important; }

/* ================= ROWS ================= */
.rows { display: grid; }
.row { display: grid; grid-template-columns: 56px minmax(0, 1.6fr) minmax(0, 1fr) 150px 38px 52px 38px; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; cursor: pointer; user-select: none; }
.row:hover { background: var(--surface); }
.row.now { background: rgb(var(--volt-rgb) / .11); box-shadow: inset 3px 0 0 var(--volt); }
.row.now:hover { background: rgb(var(--volt-rgb) / .16); }
.row.now .row-title { color: var(--volt); }
.row-num { display: flex; align-items: center; gap: 6px; color: var(--dim); font-size: 13px; position: relative; }
.row-num:not(:has(.eq)) { font-variant-numeric: tabular-nums; }
.row-main { min-width: 0; }
.row-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.row-sub, .row-album { color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-meta { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-align: right; }
.row-dur { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; }
.row .ib { width: 34px; height: 34px; }
.row .like:not(.on) { opacity: 0; }
.row:hover .like, .row:focus-within .like { opacity: 1; }
.e { font-size: 9.5px; background: var(--muted); color: var(--bg); border-radius: 3px; padding: 1px 4px; font-weight: 800; }
.off { color: var(--ok); display: inline-flex; }
.off .ic { width: 15px; height: 15px; }
.eq { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; display: flex; gap: 2px; align-items: flex-end; height: 16px; padding: 4px; background: rgb(0 0 0 / .6); border-radius: 4px; }
.row-num .eq { left: auto; right: 0; transform: translateY(-50%); width: 42px; height: 42px; justify-content: center; align-items: center; }
.eq i { width: 3px; height: 14px; background: var(--volt); border-radius: 2px; transform-origin: bottom; animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s } .eq i:nth-child(3) { animation-delay: -.6s }
body:not(.is-playing) .eq i { animation-play-state: paused; transform: scaleY(.35); }
@keyframes eq { 0%, 100% { transform: scaleY(.3) } 50% { transform: scaleY(1) } }
.count { margin: 6px 8px; }

/* ================= CARDS ================= */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 18px 16px; }
.card { padding: 10px; border-radius: var(--r); transition: background .2s; min-width: 0; }
.card:hover { background: var(--surface); }
.card-art { position: relative; margin-bottom: 10px; }
.card-art .cover { width: 100%; box-shadow: 0 8px 24px rgb(0 0 0 / .4); }
.card-art.round .cover { border-radius: 50%; }
.card-t { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-s { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fab-play { position: absolute; right: 8px; bottom: 8px; width: 46px; height: 46px; border-radius: 50%; background: var(--volt); color: #000; display: grid; place-items: center; border: 2px solid #000; box-shadow: 2px 2px 0 #000; opacity: 0; transform: translateY(8px); transition: .2s; }
.fab-play .ic { margin-left: 2px; }
.card:hover .fab-play, .card:focus-within .fab-play { opacity: 1; transform: none; }

.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-bottom: 10px; }
.qt { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; background: var(--surface); border-radius: 10px; overflow: hidden; font-weight: 700; padding-right: 12px; transition: background .15s; }
.qt:hover { background: var(--surface2); }
.qt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qt small { color: var(--muted); font-weight: 500; }
.qt-art { width: 56px; height: 56px; border-radius: 0; }
.qt-art.liked { display: grid; place-items: center; background: linear-gradient(135deg, var(--volt), var(--volt-2)); color: #000; }

.genre-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.gt { background: var(--c); border-radius: var(--r); padding: 16px; min-height: 92px; display: flex; flex-direction: column; justify-content: space-between; border: 2px solid #000; box-shadow: 3px 3px 0 #000; transition: transform .12s; }
.gt:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #000; }
.gt b { font-family: var(--display); font-size: 19px; line-height: 1.1; }
.gt small { color: rgb(255 255 255 / .75); }

.tabs { display: flex; gap: 6px; margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tab { padding: 8px 15px; border-radius: 999px; background: var(--surface2); font-weight: 650; font-size: 14px; white-space: nowrap; display: flex; gap: 7px; align-items: center; }
.tab small { color: var(--muted); font-weight: 500; }
.tab.on { background: var(--text); color: var(--bg); }
.tab.on small { color: #555; }

.artist-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 4px 14px; }
.artist-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; scroll-margin-top: 60px; }
.artist-row .cover { width: 52px; }
.artist-row:hover { background: var(--surface); }
.artist-row b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.artist-row small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.az { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 12px; position: sticky; top: 0; background: var(--bg); padding: 6px 0; z-index: 3; }
.az a { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; font-weight: 700; font-size: 13px; color: var(--muted); }
.az a:hover { background: var(--volt); color: #000; }

/* ================= FILTERS ================= */
.filters { margin-bottom: 8px; }
.filter-top { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.searchbox { display: flex; align-items: center; gap: 10px; background: var(--surface2); border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; color: var(--muted); }
.searchbox input { background: none; border: 0; outline: 0; padding: 10px 0; flex: 1; min-width: 0; }
.searchbox.sm { flex: 1; min-width: 160px; max-width: 320px; }
.searchbox.sm input { padding: 8px 0; font-size: 14px; }
.searchbox.big { margin-bottom: 16px; padding: 4px 18px; border: 2px solid var(--line); max-width: 680px; }
.searchbox.big:focus-within { border-color: var(--volt); }
.searchbox.big input { font-size: 17px; padding: 12px 0; }
.select { background: var(--surface2); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font-size: 14px; font-weight: 600; }
.filter-top .select { -webkit-appearance: none; appearance: none; height: 35px; padding: 0 32px 0 13px; font-size: 13.5px; font-weight: 600; line-height: 33px; cursor: pointer;
  background: var(--surface2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5f2e8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center / 14px; }
.filter-top .chip { height: 35px; padding: 0 13px; }
.filter-top .select:hover, .filter-top .chip:not(.on):hover { border-color: var(--surface3); }
.filter-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-top: 10px; display: grid; gap: 14px; animation: drop .18s ease-out; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px) } }
.fp-h { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.years { display: flex; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.years label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.years input { width: 92px; background: var(--surface2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; }

/* ================= PANELS / FORMS ================= */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; margin-bottom: 16px; width: 100%; }
.panel h2 { margin: 0 0 8px; font-size: 19px; display: flex; gap: 10px; align-items: center; }
.panel-h { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 8px; }
.panel-h > .ic { width: 30px; height: 30px; color: var(--volt); margin-top: 2px; }
.panel-h p { margin: 2px 0 0; }
.brand-sp { color: #1ed760 !important; }
.sub-panel { background: var(--bg2); border-radius: 12px; padding: 14px; margin: 12px 0; }
.sub-panel p { margin: 4px 0 10px; }
.ok-line { color: var(--ok); display: flex; gap: 6px; align-items: center; font-weight: 600; }
.howto { margin: 10px 0; }
.howto summary { cursor: pointer; font-weight: 650; color: var(--volt); }
.howto ol { padding-left: 20px; line-height: 1.8; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.inline-form input, .row-btns input, textarea, .fld input, .fld select, .copy-box input {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; outline: 0; min-width: 0; }
.inline-form input { flex: 1; min-width: 200px; }
textarea { width: 100%; resize: vertical; }
input:focus, textarea:focus { border-color: var(--volt) !important; }
.fld { display: grid; gap: 6px; margin-bottom: 12px; }
.fld span { font-size: 13px; color: var(--muted); font-weight: 600; }
.stack { display: grid; gap: 4px; max-width: 520px; }
.drop { display: flex; gap: 10px; align-items: center; justify-content: center; border: 2px dashed var(--surface3); border-radius: 14px; padding: 20px; cursor: pointer; color: var(--muted); font-weight: 600; margin-top: 8px; }
.drop:hover { border-color: var(--volt); color: var(--volt); }
.toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; margin: 8px 0; }
.toggle input { display: none; }
.toggle span { width: 40px; height: 23px; border-radius: 99px; background: var(--surface3); position: relative; transition: .2s; flex: none; }
.toggle span::after { content: ''; position: absolute; width: 17px; height: 17px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: .2s; }
.toggle input:checked + span { background: var(--volt); }
.toggle input:checked + span::after { left: 20px; background: #000; }
.profile-panel { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.pf-name { font-size: 30px; }
.danger-zone { border-color: rgb(255 90 78 / .35); }
.snap { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.copy-box { display: flex; gap: 8px; margin: 12px 0; }
.copy-box input { flex: 1; font-size: 13px; }
.copy { cursor: pointer; }

.empty { text-align: center; padding: 56px 20px; max-width: 460px; margin: 0 auto; }
.empty-bolt { width: 72px; opacity: .9; margin-bottom: 10px; filter: drop-shadow(0 6px 20px rgb(var(--volt-rgb) / .3)); }
.empty h3 { font-size: 22px; margin-bottom: 6px; }
.empty .row-btns { justify-content: center; }

/* ================= PLAYER BAR ================= */
#playerbar { grid-area: bar; background: #08080a; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(180px, 1fr) minmax(300px, 1.4fr) minmax(180px, 1fr); align-items: center; gap: 16px; padding: 0 16px; position: relative; z-index: 20; }
body:not(.has-track) #playerbar { display: none; }
.pb-progress { display: none; }
.pb-left { display: flex; align-items: center; gap: 12px; min-width: 0; cursor: pointer; }
.pb-art { width: 58px; border-radius: 8px; box-shadow: 0 4px 12px rgb(0 0 0 / .5); }
.pb-meta { min-width: 0; }
.pb-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-artist { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.err-text { color: var(--volt-2); font-size: 13px; }
.pb-center { display: grid; gap: 4px; justify-items: center; }
.pb-ctrls { display: flex; align-items: center; gap: 8px; }
.play-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--volt); color: #000; display: grid; place-items: center; border: 2px solid #000; box-shadow: 2px 2px 0 #000; flex: none; transition: transform .08s; }
.play-btn:active { transform: scale(.94); }
.play-btn .ic { width: 22px; height: 22px; }
.play-btn.busy { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgb(var(--volt-rgb) / .25), 2px 2px 0 #000; } }
.play-btn.big { width: 72px; height: 72px; box-shadow: 4px 4px 0 #000; border-width: 3px; }
.play-btn.big .ic { width: 32px; height: 32px; }
.pb-seek { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 620px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pb-seek span { width: 40px; text-align: center; }
.pb-right { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
input[type=range] { -webkit-appearance: none; appearance: none; background: transparent; height: 18px; cursor: pointer; flex: 1; min-width: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--volt) 0 var(--p, 0%), var(--surface3) var(--p, 0%) 100%); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--volt) 0 var(--p, 0%), var(--surface3) var(--p, 0%) 100%); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--volt); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: var(--volt); margin-top: -4.5px; border: 2px solid #000; }
input[type=range]::-moz-range-thumb { width: 11px; height: 11px; border-radius: 50%; background: var(--volt); border: 2px solid #000; }
.vol { max-width: 100px; }
.seg { display: inline-flex; background: var(--surface2); border-radius: 999px; padding: 3px; border: 1px solid var(--line); }
.seg button { display: flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.seg button .ic { width: 16px; height: 16px; }
.seg button.on { background: var(--volt); color: #000; }
.seg.big button { padding: 9px 16px; font-size: 14px; }

/* ================= YOUTUBE DOCK ================= */
#yt-dock { position: fixed; right: 16px; bottom: calc(var(--bar) + 14px); width: 356px; z-index: 60; background: #000; border-radius: 12px; overflow: hidden; border: 2px solid #000; box-shadow: 4px 4px 0 var(--volt), 0 14px 40px rgb(0 0 0 / .6); transform: translateY(30px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
#yt-dock.show { opacity: 1; transform: none; pointer-events: auto; }
body.queue-open #yt-dock { right: calc(var(--queue) + 16px); }
.dock-bar { display: flex; align-items: center; gap: 4px; padding: 4px 6px 4px 12px; background: var(--surface); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.dock-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-btn { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--text); background: var(--surface2); border: 1px solid var(--line); flex: none; transition: background .15s, color .15s; }
.dock-btn svg { width: 22px; height: 22px; }
.dock-btn:hover { background: var(--volt); color: #000; border-color: #000; }
body.dock-min #yt-dock:not(.in-np) .dock-frame { height: 1px; opacity: .01; }
body.dock-min #yt-dock:not(.in-np) { width: 300px; }
body.dock-min [data-p="dock-size"] { display: none; }
.dock-frame { width: 100%; height: 200px; }
body.dock-big #yt-dock { width: 560px; }
body.dock-big .dock-frame { height: 315px; }
#yt-player, .dock-frame iframe { width: 100%; height: 100%; display: block; }
#yt-dock.in-np { border-radius: 16px; box-shadow: 0 20px 60px rgb(0 0 0 / .6); border: 0; transition: none; z-index: 80; }
#yt-dock.in-np .dock-bar { display: none; }
#yt-dock.in-np .dock-frame { height: 100%; }

/* ================= NOW PLAYING SHEET ================= */
#np { position: fixed; inset: 0; z-index: 70; background: var(--bg); transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); overflow: hidden; visibility: hidden; }
body.np-open #np { transform: none; visibility: visible; }
.np-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(60px) saturate(1.4) brightness(.38); transform: scale(1.2); }
.np-layout { position: relative; height: 100%; display: flex; justify-content: center; gap: 8px; }
.np-queue { width: 400px; flex: none; display: flex; flex-direction: column; min-height: 0; margin: max(16px, env(safe-area-inset-top)) 16px 16px 0; background: rgb(12 12 14 / .55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgb(255 255 255 / .08); border-radius: 20px; overflow: hidden; animation: drop .2s ease-out; }
.np-q-head { display: flex; align-items: center; gap: 10px; padding: 14px 12px 6px 18px; }
.np-q-head h3 { flex: 1; font-size: 19px; }
.np-q-head .tiny { display: inline-flex; align-items: center; gap: 2px; }
.np-q-head .tiny .ic { width: 14px; height: 14px; }
.np-q-body { overflow-y: auto; padding: 0 8px 16px; flex: 1; overscroll-behavior: contain; }
.np-scroll { flex: 1; min-width: 0; position: relative; height: 100%; overflow-y: auto; padding: max(16px, env(safe-area-inset-top)) 20px calc(30px + var(--safe-b)); max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; }
.np-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.np-ctx { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.np-media { display: grid; place-items: center; margin: 4px 0 22px; }
.np-art { width: min(100%, 44vh, 420px); border-radius: 16px; box-shadow: 0 24px 60px rgb(0 0 0 / .6); }
.np-slot { width: 100%; aspect-ratio: 16 / 9; min-height: 200px; border-radius: 16px; background: #000; }
.np-info { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.np-info h2 { margin: 0; font-size: clamp(22px, 4vw, 32px); }
.np-artist { color: var(--text); opacity: .8; font-weight: 600; font-size: 16px; margin-top: 4px; display: block; text-align: left; }
.np-album { color: var(--muted); font-size: 13.5px; margin-top: 4px; display: inline-flex; gap: 6px; align-items: center; text-align: left; }
.np-album .ic { width: 15px; height: 15px; }
.np-seek { margin-top: 18px; }
.np-seek input { width: 100%; }
.np-times { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.np-ctrls { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 18px; padding: 0 4px; }
.np-extra { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.np-tags { margin-top: 18px; }

/* ================= QUEUE ================= */
.q-h { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin: 16px 6px 8px; display: flex; justify-content: space-between; }
.q-h .lnk { text-transform: none; letter-spacing: 0; color: var(--volt); }
.qrow { display: grid; grid-template-columns: 18px 42px 1fr 30px; gap: 10px; align-items: center; padding: 6px; border-radius: 10px; }
.qrow.now { grid-template-columns: 42px 1fr; background: rgb(var(--volt-rgb) / .09); }
.qrow.now .row-title { color: var(--volt); }
.qrow:not(.now):hover { background: var(--surface); }
.qrow .row-main { cursor: pointer; }
.grip { color: var(--muted); cursor: grab; display: grid; place-items: center; width: 30px; height: 40px; margin-left: -6px; touch-action: none; }
.grip .ic { width: 18px !important; height: 18px !important; }
.qrow { grid-template-columns: 30px 42px 1fr 30px !important; }
.qrow.now { grid-template-columns: 42px 1fr !important; }
.qrow.dragging { background: var(--surface3); box-shadow: 0 10px 30px rgb(0 0 0 / .5); outline: 2px solid var(--volt); position: relative; z-index: 2; }
.qtag { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--volt); border: 1px solid rgb(var(--volt-rgb) / .5); border-radius: 5px; padding: 0 4px; margin-left: 4px; }
.q-h span { display: inline; }
.grip .ic { width: 16px; height: 16px; }

/* ================= MENUS / MODALS / TOASTS ================= */
.menu-back { position: fixed; inset: 0; z-index: 90; }
.menu { position: fixed; z-index: 91; width: 260px; max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); overflow: auto; background: var(--surface2); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 18px 50px rgb(0 0 0 / .6); animation: pop .14s ease-out; }
@keyframes pop { from { opacity: 0; transform: scale(.97) } }
.menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 9px; text-align: left; font-size: 14.5px; font-weight: 550; }
.menu button .ic { width: 18px; height: 18px; color: var(--muted); }
.menu button:hover { background: var(--surface3); }
.menu button.danger, .menu button.danger .ic { color: var(--danger); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 6px; }
.menu-h { padding: 8px 12px 6px; display: grid; }
.menu-h small { color: var(--muted); }
.menu-h b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu.sheet { left: 0; right: 0; bottom: 0; width: auto; border-radius: 20px 20px 0 0; padding: 10px 10px calc(14px + var(--safe-b)); max-height: 80vh; max-height: 80dvh; animation: up .2s ease-out; }
.menu.sheet::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--surface3); margin: 0 auto 8px; }
.menu.sheet ~ .menu-back, .menu-back:has(+ .menu.sheet) { background: rgb(0 0 0 / .5); }
@keyframes up { from { transform: translateY(100%) } }

.modal-wrap { position: fixed; inset: 0; z-index: 100; background: rgb(0 0 0 / .65); display: grid; place-items: center; padding: 16px; animation: fade .15s; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal-wrap.out { opacity: 0; transition: opacity .18s; }
@keyframes fade { from { opacity: 0 } }
.modal { background: var(--surface); border: 2px solid #000; box-shadow: 6px 6px 0 var(--volt); border-radius: 20px; padding: 24px; width: min(460px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; position: relative; animation: pop .18s; }
.modal.wide { width: min(620px, 100%); }
.modal h3 { margin: 0 32px 10px 0; font-size: 22px; }
.modal-x { position: absolute; top: 12px; right: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.pick-list { display: grid; gap: 4px; max-height: 50vh; max-height: 50dvh; overflow: auto; margin: 10px 0; }
.pick { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; text-align: left; cursor: pointer; width: 100%; }
.pick:hover { background: var(--surface2); }
.pick b { display: block; } .pick small { color: var(--muted); }
.pick input { width: 20px; height: 20px; accent-color: var(--volt); }

#toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--bar) + 16px); z-index: 120; display: grid; gap: 8px; justify-items: center; pointer-events: none; width: min(440px, calc(100% - 24px)); }
.toast { background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: 12px; font-weight: 650; font-size: 14px; box-shadow: 0 10px 30px rgb(0 0 0 / .5); animation: up2 .2s ease-out; pointer-events: auto; transition: opacity .3s, transform .3s; }
.toast.err { background: var(--danger); color: #fff; }
.toast.ok { background: var(--volt); color: #000; border: 2px solid #000; }
.toast.out { opacity: 0; transform: translateY(8px); }
.toast.prog { background: var(--surface2); color: var(--text); border: 1px solid var(--line); width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-items: center; }
.toast.prog .bar { grid-column: 1; height: 5px; background: var(--surface3); border-radius: 4px; overflow: hidden; }
.toast.prog .bar i { display: block; height: 100%; background: var(--volt); transition: width .3s; }
.toast.prog button { grid-row: 1 / 3; grid-column: 2; }
@keyframes up2 { from { opacity: 0; transform: translateY(10px) } }

.nag { display: flex; align-items: center; gap: 12px; margin: 14px clamp(16px, 3.5vw, 40px) 0; padding: 10px 14px; background: rgb(var(--volt-rgb) / .1); border: 1px solid rgb(var(--volt-rgb) / .35); border-radius: 12px; font-size: 14px; flex-wrap: wrap; }
.nag > .ic { color: var(--volt); }
.nag span { flex: 1; min-width: 160px; }
.offline-pill { display: none; }
body.is-offline .offline-pill { display: inline-block; background: var(--volt-2); color: #000; font-weight: 800; font-size: 11px; padding: 3px 9px; border-radius: 99px; text-transform: uppercase; }

/* ================= ONBOARDING ================= */
#onboarding { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; overflow: auto; height: 100vh; height: 100dvh;
  background: radial-gradient(1000px 500px at 50% -10%, rgb(var(--volt-rgb) / .18), transparent 60%), var(--bg); }
.ob-card { width: min(440px, 100%); text-align: center; display: grid; gap: 14px; justify-items: center; }
.ob-logo { width: 120px; filter: drop-shadow(0 10px 30px rgb(var(--volt-rgb) / .45)); animation: zap 2.6s ease-in-out infinite; }
.ob-card h1 { font-size: clamp(52px, 14vw, 76px); line-height: .9; color: var(--volt); text-shadow: 4px 4px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; }
.ob-card form { width: 100%; display: grid; gap: 14px; justify-items: center; background: var(--surface); padding: 22px; border-radius: 20px; border: 2px solid #000; box-shadow: 6px 6px 0 var(--volt); text-align: left; }
.ob-card .fld { width: 100%; }
.ob-pic { display: grid; justify-items: center; gap: 8px; cursor: pointer; color: var(--volt); font-weight: 700; font-size: 13px; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1180px) {
  .row { grid-template-columns: 56px minmax(0, 1.6fr) minmax(0, 1fr) 38px 52px 38px; }
  .row-meta { display: none; }
  body.queue-open .row { grid-template-columns: 56px minmax(0, 1fr) 38px 52px 38px; }
  body.queue-open .row-album { display: none; }
}
@media (max-width: 1000px) {
  :root { --side: 76px; }
  .sidebar { padding: 14px 8px; align-items: center; }
  .brand .wordmark, .nav a, .side-h, .side-pl, .profile-chip span { font-size: 0; }
  .nav a { justify-content: center; padding: 12px; }
  .nav a .ic { width: 22px; height: 22px; }
  .brand { padding: 2px 0 16px; }
  .side-h, .side-pl { display: none; }
  .profile-chip { margin-top: auto; border: 0; padding: 4px; }
  body.queue-open #app { grid-template-columns: var(--side) 1fr 0; }
  #queue-panel { display: none; }
  body.queue-open #yt-dock { right: 16px; }
  #playerbar { grid-template-columns: 1fr 1.4fr auto; }
  .vol, [data-p="mute"] { display: none; }
}
@media (max-width: 760px) {
  .row { grid-template-columns: 50px minmax(0, 1fr) 38px 46px 34px; gap: 8px; padding: 6px 4px; }
  .hide-sm { display: none !important; }
  .row .like { opacity: 1 !important; }
  .row .like:not(.on) { display: none; }
  .row { grid-template-columns: 50px minmax(0, 1fr) auto 46px 34px; }
}
@media (max-width: 700px) {
  :root { --bar: 66px; }
  body { font-size: 15px; }
  #app { grid-template-columns: 1fr !important; grid-template-rows: auto 1fr; grid-template-areas: "main"; }
  .sidebar { display: none; }
  #main { padding-bottom: calc(var(--tab) + var(--safe-b) + 10px); }
  body.has-track #main { padding-bottom: calc(var(--tab) + var(--bar) + var(--safe-b) + 18px); }
  .topbar { display: flex; align-items: center; gap: 10px; padding: max(10px, env(safe-area-inset-top)) 16px 4px; position: sticky; top: 0; z-index: 10; background: linear-gradient(var(--bg) 70%, transparent); }
  .brand-m { display: flex; align-items: center; gap: 6px; flex: 1; }
  .brand-m img { width: 28px; }
  .brand-m .wordmark { font-size: 21px; }
  .profile-chip.compact { margin: 0; border: 0; padding: 0; }
  .profile-chip.compact span { display: none; }
  .page { padding: 10px 16px 30px; }
  .hero { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-art { width: min(58vw, 230px); align-self: center; }
  .hero h1 { font-size: clamp(28px, 8vw, 40px); }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--tab) + var(--safe-b)); padding-bottom: var(--safe-b); display: grid; grid-template-columns: repeat(5, 1fr); background: rgb(8 8 10 / .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .tabbar a { display: grid; justify-items: center; align-content: center; gap: 3px; font-size: 10.5px; font-weight: 650; color: var(--muted); }
  .tabbar a .ic { width: 23px; height: 23px; }
  .tabbar a.on { color: var(--volt); }
  #playerbar { position: fixed; left: 8px; right: 8px; bottom: calc(var(--tab) + var(--safe-b) + 6px); height: var(--bar); border-radius: 14px; border: 1px solid var(--line); background: #1a1a1f; grid-template-columns: 1fr auto; padding: 0 8px; gap: 6px; overflow: hidden; box-shadow: 0 10px 30px rgb(0 0 0 / .5); }
  .pb-progress { display: block; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--surface3); border-radius: 2px; }
  .pb-progress i { display: block; height: 100%; background: var(--volt); }
  .pb-art { width: 46px; }
  .pb-center { justify-items: end; }
  .pb-ctrls { gap: 2px; }
  .play-btn { width: 42px; height: 42px; }
  .pb-left .like { display: none; }
  #yt-dock { right: 10px; bottom: calc(var(--tab) + var(--bar) + var(--safe-b) + 14px); width: 200px; }
  .dock-frame { height: 200px; }
  body.dock-big #yt-dock { width: calc(100% - 20px); }
  body.dock-big .dock-frame { height: auto; aspect-ratio: 16/9; min-height: 200px; }
  #toasts { bottom: calc(var(--tab) + var(--bar) + var(--safe-b) + 16px); }
  .cards { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .card { padding: 6px; }
  .fab-play { opacity: 1; transform: none; width: 40px; height: 40px; }
  .quick { grid-template-columns: 1fr 1fr; gap: 8px; }
  .qt { grid-template-columns: 48px 1fr; font-size: 13px; padding-right: 8px; }
  .qt small { display: none; }
  .qt-art { width: 48px; height: 48px; }
  .genre-tiles { grid-template-columns: repeat(2, 1fr); }
  .searchbox.sm { max-width: none; }
  .actions .btn.ghost { padding: 8px 10px; font-size: 13px; }
  .np-scroll { padding-left: 16px; padding-right: 16px; }
  .seg.big button { padding: 8px 12px; font-size: 13px; }
  .panel { padding: 16px; }
  .artist-list { grid-template-columns: 1fr; }
  .modal { padding: 20px; }
}
@media (max-width: 380px) {
  .row-dur { display: none; }
  .row { grid-template-columns: 50px minmax(0, 1fr) auto 34px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ===== Round 2 ===== */
.brand-am { color: #fa2d48 !important; }
.app-foot { padding: 10px clamp(16px, 3.5vw, 40px) 24px; color: var(--dim); font-size: 12px; text-align: center; }
.app-foot a { text-decoration: underline; }
.copyright { color: var(--dim); font-size: 12px; margin: 4px 0 0; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.4; text-align: left; cursor: pointer; }
.agree input { width: 20px; height: 20px; accent-color: var(--volt); flex: none; margin-top: 1px; }
.agree .lnk { color: var(--volt); text-decoration: underline; }
.legal-box { max-height: 46vh; max-height: 46dvh; overflow-y: auto; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px 12px; margin: 10px 0 14px; font-size: 13.5px; }
.legal h3, .legal-box h3 { font-size: 20px; margin: 18px 0 6px; }
.legal h4, .legal-box h4 { font-size: 14.5px; margin: 14px 0 4px; display: block; }
.legal p, .legal li, .legal-box p, .legal-box li { color: #cfcbc0; }
.legal-box ul, .legal ul { padding-left: 18px; }
.modal h3 .ic { vertical-align: -3px; color: var(--volt); }
@media (max-width: 900px) {
  .np-layout { display: block; overflow-y: auto; }
  .np-scroll { height: auto; overflow: visible; min-height: 100%; }
  .np-queue { width: auto; margin: 0 12px calc(24px + var(--safe-b)); max-width: 720px; }
  .np-q-body { max-height: none; overflow: visible; }
  .np-layout .np-scroll { min-height: auto; }
}
@media (max-width: 700px) {
  .app-foot { padding-bottom: 8px; }
  .dock-btn { width: 38px; height: 38px; }
  body.dock-min #yt-dock:not(.in-np) { width: 200px; }
}

/* ===== Round 3 ===== */
.row-title .tt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-main, .row-sub, .card-t, .card-s { min-width: 0; }
.backbtn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 8px; margin: 0 0 14px -4px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--line); font-weight: 650; font-size: 14px; color: var(--text); max-width: 100%; }
.backbtn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.backbtn:hover { background: var(--volt); color: #000; border-color: #000; }
.np-top { position: sticky; top: 0; z-index: 5; margin: 0 -20px 14px; padding: max(10px, env(safe-area-inset-top)) 20px 10px; background: transparent; }
.np-scroll { padding-top: 0 !important; }
.np-top .ib { width: 44px; height: 44px; color: var(--text); }
.np-top .ib .ic { width: 24px; height: 24px; }
@media (max-width: 700px) { .np-top { margin: 0 -16px 12px; padding-left: 16px; padding-right: 16px; } }

/* ===== Round 4 ===== */
/* --- nothing may overflow into its neighbour --- */
.row > *, .qrow > *, .pick > *, .qt > *, .artist-row > *, .snap > *, .np-info > *, .pb-left > *, .panel-h > *, .profile-panel > *, .jump > *, .card > *, .sec-h > * { min-width: 0; }
.artist-row b, .artist-row small, .row-title, .row-sub, .row-album, .card-t, .card-s, .qt span, .pb-title, .pb-artist, .spl span, .pick b, .pick small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero h1, .np-info h2, .jump h2, .home-hero h1, .page-h, .pf-name { overflow-wrap: anywhere; }
@media (min-width: 1181px) { .row-meta { display: flex; justify-content: flex-end; align-items: center; gap: 6px; } }
@media (max-width: 760px) { .row-meta { display: none !important; } }
.row-meta .pill { flex: 0 1 auto; min-width: 0; margin: 0; }
.sec-h { gap: 12px; } .sec-h h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip, .tab, .btn { max-width: 100%; }
.chip { min-width: 0; } .chip > :not(.ic) { overflow: hidden; text-overflow: ellipsis; }

/* --- liked heart cover --- */
.heart-cover { display: grid !important; place-items: center; color: #000; }
.heart-cover .ic { width: 46%; height: 46%; stroke-width: 1.6; }
.cover.sm.heart-cover .ic { width: 56%; height: 56%; }
.qt .heart-cover { width: 56px; height: 56px; border-radius: 0; }

/* --- video thumbnails in rows (YouTube results) --- */
.cover.wide { aspect-ratio: 16 / 9; width: 72px; border-radius: 6px; }
.row.is-video { grid-template-columns: 86px minmax(0, 1.6fr) minmax(0, 1fr) 150px 38px 52px 38px; }
.row.is-video .row-num .eq { width: 72px; height: 41px; }

/* --- full screen: dark when there's no cover --- */
.np-bg.none { background: radial-gradient(900px 600px at 50% 0%, #1b1b20, var(--bg)); filter: none; transform: none; inset: 0; }
.np-top .ib { filter: drop-shadow(0 1px 3px rgb(0 0 0 / .6)); }
.np-toggles { display: flex; gap: 8px; flex-wrap: wrap; }
.np-lyrics:empty { display: none; }
.np-lyrics { margin: 22px 0 10px; background: rgb(12 12 14 / .5); border: 1px solid rgb(255 255 255 / .08); border-radius: 18px; padding: 16px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lyr-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.lyr-head h3 { font-size: 20px; }
.lyr-frame { width: 100%; height: min(70vh, 640px); border: 0; border-radius: 12px; background: #fff; display: block; }
.lyr-empty { display: grid; gap: 10px; justify-items: start; }
.lyr-empty p { margin: 0; }

/* --- YouTube window: + when minimized --- */
.dock-btn .pv { display: none; }
body.dock-min .dock-btn .pv { display: inline; }

/* --- big immersive loader --- */
.bz-loader { min-height: 52vh; display: grid; place-content: center; justify-items: center; gap: 22px; text-align: center; animation: fade .3s; }
.bz-loader.sm { min-height: 220px; gap: 14px; }
.bz-loader.search { min-height: 40vh; }
.bz-loader p { margin: 0; color: var(--muted); font-weight: 600; letter-spacing: .02em; animation: breathe 1.6s ease-in-out infinite; }
.bz-orb { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.bz-loader.sm .bz-orb { width: 92px; height: 92px; }
.bz-orb img { width: 46%; position: relative; z-index: 2; filter: drop-shadow(0 0 18px rgb(var(--volt-rgb) / .7)); animation: zap 1.1s ease-in-out infinite; }
.bz-orb::before { content: ''; position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle, rgb(var(--volt-rgb) / .35), rgb(var(--volt-2-rgb) / .08) 60%, transparent 70%); animation: breathe 1.4s ease-in-out infinite; }
.bz-orb span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgb(var(--volt-rgb) / .55); animation: ripple 2.1s cubic-bezier(.2, .6, .3, 1) infinite; opacity: 0; }
.bz-orb span:nth-child(2) { animation-delay: .7s; } .bz-orb span:nth-child(3) { animation-delay: 1.4s; }
@keyframes ripple { 0% { transform: scale(.35); opacity: .9 } 100% { transform: scale(1.25); opacity: 0 } }
@keyframes breathe { 50% { opacity: .55; transform: scale(.96) } }

/* --- immersive home --- */
.home .home-hero { position: relative; overflow: hidden; border-radius: 26px; margin: 0 0 22px; padding: clamp(24px, 4vw, 48px); min-height: clamp(230px, 32vw, 330px); display: flex; align-items: flex-end; gap: 24px; border: 1px solid rgb(255 255 255 / .06); isolation: isolate; }
.hh-bg { position: absolute; inset: -60px; z-index: -2; background: radial-gradient(700px 400px at 15% 20%, rgb(var(--volt-rgb) / .35), transparent 60%), radial-gradient(600px 400px at 90% 90%, rgb(var(--volt-2-rgb) / .3), transparent 60%), #141418; background-size: cover; background-position: center; filter: blur(46px) saturate(1.5) brightness(.6); transform: scale(1.15); animation: drift 26s ease-in-out infinite alternate; }
.home-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(12 12 14 / .1), rgb(12 12 14 / .78) 85%), linear-gradient(90deg, rgb(12 12 14 / .55), transparent 70%); }
@keyframes drift { from { transform: scale(1.15) translate(0, 0) } to { transform: scale(1.3) translate(-30px, 20px) } }
.hh-txt { flex: 1; min-width: 0; }
.home-hero h1 { font-size: clamp(34px, 6vw, 68px); line-height: .95; font-weight: 800; margin: 6px 0 10px; text-shadow: 0 4px 30px rgb(0 0 0 / .45); }
.home-hero p { margin: 0 0 4px; color: #d9d5ca; font-weight: 500; }
.btn.glass { background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn.glass:hover { background: rgb(255 255 255 / .18); }
.hh-collage { position: relative; width: clamp(180px, 22vw, 260px); aspect-ratio: 1; flex: none; }
.hh-collage img { position: absolute; width: 62%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; box-shadow: 0 18px 40px rgb(0 0 0 / .55); border: 2px solid rgb(0 0 0 / .6);
  left: calc(var(--i) * 12%); top: calc(var(--i) * 11%); transform: rotate(calc((var(--i) - 1.5) * 6deg)); transition: transform .3s; }
.home-hero:hover .hh-collage img { transform: rotate(calc((var(--i) - 1.5) * 9deg)) translateY(calc(var(--i) * -3px)); }
.jump { display: flex; gap: 20px; align-items: center; background: linear-gradient(110deg, rgb(var(--volt-rgb) / .12), var(--surface) 55%); border: 1px solid var(--line); border-radius: 20px; padding: 16px; margin: 8px 0 6px; }
.jump-art { width: clamp(88px, 12vw, 132px); flex: none; }
.jump-art .cover { width: 100%; border-radius: 14px; box-shadow: 0 10px 30px rgb(0 0 0 / .5); }
.jump-txt { min-width: 0; flex: 1; }
.jump h2 { margin: 4px 0 2px; font-size: clamp(20px, 3vw, 28px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jump p { margin: 0; color: var(--muted); }
.jump .row-btns { margin-top: 10px; }
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(140px, 15vw, 176px); gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 2px 2px 10px; margin: 0 -2px; scrollbar-width: thin; scrollbar-color: var(--surface3) transparent; }
.shelf > * { scroll-snap-align: start; }
.shelf .card { padding: 8px; }
.rows.two { grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); column-gap: 14px; }
.rows.two .row { grid-template-columns: 56px minmax(0, 1fr) 38px 52px 38px; }
.rows.two .row-album, .rows.two .row-meta { display: none; }
.new-badge { position: absolute; left: 8px; top: 8px; background: var(--volt); color: #000; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; padding: 2px 7px; border-radius: 6px; border: 1.5px solid #000; }
.card.skel .cover { background: linear-gradient(90deg, var(--surface2), var(--surface3), var(--surface2)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.card.skel .card-t, .card.skel .card-s { height: 12px; border-radius: 6px; background: var(--surface2); margin-top: 8px; width: 80%; }
.card.skel .card-s { width: 55%; }
@keyframes shimmer { to { background-position: -200% 0 } }
.empty-hero { min-height: 50vh !important; }

/* --- search --- */
.search-row { display: flex; gap: 10px; align-items: center; max-width: 740px; margin-bottom: 16px; }
.search-row .searchbox.big { flex: 1; margin: 0; min-width: 0; }
.sb-clear { width: 32px; height: 32px; }
.mic-btn { width: 56px; height: 56px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--volt); color: #000; border: 2px solid #000; box-shadow: 3px 3px 0 #000; transition: transform .1s; }
.mic-btn .ic { width: 24px; height: 24px; }
.mic-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
.tab .ic { width: 16px; height: 16px; }

/* --- voice assistant --- */
.ask-btn { display: flex; align-items: center; gap: 13px; padding: 10px 12px; margin-top: 6px; border-radius: 10px; font-weight: 700; color: var(--volt); border: 1px dashed rgb(var(--volt-rgb) / .45); width: 100%; }
.ask-btn:hover { background: rgb(var(--volt-rgb) / .1); }
.mic-top { color: var(--volt); }
#voice { position: fixed; inset: 0; z-index: 150; display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; justify-items: center; }
.vc-back { position: absolute; inset: 0; background: rgb(0 0 0 / .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .22s; }
.vc-sheet { position: relative; width: min(560px, 100%); min-width: 0; max-width: 100%; overflow: hidden; margin: 0 0 max(16px, env(safe-area-inset-bottom)); background: linear-gradient(180deg, #1a1a20, #101013); border: 1px solid rgb(255 255 255 / .08); border-radius: 28px; padding: 26px 20px 20px; text-align: center; box-shadow: 0 30px 80px rgb(0 0 0 / .6); transform: translateY(30px) scale(.98); opacity: 0; transition: transform .25s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
#voice.on .vc-back { opacity: 1; } #voice.on .vc-sheet { transform: none; opacity: 1; }
.vc-x { position: absolute; top: 12px; right: 12px; }
.vc-orb { position: relative; width: 150px; height: 150px; margin: 0 auto 14px; cursor: pointer; border-radius: 50%; }
.vc-orb i { position: absolute; inset: 4px; border-radius: 50%; mix-blend-mode: screen; filter: blur(6px); opacity: 1; animation: blob 6s ease-in-out infinite; }
.vc-orb i:nth-child(1) { background: radial-gradient(circle at 30% 30%, var(--volt), transparent 60%); }
.vc-orb i:nth-child(2) { background: radial-gradient(circle at 70% 40%, var(--volt-2), transparent 60%); animation-delay: -2s; animation-duration: 7s; }
.vc-orb i:nth-child(3) { background: radial-gradient(circle at 50% 75%, #ff4fa3, transparent 60%); animation-delay: -4s; animation-duration: 8s; }
.vc-orb b { position: absolute; inset: 30%; border-radius: 50%; background: var(--logo-url, url(../icons/icon-192.png)) center/62% no-repeat, radial-gradient(circle, var(--volt-hi), var(--volt)); box-shadow: 0 0 40px rgb(var(--volt-rgb) / .6); }
@keyframes blob { 0%, 100% { transform: rotate(0) scale(1) } 33% { transform: rotate(120deg) scale(1.08) translate(4px, -3px) } 66% { transform: rotate(240deg) scale(.95) translate(-3px, 4px) } }
#voice[data-state="idle"] .vc-orb i { animation-duration: 12s; opacity: .55; }
#voice[data-state="listening"] .vc-orb { animation: listen 1s ease-in-out infinite; }
#voice[data-state="listening"] .vc-orb i { animation-duration: 2.2s; }
#voice[data-state="thinking"] .vc-orb { animation: spin 1.4s linear infinite; }
#voice[data-state="speaking"] .vc-orb { animation: talk .45s ease-in-out infinite alternate; }
@keyframes listen { 50% { transform: scale(1.1) } }
@keyframes spin { to { transform: rotate(360deg) } }
@keyframes talk { from { transform: scale(.96) } to { transform: scale(1.08) } }
.vc-heard { font-family: var(--display); font-size: clamp(20px, 4vw, 26px); font-weight: 700; min-height: 1.3em; margin-bottom: 6px; overflow-wrap: anywhere; }
.vc-heard.empty { display: none; }
.vc-reply { color: var(--muted); font-weight: 600; min-height: 1.4em; margin-bottom: 16px; }
.vc-form { display: flex; gap: 8px; margin-bottom: 12px; }
.vc-form input { flex: 1; min-width: 0; background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; outline: 0; }
.vc-sugg { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.vc-sugg .chip { flex: none; }

@media (max-width: 900px) {
  .hh-collage { display: none; }
}
@media (max-width: 760px) {
  .row.is-video { grid-template-columns: 82px minmax(0, 1fr) auto 46px 34px; }
}
@media (max-width: 700px) {
  .home .home-hero { border-radius: 20px; min-height: 260px; padding: 22px 18px; margin-top: 4px; }
  .rows.two .row { grid-template-columns: 50px minmax(0, 1fr) auto 46px 34px; }
  .jump { padding: 12px; gap: 14px; }
  .mic-btn { width: 50px; height: 50px; }
  .vc-sheet { margin: 0; border-radius: 26px 26px 0 0; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
}
@media (min-width: 701px) { .mic-top { display: none; } }
@media (max-width: 1000px) { .ask-btn { font-size: 0; justify-content: center; padding: 12px; border-style: solid; } .ask-btn .ic { width: 22px; height: 22px; } }

.gt b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.gt { min-width: 0; }

/* ===== Round 5: YouTube sync, Support, socials ===== */
.brand-yt { color: #ff3b30 !important; }
.btn.yt-save { border-color: rgb(255 59 48 / .45); color: #ffb4ae; background: rgb(255 59 48 / .08); }
.btn.yt-save:hover { background: rgb(255 59 48 / .18); color: #fff; }
.seg.choice { display: flex; }
.seg.choice label { flex: 1; cursor: pointer; }
.seg.choice input { position: absolute; opacity: 0; pointer-events: none; }
.seg.choice span { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); }
.seg.choice input:checked + span { background: var(--volt); color: #000; }
.seg.choice input:focus-visible + span { outline: 2px solid var(--volt); outline-offset: 2px; }
.yt-links { margin-top: 10px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.modal-actions.center { justify-content: center; }

/* --- the coffee button: warm gradient, rising steam, sweeping shine --- */
.coffee-btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 14px; padding: 12px 22px 12px 14px; border-radius: 999px;
  background: linear-gradient(120deg, var(--volt), var(--volt-2) 45%, var(--volt-2)); color: #1a1000; border: 2.5px solid #000; box-shadow: 4px 4px 0 #000, 0 10px 30px rgb(var(--volt-2-rgb) / .35);
  text-decoration: none; transition: transform .15s, box-shadow .15s; max-width: 100%; }
.coffee-btn:hover { transform: translate(-2px, -2px) rotate(-.5deg); box-shadow: 6px 6px 0 #000, 0 16px 40px rgb(var(--volt-2-rgb) / .5); }
.coffee-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
.cb-cup { position: relative; width: 46px; height: 46px; flex: none; border-radius: 50%; background: #1a1000; color: var(--volt); display: grid; place-items: center; }
.cb-cup .ic { width: 26px; height: 26px; }
.cb-cup i { position: absolute; top: 4px; width: 4px; height: 12px; border-radius: 4px; background: rgb(255 255 255 / .75); filter: blur(1.5px); opacity: 0; animation: steam 2.4s ease-in infinite; }
.cb-cup i:nth-child(1) { left: 15px; } .cb-cup i:nth-child(2) { left: 21px; animation-delay: .8s; } .cb-cup i:nth-child(3) { left: 27px; animation-delay: 1.6s; }
@keyframes steam { 0% { transform: translateY(8px) scaleY(.6); opacity: 0 } 30% { opacity: .8 } 100% { transform: translateY(-14px) scaleY(1.2) translateX(3px); opacity: 0 } }
.cb-txt { display: grid; text-align: left; min-width: 0; }
.cb-txt b { font-family: var(--display); font-size: 18px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.cb-txt small { font-size: 12px; font-weight: 600; opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-shine { position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .55) 50%, transparent 65%); transform: translateX(-120%); animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 0%, 55% { transform: translateX(-120%) } 85%, 100% { transform: translateX(120%) } }
.coffee-btn.big { padding: 16px 30px 16px 16px; gap: 16px; }
.coffee-btn.big .cb-cup { width: 58px; height: 58px; } .coffee-btn.big .cb-cup .ic { width: 32px; height: 32px; }
.coffee-btn.big .cb-txt b { font-size: 22px; }

/* --- Support page --- */
.sup-hero { position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; padding: clamp(24px, 5vw, 56px); display: flex; gap: 32px; align-items: center; border: 1px solid rgb(255 255 255 / .07); margin-bottom: 18px; }
.sup-bg { position: absolute; inset: -80px; z-index: -1; background: radial-gradient(500px 340px at 20% 30%, rgb(var(--volt-rgb) / .38), transparent 65%), radial-gradient(520px 360px at 85% 80%, rgb(var(--volt-2-rgb) / .32), transparent 65%), radial-gradient(400px 300px at 60% 10%, rgb(255 79 163 / .18), transparent 60%), #121215; filter: blur(30px); animation: drift 22s ease-in-out infinite alternate; }
.sup-txt { flex: 1; min-width: 0; }
.sup-txt h1 { font-size: clamp(32px, 5.5vw, 60px); line-height: 1; margin: 8px 0 14px; font-weight: 800; }
.sup-txt > p { color: #d9d5ca; max-width: 520px; margin: 0 0 22px; }
.sup-txt .tiny { margin-top: 16px; }
.sup-qr { flex: none; }
.qr-card { background: #fff; color: #111; border-radius: 22px; padding: 16px 16px 12px; display: grid; justify-items: center; gap: 8px; border: 3px solid #000; box-shadow: 6px 6px 0 var(--volt), 0 20px 50px rgb(0 0 0 / .5); transform: rotate(2deg); transition: transform .25s; }
.qr-card:hover { transform: rotate(0) scale(1.02); }
.qr-card img { width: clamp(170px, 20vw, 240px); height: auto; display: block; }
.qr-card span { font-weight: 700; font-size: 13px; }
.sup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.sup-grid .panel { margin: 0; }
.support-panel .coffee-btn { margin-top: 6px; }

/* --- Support popup --- */
.sup-pop { text-align: center; display: grid; justify-items: center; gap: 4px; }
.sup-pop h3 { margin: 4px 0 2px; font-size: 26px; }
.sup-pop p { margin: 0 0 12px; }
.sp-cup { position: relative; width: 74px; height: 74px; border-radius: 50%; background: radial-gradient(circle, var(--volt-hi), var(--volt-2)); color: #1a1000; display: grid; place-items: center; border: 3px solid #000; box-shadow: 3px 3px 0 #000; margin-top: 4px; animation: bob 2.6s ease-in-out infinite; }
.sp-cup .ic { width: 38px; height: 38px; }
.sp-cup i { position: absolute; top: -12px; width: 5px; height: 16px; border-radius: 5px; background: rgb(255 255 255 / .6); filter: blur(2px); opacity: 0; animation: steam 2.4s ease-in infinite; }
.sp-cup i:nth-of-type(1) { left: 26px; } .sp-cup i:nth-of-type(2) { left: 34px; animation-delay: .8s; } .sp-cup i:nth-of-type(3) { left: 42px; animation-delay: 1.6s; }
@keyframes bob { 50% { transform: translateY(-5px) rotate(-3deg) } }
.sp-qr { width: 150px; height: 150px; border-radius: 14px; background: #fff; padding: 8px; margin: 4px 0 14px; border: 2px solid #000; }

/* --- footer socials --- */
.foot-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 12px; }
.soc { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none !important; transition: transform .15s, background .15s, border-color .15s; max-width: 100%; }
.soc .ic { width: 34px; height: 34px; padding: 7px; border-radius: 50%; flex: none; color: #fff; background: linear-gradient(135deg, #feda75, #fa7e1e 30%, #d62976 60%, #962fbf 80%, #4f5bd5); }
.soc[href*="x.com"] .ic { background: #000; border: 1px solid #333; }
.soc.coffee .ic { background: linear-gradient(135deg, var(--volt), var(--volt-2)); color: #1a1000; }
.soc span { display: grid; text-align: left; line-height: 1.2; min-width: 0; }
.soc b { font-size: 13px; color: var(--text); } .soc small { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soc:hover { transform: translateY(-2px); background: var(--surface2); border-color: var(--surface3); }
.coffee-top { color: var(--volt) !important; }

@media (max-width: 760px) {
  .sup-hero { flex-direction: column; align-items: stretch; text-align: left; }
  .sup-qr { align-self: center; }
  .coffee-btn.big { width: 100%; }
}
@media (max-width: 420px) { .soc { padding-right: 12px; } .soc b { font-size: 12.5px; } }

/* ===== Round 6: accounts & sync ===== */
.ob-card .ob-terms { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.shake { animation: shake .45s; border-color: var(--danger) !important; }
@keyframes shake { 20%, 60% { transform: translateX(-6px) } 40%, 80% { transform: translateX(6px) } }
.ob-acct { width: 100%; display: grid; gap: 10px; background: var(--surface); border: 2px solid #000; box-shadow: 6px 6px 0 var(--volt); border-radius: 20px; padding: 18px; text-align: left; }
.ob-h { display: flex; gap: 12px; align-items: center; margin-bottom: 2px; }
.ob-h > .ic { width: 30px; height: 30px; color: var(--volt); }
.ob-h b { display: block; font-size: 16px; } .ob-h small { color: var(--muted); }
.btn.sso { width: 100%; justify-content: flex-start; padding: 12px 16px; font-size: 15px; gap: 12px; border-radius: 14px; }
.btn.sso .ic { width: 22px; height: 22px; }
.btn.sso span { flex: 1; text-align: center; margin-right: 22px; }
.sso-google { background: #fff; color: #1f1f1f; border-color: #dadce0; }
.sso-google:hover { background: #f1f3f4; }
.sso-discord { background: #5865F2; color: #fff; border-color: #4752c4; }
.sso-discord:hover { background: #4752c4; }
.sso-email { background: var(--surface2); }
.sso-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sso-row .btn.sso { justify-content: center; } .sso-row .btn.sso span { flex: 0 1 auto; margin: 0; }
.sso-col { display: grid; gap: 8px; max-width: 420px; }
.or { display: flex; align-items: center; gap: 12px; width: 100%; color: var(--muted); font-size: 13px; font-weight: 600; margin: 4px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-tabs { display: flex; background: var(--bg2); border-radius: 999px; padding: 4px; margin: 0 34px 16px 0; }
.auth-tabs button { flex: 1; padding: 9px; border-radius: 999px; font-weight: 700; color: var(--muted); }
.auth-tabs button.on { background: var(--volt); color: #000; }
.auth form { display: grid; gap: 2px; }
.auth .btn.big { margin-top: 8px; }
.pw { display: flex; align-items: center; gap: 4px; position: relative; }
.pw input { flex: 1; padding-right: 40px !important; }
.pw .ib { position: absolute; right: 4px; }
.forgot { justify-self: start; color: var(--volt); margin: -4px 0 6px; }
.auth-err { margin: 6px 0 0; }
.auth-err .lnk { color: var(--volt); text-decoration: underline; }
.auth-sent { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 8px 0; }
.auth-sent > .ic { width: 48px; height: 48px; color: var(--volt); }
.auth-sent .btn { width: 100%; }
.acct-panel { border-color: rgb(var(--volt-rgb) / .35); background: linear-gradient(135deg, rgb(var(--volt-rgb) / .07), var(--surface) 60%); }
.sync-st { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 14px; color: var(--muted); }
.sync-st .ic { width: 17px; height: 17px; }
.sync-st.ok { color: var(--ok); } .sync-st.err { color: var(--volt-2); } .sync-st.busy .ic { animation: breathe 1s infinite; color: var(--volt); }
.avatar { position: relative; overflow: visible; }
.avatar img { border-radius: 50%; }
.sync-dot { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; background: var(--muted); border: 2px solid var(--bg2); }
.sync-dot.synced { background: var(--ok); } .sync-dot.syncing { background: var(--volt); animation: breathe 1s infinite; } .sync-dot.error, .sync-dot.offline { background: var(--volt-2); }
.pick.wrap b, .pick.wrap small { white-space: normal; overflow: visible; }

/* ===== Round 7 (v1.1) ===== */
/* --- logo: Quicksand Bold wordmark, centred on the bolt --- */
:root { --logo: 'Quicksand', 'Nunito', 'Varela Round', var(--display); --topbar: 72px; }
.wordmark { font-family: var(--logo); font-style: normal; font-weight: 700; font-synthesis: none; letter-spacing: .02em; line-height: 1; text-transform: uppercase; }
.brand-row { display: inline-flex; align-items: center; justify-content: center; gap: 10px; line-height: 1; }
.brand-row .wordmark { display: block; margin-top: .04em; } /* Quicksand caps sit a hair high — nudge to optical centre */
.brand { flex-direction: row; align-items: center; justify-content: center; text-align: center; padding: 12px 6px 22px; }
.brand .wordmark { font-size: 28px; }
/* glowing, gently "breathing" bolt — only transform/opacity animate (cheap: no repainting) */
.logo-mark { position: relative; display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; isolation: isolate; }
.logo-mark img { width: 100%; height: 100%; position: relative; z-index: 1; filter: drop-shadow(0 0 4px rgb(var(--volt-rgb) / .65)); animation: bolt-pulse 2.8s ease-in-out infinite; }
.logo-mark::before { content: ''; position: absolute; inset: -55%; border-radius: 50%; z-index: 0; background: radial-gradient(circle, rgb(var(--volt-rgb) / .55) 0%, rgb(var(--volt-2-rgb) / .22) 38%, transparent 68%); animation: glow-pulse 2.8s ease-in-out infinite; pointer-events: none; }
@keyframes bolt-pulse { 0%, 100% { transform: scale(.95) } 50% { transform: scale(1.09) } }
@keyframes glow-pulse { 0%, 100% { transform: scale(.85); opacity: .55 } 50% { transform: scale(1.12); opacity: 1 } }
.logo-mark.big { width: 120px; height: 120px; }
.ob-brand { display: grid; justify-items: center; gap: 10px; }
.ob-brand .ob-logo { animation: bolt-pulse 2.8s ease-in-out infinite; width: 100%; }
.ob-card h1.wordmark { font-weight: 700; letter-spacing: .02em; }
/* tablets / small laptops: the sidebar is just icons, so just the bolt */
@media (max-width: 1000px) {
  .brand { padding: 10px 0 18px; }
  .brand .wordmark { display: none; }
  .brand .brand-row { gap: 0; }
}
/* decoration pauses while the full-screen player is open (smooth scrolling there) */
body.np-open .logo-mark img, body.np-open .logo-mark::before, body.np-open .hh-bg, body.np-open .sup-bg, body.np-open .cb-shine, body.np-open .cb-cup i { animation-play-state: paused; }

/* --- mobile top bar: taller, solid black, room for the glow --- */
@media (max-width: 700px) {
  .topbar { min-height: calc(var(--topbar) + env(safe-area-inset-top)); padding: calc(env(safe-area-inset-top) + 14px) 16px 12px; background: var(--bg); box-shadow: 0 1px 0 var(--line), 0 10px 24px rgb(0 0 0 / .45); align-items: center; gap: 8px; overflow: visible; }
  .brand-m { flex: 0 0 auto; margin-right: auto; display: inline-flex; align-items: center; justify-content: center; padding: 4px 0; }
  .brand-m .logo-mark { width: 32px; height: 32px; }
  .brand-m .wordmark { font-size: 24px; }
  .topbar .ib, .topbar .profile-chip.compact { align-self: center; }
  .topbar .profile-chip.compact .avatar { width: 36px; height: 36px; }
  .tabbar { grid-template-columns: repeat(5, 1fr); }
  .tabbar a { font-size: 10px; }
  .az, .set-jump { top: calc(var(--topbar) + env(safe-area-inset-top)); }
  .artist-row, .set-group, .settings-page .panel { scroll-margin-top: calc(var(--topbar) + env(safe-area-inset-top) + 60px); }
}

/* --- song rows: same size whether liked or not (heart always has its own slot) --- */
@media (max-width: 760px) {
  .row, .rows.two .row { grid-template-columns: 50px minmax(0, 1fr) 36px 46px 34px; }
  .row.is-video { grid-template-columns: 82px minmax(0, 1fr) 36px 46px 34px; }
  .row .like, .row .like:not(.on) { display: inline-grid !important; opacity: 1 !important; }
  .row .like:not(.on) { color: var(--dim); }
}
@media (max-width: 380px) {
  .row, .rows.two .row { grid-template-columns: 50px minmax(0, 1fr) 36px 34px; }
  .row.is-video { grid-template-columns: 82px minmax(0, 1fr) 36px 34px; }
}

/* --- hearts: instant, springy --- */
.like { transition: color .15s, opacity .15s, background .15s; }
.like .ic { transition: transform .15s; }
.like.pop .ic { animation: heartpop .34s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes heartpop { 0% { transform: scale(.65) } 55% { transform: scale(1.28) } 100% { transform: scale(1) } }
.like:active .ic { transform: scale(.85); }
.row.unliked { opacity: .6; }
.row.unliked .like { opacity: 1 !important; color: var(--text); }
.row.unliked .row-title { color: var(--muted); }
.row.leaving { transition: opacity .26s, transform .26s; opacity: 0 !important; transform: translateX(18px); }

/* --- the playing song pops out like the pop-up windows (thick outline + long yellow shadow) --- */


/* --- letter placeholders fill their cover (new playlists without art) --- */
.cover.noimg { container-type: inline-size; }
.cover.noimg span, .cover.noimg.sm span { font-size: 2.2em; font-size: 50cqi; line-height: 1; }

/* --- toasts with Undo --- */
.toast.has-act { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-right: 10px; }
.toast-act { flex: none; font-weight: 800; font-size: 13.5px; color: #000; background: var(--volt); border: 2px solid #000; border-radius: 999px; padding: 5px 14px; box-shadow: 2px 2px 0 #000; }
.toast-act:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 #000; }

/* --- filters --- */
.fp-note { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--dim); margin-left: 6px; }
.years-chips { max-height: 132px; overflow-y: auto; padding: 2px; scrollbar-width: thin; }

/* --- search: yellow search button --- */
.search-go { width: 56px; height: 56px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--volt); color: #000; border: 2px solid #000; box-shadow: 3px 3px 0 #000; transition: transform .1s; }
.search-go .ic { width: 24px; height: 24px; stroke-width: 2.6; }
.search-go:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
.mic-btn.ghosty { background: var(--surface2); color: var(--volt); border: 2px solid var(--line); box-shadow: none; }
@media (max-width: 700px) { .search-go { width: 50px; height: 50px; } .search-row { gap: 8px; } }

/* --- home: one rhythm for every section --- */
.page.home { display: flex; flex-direction: column; gap: 30px; }
.page.home > * { margin: 0 !important; }
.page.home > section:empty { display: none; }
.page.home .sec-h { margin: 0 0 14px; }
.page.home .sec-h h2 { margin: 0; }
.hh-note { margin-top: 12px !important; }
.pl-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.pl-grid .card { padding: 8px; }
.card-new { text-align: left; width: 100%; }
.cover.new-pl { background: var(--surface2) !important; border: 2px dashed var(--surface3); color: var(--muted); }
.cover.new-pl .ic { width: 34%; height: 34%; }
.card-new:hover .new-pl { border-color: var(--volt); color: var(--volt); }
@media (max-width: 1150px) { .pl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .page.home { gap: 26px; } .pl-grid { gap: 6px; } .pl-grid .card { padding: 4px; } .pl-grid .fab-play { width: 34px; height: 34px; right: 6px; bottom: 6px; } .pl-grid .fab-play .ic { width: 16px; height: 16px; } }

/* --- library → artists --- */
.art-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.art-search { flex: 1; min-width: 200px; max-width: 380px; }
.art-sort button { padding: 7px 14px; font-size: 13.5px; }
.artist-row .art-play { color: var(--volt); background: rgb(var(--volt-rgb) / .1); }
.artist-row .art-play:hover { background: var(--volt); color: #000; }
.artist-row .art-play .ic { width: 18px; height: 18px; margin-left: 2px; }
.az a.on { background: var(--volt); color: #000; }

/* --- settings --- */
.set-jump { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 0; z-index: 4; background: var(--bg); padding: 6px 0 12px; margin: -6px 0 6px; }
.set-jump a { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 8px 14px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--line); font-weight: 650; font-size: 13.5px; }
.set-jump a .ic { width: 16px; height: 16px; color: var(--volt); }
@media (hover: hover) and (pointer: fine) { .set-jump a:not(.on):hover { background: var(--surface3); } }
.set-group, .settings-page .panel { scroll-margin-top: 64px; }
.group-h { font-size: 24px; margin: 22px 0 4px; display: flex; gap: 10px; align-items: center; }
.group-h .ic { width: 24px; height: 24px; color: var(--volt); }
.group-sub { margin: 0 0 14px; }
.set-group .panel { background: var(--bg2); }
.yt-panel { border-color: rgb(255 59 48 / .3); background: linear-gradient(135deg, rgb(255 59 48 / .07), var(--surface) 55%); }
.yt-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; margin-top: 8px; }
.yt-two .sub-panel { margin: 0; display: grid; align-content: start; gap: 4px; justify-items: start; }
.yt-two .sub-panel b { display: flex; gap: 8px; align-items: center; }
.yt-two .sub-panel b .ic { width: 18px; height: 18px; color: var(--volt); }
.seg.choice span { white-space: normal; text-align: center; line-height: 1.2; }
.yt-links h4 { margin: 14px 0 6px; }
.pick > .ic { color: #ff3b30; }

/* --- desktop mini window: show the song's cover when minimised --- */
.dock-art { display: none; flex: none; }
.dock-art .cover { width: 38px; border-radius: 6px; }
body.dock-min #yt-dock:not(.in-np) .dock-art { display: block; }
body.dock-min #yt-dock:not(.in-np) .dock-bar { padding-left: 6px; gap: 8px; color: var(--text); }

/* --- phones: no mini pop-up window (the video only shows in full screen) --- */
@media (max-width: 700px) {
  #yt-dock:not(.in-np) { width: 200px !important; right: 0 !important; bottom: 0 !important; opacity: .01 !important; pointer-events: none !important; box-shadow: none; border: 0; }
  #yt-dock:not(.in-np) .dock-bar { display: none; }
  #yt-dock:not(.in-np) .dock-frame { height: 1px !important; }
  .pb-ctrls .pb-prev { display: inline-grid; color: var(--text); }
  .pb-ctrls .ib { width: 38px; height: 38px; }
}

/* --- full-screen player: top bar + video stay put, the rest scrolls; queue scrolls in its own window --- */
#np .np-layout { position: relative; height: 100%; display: flex; gap: 0; overflow: hidden; }
#np .np-main { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; }
#np .np-top { position: static; flex: none; margin: 0; padding: max(10px, env(safe-area-inset-top)) clamp(12px, 3vw, 28px) 4px; background: transparent; }
#np .np-media { flex: none; width: 100%; margin: 2px 0 10px; padding: 0 clamp(16px, 3vw, 28px); display: grid; place-items: center; }
#np .np-media.vid .np-slot { width: min(100%, 760px, calc(50vh * 16 / 9)); aspect-ratio: 16 / 9; min-height: 0; height: auto; border-radius: 16px; }
#np .np-media.art .np-art { width: min(100%, 36vh, 360px); }
#np .np-scroll { flex: 1; min-height: 0; height: auto; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: block; position: relative; max-width: none; margin: 0; padding: 4px clamp(16px, 3vw, 28px) calc(36px + var(--safe-b)) !important; scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / .18) transparent; }
#np .np-inner { max-width: 720px; margin: 0 auto; }
#np .np-queue { width: 400px; flex: none; margin: max(16px, env(safe-area-inset-top)) 16px 16px 0; display: flex; flex-direction: column; min-height: 0; background: rgb(18 18 22 / .86); backdrop-filter: none; -webkit-backdrop-filter: none; }
#np .np-q-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
#np .np-lyrics { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgb(16 16 20 / .8); }
#np .np-bg { will-change: transform; }
@media (max-width: 900px) {
  #np .np-layout { display: flex; overflow: hidden; }
  #np .np-media.vid .np-slot { width: min(100%, calc(42vh * 16 / 9)); }
  #np .np-media.art .np-art { width: min(68vw, 32vh, 340px); }
  #np .np-scroll { overflow-y: auto; min-height: 0; }
  #np .np-queue { width: auto; max-width: none; margin: 18px 0 8px; }
  #np .np-q-body { max-height: min(58vh, 520px); overflow-y: auto; }
  #np .np-bg { filter: blur(40px) saturate(1.3) brightness(.36); }
}
@media (max-height: 560px) and (orientation: landscape) {
  #np .np-media.vid .np-slot { width: min(100%, calc(46vh * 16 / 9)); }
  #np .np-media.art .np-art { width: min(30vh, 200px); }
}
@media (max-width: 700px) { .set-jump { top: calc(var(--topbar) + env(safe-area-inset-top)); } }
/* playing-now equalizer sits exactly on the song's cover */
.cover > .eq { position: absolute; inset: 0; left: 0; top: 0; right: auto; transform: none; width: 100%; height: 100%; padding: 0; border-radius: inherit; background: rgb(0 0 0 / .7); justify-content: center; align-items: center; z-index: 2; }

/* ===== Round 8 (Oct 28) ===== */
/* --- hover: easier to see (only on devices that can hover) --- */
@media (hover: hover) {
  .row:hover { background: rgb(255 255 255 / .075); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06); }
  .row.now:hover { background: linear-gradient(100deg, rgb(var(--volt-rgb) / .24), rgb(var(--volt-rgb) / .12) 60%, var(--surface2)); }
  .card:hover { background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06); }
  .artist-row:hover, .qrow:not(.now):hover, .pick:hover, .spl:hover { background: rgb(255 255 255 / .08); }
  .nav a:not(.on):hover { background: rgb(255 255 255 / .08); color: var(--text); }
  .qt:hover { background: var(--surface3); }
  .card:hover .card-t { color: var(--volt); }
}

/* --- the playing song stands out without covering its neighbours --- */


/* --- YouTube thumbnails (4:3 with black bars) are zoomed so covers have no black edges --- */
/* zoom without transform (Safari ignores rounded clipping on transformed images) */
.cover:not(.wide) img[src*="ytimg.com"][src*="/hqdefault"], .cover:not(.wide) img[src*="ytimg.com"][src*="/sddefault"], .cover:not(.wide) img[src*="ytimg.com"][src*="/0.jpg"] { width: 134%; height: 134%; left: -17%; top: -17%; max-width: none; }
.hh-bg[style*="ytimg"], .np-bg[style*="ytimg"] { background-size: 134% auto; }

/* --- "Show more" for long lists --- */
.more-wrap { display: flex; justify-content: center; margin: 18px 0 6px; }
.more-wrap.span-all { grid-column: 1 / -1; }
.more-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; background: transparent; border: 1px solid var(--line); color: var(--muted); font-weight: 650; font-size: 13.5px; margin: 10px auto; }
.more-btn small { color: var(--dim); font-weight: 500; }
.more-btn:hover { color: var(--text); border-color: var(--surface3); background: rgb(255 255 255 / .05); }
.qp-body .more-btn, .np-q-body .more-btn, #queue-page .more-btn { display: flex; }

/* --- back to top --- */
#to-top { position: fixed; z-index: 45; right: 20px; bottom: calc(var(--bar) + 18px); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--volt); color: #000; border: 2px solid #000; box-shadow: 3px 3px 0 #000, 0 10px 24px rgb(0 0 0 / .5); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .2s, transform .2s; }
#to-top svg { width: 22px; height: 22px; }
#to-top.show { opacity: 1; transform: none; pointer-events: auto; }
body:not(.has-track) #to-top { bottom: 22px; }
body.np-open #to-top, #app[hidden] ~ #to-top { display: none; }
body.queue-open #to-top { right: calc(var(--queue) + 20px); }
body.has-video:not(.dock-min) #to-top { right: 392px; }
@media (max-width: 1000px) { body.queue-open #to-top { right: 20px; } }
@media (max-width: 700px) {
  #to-top { right: 14px; bottom: calc(var(--tab) + var(--safe-b) + 14px); width: 44px; height: 44px; }
  body.has-track #to-top { bottom: calc(var(--tab) + var(--bar) + var(--safe-b) + 16px); }
  body.has-video:not(.dock-min) #to-top { right: 14px; }
}

/* --- filter bar: [search][yellow search] on one line, [Filters][sort] together --- */
.filter-top { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fsearch { display: flex; gap: 8px; align-items: center; flex: 1 1 300px; min-width: 0; max-width: 440px; }
.fsearch .searchbox.sm { flex: 1; min-width: 0; max-width: none; }
.fctl { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; min-width: 0; }
.round-search, .search-go { display: grid; place-items: center; flex: none; border-radius: 50%; background: var(--volt); color: #fff; border: 2px solid #000; box-shadow: 2px 2px 0 #000; }
.round-search { width: 38px; height: 38px; }
.round-search .ic, .search-go .ic { stroke: #fff; stroke-width: 2.8; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .55)); }
.round-search .ic { width: 18px; height: 18px; }
.round-search:active, .search-go:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 #000; }
@media (max-width: 700px) {
  .fsearch { flex: 1 1 100%; max-width: none; }
  .fctl { flex: 1 1 100%; }
  .fctl .chip, .fctl .select { flex: 1 1 0; min-width: 0; justify-content: center; }
  .fctl .select { max-width: none; text-overflow: ellipsis; }
}

/* --- phones: YouTube actions fold into the ⋯ menu --- */
.yt-acts { display: contents; }
.yt-more { display: none; }
@media (max-width: 700px) {
  .yt-acts { display: none; }
  .yt-more { display: inline-grid; }
  .actions { flex-wrap: nowrap; gap: 8px; }
  .actions > .btn:not(.round-play) { white-space: nowrap; }
}

/* --- Jump back in: bigger cover, text + both buttons centred beside it --- */
.jump-art .cover { aspect-ratio: 1; overflow: hidden; background: var(--surface2); }
.jump-art .cover img { object-fit: cover; }
.jump .row-btns { flex-wrap: nowrap; }
.jump .row-btns .btn { white-space: nowrap; }
@media (max-width: 700px) {
  .jump { align-items: center; gap: 14px; padding: 12px; }
  .jump-art { width: 42%; max-width: 170px; }
  .jump-txt { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; min-width: 0; }
  .jump h2 { font-size: 19px; max-width: 100%; }
  .jump p { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .jump .row-btns { justify-content: center; gap: 6px; margin-top: 10px; width: 100%; }
  .jump .row-btns .btn { padding: 8px 11px; font-size: 13px; gap: 5px; flex: 1 1 0; min-width: 0; }
  .jump .row-btns .btn .ic { width: 15px; height: 15px; }
}

/* --- Settings: immersive account card --- */
.acct-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 26px; padding: clamp(22px, 4vw, 36px); margin-bottom: 16px; border-radius: 24px; border: 2px solid #000; box-shadow: 6px 6px 0 var(--volt), 0 20px 50px rgb(0 0 0 / .45); background: #121216; }
.ah-bg { position: absolute; inset: -40px; z-index: -2; background: radial-gradient(600px 300px at 10% 20%, rgb(var(--volt-rgb) / .38), transparent 60%), radial-gradient(500px 300px at 95% 100%, rgb(var(--volt-2-rgb) / .28), transparent 60%), #141418; background-size: cover; background-position: center; filter: blur(34px) saturate(1.4) brightness(.65); }
.acct-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgb(12 12 14 / .25), rgb(12 12 14 / .75)); }
.ah-pic { position: relative; cursor: pointer; flex: none; }
.ah-av.avatar.xl { width: 120px; height: 120px; font-size: 44px; box-shadow: 0 0 0 4px var(--volt), 0 0 40px rgb(var(--volt-rgb) / .45), 6px 6px 0 #000; }
.ah-av.avatar.xl .ic { width: 50px; height: 50px; }
.ah-cam { position: absolute; right: -2px; bottom: 2px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--volt); color: #000; border: 2px solid #000; }
.ah-cam .ic { width: 17px; height: 17px; }
.ah-txt { min-width: 0; flex: 1; }
.ah-txt .kicker { display: inline-flex; align-items: center; gap: 6px; }
.ah-txt .kicker .ic { width: 15px; height: 15px; }
.acct-hero .pf-name { font-size: clamp(30px, 5vw, 44px); line-height: 1.05; margin: 2px 0 10px; }
.ah-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.ah-stats span { display: inline-flex; align-items: baseline; gap: 5px; padding: 6px 12px; border-radius: 999px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .1); color: var(--muted); font-size: 13px; font-weight: 600; }
.ah-stats b { color: var(--text); font-size: 15px; }
.only-m { display: none; }
@media (max-width: 700px) {
  .acct-hero { flex-direction: column; text-align: center; gap: 16px; }
  .ah-txt { display: flex; flex-direction: column; align-items: center; }
  .ah-stats, .acct-hero .row-btns { justify-content: center; }
  .acct-panel { text-align: center; }
  .acct-panel h2, .acct-panel .row-btns { justify-content: center; }
  .acct-panel .sso-col { margin: 0 auto; }
  .only-m { display: block; }
  .only-d { display: none; }
  .support-panel { text-align: center; }
  .support-panel h2 { justify-content: center; }
}

/* --- Settings → Playback: three equal options, each on one line --- */
#set-autoplay { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
#set-autoplay span { white-space: nowrap; font-size: clamp(11.5px, 3.2vw, 14px); padding: 9px 4px; overflow: hidden; text-overflow: ellipsis; }

/* --- Spotify via Exportify --- */
.steps { margin: 6px 0 4px; padding-left: 22px; line-height: 1.65; color: #d6d2c7; }
.steps li { margin: 4px 0; }
.steps li::marker { color: var(--volt); font-weight: 800; }
.sp-dev { margin-top: 14px; }
.sp-dev summary { color: var(--muted); }
.sp-back { text-align: center; display: grid; gap: 10px; justify-items: center; }
.sp-back-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #1ed760; color: #000; border: 2px solid #000; box-shadow: 3px 3px 0 #000; }
.sp-back-ic .ic { width: 36px; height: 36px; }
.sp-back .btn.big { width: 100%; }

/* --- Top tippers leaderboard --- */
.lb { position: relative; margin: 0 0 18px; padding: clamp(18px, 3vw, 28px); border-radius: 24px; border: 2px solid #000; background: radial-gradient(500px 220px at 0% 0%, rgb(var(--volt-rgb) / .16), transparent 60%), var(--surface); box-shadow: 6px 6px 0 var(--volt); }
.lb-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.lb-head h2 { margin: 0; font-size: clamp(24px, 3.5vw, 32px); }
.lb-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #ff5a4e; background: rgb(255 90 78 / .12); border: 1px solid rgb(255 90 78 / .4); padding: 5px 10px; border-radius: 999px; }
.lb-live i { width: 8px; height: 8px; border-radius: 50%; background: #ff5a4e; animation: live 1.4s ease-in-out infinite; }
@keyframes live { 50% { opacity: .25; transform: scale(.7) } }
.lb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lb-row { display: grid; grid-template-columns: 40px 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--line); animation: lbIn .45s cubic-bezier(.2, .9, .3, 1.2) both; animation-delay: var(--d); }
@keyframes lbIn { from { opacity: 0; transform: translateY(10px) scale(.98) } }
.lb-rank { position: relative; font-family: var(--display); font-weight: 800; font-size: 22px; text-align: center; color: var(--muted); }
.lb-crown { position: absolute; left: 50%; top: -17px; transform: translateX(-50%) rotate(-12deg); font-size: 18px; animation: bob 2.4s ease-in-out infinite; }
.lb-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 19px; color: #fff; background: var(--c, var(--surface3)); border: 2px solid #000; }
.lb-name { display: grid; min-width: 0; }
.lb-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px; }
.lb-name small { color: var(--muted); font-size: 12.5px; }
.lb-amt { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--volt); white-space: nowrap; }
.lb-row.gold { background: linear-gradient(100deg, rgb(var(--volt-rgb) / .22), var(--bg2) 70%); border-color: rgb(var(--volt-rgb) / .55); box-shadow: 0 0 0 1px rgb(var(--volt-rgb) / .2), 0 10px 30px rgb(var(--volt-2-rgb) / .12); }
.lb-row.gold .lb-rank { color: var(--volt); }
.lb-row.silver .lb-rank { color: #d9dde3; } .lb-row.silver { border-color: rgb(217 221 227 / .35); }
.lb-row.bronze .lb-rank { color: #e0965a; } .lb-row.bronze { border-color: rgb(224 150 90 / .35); }
.lb-row.open { opacity: .72; border-style: dashed; }
.lb-row.open .lb-av { background: transparent; border: 2px dashed var(--surface3); color: var(--dim); }
.lb-row.open .lb-name b { color: var(--muted); }
.lb-claim { font-weight: 800; font-size: 13px; color: #000; background: var(--volt); border: 2px solid #000; border-radius: 999px; padding: 5px 14px; box-shadow: 2px 2px 0 #000; }
.lb-empty { margin: 12px 0 0; text-align: center; font-weight: 700; color: var(--text); }
.lb-note { margin: 12px 0 0; }
@media (max-width: 700px) { .lb-row { grid-template-columns: 30px 38px minmax(0, 1fr) auto; gap: 9px; padding: 9px 10px; } .lb-av { width: 38px; height: 38px; font-size: 16px; } .lb-amt { font-size: 16px; } }

/* --- Add to Home Screen --- */
.a2hs { text-align: center; display: grid; justify-items: center; gap: 6px; }
.a2-icon { width: 104px; height: 104px; border-radius: 24px; overflow: hidden; background: #000; border: 2px solid #000; box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 5px 5px 0 var(--volt); margin: 4px 0 8px; }
.a2-icon img { width: 100%; height: 100%; display: block; }
.a2hs h3 { margin: 0 !important; }
.a2hs > p { margin: 0 0 6px; }
.a2-steps { text-align: left; margin: 4px 0 0; padding-left: 22px; line-height: 1.8; }
.a2-steps li::marker { color: var(--volt); font-weight: 800; }
.a2-ic { display: inline-grid; place-items: center; vertical-align: -5px; width: 26px; height: 26px; border-radius: 7px; background: var(--surface3); color: var(--volt); font-weight: 800; }
.a2-ic .ic { width: 16px; height: 16px; }

/* --- full-screen player: one-tap hint when the browser blocks auto-start --- */
.np-tap { display: flex; align-items: center; justify-content: center; gap: 8px; margin: -4px auto 8px; padding: 8px 14px; max-width: calc(100% - 32px); width: max-content; border-radius: 999px; background: var(--volt); color: #000; font-weight: 750; font-size: 13.5px; border: 2px solid #000; box-shadow: 3px 3px 0 #000; animation: breathe 1.6s ease-in-out infinite; flex: none; text-align: center; }
.np-tap .ic { width: 15px; height: 15px; flex: none; }

/* --- voice: Yes / No --- */
.vc-confirm { display: flex; gap: 10px; justify-content: center; margin: -4px 0 14px; }
.vc-confirm .btn { min-width: 110px; }

/* --- phones: the hidden video player keeps YouTube's minimum size (200×200) so it can play --- */
@media (max-width: 700px) {
  #yt-dock:not(.in-np) { width: 200px !important; right: 0 !important; bottom: 0 !important; opacity: .01 !important; pointer-events: none !important; box-shadow: none; border: 0; z-index: 1 !important; }
  #yt-dock:not(.in-np) .dock-frame { height: 200px !important; }
  .hh-bg { animation: none; }
}

/* --- smoother long lists --- */
.rows > .row:not(.now) { content-visibility: auto; contain-intrinsic-size: auto 54px; }
.qlist > .qrow { content-visibility: auto; contain-intrinsic-size: auto 54px; }

/* --- tablets & small laptops (701–1000px): icon sidebar, comfortable player bar --- */
@media (min-width: 701px) and (max-width: 1000px) {
  .sidebar { padding: 12px 8px; }
  .nav a { padding: 11px; }
  .ask-btn { padding: 11px; }
  #playerbar { grid-template-columns: minmax(0, 1fr) minmax(220px, 1.2fr) auto; gap: 10px; padding: 0 12px; }
  .pb-right .seg span { display: none; }
  .pb-right .seg button { padding: 6px 9px; }
  .pl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home .home-hero { min-height: 220px; }
  .row { grid-template-columns: 56px minmax(0, 1.6fr) minmax(0, 1fr) 38px 52px 38px; }
  #yt-dock { width: 300px; }
  .acct-hero { gap: 20px; }
}
@media (min-width: 701px) and (max-width: 860px) {
  .row { grid-template-columns: 56px minmax(0, 1fr) 38px 52px 38px; }
  .row-album { display: none; }
}
#set-autoplay { padding: 3px; gap: 2px; }
#set-autoplay label { min-width: 0; }
#set-autoplay span { display: block; text-align: center; font-size: clamp(10.5px, 2.9vw, 14px); padding: 9px 2px; letter-spacing: -.01em; }
@media (max-width: 700px) {
  .jump-art { width: 37%; max-width: 160px; }
  .jump .row-btns .btn { flex: 0 1 auto; padding: 8px 12px; overflow: hidden; text-overflow: ellipsis; }
  .jump .row-btns [data-p-ext="open"] .ic { display: none; }
}

/* player bar volume keeps a usable size on small laptops */
.pb-right .vol { flex: 0 0 84px; min-width: 84px; }
@media (max-width: 1180px) { .pb-right .seg span { display: none; } .pb-right .seg button { padding: 6px 9px; } }

/* the full-screen frame never scrolls; only .np-scroll and the queue do */
#np, #np .np-layout, #np .np-main { overflow: hidden; overflow: clip; }

/* ===== Round 9 ===== */
/* --- logo: Bungee --- */
:root { --logo: 'Bungee', 'Arial Black', var(--display); }
.wordmark { font-family: var(--logo); font-weight: 400; font-synthesis: none; letter-spacing: .01em; text-transform: uppercase; line-height: 1; }
.brand-row .wordmark { margin-top: 0; }
.brand .wordmark { font-size: 24px; }
.ob-card h1.wordmark { font-weight: 400; font-size: clamp(44px, 12vw, 64px); }
@media (max-width: 700px) { .brand-m .wordmark { font-size: 21px; } }

/* --- yellow search buttons: black magnifying glass --- */
.round-search, .search-go { color: #000; }
.round-search .ic, .search-go .ic { stroke: #000; filter: none; }

/* --- medium screens (tablets / small laptops): icon sidebar perfectly centred --- */
@media (min-width: 701px) and (max-width: 1000px) {
  .sidebar { align-items: center; padding: 12px 0; }
  .nav { width: 100%; justify-items: center; gap: 6px; }
  .nav a, .ask-btn { gap: 0; width: 52px; height: 48px; padding: 0; justify-content: center; align-items: center; margin: 0 auto; }
  .nav a .ic, .ask-btn .ic { width: 22px; height: 22px; margin: 0; }
  .ask-btn { margin-top: 10px; border-style: solid; }
  .brand { width: 100%; justify-content: center; padding: 10px 0 18px; }
  .brand-row { justify-content: center; }
  .profile-chip { justify-content: center; width: 52px; margin: auto auto 0; padding: 4px 0; }
  .profile-chip .avatar { margin: 0 auto; }
}

/* --- medium screens: full player bar (shuffle, previous, play, next, repeat + progress + options) --- */
@media (min-width: 701px) and (max-width: 1000px) {
  #playerbar { grid-template-columns: minmax(0, 1fr) minmax(250px, 1.3fr) minmax(0, auto); align-items: center; gap: 12px; padding: 0 14px; }
  #playerbar .pb-ctrls .ib.hide-sm { display: inline-grid !important; }
  #playerbar .pb-seek.hide-sm { display: flex !important; }
  #playerbar .pb-right.hide-sm { display: flex !important; }
  #playerbar .pb-left .like { display: inline-grid; }
  .pb-center { justify-items: center; align-content: center; gap: 2px; }
  .pb-ctrls { justify-content: center; gap: 4px; }
  .pb-seek { max-width: 100%; }
  .pb-seek span { width: 34px; font-size: 11px; }
  .pb-right { gap: 2px; }
  .pb-right .vol, .pb-right [data-p="mute"] { display: none; }
  .pb-meta { min-width: 0; }
}

/* --- "Hey Bazinga" listening: the mic buttons glow --- */
body.wake-on .mic-top[data-act="voice"], body.wake-on .ask-btn { box-shadow: 0 0 0 2px rgb(var(--volt-rgb) / .35), 0 0 18px rgb(var(--volt-rgb) / .35); border-radius: 12px; }
body.wake-on .mic-top[data-act="voice"] { border-radius: 50%; animation: breathe 2s ease-in-out infinite; }
.voice-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.voice-pick .select { flex: 1 1 260px; min-width: 0; padding: 10px 14px; }

/* ===== Round 10 ===== */
/* selected items keep their highlight on hover */
.nav a.on:hover { background: var(--volt); color: var(--volt-ink); }
.tab.on:hover, .chip.on:hover, .seg button.on:hover, .az a.on:hover { filter: none; }
/* bigger wordmark */
.brand .wordmark { font-size: 31px; }
.brand .logo-mark { width: 40px; height: 40px; }
.brand-row { gap: 11px; }
.ob-card h1.wordmark { font-size: clamp(50px, 14vw, 78px); }
@media (max-width: 700px) { .brand-m .wordmark { font-size: 26px; } .brand-m .logo-mark { width: 34px; height: 34px; } .brand-m .brand-row { gap: 9px; } }
@media (max-width: 360px) { .brand-m .wordmark { font-size: 23px; } }

/* ===== Round 11 ===== */
/* --- playing song: highlighted in place — same size and position as every other row --- */
.row.now, .row.now:hover { transform: none; margin: 0; z-index: auto;
  background: linear-gradient(90deg, rgb(var(--volt-rgb) / .2), rgb(var(--volt-rgb) / .07) 55%, rgb(var(--volt-rgb) / .03));
  box-shadow: inset 0 0 0 1.5px rgb(var(--volt-rgb) / .55), inset 4px 0 0 var(--volt), inset 0 -3px 0 rgb(var(--volt-rgb) / .22); }
.row.now .row-title { color: var(--volt); }
.qrow.now, .qrow.now:hover { transform: none; margin: 0; background: linear-gradient(90deg, rgb(var(--volt-rgb) / .18), rgb(var(--volt-rgb) / .05)); box-shadow: inset 0 0 0 1.5px rgb(var(--volt-rgb) / .5), inset 4px 0 0 var(--volt); }

/* --- phones: video songs get a square cover like every other row --- */
@media (max-width: 760px) {
  .row.is-video, .rows.two .row.is-video { grid-template-columns: 50px minmax(0, 1fr) 36px 46px 34px; }
  .row .cover.sm.wide { width: 42px; aspect-ratio: 1; }
  .row.is-video .row-num .eq { width: 42px; height: 42px; }
}
@media (max-width: 380px) { .row.is-video, .rows.two .row.is-video { grid-template-columns: 50px minmax(0, 1fr) 36px 34px; } }
.row-num { min-width: 0; overflow: hidden; }

/* --- account card: every layer follows the rounded corners (no square edges over the border) --- */
.acct-hero { overflow: hidden; }
.acct-hero::after { border-radius: 22px; }
.ah-bg { inset: 0; border-radius: 22px; filter: none; background-size: cover; overflow: hidden; }
.ah-bg[style] { filter: blur(26px) saturate(1.3) brightness(.55); clip-path: inset(0 round 22px); }

/* --- YouTube actions: always in the ⋯ menu --- */
.yt-acts { display: none !important; }
.yt-more { display: inline-grid !important; }

/* --- back to top: every screen size, bottom-left of the content so it never hides behind the video window --- */
#to-top { left: calc(var(--side) + 22px); right: auto !important; }
@media (max-width: 700px) { #to-top { left: auto; right: 14px !important; } }
/* full screen: the video sits at the top of the scrolling page and moves with it */
#np .np-inner > .np-media { padding: 0; margin: 4px 0 16px; }
#np .np-inner > .np-tap { margin-top: -6px; }
#yt-dock.in-np { transition: none; }

/* ===== Round 12 ===== */
/* --- artist photo fills its circle exactly (no dark ring or square edges) --- */
.hero-art.round { background: transparent; box-shadow: 0 20px 50px rgb(0 0 0 / .55); aspect-ratio: 1; overflow: hidden; border-radius: 50%; }
.hero-art.round > div, .hero-art.round .cover { width: 100%; height: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.hero-art.round .cover:not(.noimg) { background: transparent; }
.hero-art.round .cover img { width: 104%; height: 104%; left: -2%; top: -2%; max-width: none; object-fit: cover; border-radius: 50%; }
.card-art.round .cover:not(.noimg), .cover.round:not(.noimg) { background: transparent; }
.artist-empty { display: flex; gap: 14px; align-items: center; }
.artist-empty > .ic { width: 30px; height: 30px; color: var(--volt); flex: none; }
.artist-empty b { display: block; font-size: 16px; }
.artist-empty p { margin: 4px 0 0; }

/* --- installed app (Home Screen): fill the whole screen, nothing cut off at the top or gap at the bottom --- */
html, body { height: 100%; background: var(--bg); }
#app { position: fixed; inset: 0; height: auto; }
#onboarding { place-items: start center; padding: calc(env(safe-area-inset-top) + 24px) 16px calc(env(safe-area-inset-bottom) + 24px); height: 100%; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ob-card { margin: auto 0; }
#np .np-top { padding-top: max(10px, env(safe-area-inset-top)); }
@media (display-mode: standalone) {
  body { overscroll-behavior: none; }
  .tabbar { height: calc(var(--tab) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
}
#yt-dock.in-np { z-index: 80; }
.s-more .bz-loader.sm.inline { min-height: 90px; }
.s-more .bz-orb { width: 56px; height: 56px; }
#app { z-index: 1; }
@media (max-width: 700px) { #yt-dock:not(.in-np) { z-index: 0 !important; } }
/* top bar: coffee and mic icons at exactly the same size */
.topbar .mic-top .ic { width: 22px; height: 22px; }
/* top bar: same visible gap cup → mic as mic → profile picture */
@media (max-width: 700px) { .topbar .coffee-top { margin-right: -6.3px; } }

/* ===== Round 13 ===== */
/* --- full screen: the page itself scrolls, so the video moves with it natively in every browser --- */
:root { --nph: 62px; }
body.np-open { overflow: visible; overflow-x: hidden; }
body.np-open #app { visibility: hidden; transition: visibility 0s .32s; }
body.np-open #np { position: absolute; top: 0; left: 0; right: 0; bottom: auto; min-height: 100vh; min-height: 100dvh; }
body.np-open #np, body.np-open #np .np-layout, body.np-open #np .np-main { overflow: visible; height: auto; }
body.np-open #np .np-layout { min-height: 100vh; min-height: 100dvh; align-items: flex-start; }
body.np-open #np .np-main { display: block; }
body.np-open #np .np-scroll { overflow: visible; height: auto; min-height: 0; overscroll-behavior: auto;
  padding-top: calc(max(10px, env(safe-area-inset-top)) + var(--nph) - 6px) !important; }
body.np-open #np .np-bg { position: fixed; }
body.np-open #np .np-queue { position: sticky; top: calc(max(10px, env(safe-area-inset-top)) + var(--nph)); margin-top: calc(max(10px, env(safe-area-inset-top)) + var(--nph));
  max-height: calc(100vh - var(--nph) - 40px); max-height: calc(100dvh - var(--nph) - env(safe-area-inset-top) - 30px); }
@media (max-width: 900px) { body.np-open #np .np-queue { position: static; margin-top: 18px; max-height: none; } }
#yt-dock.in-np { position: absolute; transform: none; }
#np-head { display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 90; margin: 0; justify-content: space-between; align-items: center;
  padding: max(10px, env(safe-area-inset-top)) clamp(12px, 3vw, 28px) 6px; background: transparent; transition: background-color .2s; }
body.np-open #np-head { display: flex; }
#np-head.scrolled { background: rgb(12 12 14 / .94); box-shadow: 0 1px 0 rgb(255 255 255 / .06); }
#np-head .ib { width: 44px; height: 44px; color: var(--text); filter: drop-shadow(0 1px 3px rgb(0 0 0 / .6)); }
#np-head .ib .ic { width: 24px; height: 24px; }

/* --- Safari / iPhone: the playing-song highlight looks exactly like Firefox and Chrome ---
   Safari mis-paints rows that use content-visibility, so it's switched off there. */
.webkit .rows > .row, .webkit .qlist > .qrow { content-visibility: visible; contain-intrinsic-size: none; }
.row.now, .row.now:hover { -webkit-transform: none; isolation: isolate; }

/* ===== Round 14 ===== */
/* --- back-to-top: always bottom-right, on every screen size --- */
#to-top { left: auto !important; right: 22px !important; }
body.queue-open #to-top { right: calc(var(--queue) + 22px) !important; }
@media (min-width: 701px) { body.has-video #to-top { right: 22px !important; bottom: calc(var(--bar) + 14px + var(--dockh, 0px) + 14px); } body.has-video.queue-open #to-top { right: calc(var(--queue) + 22px) !important; } }
@media (max-width: 999px) { body.queue-open #to-top { right: 22px !important; } }
@media (max-width: 700px) { #to-top { right: 14px !important; } }

/* --- Phase 2 popup: immersive goal tracker --- */
.modal.p2-modal { padding: 0; width: min(480px, 100%); overflow: hidden; border-radius: 26px; background: #0d0d10; box-shadow: 6px 6px 0 var(--volt), 0 30px 90px rgb(0 0 0 / .7); }
.p2 { position: relative; isolation: isolate; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.p2-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 70% at 50% 0%, rgb(var(--volt-rgb) / .22), transparent 60%), #0d0d10; }
.p2-bg i { position: absolute; width: 260px; height: 260px; border-radius: 50%; filter: blur(50px); opacity: .5; animation: p2float 9s ease-in-out infinite alternate; }
.p2-bg i:nth-child(1) { background: var(--volt); top: -120px; left: -60px; }
.p2-bg i:nth-child(2) { background: var(--volt-2); top: -80px; right: -110px; animation-delay: -3s; opacity: .35; }
.p2-bg i:nth-child(3) { background: var(--volt); bottom: -170px; left: 30%; animation-delay: -6s; opacity: .18; }
@keyframes p2float { to { transform: translate(40px, 30px) scale(1.15); } }
.p2-body { position: relative; padding: 30px 26px 24px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.p2-body.in > * { animation: p2in .45s cubic-bezier(.2, .8, .2, 1) both; }
.p2-body.in > *:nth-child(2) { animation-delay: .05s; } .p2-body.in > *:nth-child(3) { animation-delay: .1s; } .p2-body.in > *:nth-child(4) { animation-delay: .15s; } .p2-body.in > *:nth-child(n+5) { animation-delay: .2s; }
@keyframes p2in { from { opacity: 0; transform: translateY(12px); } }
.p2-body .kicker { color: var(--volt); }
.p2-body h3 { margin: 0; font-size: clamp(22px, 6vw, 27px); line-height: 1.15; letter-spacing: -.01em; }
.p2-body p { margin: 0; color: #d6d2c7; line-height: 1.5; }
.p2-body .coffee-btn { width: 100%; justify-content: center; margin-top: 4px; }
.p2-body .btn { width: 100%; justify-content: center; }
.p2-later { color: var(--muted); }
.p2-goal { width: 100%; display: grid; gap: 9px; padding: 16px; border-radius: 18px; background: rgb(255 255 255 / .05); border: 1px solid rgb(var(--volt-rgb) / .25); text-align: left; }
.p2-amt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.p2-amt b { font-family: var(--display); font-size: clamp(26px, 8vw, 34px); font-weight: 900; color: var(--volt); font-variant-numeric: tabular-nums; letter-spacing: -.02em; text-shadow: 0 0 24px rgb(var(--volt-rgb) / .35); }
.p2-amt span { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.p2-bar { height: 14px; border-radius: 99px; background: rgb(255 255 255 / .08); overflow: hidden; box-shadow: inset 0 1px 3px rgb(0 0 0 / .5); }
.p2-bar i { display: block; height: 100%; width: var(--p); min-width: 10px; border-radius: inherit; position: relative; overflow: hidden;
  background: linear-gradient(90deg, var(--volt-2), var(--volt)); box-shadow: 0 0 14px rgb(var(--volt-rgb) / .7); transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }
.p2-bar i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgb(255 255 255 / .6) 50%, transparent 80%); transform: translateX(-100%); animation: p2shine 2.4s ease-in-out infinite; }
@keyframes p2shine { 60%, 100% { transform: translateX(100%); } }
.p2-meta { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); font-weight: 600; }
.p2-meta > span:first-child { display: inline-flex; align-items: center; gap: 6px; } .p2-meta .ic { width: 15px; height: 15px; color: var(--volt); }
.p2-meta b { color: var(--text); }
.p2-meta [data-p2-pct] { margin-left: auto; color: var(--volt); }
.p2-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--volt); color: #000; border: 2px solid #000; box-shadow: 4px 4px 0 #000, 0 0 40px rgb(var(--volt-rgb) / .45); }
.p2-icon .ic { width: 36px; height: 36px; }
.p2-icon.spin .ic { animation: wiggle 1.2s ease-in-out infinite; }
.p2-icon.glow { animation: p2pulse 1.6s ease-in-out infinite; }
@keyframes p2pulse { 50% { transform: scale(1.08); box-shadow: 4px 4px 0 #000, 0 0 70px rgb(var(--volt-rgb) / .8); } }
@keyframes wiggle { 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
.p2-note { display: flex; gap: 10px; align-items: flex-start; text-align: left; font-size: 14px; padding: 12px 14px; border-radius: 14px; background: rgb(var(--volt-rgb) / .1); border: 1px solid rgb(var(--volt-rgb) / .3); }
.p2-note .ic { width: 18px; height: 18px; color: var(--volt); flex: none; margin-top: 2px; }
.p2-confetti { position: absolute; inset: 0 0 auto 0; height: 0; pointer-events: none; }
.p2-confetti i { position: absolute; top: -10px; left: var(--x); width: 8px; height: 14px; border-radius: 2px; background: var(--c); transform: rotate(var(--r)); opacity: 0; animation: p2fall 2.2s var(--d) cubic-bezier(.3, .7, .4, 1) forwards; }
@keyframes p2fall { 0% { opacity: 1; transform: translateY(0) rotate(var(--r)); } 100% { opacity: 0; transform: translateY(420px) rotate(calc(var(--r) + 540deg)); } }
@media (prefers-reduced-motion: reduce) { .p2-bg i, .p2-bar i::after, .p2-icon, .p2-confetti i, .p2-body.in > * { animation: none !important; } .p2-confetti { display: none; } }
/* Support page goal card */
.p2-sec { position: relative; margin: 22px 0; padding: 22px; border-radius: 22px; background: radial-gradient(120% 90% at 0% 0%, rgb(var(--volt-rgb) / .16), transparent 60%), var(--surface); border: 1px solid rgb(var(--volt-rgb) / .28); display: grid; gap: 16px; }
.p2-sec-h { display: flex; gap: 16px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.p2-sec-h h2 { margin: 2px 0 6px; } .p2-sec-h p { margin: 0; max-width: 560px; }
.p2-sec .p2-goal { background: rgb(0 0 0 / .25); }

/* ================= v1.5 ================= */
/* --- No accidental zooming: no double-tap zoom, and phones never zoom in when a box is tapped --- */
html, body { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (pointer: coarse) {
  input:not([type=range]):not([type=checkbox]):not([type=radio]), textarea, select { font-size: 16px !important; }
}

/* --- Sort button: label and arrow centred together --- */
.sort-pick { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 35px; padding: 0 14px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--line); cursor: pointer; min-width: 0; }
.sort-pick:hover { border-color: var(--surface3); }
.sort-pick:focus-within { outline: 2px solid var(--volt); outline-offset: 2px; }
.sort-face { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--text); pointer-events: none; }
.sort-lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sort-face .ic { width: 14px; height: 14px; stroke-width: 2.6; flex: none; }
.sort-pick select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; -webkit-appearance: none; appearance: none; border: 0; font-size: 16px; }
@media (max-width: 700px) { .fctl .sort-pick { flex: 1 1 0; } }

/* --- Home hero: date with the device's time beside it --- */
.hh-when { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.hh-time { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px; border-radius: 999px; background: rgb(var(--volt-rgb) / .12); border: 1px solid rgb(var(--volt-rgb) / .3); color: var(--volt); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.hh-time .ic { width: 13px; height: 13px; stroke-width: 2.4; }
.hh-time time { line-height: 1.5; }

/* --- Screen lock --- */
.lock-side { display: flex; align-items: center; gap: 13px; padding: 10px 12px; margin-top: 6px; border-radius: 10px; font-weight: 700; color: var(--text); border: 1px solid var(--line); width: 100%; }
.lock-side:hover { background: var(--surface2); }
@media (max-width: 1000px) { .lock-side { font-size: 0; justify-content: center; padding: 12px; } .lock-side .ic { width: 22px; height: 22px; } }
.lock-top { color: var(--text) !important; }
body.lock-off .lock-top, body.lock-off .lock-side, body.lock-off .lock-np { display: none !important; }
#lock-layer { position: fixed; inset: 0; z-index: 2147483000; background: rgb(0 0 0 / .18); touch-action: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
#lock-layer .lock-pill { position: absolute; left: 50%; top: calc(env(safe-area-inset-top) + 18px); transform: translate(-50%, -8px); display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px; border-radius: 999px; background: rgb(12 12 14 / .92); border: 1px solid rgb(var(--volt-rgb) / .45); box-shadow: 0 10px 30px rgb(0 0 0 / .5); color: var(--text); opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; white-space: nowrap; }
#lock-layer .lock-pill.show { opacity: 1; transform: translate(-50%, 0); }
#lock-layer .lock-pill .ic { width: 22px; height: 22px; color: var(--volt); }
#lock-layer .lock-pill b { display: block; font-size: 15px; }
#lock-layer .lock-pill small { display: block; font-size: 12.5px; color: var(--muted); }
body.app-locked { overscroll-behavior: none; }

/* --- Sync your devices --- */
.link-dlg { display: grid; gap: 14px; text-align: center; }
.link-dlg h3 { justify-content: center; }
.qr-box { width: min(240px, 68vw); margin: 0 auto; padding: 10px; background: #fff; border-radius: 16px; border: 3px solid var(--volt); box-shadow: 4px 4px 0 #000; }
.qr-box svg { display: block; width: 100%; height: auto; }
.row-btns.center, .modal-actions.center { justify-content: center; }
.code-box { display: grid; gap: 8px; justify-items: center; padding: 12px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line); }
.code-box .kicker { margin: 0; }
.code-out { display: grid; gap: 2px; justify-items: center; }
.code-big { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 30px; letter-spacing: .14em; color: var(--volt); font-variant-numeric: tabular-nums; user-select: all; }
.code-short { word-break: break-all; user-select: all; }
.danger-t { color: #ff6b5e !important; }
.acct-panel .row-btns { flex-wrap: wrap; }

/* --- Artist page: Top 10 albums grid --- */
#artist-topalb:not(:empty) { margin-top: 28px; }
#artist-topalb .sec-h { margin-bottom: 12px; }
@media (min-width: 1181px) { .top-albums { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 700px) { .top-albums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- Logo v1.5: white letters, thick black outline, yellow 3D depth (sizes with the text) --- */
.wordmark { color: #fff; letter-spacing: .045em; text-shadow: 0.080em 0.000em 0 #000, 0.074em 0.031em 0 #000, 0.057em 0.057em 0 #000, 0.031em 0.074em 0 #000, 0.000em 0.080em 0 #000, -0.031em 0.074em 0 #000, -0.057em 0.057em 0 #000, -0.074em 0.031em 0 #000, -0.080em 0.000em 0 #000, -0.074em -0.031em 0 #000, -0.057em -0.057em 0 #000, -0.031em -0.074em 0 #000, -0.000em -0.080em 0 #000, 0.031em -0.074em 0 #000, 0.057em -0.057em 0 #000, 0.074em -0.031em 0 #000, 0.110em 0.110em 0 var(--volt), 0.140em 0.140em 0 var(--volt), 0.170em 0.170em 0 var(--volt), 0.200em 0.200em 0 var(--volt), 0.230em 0.230em 0 var(--volt), 0.310em 0.280em 0 #000, 0.301em 0.301em 0 #000, 0.280em 0.310em 0 #000, 0.259em 0.301em 0 #000, 0.250em 0.280em 0 #000, 0.259em 0.259em 0 #000, 0.280em 0.250em 0 #000, 0.301em 0.259em 0 #000; }
.brand-row .wordmark { padding: 0 .12em .2em .02em; margin-bottom: -.2em; } /* room for the depth so it never clips */
.ob-card h1.wordmark { color: #fff; letter-spacing: .045em; padding-bottom: .12em; text-shadow: 0.080em 0.000em 0 #000, 0.074em 0.031em 0 #000, 0.057em 0.057em 0 #000, 0.031em 0.074em 0 #000, 0.000em 0.080em 0 #000, -0.031em 0.074em 0 #000, -0.057em 0.057em 0 #000, -0.074em 0.031em 0 #000, -0.080em 0.000em 0 #000, -0.074em -0.031em 0 #000, -0.057em -0.057em 0 #000, -0.031em -0.074em 0 #000, -0.000em -0.080em 0 #000, 0.031em -0.074em 0 #000, 0.057em -0.057em 0 #000, 0.074em -0.031em 0 #000, 0.110em 0.110em 0 var(--volt), 0.140em 0.140em 0 var(--volt), 0.170em 0.170em 0 var(--volt), 0.200em 0.200em 0 var(--volt), 0.230em 0.230em 0 var(--volt), 0.310em 0.280em 0 #000, 0.301em 0.301em 0 #000, 0.280em 0.310em 0 #000, 0.259em 0.301em 0 #000, 0.250em 0.280em 0 #000, 0.259em 0.259em 0 #000, 0.280em 0.250em 0 #000, 0.301em 0.259em 0 #000; }

/* ================= v1.5.1 ================= */
/* --- Account card counters: small, all four on one line (2×2 on very narrow phones) --- */
.ah-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 6px; justify-content: start; }
.ah-stats span { flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 5px 10px; border-radius: 12px; font-size: 10.5px; line-height: 1.2; text-transform: uppercase; letter-spacing: .05em; min-width: 0; }
.ah-stats b { font-size: 15px; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .ah-stats { justify-content: center; width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 360px; margin: 0 auto; } }
@media (max-width: 340px) { .ah-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 220px; } }

/* --- Logo glow: sized to the bolt, never wider than the space around it, so it isn't cut off --- */
.logo-mark::before { inset: -38%; }
.logo-mark.big { width: min(120px, 30vw); height: min(120px, 30vw); margin: 12% 0 4%; }
.brand-m { padding-left: 4px !important; }
.sidebar .brand { overflow: visible; }
#onboarding { padding-top: calc(env(safe-area-inset-top) + 40px); }
.ob-logo { filter: drop-shadow(0 6px 18px rgb(var(--volt-rgb) / .45)); }

/* --- Installed app (Home Screen): tab bar sits right on the bottom edge --- */
@media (display-mode: standalone) and (max-width: 700px) {
  :root { --safe-b: max(env(safe-area-inset-bottom) - 12px, 4px); }
  .tabbar { height: calc(var(--tab) + max(env(safe-area-inset-bottom) - 12px, 4px)); padding-bottom: max(env(safe-area-inset-bottom) - 12px, 4px); align-content: start; }
  .tabbar a { padding-top: 6px; }
  #playerbar { bottom: calc(var(--tab) + max(env(safe-area-inset-bottom) - 12px, 4px) + 6px); }
  body.has-track #main { padding-bottom: calc(var(--tab) + var(--bar) + max(env(safe-area-inset-bottom) - 12px, 4px) + 18px); }
  #yt-dock { bottom: calc(var(--tab) + var(--bar) + max(env(safe-area-inset-bottom) - 12px, 4px) + 14px); }
  #toasts { bottom: calc(var(--tab) + var(--bar) + max(env(safe-area-inset-bottom) - 12px, 4px) + 16px); }
  body.has-track #to-top { bottom: calc(var(--tab) + var(--bar) + max(env(safe-area-inset-bottom) - 12px, 4px) + 16px); }
}

/* --- Popups: "Don't show again" --- */
.p2-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.a2-never { display: block; margin: 12px auto 0; color: var(--muted); }
.a2-never:hover { color: var(--text); }
.modal-x { z-index: 3; opacity: .75; }
.modal-x:hover { opacity: 1; }

/* ================= v1.5.2 ================= */
/* --- Installed iPhone app (iOS 26): reach the bottom edge ---
   iOS 26 gives a Home Screen web app a viewport that's shorter than the screen by the status-bar
   height whenever the page itself is shorter than the screen (WebKit bug 301108, fixed in iOS 26.1),
   so bottom bars float with a gap — or get cut off if you try to stretch them. Making the page at
   least screen-tall gives it the full viewport. min() keeps it from scrolling where there's no gap. */
@media (display-mode: standalone) {
  html { min-height: min(100lvh, calc(100% + env(safe-area-inset-top))); }
}
@media (display-mode: standalone) and (max-width: 700px) {
  :root { --safe-b: max(env(safe-area-inset-bottom) - 8px, 6px); }
  .tabbar { height: calc(var(--tab) + var(--safe-b)); padding-bottom: var(--safe-b); }
  #playerbar { bottom: calc(var(--tab) + var(--safe-b) + 6px); }
}

/* --- Back-to-top: always above the bottom menu (and the mini player) --- */
@media (max-width: 700px) {
  body:not(.has-track) #to-top { bottom: calc(var(--tab) + var(--safe-b) + 14px); }
  body.has-track #to-top { bottom: calc(var(--tab) + var(--bar) + var(--safe-b) + 16px); }
  #to-top { right: 16px; width: 44px; height: 44px; }
}

/* --- Toasts sit low, just above whatever is at the bottom --- */
#toasts { bottom: calc(var(--bar) + 10px); }
body:not(.has-track) #toasts { bottom: 18px; }
@media (max-width: 700px) {
  #toasts { bottom: calc(var(--tab) + var(--bar) + var(--safe-b) + 10px); }
  body:not(.has-track) #toasts { bottom: calc(var(--tab) + var(--safe-b) + 10px); }
}

/* --- Lock button: yellow like the coffee and mic, tucked right next to the coffee cup --- */
.topbar .lock-top { color: var(--volt) !important; margin-right: -10px; }
.topbar .lock-top .ic { width: 22px; height: 22px; }

/* --- Popups truly centred (sync / link dialog included) --- */
.modal-wrap { display: grid; place-items: center; align-content: center; justify-content: center; }
.modal { margin: auto; }
.link-dlg { justify-items: center; }
.link-dlg > * { width: 100%; }
.link-dlg .qr-box { width: min(240px, 64vw); }

/* --- Welcome: name + photo --- */
.ob-form { display: grid; gap: 14px; justify-items: center; width: 100%; }
.ob-form .fld { width: 100%; text-align: left; }
.set-jump a.on { border-color: var(--volt); color: var(--volt); }

/* --- Voice picker: the select shrinks to fit and "Try it" never pushes out of the card --- */
.voice-pick { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; width: 100%; max-width: 100%; min-width: 0; align-items: center; }
.voice-pick .select { width: 100%; min-width: 0; max-width: 100%; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voice-pick .btn { white-space: nowrap; }
#voice-set .fld { min-width: 0; max-width: 100%; }
@media (max-width: 420px) { .voice-pick { grid-template-columns: minmax(0, 1fr); } .voice-pick .btn { justify-self: start; } }
.a2-warn { display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 10px 12px; border-radius: 12px; background: rgb(var(--volt-rgb) / .1); border: 1px solid rgb(var(--volt-rgb) / .35); font-size: 13.5px; color: var(--text); }
.a2-warn .ic { flex: none; width: 18px; height: 18px; color: var(--volt); margin-top: 2px; }

/* ================= v1.5.3 ================= */
/* --- Logo text a little smaller --- */
.brand .wordmark { font-size: 26px; }
@media (max-width: 700px) { .brand-m .wordmark { font-size: 22px; } }
@media (max-width: 360px) { .brand-m .wordmark { font-size: 19px; } }
.ob-card h1.wordmark { font-size: clamp(42px, 12vw, 64px); }

/* --- Sync progress popup --- */
.sync-prog { display: grid; gap: 12px; justify-items: center; text-align: center; }
.sync-prog h3 { margin: 0; }
.sp-orb { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgb(var(--volt-rgb) / .12); border: 2px solid var(--volt); color: var(--volt); animation: breathe 1.6s ease-in-out infinite; }
.sp-orb .ic { width: 30px; height: 30px; }
.sp-step { margin: 0; min-height: 1.4em; font-variant-numeric: tabular-nums; }
.sp-bar { width: 100%; height: 10px; border-radius: 99px; background: var(--surface2); border: 1px solid var(--line); overflow: hidden; }
.sp-bar i { display: block; height: 100%; width: 4%; background: linear-gradient(90deg, var(--volt), var(--volt-2)); border-radius: 99px; transition: width .35s ease; }

/* --- Import summary --- */
.imp-report { display: grid; gap: 6px; max-height: 50vh; overflow: auto; margin: 6px 0 4px; }
.imp-report div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; background: var(--surface2); }
.imp-report span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-report b { flex: none; color: var(--volt); font-variant-numeric: tabular-nums; }

/* --- Album / playlist action row: everything fits on a phone; offline files live in ⋯ --- */
.yt-more.always { display: inline-grid; }
.actions > * { flex: none; }
.actions .round-play { aspect-ratio: 1; flex: none; }
@media (max-width: 700px) {
  .actions { gap: 6px; flex-wrap: nowrap; max-width: 100%; }
  .actions .ib.lg { width: 40px; height: 40px; }
  .actions .round-play { width: 52px; height: 52px; }
  .actions .save-alb { padding: 0 12px; height: 40px; }
}

/* --- "Keep your library safe" notice: × in the top-right corner on phones --- */
.nag { position: relative; }
@media (max-width: 700px) {
  .nag { padding-right: 44px; }
  .nag .nag-x { position: absolute; top: 6px; right: 6px; }
}

/* ================= v1.5.4 — phone top bar always fits (no cut-off profile picture) ================= */
@media (max-width: 700px) {
  .topbar { gap: 2px !important; padding-left: max(12px, env(safe-area-inset-left)) !important; padding-right: max(12px, env(safe-area-inset-right)) !important; }
  .brand-m { min-width: 0; flex: 0 1 auto !important; margin-right: auto; overflow: visible; }
  .brand-m .brand-row { gap: 7px !important; min-width: 0; }
  .brand-m .logo-mark { width: 30px !important; height: 30px !important; }
  .brand-m .wordmark { font-size: var(--wm-size, clamp(16px, 5.3vw, 22px)) !important; white-space: nowrap; }
  .topbar .ib { width: 36px !important; height: 36px !important; margin: 0 !important; }
  .topbar .lock-top { margin-right: -4px !important; }
  .topbar .profile-chip.compact { flex: none; margin-left: 4px !important; }
  .topbar .profile-chip.compact .avatar { width: 34px !important; height: 34px !important; }
  /* the page's scroll bar used to sit on top of the profile picture */
  #main { scrollbar-width: none; }
  #main::-webkit-scrollbar { display: none; width: 0; height: 0; }
}

/* ===== v1.6 ===== */
/* --- Video dock (desktop): resize arrow points up when small, down when big; full-screen uses the expand icon --- */
.dock-size svg { transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
body.dock-big .dock-size svg { transform: rotate(180deg); }
.dock-frame { position: relative; }
/* Subtle loading veil while a song is starting */
.dock-load { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .35s ease; background: rgb(8 8 10 / .55); overflow: hidden; }
.dock-load .dl-art { position: absolute; inset: -20px; background: center/cover no-repeat; filter: blur(22px) saturate(1.3) brightness(.55); transform: scale(1.1); }
.dock-load .dl-ring { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgb(255 255 255 / .16); border-top-color: var(--volt); animation: spin .9s linear infinite; box-shadow: 0 0 22px rgb(var(--volt-rgb) / .35); }
body.song-loading #yt-dock .dock-load { opacity: 1; }
body.dock-min #yt-dock:not(.in-np) .dock-load { display: none; }
/* Player bar cover: a soft spinning ring while loading */
.pb-art { position: relative; }
body.song-loading #playerbar .pb-art::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: rgb(0 0 0 / .45); }
body.song-loading #playerbar .pb-art::before { content: ''; position: absolute; z-index: 2; inset: 28%; border-radius: 50%; border: 2.5px solid rgb(255 255 255 / .2); border-top-color: var(--volt); animation: spin .9s linear infinite; }

/* --- Mic buttons: active = theme-coloured ring, icon stays the theme colour; back to normal when closed --- */
.mic-top[data-act="voice"] { border-radius: 50%; color: var(--volt); }
.mic-top[data-act="voice"]:hover { color: var(--volt); }
@media (hover: none) { .mic-top:hover, .ask-btn:hover, .mic-btn:hover { background: transparent; color: var(--volt); } .mic-btn:not(.ghosty):hover { background: var(--volt); color: #000; } }
body.voice-on .mic-top[data-act="voice"], body.voice-on .mic-btn.ghosty[data-act="voice"] { color: var(--volt) !important; background: transparent !important; box-shadow: inset 0 0 0 2.5px var(--volt), 0 0 16px rgb(var(--volt-rgb) / .45) !important; }
body.voice-on .ask-btn { color: var(--volt); border: 2px solid var(--volt); background: transparent; box-shadow: 0 0 16px rgb(var(--volt-rgb) / .35); }

/* --- Home hero: the time sits in the far top-right corner of the card --- */
.home .home-hero .hh-time { position: absolute; z-index: 3; top: clamp(14px, 2.2vw, 22px); right: clamp(14px, 2.2vw, 22px); padding: 5px 12px 5px 9px; font-size: 13.5px; font-weight: 700; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); background: rgb(12 12 14 / .45); }
.home .home-hero .hh-time .ic { width: 15px; height: 15px; }
/* The BAZINGA! mix button */
.btn.bz-btn { font-family: var(--display); font-style: italic; font-weight: 800; letter-spacing: .03em; color: #fff; border: 2px solid var(--volt); background: rgb(var(--volt-rgb) / .14); box-shadow: 0 0 18px rgb(var(--volt-rgb) / .28); }
.btn.bz-btn:hover { background: rgb(var(--volt-rgb) / .26); }
.btn.bz-btn .bz-bolt { width: 22px; height: 22px; margin: -3px 0 -3px -4px; filter: drop-shadow(0 0 6px rgb(var(--volt-rgb) / .7)); }

/* --- Theme colour picker --- */
.theme-pick { display: flex; flex-wrap: wrap; gap: 10px 8px; }
.tp { display: grid; justify-items: center; gap: 5px; width: 54px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.tp i { width: 38px; height: 38px; border-radius: 50%; background: var(--c); border: 2px solid #000; box-shadow: 2px 2px 0 #000; display: grid; place-items: center; color: #fff; transition: transform .15s; }
.tp i .ic { width: 18px; height: 18px; stroke-width: 3.2; opacity: 0; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .6)); }
.tp:hover i { transform: translateY(-2px); }
.tp.on i { outline: 2.5px solid #fff; outline-offset: 2px; transform: scale(1.06); }
.tp.on i .ic { opacity: 1; }
.tp.on span { color: var(--text); }
.ob-theme { display: grid; gap: 8px; }
.ob-theme .theme-pick { justify-content: center; }
.ah-theme { margin-top: 14px; display: grid; gap: 8px; }
@media (max-width: 700px) { .ah-theme .theme-pick { justify-content: center; } }

/* --- Sort: opens an on-screen dropdown, like Filters --- */
.sort-chip { justify-content: center; }
.sort-chip .ic { width: 14px; height: 14px; stroke-width: 2.6; transition: transform .2s; }
.sort-chip.on .ic { transform: rotate(180deg); }
.sort-panel .chip .ic { width: 14px; height: 14px; stroke-width: 3; }

/* --- "Do you love BAZINGA!?" popup --- */
.love-ic img { width: 84px; height: 84px; filter: drop-shadow(0 0 22px rgb(var(--volt-rgb) / .6)); animation: bolt-pulse 2.6s ease-in-out infinite; }
.love-btns { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 8px 0 4px; }
.love-btns button { border-radius: 50%; display: grid; place-items: center; transition: transform .15s; }
.love-btns button:active { transform: scale(.94); }
.love-no { width: 70px; height: 70px; background: var(--surface2); border: 2px solid var(--line); color: var(--text); }
.love-no .ic { width: 30px; height: 30px; }
.love-yes { width: 92px; height: 92px; background: var(--volt); color: #fff; border: 2.5px solid #000; box-shadow: 4px 4px 0 #000, 0 0 36px rgb(var(--volt-rgb) / .5); animation: love-bob 2.2s ease-in-out infinite; }
.love-yes .ic { width: 42px; height: 42px; filter: drop-shadow(0 1.5px 1.5px rgb(0 0 0 / .55)); }
.love-yes:hover { transform: scale(1.06) rotate(-4deg); }
@keyframes love-bob { 50% { transform: translateY(-4px) rotate(-3deg); } }
.sad-face { padding: 26px 0 30px; color: var(--muted); }
.sad-face .ic { width: 170px; height: 170px; stroke-width: 1.4; animation: sad-in .6s cubic-bezier(.2, 1.3, .4, 1) both, sad-wobble 1.6s .6s ease-in-out infinite; }
@keyframes sad-in { from { transform: scale(.4); opacity: 0; } }
@keyframes sad-wobble { 50% { transform: translateY(5px) rotate(-3deg); } }

/* --- BAZINGA! mix: immersive building overlay --- */
#mix-ov { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; background: #050506; overflow: hidden; opacity: 0; transition: opacity .4s ease; }
#mix-ov.on { opacity: 1; }
#mix-ov.out { opacity: 0; pointer-events: none; }
.mo-bg { position: absolute; inset: -20%; filter: blur(70px) saturate(1.4); }
.mo-bg i { position: absolute; width: 55vmax; height: 55vmax; border-radius: 50%; opacity: .55; animation: mo-drift 9s ease-in-out infinite alternate; }
.mo-bg i:nth-child(1) { background: var(--volt); left: -10%; top: -10%; }
.mo-bg i:nth-child(2) { background: var(--volt-2); right: -15%; top: 20%; animation-delay: -3s; opacity: .4; }
.mo-bg i:nth-child(3) { background: #fff; left: 30%; bottom: -30%; opacity: .08; animation-delay: -6s; }
@keyframes mo-drift { to { transform: translate(8vmax, 6vmax) scale(1.15); } }
.mo-arts { position: absolute; inset: 0; pointer-events: none; }
.mo-arts img { position: absolute; width: clamp(70px, 13vmin, 130px); aspect-ratio: 1; object-fit: cover; border-radius: 14px; border: 2px solid #000; box-shadow: 0 18px 40px rgb(0 0 0 / .6);
  animation: mo-art 4.5s ease-in-out both; animation-delay: calc(var(--i) * 0.18s); opacity: 0; }
@keyframes mo-art { 0% { opacity: 0; transform: scale(.6) rotate(-8deg) translateY(30px); } 20%, 75% { opacity: .9; transform: rotate(calc(var(--i) * 7deg - 20deg)); } 100% { opacity: .35; transform: rotate(calc(var(--i) * 7deg - 14deg)) translateY(-20px); } }
.mo-core { position: relative; display: grid; justify-items: center; gap: 12px; text-align: center; padding: 24px; }
.mo-orb { position: relative; width: clamp(150px, 34vmin, 220px); aspect-ratio: 1; display: grid; place-items: center; }
.mo-orb span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgb(var(--volt-rgb) / .6); animation: ripple 2.1s cubic-bezier(.2, .7, .3, 1) infinite; }
.mo-orb span:nth-child(2) { animation-delay: .7s; } .mo-orb span:nth-child(3) { animation-delay: 1.4s; }
.mo-orb img { width: 58%; filter: drop-shadow(0 0 30px rgb(var(--volt-rgb) / .85)); animation: mo-zap 1.2s ease-in-out infinite; }
@keyframes mo-zap { 0%, 100% { transform: scale(1) rotate(0); } 40% { transform: scale(1.1) rotate(-4deg); } 55% { transform: scale(.96) rotate(3deg); } }
.mo-core h2 { margin: 0; font-size: clamp(38px, 9vmin, 64px); }
.mo-step { margin: 0; min-height: 1.5em; color: #e9e5da; font-weight: 600; font-size: 16px; }
.mo-step.in { animation: drop .3s ease-out; }
.mo-bar { width: min(260px, 70vw); height: 5px; border-radius: 5px; background: rgb(255 255 255 / .12); overflow: hidden; }
.mo-bar i { display: block; height: 100%; width: 6%; border-radius: 5px; background: var(--volt); box-shadow: 0 0 14px var(--volt); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.mo-x { position: absolute; top: calc(env(safe-area-inset-top) + 14px); right: 14px; color: var(--text); background: rgb(255 255 255 / .08); }
@media (prefers-reduced-motion: reduce) { #mix-ov *, #mix-ov *::before { animation: none !important; } .mo-arts img { opacity: .5; } }

/* --- First-run taste picker --- */
.taste-modal { width: min(620px, 100%); }
.taste-step { display: grid; gap: 12px; text-align: center; justify-items: center; }
.taste-ic img { width: 64px; height: 64px; filter: drop-shadow(0 0 18px rgb(var(--volt-rgb) / .6)); }
.taste-step h3 { font-size: 23px; }
.taste-step p { margin: 0; }
.taste-genres { justify-content: center; gap: 8px; }
.taste-genres .chip { padding: 9px 15px; font-size: 14.5px; }
.taste-genres .chip.on { background: var(--volt); color: var(--volt-ink); }
.taste-artists { width: 100%; display: grid; gap: 16px; text-align: left; max-height: min(52vh, 460px); overflow: auto; padding: 2px; }
.ta-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 12px 10px; margin-top: 8px; }
.ta { position: relative; display: grid; justify-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; color: var(--muted); text-align: center; }
.ta .cover { width: 76px; border-radius: 50%; border: 2px solid transparent; transition: border-color .15s, transform .15s; }
.ta span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ta i { position: absolute; top: 2px; right: calc(50% - 40px); width: 24px; height: 24px; border-radius: 50%; background: var(--volt); color: #000; border: 2px solid #000; display: grid; place-items: center; opacity: 0; transform: scale(.5); transition: .15s; }
.ta i .ic { width: 13px; height: 13px; stroke-width: 3.4; }
.ta.on .cover { border-color: var(--volt); transform: scale(1.04); }
.ta.on span { color: var(--text); }
.ta.on i { opacity: 1; transform: none; }

/* ===== v1.6.1 ===== */
/* --- Mic buttons: normal look whenever the assistant is closed, in every browser (Safari kept tap/hover/focus looks stuck) --- */
body:not(.voice-on) .mic-top[data-act="voice"], body:not(.voice-on) .mic-top[data-act="voice"]:hover, body:not(.voice-on) .mic-top[data-act="voice"]:active, body:not(.voice-on) .mic-top[data-act="voice"]:focus {
  color: var(--volt) !important; background: transparent !important; box-shadow: none !important; outline: none !important; transform: none !important; }
body:not(.voice-on) .mic-btn.ghosty[data-act="voice"]:is(:hover, :active, :focus) { background: var(--surface2) !important; color: var(--volt) !important; box-shadow: none !important; outline: none !important; }
body:not(.voice-on) .ask-btn:is(:active, :focus) { outline: none !important; box-shadow: none !important; }
@media (hover: none) { body:not(.voice-on) .ask-btn:hover { background: transparent !important; } }
.mic-top[data-act="voice"], .ask-btn, .mic-btn { -webkit-tap-highlight-color: transparent; }
/* "Hey Bazinga" listening in the background: a small dot, so it never looks like the assistant is still open */
body.wake-on .mic-top[data-act="voice"], body.wake-on .ask-btn { box-shadow: none !important; animation: none !important; }
body.wake-on:not(.voice-on) .mic-top[data-act="voice"]::after, body.wake-on:not(.voice-on) .ask-btn::after { content: ''; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--volt); top: 6px; right: 6px; animation: breathe 2s ease-in-out infinite; }
.ask-btn { position: relative; }

/* --- Home hero: the BAZINGA! button as the main button --- */
.btn.bz-btn.primary { color: var(--volt-ink); background: var(--volt); border: 2px solid #000; box-shadow: 3px 3px 0 #000, 0 0 22px rgb(var(--volt-rgb) / .35); }
.btn.bz-btn.primary:hover { background: var(--volt-hi); }
.btn.bz-btn.primary .bz-bolt { filter: drop-shadow(1px 1px 0 #000); }

/* --- Coffee popup: bigger "Not now" with a theme-colored border --- */
.p2-btns .p2-notnow { min-width: 200px; padding: 13px 28px; font-size: 16px; font-weight: 700; background: transparent; color: var(--text); border: 2px solid var(--volt); border-radius: 999px; }
.p2-btns .p2-notnow:hover { background: rgb(var(--volt-rgb) / .14); }

/* ===== v1.6.2 ===== */
/* --- Back to top sits right above the corner video on computers --- */
@media (min-width: 701px) { body.has-video #to-top { right: 22px !important; bottom: calc(var(--bar) + 14px + var(--dockh, 0px) + 14px) !important; } body.has-video.queue-open #to-top { right: calc(var(--queue) + 22px) !important; } }
@media (min-width: 701px) and (max-width: 1000px) { body.has-video.queue-open #to-top { right: 22px !important; } }

/* --- BAZINGA! button bolt: perfectly still --- */
.btn.bz-btn .bz-bolt { animation: none !important; transform: none !important; will-change: auto; }

/* --- Phone top bar: lock, coffee and mic evenly spaced --- */
@media (max-width: 700px) { .topbar .lock-top, .topbar .coffee-top, .topbar .mic-top { margin: 0 !important; } }

/* --- Home clock: smaller on smaller screens --- */
@media (max-width: 700px), (max-height: 520px) {
  .home .home-hero .hh-time { font-size: 11.5px; padding: 3px 9px 3px 7px; gap: 4px; top: 12px; right: 12px; letter-spacing: .04em; }
  .home .home-hero .hh-time .ic { width: 12px; height: 12px; }
}
@media (max-width: 380px) { .home .home-hero .hh-time { font-size: 10.5px; } }

/* --- Pull down to close the full-screen player --- */
body.np-open, html:has(body.np-open) { overscroll-behavior-y: none; }
body.np-pulling #np, body.np-pulling #np-head, body.np-pulling #yt-dock.in-np,
body.np-springing #np, body.np-springing #np-head, body.np-springing #yt-dock.in-np { transform: translateY(var(--np-pull, 0px)) !important; }
body.np-pulling #np, body.np-pulling #np-head, body.np-pulling #yt-dock.in-np { transition: none !important; }
body.np-springing #np, body.np-springing #np-head, body.np-springing #yt-dock.in-np { transition: transform .22s cubic-bezier(.2, .8, .2, 1) !important; }
body.np-pulling #np-head::before { opacity: 1; }
#np-head::before { content: ''; position: absolute; top: calc(env(safe-area-inset-top) + 4px); left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 4px; background: rgb(255 255 255 / .35); opacity: .7; transition: opacity .2s; }
@media (pointer: fine) { #np-head::before { display: none; } }
/* a touch strip over the top of the video so you can pull down there too (a tap on it = play/pause) */
.np-grab { display: none; }
@media (pointer: coarse) { #yt-dock.in-np .np-grab { display: block; position: absolute; left: 0; right: 0; top: 0; height: 38%; z-index: 3; } body.needs-tap #yt-dock .np-grab { display: none; } }

/* --- Queue: "save as playlist" (+) for BAZINGA! mixes and shuffled queues --- */
.q-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.q-save { width: 34px; height: 34px; color: var(--volt-ink) !important; background: var(--volt) !important; border: 2px solid #000; box-shadow: 2px 2px 0 #000; }
.q-save .ic { width: 18px; height: 18px; stroke-width: 2.8; }
.q-save:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 #000; }

/* --- Phones & small tablets turned sideways (short screens) --- */
@media (max-height: 520px) and (orientation: landscape) {
  /* notch / rounded corners */
  .sidebar { padding-left: max(8px, env(safe-area-inset-left)) !important; }
  #main { padding-right: env(safe-area-inset-right); }
  /* the icon sidebar scrolls instead of cutting buttons off, and is more compact */
  .sidebar { overflow-y: auto; overflow-x: hidden; scrollbar-width: none; padding-top: 8px !important; padding-bottom: 8px !important; }
  .sidebar::-webkit-scrollbar { display: none; }
  .sidebar .brand { padding: 4px 0 8px !important; flex: none; }
  .sidebar .brand img { width: 30px; height: 30px; }
  .sidebar .nav { gap: 2px !important; flex: none; }
  .sidebar .nav a, .sidebar .ask-btn, .sidebar .lock-side { height: 40px !important; min-height: 40px; flex: none; }
  .sidebar .ask-btn, .sidebar .lock-side { margin-top: 4px !important; }
  .sidebar .side-h, .sidebar .side-pl { display: none !important; }
  .sidebar .profile-chip { margin-top: 8px !important; flex: none; }
  /* home card: shorter */
  .home .home-hero { min-height: 0 !important; padding: 18px 20px !important; }
  .home-hero h1 { font-size: clamp(26px, 6vh, 40px) !important; margin: 4px 0 6px !important; }
  .page { padding-top: 14px; }
  /* the corner video: smaller so it doesn't cover the page; "bigger" makes it really big */
  #yt-dock:not(.in-np) { width: 240px; right: max(12px, env(safe-area-inset-right)); bottom: calc(var(--bar) + 10px); }
  #yt-dock:not(.in-np) .dock-frame { height: 135px; }
  body.dock-big #yt-dock:not(.in-np) { width: min(52vw, calc((100vh - var(--bar) - 70px) * 16 / 9)); }
  body.dock-big #yt-dock:not(.in-np) .dock-frame { height: auto; aspect-ratio: 16 / 9; }
  body.dock-min #yt-dock:not(.in-np) { width: 240px; }
  .dock-btn { width: 34px; height: 34px; }
  .dock-btn svg { width: 19px; height: 19px; }
  /* full-screen player: a big video (almost the whole height), queue below instead of beside it */
  #np .np-media.vid .np-slot { width: min(100%, calc((100vh - 76px) * 16 / 9)) !important; width: min(100%, calc((100dvh - 76px) * 16 / 9)) !important; }
  #np .np-media.art .np-art { width: min(42vh, 220px); }
  #np .np-info h2 { font-size: 22px; }
  /* the bottom player bar is a bit slimmer */
  :root { --bar: 76px; }
}

/* ===== v1.6.3 ===== */
/* --- "When the queue finishes": options sized to their text, extra space shared equally, so the gaps match --- */
#set-autoplay { display: flex !important; grid-template-columns: none !important; }
#set-autoplay label { flex: 1 1 auto !important; min-width: 0; }
#set-autoplay span { display: flex !important; justify-content: center; white-space: nowrap; overflow: visible; padding: 9px 14px !important; }
@media (max-width: 700px) { #set-autoplay span { padding: 9px 8px !important; font-size: clamp(11px, 3.1vw, 14px) !important; } }


/* --- Sleep timer button (full-screen player top bar, left of ⋯) --- */
.np-head-r { display: flex; align-items: center; gap: 2px; }
#np-head .sleep-np.on { color: var(--volt); }
#np-head .sleep-np.on::after { content: ''; position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 8px var(--volt); }
.menu-h .ic { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; color: var(--volt); }
.menu-h:has(.ic) { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.menu-h .ic { margin-right: 0; vertical-align: 0; flex: none; }

/* ===== v1.6.4 ===== */
/* --- Full-screen player, phone turned sideways: video on the left; title, like, artist, timeline and
       controls on the right, so everything important fits on one screen without scrolling --- */
@media (max-height: 520px) and (orientation: landscape) {
  #np .np-scroll { padding-left: max(16px, env(safe-area-inset-left)) !important; padding-right: max(16px, env(safe-area-inset-right)) !important; }
  #np .np-inner { max-width: none !important; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(250px, 1fr); grid-template-rows: 1fr auto auto auto auto auto 1fr; column-gap: clamp(16px, 3vw, 32px); }
  #np .np-inner > .np-media { grid-column: 1; grid-row: 1 / 8; margin: 0 !important; padding: 0 !important; align-self: center; justify-self: stretch; width: 100%; }
  #np .np-inner > .np-info { grid-column: 2; grid-row: 2; margin: 0 0 6px; }
  #np .np-inner > .np-err { grid-column: 2; grid-row: 3; margin: 0 0 4px; font-size: 13px; }
  #np .np-inner > .np-seek { grid-column: 2; grid-row: 4; margin: 4px 0 2px; }
  #np .np-inner > .np-ctrls { grid-column: 2; grid-row: 5; margin: 2px 0 6px; justify-content: space-between; }
  #np .np-inner > .np-extra { grid-column: 2; grid-row: 6; margin: 0; }
  #np .np-inner > :not(.np-media):not(.np-info):not(.np-err):not(.np-seek):not(.np-ctrls):not(.np-extra) { grid-column: 1 / -1; }
  /* the video fills the left side, as tall as the screen allows */
  #np .np-media.vid .np-slot { width: min(100%, calc((100vh - 72px) * 16 / 9)) !important; width: min(100%, calc((100dvh - 72px - env(safe-area-inset-top)) * 16 / 9)) !important; margin: 0 auto; }
  #np .np-media.art .np-art { width: min(100%, calc(100vh - 90px), 300px) !important; width: min(100%, calc(100dvh - 90px), 300px) !important; margin: 0 auto; }
  #np .np-info h2 { font-size: clamp(18px, 2.6vw, 24px) !important; line-height: 1.15; }
  #np .np-info .np-artist, #np .np-info .np-album { font-size: 14px; }
  #np .np-ctrls .play-btn { width: 58px; height: 58px; }
  #np .np-ctrls .ib { width: 42px; height: 42px; }
  #np .np-extra { gap: 8px; }
  #np .np-extra .btn, #np .np-extra .seg button { padding: 7px 12px; font-size: 13px; }
}

/* --- Home card on phones: the clock sits on the same line as the date (at the right edge) --- */
@media (max-width: 700px) {
  .home .home-hero .hh-when { display: flex; flex-wrap: nowrap; align-items: center; width: 100%; gap: 8px; }
  .home .home-hero .hh-when [data-date] { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .home .home-hero .hh-time { position: static !important; margin-left: auto; flex: none; top: auto; right: auto; }
}

/* ===== v1.6.5 ===== */
/* --- Sideways phones (short screens): the sidebar is a compact 2-column icon grid that fits on screen,
       with no scrolling needed; every button stays a comfortable 44×40 tap target --- */
@media (max-height: 600px) and (orientation: landscape) and (min-width: 701px) {
  :root { --side: calc(108px + env(safe-area-inset-left, 0px)); }
  .sidebar { display: grid !important; grid-template-columns: repeat(2, 44px); grid-auto-rows: 40px; gap: 5px 8px; align-content: center; justify-content: center; align-items: center;
    padding: 6px 6px 6px max(6px, env(safe-area-inset-left)) !important; overflow-y: auto; overflow-x: hidden; }
  .sidebar .nav { display: contents !important; }
  .sidebar .brand { grid-column: 1 / -1; display: flex; justify-content: center; align-items: center; padding: 0 !important; margin: 0 !important; height: 40px; width: auto !important; }
  .sidebar .brand .wordmark { display: none !important; }
  .sidebar .brand img, .sidebar .brand .logo-mark { width: 30px !important; height: 30px !important; }
  .sidebar .nav a, .sidebar .ask-btn, .sidebar .lock-side, .sidebar .profile-chip {
    width: 44px !important; height: 40px !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; gap: 0 !important;
    display: flex !important; align-items: center; justify-content: center; font-size: 0 !important; border-radius: 12px; }
  .sidebar .nav a .ic, .sidebar .ask-btn .ic, .sidebar .lock-side .ic { width: 22px !important; height: 22px !important; margin: 0 !important; }
  .sidebar .ask-btn { border-style: solid !important; }
  .sidebar .side-h, .sidebar .side-pl { display: none !important; }
  .sidebar .profile-chip { border: 0 !important; }
  .sidebar .profile-chip span:not(.avatar) { display: none !important; }
  .sidebar .profile-chip .avatar { width: 32px !important; height: 32px !important; margin: 0 !important; }
  body.lock-off .sidebar .lock-side { display: none !important; }
}

/* --- Sideways phones: song times sit together on the right ("1:19 / 3:49") --- */
@media (max-height: 600px) and (orientation: landscape) {
  .pb-seek input { order: 1; }
  .pb-seek .t-now { order: 2; width: auto !important; text-align: right; margin-left: 4px; }
  .pb-seek .t-dur { order: 3; width: auto !important; text-align: left; }
  .pb-seek .t-now::after { content: ' /'; }
  .pb-seek { gap: 6px; }
  #np .np-times { justify-content: flex-end; gap: 5px; }
  #np .np-times .t-now::after { content: ' /'; }
}
@media (max-height: 600px) and (orientation: landscape) and (min-width: 701px) { .sidebar .profile-chip .avatar { font-size: 15px !important; } }

/* ===== v1.6.6 ===== */
/* --- Phone menus (bottom sheets): a grab handle; pull down to close --- */
.menu.sheet { overscroll-behavior: contain; touch-action: pan-y; padding-top: 4px; }
.menu.sheet .sheet-grab { position: sticky; top: 0; z-index: 2; height: 22px; margin: 0 -10px 2px; display: grid; place-items: center; background: inherit; cursor: grab; }
.menu.sheet .sheet-grab::before { content: ''; width: 40px; height: 5px; border-radius: 5px; background: rgb(255 255 255 / .3); }
.menu-back { transition: opacity .18s; }
.menu.sheet::before { display: none; }

/* --- Full-screen player: genre / year / length pills. Sideways phones: far right, under the heart, beside the album --- */
.np-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.np-tags-side { display: none !important; }
@media (max-height: 520px) and (orientation: landscape) {
  .np-tags-main { display: none !important; }
  #np .np-info { align-items: flex-start; }
  .np-tags-side { display: flex !important; flex-wrap: wrap; justify-content: flex-end; gap: 5px; margin: 0; max-width: 150px; }
  .np-tags-side .pill { font-size: 11px; padding: 2px 8px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .np-tags-side { flex-wrap: nowrap !important; max-width: none !important; white-space: nowrap; }
  #np .np-info > div:first-child { min-width: 0; }
  #np .np-info .np-album { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ===== v1.6.7 ===== */
/* --- Settings: the support card is centred (heading, text and the coffee button) --- */
.settings-page .support-panel { text-align: center; display: flex; flex-direction: column; align-items: center; }
.settings-page .support-panel h2 { justify-content: center; }
.settings-page .support-panel .coffee-btn { margin-left: auto; margin-right: auto; }

/* --- Sideways phones: the sidebar is ONE column again and always fits the screen's height.
       Every button shares the height that's actually there (iPhone Safari's toolbars, the notch and the
       home bar included), up to a comfortable 46px, so nothing is ever cut off. --- */
@media (max-height: 600px) and (orientation: landscape) and (min-width: 701px) {
  :root { --side: calc(64px + env(safe-area-inset-left, 0px)); }
  .sidebar { display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: space-evenly !important;
    grid-template-columns: none !important; gap: 2px !important; overflow: hidden !important; height: 100%; min-height: 0;
    padding: max(4px, env(safe-area-inset-top)) 4px max(4px, env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left)) !important; }
  .sidebar .nav { display: contents !important; }
  .sidebar .brand, .sidebar .nav a, .sidebar .ask-btn, .sidebar .lock-side, .sidebar .profile-chip {
    flex: 1 1 0 !important; min-height: 0 !important; max-height: 46px; height: auto !important; width: 48px !important; }
  .sidebar .brand img, .sidebar .brand .logo-mark { width: auto !important; height: min(30px, 100%) !important; max-height: 30px; aspect-ratio: 1; }
  .sidebar .nav a .ic, .sidebar .ask-btn .ic, .sidebar .lock-side .ic { width: 20px !important; height: 20px !important; }
  .sidebar .nav a.on { box-shadow: 2px 2px 0 #000, inset 0 0 0 2px #000 !important; }
  .sidebar .profile-chip .avatar { width: min(30px, 100%) !important; height: auto !important; max-height: 30px; aspect-ratio: 1; }
}

/* ===== v1.6.8 ===== */
/* --- Settings tabs: only the section you're on is highlighted — no leftover tap/hover/focus look --- */
.set-jump a { -webkit-tap-highlight-color: transparent; transition: color .15s, border-color .15s, background .15s; }
.set-jump a:focus:not(:focus-visible) { outline: none; }
.set-jump a:not(.on) { color: var(--text); border-color: var(--line); }
.set-jump a.on { background: rgb(var(--volt-rgb) / .12); }

/* ===== v1.6.9 ===== */
/* --- Sideways phones: the sidebar keeps normal-sized buttons and scrolls up and down to reach them all
       (a soft fade at the bottom/top shows there's more) --- */
@media (max-height: 600px) and (orientation: landscape) and (min-width: 701px) {
  .sidebar { justify-content: flex-start !important; overflow-y: auto !important; overflow-x: hidden !important; gap: 6px !important;
    overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%); mask-image: linear-gradient(transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%);
    padding-bottom: 22px !important; }
  .sidebar::-webkit-scrollbar { display: none; }
  .sidebar .brand, .sidebar .nav a, .sidebar .ask-btn, .sidebar .lock-side, .sidebar .profile-chip { flex: none !important; height: 46px !important; max-height: none !important; width: 50px !important; }
  .sidebar .brand { height: 44px !important; }
  .sidebar .brand img, .sidebar .brand .logo-mark { height: 32px !important; width: 32px !important; max-height: none !important; }
  .sidebar .nav a .ic, .sidebar .ask-btn .ic, .sidebar .lock-side .ic { width: 22px !important; height: 22px !important; }
  .sidebar .profile-chip .avatar { width: 34px !important; height: 34px !important; max-height: none !important; }
}

/* --- Covers: letter + colour until the picture arrives, then a quick fade (instant for pictures seen before) --- */
.cover img { opacity: 0; transition: opacity .22s ease; }
.cover.ld img { opacity: 1; }
.cover.known img { transition: none; }
.cover:not(.ld) { container-type: inline-size; }
.cover:not(.ld) span { font-size: 2.2em; font-size: 50cqi; line-height: 1; }

/* --- BAZINGA! button bolt (drawn in the page) --- */
.btn.bz-btn svg.bz-bolt { width: 22px; height: 22px; margin: -3px 0 -3px -4px; flex: none; overflow: visible; animation: none !important; transition: none !important; filter: drop-shadow(0 0 5px rgb(255 214 10 / .55)); }
.btn.bz-btn.primary svg.bz-bolt { filter: drop-shadow(1px 1px 0 rgb(0 0 0 / .35)); }

/* ===== v1.6.10 ===== */
/* --- Settings → Sync: your devices --- */
.sync-devices { display: grid; gap: 6px; margin: 14px 0 10px; text-align: left; }
.sync-devices .kicker { margin-bottom: 2px; }
.sdev { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line); }
.sdev.paused { opacity: .7; }
.sdev-ic { font-size: 22px; width: 30px; text-align: center; flex: none; }
.sdev-t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.sdev-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sdev-t em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--volt); text-transform: uppercase; letter-spacing: .06em; }
.sdev-t small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sdev-b { display: flex; gap: 2px; flex: none; }
.sdev-b .ib { width: 36px; height: 36px; }
.sdev-b .danger-t { color: var(--danger); }


/* ===== v1.7 ===== */
/* --- links inside text look like links (and are tappable) --- */
:is(p, li, small, .legal) a.lnk, .legal a, .faq-a a { color: var(--volt); text-decoration: underline; text-decoration-color: rgb(var(--volt-rgb) / .45); text-underline-offset: 3px; font-weight: 650; }
:is(p, li, small, .legal) a.lnk:hover, .legal a:hover, .faq-a a:hover { color: var(--volt-hi, var(--volt)); text-decoration-color: currentColor; }

/* --- Support: Phase 2 button bigger on computers --- */
@media (min-width: 701px) {
  .p2-sec-h .btn.primary { padding: 15px 28px; font-size: 17px; gap: 10px; border-width: 2.5px; box-shadow: 4px 4px 0 #000; }
  .p2-sec-h .btn.primary .ic { width: 22px; height: 22px; }
  .p2-sec-h .btn.primary:active { box-shadow: 1px 1px 0 #000; transform: translate(3px, 3px); }
}

/* --- Settings: each section is a button that drops open --- */
.settings-page .set-acc { padding: 0; margin-bottom: 12px; position: relative; isolation: isolate; transition: border-color .3s, box-shadow .35s, background-color .3s, transform .2s; }
.settings-page .set-group.set-acc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; width: 100%; }
.settings-page .set-acc::before { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(120% 140% at 0% 0%, rgb(var(--volt-rgb) / .13), transparent 55%); }
.settings-page .set-acc.open::before { opacity: 1; }
.settings-page .set-acc.open { border-color: rgb(var(--volt-rgb) / .45); box-shadow: 0 20px 44px -26px rgb(var(--volt-rgb) / .6), 0 0 0 1px rgb(var(--volt-rgb) / .08) inset; }
.settings-page .set-acc.danger-zone.open { border-color: rgb(255 69 58 / .5); box-shadow: 0 20px 44px -26px rgb(255 69 58 / .55); }
.sa-head { appearance: none; -webkit-appearance: none; border: 0; background: none; color: inherit; font: inherit; text-align: left; width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; cursor: pointer; position: relative; transition: transform .15s ease; -webkit-user-select: none; user-select: none; }
.sa-head:active { transform: scale(.985); }
.sa-head:focus-visible { outline: 2px solid var(--volt); outline-offset: -2px; }
.sa-ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: var(--volt); background: radial-gradient(circle at 30% 22%, rgb(var(--volt-rgb) / .34), rgb(var(--volt-rgb) / .07) 72%); box-shadow: inset 0 0 0 1px rgb(var(--volt-rgb) / .3), 0 8px 20px -10px rgb(var(--volt-rgb) / .7); transition: transform .45s cubic-bezier(.2, 1.4, .4, 1), box-shadow .3s, background .3s; }
.sa-ic .ic { width: 24px; height: 24px; }
.sa-ic .brand-yt { color: #ff3b30; }
.yt-panel .sa-ic, #yt-match .sa-ic { color: #ff4d42; background: radial-gradient(circle at 30% 22%, rgb(255 59 48 / .32), rgb(255 59 48 / .06) 72%); box-shadow: inset 0 0 0 1px rgb(255 59 48 / .32), 0 8px 20px -10px rgb(255 59 48 / .7); }
.danger-zone .sa-ic { color: #ff6b61; background: radial-gradient(circle at 30% 22%, rgb(255 69 58 / .3), rgb(255 69 58 / .06) 72%); box-shadow: inset 0 0 0 1px rgb(255 69 58 / .3); }
.sa-txt { min-width: 0; }
.sa-txt b { display: block; font: 700 17px/1.2 var(--display); letter-spacing: -.01em; }
.sa-txt small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.sa-chev { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: var(--surface2); border: 1px solid var(--line); transition: transform .45s cubic-bezier(.2, .8, .2, 1), background .25s, color .25s, border-color .25s; }
.sa-chev .ic { width: 18px; height: 18px; }
.set-acc.open > .sa-head .sa-chev { transform: rotate(180deg); background: var(--volt); color: var(--volt-ink, #000); border-color: #000; }
.set-acc.open > .sa-head .sa-ic { transform: scale(1.08) rotate(-6deg); box-shadow: inset 0 0 0 1px rgb(var(--volt-rgb) / .5), 0 10px 26px -8px rgb(var(--volt-rgb) / .85); }
@media (hover: hover) and (pointer: fine) {
  .settings-page .set-acc:not(.open):hover { border-color: rgb(var(--volt-rgb) / .3); transform: translateY(-1px); box-shadow: 0 14px 30px -22px rgb(var(--volt-rgb) / .6); }
  .set-acc:not(.open) > .sa-head:hover .sa-ic { transform: scale(1.07) rotate(-5deg); }
  .set-acc:not(.open) > .sa-head:hover .sa-chev { color: var(--text); border-color: rgb(var(--volt-rgb) / .4); }
}
/* the drop-down: rows grow from 0 to the content's height, contents fade and slide in */
.sa-body { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2, .8, .2, 1); }
.set-acc.open > .sa-body { grid-template-rows: 1fr; }
.sa-inner { min-height: 0; min-width: 0; overflow: hidden; padding: 0 18px; opacity: 0; transform: translateY(-10px); transition: opacity .25s ease, transform .4s cubic-bezier(.2, .8, .2, 1), padding-bottom .45s cubic-bezier(.2, .8, .2, 1); }
.set-acc.open > .sa-body > .sa-inner { opacity: 1; transform: none; padding-bottom: 18px; transition: opacity .35s ease .08s, transform .45s cubic-bezier(.2, .8, .2, 1) .04s, padding-bottom .45s cubic-bezier(.2, .8, .2, 1); }
.set-acc.open.settled > .sa-body > .sa-inner { overflow: visible; }
.sa-inner > :first-child { margin-top: 0; }
.set-acc.support-panel { display: block !important; text-align: left !important; }
.set-acc.support-panel .sa-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.set-acc.support-panel .sa-inner > h2 { display: none; }
.set-group.set-acc .sa-inner > .panel:last-child { margin-bottom: 0; }
.out-row .btn { justify-content: flex-start; max-width: 100%; }
.out-row .out-name { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) {
  .sa-head { padding: 14px 14px; gap: 12px; }
  .sa-ic { width: 42px; height: 42px; border-radius: 13px; }
  .sa-ic .ic { width: 21px; height: 21px; }
  .sa-txt b { font-size: 16px; }
  .sa-txt small { font-size: 12.5px; }
  .sa-chev { width: 30px; height: 30px; }
  .sa-inner { padding: 0 14px; }
  .set-acc.open > .sa-body > .sa-inner { padding-bottom: 14px; }
}

/* --- Sleep timer (and Play on…): the lit-up state shows the instant you pick a time --- */
#np-head .sleep-np, #np-head .out-np { transition: none; }
#np-head .sleep-np.on, #np-head .out-np.on { color: var(--volt); background: rgb(var(--volt-rgb) / .16); box-shadow: inset 0 0 0 1px rgb(var(--volt-rgb) / .35); }
#np-head .sleep-np.on::after { top: 6px; right: 6px; width: 8px; height: 8px; box-shadow: 0 0 0 2px rgb(12 12 14 / .9), 0 0 8px var(--volt); }
#np-head .ib:active { transform: scale(.92); }
@media (hover: none) { #np-head .ib:not(.on):hover { background: transparent; } }
@media (max-width: 380px) { #np-head .ib { width: 40px; height: 40px; } #np-head .ib .ic { width: 22px; height: 22px; } .np-head-r { gap: 0; } }
.pb-right .out-btn.on { color: var(--volt); }

/* --- short errors with a fix button --- */
.err-line { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.err-line .err-text { color: #ff6b61; }
.err-btn { font: inherit; font-weight: 750; font-size: 12.5px; padding: 4px 11px; border-radius: 999px; background: var(--volt); color: var(--volt-ink, #000); border: 1.5px solid #000; box-shadow: 2px 2px 0 #000; cursor: pointer; line-height: 1.2; white-space: nowrap; }
.err-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 #000; }
.err-fix { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); opacity: .8; text-decoration: none; white-space: nowrap; }
.err-fix .ic { width: 13px; height: 13px; }
.err-fix:hover { color: var(--text); opacity: 1; text-decoration: underline; }
.pb-artist .err-line { flex-wrap: nowrap; max-width: 100%; overflow: hidden; }
.pb-artist .err-line .err-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pb-artist .err-btn { padding: 2px 9px; font-size: 11.5px; box-shadow: 1.5px 1.5px 0 #000; }
.pb-artist .err-fix { font-size: 11.5px; }
.np-err { margin: 6px 0 4px; font-size: 14px; }
.np-err .err-btn { font-size: 13px; padding: 5px 13px; }
.yt-err-box { padding: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
@media (max-width: 420px) { .pb-artist .err-fix { display: none; } }

/* --- Play on… (audio output) --- */
.out-sheet .btn.block { width: 100%; margin: 6px 0; }
.out-list { display: grid; gap: 6px; margin: 8px 0 10px; }
.out-dev { appearance: none; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: inherit; text-align: left; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.out-dev > .ic:first-child { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--surface2); color: var(--volt); }
.out-dev b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.out-dev small { color: var(--muted); font-size: 12.5px; }
.out-dev > .ic:last-child { width: 20px; height: 20px; color: var(--volt); }
.out-dev.on { border-color: rgb(var(--volt-rgb) / .55); background: rgb(var(--volt-rgb) / .08); }
@media (hover: hover) { .out-dev:hover { border-color: rgb(var(--volt-rgb) / .35); } }
.out-tip { margin-top: 12px; }
.out-tip > b { display: flex; align-items: center; gap: 8px; }
.out-tip > b .ic { width: 18px; height: 18px; color: #ff3b30; }

/* --- Home: help button on the hero card (phones: bottom right · computers: top left) --- */
.home .home-hero > .hh-help { position: absolute; z-index: 3; right: 14px; bottom: 14px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; padding: 0; color: rgb(235 232 225 / .78); background: rgb(70 70 78 / .55); border: 1px solid rgb(255 255 255 / .14); box-shadow: 0 4px 14px rgb(0 0 0 / .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); cursor: pointer; transition: transform .2s, background .2s, color .2s; }
.home .home-hero > .hh-help .ic { width: 22px; height: 22px; }
.home .home-hero > .hh-help:active { transform: scale(.92); }
.home .home-hero:has(> .hh-help) .hh-txt > :last-child { padding-right: 46px; } /* the last line steers clear of the help button */
@media (hover: hover) and (pointer: fine) and (min-width: 701px) {
  .home .home-hero > .hh-help { right: auto; bottom: auto; left: 14px; top: 14px; width: 34px; height: 34px; }
  .home .home-hero > .hh-help .ic { width: 20px; height: 20px; }
  .home .home-hero > .hh-help:hover { color: #fff; background: rgb(90 90 100 / .7); transform: scale(1.06); }
  .home .home-hero:has(> .hh-help) { padding-top: 58px !important; }
  .home .home-hero:has(> .hh-help) .hh-txt > :last-child { padding-right: 0; }
}
.help-top { display: flex; gap: 14px; align-items: center; margin: 0 36px 14px 0; }
.help-top h3 { margin: 0 !important; }
.help-top p { margin: 2px 0 0; }
.help-ic { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--volt); background: rgb(var(--volt-rgb) / .14); box-shadow: inset 0 0 0 1px rgb(var(--volt-rgb) / .35); }
.help-ic .ic { width: 26px; height: 26px; }
.help-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.help-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); animation: helpIn .45s cubic-bezier(.2, 1, .3, 1) both; animation-delay: calc(var(--i) * 60ms); }
.help-steps .hs-n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--volt); color: var(--volt-ink, #000); border: 2px solid #000; box-shadow: 2px 2px 0 #000; }
.help-steps .hs-n .ic { width: 20px; height: 20px; }
.help-steps b { display: block; font-size: 15.5px; }
.help-steps p { margin: 2px 0 6px; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.help-steps .btn.sm { margin-top: 2px; }
@keyframes helpIn { from { opacity: 0; transform: translateY(8px); } }
.help-faq-h { margin: 6px 0 8px; font-size: 16px; }
.faq { display: grid; gap: 6px; }
.faq-i { border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); transition: border-color .25s; }
.faq-i.open { border-color: rgb(var(--volt-rgb) / .4); }
.faq-q { appearance: none; border: 0; background: none; color: var(--text); font: inherit; font-weight: 650; font-size: 14.5px; width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; }
.faq-q .ic { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform .35s cubic-bezier(.2, .8, .2, 1), color .2s; }
.faq-i.open .faq-q .ic { transform: rotate(180deg); color: var(--volt); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2, .8, .2, 1); }
.faq-a > div { min-height: 0; overflow: hidden; opacity: 0; transition: opacity .25s; }
.faq-i.open .faq-a { grid-template-rows: 1fr; }
.faq-i.open .faq-a > div { opacity: 1; }
.faq-a p { margin: 0; padding: 0 14px 13px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.help-more { margin: 16px 0 0; }

/* --- computers: the second YouTube player waits (invisible) behind the playing one --- */
.dock-frame iframe.yt-idle { position: absolute; inset: 0; opacity: 0; pointer-events: none; z-index: 0; }

.err-line .e-short { display: none; }
.err-line.compact .e-long { display: none; }
.err-line.compact .e-short { display: inline; }
@media (max-width: 420px) { .pb-artist .err-line.compact .err-text { display: none; } .pb-artist .err-line.compact::before { content: '!'; display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #ff453a; color: #fff; font-weight: 800; font-size: 11.5px; flex: none; } }
@media (max-width: 380px) { #np-head .np-ctx { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; font-size: 11px; } }
@media (max-width: 420px) { .pb-artist .err-btn { padding: 1px 8px; font-size: 11px; } }

/* --- Year filter: From – To --- */
.year-range { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.year-range .yr { display: grid; gap: 4px; flex: 1 1 120px; max-width: 200px; }
.year-range .yr > span { font-size: 12px; font-weight: 650; color: var(--muted); }
.year-range .select { width: 100%; padding: 9px 12px; border-radius: 12px; font-weight: 650; }
.year-range .yr-dash { padding-bottom: 10px; color: var(--muted); font-weight: 700; }

/* ===== v1.7.3 ===== */
/* --- corner video (computers & tablets): always exactly 16:9, so the video fills its box at every width --- */
@media (min-width: 701px) {
  body:not(.dock-min) #yt-dock:not(.in-np) .dock-frame { height: auto !important; aspect-ratio: 16 / 9; }
}
/* --- pop-ups clear the iPhone status bar, camera and home bar --- */
.modal-wrap { padding: max(16px, calc(env(safe-area-inset-top) + 10px)) max(16px, env(safe-area-inset-right)) max(16px, calc(env(safe-area-inset-bottom) + 10px)) max(16px, env(safe-area-inset-left)) !important; }
.modal { max-height: calc(100vh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); max-height: calc(100dvh - max(16px, env(safe-area-inset-top) + 10px) - max(16px, env(safe-area-inset-bottom) + 10px)); }
@media (max-width: 700px) and (orientation: portrait) {
  .help-modal { padding-top: 26px; }
  .help-modal .help-top { margin-top: 4px; }
}

/* ===== v1.8 ===== */
/* --- coffee buttons always fit their box: the label shrinks with the space it has, and wraps rather than being cut off --- */
.coffee-btn { box-sizing: border-box; min-width: 0; }
.coffee-btn .cb-txt { flex: 0 1 auto; min-width: 0; }
.coffee-btn .cb-txt b { white-space: normal; overflow-wrap: break-word; line-height: 1.1; }
.p2-body .coffee-btn.big { container-type: inline-size; padding: 12px 18px 12px 12px; gap: 12px; }
.p2-body .coffee-btn.big .cb-cup { width: clamp(40px, 15cqi, 58px); height: clamp(40px, 15cqi, 58px); }
.p2-body .coffee-btn.big .cb-cup .ic { width: clamp(22px, 8cqi, 32px); height: clamp(22px, 8cqi, 32px); }
.p2-body .coffee-btn.big .cb-txt b { font-size: clamp(15px, 6.6cqi, 22px); }
.p2-body .coffee-btn.big .cb-txt small { font-size: clamp(11px, 3.7cqi, 12.5px); }
@media (max-width: 420px) { .coffee-btn.big { padding: 12px 18px 12px 12px; gap: 12px; } .coffee-btn.big .cb-txt b { font-size: 18px; } }
/* --- long song titles: 2 lines with "…"; tapping one shows the whole title for 3 seconds --- */
.tclamp { display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden !important; white-space: normal !important; text-overflow: ellipsis; overflow-wrap: anywhere; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tclamp.full { -webkit-line-clamp: unset; line-clamp: none; display: block !important; animation: tclampIn .18s ease-out; }
@keyframes tclampIn { from { opacity: .55 } to { opacity: 1 } }
.jump h2.tclamp { line-height: 1.15; }
.menu-h b.tclamp { line-height: 1.25; }
/* --- Add to playlist: a bigger sheet; playlists that already have the song show a ✓ --- */
.modal.pl-modal { width: min(580px, 100%); padding: 22px 20px 18px; display: flex; flex-direction: column; height: min(720px, calc(100vh - 40px)); height: min(720px, calc(100dvh - 40px)); overflow: hidden; }
.pl-dlg { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.pl-dlg > * { flex-shrink: 0; }
.pl-dlg h3 { margin: 0 40px 4px 4px; font-size: 24px; line-height: 1.2; }
.pl-dlg-sub { margin: 0 40px 14px 4px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-dlg-sub b { color: var(--text); }
.pl-q { margin: 0 0 10px; }
.pl-q input { width: 100%; }
.pick-list.pl-list { flex: 1 1 auto; flex-shrink: 1; min-height: 160px; height: auto; max-height: none; margin: 0 -6px; padding: 0 6px 4px; gap: 4px; overflow-y: auto; overscroll-behavior: contain; }
.pick.pl-pick { grid-template-columns: 52px minmax(0, 1fr) 34px; gap: 14px; padding: 9px 10px; border-radius: 14px; border: 1.5px solid transparent; transition: background .15s, border-color .15s; }
.pick.pl-pick > span { display: grid; min-width: 0; gap: 1px; }
.pick.pl-pick .cover.sm { width: 52px; height: 52px; border-radius: 10px; }
.pick.pl-pick b { font-size: 16px; }
.pick.pl-pick small { font-size: 13px; }
.pl-check { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--surface3); color: transparent; transition: background .15s, border-color .15s, transform .15s; }
.pl-check .ic { width: 17px; height: 17px; stroke-width: 3; }
.pick.pl-pick.on { background: rgb(var(--volt-rgb) / .1); border-color: rgb(var(--volt-rgb) / .35); }
.pick.pl-pick.on .pl-check, .pick.pl-pick.some .pl-check { background: var(--volt); border-color: #000; color: #000; }
.pick.pl-pick.on small { color: var(--volt); }
.pick.pl-pick.pop .pl-check { animation: plPop .3s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes plPop { 0% { transform: scale(.6) } 100% { transform: scale(1) } }
.pick.pl-new .cover { background: var(--surface2); color: var(--volt); display: grid; place-items: center; }
.pick.pl-new .cover .ic { width: 24px; height: 24px; }
.pick.pl-new b { color: var(--volt); }
.pick.pl-pick[data-busy] { opacity: .7; }
.pl-dlg .modal-actions { margin-top: 12px; }
.pl-dlg .modal-actions .btn { flex: 1; justify-content: center; padding: 13px; font-size: 16px; }
@media (max-width: 700px) {
  .modal.pl-modal { width: 100%; height: calc(100vh - 40px); height: calc(100dvh - max(16px, env(safe-area-inset-top) + 10px) - max(16px, env(safe-area-inset-bottom) + 10px)); padding: 20px 14px 14px; }
}
/* --- playlists in custom order: drag the grip on the left of a song to move it (like the queue) --- */
.rows.reorder > .row { position: relative; padding-left: 34px; }
.row-grip { position: absolute; left: 0; top: 0; bottom: 0; width: 34px; height: auto; margin: 0; display: grid; place-items: center; color: var(--dim, var(--muted)); cursor: grab; touch-action: none; z-index: 1; }
.row-grip:hover { color: var(--text); }
.rows.reorder > .row.dragging { background: var(--surface3); box-shadow: 0 10px 30px rgb(0 0 0 / .5); outline: 2px solid var(--volt); z-index: 3; content-visibility: visible; cursor: grabbing; }
.rows.reorder > .row.dragging .row-grip { cursor: grabbing; color: var(--volt); }
body.row-dragging, body.row-dragging * { user-select: none; -webkit-user-select: none; cursor: grabbing; }
@media (max-width: 700px) { .rows.reorder > .row { padding-left: 30px; } .row-grip { width: 30px; } }
/* --- closing the full-screen player: one smooth slide, GPU only --- */
body.np-closing #np { will-change: transform; pointer-events: none; }
body.np-closing #np .np-scroll { padding-top: calc(max(10px, env(safe-area-inset-top)) + var(--nph) - 6px) !important; }
body.np-closing #np-head { display: flex; transform: translate3d(0, 100vh, 0); transition: transform .3s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
body.np-closing #np .np-queue { animation: none; }
#yt-dock.np-leaving { transition: transform .3s cubic-bezier(.2, .8, .2, 1) !important; z-index: 80; pointer-events: none; border-radius: 16px; }
#yt-dock.np-leaving .dock-bar { display: none; }
#yt-dock.np-leaving .dock-frame { height: 100% !important; }
body:not(.np-open) #np { contain: layout paint; }
.pick.pl-pick, .pick.pl-pick b { color: var(--text); } .pick.pl-new b { color: var(--volt); }
