/* LCLOUDS MUSIC — app para iPhone y Android
   Misma identidad que la web (monocromo, Onest, íconos, squircles G2) con la estructura de la app de música de iOS:
   pestañas con pila de pantallas, dock de vidrio que se compacta, reproductor en tarjeta con gestos. */
:root {
  --bg: #ffffff;
  --bg-2: #f2f2f6;
  --surface: #f2f2f6;
  --surface-2: #e5e5ea;
  --line: rgba(60, 60, 67, .14);
  --fg: #0b0b0d;
  --fg-2: #6b6b73;
  --fg-3: #a2a2a9;
  --inv: #ffffff;
  --press: rgba(10, 10, 14, .08);
  --glass: rgba(249, 249, 251, .66);
  --glass-hi: rgba(255, 255, 255, .7);
  --glass-edge: rgba(255, 255, 255, .55);
  --glass-shadow: 0 10px 30px rgba(0, 0, 0, .14), 0 1px 3px rgba(0, 0, 0, .08);
  --menu: rgba(246, 246, 248, .78);
  --font: "Onest", -apple-system, "SF Pro Text", Roboto, sans-serif;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --dock-gap: 10px;
  --e-bounce: linear(0, 0.0308, 0.1101, 0.2201, 0.3463, 0.4768, 0.6029, 0.7183, 0.8192, 0.9036, 0.9709, 1.0219, 1.0579, 1.0808, 1.0928, 1.0962, 1.093, 1.0852, 1.0746, 1.0624, 1.0498, 1.0378, 1.0267, 1.0171, 1.009, 1.0026, 0.9977, 0.9943, 0.9922, 0.991, 0.9908, 0.9911, 0.9918, 0.9929, 0.994, 0.9953, 0.9964, 0.9975, 0.9984, 0.9992, 1);
  --e-snap: linear(0, 0.0227, 0.0794, 0.1565, 0.244, 0.3349, 0.424, 0.5083, 0.5856, 0.6551, 0.7164, 0.7695, 0.8149, 0.8532, 0.8852, 0.9115, 0.9328, 0.95, 0.9637, 0.9744, 0.9827, 0.9889, 0.9936, 0.997, 0.9994, 1.0011, 1.0021, 1.0027, 1.003, 1.0031, 1.003, 1.0028, 1.0026, 1.0023, 1.002, 1.0018, 1.0015, 1.0013, 1.0011, 1.0009, 1);
  --e-ios: cubic-bezier(.32, .72, 0, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --bg-2: #0e0e10; --surface: #1c1c1e; --surface-2: #2c2c2e; --line: rgba(84, 84, 88, .5);
    --fg: #ffffff; --fg-2: #98989f; --fg-3: #636366; --inv: #000000; --press: rgba(255, 255, 255, .1);
    --glass: rgba(30, 30, 32, .6); --glass-hi: rgba(255, 255, 255, .14); --glass-edge: rgba(255, 255, 255, .16);
    --glass-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 1px 2px rgba(0, 0, 0, .4); --menu: rgba(44, 44, 48, .72); --sheet: #1c1c1e; --sheet-2: #2c2c2e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --bg-2: #0e0e10; --surface: #1c1c1e; --surface-2: #2c2c2e; --line: rgba(84, 84, 88, .5);
  --fg: #ffffff; --fg-2: #98989f; --fg-3: #636366; --inv: #000000; --press: rgba(255, 255, 255, .1);
  --glass: rgba(30, 30, 32, .6); --glass-hi: rgba(255, 255, 255, .14); --glass-edge: rgba(255, 255, 255, .16);
  --glass-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 1px 2px rgba(0, 0, 0, .4); --menu: rgba(44, 44, 48, .72); --sheet: #1c1c1e; --sheet-2: #2c2c2e;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }
html, body { height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; }
body { background: var(--bg); color: var(--fg); font: 16px/1.35 var(--font); -webkit-font-smoothing: antialiased; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
input, textarea, [contenteditable] { -webkit-user-select: text; user-select: text; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.fill, svg .fill { fill: currentColor; stroke: none; }
[hidden] { display: none !important; }
.sq { border-radius: var(--sq, 10px); }
.sq[data-sq] { border-radius: 0; }

/* Vidrio: desenfoque + borde de luz arriba + sombra suave */
.glass { background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(1.9); backdrop-filter: blur(22px) saturate(1.9); box-shadow: inset 0 .5px 0 var(--glass-edge), inset 0 0 0 .5px color-mix(in srgb, var(--glass-edge) 60%, transparent), var(--glass-shadow); }

/* ---------- Pestañas y pantallas ---------- */
.stage { position: fixed; inset: 0; overflow: hidden; transform-origin: 50% 0; transition: transform .45s var(--e-ios), border-radius .45s var(--e-ios), filter .45s; }
.stage.under { transform: scale(.94) translateY(calc(var(--sat) + 8px)); border-radius: 22px; filter: brightness(.7); }
.tab { position: absolute; inset: 0; }
.page { position: absolute; inset: 0; background: var(--page-bg, var(--bg)); overflow: hidden; will-change: transform; }
.page.dim::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, var(--dim, .18)); pointer-events: none; }
.scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-y: auto; padding-bottom: calc(var(--sab) + 170px); }
.content { padding: calc(var(--sat) + 52px) 0 0; }
.tinted { --page-bg: var(--tint-bg); color: #fff; --fg: #fff; --fg-2: rgba(255, 255, 255, .62); --fg-3: rgba(255, 255, 255, .4); --line: rgba(255, 255, 255, .14); --surface: rgba(255, 255, 255, .1); --press: rgba(255, 255, 255, .1); }

/* Barra de navegación: transparente arriba, vidrio al desplazar */
.nav { position: absolute; z-index: 5; left: 0; right: 0; top: 0; height: calc(var(--sat) + 52px); padding: var(--sat) 16px 0; display: flex; align-items: center; gap: 8px; pointer-events: none; }
.nav::before { content: ""; position: absolute; inset: 0; background: var(--nav-bg, var(--bg)); opacity: 0; transition: opacity .25s; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.nav.solid::before { opacity: .92; }
.nav > * { position: relative; pointer-events: auto; }
.nav-title { position: absolute; left: 80px; right: 80px; text-align: center; font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .35s var(--e-snap); pointer-events: none; }
.nav.solid .nav-title { opacity: 1; transform: none; }
.nav-sp { flex: 1; pointer-events: none; }
.circ { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; transition: transform .4s var(--e-snap); }
.circ:active, .capsule button:active { transform: scale(.88); transition-duration: .08s; }
.circ svg { width: 22px; height: 22px; }
.capsule { height: 44px; border-radius: 22px; display: flex; align-items: center; padding: 0 4px; }
.capsule button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; transition: transform .4s var(--e-snap); }
.capsule svg { width: 22px; height: 22px; }

.large { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; margin: 4px 0 14px; }
.large h1 { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); color: var(--fg); display: grid; place-items: center; font-weight: 700; font-size: 15px; overflow: hidden; transition: transform .4s var(--e-snap); }
.avatar:active { transform: scale(.88); }
.avatar svg { width: 20px; height: 20px; }
.avatar.me { background: var(--fg); color: var(--inv); }

/* ---------- Estantes ---------- */
.shelf { margin: 0 0 26px; }
.sh-head { display: flex; align-items: center; gap: 2px; padding: 0 20px; margin-bottom: 10px; font-size: 21px; font-weight: 750; letter-spacing: -.02em; }
.sh-head svg { width: 18px; height: 18px; color: var(--fg-3); stroke-width: 2.6; }
.hrow { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px - 12px) / 2.25); gap: 12px; overflow-x: auto; overflow-y: hidden; padding: 0 20px; scroll-snap-type: x mandatory; scroll-padding: 0 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.hrow::-webkit-scrollbar { display: none; }
.hrow > * { scroll-snap-align: start; min-width: 0; }
.hrow.feat { grid-auto-columns: calc(100% - 40px - 44px); }
.hrow.cols { grid-auto-columns: calc(100% - 40px - 20px); grid-template-rows: repeat(4, auto); grid-auto-flow: column; column-gap: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; padding: 0 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 10px; padding: 0 20px; }

.card { display: flex; flex-direction: column; gap: 6px; min-width: 0; text-align: left; transition: transform .45s var(--e-snap); }
.card:active, .card.lift { transform: scale(.965); transition-duration: .12s; }
.cv { --sq: 10px; position: relative; aspect-ratio: 1; overflow: hidden; background: var(--surface); }
.cv.round { border-radius: 50% !important; clip-path: none !important; }
.cv img { width: 100%; height: 100%; object-fit: cover; }
.card b { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card small { font-size: 13px; color: var(--fg-2); margin-top: -4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.artist { align-items: center; text-align: center; }
.fade-img { opacity: 0; transition: opacity .3s; }
.fade-img.ld { opacity: 1; }

.feature { --sq: 16px; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #222; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; text-align: left; padding: 16px; transition: transform .45s var(--e-snap); }
.feature:active { transform: scale(.97); transition-duration: .12s; }
.feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent 55%); }
.feature > span { position: relative; z-index: 1; }
.feature .ey { font-size: 11px; font-weight: 700; opacity: .8; text-transform: uppercase; letter-spacing: .06em; }
.feature .ft { font-size: 19px; font-weight: 750; line-height: 1.15; letter-spacing: -.01em; }
.feature .fs { font-size: 13px; opacity: .8; margin-top: 2px; }

/* Filas de canciones */
.rows { list-style: none; margin: 0; padding: 0 20px; }
.row { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 0; transition: background-color .2s; }
.row::after { content: ""; position: absolute; left: var(--rl, 60px); right: 0; bottom: 0; border-bottom: .5px solid var(--line); }
.rows > .row:last-child::after { display: none; }
.row:active, .row.lift { background: var(--press); margin: 0 -20px; padding: 6px 20px; transition-duration: 0s; }
.row:active::after, .row.lift::after { left: calc(var(--rl, 60px) + 20px); right: 20px; }
.r-art { --sq: 6px; width: 48px; height: 48px; flex: none; overflow: hidden; background: var(--surface); }
.r-art.round { border-radius: 50% !important; clip-path: none !important; }
.r-art img { width: 100%; height: 100%; object-fit: cover; }
.r-num { width: 22px; flex: none; text-align: center; font-size: 15px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.r-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.r-text b { font-weight: 500; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-text small { font-size: 13.5px; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rows.wrap .r-text small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.r-more { width: 32px; height: 32px; display: grid; place-items: center; color: var(--fg); flex: none; margin-right: -6px; }
.r-more svg { width: 20px; height: 20px; }
.row.playing .r-text b { font-weight: 700; }
.eq { display: none; gap: 2px; align-items: flex-end; height: 13px; }
.eq i { width: 3px; height: 13px; background: var(--fg); border-radius: 1px; transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.4s; } .eq i:nth-child(3) { animation-delay: -.7s; }
.row.playing .r-num .n { display: none; }
.row.playing .r-num .eq { display: inline-flex; }
body:not(.is-playing) .eq i { animation-play-state: paused; }
@keyframes eq { 0%, 100% { transform: scaleY(.3) } 50% { transform: scaleY(1) } }

/* Lista de navegación (Biblioteca) */
.nlist { list-style: none; margin: 0 0 26px; padding: 0 20px; }
.nlist a { position: relative; display: flex; align-items: center; gap: 14px; height: 50px; font-size: 19px; }
.nlist a::after { content: ""; position: absolute; left: 40px; right: 0; bottom: 0; border-bottom: .5px solid var(--line); }
.nlist li:last-child a::after { display: none; }
.nlist a > svg:first-child { width: 24px; height: 24px; color: var(--fg); }
.nlist a > span { flex: 1; }
.nlist a > svg:last-child { width: 16px; height: 16px; color: var(--fg-3); stroke-width: 2.6; }
.nlist a:active { opacity: .5; }

/* ---------- Álbum / playlist ---------- */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 24px; margin-bottom: 18px; }
.hero .cv { --sq: 12px; width: min(66vw, 280px); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); margin-bottom: 18px; }
.hero h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.hero .ha { font-size: 20px; margin-top: 2px; }
.hero .hm { font-size: 12px; color: var(--fg-2); margin-top: 4px; font-weight: 600; }
.hero-act { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.hero-act .circ { background: var(--surface); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 46px; padding: 0 28px; border-radius: 23px; font-weight: 700; font-size: 17px; transition: transform .4s var(--e-snap), opacity .2s; }
.btn:active { transform: scale(.94); transition-duration: .08s; }
.btn svg { width: 18px; height: 18px; }
.btn.white { background: #fff; color: #0b0b0d; }
.btn.solid { background: var(--fg); color: var(--inv); }
.btn.soft { background: var(--surface); color: var(--fg); }
.btn.wide { width: 100%; }
.desc { padding: 0 20px; color: var(--fg-2); font-size: 14px; margin: -4px 0 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.foot-meta { padding: 14px 20px 0; color: var(--fg-2); font-size: 14px; }

/* Artista */
.art-hero { position: relative; height: min(100vw, 420px); margin-top: calc(-1 * (var(--sat) + 52px)); background: #222; display: flex; align-items: flex-end; padding: 0 20px 18px; color: #fff; overflow: hidden; }
.art-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.art-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .72), transparent 55%); }
.art-hero h1 { position: relative; z-index: 1; flex: 1; margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.art-hero .circ { position: relative; z-index: 1; background: #fff; color: #0b0b0d; width: 50px; height: 50px; }
.art-hero .circ svg { margin-left: 3px; }

/* Buscar */
.sfield { position: relative; margin: 0 20px 18px; display: flex; align-items: center; gap: 10px; }
.sbox { flex: 1; position: relative; height: 40px; border-radius: 12px; background: var(--surface); display: flex; align-items: center; padding: 0 10px; gap: 6px; transition: background-color .2s; }
.sbox svg { width: 18px; height: 18px; color: var(--fg-2); stroke-width: 2.4; }
.sbox input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 17px; color: var(--fg); outline: none; height: 100%; }
.sbox input::placeholder { color: var(--fg-2); }
.sbox input::-webkit-search-cancel-button { display: none; }
.sclear { width: 20px; height: 20px; border-radius: 50%; background: var(--fg-3); color: var(--bg); display: grid; place-items: center; }
.sclear svg { width: 12px; height: 12px; color: var(--bg); stroke-width: 3; }
.scancel { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; transform: scale(.6); opacity: 0; margin-right: -50px; transition: transform .45s var(--e-bounce), opacity .2s, margin .4s var(--e-snap); }
.scancel svg { width: 18px; height: 18px; stroke-width: 2.6; }
.searching .scancel { transform: none; opacity: 1; margin-right: 0; }
.searching .large { display: none; }
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 20px; }
.cat { --sq: 12px; position: relative; aspect-ratio: 1.55; overflow: hidden; background: var(--tint); color: #fff; padding: 12px; display: flex; align-items: flex-end; font-weight: 750; font-size: 16px; text-align: left; transition: transform .45s var(--e-snap); }
.cat:active { transform: scale(.96); transition-duration: .1s; }
.cat::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 85% 0%, rgba(255, 255, 255, .28), transparent 60%); }
.cat span { position: relative; text-shadow: 0 1px 8px rgba(0, 0, 0, .25); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 0 20px 12px; scrollbar-width: none; position: relative; }
.chips::-webkit-scrollbar { display: none; }
.chips button { position: relative; z-index: 1; flex: none; height: 32px; padding: 0 14px; border-radius: 16px; font-size: 14px; font-weight: 600; color: var(--fg); transition: color .25s; }
.chips button[aria-pressed="true"] { color: var(--inv); }
.chip-pill { position: absolute; top: 0; left: 0; height: 32px; border-radius: 16px; background: var(--fg); transition: transform .5s var(--e-bounce), width .5s var(--e-bounce); }
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 0 20px 14px; padding: 2px; border-radius: 10px; background: var(--surface); }
.seg button { position: relative; z-index: 1; height: 30px; font-size: 14px; font-weight: 600; border-radius: 8px; }
.seg-pill { position: absolute; top: 2px; left: 2px; width: calc(50% - 2px); height: 30px; border-radius: 8px; background: var(--bg); box-shadow: 0 2px 6px rgba(0, 0, 0, .12); transition: transform .5s var(--e-bounce); }
.seg[data-v="1"] .seg-pill { transform: translateX(100%); }
.sub-h { display: flex; justify-content: space-between; align-items: baseline; padding: 0 20px; margin: 6px 0 4px; font-weight: 750; font-size: 18px; }
.sub-h button { font-size: 15px; font-weight: 600; color: var(--fg-2); }

.empty { text-align: center; padding: 40px 30px; color: var(--fg-2); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty b { color: var(--fg); font-size: 20px; }
.empty .note { width: 40px; height: 54px; background: var(--fg-3); -webkit-mask: url(/brand/note-black.png) center / contain no-repeat; mask: url(/brand/note-black.png) center / contain no-repeat; }
.skel { background: var(--surface); position: relative; overflow: hidden; }
.skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--bg) 50%, transparent), transparent); transform: translateX(-100%); animation: sk 1.3s ease-in-out infinite; }
@keyframes sk { to { transform: translateX(100%) } }
.fav-tile { --sq: 10px; aspect-ratio: 1; background: var(--surface); display: grid; place-items: center; }
.fav-tile svg { width: 46%; height: 46%; color: var(--fg); }

/* ---------- Dock: mini reproductor + pestañas ---------- */
.dock { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: calc(var(--sab) + 136px); pointer-events: none; }
.dock > * { pointer-events: auto; }
.tabbar { position: absolute; left: 16px; right: 16px; bottom: calc(var(--sab) + 6px); height: 62px; border-radius: 31px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 0 4px; transition: right .55s var(--e-bounce), width .55s var(--e-bounce); }
.tabbar button { position: relative; z-index: 1; height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--fg); font-size: 10px; font-weight: 600; transition: opacity .25s, color .25s; }
.tabbar button svg { width: 26px; height: 26px; }
.tabbar button.on { color: var(--fg); }
.tabbar button:not(.on) { color: color-mix(in srgb, var(--fg) 82%, transparent); }
.tab-pill { position: absolute; left: 0; top: 4px; height: 54px; border-radius: 27px; background: var(--glass-hi); transition: transform .55s var(--e-bounce), width .55s var(--e-bounce), opacity .2s; }
.tabbar button.pop svg { animation: tbpop .5s var(--e-bounce); }
@keyframes tbpop { 0% { transform: scale(.78) } 100% { transform: none } }

.mini { position: absolute; left: 16px; right: 16px; bottom: calc(var(--sab) + 6px + 62px + var(--dock-gap)); height: 54px; border-radius: 27px; display: flex; align-items: center; gap: 10px; padding: 0 6px 0 7px; transition: left .55s var(--e-bounce), right .55s var(--e-bounce), bottom .55s var(--e-bounce), height .55s var(--e-bounce), transform .45s var(--e-snap); overflow: hidden; }
.mini:active { transform: scale(.98); }
.mini-hit { position: absolute; inset: 0; z-index: 0; }
.mini-art { --sq: 8px; width: 40px; height: 40px; flex: none; overflow: hidden; background: var(--surface-2); pointer-events: none; position: relative; z-index: 1; }
.mini-art img { width: 100%; height: 100%; object-fit: cover; }
.mini-art img:not([src]), .mini-art img[src=""] { visibility: hidden; }
.mini-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; pointer-events: none; position: relative; z-index: 1; }
.mini-meta b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-meta small { font-size: 13px; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-btn { position: relative; z-index: 1; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; transition: transform .4s var(--e-snap); }
.mini-btn:active { transform: scale(.82); background: var(--press); transition-duration: .08s; }
.mini-btn svg { width: 25px; height: 25px; }
.mini-prog { position: absolute; left: 22px; right: 22px; bottom: 0; height: 2px; border-radius: 1px; overflow: hidden; opacity: .7; }
.mini-prog i { display: block; height: 100%; background: var(--fg); transform-origin: 0 50%; transform: scaleX(0); }
.dock[data-state="empty"] .mini-btn { opacity: .35; }
/* Ícono de reproducir ⇄ pausa */
.pp { position: relative; }
.pp svg { position: absolute; transition: opacity .15s, transform .45s var(--e-bounce); }
.pp .i-pause { opacity: 0; transform: scale(.4); }
.is-playing .pp .i-play { opacity: 0; transform: scale(.4); }
.is-playing .pp .i-pause { opacity: 1; transform: none; }

/* Dock compacto al desplazar hacia abajo: pestaña activa | mini | buscar */
.tb-solo { position: absolute; right: 16px; bottom: calc(var(--sab) + 6px); width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; opacity: 0; transform: scale(.6); pointer-events: none; transition: opacity .2s, transform .5s var(--e-bounce); }
.tb-solo svg { width: 24px; height: 24px; }
.dock.compact .tabbar { right: calc(100% - 16px - 62px); height: 54px; bottom: calc(var(--sab) + 6px); }
.dock.compact .tabbar button:not(.on) { opacity: 0; pointer-events: none; }
.dock.compact .tabbar button.on { grid-column: 1 / -1; grid-row: 1; }
.dock.compact .tabbar button span { display: none; }
.dock.compact .tab-pill { opacity: 0; }
.dock.compact .tb-solo { opacity: 1; transform: none; pointer-events: auto; }
.dock.compact .mini { left: calc(16px + 62px + 8px); right: calc(16px + 54px + 8px); bottom: calc(var(--sab) + 6px); height: 54px; }
.dock.compact .mini-btn#miniNext { display: none; }
.dock.hide { transform: translateY(140%); transition: transform .4s var(--e-ios); }
.dock { transition: transform .5s var(--e-bounce); }

/* ---------- Reproductor completo ---------- */
.np { position: fixed; inset: 0; z-index: 40; }
.np-card { position: absolute; inset: 0; overflow: hidden; color: #fff; border-radius: 0; will-change: transform; background: #222; --fg: #fff; }
.np-bg { position: absolute; inset: -10%; background: var(--c3, #333); }
.np-bg i { position: absolute; width: 90%; height: 70%; border-radius: 50%; filter: blur(70px); opacity: .9; }
.np-bg i:nth-child(1) { left: -20%; top: -10%; background: var(--c1, #555); animation: drift1 18s ease-in-out infinite alternate; }
.np-bg i:nth-child(2) { right: -25%; bottom: 0%; background: var(--c2, #444); animation: drift2 22s ease-in-out infinite alternate; }
.np-bg i:nth-child(3) { left: 10%; bottom: -20%; background: var(--c1, #555); opacity: .5; animation: drift1 26s ease-in-out infinite alternate-reverse; }
.np-bg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .28); }
@keyframes drift1 { to { transform: translate(18%, 12%) scale(1.15) } }
@keyframes drift2 { to { transform: translate(-16%, -10%) scale(1.1) } }
.np-grab { opacity: var(--f, 1); position: absolute; z-index: 3; top: calc(var(--sat) + 6px); left: 0; right: 0; height: 24px; display: grid; place-items: center; }
.np-grab span { width: 40px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .45); }
.np-head { position: absolute; z-index: 3; left: 20px; right: 14px; top: calc(var(--sat) + 40px); height: 64px; display: flex; align-items: center; gap: 12px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.np-thumb-slot { width: 64px; height: 64px; flex: none; }
.np-head-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.np-head-meta b { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-head-meta small { font-size: 15px; color: rgba(255, 255, 255, .62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; transition: transform .4s var(--e-snap), background-color .2s; }
.np-ic:active { transform: scale(.85); transition-duration: .08s; }
.np-ic svg { width: 24px; height: 24px; }
.np-ic.liked svg { fill: currentColor; }
.np-ic.chip { background: rgba(255, 255, 255, .14); width: 32px; height: 32px; }
.np-ic.chip svg { width: 18px; height: 18px; }
.np-art-slot { position: absolute; left: 22px; right: 22px; top: calc(var(--sat) + 52px); aspect-ratio: 1; max-height: calc(100% - var(--sat) - var(--sab) - 400px); margin: 0 auto; }
.np-art { --sq: 12px; position: absolute; z-index: 2; left: 0; top: 0; overflow: hidden; background: rgba(255, 255, 255, .1); transform-origin: 0 0; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); will-change: transform; }
.np-art img { width: 100%; height: 100%; object-fit: cover; }
.np-art.paused-shrink { transition: transform .6s var(--e-bounce); }
.np-meta { opacity: var(--f, 1); position: absolute; z-index: 3; left: 26px; right: 22px; bottom: calc(var(--sab) + 300px); display: flex; align-items: center; gap: 10px; transition: opacity .25s, transform .4s var(--e-snap); }
.np-titles { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.np-titles b { font-size: 21px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.np-titles a { font-size: 20px; color: rgba(255, 255, 255, .62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-controls { opacity: var(--f, 1); position: absolute; z-index: 3; left: 26px; right: 26px; bottom: calc(var(--sab) + 14px); display: flex; flex-direction: column; transition: opacity .3s, transform .45s var(--e-snap); }
/* Deslizadores: delgados en reposo; al tocarlos se engrosan e iluminan (como en el video) */
.slider { position: relative; height: 30px; display: flex; align-items: center; touch-action: none; cursor: pointer; }
.sl-track { position: relative; width: 100%; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .22); overflow: hidden; transform-origin: var(--o, 50%) 50%; transition: transform .45s var(--e-snap), height .45s var(--e-snap); }
.sl-fill { position: absolute; inset: 0; background: rgba(255, 255, 255, .58); transform-origin: 0 50%; transform: scaleX(0); transition: background-color .2s; will-change: transform; }
.slider.active .sl-track { height: 14px; }
.slider.active .sl-fill { background: #fff; }
.np-times { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255, 255, 255, .5); font-variant-numeric: tabular-nums; font-weight: 600; margin-top: -2px; transition: color .2s, transform .45s var(--e-snap); }
.np-times.active { color: #fff; transform: translateY(4px); }
.np-tag { display: none; }
.np-transport { display: flex; justify-content: space-around; align-items: center; height: 96px; margin: 6px 0; }
.tp { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; transition: transform .45s var(--e-snap), background-color .25s; }
.tp svg { width: 42px; height: 42px; }
.tp.big svg { width: 56px; height: 56px; }
.tp:active { transform: scale(.82); background: rgba(255, 255, 255, .12); transition-duration: .08s; }
.np-vol { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .6); }
.np-vol > svg { width: 18px; height: 18px; }
.np-vol .slider { flex: 1; }
.np-bottom { display: flex; justify-content: space-around; align-items: center; height: 56px; margin-top: 10px; }
.nb { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: rgba(255, 255, 255, .62); transition: transform .45s var(--e-snap), background-color .25s, color .25s; }
.nb svg { width: 26px; height: 26px; }
.nb:active { transform: scale(.85); transition-duration: .08s; }
.nb.on { background: rgba(255, 255, 255, .85); color: #222; }
.ios .np-vol { display: none; }
.ios .np-meta { bottom: calc(var(--sab) + 262px); }

/* Modos: portada / letra / cola */
.np-body { position: absolute; z-index: 1; left: 0; right: 0; top: calc(var(--sat) + 112px); bottom: calc(var(--sab) + 284px); opacity: 0; pointer-events: none; transition: opacity .25s, bottom .45s var(--e-snap); }
.ios .np-body { bottom: calc(var(--sab) + 246px); }
.np[data-mode="lyrics"] .np-head, .np[data-mode="queue"] .np-head { opacity: var(--f, 1); pointer-events: auto; }
.np[data-mode="lyrics"] .np-meta, .np[data-mode="queue"] .np-meta { opacity: 0; pointer-events: none; transform: translateY(20px); }
.np[data-mode="lyrics"] .np-body, .np[data-mode="queue"] .np-body { opacity: var(--f, 1); pointer-events: auto; }
.np[data-mode="lyrics"] .np-art, .np[data-mode="queue"] .np-art { --sq: 6px; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.np-lyrics, .np-queue { position: absolute; inset: 0; display: none; }
.np[data-mode="lyrics"] .np-lyrics { display: block; }
.np[data-mode="queue"] .np-queue { display: flex; flex-direction: column; }
.np-lyrics { overflow-y: auto; padding: 10px 26px 45vh; scrollbar-width: none; -webkit-mask-image: linear-gradient(transparent, #000 6%, #000 82%, transparent); mask-image: linear-gradient(transparent, #000 6%, #000 82%, transparent); overscroll-behavior: contain; }
.np-lyrics::-webkit-scrollbar { display: none; }
.np-lyrics p { margin: 0 0 22px; font-size: 30px; font-weight: 800; line-height: 1.18; letter-spacing: -.02em; color: rgba(255, 255, 255, .34); filter: blur(var(--bl, 0px)); transform-origin: 0 50%; transition: color .5s, filter .6s, transform .7s var(--e-bounce); }
.np-lyrics.synced p.on { color: #fff; transform: scale(1.03); }
.np-lyrics.synced p.past { color: rgba(255, 255, 255, .42); }
.np-lyrics.plain p { color: rgba(255, 255, 255, .9); font-size: 24px; }
.np-lyrics .msg { font-size: 18px; color: rgba(255, 255, 255, .7); font-weight: 600; filter: none; }
.np-lyrics .src { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .45); filter: none; }
.np-lyrics .dots { display: flex; gap: 8px; margin: 6px 0 26px; }
.np-lyrics .dots i { width: 12px; height: 12px; border-radius: 50%; background: #fff; animation: dot 1.4s ease-in-out infinite; }
.np-lyrics .dots i:nth-child(2) { animation-delay: .2s; } .np-lyrics .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%, 100% { opacity: .35; transform: scale(.8) } 50% { opacity: 1; transform: scale(1) } }
/* Letra a pantalla completa: los controles se esconden tras unos segundos sin tocar */
.np.immersive .np-controls { opacity: 0 !important; transform: translateY(40px); pointer-events: none; }
.np.immersive .np-body { bottom: calc(var(--sab) + 30px); }
.np-qchips { display: flex; gap: 10px; padding: 4px 20px 14px; }
.qchip { position: relative; flex: 1; height: 40px; border-radius: 20px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; transition: background-color .25s, color .25s, transform .4s var(--e-snap); }
.qchip:active { transform: scale(.92); }
.qchip svg { width: 22px; height: 22px; }
.qchip.on { background: rgba(255, 255, 255, .85); color: #222; }
.qchip .rep1 { position: absolute; top: 6px; right: calc(50% - 18px); font-size: 9px; font-weight: 800; display: none; }
.qchip[data-mode="one"] .rep1 { display: block; }
.np-qlist { flex: 1; overflow-y: auto; padding: 0 20px 20px; -webkit-mask-image: linear-gradient(#000 88%, transparent); mask-image: linear-gradient(#000 88%, transparent); overscroll-behavior: contain; }
.np-qlist h3 { margin: 6px 0 0; font-size: 17px; font-weight: 750; }
.np-qlist h3 + small { display: block; color: rgba(255, 255, 255, .55); font-size: 13px; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qrow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 6px 0; text-align: left; transition: opacity .2s; }
.qrow:active { opacity: .5; }
.qrow .r-art { width: 48px; height: 48px; }
.qrow small { color: rgba(255, 255, 255, .55); }

/* ---------- Menú contextual de vidrio ---------- */
.scrim { position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .0); transition: background-color .3s; }
.scrim.dim { background: rgba(0, 0, 0, .35); }
.menu { position: fixed; z-index: 60; width: 260px; }
.menu-glass { border-radius: 26px; overflow: hidden; background: var(--menu); -webkit-backdrop-filter: blur(30px) saturate(1.9); backdrop-filter: blur(30px) saturate(1.9); }
.np-open .menu-glass { --menu: rgba(255, 255, 255, .16); color: #fff; --fg: #fff; --fg-2: rgba(255, 255, 255, .6); --line: rgba(255, 255, 255, .14); }
.menu-in { padding: 8px 0; max-height: 70vh; overflow-y: auto; }
.m-quick { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px 6px 10px; border-bottom: .5px solid var(--line); margin-bottom: 4px; }
.m-quick button { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 6px 2px; border-radius: 12px; text-align: center; line-height: 1.15; }
.m-quick button:active { background: var(--press); }
.m-quick svg { width: 22px; height: 22px; }
.m-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 11px 18px; text-align: left; font-size: 17px; }
.m-row:active { background: var(--press); }
.m-row svg { width: 22px; height: 22px; color: var(--fg); opacity: .9; }
.m-row span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.m-row small { font-size: 13px; color: var(--fg-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.m-row .chev { width: 16px; height: 16px; opacity: .6; }
.m-row.danger { color: #ff453a; }
.m-row.danger svg { color: #ff453a; }
.m-sep { height: .5px; background: var(--line); margin: 4px 0; }
.m-sep.thick { height: 8px; background: color-mix(in srgb, var(--fg) 6%, transparent); margin: 4px 0; }

/* ---------- Hojas (cuenta, configuración, transferir, login) ---------- */
.sheet { position: fixed; inset: 0; z-index: 70; }
.sheet::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .4); opacity: var(--scrim, 1); }
.sheet-card { position: absolute; left: 0; right: 0; bottom: 0; max-height: calc(100% - var(--sat) - 12px); background: var(--sheet, var(--bg-2)); border-radius: 30px 30px 0 0; display: flex; flex-direction: column; padding-bottom: var(--sab); will-change: transform; }
.sheet-grab { height: 22px; display: grid; place-items: center; flex: none; }
.sheet-grab span { width: 38px; height: 5px; border-radius: 3px; background: var(--fg-3); }
.sheet-in { overflow-y: auto; padding: 4px 20px 24px; overscroll-behavior: contain; }
.sh-title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 14px; text-align: center; }
.sh-sub { text-align: center; color: var(--fg-2); margin: -8px 0 16px; font-size: 15px; text-wrap: balance; }
.sheet .group, .sheet .field input, .sheet .field textarea, .sheet .btn.soft { background: var(--sheet-2, var(--surface)); }
.group { background: var(--surface); border-radius: 14px; margin-bottom: 18px; overflow: hidden; }
:root:not([data-theme="dark"]) .sheet .group { background: var(--surface); }
.g-row { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 16px; width: 100%; text-align: left; font-size: 17px; position: relative; }
.g-row + .g-row::before { content: ""; position: absolute; top: 0; left: 52px; right: 0; border-top: .5px solid var(--line); }
.g-row:active { background: var(--press); }
.g-row > svg:first-child { width: 22px; height: 22px; }
.g-row > span { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 10px 0; }
.g-row small { color: var(--fg-2); font-size: 13px; }
.g-row .chev { width: 16px; height: 16px; color: var(--fg-3); stroke-width: 2.6; }
.g-row.danger { color: #ff453a; }
.g-label { font-size: 13px; color: var(--fg-2); text-transform: uppercase; letter-spacing: .04em; margin: 0 16px 6px; }
.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 16px; background: var(--surface-2); transition: background-color .25s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 14px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .5s var(--e-bounce), width .3s var(--e-snap); }
.switch input:checked + i { background: var(--fg); }
.switch input:checked + i::after { transform: translateX(20px); background: var(--inv); }
.switch input:active + i::after { width: 33px; }
.switch input:checked:active + i::after { transform: translateX(14px); }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: 13px; font-weight: 600; color: var(--fg-2); margin: 0 4px 6px; }
.field input, .field textarea { width: 100%; height: 50px; border: 0; border-radius: 14px; background: var(--surface); color: var(--fg); padding: 0 16px; font: inherit; font-size: 17px; outline: none; }
.field textarea { height: 160px; padding: 14px 16px; resize: none; }
.field input:focus, .field textarea:focus { box-shadow: inset 0 0 0 1.5px var(--fg); }
.err { color: #ff453a; font-size: 14px; min-height: 1.2em; margin: 0 4px 10px; }
.link { color: var(--fg); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.center { text-align: center; }
.tiny { font-size: 12.5px; color: var(--fg-3); text-align: center; margin-top: 14px; text-wrap: balance; }
.tiny a { text-decoration: underline; color: var(--fg-2); }
.brandmark { display: flex; justify-content: center; margin: 4px 0 12px; }
.brandmark i { width: 34px; height: 46px; background: var(--fg); -webkit-mask: url(/brand/note-black.png) center / contain no-repeat; mask: url(/brand/note-black.png) center / contain no-repeat; }
.ring { position: relative; width: 150px; height: 150px; margin: 10px auto; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--surface-2); stroke-width: 8; }
.ring .arc { stroke: var(--fg); stroke-linecap: round; transition: stroke-dashoffset .6s var(--e-snap); }
.ring div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring b { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ring small { color: var(--fg-2); font-size: 13px; }

/* Documentos (legal y ayuda) */
.doc { padding: 0 20px; }
.doc h2 { font-size: 22px; margin: 26px 0 8px; letter-spacing: -.02em; }
.doc h3 { font-size: 17px; margin: 20px 0 6px; }
.doc p, .doc li { font-size: 16px; line-height: 1.55; color: color-mix(in srgb, var(--fg) 85%, var(--fg-2)); -webkit-user-select: text; user-select: text; }
.doc a { text-decoration: underline; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 8px 10px 8px 0; border-bottom: .5px solid var(--line); vertical-align: top; }
.doc details { border-bottom: .5px solid var(--line); padding: 4px 0; }
.doc summary { padding: 10px 0; font-weight: 700; }
.doc .lg-callout { padding: 12px 14px; border-radius: 12px; background: var(--surface); margin: 10px 0; }
.doc .lg-copy { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 10px; background: var(--surface); }
.doc .lg-lead { font-size: 17px; color: var(--fg); }
.doc .lg-contact { padding: 14px; border-radius: 14px; background: var(--surface); display: grid; gap: 10px; }
.doc .lg-k { display: block; font-size: 12px; color: var(--fg-3); text-transform: uppercase; font-weight: 700; }
.doc kbd { font: 600 12px var(--font); padding: 1px 6px; border-radius: 5px; background: var(--surface); }
.doc .demo-box { display: none; }

/* Aviso flotante */
.toast { position: fixed; z-index: 80; left: 50%; bottom: calc(var(--sab) + 150px); transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 22px; font-size: 15px; font-weight: 600; width: max-content; max-width: calc(100% - 40px); text-align: center; line-height: 1.25; }
.toast svg { width: 18px; height: 18px; }
.np-open .toast { bottom: calc(var(--sab) + 22px); background: rgba(40, 40, 44, .5); color: #fff; }

.yt-wrap { position: fixed; left: -4000px; top: 0; width: 200px; height: 200px; pointer-events: none; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
:root[data-motion="reduce"] *, :root[data-motion="reduce"] *::before, :root[data-motion="reduce"] *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
