/* ============ maketaz — dark liquid glass ============ */
:root {
  --bg: #131116;
  --bg2: #1a171d;
  --ink: #ecebef;
  --ink2: #a8a5ad;
  --ink3: #85818b;
  --blood: #f4a3c4;
  --blood2: #d985a9;
  --blood-glow: rgba(247, 182, 207, .55);
  --line: rgba(255, 255, 255, .09);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .045));
  --chrome: linear-gradient(180deg, #ffffff 0%, #cfcfd6 28%, #8a8a93 47%, #2c2c31 51%, #9b9ba3 70%, #f2f2f5 86%, #8d8d95 100%);
  --r: 18px;
  --pbar-h: 92px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Space Mono', ui-monospace, Consolas, monospace;
  --goth: 'Alfa Slab One', 'Rockwell Extra Bold', serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 500 15px/1.45 var(--font); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { opacity: .4; cursor: default; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--blood); color: #fff; }
:focus-visible { outline: 2px solid rgba(247, 182, 207, .8); outline-offset: 2px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a272d; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

.mono { font-family: var(--mono); font-size: .86em; letter-spacing: 0; }
.dim { color: var(--ink3); }
.hint { color: var(--ink3); font-size: 12.5px; margin: 6px 0 0; display: block; }
.spacer { flex: 1; }
.i { display: inline-flex; width: 18px; height: 18px; flex: none; }
.i svg { width: 100%; height: 100%; }

/* ---------- atmósfera ---------- */
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.fx-glow {
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(247, 182, 207, .16), transparent 60%),
    radial-gradient(700px 600px at 100% 110%, rgba(214, 128, 166, .12), transparent 60%),
    radial-gradient(600px 400px at 70% 10%, rgba(120, 120, 140, .06), transparent 70%);
  animation: breathe 14s ease-in-out infinite alternate;
}
@keyframes breathe { to { opacity: .55; transform: scale(1.06); } }
.fx-noise {
  z-index: 60; opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes grain { 0%,100% { transform: translate(0,0) } 20% { transform: translate(-3%,2%) } 40% { transform: translate(2%,-3%) } 60% { transform: translate(-2%,-1%) } 80% { transform: translate(3%,3%) } }
.fx-vig { z-index: 59; background: radial-gradient(ellipse at center, transparent 65%, rgba(0, 0, 0, .3) 100%); }
#app { position: relative; z-index: 1; min-height: 100vh; }
.main { padding: 0 clamp(14px, 4vw, 56px) calc(var(--pbar-h) + 40px); max-width: 1320px; margin: 0 auto; }

/* ---------- liquid glass ---------- */
.glass {
  position: relative; isolation: isolate;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, .11);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -1px 0 rgba(0, 0, 0, .25),
    0 4px 14px -8px rgba(0, 0, 0, .45);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.glass::before {
  content: ''; position: absolute; inset: 1px; border-radius: inherit; pointer-events: none; z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 42%);
  opacity: .7;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 650; font-size: 14px;
  white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, filter .25s;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.15); }
.btn:active:not(:disabled) { transform: translateY(1px) scale(.98); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn.xs { height: 28px; padding: 0 11px; font-size: 12px; }
.btn.full { width: 100%; }
.btn.primary {
  color: #2b1320; border: 1px solid rgba(247, 182, 207, .35);
  background: linear-gradient(180deg, rgba(247, 182, 207, .95), rgba(214, 128, 166, .95) 60%, rgba(214, 128, 166, .95));
  box-shadow: inset 0 1px 0 rgba(255, 200, 205, .5), inset 0 -4px 10px rgba(46, 26, 38, .35), 0 4px 14px -8px var(--blood-glow);
  text-shadow: none;
}
.btn.danger { color: #fff; background: linear-gradient(180deg, #d9577f, #a8385d); border: 1px solid rgba(247, 182, 207, .3); }

.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%;
  color: var(--ink2); transition: color .2s, transform .25s var(--ease), background .25s;
}
.icon-btn:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.icon-btn.glass:hover { background: var(--glass); filter: brightness(1.25); }
.icon-btn.on { color: #f4a3c4; }
.icon-btn.on::after { content: ''; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #f4a3c4; transform: translateY(14px); box-shadow: 0 0 8px #f4a3c4; }

.pill { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.pill .i { width: 16px; height: 16px; }
.sync-syncing .i { animation: pulse 1s ease-in-out infinite; color: #ddd; }
.sync-ok .i { color: #9be3a6; }
.sync-error .i { color: #f4a3c4; }
@keyframes pulse { 50% { opacity: .3; } }

/* orbe cromado (play) */
.orb {
  width: 54px; height: 54px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  color: #120c0e;
  background: radial-gradient(circle at 34% 26%, #fff 0 7%, #e3e3e8 17%, #9d9da6 42%, #2b2b31 70%, #5b5b63 88%, #c9c9cf 100%);
  box-shadow: inset 0 -3px 8px rgba(0, 0, 0, .4), inset 0 2px 3px rgba(255, 255, 255, .8), 0 4px 12px -4px rgba(0, 0, 0, .5);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.orb .i { width: 22px; height: 22px; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .5)); }
.orb:hover:not(:disabled) { transform: scale(1.06); box-shadow: inset 0 -3px 8px rgba(0, 0, 0, .4), inset 0 2px 3px rgba(255, 255, 255, .8), 0 0 18px 0 var(--blood-glow); }
.orb:active:not(:disabled) { transform: scale(.95); }
.orb.lg { width: 64px; height: 64px; }
.orb.lg .i { width: 26px; height: 26px; }
.orb.sm { width: 44px; height: 44px; }
.orb.sm .i { width: 18px; height: 18px; }
.orb.is-loading { animation: orbload 1s linear infinite; }
@keyframes orbload { 50% { box-shadow: 0 0 22px 3px var(--blood-glow), inset 0 -4px 10px rgba(0, 0, 0, .55); } }

/* ---------- ojo ---------- */
.eye { display: inline-block; width: 38px; height: 23px; flex: none; --ex: 0; --ey: 0; }
.eye svg { width: 100%; height: 100%; overflow: visible; animation: blink 7s infinite; transform-origin: 50% 50%; }
.eye-white { fill: #e8e1d7; }
.eye-line { fill: none; stroke: #c8c8cf; stroke-width: 1.4; filter: drop-shadow(0 0 2px rgba(247, 182, 207, .6)); }
.eye-lid { display: none; }
.eye-iris { transform: translate(calc(var(--ex) * 8px), calc(var(--ey) * 3.4px)); transition: transform .12s ease-out; }
.eye svg { clip-path: path('M2 12C8 3 32 3 38 12C32 21 8 21 2 12Z'); }
.eye.big { width: 64px; height: 39px; }
.eye.big svg, .eye.huge svg { clip-path: none; }
.eye.huge { width: 150px; height: 90px; filter: drop-shadow(0 0 30px rgba(247, 182, 207, .35)); }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.06); } }

/* ---------- barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px;
  padding: 14px clamp(14px, 4vw, 56px); max-width: 1320px; margin: 0 auto;
  background: linear-gradient(180deg, rgba(19, 17, 22, .94), rgba(19, 17, 22, .6) 70%, transparent);
}
.logo { position: relative; display: inline-flex; align-items: center; gap: 10px; padding-bottom: 6px; }
.logo-txt {
  position: relative; font-family: var(--goth); font-size: 38px; line-height: 1; letter-spacing: .01em;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .6));
}
.logo-txt.big { font-size: 64px; }
@keyframes flicker { 0%, 89%, 91%, 93%, 100% { opacity: 1; } 90% { opacity: .35; } 92% { opacity: .75; } }
.logo-txt::after {
  content: attr(data-text); position: absolute; left: 0; top: 0; color: rgba(247, 182, 207, .5);
  -webkit-text-fill-color: rgba(247, 182, 207, .5); background: none; clip-path: inset(0 0 100% 0);
  display: none;
}
@keyframes glitch { 0%, 89%, 93%, 100% { clip-path: inset(0 0 100% 0); } 90% { clip-path: inset(30% 0 40% 0); transform: translateX(-3px); } 91.5% { clip-path: inset(60% 0 10% 0); transform: translateX(3px); } }
.logo-drip {
  position: absolute; left: 48px; right: 0; bottom: -6px; height: 14px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' preserveAspectRatio='none'%3E%3Cpath fill='%23f4a3c4' d='M0 0h120v2.2h-9c-1 0-1.2 7-2.6 7S107 2.2 106 2.2H76c-1 0-1 10.5-3 10.5S71 2.2 70 2.2H44c-1 0-1 5-2.2 5S40.6 2.2 39.6 2.2H16c-1 0-1.2 8-2.6 8S12 2.2 11 2.2H0z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  opacity: .9;
}
.logo-drip::after {
  content: ''; position: absolute; left: 55%; top: 10px; width: 4px; height: 5px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: #f4a3c4; animation: drop 6s ease-in infinite;
}
@keyframes drop { 0%, 60% { transform: translateY(0); opacity: 0; } 65% { opacity: 1; } 100% { transform: translateY(60px); opacity: 0; } }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* botón de actualizar */
.upd { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 650; color: var(--ink2); overflow: visible; }
.upd .i { width: 16px; height: 16px; }
.upd:hover { color: #fff; }
.upd.spin .i { animation: rot 0.8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.upd.has { color: #fff; border-color: rgba(247, 182, 207, .55); background: linear-gradient(180deg, rgba(247, 182, 207, .55), rgba(214, 128, 166, .6)); animation: updpulse 1.6s ease-in-out infinite; }
.upd.has .i { animation: rot 3s linear infinite; color: #fde3ee; }
.upd-glow { position: absolute; inset: -6px; border-radius: inherit; border: 2px solid rgba(247, 182, 207, .6); animation: ring 1.6s ease-out infinite; pointer-events: none; }
@keyframes ring { from { transform: scale(.92); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
@keyframes updpulse { 50% { box-shadow: 0 0 26px 4px var(--blood-glow), inset 0 1px 0 rgba(255, 255, 255, .3); } }
.upd-badge { font-size: 11px; padding: 2px 7px; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fbd3e2; border: 1px solid rgba(247, 182, 207, .35); }
.upd.busy { color: #fff; }
.upd-ring { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(#f4a3c4 calc(var(--pct) * 1%), rgba(255, 255, 255, .12) 0); -webkit-mask: radial-gradient(circle, transparent 5px, #000 6px); mask: radial-gradient(circle, transparent 5px, #000 6px); }

/* ---------- portadas ---------- */
.cover { position: relative; overflow: hidden; border-radius: 10px; background: #18151a; flex: none; aspect-ratio: 1; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover.xs { width: 24px; border-radius: 50%; }
.cover.sm { width: 56px; border-radius: 8px; }
.cover.md { width: 100%; }
.cover.lg { width: 232px; border-radius: 4px; }
.cover.xl { width: 100%; border-radius: 14px; }
.tartan {
  background:
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(0, 0, 0, .55) 18px 40px, transparent 40px 54px, rgba(70, 110, 140, .35) 54px 56px, transparent 56px 74px, rgba(220, 160, 60, .35) 74px 75px, transparent 75px 92px),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(0, 0, 0, .55) 18px 40px, transparent 40px 54px, rgba(70, 110, 140, .35) 54px 56px, transparent 56px 74px, rgba(60, 140, 70, .3) 74px 75px, transparent 75px 92px),
    linear-gradient(135deg, #c97aa0, #3a2030);
}
.cover-ini { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--goth); font-size: 42cqw; color: rgba(255, 255, 255, .85); text-shadow: 0 4px 20px #000; container-type: size; }
.cover { container-type: inline-size; }
.cover-ini { font-size: 46cqw; }
.cover.xs .cover-ini, .cover.sm .cover-ini { font-size: 60cqw; }

.eqz { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.eqz i { width: 3px; background: #f4a3c4; border-radius: 1px; animation: eq .9s ease-in-out infinite; }
.eqz i:nth-child(2) { animation-delay: -.3s; } .eqz i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 14px; } }
.E { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 2px; background: #9a979e; color: #121212; font-size: 9.5px; font-weight: 800; margin: 0 6px; vertical-align: 1px; flex: none; }
.vtag { font-size: 10.5px; padding: 1px 6px; border-radius: 6px; background: rgba(247, 182, 207, .2); color: #f9c6da; border: 1px solid rgba(247, 182, 207, .25); margin-left: 6px; }

.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .15); border-top-color: #f4a3c4; animation: rot .7s linear infinite; display: inline-block; flex: none; }
.loading { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 80px 0; color: var(--ink3); font-family: var(--mono); }

.empty { text-align: center; padding: 60px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty h3 { font-family: var(--goth); font-weight: 400; font-size: 34px; margin: 16px 0 0; color: #d8d4d0; letter-spacing: .02em; }
.empty p { margin: 0 0 16px; }

/* ---------- biblioteca ---------- */
.lib-head { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin: 26px 0 26px; }
.lib-title { font-family: var(--goth); font-weight: 400; font-size: clamp(40px, 6vw, 64px); margin: 0; line-height: 1; color: #e7e3df; text-shadow: 0 0 30px rgba(247, 182, 207, .35); }
.lib-tools { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; min-width: min(320px, 80vw); color: var(--ink3); }
.search input { background: none; border: 0; outline: 0; flex: 1; color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 26px 22px; }
.card { display: block; text-align: left; border-radius: 16px; padding: 10px; margin: -10px; transition: background .2s; }
.card:hover { background: rgba(255, 255, 255, .035); }
.card-cover { position: relative; border-radius: 12px; box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06); transition: transform .35s var(--ease); }
.card:hover .card-cover { transform: translateY(-3px); }
.card-cover .cover { border-radius: 12px; }
.card-play { position: absolute; right: 10px; bottom: 10px; opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.card:hover .card-play, .card-play.show { opacity: 1; transform: none; }
.card-t { font-weight: 700; margin-top: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-s { font-size: 13px; color: var(--ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.new-cover { aspect-ratio: 1; display: grid; place-items: center; border: 1.5px dashed rgba(255, 255, 255, .16); background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .015) 0 10px, transparent 10px 20px); color: var(--ink3); box-shadow: none; }
.new-cover .i { width: 40px; height: 40px; }
.card.new:hover .new-cover { border-color: rgba(247, 182, 207, .6); color: #f4a3c4; }

/* ---------- proyecto ---------- */
.proj { position: relative; padding-top: 8px; }
.proj-top { display: flex; align-items: center; gap: 10px; margin: 8px 0 30px; flex-wrap: wrap; }
.shared-tag { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; font-size: 13px; color: var(--ink2); }
.proj-body { display: grid; grid-template-columns: minmax(240px, 400px) minmax(0, 1fr); gap: clamp(24px, 4vw, 54px); align-items: start; }
.cover-col { position: sticky; top: 96px; }
.cover-wrap { position: relative; border-radius: 14px; box-shadow: 0 16px 36px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06); }
.cover-edit { position: absolute; inset: 0; display: grid; place-items: end center; padding: 16px; opacity: 0; transition: opacity .2s; cursor: pointer; background: linear-gradient(0deg, rgba(0, 0, 0, .55), transparent 50%); border-radius: 14px; }
.cover-wrap:hover .cover-edit { opacity: 1; }
.cover-edit .pill { color: #fff; }
.proj-head { display: flex; align-items: flex-start; gap: 16px; }
.proj-titles { flex: 1; min-width: 0; }
.proj-title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 850; letter-spacing: -.03em; margin: 0; line-height: 1.1; width: 100%; }
.edit { background: transparent; border: 1px solid transparent; border-radius: 10px; outline: 0; padding: 2px 6px; margin-left: -7px; transition: border-color .2s, background .2s; }
.edit:hover { border-color: rgba(255, 255, 255, .08); }
.edit:focus { border-color: rgba(247, 182, 207, .5); background: rgba(0, 0, 0, .3); }
.proj-meta { display: flex; align-items: center; flex-wrap: wrap; color: var(--ink2); margin-top: 4px; font-size: 14.5px; }
.artist.edit { font-weight: 650; color: var(--ink); padding: 0 6px; margin-left: -7px; field-sizing: content; min-width: 4ch; max-width: 100%; }
textarea.proj-title { display: block; resize: none; overflow: hidden; field-sizing: content; font-family: inherit; color: inherit; min-width: 0; max-width: 100%; }
.proj-info, .proj-titles { min-width: 0; }
.proj-play { display: flex; align-items: center; gap: 12px; }
.add-tracks { display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: 14px; margin: 24px 0 14px; cursor: pointer; font-weight: 700; transition: filter .2s, border-color .2s; }
.add-tracks:hover { filter: brightness(1.2); border-color: rgba(247, 182, 207, .4); }
.add-tracks small { font-weight: 500; }
.tracklist { list-style: none; margin: 0; padding: 0; position: relative; }
.trk {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; min-height: 58px;
  transition: background .25s var(--ease); user-select: none; position: relative;
}
.trk:hover { background: rgba(255, 255, 255, .045); }
.trk.cur { background: linear-gradient(90deg, rgba(247, 182, 207, .16), transparent 70%); }
.trk.cur .trk-title { color: #f7b6cf; }
.trk.dragging { background: #2a2530; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(247, 182, 207, .35); z-index: 5; transition: none; will-change: transform; }
body.dragging-rows, body.dragging-rows * { cursor: grabbing !important; user-select: none; }
.trk.uploading { opacity: .7; }
.grip { width: 22px; height: 30px; display: grid; place-items: center; color: var(--ink3); cursor: grab; touch-action: none; opacity: .35; transition: opacity .15s; }
.trk:hover .grip, .trk.dragging .grip { opacity: 1; }
.grip .i { width: 16px; height: 16px; }
.num { position: relative; width: 28px; height: 28px; color: var(--ink3); flex: none; display: grid; place-items: center; }
.num .rplay { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; opacity: 0; transition: opacity .15s; }
.num .rplay .i { width: 15px; height: 15px; }
.num .nn { transition: opacity .15s; }
.trk:hover .num .rplay { opacity: 1; }
.trk:hover .num .nn { opacity: 0; }
.trk.cur .rplay { color: #f7b6cf; }
.trk-main { flex: 1; min-width: 0; text-align: left; display: flex; flex-direction: column; padding: 2px 0; cursor: default; }
.trk-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; }
.trk-sub { font-size: 13px; color: var(--ink2); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk-sub .E { margin: 0 6px 0 0; vertical-align: 1px; }
.dur { color: var(--ink3); }
.proj-foot { margin-top: 30px; font-size: 12px; }
.proj.dropping .tracklist, .proj.dropping .add-tracks { filter: blur(2px); }
.drop-veil { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(46, 26, 38, .55); pointer-events: none; }
.drop-msg { display: flex; align-items: center; gap: 12px; padding: 22px 34px; border-radius: 22px; font-family: var(--goth); font-size: 34px; }
.drop-msg .i { width: 30px; height: 30px; }

/* ---------- reproductor ---------- */
.pbar-space { height: 0; }
.pbar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 35; height: var(--pbar-h);
  display: grid; grid-template-columns: minmax(180px, 1fr) minmax(300px, 1.6fr) minmax(180px, 1fr); align-items: center; gap: 16px;
  padding: 0 18px; border-radius: 26px;
  background: linear-gradient(180deg, rgba(40, 35, 44, .82), rgba(24, 21, 27, .88));
}
.pb-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pb-txt { min-width: 0; }
.pb-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; }
.pb-art { font-size: 12.5px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-center { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.pb-ctrl { display: flex; align-items: center; gap: 6px; }
.pb-ctrl .icon-btn { width: 36px; height: 36px; }
.pb-seek { display: flex; align-items: center; gap: 10px; width: 100%; }
.pb-seek .t { width: 40px; text-align: center; color: var(--ink3); font-size: 11px; }
.wave { position: relative; flex: 1; height: 26px; cursor: pointer; touch-action: none; }
.wave > div { position: absolute; inset: 0; }
.wave svg.w { width: 100%; height: 100%; display: block; }
.wave-base svg { fill: rgba(255, 255, 255, .2); }
.wave-fill { clip-path: inset(0 calc(100% - var(--p) * 100%) 0 0); }
.wave-fill svg { fill: #f4a3c4; filter: drop-shadow(0 0 4px rgba(247, 182, 207, .6)); }
.pb-right { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.xf-wrap { position: relative; }
.xf-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; color: var(--ink2); font-size: 12px; }
.xf-btn .i { width: 16px; height: 16px; }
.xf-btn.on { color: #fff; border-color: rgba(247, 182, 207, .45); }
.xf-btn.on .i { color: #f4a3c4; }
.xf-pop { position: absolute; bottom: 48px; right: -40px; width: 280px; padding: 16px; border-radius: 20px; background: linear-gradient(180deg, rgba(36, 30, 38, .92), rgba(14, 12, 16, .95)); }
.xf-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.xf-pop .btn { margin-top: 12px; }
.vol { display: flex; align-items: center; gap: 2px; }
.vol .range { width: 90px; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); outline: 0; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #a5a5ad 55%, #3a3a40); box-shadow: 0 0 0 1px #000, 0 0 12px rgba(247, 182, 207, .5); cursor: pointer; }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; border: 0; background: radial-gradient(circle at 35% 30%, #fff, #a5a5ad 55%, #3a3a40); }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 18px; bottom: calc(var(--pbar-h) + 26px); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; padding: 12px 16px; border-radius: 14px; max-width: min(420px, 90vw); font-size: 13.5px; background: linear-gradient(180deg, rgba(48, 42, 52, .94), rgba(28, 24, 31, .96)); animation: tin .35s var(--ease); display: flex; align-items: center; gap: 10px; }
.toast.error { border-color: rgba(247, 182, 207, .5); box-shadow: 0 0 24px -6px var(--blood-glow); }
.toast.ok { border-color: rgba(150, 230, 160, .3); }
.toast.task { min-width: 260px; flex-wrap: wrap; }
.toast .bar { flex-basis: 100%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #f4a3c4 calc(var(--p) * 100%), rgba(255, 255, 255, .1) 0); }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } }

/* ---------- login ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth-card { width: min(400px, 100%); padding: 34px 28px; border-radius: 28px; display: flex; flex-direction: column; gap: 12px; text-align: center; }
.auth-logo { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 6px; }
.auth-msg { color: #f9c6da; font-size: 13px; margin: 0; }
.linkish { color: var(--ink2); font-size: 13.5px; padding: 4px; }
.linkish:hover { color: #fff; text-decoration: underline; }
.field {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; outline: 0;
  background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .5); transition: border-color .2s, box-shadow .2s;
}
.field:focus, .field:focus-within { border-color: rgba(247, 182, 207, .55); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .5), 0 0 0 3px rgba(247, 182, 207, .18); }
textarea.field { height: auto; padding: 10px 14px; resize: vertical; }
select.field { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #999 50%), linear-gradient(135deg, #999 50%, transparent 50%); background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
select.field option { background: #18151a; }

/* ---------- modales ---------- */
.veil { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { position: relative; width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 28px; border-radius: 28px; background: linear-gradient(180deg, rgba(42, 37, 46, .94), rgba(26, 23, 29, .96)); animation: pop .32s var(--ease); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); }
.modal.wide { width: min(940px, 100%); padding: 0; overflow: hidden; }
@media (max-width: 900px) { .modal.wide { overflow: auto; } }
.modal.narrow { width: min(500px, 100%); }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(12px); } }
.modal-x { position: absolute; top: 16px; right: 16px; z-index: 3; width: 36px; height: 36px; }
.m-title { margin: 0 0 18px; font-size: 22px; font-weight: 800; }
.sec { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink3); margin: 26px 0 10px; font-weight: 700; }
.sec:first-child { margin-top: 0; }
.fld { display: block; margin-bottom: 12px; }
.fld-l { display: block; font-size: 12.5px; font-weight: 650; color: var(--ink2); margin: 0 0 6px 2px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.group { border-radius: 18px; overflow: hidden; margin-bottom: 12px; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 10px 16px; text-align: left; font-weight: 600; cursor: pointer; }
div.row { cursor: default; }
.row + .row, .ver + .ver, .ver + .row, .switch-row + .switch-row { border-top: 1px solid var(--line); }
button.row:hover, label.row:hover { background: rgba(255, 255, 255, .05); }
.row-l { flex: 1; min-width: 0; }
.row.danger { color: #ff8fb1; }
.row.col { flex-direction: column; align-items: stretch; gap: 10px; }
.row-top { display: flex; justify-content: space-between; }
.sel { width: auto; max-width: 55%; height: 36px; }
.switch-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; }
.group > .switch-row { padding: 14px 16px; }
.modal .tm-right > .switch-row { padding: 6px 2px; }
.sw-txt { flex: 1; display: flex; flex-direction: column; }
.sw-txt small { color: var(--ink3); font-size: 12.5px; }
.switch { -webkit-appearance: none; appearance: none; width: 50px; height: 30px; border-radius: 999px; position: relative; flex: none; cursor: pointer; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .12); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .6); transition: background .25s, box-shadow .25s; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #b9b9c0 50%, #55555c); box-shadow: 0 2px 6px rgba(0, 0, 0, .7); transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.switch:checked { background: linear-gradient(180deg, #f7b6cf, #d985a9); box-shadow: inset 0 1px 0 rgba(255, 200, 205, .4), 0 0 16px -2px var(--blood-glow); }
.switch:checked::after { transform: translateX(20px); }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; height: auto; min-height: 44px; padding: 6px 8px; }
.chips input { flex: 1; min-width: 120px; background: none; border: 0; outline: 0; height: 30px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 650; background: linear-gradient(180deg, rgba(247, 182, 207, .45), rgba(214, 128, 166, .5)); border: 1px solid rgba(247, 182, 207, .35); }
.chip button { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; opacity: .7; }
.chip button:hover { opacity: 1; background: rgba(0, 0, 0, .3); }
.chip .i { width: 12px; height: 12px; }

.tm { display: grid; grid-template-columns: 330px 1fr; min-height: 520px; }
.tm-left { padding: 34px 28px; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; background: rgba(0, 0, 0, .18); }
.tm-left .cover { width: 180px; box-shadow: 0 20px 40px -16px #000; margin-bottom: 10px; }
.tm-title { margin: 0; font-size: 22px; font-weight: 800; }
.tm-meta { font-size: 12px; }
.tm-wave { width: 100%; height: 42px; margin: 10px 0 4px; }
.tm-wave svg { width: 100%; height: 100%; fill: rgba(255, 255, 255, .45); }
.tm-file { font-size: 11px; word-break: break-all; }
.tm-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.tm-right { padding: 30px 28px; overflow: auto; max-height: calc(100vh - 40px); }
.ver { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; }
.ver.on { background: rgba(247, 182, 207, .1); }
.ver .vtag { margin: 0; }
.ver-n { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ver-n b { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ver-n small { font-size: 12px; }
.ver-cur { font-size: 11px; color: #f9c6da; }
.ver .icon-btn { width: 32px; height: 32px; }

.confirm { position: sticky; bottom: 16px; margin: 16px; padding: 18px; border-radius: 20px; z-index: 5; background: linear-gradient(180deg, rgba(46, 26, 38, .95), rgba(46, 26, 38, .97)); border-color: rgba(247, 182, 207, .4); animation: pop .2s; }
.confirm p { margin: 0 0 14px; }
.confirm-btns { display: flex; gap: 8px; justify-content: flex-end; }

.share-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-right: 40px; }
.share-head .cover.xs { width: 44px; border-radius: 8px; }
.share-head h2 { margin: 0; font-size: 20px; }
.note { display: flex; gap: 12px; padding: 14px 16px; border-radius: 16px; margin-bottom: 14px; font-size: 13.5px; color: var(--ink2); }
.note p { margin: 0; }
.seg { display: flex; padding: 4px; border-radius: 999px; gap: 4px; }
.seg button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-radius: 999px; font-size: 13.5px; font-weight: 650; color: var(--ink2); transition: background .25s, color .2s; }
.seg button .i { width: 16px; height: 16px; }
.seg button.on { color: #fff; background: linear-gradient(180deg, rgba(247, 182, 207, .85), rgba(214, 128, 166, .9)); box-shadow: inset 0 1px 0 rgba(255, 200, 205, .45), 0 4px 16px -4px var(--blood-glow); }
.seg.disabled { opacity: .45; pointer-events: none; }
.seg + .hint { margin: 10px 4px 16px; }
.linkbox { display: flex; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 999px; align-items: center; margin-bottom: 12px; }
.linkbox input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 12px; color: var(--ink2); }

.cl-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding-right: 40px; }
.cl-head h2 { margin: 2px 0 0; font-family: var(--goth); font-weight: 400; font-size: 34px; line-height: 1; }
.cl-entry { padding: 16px 18px; border-radius: 18px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); margin-bottom: 14px; }
.cl-v { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cl-v .dim { margin-left: auto; font-size: 11px; }
.cl-entry ul { margin: 12px 0 0; padding-left: 18px; color: var(--ink2); }
.cl-entry li { margin: 6px 0; }
.cl-entry li::marker { content: '✝  '; color: #f4a3c4; }

/* créditos estilo spotify */
.credits { width: min(540px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #282828; border-radius: 10px; padding: 24px 28px 28px; font-family: var(--font); animation: pop .2s; box-shadow: 0 20px 60px rgba(0, 0, 0, .7); }
.cr-head { display: flex; justify-content: space-between; align-items: center; }
.cr-head h2 { margin: 0; font-size: 24px; font-weight: 800; }
.cr-x { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #b3b3b3; }
.cr-x:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.cr-song { color: #b3b3b3; font-size: 14px; margin: 4px 0 6px; }
.cr-sec h3 { font-size: 16px; font-weight: 700; margin: 22px 0 10px; }
.cr-p { display: flex; flex-direction: column; margin: 0 0 14px; }
.cr-p b { font-weight: 600; font-size: 15px; }
.cr-p span { color: #b3b3b3; font-size: 13.5px; }
.cr-empty { color: #b3b3b3; margin-top: 20px; }

/* ---------- vista spotify ---------- */
.mode-spotify .main { max-width: none; padding: 0 0 calc(var(--pbar-h) + 20px); }
.mode-spotify ~ .fx, body:has(.mode-spotify) .fx { display: none; }
body:has(.mode-spotify) { background: #121212; }
.spfy { --sp: #555; font-family: var(--font); color: #fff; min-height: 100vh; background: #121212; }
.spfy-bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; background: color-mix(in srgb, var(--sp) 35%, #121212 65%); }
.spfy-back { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px 0 10px; border-radius: 999px; background: rgba(0, 0, 0, .5); font-weight: 700; font-size: 13.5px; }
.spfy-back:hover { background: rgba(0, 0, 0, .7); }
.spfy-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .15em; opacity: .65; }
.spfy-head { display: flex; align-items: flex-end; gap: 24px; padding: 30px 24px 24px; background: linear-gradient(180deg, color-mix(in srgb, var(--sp) 85%, #000 15%), color-mix(in srgb, var(--sp) 45%, #121212 55%)); }
.spfy-cover .cover { box-shadow: 0 4px 60px rgba(0, 0, 0, .5); }
.spfy-cover .cover.lg { width: clamp(150px, 22vw, 232px); }
.spfy-htxt { min-width: 0; padding-bottom: 6px; }
.spfy-type { font-size: 14px; font-weight: 500; }
.spfy-title { margin: 6px 0 12px; font-weight: 900; letter-spacing: -.04em; line-height: 1; word-break: break-word; }
.spfy-title.xl { font-size: clamp(40px, 7.5vw, 96px); }
.spfy-title.l { font-size: clamp(34px, 5.5vw, 72px); }
.spfy-title.m { font-size: clamp(28px, 4vw, 48px); }
.spfy-title.s { font-size: clamp(24px, 3vw, 32px); }
.spfy-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 14px; }
.spfy-meta b { font-weight: 700; }
.spfy-meta span:last-child { color: rgba(255, 255, 255, .72); }
.spfy-body { padding: 0 24px 40px; background: linear-gradient(180deg, color-mix(in srgb, var(--sp) 22%, #121212 78%) 0, #121212 232px); }
.spfy-ctrl { display: flex; align-items: center; gap: 18px; padding: 24px 0; }
.spfy-play { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1ed760; color: #000; transition: transform .1s, background .1s; }
.spfy-play:hover { transform: scale(1.04); background: #3be477; }
.spfy-play .i { width: 24px; height: 24px; }
.spfy-mini .cover.xs { width: 34px; height: 46px; border-radius: 4px; aspect-ratio: auto; border: 1px solid rgba(255, 255, 255, .25); }
.spfy-ic { width: 34px; height: 34px; display: grid; place-items: center; color: #b3b3b3; }
.spfy-ic .i { width: 26px; height: 26px; }
.spfy-ic:hover { color: #fff; transform: scale(1.04); }
.spfy-ic.on { color: #1ed760; }
.spfy-list { color: #b3b3b3; font-size: 14px; }
.spfy-cols, .spfy-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 110px 70px; gap: 16px; align-items: center; padding: 0 16px; }
.spfy-cols { height: 36px; border-bottom: 1px solid rgba(255, 255, 255, .1); color: #b3b3b3; font-size: 14px; margin-bottom: 14px; }
.spfy-cols span:first-child { text-align: center; }
.spfy-cols .d { display: flex; justify-content: flex-end; padding-right: 6px; }
.spfy-cols .c { text-align: right; }
.spfy-row { height: 56px; border-radius: 4px; color: #b3b3b3; font-size: 14px; }
.spfy-row:hover { background: rgba(255, 255, 255, .1); }
.spfy-row .n { position: relative; display: grid; place-items: center; font-size: 16px; }
.spfy-row .rplay { position: absolute; inset: 0; display: none; place-items: center; color: #fff; }
.spfy-row .rplay .i { width: 16px; height: 16px; }
.spfy-row:hover .nn { visibility: hidden; }
.spfy-row:hover .rplay { display: grid; }
.spfy-row .eqz i { background: #1ed760; }
.spfy-row .t { min-width: 0; }
.spfy-row .tt { color: #fff; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spfy-row.on .tt { color: #1ed760; }
.spfy-row .ta { display: block; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.spfy-row .ta .E { margin: 0 6px 0 0; vertical-align: 1px; }
.spfy-row .ta u { text-decoration: none; }
.spfy-row .ta u:hover { text-decoration: underline; color: #fff; }
.spfy-row .c { justify-self: end; font-size: 12.5px; color: #b3b3b3; opacity: 0; }
.spfy-row:hover .c { opacity: 1; }
.spfy-row .c:hover { color: #fff; text-decoration: underline; }
.spfy-row .d { text-align: right; padding-right: 6px; }
.spfy-foot { padding: 32px 16px 0; color: #b3b3b3; font-size: 11px; line-height: 1.6; }
.spfy-foot .date { font-size: 14px; margin-bottom: 2px; }

.pbar.sp { left: 0; right: 0; bottom: 0; border-radius: 0; height: 80px; background: #000; border: 0; box-shadow: none; backdrop-filter: none; font-family: var(--font); }
.pbar.sp::before { display: none; }
.pbar.sp .orb { background: #fff; color: #000; box-shadow: none; width: 34px; height: 34px; }
.pbar.sp .orb .i { width: 16px; height: 16px; filter: none; }
.pbar.sp .wave-fill svg { fill: #1ed760; filter: none; }
.pbar.sp .icon-btn.on { color: #1ed760; }
.pbar.sp .icon-btn.on::after { background: #1ed760; box-shadow: none; }
.pbar.sp .pb-title { font-size: 14px; font-weight: 500; }
.pbar.sp .xf-btn.on .i { color: #1ed760; }
.pbar.sp .glass { background: #1f1f1f; border-color: #333; box-shadow: none; }

/* ---------- perfil ---------- */
.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; flex: none; background: linear-gradient(135deg, #c97aa0, #2e1a26); color: #fff; font-weight: 800; font-size: 13px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.xs { width: 24px; height: 24px; font-size: 11px; }
.avatar.xl { width: 112px; height: 112px; font-size: 44px; }
.me { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 5px; border-radius: 999px; font-size: 13px; font-weight: 650; transition: filter .25s; }
.me:hover { filter: brightness(1.2); }
.me-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prof { display: flex; align-items: center; gap: 20px; }
.prof-av { position: relative; cursor: pointer; border-radius: 50%; }
.prof-av .avatar { transition: filter .25s; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .6); }
.prof-av:hover .avatar { filter: brightness(.8); }
.prof-edit { position: absolute; right: -2px; bottom: -2px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.prof-f { flex: 1; min-width: 0; }
.prof-prev { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-radius: 8px; background: #2a2a2a; font-family: var(--font); }
.prof-prev .rplay { color: #fff; display: grid; } .prof-prev .rplay .i { width: 16px; height: 16px; }
.prof-prev .tt { color: #fff; font-size: 16px; }
.prof-prev .ta { color: #b3b3b3; font-size: 14px; }
.prof-prev .ta .E { margin: 0 6px 0 0; }

/* ---------- interruptor de vista ---------- */
.vswitch { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; gap: 0; }
.vswitch a { position: relative; z-index: 1; height: 34px; padding: 0 16px; display: inline-grid; place-items: center; border-radius: 999px; font-size: 13.5px; font-weight: 650; color: var(--ink2); transition: color .3s; min-width: 92px; }
.vswitch a.on { color: #fff; }
.vs-knob { position: absolute; top: 4px; left: 4px; width: calc(50% - 4px); height: 34px; border-radius: 999px; background: linear-gradient(180deg, rgba(247, 182, 207, .85), rgba(214, 128, 166, .9)); box-shadow: inset 0 1px 0 rgba(255, 200, 205, .4); transition: transform .4s var(--ease), background .4s; }
.vswitch.sp .vs-knob { transform: translateX(100%); background: #1ed760; box-shadow: none; }
.vswitch.sp { background: rgba(0, 0, 0, .45); border-color: rgba(255, 255, 255, .1); }
.vswitch.sp a.on { color: #000; }
.vswitch.sp::before { display: none; }

/* transiciones de pantalla */
.page { animation: enter .4s var(--ease); }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }

/* ============ v1.2: rosa, logo, transiciones ============ */
.seg button.on, .upd.has, .vswitch:not(.sp) a.on, .chip { color: #2b1320; }
.upd.has .i { color: #2b1320; }
.upd.has .upd-badge { color: #fbd3e2; }

/* portada por defecto: cuadritos rosa y negro */
.checker { background: repeating-conic-gradient(#f4a3c4 0 25%, #111 0 50%) 0 0 / 22.22% 22.22%; }
.cover.sm.checker, .cover.xs.checker { background-size: 50% 50%; }

/* logo estilo letras gastadas con corazones que chorrean */
.logo { padding-bottom: 0; }
.logo-txt {
  font-family: 'Alfa Slab One', serif; font-size: 34px; letter-spacing: .02em; line-height: 1;
  background: none; color: #f3eef1; -webkit-text-fill-color: #f3eef1;
  filter: url(#rough) drop-shadow(0 1px 0 rgba(0, 0, 0, .5)); display: inline-flex; align-items: flex-end;
}
.logo-txt.big { font-size: 54px; }
.lh { position: relative; display: inline-block; }
.heart { display: inline-block; width: 22px; height: 31px; flex: none; }
.heart svg { width: 100%; height: 100%; overflow: visible; }
.h-body { fill: #f4a3c4; stroke: #1b0f15; stroke-width: 1.3; }
.h-in { fill: #1b0f15; }
.h-drip { fill: #f4a3c4; stroke: #1b0f15; stroke-width: .9; transform-origin: 12px 20px; animation: drip 4.5s var(--ease) infinite; }
.h-drop { fill: #f4a3c4; opacity: 0; animation: drop2 4.5s ease-in infinite; }
@keyframes drip { 0%, 100% { transform: scaleY(.55); } 55% { transform: scaleY(1); } }
@keyframes drop2 { 0%, 55% { opacity: 0; transform: translateY(-3px); } 62% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }
.heart.on { position: absolute; left: 50%; top: .1em; width: .66em; height: .92em; transform: translateX(-50%); }
.heart.on .h-body { stroke-width: 1.8; }
.heart.on .h-in { display: none; }
.heart.d2 .h-drip, .heart.d2 .h-drop { animation-delay: -2.2s; }
.heart.big { width: 46px; height: 64px; }
.heart.huge { width: 110px; height: 150px; filter: drop-shadow(0 10px 30px rgba(247, 182, 207, .25)); }
.empty h3, .lib-title, .cl-head h2, .drop-msg { font-family: var(--goth); filter: url(#rough); text-shadow: none; }
.lib-title { color: #f3eef1; }
.artist { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; color: var(--ink); padding: 2px 8px 2px 2px; margin-left: -2px; border-radius: 999px; transition: background .25s; }
button.artist:hover { background: rgba(255, 255, 255, .07); }

/* entrada escalonada de filas y tarjetas */
.trk, .card, .spfy-row { animation: rise .5s var(--ease) backwards; animation-delay: calc(min(var(--i, 0), 14) * 35ms); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* salida de modales y avisos */
.veil.closing { animation: fadeout .2s var(--ease) forwards; pointer-events: none; }
.veil.closing .modal, .veil.closing .credits { animation: popout .2s var(--ease) forwards; }
@keyframes fadeout { to { opacity: 0; } }
@keyframes popout { to { opacity: 0; transform: scale(.97) translateY(10px); } }
.toast.leaving { animation: tout .26s var(--ease) forwards; }
@keyframes tout { to { opacity: 0; transform: translateX(24px); } }

/* View Transitions entre pantallas */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease); }
html[data-vt="fwd"]::view-transition-old(root) { animation: vt-out-l .35s var(--ease) both; }
html[data-vt="fwd"]::view-transition-new(root) { animation: vt-in-r .45s var(--ease) both; }
html[data-vt="back"]::view-transition-old(root) { animation: vt-out-r .35s var(--ease) both; }
html[data-vt="back"]::view-transition-new(root) { animation: vt-in-l .45s var(--ease) both; }
html[data-vt="to-sp"]::view-transition-old(root), html[data-vt="to-mk"]::view-transition-old(root) { animation: vt-hold .6s linear both; }
html[data-vt="to-sp"]::view-transition-new(root), html[data-vt="to-mk"]::view-transition-new(root) { animation: vt-circle .6s cubic-bezier(.65, 0, .25, 1) both; }
html[data-vt="to-sp"]::view-transition-group(cover), html[data-vt="to-mk"]::view-transition-group(cover) { animation-duration: .6s; animation-timing-function: cubic-bezier(.65, 0, .25, 1); }
.proj .cover-wrap > .cover, .spfy-cover .cover { view-transition-name: cover; }
.pbar { view-transition-name: pbar; }
@keyframes vt-out-l { to { opacity: 0; transform: translateX(-40px); } }
@keyframes vt-in-r { from { opacity: 0; transform: translateX(40px); } }
@keyframes vt-out-r { to { opacity: 0; transform: translateX(40px); } }
@keyframes vt-in-l { from { opacity: 0; transform: translateX(-40px); } }
@keyframes vt-hold { to { opacity: .6; transform: scale(.985); } }
@keyframes vt-circle { from { clip-path: circle(0 at var(--vx) var(--vy)); } to { clip-path: circle(150vmax at var(--vx) var(--vy)); } }
@supports (view-transition-name: none) { .page { animation: none; } }

/* créditos: texto en escritorio, ⋯ en celular */
.spfy-row .c .i { display: none; }
.spfy-sub { display: none; }

/* ============ v1.2.1: controles del reproductor ============ */
.pb-right { gap: 6px; }
.pb-chip {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px 0 11px; border-radius: 999px;
  font: 600 13px/1 var(--font); color: var(--ink2); letter-spacing: 0; white-space: nowrap; flex: none;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1);
  transition: background .25s, color .25s, border-color .25s;
}
.pb-chip .i { width: 16px; height: 16px; }
.pb-chip:hover, .pb-chip.open { color: #fff; background: rgba(255, 255, 255, .12); }
.pb-chip.on { color: #2b1320; background: linear-gradient(180deg, #fbd0e0, #f0a2c3); border-color: rgba(255, 255, 255, .35); }
.pb-ic {
  width: 36px; height: 36px; flex: none; display: inline-grid; place-items: center; border-radius: 50%;
  color: var(--ink2); transition: color .2s, background .25s, transform .25s var(--ease);
}
.pb-ic:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.pb-ic:active { transform: scale(.92); }
.pb-ic .i { width: 18px; height: 18px; }
.vol { gap: 4px; }
.vol .range { width: 96px; }
.range { height: 4px; box-shadow: none; background: linear-gradient(90deg, #f4a3c4 var(--v, 0%), rgba(255, 255, 255, .16) var(--v, 0%)); }
.range::-webkit-slider-thumb { width: 14px; height: 14px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); transition: transform .2s var(--ease); }
.range:hover::-webkit-slider-thumb { transform: scale(1.15); }
.range::-moz-range-thumb { width: 14px; height: 14px; background: #fff; }
.xf-pop { position: absolute; bottom: 48px; right: -30px; width: 290px; padding: 16px 18px; border-radius: 18px; background: #2a252e; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 14px 40px -14px rgba(0, 0, 0, .7); animation: pop .3s var(--ease); }
.xf-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-size: 14px; }
.xf-val { font-weight: 700; color: #f7b6cf; font-size: 13px; }
.xf-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink3); margin-top: 6px; }
.xf-test { margin-top: 14px; width: 100%; height: 36px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 650; font-size: 13px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); transition: background .25s; }
.xf-test:hover { background: rgba(255, 255, 255, .14); }
.xf-test .i { width: 16px; height: 16px; }

/* en la vista Spotify: como los controles de Spotify */
.pbar.sp .pb-chip { background: none; border: 0; padding: 0 8px; color: #b3b3b3; font-size: 12px; font-weight: 500; }
.pbar.sp .pb-chip:hover, .pbar.sp .pb-chip.open { color: #fff; background: none; }
.pbar.sp .pb-chip.on { color: #1ed760; background: none; position: relative; }
.pbar.sp .pb-chip.on::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px; border-radius: 50%; background: #1ed760; transform: translateX(-50%); }
.pbar.sp .pb-ic { width: 32px; height: 32px; color: #b3b3b3; }
.pbar.sp .pb-ic:hover { color: #fff; background: none; transform: scale(1.06); }
.pbar.sp .pb-ic .i { width: 16px; height: 16px; }
.pbar.sp .range { background: linear-gradient(90deg, #fff var(--v, 0%), #4d4d4d var(--v, 0%)); border-radius: 2px; }
.pbar.sp .range:hover { background: linear-gradient(90deg, #1ed760 var(--v, 0%), #4d4d4d var(--v, 0%)); }
.pbar.sp .range::-webkit-slider-thumb { width: 12px; height: 12px; opacity: 0; box-shadow: 0 2px 4px rgba(0, 0, 0, .5); }
.pbar.sp .range:hover::-webkit-slider-thumb { opacity: 1; transform: none; }
.pbar.sp .xf-pop { background: #282828; border: 0; border-radius: 8px; box-shadow: 0 16px 24px rgba(0, 0, 0, .5); }
.pbar.sp .xf-val { color: #1ed760; }
.pbar.sp .xf-pop .range { background: linear-gradient(90deg, #1ed760 var(--v, 0%), #4d4d4d var(--v, 0%)); }
.pbar.sp .xf-pop .range::-webkit-slider-thumb { opacity: 1; }
.pbar.sp .xf-test { background: #fff; color: #000; border: 0; font-weight: 700; }
.pbar.sp .xf-test:hover { transform: scale(1.03); background: #fff; }
.pbar.sp .hint { color: #a7a7a7; }

.btn.on-device { color: #2b1320; background: linear-gradient(180deg, #fbd0e0, #f0a2c3); border-color: rgba(255, 255, 255, .35); }
.sync-offline .i { color: #f7b6cf; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .proj-body { grid-template-columns: minmax(0, 1fr); }
  .add-tracks small { display: none; }
  .cover-col { position: static; width: min(340px, 78vw); margin: 0 auto; }
  .cover-edit { opacity: 1; background: none; }
  .pbar { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; height: auto; padding: 10px 14px; gap: 6px 12px; }
  :root { --pbar-h: 112px; }
  .pb-center { display: contents; }
  .pb-ctrl { grid-column: 2; grid-row: 1; }
  .pb-ctrl .icon-btn[title="Aleatorio"], .pb-ctrl .icon-btn[title="Repetir"] { display: none; }
  .pb-seek { grid-column: 1 / -1; grid-row: 2; }
  .pb-right { display: none; }
  .tm { grid-template-columns: 1fr; }
  .tm-left { border-right: 0; border-bottom: 1px solid var(--line); }
  .tm-right { max-height: none; }
  .modal.wide { max-height: calc(100vh - 20px); }
}
@media (max-width: 640px) {
  .topbar { padding: 10px 14px; gap: 8px; }
  .logo-txt { font-size: 30px; }
  .pill > span:not(.i), .upd:not(.has) span.mono, .me-name { display: none; }
  .me { padding: 0 5px; }
  .vswitch a { min-width: 0; padding: 0 12px; }
  .pill, .upd:not(.has) { padding: 0 11px; }
  .upd.has .upd-badge { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .lib-tools { width: 100%; }
  .search { flex: 1 1 100%; min-width: 0; }
  .lib-tools .btn { flex: 1; }
  .proj-top .btn > span:not(.i) { display: none; }
  .proj-top .btn { width: 42px; padding: 0; }
  .two { grid-template-columns: 1fr; }
  .veil { padding: 8px; align-items: end; }
  .modal { padding: 22px 18px; border-radius: 24px; }
  /* Spotify en el celular, como la app móvil */
  .spfy-bar { padding: 10px 14px; }
  .spfy-head { flex-direction: column; align-items: stretch; gap: 18px; padding: 20px 16px 6px; background: linear-gradient(180deg, color-mix(in srgb, var(--sp) 70%, #000 30%), color-mix(in srgb, var(--sp) 30%, #121212 70%)); }
  .spfy-cover { align-self: center; }
  .spfy-cover .cover.lg { width: min(66vw, 290px); }
  .spfy-type, .spfy-stats { display: none; }
  .spfy-title.xl, .spfy-title.l, .spfy-title.m, .spfy-title.s { font-size: 24px; letter-spacing: -.02em; margin: 0 0 10px; line-height: 1.15; }
  .spfy-meta { font-size: 13.5px; }
  .spfy-sub { display: block; color: rgba(255, 255, 255, .65); font-size: 13px; margin-top: 6px; }
  .spfy-body { padding: 0 16px 30px; background: linear-gradient(180deg, color-mix(in srgb, var(--sp) 30%, #121212 70%) 0, #121212 160px); }
  .spfy-ctrl { gap: 16px; padding: 8px 0 14px; }
  .spfy-ctrl .spacer { order: 8; }
  .spfy-ctrl .shuf { order: 9; }
  .spfy-play { order: 10; width: 50px; height: 50px; }
  .spfy-list { display: none; }
  .spfy-cols { display: none; }
  .spfy-row { grid-template-columns: minmax(0, 1fr) 36px; height: 60px; padding: 0; gap: 8px; -webkit-tap-highlight-color: transparent; }
  .spfy-row .n, .spfy-row .d { display: none; }
  .spfy-row:hover { background: none; }
  .spfy-row:active { background: rgba(255, 255, 255, .06); }
  .spfy-row .c { opacity: 1; display: grid; place-items: center; width: 36px; height: 36px; color: #b3b3b3; }
  .spfy-row .c .i { display: inline-flex; width: 20px; height: 20px; }
  .spfy-row .c-txt { display: none; }
  .spfy-row .tt { font-size: 15.5px; }
  .spfy-row .ta { font-size: 13.5px; }
  .spfy-foot { padding: 26px 0 0; }
  /* mini reproductor estilo Spotify móvil */
  .pbar.sp { left: 8px; right: 8px; bottom: 8px; border-radius: 8px; padding: 8px 10px 12px; background: color-mix(in srgb, var(--sp, #444) 55%, #000 45%); }
  .pbar.sp .pb-ctrl .icon-btn[title="Anterior"] { display: none; }
  .pbar.sp .pb-seek { position: absolute; left: 10px; right: 10px; bottom: 4px; }
  .pbar.sp .pb-seek .t { display: none; }
  .pbar.sp .wave { height: 2px; background: rgba(255, 255, 255, .25); border-radius: 2px; }
  .pbar.sp .wave > div { display: none; }
  .pbar.sp .wave::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p) * 100%); background: #fff; border-radius: 2px; }
  .pbar.sp .cover.sm { width: 40px; border-radius: 4px; }
  .pbar.sp .orb { background: none; color: #fff; }
  .pbar.sp .orb .i { width: 22px; height: 22px; }
  .toasts { left: 12px; right: 12px; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  /* con "Reducir movimiento": sin cosas girando o desplazándose sin parar, pero con fundidos y aperturas suaves */
  .cover.npc, .marquee > span, .h-drip, .h-drop, .upd-glow { animation: none !important; }
}

/* ================= v1.5: modo app (sin zoom, sin scroll de página) + rendimiento ================= */
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body { position: fixed; inset: 0; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
#app { position: absolute; inset: 0; display: flex; flex-direction: column; min-height: 0; }
.topbar { position: relative; flex: none; width: 100%; max-width: none; margin: 0; padding: calc(env(safe-area-inset-top) + 12px) clamp(14px, 4vw, 56px) 10px; background: none; z-index: 30; }
.main { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  max-width: none; margin: 0; padding: 0 0 calc(var(--pbar-h) + 30px + env(safe-area-inset-bottom)); }
.page { max-width: 1320px; margin: 0 auto; padding: 0 clamp(14px, 4vw, 56px); }
.mode-spotify .page { max-width: none; padding: 0; }
.mode-spotify .main { padding-bottom: calc(var(--pbar-h) + 10px + env(safe-area-inset-bottom)); }
.cover-col { top: 16px; }
.spfy-bar { padding-top: calc(env(safe-area-inset-top) + 12px); }
.pbar { bottom: calc(12px + env(safe-area-inset-bottom)); }
.pbar.sp { bottom: env(safe-area-inset-bottom); }
.toasts { bottom: calc(var(--pbar-h) + 26px + env(safe-area-inset-bottom)); }
img, .cover, .heart, .logo { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }

/* rendimiento: menos efectos caros */
.glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04)); }
.pbar, .modal, .xf-pop { backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.pbar.sp { backdrop-filter: none; -webkit-backdrop-filter: none; }
.veil { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(8, 6, 10, .62); }
.fx-glow { animation: none; }
.logo-txt { filter: none; }
.logo-txt .l { filter: url(#rough) drop-shadow(0 1px 0 rgba(0, 0, 0, .5)); }
.trk, .card, .spfy-row { animation-duration: .35s; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
html[data-vt="fwd"]::view-transition-old(root), html[data-vt="back"]::view-transition-old(root) { animation-duration: .2s; }
html[data-vt="fwd"]::view-transition-new(root), html[data-vt="back"]::view-transition-new(root) { animation-duration: .28s; }
html[data-vt="to-sp"]::view-transition-old(root), html[data-vt="to-mk"]::view-transition-old(root) { animation-duration: .45s; }
html[data-vt="to-sp"]::view-transition-new(root), html[data-vt="to-mk"]::view-transition-new(root) { animation-duration: .45s; }
html[data-vt="to-sp"]::view-transition-group(cover), html[data-vt="to-mk"]::view-transition-group(cover) { animation-duration: .45s; }

/* hover solo en dispositivos con mouse (en el celular no queda "pegado") */
@media (hover: none) {
  .trk:hover { background: none; }
  .trk:hover .num .rplay { opacity: 0; }
  .trk:hover .num .nn { opacity: 1; }
  .trk:active { background: rgba(255, 255, 255, .06); }
  .card:hover .card-cover { transform: none; }
  .card-play { opacity: 1; transform: none; }
  .grip { opacity: .6; }
}

/* título que se desplaza si no entra (sin JS: container queries) */
.marquee { display: block; overflow: hidden; white-space: nowrap; container-type: inline-size; min-width: 0; }
.marquee > span { display: inline-block; white-space: nowrap; }
.marquee.run > span, .trk.cur .marquee > span { animation: marq 11s ease-in-out infinite; }
@media (hover: hover) { .trk:hover .marquee > span { animation: marq 11s ease-in-out infinite; } }
@keyframes marq {
  0%, 18% { transform: translateX(0); }
  55%, 72% { transform: translateX(min(0px, calc(100cqw - 100%))); }
  100% { transform: translateX(0); }
}
.trk-title .marquee { flex: 0 1 auto; }
.pb-txt { flex: 1; }
.pb-left { cursor: pointer; }

@media (max-width: 640px) {
  input, textarea, select, .field { font-size: 16px !important; } /* iPhone hace zoom si es menor a 16px */
  .topbar { padding-top: calc(env(safe-area-inset-top) + 8px); padding-bottom: 6px; }
}
/* ================= reproductor grande ================= */
.np { position: fixed; inset: 0; z-index: 65; display: flex; align-items: flex-end; justify-content: center; background: rgba(8, 6, 10, .55); animation: fade .25s var(--ease); }
.np.closing { animation: fadeout .28s var(--ease) forwards; }
.np-sheet {
  position: relative; width: min(520px, 100%); max-height: 100%; overflow-y: auto; overscroll-behavior: contain;
  padding: 10px 26px calc(26px + env(safe-area-inset-bottom)); border-radius: 30px 30px 0 0;
  background: linear-gradient(180deg, #2b2530, #18151b); border: 1px solid rgba(255, 255, 255, .08); border-bottom: 0;
  box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .7);
  display: flex; flex-direction: column; gap: 18px; touch-action: pan-y;
  animation: sheetup .42s var(--ease); transition: transform .3s var(--ease);
}
.np.closing .np-sheet { animation: sheetdown .28s var(--ease) forwards; }
@keyframes sheetup { from { transform: translateY(100%); } }
@keyframes sheetdown { to { transform: translateY(100%); } }
@media (min-width: 901px) { .np { align-items: center; } .np-sheet { border-radius: 30px; border-bottom: 1px solid rgba(255, 255, 255, .08); max-height: calc(100% - 40px); } }
.np-grab { width: 40px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .22); align-self: center; flex: none; }
.np-head { display: flex; align-items: center; gap: 8px; margin-top: -4px; }
.np-from { flex: 1; text-align: center; min-width: 0; display: flex; flex-direction: column; }
.np-from small { font-size: 11px; color: var(--ink3); letter-spacing: .06em; }
.np-from b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-art { display: grid; place-items: center; padding: 6px 0; }
.cover.npc { width: min(74vw, 340px); border-radius: 50%; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
  animation: spin 30s linear infinite; animation-play-state: paused; }
.np.playing .cover.npc { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }
.np-info { display: flex; align-items: center; gap: 10px; }
.np-txt { flex: 1; min-width: 0; }
.np-title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.np-artists { color: var(--ink2); font-size: 14.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-artists .E { margin: 0 6px 0 0; vertical-align: 1px; }
.np-wave { height: 46px; }
.np-times { display: flex; justify-content: space-between; font: 500 12px var(--font); color: var(--ink3); margin-top: 6px; font-variant-numeric: tabular-nums; }
.np-ctrl { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.np-ctrl .icon-btn { width: 44px; height: 44px; }
.np-ctrl .icon-btn .i { width: 22px; height: 22px; }
.np-ctrl .icon-btn.big .i { width: 28px; height: 28px; }
.np-ctrl .icon-btn.on::after { transform: translateY(17px); }
.np-play { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; color: #2b1320;
  background: linear-gradient(180deg, #fbd0e0, #f0a2c3); box-shadow: 0 8px 22px -8px var(--blood-glow), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: transform .25s var(--ease); }
.np-play:active { transform: scale(.93); }
.np-play .i { width: 28px; height: 28px; }
.np-play.is-loading { animation: pulse 1s ease-in-out infinite; }
.np-xf { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); }
.np-xf-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 650; }
.np-xf-top span { display: inline-flex; align-items: center; gap: 8px; color: var(--ink2); }
.np-xf-top .i { width: 16px; height: 16px; }
.np-xf-top b { color: #f7b6cf; font-size: 13px; }
.np-test { height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 650; font-size: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); }
.np-test:active { background: rgba(255, 255, 255, .14); }
.np-test .i { width: 16px; height: 16px; }

/* estilo Spotify: pantalla completa con el color de la portada */
.np.sp { background: none; align-items: stretch; }
.np.sp .np-sheet { width: 100%; max-width: none; max-height: none; height: 100%; border-radius: 0; border: 0;
  padding: calc(env(safe-area-inset-top) + 10px) 24px calc(24px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, color-mix(in srgb, var(--sp) 80%, #000 20%) 0%, color-mix(in srgb, var(--sp) 35%, #121212 65%) 55%, #121212 100%);
  font-family: var(--font); }
@media (min-width: 901px) { .np.sp .np-sheet { padding-left: max(24px, calc(50% - 260px)); padding-right: max(24px, calc(50% - 260px)); } }
.np.sp .np-grab { display: none; }
.np.sp .np-from small { color: rgba(255, 255, 255, .75); font-size: 10.5px; letter-spacing: .1em; }
.np.sp .np-from b { font-size: 13px; }
.np.sp .icon-btn { color: #fff; }
.np.sp .cover.npc { width: min(86vw, 460px); border-radius: 8px; animation: none; box-shadow: 0 8px 40px rgba(0, 0, 0, .45); }
.np.sp .np-art { flex: 1; align-items: center; }
.np.sp .np-artists { color: rgba(255, 255, 255, .7); }
.np-bar { position: relative; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .3); cursor: pointer; touch-action: none; }
.np-bar::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p) * 100%); background: #fff; border-radius: 4px; }
.np-bar i { position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 12px; height: 12px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); }
.np-bar::after { content: ''; position: absolute; inset: -14px 0; }
.np.sp .np-times { color: rgba(255, 255, 255, .7); font-size: 11px; }
.np.sp .np-play { background: #fff; color: #000; box-shadow: none; width: 66px; height: 66px; }
.np.sp .icon-btn.on { color: #1ed760; }
.np.sp .icon-btn.on::after { background: #1ed760; box-shadow: none; }
.np.sp .np-xf { background: rgba(0, 0, 0, .28); border: 0; border-radius: 10px; }
.np.sp .np-xf-top b { color: #1ed760; }
.np.sp .np-xf .range { background: linear-gradient(90deg, #1ed760 var(--v, 0%), rgba(255, 255, 255, .25) var(--v, 0%)); }
.np.sp .np-test { background: #fff; color: #000; border: 0; font-weight: 700; }

/* en Spotify, la barra chica también con el color de la portada */
@media (max-width: 900px) {
  .pbar { cursor: pointer; }
  .pbar.sp { background: color-mix(in srgb, var(--sp, #444) 55%, #000 45%); }
}
/* nuevo proyecto */
.newp { display: flex; gap: 20px; align-items: flex-start; }
.newp-cover { position: relative; width: 150px; flex: none; cursor: pointer; border-radius: 12px; }
.newp-cover .cover { border-radius: 12px; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .7); }
.newp-pick { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); height: 30px; padding: 0 12px; font-size: 12px; color: #fff; background: rgba(0, 0, 0, .55); }
.newp-f { flex: 1; min-width: 0; }
@media (max-width: 640px) { .newp { flex-direction: column; align-items: center; } .newp-cover { width: 60%; } .newp-f { width: 100%; } }
/* arreglos v1.5 */
.trk-title .marquee, .pb-title .marquee { flex: 1 1 0; }
.proj-top .vswitch { flex: none; }
@media (max-width: 640px) {
  .logo-txt { font-size: 26px; }
  .top-actions { gap: 6px; }
  .top-actions .icon-btn, .top-actions .pill, .top-actions .upd:not(.has) { width: 36px; height: 36px; padding: 0; justify-content: center; }
  .me { height: 36px; }
  .proj-top { gap: 8px; flex-wrap: nowrap; margin: 4px 0 18px; }
  .proj-top .icon-btn.glass, .proj-top .btn { width: 38px; height: 38px; flex: none; }
  .proj-top .btn-export { display: none; }
  .vswitch a { height: 30px; padding: 0 12px; font-size: 13px; }
  .vs-knob { height: 30px; }
}
@media (max-width: 640px) { .cover-col { width: min(250px, 64vw); } }

.cover.npc { width: min(74vw, 340px, 36vh); }
.np.sp .cover.npc { width: min(86vw, 460px, 42vh); }
.np-sheet { gap: clamp(10px, 2.2vh, 18px); }

/* ================= v1.5.2 ================= */
.trk, .spfy-row { cursor: pointer; }
.trk-main { cursor: pointer; }
.trk, .card, .spfy-row { animation-duration: .28s; animation-delay: calc(min(var(--i, 0), 8) * 16ms); }
/* transición maketaz <-> Spotify: más corta y liviana */
html[data-vt="to-sp"]::view-transition-old(root), html[data-vt="to-mk"]::view-transition-old(root) { animation: none; }
html[data-vt="to-sp"]::view-transition-new(root), html[data-vt="to-mk"]::view-transition-new(root) { animation: vt-circle .34s cubic-bezier(.3, 0, .2, 1) both; }
html[data-vt="to-sp"]::view-transition-group(cover), html[data-vt="to-mk"]::view-transition-group(cover) { animation-duration: .34s; animation-timing-function: cubic-bezier(.3, 0, .2, 1); }
.mode-spotify .spfy-row, .page:has(.spfy) .spfy-row { animation: none; }

/* ventanas: siempre dentro de la pantalla visible (iPhone: barra de estado y barra de Safari) */
.veil { padding: calc(env(safe-area-inset-top) + 10px) 12px calc(env(safe-area-inset-bottom) + 10px); }
.modal, .credits { max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 20px); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.modal-x { position: sticky; top: 0; float: right; margin: -12px -12px 0 0; }
.modal.wide .modal-x { position: absolute; float: none; margin: 0; }
.tm-right { max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 20px); }
@media (max-width: 640px) {
  .veil { align-items: end; padding: calc(env(safe-area-inset-top) + 8px) 0 0; }
  .modal, .credits { width: 100%; border-radius: 24px 24px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom));
    max-height: calc(100dvh - env(safe-area-inset-top) - 8px); }
  .modal.wide { max-height: calc(100dvh - env(safe-area-inset-top) - 8px); }
  .tm-right { max-height: none; }
}
.cl-more { display: block; margin: 0 auto 14px; }
.cl-done { position: sticky; bottom: -28px; margin: 0 -28px -28px; padding: 14px 28px calc(20px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(26, 23, 29, 0), #1a171d 35%); }
@media (max-width: 640px) { .cl-done { bottom: calc(-22px - env(safe-area-inset-bottom)); margin: 0 -18px calc(-22px - env(safe-area-inset-bottom)); padding: 14px 18px calc(18px + env(safe-area-inset-bottom)); } }

/* ================= v1.6: sensación de app ================= */
/* respuesta inmediata al tocar */
.btn, .icon-btn, .pb-ic, .pb-chip, .orb, .np-play, .seg button, .vswitch a, .row, .card, .spfy-play, .spfy-ic, .chip button, .me, .pill, .upd {
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), background .2s, color .2s, filter .2s, opacity .2s;
}
.btn:active, .icon-btn:active, .pb-ic:active, .pb-chip:active, .seg button:active, .vswitch a:active, .spfy-ic:active, .me:active, .pill:active, .upd:active { transform: scale(.94); }
.orb:active, .spfy-play:active { transform: scale(.92); }
.card:active .card-cover { transform: scale(.97); }
.trk { transition: background .2s, transform .18s cubic-bezier(.2, .8, .2, 1); }
.trk:active:not(.dragging) { transform: scale(.985); }
.row:active { background: rgba(255, 255, 255, .06); }
/* canción cargando */
.trk.loading .num .nn, .spfy-row.loading .nn { opacity: 0; }
.trk.loading .num::after, .spfy-row.loading .n::after {
  content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .15); border-top-color: #f4a3c4; animation: rot .7s linear infinite;
}
.spfy-row.loading .n::after { border-top-color: #1ed760; }
/* aviso para instalar en el iPhone */
.install-tip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; margin: 4px 0 18px; font-size: 13.5px; color: var(--ink2); animation: rise .35s var(--ease); }
.install-tip b { color: var(--ink); }
.install-tip .i { width: 22px; height: 22px; color: #f7b6cf; flex: none; }
.install-tip .icon-btn { width: 32px; height: 32px; margin-left: auto; flex: none; }