/* Sonora — estilos. Fuentes del sistema (cero descargas), modo oscuro, móvil primero. */
:root {
  --bg: #0c0b12;
  --bg2: #15131e;
  --card: #1c1a27;
  --card2: #252233;
  --line: rgba(255,255,255,.08);
  --text: #f4f2fa;
  --muted: #a39fb5;
  --dim: #6f6b82;
  --accent: #ff4f7b;
  --accent2: #8b5cff;
  --grad: linear-gradient(135deg, var(--accent), var(--accent2));
  --ok: #3ddc97;
  --radius: 14px;
  --tabs-h: 58px;
  --mini-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body {
  font: 15px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: var(--text); }
svg { width: 22px; height: 22px; flex: none; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }

/* ---------- Layout ---------- */
.app { height: 100%; }
.view {
  position: fixed; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; outline: none;
  padding: calc(var(--safe-t) + 14px) 16px calc(var(--tabs-h) + var(--mini-h) + var(--safe-b) + 24px);
}
.side { display: none; }
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex;
  height: calc(var(--tabs-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(12,11,18,.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}
.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--dim); font-size: 11px; font-weight: 600; }
.tabs a.on { color: var(--text); }
.tabs a.on svg { color: var(--accent); }

@media (min-width: 900px) {
  .view { left: 240px; padding: 28px 36px calc(96px + 24px); }
  .tabs { display: none; }
  .side {
    display: flex; flex-direction: column; gap: 2px; position: fixed; left: 0; top: 0; bottom: 88px; width: 240px;
    padding: 22px 12px; background: #09080e; border-right: 1px solid var(--line); overflow-y: auto;
  }
  .side a { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; }
  .side a:hover { color: var(--text); background: rgba(255,255,255,.04); }
  .side a.on { color: var(--text); background: rgba(255,255,255,.07); }
  .side a.on svg { color: var(--accent); }
  .brand { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; padding: 4px 12px 18px; letter-spacing: -.03em; }
  .brand-logo { color: var(--accent); width: 26px; height: 26px; }
  .side-lists { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
  .side-lists a { font-weight: 500; font-size: 14px; padding: 7px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
}

/* ---------- Encabezados y secciones ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 18px; }
.page-head h1 { font-size: 28px; font-weight: 800; }
.hello { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.section { margin: 0 0 28px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { font-size: 20px; font-weight: 750; }
.section-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.section-head .link { color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); margin: -4px 0 10px -6px; padding: 6px; font-weight: 600; }

/* Scroll horizontal */
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: 148px; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; }
@media (min-width: 900px) { .hscroll { grid-auto-columns: 172px; margin: 0; padding: 0 0 6px; } }

.card { display: block; text-align: left; min-width: 0; }
.card .cv { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--card); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.card .cv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card b { display: block; margin-top: 8px; font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.round .cv { border-radius: 50%; }
.card.round { text-align: center; }
.card .fab { position: absolute; right: 8px; bottom: 8px; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.4); opacity: 0; transform: translateY(6px); transition: .2s; }
.card:hover .fab, .card .fab.show { opacity: 1; transform: none; }
.card .fab svg { width: 18px; height: 18px; margin-left: 2px; }
.card.playing b { color: var(--accent); }

/* Tarjeta destacada (mix del día) */
.hero {
  position: relative; display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(135deg, rgba(255,79,123,.28), rgba(139,92,255,.28)), var(--card); margin-bottom: 14px;
}
.hero .mosaic { width: 112px; height: 112px; flex: none; }
.hero h3 { font-size: 22px; font-weight: 800; }
.hero p { margin: 4px 0 12px; color: var(--muted); font-size: 13px; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; border-radius: 10px; overflow: hidden; background: var(--card2); aspect-ratio: 1; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mosaic.one { grid-template-columns: 1fr; }
.mosaic .ph { display: grid; place-items: center; color: var(--dim); width: 100%; height: 100%; }
.mosaic .ph svg { width: 40%; height: 40%; }
.likes-cv { display: grid; place-items: center; background: var(--grad); width: 100%; height: 100%; }
.likes-cv svg { width: 42%; height: 42%; color: #fff; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 700; background: var(--card2); }
.btn svg { width: 19px; height: 19px; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(255,79,123,.25); }
.btn.small { height: 34px; padding: 0 14px; font-size: 13px; }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.link { background: none; color: var(--muted); font-weight: 600; height: auto; padding: 8px; }
.btn:disabled { opacity: .5; }
.btn.on { background: rgba(255,79,123,.15); color: var(--accent); }
.ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--muted); position: relative; }
.ic:hover { color: var(--text); }
.ic.on { color: var(--accent); }
.ic.on::after { content: ""; position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.ic.liked { color: var(--accent); }
.ic small { position: absolute; bottom: -4px; font-size: 10px; color: var(--accent); font-weight: 700; }
.play-btn { background: var(--text); color: var(--bg); }
.play-btn:hover { color: var(--bg); transform: scale(1.04); }
.play-btn svg { width: 20px; height: 20px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 34px; padding: 0 15px; border-radius: 999px; background: var(--card); font-weight: 600; font-size: 13.5px; color: var(--muted); }
.chip.on { background: var(--text); color: var(--bg); }
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0 18px; }

/* ---------- Lista de canciones ---------- */
.tracks { display: flex; flex-direction: column; }
.tr { display: grid; grid-template-columns: 48px 1fr auto auto; align-items: center; gap: 12px; padding: 6px 4px; border-radius: 10px; min-height: 60px; }
.tr:hover { background: rgba(255,255,255,.04); }
.tr .art { width: 48px; height: 48px; border-radius: 6px; overflow: hidden; background: var(--card); position: relative; }
.tr .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tr .tx { min-width: 0; text-align: left; }
.tr .tx b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr .tx small { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr .dur { color: var(--dim); font-size: 13px; font-variant-numeric: tabular-nums; display: none; }
.tr .ic { width: 36px; height: 36px; }
.tr.playing .tx b { color: var(--accent); }
.tr.unavailable { opacity: .38; }
.tr .num { width: 48px; text-align: center; color: var(--dim); font-variant-numeric: tabular-nums; }
.tag { display: inline-flex; align-items: center; justify-content: center; height: 16px; padding: 0 5px; border-radius: 4px; font-size: 10px; font-weight: 800; letter-spacing: .02em; background: var(--card2); color: var(--muted); flex: none; }
.tag.full { background: rgba(61,220,151,.16); color: var(--ok); }
.tag.dl { background: rgba(139,92,255,.2); color: #b9a1ff; }
.tag svg { width: 11px; height: 11px; }
.eq { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; gap: 2px; padding-bottom: 14px; background: rgba(0,0,0,.45); }
.eq i { width: 3px; background: var(--accent); border-radius: 2px; animation: eq 1s infinite ease-in-out alternate; }
.eq i:nth-child(2) { animation-delay: -.4s; } .eq i:nth-child(3) { animation-delay: -.7s; }
.paused .eq i { animation-play-state: paused; }
@keyframes eq { from { height: 4px; } to { height: 18px; } }
@media (min-width: 900px) { .tr { grid-template-columns: 48px 1fr 60px auto auto; } .tr .dur { display: block; } }

/* Grillas */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px 14px; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); } }
.genres { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.genre { position: relative; height: 86px; border-radius: 12px; overflow: hidden; padding: 12px; font-weight: 800; font-size: 16px; text-align: left; display: flex; align-items: flex-start; }
.genre img { position: absolute; right: -14px; bottom: -10px; width: 74px; height: 74px; border-radius: 8px; transform: rotate(22deg); box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.list-row { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-radius: 10px; width: 100%; text-align: left; }
.list-row:hover { background: rgba(255,255,255,.04); }
.list-row .mosaic, .list-row .thumb { width: 56px; height: 56px; flex: none; border-radius: 8px; }
.list-row .thumb { overflow: hidden; background: var(--card); }
.list-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-row.round .thumb { border-radius: 50%; }
.list-row .tx { min-width: 0; flex: 1; }
.list-row b { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row small { color: var(--muted); font-size: 13px; }

/* ---------- Buscador ---------- */
.searchbox { position: sticky; top: calc(-14px - var(--safe-t)); z-index: 5; margin: 0 -16px 16px; padding: 8px 16px; background: var(--bg); }
.searchbox label { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 12px; background: var(--text); color: #222; }
.searchbox input { flex: 1; border: 0; outline: 0; background: none; color: #111; font-size: 16px; min-width: 0; }
.searchbox .ic { color: #555; width: 32px; height: 32px; }
@media (min-width: 900px) { .searchbox { margin: 0 0 18px; padding: 0; top: 0; max-width: 520px; } }

/* ---------- Cabecera de detalle (playlist/álbum/artista) ---------- */
.detail-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; margin: 4px 0 6px; }
.detail-head .cover { width: min(62vw, 240px); aspect-ratio: 1; border-radius: 10px; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.5); background: var(--card); }
.detail-head .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-head .cover.round { border-radius: 50%; }
.detail-head .mosaic { width: min(62vw, 240px); box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.detail-head h1 { font-size: 26px; font-weight: 800; }
.detail-head .sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.detail-head .sub a { color: var(--text); font-weight: 600; }
@media (min-width: 900px) {
  .detail-head { flex-direction: row; align-items: flex-end; text-align: left; gap: 24px; }
  .detail-head .cover, .detail-head .mosaic { width: 220px; }
  .detail-head h1 { font-size: 44px; }
}
.actions .play-btn { width: 54px; height: 54px; background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(255,79,123,.3); }
.actions .play-btn svg { width: 24px; height: 24px; margin-left: 2px; }
.actions .spacer { flex: 1; }

/* ---------- Mini reproductor ---------- */
.mini {
  position: fixed; z-index: 25; left: 8px; right: 8px; bottom: calc(var(--tabs-h) + var(--safe-b) + 6px);
  height: var(--mini-h); display: flex; align-items: center; gap: 6px; padding: 0 6px 0 8px; border-radius: 12px;
  background: var(--mini-bg, #2a2536); box-shadow: 0 10px 30px rgba(0,0,0,.5); overflow: hidden; transition: background .6s;
}
.mini-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left; height: 100%; }
.mini-art { width: 44px; height: 44px; border-radius: 6px; overflow: hidden; background: var(--card); flex: none; }
.mini-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-text { min-width: 0; display: flex; flex-direction: column; }
.mini-text b, .mini-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-text b { font-size: 14px; font-weight: 650; }
.mini-text small { font-size: 12.5px; color: rgba(255,255,255,.7); }
.mini-controls { display: flex; align-items: center; gap: 2px; }
.mini .play-btn { width: 40px; height: 40px; background: none; color: var(--text); }
.mini .play-btn svg { width: 26px; height: 26px; }
.mini .ic { color: var(--text); }
.mini .like-cur.liked { color: var(--accent); }
.mini-right { display: flex; align-items: center; }
.mini-progress { position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; background: rgba(255,255,255,.18); border-radius: 2px; overflow: hidden; }
.mini-progress i { display: block; height: 100%; width: 0; background: #fff; }
.desk { display: none !important; }
@media (min-width: 900px) {
  .mini { left: 0; right: 0; bottom: 0; height: 88px; border-radius: 0; padding: 0 18px; background: #110f18 !important; border-top: 1px solid var(--line); gap: 16px; }
  .mini-info { flex: 0 0 28%; }
  .mini-art { width: 56px; height: 56px; }
  .mini-center { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: 640px; margin: 0 auto; }
  .mini .play-btn { background: var(--text); color: var(--bg); width: 36px; height: 36px; }
  .mini .play-btn svg { width: 18px; height: 18px; }
  .mini .ic:not(.play-btn) { color: var(--muted); }
  .mini .ic.on, .mini .like-cur.liked { color: var(--accent); }
  .mini-right { flex: 0 0 28%; justify-content: flex-end; }
  .mini-progress { display: none; }
  .desk { display: inline-grid !important; }
  .mini-seek.desk { display: flex !important; align-items: center; gap: 10px; width: 100%; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
}

/* Barra de búsqueda de posición */
input[type=range].seek { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; background: transparent; margin: 0; cursor: pointer; }
input[type=range].seek::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--text) var(--p, 0%), rgba(255,255,255,.2) var(--p, 0%)); }
input[type=range].seek::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; margin-top: -4.5px; border-radius: 50%; background: var(--text); }
input[type=range].seek::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255,255,255,.2); }
input[type=range].seek::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--text); }
input[type=range].seek::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: var(--text); }

/* ---------- Reproductor completo ---------- */
.np {
  position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; background: var(--bg);
  transform: translateY(100%); transition: transform .38s cubic-bezier(.2,.8,.2,1); visibility: hidden;
  padding: calc(var(--safe-t) + 6px) 22px calc(var(--safe-b) + 14px);
}
.np.open { transform: none; visibility: visible; }
.np-bg { position: absolute; inset: 0; background: linear-gradient(180deg, var(--np-color, #3a2f55) 0%, var(--bg) 78%); opacity: .9; transition: background .8s; z-index: -1; }
.np-head { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.np-head .ic { color: var(--text); }
.np-ctx { text-align: center; min-width: 0; }
.np-ctx small { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.np-ctx b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
.np-body { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; max-width: 520px; width: 100%; margin: 0 auto; min-height: 0; }
.np-art { position: relative; width: min(100%, 46vh); aspect-ratio: 1; margin: 0 auto; border-radius: 12px; overflow: hidden; background: var(--card); box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.np-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.np.paused .np-art img { transform: scale(.94); }
.np-tap { align-self: center; margin-top: 10px; font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 999px; background: var(--accent); color: #fff; text-align: center; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .65; } }
.np-meta { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.np-titles { flex: 1; min-width: 0; }
.np-titles h2 { font-size: 22px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-artist { color: rgba(255,255,255,.75); font-size: 16px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; text-align: left; }
.np .ic { color: var(--text); }
.np .ic.on, .np .like-cur.liked { color: var(--accent); }
.np-times { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; margin-top: 2px; }
.badge { font-size: 10.5px; font-weight: 700; letter-spacing: .03em; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); }
.np-controls { display: flex; align-items: center; justify-content: space-between; }
.ic.big { width: 54px; height: 54px; } .ic.big svg { width: 32px; height: 32px; }
.play-btn.huge { width: 70px; height: 70px; background: var(--text); color: var(--bg); }
.play-btn.huge svg { width: 30px; height: 30px; }
.np-extra { display: flex; justify-content: space-between; padding: 0 4px; }
@media (min-width: 900px) { .np { padding-top: 20px; } .np-art { width: min(100%, 52vh); } }

/* Reproductor de YouTube: tamaño real 200×200 (YouTube elige calidad baja = pocos datos).
   Se coloca sobre la portada (reproductor abierto) o encogido sobre la miniatura (cerrado). */
.ytwrap { position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 30; transform-origin: 0 0; border-radius: 10px; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .25s; background: #000; }
.ytwrap.active { opacity: 1; }
.ytwrap.interactive { pointer-events: auto; z-index: 45; }
.ytwrap iframe { width: 200px; height: 200px; border: 0; display: block; }

/* ---------- Hojas (menús) ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; animation: fade .18s; }
.sheet-card {
  width: 100%; max-width: 520px; max-height: 86vh; overflow-y: auto; background: var(--bg2); border-radius: 18px 18px 0 0;
  padding: 10px 8px calc(var(--safe-b) + 12px); animation: up .25s cubic-bezier(.2,.8,.2,1);
}
@media (min-width: 900px) { .sheet { align-items: center; } .sheet-card { border-radius: 18px; padding-bottom: 12px; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 8px 12px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.sheet-head img { width: 52px; height: 52px; border-radius: 6px; object-fit: cover; background: var(--card); }
.sheet-head .tx { min-width: 0; }
.sheet-head b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-head small { color: var(--muted); }
.sheet-title { font-size: 17px; font-weight: 750; padding: 10px 14px 12px; }
.menu-item { display: flex; align-items: center; gap: 16px; width: 100%; padding: 13px 14px; border-radius: 10px; text-align: left; font-weight: 550; }
.menu-item:hover { background: rgba(255,255,255,.05); }
.menu-item svg { color: var(--muted); }
.menu-item.danger { color: #ff6b81; } .menu-item.danger svg { color: #ff6b81; }
.menu-item.on svg { color: var(--accent); }
.sheet form { padding: 4px 12px; display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.field input, .field textarea, .auth-card input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); outline: none; font-size: 16px;
}
.field textarea { height: 150px; padding: 12px 14px; resize: vertical; font-size: 14px; }
.field input:focus, .field textarea:focus, .auth-card input:focus { border-color: var(--accent2); }
.queue-list .tr { cursor: grab; }
.queue-now { padding: 4px 8px 10px; }

/* ---------- Login ---------- */
.auth { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; overflow-y: auto;
  background: radial-gradient(circle at 20% 10%, rgba(255,79,123,.25), transparent 50%), radial-gradient(circle at 90% 90%, rgba(139,92,255,.3), transparent 50%), var(--bg); }
.auth-card { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 14px; text-align: center; }
.auth-card label { display: flex; flex-direction: column; gap: 6px; text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); }
.auth-logo { width: 72px; height: 72px; border-radius: 20px; margin: 0 auto; display: grid; place-items: center; background: var(--grad); box-shadow: 0 14px 30px rgba(255,79,123,.35); }
.auth-logo svg { width: 38px; height: 38px; color: #fff; }
.auth-card h1 { font-size: 32px; font-weight: 850; }
.auth-card p { margin: -6px 0 6px; }
.auth-card .btn.primary { height: 50px; margin-top: 4px; }
.auth:not(.register) .reg-only { display: none; }
.auth.first .invite { display: none; }
.err { color: #ff6b81; font-size: 13.5px; margin: 0; min-height: 1em; }

/* ---------- Varios ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabs-h) + var(--mini-h) + var(--safe-b) + 18px); transform: translate(-50%, 20px); z-index: 80;
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 650; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { .toast { bottom: 110px; } }
.offline-bar { position: fixed; z-index: 24; top: 0; left: 0; right: 0; padding: calc(var(--safe-t) + 4px) 12px 5px; display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; background: var(--accent2); color: #fff; }
.offline-bar svg { width: 15px; height: 15px; }
.has-offline-bar .view { padding-top: calc(var(--safe-t) + 44px); }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty svg { width: 46px; height: 46px; color: var(--dim); margin-bottom: 8px; }
.empty h3 { color: var(--text); font-size: 18px; margin-bottom: 6px; }
.skeleton { background: linear-gradient(90deg, var(--card) 0%, var(--card2) 50%, var(--card) 100%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }
.sk-row { height: 56px; margin-bottom: 8px; }
.panel { background: var(--card); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.panel h3 { font-size: 16px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.panel p { margin: 4px 0; color: var(--muted); font-size: 13.5px; }
.panel .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.panel .row:first-of-type { border-top: 0; }
.panel .row > div { min-width: 0; }
.panel .row small { display: block; color: var(--muted); font-size: 12.5px; }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--card2); transition: .2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(20px); }
.seg { display: flex; background: var(--card2); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button { flex: 1; padding: 8px 10px; border-radius: 8px; font-size: 13px; font-weight: 650; color: var(--muted); }
.seg button.on { background: var(--text); color: var(--bg); }
.check-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--line); cursor: pointer; }
.check-row input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.check-row .tx { flex: 1; min-width: 0; }
.check-row b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.check-row small { color: var(--muted); font-size: 12.5px; }
.progress { height: 8px; border-radius: 8px; background: var(--card2); overflow: hidden; margin: 10px 0 6px; }
.progress i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .3s; }
.stat { display: flex; gap: 10px; margin: 10px 0; }
.stat div { flex: 1; background: var(--card2); border-radius: 10px; padding: 10px; }
.stat b { display: block; font-size: 20px; }
.stat small { color: var(--muted); font-size: 12px; }
.trip-hero { border-radius: 18px; padding: 20px; margin-bottom: 16px; background: linear-gradient(135deg, rgba(139,92,255,.35), rgba(61,220,151,.18)), var(--card); }
.trip-hero h1 { font-size: 26px; font-weight: 850; display: flex; align-items: center; gap: 10px; }
.trip-hero p { color: var(--muted); margin: 6px 0 14px; font-size: 14px; }
.pick-artists { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 16px 10px; }
.pick { text-align: center; position: relative; }
.pick .cv { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--card); border: 3px solid transparent; transition: .15s; }
.pick .cv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick.on .cv { border-color: var(--accent); transform: scale(.94); }
.pick b { font-size: 12.5px; display: block; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick .ok { position: absolute; top: 2px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); display: none; place-items: center; }
.pick.on .ok { display: grid; } .pick .ok svg { width: 16px; height: 16px; color: #fff; }
.sticky-cta { position: sticky; bottom: calc(var(--tabs-h) + var(--safe-b) + 10px); display: flex; justify-content: center; padding-top: 14px; }
.note { font-size: 12.5px; color: var(--dim); line-height: 1.5; }
kbd { font: inherit; font-weight: 700; color: var(--text); }
