/* Mi Música — sala de escucha: azul petróleo profundo con una sola luz ámbar, como el medidor de un amplificador. */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(fonts/archivo-latin-wdth-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0d2125; --side: #0a191c; --raise: #13292e; --raise2: #1b363c; --line: #23454c;
  --txt: #eaf2f0; --mut: #93acab; --amber: #ffb23e; --amber-ink: #2b1800; --danger: #ff8a80;
  --bar-h: 88px;
  --t-sm: 13.5px; --t-md: 15px; --t-lg: 19px; --t-xl: 24px; --t-2xl: 34px;
  --wide: 120%; --narrow: 88%;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--txt); overflow: hidden;
  font: 400 var(--t-md)/1.45 "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
[hidden], .hidden { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { display: block; max-width: 100%; }
.mut { color: var(--mut); }
.err { color: var(--danger); min-height: 1.3em; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 6px; }
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.i { width: 22px; height: 22px; flex: none; }

/* ---------- piezas básicas ---------- */
.lamp { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px 2px rgba(255, 178, 62, .55); flex: none; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 999px; font-weight: 600;
  background: rgba(255, 255, 255, .09); transition: background .15s, transform .15s; }
.btn:hover { background: rgba(255, 255, 255, .15); }
.btn .i { width: 18px; height: 18px; }
.btn.primary { background: var(--amber); color: var(--amber-ink); }
.btn.primary:hover { background: #ffc263; }
.btn.sm { height: 32px; padding: 0 14px; font-size: var(--t-sm); }
.icon { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--txt); flex: none; transition: background .15s, color .15s; }
.icon:hover { background: rgba(255, 255, 255, .09); }
.icon.sm { width: 30px; height: 30px; } .icon.sm .i { width: 18px; height: 18px; }
.icon.on { color: var(--amber); }
.icon[data-badge="1"]::after { content: "1"; position: absolute; right: 4px; bottom: 4px; font-size: 10px; font-weight: 800; color: var(--amber); }
.icon.play { width: 56px; height: 56px; background: var(--amber); color: var(--amber-ink); }
.icon.play:hover { background: #ffc263; transform: scale(1.05); }
.icon.play .i { width: 24px; height: 24px; }
.heart { color: var(--mut); } .heart:hover { color: var(--txt); }
.heart.on { color: var(--amber); } .heart.on .i path { fill: currentColor; }
.cover { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--raise); border-radius: 4px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
.avatar { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: var(--raise); }
.q { font-size: 12px; font-weight: 700; font-stretch: var(--narrow); letter-spacing: .03em; border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; color: var(--mut); white-space: nowrap; }
.q.lossless { color: var(--amber); border-color: rgba(255, 178, 62, .5); }
.q:empty { display: none; }
input, select { background: var(--raise); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
select { border-radius: 999px; padding: 8px 14px; }
input:focus, select:focus { outline: 2px solid var(--amber); outline-offset: 1px; }

/* barras de rango (posición y volumen) */
input[type=range] { -webkit-appearance: none; appearance: none; background: none; border: 0; padding: 0; height: 18px; width: 100%; cursor: pointer; --p: 0%; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--txt) var(--p), rgba(255, 255, 255, .18) var(--p)); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .18); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--txt); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; background: var(--txt); opacity: 0; transition: opacity .15s; }
input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--txt); opacity: 0; }
input[type=range]:hover::-webkit-slider-thumb, input[type=range]:focus-visible::-webkit-slider-thumb { opacity: 1; }
input[type=range]:hover::-moz-range-thumb, input[type=range]:focus-visible::-moz-range-thumb { opacity: 1; }
input[type=range]:hover::-webkit-slider-runnable-track { background: linear-gradient(to right, var(--amber) var(--p), rgba(255, 255, 255, .18) var(--p)); }
input[type=range]:hover::-moz-range-progress { background: var(--amber); }

/* ---------- inicio de sesión ---------- */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(70% 55% at 15% 0%, #1d4f56 0%, transparent 62%), var(--bg); }
.login form { width: min(340px, 100%); display: grid; gap: 14px; }
.login-mark { display: flex; align-items: center; gap: 14px; font-size: 44px; line-height: 1; font-weight: 800; font-stretch: var(--wide); letter-spacing: -.03em; }
.login-mark .lamp { width: 12px; height: 12px; }
.login-sub { color: var(--mut); margin-bottom: 14px; }
.login label { display: grid; gap: 6px; color: var(--mut); font-size: var(--t-sm); }
.login .btn { justify-content: center; margin-top: 6px; height: 46px; }

/* ---------- estructura ---------- */
.app { display: grid; height: 100dvh; grid-template-columns: 260px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "side stage" "bar bar"; }
.side { grid-area: side; background: var(--side); padding: 22px 12px 12px; display: flex; flex-direction: column; gap: 20px; min-height: 0; }
.logo { display: flex; align-items: center; gap: 12px; padding: 0 12px; font-size: 22px; font-weight: 800; font-stretch: var(--wide); letter-spacing: -.03em; }
.nav { display: grid; gap: 2px; }
.nav a, .tabbar a { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 12px; border-radius: 10px; color: var(--mut); font-weight: 600; transition: color .15s, background .15s; }
.nav a:hover { color: var(--txt); }
.nav a.active { background: var(--raise); color: var(--txt); }
.nav a.active .i, .tabbar a.active .i { color: var(--amber); }
.side-pl { flex: 1; min-height: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 14px; }
.side-pl-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 6px 12px; color: var(--mut); font-size: var(--t-sm); font-weight: 600; }
#side-pl { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
#side-pl a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#side-pl a:hover { color: var(--txt); background: var(--raise); }
#side-pl a.active { color: var(--amber); }
.me { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; text-align: left; color: var(--mut); }
.me:hover { background: var(--raise); color: var(--txt); }
.me-av { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--amber); color: var(--amber-ink); font-weight: 800; }
.me-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--txt); font-weight: 600; }
.me .i { width: 18px; height: 18px; }

.stage { grid-area: stage; overflow-y: auto; position: relative; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 24px; transition: background .2s; }
.top.scrolled { background: rgba(10, 25, 28, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.search { display: flex; align-items: center; gap: 10px; flex: 1; max-width: 460px; height: 42px; padding: 0 16px; border-radius: 999px; background: var(--raise); border: 1px solid transparent; color: var(--mut); }
.search:focus-within { border-color: var(--amber); color: var(--txt); }
.search .i { width: 18px; height: 18px; }
.search input { all: unset; width: 100%; color: var(--txt); }
.search input::placeholder { color: var(--mut); }
.only-m { display: none; }
#view { padding: 0 32px 56px; outline: none; }

/* ---------- páginas ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 8px 0 22px; }
.page-head h1, .ahead h1, .hero h1, .empty h2 { font-weight: 800; font-stretch: var(--wide); letter-spacing: -.028em; line-height: 1; text-wrap: balance; }
.page-head h1 { font-size: var(--t-2xl); }
.ctl { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ctl label { display: flex; align-items: center; gap: 8px; color: var(--mut); font-size: var(--t-sm); }
h2.sec { margin: 34px 0 14px; font-size: var(--t-xl); font-weight: 700; font-stretch: 108%; letter-spacing: -.02em; }
h2.letter { margin: 26px 0 12px; font-size: var(--t-lg); font-weight: 800; font-stretch: var(--wide); color: var(--amber); }
.empty { padding: 56px 0; max-width: 520px; display: grid; gap: 12px; }
.empty h2 { font-size: var(--t-2xl); }
.empty p { color: var(--mut); font-size: var(--t-lg); line-height: 1.4; }
.sentinel { height: 1px; }
.actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.actions.inline { margin: 0 0 12px; }

/* inicio */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; margin: 4px 0 8px; padding: 36px 40px; border-radius: 20px;
  background: linear-gradient(112deg, rgba(var(--tint, 58, 98, 106), .8) 0%, rgba(var(--tint, 58, 98, 106), .22) 58%, rgba(var(--tint, 58, 98, 106), .05) 100%); }
.hero-hi { color: rgba(234, 242, 240, .8); font-size: var(--t-lg); margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 72px); margin-bottom: 14px; }
.hero h1 a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.hero-artist { font-size: var(--t-xl); font-weight: 600; }
.hero-note { color: rgba(234, 242, 240, .7); margin-top: 6px; font-stretch: var(--narrow); }
.hero-art { width: clamp(200px, 24vw, 320px); }
.hero-art .cover { border-radius: 6px; box-shadow: 0 28px 70px rgba(0, 0, 0, .5); }
.shelf { margin-top: 36px; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.shelf-head h2 { font-size: var(--t-xl); font-weight: 700; font-stretch: 108%; letter-spacing: -.02em; }
.shelf-head a { color: var(--mut); font-weight: 600; font-size: var(--t-sm); } .shelf-head a:hover { color: var(--txt); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 20px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; }
.rail > * { scroll-snap-align: start; }

/* carátulas */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 26px 20px; }
.grid.artists { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.sleeve { position: relative; display: grid; gap: 2px; align-content: start; min-width: 0; }
.sleeve-cover { position: relative; margin-bottom: 8px; }
.sleeve-cover .cover { transition: filter .2s; }
.sleeve:hover .cover { filter: brightness(1.1); }
.sleeve-title { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sleeve-title:hover { text-decoration: underline; }
.sleeve-sub { color: var(--mut); font-size: var(--t-sm); font-stretch: var(--narrow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick { position: absolute; right: 10px; bottom: 10px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  background: var(--amber); color: var(--amber-ink); opacity: 0; transform: translateY(6px); transition: opacity .18s, transform .18s; box-shadow: 0 8px 20px rgba(0, 0, 0, .4); }
.quick .i { width: 20px; height: 20px; }
.sleeve:hover .quick, .sleeve:focus-within .quick { opacity: 1; transform: none; }
.quick:hover { transform: scale(1.06) !important; }
.atile { display: grid; gap: 2px; justify-items: center; text-align: center; padding: 10px 6px 14px; border-radius: 14px; }
.atile:hover { background: var(--raise); }
.atile .avatar { margin-bottom: 10px; }
.atile b { font-weight: 650; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atile span { color: var(--mut); font-size: var(--t-sm); font-stretch: var(--narrow); }

/* cabecera de álbum, artista y playlist */
.ahead { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 32px; align-items: end; margin: -64px -32px 12px; padding: 104px 32px 30px;
  background: linear-gradient(180deg, rgba(var(--tint, 58, 98, 106), .72), rgba(var(--tint, 58, 98, 106), 0) 100%); }
.ahead .cover, .ahead .avatar { box-shadow: 0 22px 54px rgba(0, 0, 0, .45); }
.ahead h1 { font-size: clamp(30px, 5.2vw, 68px); margin-bottom: 12px; }
.ahead-artist { font-size: var(--t-lg); font-weight: 650; }
.ahead-artist a:hover { text-decoration: underline; }
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 10px; color: rgba(234, 242, 240, .78); font-stretch: var(--narrow); font-size: var(--t-md); }

/* pistas */
.tracks { display: grid; }
.disc { margin: 20px 0 6px 8px; color: var(--mut); font-size: var(--t-sm); font-weight: 600; }
.trow { display: grid; grid-template-columns: 44px minmax(0, 1fr) 40px 52px 56px 40px; align-items: center; gap: 8px; min-height: 54px; padding: 4px 8px; border-radius: 10px; cursor: pointer; }
.tracks.with-album .trow { grid-template-columns: 44px minmax(0, 1.5fr) minmax(0, 1fr) 40px 52px 56px 40px; }
.trow:hover, .trow:focus-within { background: rgba(255, 255, 255, .06); }
.trow.playing { background: rgba(255, 178, 62, .08); }
.tnum { position: relative; display: grid; place-items: center; width: 44px; height: 38px; color: var(--mut); font-variant-numeric: tabular-nums; }
.tnum .i { position: absolute; width: 18px; height: 18px; opacity: 0; color: var(--txt); }
.trow:hover .tnum .n, .trow:focus-within .tnum .n { opacity: 0; }
.trow:hover .tnum .i, .trow:focus-within .tnum .i { opacity: 1; }
.trow.playing .tnum .n { color: var(--amber); font-weight: 800; }
.tmain { min-width: 0; display: grid; }
.tmain b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tmain span, .talb { color: var(--mut); font-size: var(--t-sm); font-stretch: var(--narrow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.talb:hover { color: var(--txt); text-decoration: underline; }
.trow.playing .tmain b { color: var(--amber); }
.tq { color: var(--mut); font-size: 12px; font-weight: 700; text-align: right; }
.tdur { color: var(--mut); font-size: var(--t-sm); text-align: right; font-variant-numeric: tabular-nums; }
.trow .heart { opacity: 0; }
.trow:hover .heart, .trow:focus-within .heart, .trow .heart.on { opacity: 1; }
.trow .more { opacity: 0; } .trow:hover .more, .trow:focus-within .more { opacity: 1; }
@media (hover: none) { .trow .heart, .trow .more { opacity: .75; } .quick { display: none; } }

/* ---------- barra del reproductor ---------- */
.bar { grid-area: bar; position: relative; display: grid; grid-template-columns: minmax(200px, 1fr) minmax(300px, 1.7fr) minmax(220px, 1fr);
  grid-template-areas: "now ctrl extra"; align-items: center; gap: 16px; height: var(--bar-h); padding: 0 16px; background: var(--side); border-top: 1px solid var(--line); }
.bar-line { display: none; }
.bar-left { grid-area: now; display: flex; align-items: center; gap: 4px; min-width: 0; }
.bar-now { display: flex; align-items: center; gap: 14px; flex: 0 1 auto; min-width: 0; text-align: left; border-radius: 8px; }
.bar-now .cover { width: 58px; height: 58px; flex: none; }
.bar-meta { min-width: 0; display: grid; }
.bar-meta b { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-meta span { color: var(--mut); font-size: var(--t-sm); font-stretch: var(--narrow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-ctrl { grid-area: ctrl; display: grid; gap: 2px; justify-items: center; min-width: 0; }
.btns { display: flex; align-items: center; gap: 6px; }
.btns .icon.play { width: 42px; height: 42px; } .btns .icon.play .i { width: 20px; height: 20px; }
.seek { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 10px; align-items: center; width: 100%; max-width: 640px; }
.seek span { color: var(--mut); font-size: 12px; font-variant-numeric: tabular-nums; text-align: center; }
.bar-extra { grid-area: extra; display: flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; }
.bar-extra .q { margin-right: 8px; }
.bar-extra #vol { width: 96px; margin-left: 2px; }

/* ---------- reproduciendo ahora ---------- */
.np { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; background: var(--side); overflow: hidden; }
.np-bg { position: absolute; inset: 0; background:
  radial-gradient(110% 80% at 18% 8%, rgba(var(--tint, 58, 98, 106), .95), transparent 62%),
  linear-gradient(180deg, rgba(var(--tint, 58, 98, 106), .3), var(--side) 88%); }
.viz { position: absolute; left: 0; bottom: 0; width: 100%; height: 30%; pointer-events: none; }
.np-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; gap: 12px; }
.np-from { flex: 1; text-align: center; color: rgba(234, 242, 240, .8); font-stretch: var(--narrow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-body { position: relative; z-index: 1; flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 5vw; align-items: center; padding: 0 6vw 22vh; }
.np-art { display: grid; place-items: center; }
.np-art .cover { width: min(100%, 58vh, 560px); border-radius: 6px; box-shadow: 0 34px 90px rgba(0, 0, 0, .55); }
.np-side { display: flex; flex-direction: column; gap: 18px; min-height: 0; max-height: 100%; }
.np-head { display: flex; align-items: flex-start; gap: 10px; }
.np-titles { flex: 1; min-width: 0; display: grid; gap: 8px; }
.np-title { font-size: clamp(26px, 3.6vw, 54px); font-weight: 800; font-stretch: var(--wide); letter-spacing: -.028em; line-height: 1.02; text-wrap: balance; }
.np-artist { font-size: var(--t-lg); font-weight: 650; width: fit-content; } .np-artist:hover { text-decoration: underline; }
.signal { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.signal li { font-size: 12.5px; font-stretch: 92%; padding: 3px 11px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: rgba(234, 242, 240, .85); }
.signal li.on { background: rgba(255, 178, 62, .2); color: var(--amber); font-weight: 700; }
.btns.big { justify-content: center; gap: 14px; } .btns.big .icon { width: 46px; height: 46px; } .btns.big .icon.play { width: 64px; height: 64px; } .btns.big .icon.play .i { width: 28px; height: 28px; }
.np .seek { max-width: none; }
.np-tabs { display: flex; gap: 6px; }
.np-tabs button { padding: 7px 16px; border-radius: 999px; font-weight: 600; color: var(--mut); }
.np-tabs button[aria-selected=true] { background: rgba(255, 255, 255, .13); color: var(--txt); }
.np-panel { flex: 1; min-height: 140px; overflow-y: auto; padding-right: 6px; mask-image: linear-gradient(transparent, #000 14px, #000 calc(100% - 24px), transparent); -webkit-mask-image: linear-gradient(transparent, #000 14px, #000 calc(100% - 24px), transparent); }
.pad { padding: 18px 2px; }
.ly { font-size: clamp(20px, 2.1vw, 30px); font-weight: 700; font-stretch: 108%; line-height: 1.25; margin: .55em 0; color: rgba(234, 242, 240, .4); transition: color .25s; }
.lyrics.synced .ly { cursor: pointer; }
.lyrics.synced .ly.past { color: rgba(234, 242, 240, .6); }
.lyrics.synced .ly.on { color: var(--txt); }
.lyrics:not(.synced) .ly { font-size: var(--t-lg); font-weight: 500; font-stretch: 100%; color: rgba(234, 242, 240, .88); margin: .2em 0; }
.q-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 2px 10px; color: var(--mut); }
.qlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.qlist li { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 10px; cursor: pointer; }
.qlist li:hover { background: rgba(255, 255, 255, .08); }
.qlist li.on { background: rgba(255, 178, 62, .12); }
.qlist li.on b { color: var(--amber); }
.qlist .grip { display: grid; place-items: center; width: 24px; height: 36px; flex: none; color: var(--mut); cursor: grab; touch-action: none; opacity: .6; }
.qlist .grip svg { width: 18px; height: 18px; }
.qlist li:hover .grip { opacity: 1; }
.qlist li.drag { background: var(--raise2); box-shadow: 0 8px 24px rgba(0,0,0,.45); position: relative; z-index: 2; }
.qlist .cover { width: 44px; height: 44px; flex: none; }
.qm { flex: 1; min-width: 0; display: grid; } .qm b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qm small { color: var(--mut); font-size: var(--t-sm); font-stretch: var(--narrow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- menú, avisos y diálogos ---------- */
.menu-bd { position: fixed; inset: 0; z-index: 90; }
.menu { position: fixed; z-index: 95; min-width: 240px; padding: 6px; background: var(--raise2); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 56px rgba(0, 0, 0, .5); }
.menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 9px; text-align: left; }
.menu button:hover, .menu button:focus-visible { background: rgba(255, 255, 255, .09); }
.menu button.danger { color: var(--danger); }
.menu .i { width: 18px; height: 18px; color: var(--mut); } .menu .danger .i { color: var(--danger); }
.toast { position: fixed; left: 50%; bottom: calc(var(--bar-h) + 20px); transform: translate(-50%, 8px); z-index: 120; padding: 10px 20px; border-radius: 999px;
  background: var(--txt); color: #0a191c; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
dialog { background: var(--raise); color: var(--txt); border: 1px solid var(--line); border-radius: 18px; padding: 24px; width: min(420px, 92vw); }
dialog::backdrop { background: rgba(4, 12, 14, .72); }
dialog h2 { font-size: var(--t-xl); font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; margin-bottom: 8px; }
dialog label { display: grid; gap: 8px; margin: 18px 0; color: var(--mut); }
dialog .row { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.pl-list { list-style: none; margin: 14px 0; padding: 0; max-height: 40vh; overflow-y: auto; display: grid; gap: 2px; }
.pl-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border-radius: 10px; text-align: left; }
.pl-item:hover { background: rgba(255, 255, 255, .08); }
.pl-item .cover { width: 44px; height: 44px; flex: none; }
.pl-item span { display: grid; } .pl-item small { color: var(--mut); }
.pl-new { display: flex; gap: 8px; margin-top: 8px; } .pl-new input { flex: 1; min-width: 0; }

/* ---------- móvil ---------- */
.tabbar { display: none; }
@media (max-width: 860px) {
  :root { --bar-h: 64px; }
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto; grid-template-areas: "stage" "bar" "tabs"; }
  .side { display: none; }
  .tabbar { display: flex; grid-area: tabs; padding-bottom: env(safe-area-inset-bottom); background: var(--side); border-top: 1px solid var(--line); }
  .tabbar a { flex: 1; flex-direction: column; justify-content: center; gap: 2px; height: 56px; padding: 0; font-size: 11px; }
  .tabbar .i { width: 22px; height: 22px; }
  .only-m { display: inline-grid; }
  .top { padding: 0 12px; height: 60px; }
  #view { padding: 0 16px 28px; }
  .page-head h1 { font-size: 28px; }
  .hero { grid-template-columns: 1fr; padding: 22px; gap: 22px; }
  .hero-art { width: min(62vw, 260px); order: -1; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 20px 14px; }
  .grid.artists { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .rail { grid-auto-columns: 140px; gap: 14px; }
  .ahead { grid-template-columns: 1fr; justify-items: center; text-align: center; margin: -60px -16px 8px; padding: 84px 16px 22px; gap: 20px; }
  .ahead .cover, .ahead .avatar { width: min(62vw, 240px); }
  .facts, .actions { justify-content: center; }
  .trow, .tracks.with-album .trow { grid-template-columns: 38px minmax(0, 1fr) 36px 40px; gap: 4px; }
  .talb, .tq, .tdur { display: none; }
  .tnum { width: 38px; }
  .bar { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "now ctrl"; height: var(--bar-h); padding: 0 8px 0 10px; gap: 4px; }
  .bar-now { flex: 1 1 auto; }
  .bar-line { display: block; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: rgba(255, 255, 255, .12); }
  .bar-line i { display: block; height: 100%; width: 0; background: var(--amber); }
  .bar-now .cover { width: 44px; height: 44px; }
  .hide-m, .bar-extra { display: none !important; }
  .btns .icon.play { width: 40px; height: 40px; background: none; color: var(--txt); } .btns .icon.play:hover { background: rgba(255, 255, 255, .09); transform: none; }
  .btns .icon.play .i { width: 24px; height: 24px; }
  .np-body { grid-template-columns: 1fr; gap: 20px; align-content: start; overflow-y: auto; padding: 0 22px calc(28px + env(safe-area-inset-bottom)); }
  .np-art .cover { width: min(78vw, 46vh); }
  .np-side { max-height: none; overflow: visible; }
  .np-panel { overflow: visible; max-height: none; mask-image: none; -webkit-mask-image: none; min-height: 0; }
  .viz { height: 22%; opacity: .55; }
  .menu { left: 0; right: 0; bottom: 0; top: auto !important; border-radius: 20px 20px 0 0; padding: 10px 10px calc(16px + env(safe-area-inset-bottom)); }
  .menu-bd { background: rgba(0, 0, 0, .55); }
  .toast { bottom: calc(var(--bar-h) + 76px); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
