:root {
  --accent: #1ed760;
  --on-accent: #000;
  --bg: #121212;
  --surface: #1e1e1e;
  --surface-2: #2a2a2a;
  --text: #ffffff;
  --muted: #a7a7a7;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --fs: 16px;
  --r: 10px;
  --r-sm: 6px;
  --r-pill: 999px;
  --nav-h: 62px;
  --bar-h: 60px;
  --side-w: 0px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
:root[data-corners="square"] { --r: 2px; --r-sm: 2px; --r-pill: 4px; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); font-size: var(--fs); }
body { overscroll-behavior-y: none; overflow-x: clip; }
/* Nada puede ensanchar la página: si algo se sale, la barra de navegación fija se desplazaba */
.main { min-width: 0; overflow-x: clip; }
.list, .track { min-width: 0; }
body.np-open { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; text-align: inherit; }
button:disabled { opacity: .5; cursor: default; }
img { display: block; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
p { margin: 6px 0; }
ul { padding-left: 20px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: .82em; }
.center { text-align: center; }
.mb { margin-bottom: 10px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between, .between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ellipsis2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hidden { display: none !important; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.link { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--text) 30%, transparent); }
.link.small { font-size: .8em; color: var(--muted); }
.desktop-only { display: none; }

/* ---------- Botones e inputs ---------- */
.btn { background: var(--accent); color: var(--on-accent); font-weight: 700; padding: 14px 22px; border-radius: var(--r-pill); width: 100%; font-size: 1em; text-align: center; transition: transform .1s, filter .2s; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(0.98); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid color-mix(in srgb, var(--text) 30%, transparent); }
.btn.small { width: auto; padding: 8px 16px; font-size: .88em; }
.field { display: block; margin: 0 0 14px; }
.field span { display: block; font-weight: 600; font-size: .88em; margin-bottom: 6px; }
.input { width: 100%; padding: 13px 14px; border-radius: var(--r-sm); border: 1px solid color-mix(in srgb, var(--text) 18%, transparent); background: var(--surface); font-size: 1em; outline: none; }
.input:focus { border-color: var(--accent); }
textarea.input { resize: vertical; }
.input.filter { margin: 4px 0 8px; padding: 10px 12px; font-size: .9em; }
.icon-btn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--text); position: relative; transition: transform .1s, color .2s; }
.icon-btn:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn.lg svg { width: 30px; height: 30px; }
.icon-btn.sm { width: 30px; height: 30px; font-size: 11px; }
.icon-btn.sm svg { width: 16px; height: 16px; }
.icon-btn.on { color: var(--accent); }
.icon-btn.on::after { content: ''; position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.icon-btn.one::before { content: '1'; position: absolute; top: 6px; right: 6px; font-size: 9px; font-weight: 800; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--r-pill); background: var(--surface-2); font-size: .86em; white-space: nowrap; font-weight: 500; }
.chip svg { width: 16px; height: 16px; }
.chip.on { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.chip.big { padding: 10px 16px; font-weight: 700; }
.chips { display: flex; gap: 8px; align-items: center; }
.chips.wrap { flex-wrap: wrap; }
.chips.scroll, .row.chips { overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 8px; }
.chips.scroll::-webkit-scrollbar, .row.chips::-webkit-scrollbar { display: none; }
.badge { display: inline-block; font-size: 9px; text-transform: uppercase; letter-spacing: .05em; padding: 2px 5px; border-radius: 3px; background: var(--surface-2); color: var(--muted); margin-right: 5px; vertical-align: 1px; font-weight: 700; }
.badge.ok { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); }

/* ---------- Acceso y personalización ---------- */
.auth { min-height: 100vh; padding: 40px 24px calc(28px + var(--safe-b)); display: flex; flex-direction: column; max-width: 460px; margin: 0 auto; }
.auth.wide { max-width: 560px; }
.auth-hero { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 28px; font-weight: 800; }
.logo img { width: 44px; height: 44px; }
.eq-anim { display: flex; gap: 4px; align-items: flex-end; height: 30px; }
.eq-anim i { width: 5px; background: var(--accent); border-radius: 3px; animation: eqb 1s ease-in-out infinite; }
.eq-anim i:nth-child(2) { animation-delay: .2s } .eq-anim i:nth-child(3) { animation-delay: .4s } .eq-anim i:nth-child(4) { animation-delay: .1s } .eq-anim i:nth-child(5) { animation-delay: .3s }
@keyframes eqb { 0%, 100% { height: 6px } 50% { height: 30px } }
.auth h1 { font-size: 30px; margin-bottom: 8px; }
.auth h3 { font-size: 1em; }
.auth p.lead { color: var(--muted); margin: 0 0 24px; }
.tabs { display: flex; gap: 8px; margin-bottom: 22px; }
.error { color: #ff6b6b; min-height: 20px; font-size: .88em; margin: -4px 0 12px; }
.steps { display: flex; gap: 6px; margin-bottom: 26px; }
.steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-2); }
.steps i.done { background: var(--accent); }
.spacer { flex: 1; min-height: 20px; }
.avatar-pick { width: 132px; height: 132px; border-radius: 50%; margin: 8px auto 24px; background: var(--surface-2) center/cover; display: grid; place-items: center; font-size: 46px; font-weight: 800; border: 3px solid var(--accent); position: relative; overflow: hidden; cursor: pointer; }
.avatar-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.palettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 20px; }
.palette { border-radius: var(--r); padding: 14px; border: 2px solid transparent; }
.palette.on { border-color: var(--text); }
.palette .dots { display: flex; gap: 6px; margin-bottom: 10px; }
.palette .dots b { width: 18px; height: 18px; border-radius: 50%; display: block; }
.custom-colors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.custom-colors label { font-size: 12px; color: var(--muted); text-align: center; }
.custom-colors input { width: 100%; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; margin-bottom: 18px; }
.choice { background: var(--surface); border: 2px solid transparent; border-radius: var(--r); padding: 12px 8px; text-align: center; font-size: .85em; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.choice span { font-size: 1.6em; font-weight: 700; }
.choice.on { border-color: var(--accent); }
.dropzone { border: 2px dashed color-mix(in srgb, var(--text) 25%, transparent); border-radius: var(--r); padding: 22px; text-align: center; position: relative; margin: 10px 0 18px; display: block; transition: background .2s, border-color .2s; }
.dropzone.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.source-icons { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 14px; }
.legal { background: var(--surface); border-left: 3px solid var(--accent); padding: 10px 12px; border-radius: var(--r-sm); font-size: .82em; color: var(--muted); margin: 12px 0; }

/* ---------- Estructura ---------- */
.side { display: none; }
.main { padding: 12px 16px calc(var(--nav-h) + 24px + var(--safe-b)); max-width: 1400px; margin: 0 auto; position: relative; min-height: 100vh; }
body.has-bar .main { padding-bottom: calc(var(--nav-h) + var(--bar-h) + 28px + var(--safe-b)); }
.home-bg { position: absolute; inset: 0 0 auto; height: 320px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 28%, transparent), transparent); pointer-events: none; z-index: -1; }
:root[data-gradient="off"] .home-bg { display: none; }
.topbar { display: flex; align-items: center; gap: 10px; margin: 6px 0 18px; min-height: 40px; }
.topbar h1 { font-size: 1.5em; flex: 1; }
.me { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--accent) center/cover; color: var(--on-accent); font-weight: 800; display: grid; place-items: center; font-size: 15px; }
.me.xl { width: 96px; height: 96px; font-size: 40px; }
.section { margin: 26px 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section h2 { font-size: 1.25em; }

.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.quick button { display: flex; align-items: center; gap: 10px; background: color-mix(in srgb, var(--text) 9%, transparent); border-radius: var(--r-sm); overflow: hidden; font-weight: 700; font-size: .8em; height: 56px; padding-right: 8px; transition: background .2s; }
.quick button:hover { background: color-mix(in srgb, var(--text) 16%, transparent); }
.quick .cov { width: 56px; height: 56px; flex: none; border-radius: 0; }
.hero-actions { display: flex; gap: 8px; margin: 16px 0 0; flex-wrap: wrap; }

.shelf { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x mandatory; }
.shelf::-webkit-scrollbar { display: none; }
.card { width: 144px; flex: none; scroll-snap-align: start; padding: 0; border-radius: var(--r); transition: background .2s; }
.card .cov { width: 144px; height: 144px; margin-bottom: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.card b { display: block; font-size: .88em; }
.card .muted { display: block; margin-top: 2px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.grid .card { width: auto; }
.grid .card .cov { width: 100%; height: auto; aspect-ratio: 1; }

.cov { background: var(--surface-2) center/cover no-repeat; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--muted); overflow: hidden; }
.cov svg { width: 40%; height: 40%; opacity: .6; }
.cov.round { border-radius: 50%; }
.cov.likes { background: linear-gradient(135deg, #450af5, #c4efd9); color: #fff; }
.cov.likes svg { opacity: 1; }
.cov.smart { color: #fff; } .cov.smart svg { opacity: 1; }
.cov.s2 { background: linear-gradient(135deg, #ff6b35, #f7c59f); }
.cov.s3 { background: linear-gradient(135deg, #0f9b8e, #b5f5ec); }
.cov.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.cov.mosaic i { background: center/cover; }
.cov.big { width: 150px; height: 150px; flex: none; box-shadow: 0 10px 30px rgba(0,0,0,.45); }

.list { display: flex; flex-direction: column; }
.track { display: flex; align-items: center; gap: 12px; padding: 7px 8px; margin: 0 -8px; width: calc(100% + 16px); border-radius: var(--r-sm); cursor: pointer; transition: background .15s; }
.track:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
.track .cov { width: 48px; height: 48px; flex: none; border-radius: var(--r-sm); }
.track .cov.round { border-radius: 50%; }
.track .t { font-size: .95em; }
.track.now .t { color: var(--accent); font-weight: 700; }
.track.disabled { opacity: .45; }
.track .num { width: 22px; text-align: center; color: var(--muted); font-size: .9em; flex: none; }
.track .dur { display: none; }
.pin svg { width: 13px; height: 13px; color: var(--accent); margin-right: 4px; vertical-align: -1px; }
.list.two-col { display: grid; grid-template-columns: minmax(0, 1fr); }
.top-result { display: flex; gap: 16px; align-items: center; background: var(--surface); padding: 16px; border-radius: var(--r); width: 100%; }
.top-result .cov { width: 84px; height: 84px; }
.top-result b { display: block; font-size: 1.4em; margin-bottom: 4px; }

.searchbar { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 6px 0 10px; }
.searchbar .input { background: var(--text); color: var(--bg); border: 0; padding-left: 44px; border-radius: var(--r-pill); }
.searchbar .input::placeholder { color: color-mix(in srgb, var(--bg) 60%, var(--text)); }
.searchbar { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2.4'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); }
.searchbar .input { background-image: var(--i); background-repeat: no-repeat; background-position: 14px center; background-size: 20px; }
.genres { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.genre { position: relative; height: 96px; border-radius: var(--r); overflow: hidden; background: hsl(var(--h) 60% 42%); padding: 12px; color: #fff; text-align: left; }
.genre b { font-size: 1.05em; position: relative; z-index: 1; text-shadow: 0 1px 6px rgba(0,0,0,.3); }
.genre span { position: absolute; right: -14px; bottom: -8px; width: 76px; height: 76px; background: center/cover; transform: rotate(22deg); border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.35); }

.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty h3 { color: var(--text); margin-bottom: 8px; }
.skeleton-row { display: flex; gap: 14px; overflow: hidden; padding: 6px 0; }
.sk { width: 144px; height: 180px; flex: none; border-radius: var(--r); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0 } }

.pl-head { display: flex; gap: 18px; align-items: flex-end; margin: 0 0 14px; flex-wrap: wrap; }
.pl-head h1 { font-size: 1.7em; margin: 4px 0; word-break: break-word; }
.actions-row { display: flex; align-items: center; gap: 12px; margin: 8px 0 14px; flex-wrap: wrap; }
.play-fab { width: 54px; height: 54px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex: none; box-shadow: 0 6px 18px rgba(0,0,0,.3); transition: transform .1s; }
.play-fab:hover { transform: scale(1.05); }
.play-fab svg { width: 24px; height: 24px; }
.artist-hero { margin: -12px -16px 0; height: 300px; background: var(--surface) center 25%/cover; position: relative; display: flex; align-items: flex-end; padding: 20px 16px; }
.artist-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.1) 40%, var(--bg)); }
.artist-hero > div { position: relative; color: #fff; }
.artist-hero h1 { font-size: 2.4em; text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.artist-hero .floating { position: absolute; top: 14px; left: 12px; background: rgba(0,0,0,.45); color: #fff; z-index: 1; }
.banner { height: 180px; border-radius: var(--r); background: var(--surface) center/cover; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 16px; margin-bottom: 8px; }
.banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.banner > div { position: relative; display: flex; justify-content: space-between; align-items: flex-end; width: 100%; color: #fff; }

/* Resumen */
.profile-card { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.stat-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 8px 0; }
.stat-tiles div { background: var(--surface); border-radius: var(--r); padding: 14px; }
.stat-tiles b { display: block; font-size: 1.6em; color: var(--accent); }
.stat-tiles span { font-size: .78em; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 110px; background: var(--surface); border-radius: var(--r); padding: 10px; }
.bars i { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 3px; opacity: .85; }
.bars.hours { height: 80px; }

/* Ajustes */
.group-title { margin: 22px 0 10px; font-size: 1em; }
.settings-group { background: var(--surface); border-radius: var(--r); padding: 2px 16px; }
.setting { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent); width: 100%; }
.setting:last-child { border-bottom: 0; }
.setting.col { flex-direction: column; align-items: stretch; gap: 10px; }
.setting .grow b, .setting > b { display: block; font-size: .95em; font-weight: 600; }
.setting.as-btn svg { width: 20px; height: 20px; color: var(--muted); }
.switch { width: 48px; height: 28px; border-radius: 999px; background: color-mix(in srgb, var(--text) 30%, transparent); position: relative; flex: none; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(20px); }
input[type=range] { accent-color: var(--accent); width: 100%; cursor: pointer; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(128,128,128,.4); }
.swatch.on { border-color: var(--text); }
.eq { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; padding: 4px 0; }
.eq .band { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.eq input[type=range] { writing-mode: vertical-lr; direction: rtl; width: 100%; max-width: 28px; height: 130px; margin: 0; }
.eq small, .eq .db { font-size: 10px; color: var(--muted); }

/* ---------- Navegación inferior (móvil) ---------- */
.nav { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b); display: flex; background: linear-gradient(transparent, color-mix(in srgb, var(--bg) 92%, transparent) 25%, var(--bg)); z-index: 20; }
.nav button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; color: var(--muted); }
.nav button svg { width: 24px; height: 24px; }
.nav button.on { color: var(--text); }

/* ---------- Barra de reproducción ---------- */
.bar { position: fixed; left: 8px; right: 8px; bottom: calc(var(--nav-h) + var(--safe-b)); height: var(--bar-h); border-radius: var(--r); background: color-mix(in srgb, var(--accent) 20%, var(--surface)); display: flex; align-items: center; gap: 8px; padding: 0 6px 0 8px; z-index: 21; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.bar-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; cursor: pointer; }
.bar-left .cov { width: 44px; height: 44px; flex: none; }
.bar .t { font-size: .88em; font-weight: 700; }
.bar-center { display: flex; flex-direction: column; align-items: center; }
.bar-ctrls { display: flex; align-items: center; gap: 4px; }
.bar .desk { display: none; }
.bar-line { position: absolute; left: 8px; right: 8px; bottom: 2px; height: 2px; background: color-mix(in srgb, var(--text) 20%, transparent); border-radius: 2px; }
.bar-line i { display: block; height: 100%; background: var(--text); border-radius: 2px; width: 0; }

/* ---------- Pantalla "Reproduciendo" ---------- */
.np { --np-color: var(--accent); position: fixed; inset: 0; z-index: 40; background: linear-gradient(180deg, color-mix(in srgb, var(--np-color) 55%, var(--bg)) 0%, color-mix(in srgb, var(--np-color) 18%, var(--bg)) 45%, var(--bg) 85%); display: flex; flex-direction: column; padding: calc(10px + env(safe-area-inset-top, 0px)) 20px calc(18px + var(--safe-b)); transform: translateY(100%); transition: transform .32s cubic-bezier(.2,.8,.2,1), background .6s; overflow-y: auto; }
.np:not(.open) { transform: translateY(110vh); visibility: hidden; transition: transform .32s cubic-bezier(.2,.8,.2,1), visibility 0s .32s; }
.np.open { transform: none; visibility: visible; }
.np-inner { max-width: 1100px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; flex: 1; }
.np .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 8px; }
.np .top .center { text-align: center; display: flex; flex-direction: column; min-width: 0; }
.np-main { display: flex; flex-direction: column; gap: 18px; }
.np-art-wrap { position: relative; width: 100%; max-width: 440px; margin: 0 auto; }
.np .art { width: 100%; aspect-ratio: 1; border-radius: var(--r); box-shadow: 0 18px 50px rgba(0,0,0,.5); transition: transform .4s; }
.np #vis { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 22%; pointer-events: none; mix-blend-mode: screen; border-radius: 0 0 var(--r) var(--r); }
.np[data-style="vinyl"] .art { border-radius: 50%; animation: spin 8s linear infinite; animation-play-state: paused; box-shadow: 0 0 0 10px #111, 0 0 0 12px #333, 0 18px 50px rgba(0,0,0,.6); width: 86%; margin: 7%; }
.np[data-style="vinyl"] .art::after { content: ''; width: 16%; height: 16%; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 6px #222; }
.np[data-style="vinyl"].playing .art { animation-play-state: running; }
.np[data-style="vinyl"] #vis { height: 18%; }
@keyframes spin { to { transform: rotate(360deg) } }
.np[data-style="minimal"] .np-art-wrap { max-width: 220px; }
.np[data-style="minimal"] .art { box-shadow: none; }
.np:not(.playing)[data-style="cover"] .art { transform: scale(.94); }
.np h2 { font-size: 1.4em; }
.artist-link { color: var(--muted); font-weight: 500; text-decoration: none; }
.artist-link:hover { text-decoration: underline; color: var(--text); }
.np .progress { margin: 14px 0 2px; }
.np .times { display: flex; justify-content: space-between; font-size: .75em; color: var(--muted); }
.np .controls { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 4px; }
.np .controls .big { width: 66px; height: 66px; border-radius: 50%; background: var(--text); color: var(--bg); display: grid; place-items: center; transition: transform .1s; }
.np .controls .big:active { transform: scale(.94); }
.np .controls .big svg { width: 28px; height: 28px; }
.np-tools { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 12px; }
.np-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.panel { background: rgba(0,0,0,.18); border-radius: var(--r); padding: 16px; min-height: 140px; max-height: 46vh; overflow-y: auto; }
.lyrics { white-space: pre-line; font-size: 1.15em; font-weight: 700; line-height: 1.6; }
.lyrics.synced .line { opacity: .4; transition: opacity .25s, transform .25s; cursor: pointer; padding: 2px 0; }
.lyrics.synced .line.on { opacity: 1; transform: scale(1.02); transform-origin: left; }
.fade-note { font-size: .75em; color: var(--accent); min-height: 16px; text-align: center; }

/* ---------- Avisos y menús ---------- */
#toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--bar-h) + 24px + var(--safe-b)); transform: translateX(-50%) translateY(20px); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--r-sm); font-size: .88em; font-weight: 600; opacity: 0; pointer-events: none; transition: all .25s; z-index: 80; max-width: calc(100% - 32px); display: flex; gap: 14px; align-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
#toast.show { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
#toast button { color: var(--accent); font-weight: 800; filter: brightness(.7); }
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 70; display: flex; align-items: flex-end; animation: fade .15s; backdrop-filter: blur(2px); }
@keyframes fade { from { opacity: 0 } }
.sheet { background: var(--surface); width: 100%; max-width: 520px; margin: 0 auto; border-radius: 16px 16px 0 0; padding: 8px 8px calc(14px + var(--safe-b)); max-height: 80vh; overflow-y: auto; animation: up .2s cubic-bezier(.2,.8,.2,1); }
@keyframes up { from { transform: translateY(40px) } }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--surface-2); margin: 4px auto 8px; }
.sheet > button { display: flex; width: 100%; padding: 13px 16px; gap: 14px; align-items: center; font-size: .98em; border-radius: var(--r-sm); }
.sheet > button:hover, .sheet > button:active { background: var(--surface-2); }
.sheet > button svg { width: 22px; height: 22px; color: var(--muted); flex: none; }
.sheet h3 { padding: 8px 16px 10px; font-size: 1em; display: flex; flex-direction: column; }
.sheet h3 small { font-weight: 400; color: var(--muted); margin-top: 2px; }
.sheet.dialog { padding: 16px 18px calc(18px + var(--safe-b)); }
.sheet.dialog h3 { padding: 0 0 14px; }
.sheet.dialog .row .btn { flex: 1; }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card { width: 170px; } .card .cov { width: 170px; height: 170px; }
  .cov.big { width: 200px; height: 200px; }
  .pl-head h1 { font-size: 2.4em; }
  .list.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .track .dur { display: block; }
  .artist-hero { height: 360px; }
  .artist-hero h1 { font-size: 3.4em; }
}

/* ---------- Ordenador: barra lateral + barra de reproducción completa ---------- */
@media (min-width: 1000px) {
  :root { --side-w: 260px; --bar-h: 84px; --nav-h: 0px; }
  .nav { display: none; }
  .desktop-only { display: block; }
  .side { display: flex; flex-direction: column; position: fixed; left: 0; top: 0; bottom: 0; width: var(--side-w); background: color-mix(in srgb, var(--text) 3%, var(--bg)); border-right: 1px solid color-mix(in srgb, var(--text) 7%, transparent); padding: 18px 10px 0; z-index: 15; }
  body.has-bar .side { bottom: var(--bar-h); }
  .small-logo { font-size: 22px; padding: 0 10px 18px; }
  .small-logo img { width: 34px; height: 34px; }
  .side-nav button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 12px; border-radius: var(--r-sm); color: var(--muted); font-weight: 700; font-size: .95em; }
  .side-nav button svg { width: 22px; height: 22px; }
  .side-nav button:hover { color: var(--text); }
  .side-nav button.on { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
  .side-lib { margin-top: 18px; padding: 10px 2px; border-top: 1px solid color-mix(in srgb, var(--text) 7%, transparent); flex: 1; overflow-y: auto; }
  .side-lib .row { padding: 0 10px 8px; }
  .side-pl { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border-radius: var(--r-sm); font-size: .88em; }
  .side-pl:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
  .side-pl.on { background: color-mix(in srgb, var(--text) 10%, transparent); }
  .side-pl .cov { width: 40px; height: 40px; flex: none; }
  .main { margin-left: var(--side-w); padding: 18px 32px 40px; max-width: none; }
  body.has-bar .main { padding-bottom: calc(var(--bar-h) + 40px); }
  .topbar [data-me] { display: none; }
  .shelf { margin: 0 -32px; padding: 0 32px 6px; }
  .artist-hero { margin: -18px -32px 0; padding: 28px 32px; height: 380px; }
  .quick { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .quick button { height: 64px; font-size: .88em; } .quick .cov { width: 64px; height: 64px; }
  .card:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
  .card { padding: 10px; width: 190px; } .card .cov { width: 170px; height: 170px; }
  .grid .card .cov { width: 100%; height: auto; }
  .bar { left: 0; right: 0; bottom: 0; height: var(--bar-h); border-radius: 0; background: color-mix(in srgb, var(--text) 4%, var(--bg)); border-top: 1px solid color-mix(in srgb, var(--text) 8%, transparent); padding: 0 16px; gap: 16px; box-shadow: none; }
  .bar .desk { display: grid; }
  .bar-prog.desk { display: flex; }
  .bar-right.desk { display: flex; }
  .bar-left { flex: 0 0 30%; }
  .bar-left .cov { width: 56px; height: 56px; }
  .bar-center { flex: 1; max-width: 640px; gap: 4px; }
  .bar-ctrls .play { background: var(--text); color: var(--bg); width: 38px; height: 38px; }
  .bar-ctrls .play svg { width: 18px; height: 18px; }
  .bar-prog { width: 100%; align-items: center; gap: 8px; font-size: .72em; color: var(--muted); }
  .bar-right { flex: 0 0 26%; justify-content: flex-end; align-items: center; gap: 4px; }
  .vol { display: flex; align-items: center; gap: 6px; color: var(--muted); }
  .vol svg { width: 20px; height: 20px; }
  .vol input { width: 110px; }
  .bar-line { display: none; }
  #toast { bottom: calc(var(--bar-h) + 24px); }
  .np { left: var(--side-w); padding: 24px 40px; }
  body.has-bar .np { bottom: var(--bar-h); }
  .np-main { flex-direction: row; align-items: flex-start; gap: 48px; }
  .np-art-wrap { flex: 0 0 42%; max-width: 480px; margin: 0; position: sticky; top: 0; }
  .np-side { flex: 1; min-width: 0; }
  .np h2 { font-size: 2em; }
  .panel { max-height: 50vh; }
  .np .controls { justify-content: flex-start; gap: 18px; }
  .sheet-bg { align-items: center; }
  .sheet { border-radius: 16px; max-width: 420px; }
}

/* =====================================================================
   v0.3 · avatar, Alpha, avisos, pantallas especiales, ajustes y panel
   ===================================================================== */
.setting .grow > span { display: block; }
.setting .grow > span + span { margin-top: 2px; }
.setting.danger b { color: #ff5a5a; }
.setting.danger svg { color: #ff5a5a !important; }
a.setting { color: inherit; text-decoration: none; }
.hint { margin: -6px 0 14px; }
.field em { font-style: normal; font-weight: 500; }
.field.slim { margin: 4px 0 0; }
.field.slim .input { padding: 9px 12px; }
.gap-s { gap: 6px; }

/* Foto de perfil: foto, emoji o icono */
.av { container-type: size; overflow: hidden; position: relative; background-size: cover; background-position: center; }
.av-emoji { font-size: 56cqmin; line-height: 1; }
.av-icon { width: 58%; height: 58%; display: grid; place-items: center; }
.av-icon svg { width: 100%; height: 100%; }
.av-letter { font-size: 46cqmin; line-height: 1; }
.me.xxl { width: 132px; height: 132px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
button.me, .me[data-me] { cursor: pointer; }
.av-editor { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.av-preview { display: grid; place-items: center; padding: 6px 0 2px; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface-2); border-radius: var(--r-pill); padding: 4px; gap: 4px; }
.seg button { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 6px; border-radius: var(--r-pill); font-weight: 600; font-size: .9em; color: var(--muted); }
.seg button svg { width: 18px; height: 18px; }
.seg button.on { background: var(--accent); color: var(--on-accent); }
.av-photo { display: flex; gap: 10px; justify-content: center; }
.av-photo label { cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.av-photo label svg { width: 18px; height: 18px; }
.av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; max-height: 220px; overflow-y: auto; padding: 2px; }
.av-grid button { aspect-ratio: 1; border-radius: var(--r-sm); background: var(--surface-2); display: grid; place-items: center; font-size: 24px; border: 2px solid transparent; transition: transform .1s; }
.av-grid button:active { transform: scale(.9); }
.av-grid button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 20%, var(--surface-2)); }
.av-grid.icon button svg { width: 24px; height: 24px; }
.av-colors .swatch { width: 32px; height: 32px; }
.swatch.custom { position: relative; overflow: hidden; background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); cursor: pointer; display: block; }
.swatch.custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }

/* Alpha Tester */
.alpha-tag { display: inline-flex; align-items: center; font-size: 10px; font-weight: 800; letter-spacing: .1em; padding: 3px 7px; border-radius: 6px; background: linear-gradient(135deg, #ff7a18, #ff2d8a); color: #fff; vertical-align: middle; line-height: 1.2; box-shadow: 0 2px 8px rgba(255,45,138,.35); }
.alpha-tag.big { font-size: 13px; padding: 5px 10px; }
.topbar h1 .alpha-tag { margin-left: 4px; vertical-align: 4px; }
.logo .alpha-tag { margin-left: 2px; }
.alpha-chip { display: inline-block !important; width: fit-content; font-size: .72em; font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); background: color-mix(in srgb, #ff2d8a 16%, transparent); color: color-mix(in srgb, #ff2d8a 70%, var(--text)); margin: 4px 0 2px; }
.alpha-note { display: flex; gap: 10px; align-items: flex-start; font-size: .84em; background: color-mix(in srgb, #ff7a18 12%, var(--surface)); border: 1px solid color-mix(in srgb, #ff7a18 35%, transparent); padding: 10px 12px; border-radius: var(--r); margin: -10px 0 20px; }
.alpha-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); margin: 14px 0 4px; background: linear-gradient(135deg, color-mix(in srgb, #ff7a18 18%, var(--surface)), color-mix(in srgb, #ff2d8a 18%, var(--surface))); border: 1px solid color-mix(in srgb, #ff2d8a 25%, transparent); }
.alpha-card b { display: block; margin-bottom: 3px; }
.alpha-card .grow .small { color: color-mix(in srgb, var(--text) 80%, transparent); display: block; }
.alpha-card .btn { flex: none; background: #ff2d8a; color: #fff; }
.sheet-bg.center { align-items: center; padding: 16px; }
.sheet-bg.center .sheet { border-radius: 20px; }
.alpha-welcome { text-align: center; max-width: 420px; padding: 26px 22px 22px !important; }
.alpha-welcome h2 { margin: 8px 0 6px; }
.alpha-welcome p { color: var(--muted); }
.alpha-art { position: relative; width: 92px; height: 92px; margin: 0 auto; display: grid; place-items: center; background: #fff; border-radius: 26px; box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.alpha-art img { width: 64px; height: 64px; }
.alpha-art .alpha-tag { position: absolute; bottom: -8px; right: -14px; transform: rotate(-8deg); }
.alpha-list { list-style: none; padding: 0; margin: 16px 0 20px; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.alpha-list li { display: flex; gap: 10px; align-items: center; font-size: .9em; }
.alpha-list svg { width: 20px; height: 20px; color: var(--accent); flex: none; }

/* Firma Proyecto Adrimax */
.credit { display: block; font-size: .78em; color: var(--muted); text-decoration: none; margin: 10px 0 0; }
.credit b { color: var(--text); background: linear-gradient(90deg, #06b25f, #36c2ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.credit:hover b { filter: brightness(1.2); }
.credit.center { text-align: center; }
.credit.big { font-size: .95em; margin-top: 12px; }

/* Avisos (mantenimiento, anuncios) */
.notice { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--r); background: color-mix(in srgb, #36c2ff 14%, var(--surface)); border: 1px solid color-mix(in srgb, #36c2ff 35%, transparent); font-size: .88em; margin: 6px 0 10px; }
.notice > svg { width: 20px; height: 20px; flex: none; color: #36c2ff; }
.notice.warning { background: color-mix(in srgb, #f5a524 14%, var(--surface)); border-color: color-mix(in srgb, #f5a524 40%, transparent); }
.notice.warning > svg { color: #f5a524; }
.notice.success { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.notice.success > svg { color: var(--accent); }
.auth .notice { margin: -12px 0 18px; }

/* Pantallas especiales: mantenimiento, espera y bloqueada */
.gate { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 20px calc(24px + var(--safe-b)); position: relative; overflow: hidden; text-align: center; background: radial-gradient(120% 80% at 50% 0%, #10231a 0%, #0b0f0d 55%, #070807 100%); color: #fff; }
.gate.wait { background: radial-gradient(120% 80% at 50% 0%, #0f1d2c 0%, #0a0f16 55%, #07080b 100%); }
.gate-bg { position: absolute; inset: 0; pointer-events: none; filter: blur(60px); opacity: .55; }
.gate-bg i { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: #06b25f; animation: blob 16s ease-in-out infinite alternate; }
.gate-bg i:nth-child(1) { top: -120px; left: -100px; }
.gate-bg i:nth-child(2) { bottom: -160px; right: -120px; background: #36c2ff; animation-delay: -5s; }
.gate-bg i:nth-child(3) { top: 40%; left: 55%; width: 260px; height: 260px; background: #7c5cff; animation-delay: -9s; opacity: .7; }
.gate.maint .gate-bg i:nth-child(2) { background: #f5a524; }
@keyframes blob { 0% { transform: translate(0, 0) scale(1) } 50% { transform: translate(60px, 40px) scale(1.15) } 100% { transform: translate(-40px, 70px) scale(.9) } }
.gate-card { position: relative; z-index: 1; width: 100%; max-width: 460px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 28px; padding: 34px 24px 24px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.gate-card h1 { font-size: 27px; margin: 14px 0 8px; letter-spacing: -.03em; }
.gate-card .lead { color: rgba(255,255,255,.72); margin: 0 0 14px; line-height: 1.5; }
.gate .btn { background: #06b25f; color: #fff; }
.gate .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.gate .link.small { color: rgba(255,255,255,.6); margin-top: 4px; }
.gate .muted { color: rgba(255,255,255,.55); }
.gate .credit { color: rgba(255,255,255,.55); position: relative; z-index: 1; }
.gate .credit b { -webkit-text-fill-color: transparent; }
.gate-foot { position: relative; z-index: 1; margin: 18px 0 0; font-weight: 800; font-size: .9em; color: rgba(255,255,255,.8); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: .8em; font-weight: 700; letter-spacing: .02em; }
.pill svg { width: 15px; height: 15px; }
.gate.maint .pill { background: rgba(245,165,36,.18); color: #ffc65c; }
.gate.wait .pill { background: rgba(54,194,255,.16); color: #8fdcff; }
.gate.blocked .pill { background: rgba(255,90,90,.16); color: #ff9a9a; }
.gate-logo { position: relative; width: 104px; height: 104px; margin: 0 auto 26px; display: grid; place-items: center; background: #fff; border-radius: 30px; box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.gate-logo img { width: 70px; height: 70px; }
.gate-logo .gear { position: absolute; color: #f5a524; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.gate-logo .gear svg { width: 100%; height: 100%; }
.gate-logo .g1 { width: 38px; height: 38px; right: -16px; bottom: -10px; animation: spin 6s linear infinite; }
.gate-logo .g2 { width: 26px; height: 26px; right: 16px; bottom: -18px; animation: spin 4s linear infinite reverse; color: #ffd27a; }
.gate-until { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #ffc65c; margin: 0 0 6px; }
.gate-until svg { width: 18px; height: 18px; }
.eq-anim.big { justify-content: center; height: 42px; margin: 10px 0 14px; }
.eq-anim.big i { width: 7px; background: #06b25f; animation-name: eqbig; }
.eq-anim.big i:nth-child(6) { animation-delay: .15s } .eq-anim.big i:nth-child(7) { animation-delay: .35s }
@keyframes eqbig { 0%, 100% { height: 8px } 50% { height: 42px } }
.gate .stack { margin-top: 10px; }
.orbit { position: relative; width: 150px; height: 150px; margin: 0 auto 4px; display: grid; place-items: center; }
.orbit img { width: 76px; height: 76px; background: #fff; border-radius: 24px; padding: 10px; box-shadow: 0 14px 40px rgba(0,0,0,.45); z-index: 1; animation: breathe 3s ease-in-out infinite; }
.orbit .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255,255,255,.18); animation: spin 9s linear infinite; }
.orbit .ring b { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #36c2ff; box-shadow: 0 0 14px #36c2ff; }
.orbit .r2 { inset: 16px; animation-duration: 6s; animation-direction: reverse; }
.orbit .r2 b { background: #06b25f; box-shadow: 0 0 14px #06b25f; }
.orbit .r3 { inset: -14px; animation-duration: 14s; border-style: solid; border-color: rgba(255,255,255,.06); }
.orbit .r3 b { background: #b388ff; box-shadow: 0 0 14px #b388ff; width: 7px; height: 7px; }
@keyframes breathe { 50% { transform: scale(1.06) } }
.timeline { list-style: none; padding: 0; margin: 6px 0 16px; text-align: left; display: flex; flex-direction: column; gap: 4px; }
.timeline li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; opacity: .55; }
.timeline li.done, .timeline li.now { opacity: 1; }
.timeline li.now { background: rgba(54,194,255,.1); }
.timeline li i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); flex: none; }
.timeline li.done i { background: #06b25f; }
.timeline li i svg { width: 18px; height: 18px; }
.timeline b { display: block; font-size: .92em; }
.timeline span { font-size: .8em; color: rgba(255,255,255,.6); }
.dotpulse { width: 10px; height: 10px; border-radius: 50%; background: #36c2ff; animation: pulse 1.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(54,194,255,.7) } 100% { box-shadow: 0 0 0 14px rgba(54,194,255,0) } }
.redeem { text-align: left; margin: 0 0 12px; font-size: .9em; }
.redeem summary { cursor: pointer; color: rgba(255,255,255,.75); font-weight: 600; padding: 6px 0; }
.redeem form { margin-top: 8px; }
.redeem .input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; padding: 10px 12px; }
.preview-exit { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; z-index: 90; }

/* Ajustes */
.settings-index, .settings-page { max-width: 760px; }
.profile-hero { display: flex; align-items: center; gap: 16px; width: 100%; padding: 16px; border-radius: var(--r); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--surface)), var(--surface)); margin-bottom: 10px; }
.profile-hero h2 { font-size: 1.3em; }
.profile-hero .grow > span { display: block; }
.profile-hero .link { margin-top: 6px; color: var(--accent); text-decoration: none; }
.settings-index > .setting.as-btn { background: var(--surface); border-radius: var(--r); padding: 12px 16px; border: 0; }
.tile { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--c, var(--surface-2)); color: #fff; flex: none; }
.setting.as-btn .tile svg, .tile svg { width: 20px; height: 20px; color: #fff; }
.tile img { width: 22px; height: 22px; }
.tile.sm { width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); }
.tile.sm svg { width: 16px; height: 16px; color: var(--text) !important; }
.dev-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border-radius: var(--r); margin: 10px 0 0; background: linear-gradient(135deg, #0b1f14, #11131f); color: #fff; border: 1px solid rgba(6,178,95,.45); box-shadow: 0 8px 26px rgba(6,178,95,.15); }
.dev-card .tile { background: #06b25f; }
.dev-card b { display: block; }
.dev-card .small { color: rgba(255,255,255,.7); display: block; }
.dev-card > svg { width: 20px; height: 20px; color: rgba(255,255,255,.6); }
.badge-count { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: #ff4d4d; color: #fff; font-weight: 800; font-size: .8em; display: grid; place-items: center; }
.settings-foot { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 28px 0 8px; color: var(--muted); font-size: .85em; }
.settings-foot img { width: 34px; height: 34px; opacity: .9; }
.settings-group.pad { padding: 16px; }
.sticky-save { position: sticky; bottom: calc(var(--nav-h) + var(--safe-b) + 8px); padding: 12px 0; z-index: 4; }
body.has-bar .sticky-save { bottom: calc(var(--nav-h) + var(--bar-h) + var(--safe-b) + 12px); }
.palette-pick .palettes { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-bottom: 12px; }
.palette.sm { padding: 10px; font-size: .86em; }
.palette.sm .dots b { width: 14px; height: 14px; }
.palette-pick h3 { font-size: .85em; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.about-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 0 8px; gap: 4px; }
.about-hero img { width: 96px; height: 96px; background: #fff; border-radius: 26px; padding: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.25); margin-bottom: 8px; }
.news { margin: 0; padding-left: 18px; line-height: 1.7; font-size: .92em; }
.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; font-size: .88em; }
kbd { display: inline-block; min-width: 24px; padding: 2px 6px; margin-right: 4px; border-radius: 5px; background: var(--surface-2); border-bottom: 2px solid color-mix(in srgb, var(--text) 25%, transparent); font-family: inherit; font-size: .85em; text-align: center; }

/* Panel de desarrollador */
.dev { max-width: 900px; }
.dev-status { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); margin-bottom: 14px; flex-wrap: wrap; }
.dev-status.on { background: color-mix(in srgb, #06b25f 15%, var(--surface)); border: 1px solid color-mix(in srgb, #06b25f 40%, transparent); }
.dev-status.off { background: color-mix(in srgb, #f5a524 15%, var(--surface)); border: 1px solid color-mix(in srgb, #f5a524 45%, transparent); }
.dev-status .grow > * { display: block; }
.dev-status .grow .small { color: var(--muted); }
.dev-status .pulse { width: 14px; height: 14px; border-radius: 50%; background: #06b25f; box-shadow: 0 0 0 0 rgba(6,178,95,.6); animation: pulseG 1.8s infinite; flex: none; }
.dev-status.off .pulse { background: #f5a524; animation: none; }
@keyframes pulseG { 0% { box-shadow: 0 0 0 0 rgba(6,178,95,.6) } 100% { box-shadow: 0 0 0 12px rgba(6,178,95,0) } }
.btn.danger { background: #e5484d; color: #fff; }
.dev-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 6px 0 4px; }
.dev-tiles div { background: var(--surface); border-radius: var(--r); padding: 14px 12px; }
.dev-tiles b { display: block; font-size: 1.5em; letter-spacing: -.02em; }
.dev-tiles span { font-size: .78em; color: var(--muted); }
.dev-tiles .hot { background: color-mix(in srgb, #f5a524 18%, var(--surface)); }
.user-row .me { width: 42px; height: 42px; }
.user-row .grow > b { display: flex !important; align-items: center; gap: 6px; }
.user-row .grow > span { display: block; }
.badge.dev { background: #06b25f; color: #fff; margin: 0; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 6px #22c55e; display: inline-block; flex: none; }
.status { font-size: .72em; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap; flex: none; }
.status.ok { background: color-mix(in srgb, #22c55e 18%, transparent); color: #22c55e; }
.status.warn { background: color-mix(in srgb, #f5a524 20%, transparent); color: #e0951a; }
.status.bad { background: color-mix(in srgb, #e5484d 18%, transparent); color: #e5484d; }
.meter { width: 90px; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; flex: none; }
.meter i { display: block; height: 100%; background: var(--accent); }
.code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 1.1em !important; letter-spacing: .02em; }
.dev #uFilter { margin: 4px 0 12px; }
.fb-text { display: block; white-space: pre-wrap; margin: 4px 0; font-size: .92em; }
.fb.done { opacity: .5; }
.ev .grow > span { display: block; font-size: .9em; }
.ev.login-fail .tile, .ev.error .tile { background: color-mix(in srgb, #e5484d 25%, var(--surface-2)); }
.ev.register .tile, .ev.approve .tile { background: color-mix(in srgb, #06b25f 30%, var(--surface-2)); }
@media (max-width: 639px) {
  .user-row { flex-wrap: wrap; }
  .user-row .status { order: 3; }
  .user-row .row.gap-s { width: 100%; justify-content: flex-end; order: 4; }
  .dev-status .btn { width: 100%; }
}
@media (min-width: 640px) { .dev-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* Opciones de apariencia nuevas */
:root[data-navlabels="off"] .nav button span { display: none; }
:root[data-density="compact"] .track { padding-top: 4px; padding-bottom: 4px; }
:root[data-density="compact"] .track .cov { width: 40px; height: 40px; }
:root[data-lyrics="s"] .lyrics { font-size: 1em; }
:root[data-lyrics="l"] .lyrics { font-size: 1.45em; }
:root[data-motion="reduce"] *, :root[data-motion="reduce"] *::before, :root[data-motion="reduce"] *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
@media (prefers-reduced-motion: reduce) { .gate-bg i, .orbit .ring { animation: none; } }
