:root {
  --bg: #0b0b0b;
  --bg-2: #121212;
  --card: #181818;
  --card-hi: #242424;
  --sheet: #1c1c1c;
  --text: #f5f5f5;
  --muted: #a7a7a7;
  --faint: #6a6a6a;
  --lime: #b4e10a;
  --lime-dim: #8fb308;
  --on-lime: #000;
  --border: #2a2a2a;
  --danger: #ff6b6b;
  --nav-h: 58px;
  --mini-h: 60px;
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font: 15px/1.4 -apple-system, BlinkMacSystemFont, "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; }
input { font: inherit; }
img { display: block; }
a { color: inherit; text-decoration: none; }

.i { width: 24px; height: 24px; flex: none; }
.i.sm { width: 18px; height: 18px; }
.i.lg { width: 28px; height: 28px; }
.i.fill { fill: currentColor; }

/* Faixa sob o relógio/bateria do iPhone */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: var(--safe-top); background: var(--bg); z-index: 30; }

/* ---------- estrutura ---------- */
#view { padding: calc(var(--safe-top) + 8px) 0 calc(var(--nav-h) + var(--mini-h) + var(--safe-bottom) + 24px); min-height: 100%; }
.page { padding: 0 16px; }
.page-title { font-size: 26px; font-weight: 800; margin: 12px 0 16px; letter-spacing: -.3px; }
.topbar { display: flex; align-items: center; gap: 12px; margin: 4px 0 8px; min-height: 40px; }
.topbar .grow { flex: 1; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--text); }
.icon-btn:active { background: rgba(255,255,255,.08); }
.section { margin: 26px 0 0; }
.section h2 { font-size: 21px; font-weight: 800; margin: 0 0 12px; letter-spacing: -.2px; }
.muted { color: var(--muted); }
.empty { color: var(--muted); text-align: center; padding: 40px 16px; }
.link-btn { color: var(--muted); font-weight: 700; font-size: 14px; padding: 10px 0; }

/* ---------- navegação inferior ---------- */
#tabs { position: fixed; inset: auto 0 0; z-index: 20; display: flex; justify-content: space-around;
  height: calc(var(--nav-h) + var(--safe-bottom)); padding-bottom: var(--safe-bottom);
  background: linear-gradient(to top, rgba(0,0,0,.98) 60%, rgba(0,0,0,.85)); }
#tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; color: var(--muted); }
#tabs a.on { color: var(--text); }

/* ---------- mini player ---------- */
#mini { position: fixed; left: 8px; right: 8px; z-index: 21; bottom: calc(var(--nav-h) + var(--safe-bottom) + 4px);
  height: var(--mini-h); border-radius: 8px; background: #2b2f20; display: none; align-items: center;
  gap: 10px; padding: 0 6px 0 8px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
#mini.show { display: flex; }
#mini img { width: 44px; height: 44px; border-radius: 4px; background: var(--card-hi); object-fit: cover; }
#mini .meta { flex: 1; min-width: 0; }
#mini .bar { position: absolute; left: 8px; right: 8px; bottom: 0; height: 2px; background: rgba(255,255,255,.15); border-radius: 2px; }
#mini .bar div { height: 100%; width: 0; background: var(--text); border-radius: 2px; }
#mini .st { font-size: 12px; color: var(--lime); }

.t1, .t2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t1 { font-weight: 600; }
.t2 { color: var(--muted); font-size: 13px; }

/* ---------- linhas de música ---------- */
.rows { margin: 0 -8px; }
.row { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 6px; min-height: 60px; }
.row:active { background: rgba(255,255,255,.06); }
.row img, .row .ph { width: 48px; height: 48px; border-radius: 4px; flex: none; background: var(--card-hi); object-fit: cover; }
.row .num { width: 22px; text-align: center; color: var(--muted); flex: none; font-variant-numeric: tabular-nums; }
.row .meta { flex: 1; min-width: 0; }
.row.playing .t1 { color: var(--lime); }
.row .t2 { display: flex; align-items: center; gap: 4px; }
.row .t2 .i { width: 14px; height: 14px; color: var(--lime); }
.row .more { width: 36px; height: 36px; display: grid; place-items: center; color: var(--muted); flex: none; }
.row.round img { border-radius: 50%; }

/* ---------- cartões horizontais ---------- */
.shelf { display: flex; gap: 14px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x mandatory;
  scroll-padding: 0 16px; scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.card { width: 140px; flex: none; scroll-snap-align: start; }
.card img { width: 140px; height: 140px; border-radius: 6px; object-fit: cover; background: var(--card-hi); }
.card.round img { border-radius: 50%; }
.card .t1 { margin-top: 8px; font-size: 14px; }
.card.round .t1 { text-align: center; }
.card .t2 { font-size: 12px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ---------- atalhos do início ---------- */
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick a { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border-radius: 6px; overflow: hidden; height: 56px; }
.quick img, .quick .ph { width: 56px; height: 56px; object-fit: cover; flex: none; }
.quick .label { font-size: 13px; font-weight: 700; padding-right: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ph { display: grid; place-items: center; color: var(--text); }
.ph.liked { background: linear-gradient(135deg, #3b2cff, #c4efd9); }
.ph.down { background: linear-gradient(135deg, #0d5f3c, var(--lime)); }
.ph.list { background: var(--card-hi); color: var(--muted); }

/* ---------- cabeçalhos de artista/álbum/playlist ---------- */
.hero { position: relative; margin: calc(-8px - var(--safe-top)) 0 0; }
.hero.artist { height: 340px; display: flex; align-items: flex-end; }
.hero.artist .bg { position: absolute; inset: 0; background-size: cover; background-position: center 25%; }
.hero.artist .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.15), rgba(11,11,11,.4) 50%, var(--bg)); }
.hero.artist h1 { position: relative; margin: 0 16px 8px; font-size: 40px; line-height: 1.05; font-weight: 900; letter-spacing: -1px; }
.hero .back { position: absolute; top: calc(var(--safe-top) + 8px); left: 8px; z-index: 2; background: rgba(0,0,0,.45); }
.cover-hero { padding: calc(var(--safe-top) + 56px) 16px 0; background: linear-gradient(to bottom, var(--tint, #333) 0%, var(--bg) 100%); }
.cover-hero img, .cover-hero .ph { width: 220px; height: 220px; margin: 0 auto; border-radius: 4px; object-fit: cover; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.cover-hero h1 { font-size: 24px; font-weight: 800; margin: 20px 0 4px; letter-spacing: -.3px; }
.cover-hero .sub { color: var(--muted); font-size: 13px; }
.cover-hero .sub a { color: var(--text); font-weight: 700; }

.actions { display: flex; align-items: center; gap: 18px; margin: 12px 0 8px; color: var(--muted); }
.actions .grow { flex: 1; }
.play-big { width: 52px; height: 52px; border-radius: 50%; background: var(--lime); color: var(--on-lime); display: grid; place-items: center; }
.play-big:active { transform: scale(.96); }
.actions .on { color: var(--lime); }

/* ---------- busca ---------- */
.searchbox { position: sticky; top: var(--safe-top); z-index: 5; background: var(--bg); padding: 8px 0 12px; }
.searchbox form { display: flex; align-items: center; gap: 8px; background: #fff; color: #000; border-radius: 6px; padding: 0 12px; height: 46px; }
.searchbox input { flex: 1; min-width: 0; border: 0; outline: none; background: none; color: #000; font-size: 16px; }
.searchbox .i { color: #333; }
.top-result { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: 8px; padding: 14px; }
.top-result img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.top-result .t1 { font-size: 22px; font-weight: 800; }
.chip { display: inline-block; font-size: 12px; background: #000; color: var(--text); border-radius: 99px; padding: 3px 10px; margin-top: 6px; }

/* ---------- tocando agora (tela cheia) ---------- */
.sheet { position: fixed; inset: 0; z-index: 40; transform: translateY(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); visibility: hidden; }
.sheet.open { transform: none; visibility: visible; }
#now { background: linear-gradient(to bottom, var(--tint, #3a3f2a), #0b0b0b 75%); display: flex; flex-direction: column;
  padding: calc(var(--safe-top) + 8px) 24px calc(var(--safe-bottom) + 20px); }
#now .head { display: flex; align-items: center; justify-content: space-between; }
#now .head .t1 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; text-align: center; flex: 1; }
#now .art { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 18px 0; }
#now .art img { width: 100%; max-width: 420px; aspect-ratio: 1; object-fit: cover; border-radius: 8px; box-shadow: 0 16px 48px rgba(0,0,0,.6); background: var(--card-hi); }
#now .info { display: flex; align-items: center; gap: 12px; }
#now .info .meta { flex: 1; min-width: 0; }
#now .info .t1 { font-size: 22px; font-weight: 800; }
#now .info .t2 { font-size: 16px; }
#now .st { color: var(--lime); font-size: 13px; min-height: 18px; margin-top: 2px; }
#seek { width: 100%; margin: 14px 0 2px; accent-color: var(--text); height: 4px; }
#now .times { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
#now .ctrl { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 14px; }
#now .ctrl .main { width: 68px; height: 68px; border-radius: 50%; background: var(--text); color: #000; display: grid; place-items: center; }
#now .ctrl .on { color: var(--lime); position: relative; }
#now .ctrl .on::after { content: ""; position: absolute; bottom: -6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--lime); }
#now .extra { display: flex; justify-content: space-between; color: var(--muted); }
#now .extra .on { color: var(--lime); }

/* ---------- fila ---------- */
#queue { background: var(--bg-2); overflow-y: auto; padding: calc(var(--safe-top) + 8px) 16px calc(var(--safe-bottom) + 24px); }

/* ---------- menus em folha (bottom sheet) ---------- */
.backdrop { position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .2s; }
.backdrop.open { opacity: 1; pointer-events: auto; }
.menu { position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; background: var(--sheet); border-radius: 14px 14px 0 0;
  padding: 8px 8px calc(var(--safe-bottom) + 12px); max-height: 80%; overflow-y: auto; transform: translateY(100%); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.menu.open { transform: none; }
.menu .grab { width: 36px; height: 4px; border-radius: 2px; background: #555; margin: 4px auto 10px; }
.menu .head { display: flex; align-items: center; gap: 12px; padding: 6px 8px 14px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.menu .head img, .menu .head .ph { width: 52px; height: 52px; border-radius: 4px; object-fit: cover; }
.menu .head .meta { min-width: 0; }
.menu button.item { display: flex; align-items: center; gap: 16px; width: 100%; padding: 13px 10px; border-radius: 6px; text-align: left; font-size: 16px; }
.menu button.item:active { background: rgba(255,255,255,.06); }
.menu button.item .i { color: var(--muted); }
.menu button.item.danger { color: var(--danger); }
.menu .field { padding: 8px; }
.menu .field input { width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 16px; outline: none; }
.menu .field input:focus { border-color: var(--lime); }
.menu .buttons { display: flex; gap: 10px; padding: 8px; }
.btn { flex: 1; height: 46px; border-radius: 99px; font-weight: 700; background: var(--card-hi); }
.btn.primary { background: var(--lime); color: var(--on-lime); }

/* ---------- aviso rápido ---------- */
#toast { position: fixed; left: 50%; z-index: 60; bottom: calc(var(--nav-h) + var(--mini-h) + var(--safe-bottom) + 18px);
  transform: translateX(-50%) translateY(20px); background: var(--text); color: #000; font-weight: 600; font-size: 14px;
  padding: 10px 16px; border-radius: 8px; opacity: 0; transition: .2s; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translateX(-50%); }

/* ---------- login ---------- */
#login { position: fixed; inset: 0; z-index: 70; display: none; overflow-y: auto;
  background: radial-gradient(120% 60% at 50% 0%, #26300a 0%, var(--bg) 60%); }
#login.show { display: block; }
.login-box { max-width: 380px; margin: 0 auto; padding: calc(var(--safe-top) + 48px) 24px calc(var(--safe-bottom) + 24px); }
.login-box img { width: 240px; max-width: 75%; margin: 0 auto 8px; }
.login-box h1 { font-size: 28px; font-weight: 800; text-align: center; margin: 8px 0 28px; letter-spacing: -.5px; }
#login form { display: flex; flex-direction: column; gap: 14px; }
#login label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
#login input { padding: 14px; border-radius: 6px; border: 1px solid #727272; background: var(--card); color: var(--text); font-size: 16px; outline: none; }
#login input:focus { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
#login .btn { flex: none; height: 50px; margin-top: 8px; font-size: 16px; }
#login .erro { color: var(--danger); min-height: 1.4em; margin: 0; text-align: center; }
.small { font-size: 13px; text-align: center; }

/* ---------- avatar / conta ---------- */
.avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex: none; background: #000; border: 1px solid var(--border); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.brand { display: flex; align-items: center; gap: 10px; }
.form-list { display: flex; flex-direction: column; gap: 10px; }
.form-list input { padding: 12px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-size: 16px; outline: none; }
.form-list input:focus { border-color: var(--lime); }
.form-list .btn { flex: none; }
.user-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.user-row .grow { flex: 1; }
.badge { font-size: 11px; color: var(--on-lime); background: var(--lime); border-radius: 99px; padding: 2px 8px; font-weight: 700; }
.btn.ghost { background: none; border: 1px solid #727272; }

/* ---------- diagnóstico ---------- */
#log { white-space: pre-wrap; font: 12px/1.5 ui-monospace, Menlo, monospace; background: var(--card); border-radius: 8px; padding: 10px; max-height: 50vh; overflow: auto; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================================
   v11 — animações, ao vivo, mixes, letras, offline
   ===================================================================== */
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,59,48,.7); } 70% { box-shadow: 0 0 0 8px rgba(255,59,48,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,48,0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

#view.enter > * { animation: pageIn .34s cubic-bezier(.2,.8,.2,1) both; }
.section { animation: slideUp .4s cubic-bezier(.2,.8,.2,1) both; }
.section:nth-of-type(2) { animation-delay: .04s; } .section:nth-of-type(3) { animation-delay: .08s; }
.section:nth-of-type(4) { animation-delay: .12s; } .section:nth-of-type(5) { animation-delay: .16s; }

/* toque: tudo que é clicável "afunda" um pouco */
.card, .row, .quick a, .top-result, .live-card, .play-big, .icon-btn, .btn, #mini { transition: transform .15s ease, background .2s ease, opacity .2s; }
.card:active, .quick a:active, .top-result:active, .live-card:active { transform: scale(.96); }
.row:active { transform: scale(.985); }
.icon-btn:active, .play-big:active { transform: scale(.9); }
.card img, .quick img { transition: opacity .3s; }

/* esqueletos de carregamento */
.sk { background: linear-gradient(90deg, #1a1a1a 25%, #272727 37%, #1a1a1a 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 6px; }
.sk-title { height: 26px; width: 55%; margin: 14px 0 18px; }
.sk-row { display: flex; gap: 12px; align-items: center; margin: 10px 0; }
.sk-row .a { width: 48px; height: 48px; flex: none; } .sk-row .b { height: 14px; flex: 1; }
.sk-shelf { display: flex; gap: 14px; overflow: hidden; } .sk-shelf div { width: 140px; height: 140px; flex: none; }

/* equalizador na música tocando */
.eq { display: inline-flex; gap: 2px; align-items: flex-end; width: 14px; height: 13px; flex: none; }
.eq i { width: 3px; height: 30%; background: var(--lime); border-radius: 1px; animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; }
body.paused .eq i { animation-play-state: paused; }
.row .num .eq { margin: 0 auto; }

.pop { animation: pop .35s ease; }

/* mini player com a cor da capa e gesto de arrastar */
#mini { background: var(--mini-bg, #2b2f20); transition: background .6s ease, transform .2s ease; touch-action: pan-y; }
#mini .marquee { overflow: hidden; }

/* tocando agora: capa encolhe quando pausa, fundo com a cor da capa */
#now { transition: transform .32s cubic-bezier(.2,.8,.2,1), background .6s ease; touch-action: pan-x; }
#now .art img { transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s; }
body.paused #now .art img { transform: scale(.86); box-shadow: 0 8px 24px rgba(0,0,0,.45); }
#now .row-actions { display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
#now .row-actions .on { color: var(--lime); }

/* faixa "sem internet" */
#offline { position: fixed; left: 0; right: 0; top: 0; z-index: 35; padding: calc(var(--safe-top) + 6px) 16px 6px;
  background: #3a3a3a; color: var(--text); font-size: 13px; font-weight: 600; display: none; align-items: center; justify-content: center; gap: 8px; }
body.offline #offline { display: flex; }
body.offline #view { padding-top: calc(var(--safe-top) + 40px); }

/* ao vivo: o que a família está ouvindo */
.live { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
.live::-webkit-scrollbar { display: none; }
.live-card { flex: none; width: 250px; display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 10px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--lime) 16%, transparent), rgba(255,255,255,.05)); border: 1px solid color-mix(in srgb, var(--lime) 25%, transparent); }
.live-card img { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; }
.live-card .meta { min-width: 0; flex: 1; }
.live-card .who { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--lime); font-weight: 700; }
.live-card .who .name { text-transform: capitalize; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; animation: pulse 1.6s infinite; flex: none; }
.live-dot.off { background: var(--faint); animation: none; }

/* cartões de mix */
.card.mix .cover { position: relative; width: 140px; height: 140px; border-radius: 6px; overflow: hidden; }
.card.mix .cover img { width: 100%; height: 100%; border-radius: 0; }
.card.mix .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.75), transparent 55%); }
.card.mix .cover::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--mix, var(--lime)); z-index: 1; }
.card.mix .tag { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 1; font-weight: 900; font-size: 15px; line-height: 1.1; }

/* cabeçalho que aparece ao rolar (artista, álbum, playlist) */
#stickyhead { position: fixed; left: 0; right: 0; top: 0; z-index: 25; display: flex; align-items: center; gap: 8px;
  padding: calc(var(--safe-top) + 6px) 12px 8px; background: rgba(24,24,24,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transform: translateY(-110%); transition: transform .25s ease; }
#stickyhead.show { transform: none; }
#stickyhead .t1 { flex: 1; font-size: 16px; }

/* letra sincronizada */
#lyrics { position: fixed; inset: 0; z-index: 42; overflow-y: auto; background: var(--lyrics-bg, #3a3f2a);
  padding: calc(var(--safe-top) + 64px) 24px calc(var(--safe-bottom) + 80px); transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); visibility: hidden; }
#lyrics.open { transform: none; visibility: visible; }
#lyrics .lyrics-head { position: fixed; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px;
  padding: calc(var(--safe-top) + 8px) 12px 10px; background: inherit; z-index: 1; }
#lyrics p { font-size: 24px; line-height: 1.3; font-weight: 800; margin: 0 0 20px; color: rgba(255,255,255,.4); transition: color .3s, transform .3s; cursor: pointer; }
#lyrics p.past { color: rgba(255,255,255,.75); }
#lyrics p.on { color: #fff; transform: scale(1.02); transform-origin: left; }
#lyrics .plain p { font-size: 19px; color: rgba(255,255,255,.85); cursor: default; }

/* interruptor (ajustes) */
.switch-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.switch-row .grow { flex: 1; }
.switch { position: relative; width: 48px; height: 28px; border-radius: 99px; background: #555; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch.on { background: var(--lime); }
.switch.on::after { transform: translateX(20px); }

/* barra de download de lista */
.dl-progress { font-size: 12px; color: var(--lime); }
.actions .done { color: var(--lime); }

/* =====================================================================
   v12 — identidade animada, gosto musical, app de cada pessoa
   ===================================================================== */
:root { --aura: var(--lime); }

/* abertura: o "M" se desenhando */
#splash { position: fixed; inset: 0; z-index: 90; background: var(--bg); display: grid; place-items: center; transition: opacity .45s ease, visibility .45s; }
#splash.hide { opacity: 0; visibility: hidden; }
#splash .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.logo-m { width: 120px; height: 100px; overflow: visible; }
.logo-m path { fill: none; stroke: url(#mgrad); stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.logo-m.draw path { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: drawM 1.1s cubic-bezier(.6,0,.2,1) forwards; }
.logo-m.glow { animation: glowM 1.6s ease-in-out .9s infinite; }
@keyframes drawM { to { stroke-dashoffset: 0; } }
@keyframes glowM {
  0%, 100% { filter: drop-shadow(0 0 2px color-mix(in srgb, var(--lime) 30%, transparent)); }
  50% { filter: drop-shadow(0 0 18px color-mix(in srgb, var(--lime) 70%, transparent)); }
}
.wordmark { font-size: 30px; font-weight: 900; letter-spacing: 6px; opacity: 0; transform: translateY(8px); animation: wordIn .5s ease .85s forwards; }
@keyframes wordIn { to { opacity: 1; transform: none; } }

/* aura animada no topo do início */
#view { position: relative; z-index: 0; }
.page.home { position: relative; }
.aura { position: absolute; left: -40px; right: -40px; top: calc(-60px - var(--safe-top)); height: 380px; z-index: -1; pointer-events: none; overflow: hidden; }
.aura::before, .aura::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; filter: blur(60px); transition: background 1.2s ease; }
.aura::before { background: var(--aura); opacity: .5; top: -60px; left: -30px; animation: auraA 14s ease-in-out infinite alternate; }
.aura::after { background: color-mix(in srgb, var(--aura) 60%, #3b2cff); opacity: .35; top: 20px; right: -60px; animation: auraB 18s ease-in-out infinite alternate; }
@keyframes auraA { to { transform: translate(90px, 40px) scale(1.15); } }
@keyframes auraB { to { transform: translate(-80px, 30px) scale(.9); } }

/* avatar com a inicial na cor da pessoa */
.avatar.initial { display: grid; place-items: center; background: var(--lime); color: var(--on-lime); font-weight: 900; font-size: 16px; border: 0; }

/* cartão "Descobertas" */
.card.special .cover { position: relative; width: 140px; height: 140px; border-radius: 6px; overflow: hidden;
  background: linear-gradient(135deg, var(--lime), #3b2cff); display: grid; place-items: center; }
.card.special .cover .grid4 { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; opacity: .45; }
.card.special .cover .grid4 img { width: 70px; height: 70px; object-fit: cover; border-radius: 0; }
.card.special .cover .tag { position: relative; z-index: 1; font-weight: 900; font-size: 17px; text-align: center; line-height: 1.1; padding: 8px; text-shadow: 0 2px 10px rgba(0,0,0,.6); }

/* ---------- cadastro de gosto (onboarding) ---------- */
#onboard { position: fixed; inset: 0; z-index: 80; background: var(--bg); display: none; flex-direction: column; overflow: hidden; }
#onboard.show { display: flex; }
#onboard .ob-top { padding: calc(var(--safe-top) + 14px) 20px 10px; display: flex; align-items: center; gap: 12px; min-height: 52px; }
#onboard .ob-dots { display: flex; gap: 6px; flex: 1; }
#onboard .ob-dots i { height: 4px; flex: 1; border-radius: 2px; background: #333; transition: background .3s; }
#onboard .ob-dots i.on { background: var(--lime); }
#onboard .ob-body { flex: 1; overflow-y: auto; padding: 4px 20px 20px; animation: pageIn .4s cubic-bezier(.2,.8,.2,1) both; }
#onboard h1 { font-size: 28px; line-height: 1.15; font-weight: 900; margin: 10px 0 6px; letter-spacing: -.5px; }
#onboard .lead { color: var(--muted); margin: 0 0 18px; }
#onboard .ob-foot { padding: 12px 20px calc(var(--safe-bottom) + 16px); }
#onboard .ob-foot .btn { width: 100%; height: 52px; font-size: 16px; }
#onboard .btn:disabled { opacity: .4; }
.genre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.genre { position: relative; height: 84px; border-radius: 10px; overflow: hidden; text-align: left; padding: 12px; font-weight: 800; font-size: 16px;
  background: var(--card-hi); border: 2px solid transparent; transition: transform .15s, border-color .2s; display: flex; align-items: flex-start; }
.genre img { position: absolute; right: -14px; bottom: -14px; width: 74px; height: 74px; border-radius: 6px; transform: rotate(22deg); opacity: .85; }
.genre span { position: relative; z-index: 1; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.genre.on { border-color: var(--lime); }
.genre.on::after { content: "✓"; position: absolute; top: 8px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--lime); color: var(--on-lime);
  display: grid; place-items: center; font-size: 13px; font-weight: 900; z-index: 2; }
.genre:active, .pick:active { transform: scale(.95); }
.pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 12px; }
.pick { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; font-weight: 600; transition: transform .15s; }
.pick .ring { position: relative; width: 92px; height: 92px; border-radius: 50%; padding: 3px; border: 3px solid transparent; transition: border-color .2s, transform .25s cubic-bezier(.3,1.6,.5,1); }
.pick img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--card-hi); }
.pick.on .ring { border-color: var(--lime); transform: scale(1.06); }
.pick.on .ring::after { content: "✓"; position: absolute; right: -2px; bottom: 2px; width: 26px; height: 26px; border-radius: 50%; background: var(--lime); color: var(--on-lime);
  display: grid; place-items: center; font-weight: 900; font-size: 14px; border: 3px solid var(--bg); }
.pick .name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ob-search { display: flex; align-items: center; gap: 8px; background: #fff; color: #000; border-radius: 8px; padding: 0 12px; height: 44px; margin-bottom: 16px; }
.ob-search input { flex: 1; border: 0; outline: none; background: none; font-size: 16px; color: #000; min-width: 0; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.swatch { aspect-ratio: 1; border-radius: 50%; border: 4px solid transparent; transition: transform .2s; }
.swatch.on { border-color: #fff; transform: scale(1.08); }
.preview { margin-top: 24px; border-radius: 14px; padding: 16px; background: var(--card); display: flex; align-items: center; gap: 14px; }
.preview .play-big { flex: none; }
.building { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; }
.building .msg { color: var(--muted); min-height: 1.4em; }

/* ---------- perfil ---------- */
.profile-head { display: flex; align-items: center; gap: 16px; margin: 10px 0 6px; }
.profile-head .avatar { width: 84px; height: 84px; font-size: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 7px 14px; border-radius: 99px; background: color-mix(in srgb, var(--lime) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--lime) 40%, transparent); font-size: 13px; font-weight: 700; }

/* =====================================================================
   v13 — menu flutuante, navegar por estilos, convites
   ===================================================================== */
:root { --nav-h: 64px; --mini-h: 60px; }

/* menu de baixo: pílula de vidro fosco flutuando */
#tabs { left: 12px; right: 12px; bottom: calc(var(--safe-bottom) + 10px); height: var(--nav-h); padding: 0 6px;
  border-radius: 24px; background: rgba(22, 22, 22, .72); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 12px 32px rgba(0, 0, 0, .55); align-items: center; }
#tabs a { position: relative; z-index: 1; height: 100%; gap: 4px; color: var(--muted); transition: color .25s; }
#tabs a.on { color: var(--lime); }
#tabs .tab-ico { position: relative; display: grid; place-items: center; transition: transform .35s cubic-bezier(.3, 1.7, .5, 1); }
#tabs a.on .tab-ico { transform: translateY(-2px) scale(1.12); }
#tabs a.on .tab-ico .i { stroke-width: 2.4; }
#tabs a:active .tab-ico { transform: scale(.85); }
#tabs .tab-lbl { font-size: 10.5px; font-weight: 700; letter-spacing: .2px; }
#tabs .tab-pill { position: absolute; z-index: 0; top: 7px; bottom: 7px; left: 0; width: 0; border-radius: 18px;
  background: color-mix(in srgb, var(--lime) 16%, transparent); border: 1px solid color-mix(in srgb, var(--lime) 22%, transparent);
  transition: left .42s cubic-bezier(.3, 1.3, .5, 1), width .42s cubic-bezier(.3, 1.3, .5, 1); }
#tabs .tab-avatar { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 900;
  background: var(--muted); color: #000; transition: background .25s, box-shadow .25s; }
#tabs a.on .tab-avatar { background: var(--lime); color: var(--on-lime); box-shadow: 0 0 0 2px color-mix(in srgb, var(--lime) 35%, transparent); }
#tabs .tab-live { position: absolute; top: -2px; right: -5px; width: 9px; height: 9px; border-radius: 50%; background: #ff3b30;
  border: 2px solid #161616; display: none; animation: pulse 1.6s infinite; }
#tabs.has-live .tab-live { display: block; }

/* mini player acima do menu flutuante */
#mini { left: 16px; right: 16px; bottom: calc(var(--nav-h) + var(--safe-bottom) + 16px); border-radius: 14px; }
#view { padding-bottom: calc(var(--nav-h) + var(--mini-h) + var(--safe-bottom) + 40px); }
#toast { bottom: calc(var(--nav-h) + var(--mini-h) + var(--safe-bottom) + 30px); }

/* navegar por estilos (blocos coloridos) */
.browse { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.browse a { position: relative; height: 96px; border-radius: 10px; overflow: hidden; padding: 12px; font-weight: 900; font-size: 17px;
  line-height: 1.1; background: var(--tile, #444); transition: transform .15s; }
.browse a:active { transform: scale(.96); }
.browse a span { position: relative; z-index: 1; display: block; max-width: 70%; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.browse a img { position: absolute; right: -16px; bottom: -10px; width: 78px; height: 78px; border-radius: 6px; transform: rotate(24deg);
  box-shadow: -4px 6px 14px rgba(0,0,0,.35); }

/* criação de conta por convite */
.invite-from { text-align: center; color: var(--lime); font-weight: 700; margin: -8px 0 6px; }
.invite-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.invite-row .grow { flex: 1; min-width: 0; }
.badge.used { background: var(--card-hi); color: var(--muted); }
.badge.expired { background: #3a1f1f; color: var(--danger); }

/* vibes: um toque e toca */
.vibes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.vibe { display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 14px; border-radius: 14px; font-weight: 900; font-size: 16px;
  background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 6px 18px color-mix(in srgb, var(--c1) 35%, transparent);
  transition: transform .15s; text-shadow: 0 1px 6px rgba(0,0,0,.25); }
.vibe:active { transform: scale(.95); }
.vibe .emoji { font-size: 24px; }
.vibe-cover { width: 220px; height: 220px; margin: 0 auto; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 16px 48px color-mix(in srgb, var(--c1) 40%, transparent); }
.vibe-cover span { font-size: 96px; animation: pop 1.2s ease .2s; }

/* "hidden" sempre esconde, mesmo com display definido no CSS */
[hidden] { display: none !important; }

/* Abertura com a logo ORIGINAL: revela da esquerda para a direita e brilha */
.logo-reveal { width: 260px; max-width: 70vw; height: auto; clip-path: inset(0 100% 0 0); transform: scale(.94);
  animation: logoReveal 1s cubic-bezier(.6, 0, .2, 1) .15s forwards, logoGlow 1.8s ease-in-out 1.1s infinite; }
.logo-reveal.sym { width: 120px; }
@keyframes logoReveal { to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 2px color-mix(in srgb, #b4e10a 30%, transparent)); }
  50% { filter: drop-shadow(0 0 22px color-mix(in srgb, #b4e10a 75%, transparent)); }
}

/* =====================================================================
   v16 — identidade "Onda": visual próprio do MusIg (nada de cara de Spotify)
   Fontes: Unbounded e Manrope (SIL Open Font License 1.1), guardadas no app.
   ===================================================================== */
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url("fonts/unbounded-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 900; font-display: swap; src: url("fonts/unbounded-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url("fonts/manrope-latin-800-normal.woff2") format("woff2"); }

:root {
  --bg: #0a0912;            /* azul-noite, não preto puro */
  --bg-2: #100e1b;
  --card: #16142a;
  --card-hi: #211e3a;
  --sheet: #17152b;
  --text: #f3f1ff;
  --muted: #a39fc0;
  --faint: #6d6888;
  --border: #2a2645;
  --violet: #8b5cf6;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --font-title: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", -apple-system, system-ui, sans-serif;
}
html, body { font-family: var(--font-body); background: var(--bg); }
body::before { background: var(--bg); }
button, input { font-family: var(--font-body); }

/* títulos com a fonte larga e arredondada */
.page-title, .section h2, .cover-hero h1, .artist-hero h1, #onboard h1, .login-box h1, .wordmark, #now .info .t1, .top-result .t1 {
  font-family: var(--font-title); letter-spacing: -.3px;
}
.page-title { font-size: 22px; line-height: 1.15; }
.section h2 { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.section h2::before { content: ""; width: 18px; height: 8px; flex: none; border-radius: 99px;
  background: linear-gradient(90deg, var(--lime), var(--violet)); }
.hello .hi { color: var(--muted); font-weight: 600; font-size: 14px; margin-bottom: 2px; }

/* fundo com brilho violeta sutil */
#view::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(90% 60% at 100% 0%, rgba(139, 92, 246, .12), transparent 60%),
              radial-gradient(70% 50% at 0% 100%, color-mix(in srgb, var(--lime) 7%, transparent), transparent 60%); }

/* pílulas de atalho (no lugar da grade estilo Spotify) */
.pills { display: flex; gap: 8px; overflow-x: auto; margin: 6px -16px 0; padding: 4px 16px; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill { flex: none; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px 0 5px; border-radius: 99px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); font-weight: 700; font-size: 14px; transition: transform .15s; }
.pill:active { transform: scale(.95); }
.pill img, .pill .ph { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.ph.liked { background: linear-gradient(135deg, var(--lime), var(--violet)); color: #0a0912; }
.ph.down { background: linear-gradient(135deg, #22d3ee, var(--violet)); color: #0a0912; }

/* cartões: nome por cima da capa, cantos bem arredondados */
.card.tile { width: 150px; }
.card.tile .cover { position: relative; width: 150px; height: 150px; border-radius: var(--r-md); overflow: hidden; background: var(--card-hi);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.card.tile .cover img { width: 100%; height: 100%; border-radius: 0; object-fit: cover; transition: transform .4s ease; }
.card.tile:active .cover img { transform: scale(1.06); }
.card.tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 9px; display: flex; flex-direction: column; gap: 1px;
  background: linear-gradient(to top, rgba(10, 9, 18, .92), rgba(10, 9, 18, .55) 60%, transparent); }
.card.tile .cap b { font-size: 13px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card.tile .cap small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.tile .play-chip { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  background: var(--lime); color: var(--on-lime); box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.card.round { width: 120px; }
.card.round .ring { display: block; width: 112px; height: 112px; margin: 0 auto; border-radius: 50%; padding: 3px;
  background: conic-gradient(from 200deg, var(--lime), var(--violet), var(--lime)); }
.card.round .ring img { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--bg); }
.card.round .t1 { font-size: 13px; }
.card.mix .cover, .card.special .cover { width: 150px; height: 150px; border-radius: var(--r-md); }
.card.mix .cover::before { height: 100%; width: 6px; right: auto; }
.card.mix .wave-tag { position: absolute; top: 9px; left: 12px; z-index: 1; font-size: 11px; font-weight: 800; letter-spacing: .3px;
  padding: 3px 8px; border-radius: 99px; background: rgba(10, 9, 18, .6); }
.card.mix .tag { font-family: var(--font-title); font-size: 15px; left: 12px; }
.card.special .cover { background: linear-gradient(135deg, var(--lime), var(--violet)); }
.card.special .cover .tag { font-family: var(--font-title); }
.shelf { gap: 12px; }

/* listas de músicas em "cartões" */
.rows { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.row { background: rgba(255, 255, 255, .035); border-radius: var(--r-sm); padding: 7px 8px; min-height: 62px; }
.row:active { background: rgba(255, 255, 255, .08); }
.row img, .row .ph { width: 48px; height: 48px; border-radius: 10px; }
.row.playing { background: color-mix(in srgb, var(--lime) 10%, transparent); box-shadow: inset 3px 0 0 var(--lime); }

/* botão principal: quadrado arredondado em degradê (não a bolinha verde) */
.play-big { width: 56px; height: 56px; border-radius: 18px; background: linear-gradient(135deg, var(--lime), color-mix(in srgb, var(--lime) 55%, #fff));
  box-shadow: 0 8px 22px color-mix(in srgb, var(--lime) 35%, transparent); }
#now .ctrl .main { width: 72px; height: 72px; border-radius: 24px; background: linear-gradient(135deg, var(--lime), color-mix(in srgb, var(--lime) 55%, #fff));
  color: var(--on-lime); box-shadow: 0 10px 28px color-mix(in srgb, var(--lime) 40%, transparent); }

/* capas de páginas com cantos arredondados */
.cover-hero img, .cover-hero .ph { border-radius: var(--r-lg); }
.cover-hero { background: linear-gradient(to bottom, color-mix(in srgb, var(--tint, #2b2550) 70%, var(--bg)), var(--bg)); }

/* artista: foto redonda no centro com anel de luz girando */
.artist-hero { position: relative; text-align: center; padding: calc(var(--safe-top) + 58px) 16px 6px; overflow: hidden;
  margin-top: calc(-8px - var(--safe-top)); }
.artist-hero::before { content: ""; position: absolute; inset: -40px; z-index: -1; background: var(--art) center/cover; filter: blur(60px) saturate(1.4); opacity: .45; }
.artist-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, transparent 30%, var(--bg)); }
.artist-hero .back { position: absolute; top: calc(var(--safe-top) + 8px); left: 8px; background: rgba(0,0,0,.35); }
.halo { position: relative; width: 190px; height: 190px; margin: 0 auto; border-radius: 50%; padding: 5px; }
.halo::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--lime), var(--violet), #22d3ee, var(--lime)); animation: spin 6s linear infinite; }
.halo img { position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 5px solid var(--bg); }
.artist-hero h1 { font-size: 26px; margin: 16px 0 10px; line-height: 1.1; }
.chips.center { justify-content: center; }

/* tocando agora: disco de vinil girando + onda */
#now { background: linear-gradient(to bottom, #2b2550, #0a0912 78%); }
#now .art .disc { position: relative; width: min(76vw, 330px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: repeating-radial-gradient(circle, #151320 0 2px, #1d1a2c 3px 4px); box-shadow: 0 18px 50px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.05);
  animation: spin 9s linear infinite; }
body.paused #now .art .disc { animation-play-state: paused; }
#now .art .disc img { width: 64%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px rgba(10,9,18,.9); }
#now .art .disc::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 3px var(--lime); }
body.paused #now .art img { transform: none; }
.wavebars { display: flex; align-items: center; justify-content: space-between; height: 26px; margin: 10px 2px 0; }
.wavebars i { width: 4px; height: 30%; border-radius: 3px; background: linear-gradient(to top, var(--violet), var(--lime));
  animation: eq 1.1s ease-in-out infinite; opacity: .9; }
.wavebars i:nth-child(3n) { animation-duration: .8s; } .wavebars i:nth-child(4n) { animation-duration: 1.4s; }
.wavebars i:nth-child(5n+1) { animation-delay: -.4s; } .wavebars i:nth-child(7n+2) { animation-delay: -.7s; }
body.paused .wavebars i { animation-play-state: paused; opacity: .35; }
#seek { accent-color: var(--lime); }

/* mini player: capa redonda girando */
#mini { border-radius: var(--r-md); }
#mini img { border-radius: 50%; animation: spin 8s linear infinite; }
body.paused #mini img { animation-play-state: paused; }
#mini .bar div { background: linear-gradient(90deg, var(--lime), var(--violet)); }

/* menus e folhas no tom azul-noite */
.menu { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.btn { border-radius: 14px; }
.btn.primary { background: linear-gradient(135deg, var(--lime), color-mix(in srgb, var(--lime) 55%, #fff)); }
.searchbox form { border-radius: 16px; }
.top-result { border-radius: var(--r-md); background: linear-gradient(135deg, rgba(139,92,246,.18), rgba(255,255,255,.04)); }
.top-result img { border-radius: 50%; }
#tabs { background: rgba(18, 16, 32, .74); }
.vibe { border-radius: var(--r-md); }
.browse a { border-radius: var(--r-md); }

/* =====================================================================
   v17 — "padrão aplicativo": sem zoom, sem página escorregando para os lados
   ===================================================================== */
html, body { width: 100%; max-width: 100%; overflow-x: hidden; overscroll-behavior: none;
  touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
#view { overflow-x: hidden; overflow-x: clip; }
.page { max-width: 100%; }
/* toque de app: segurar o dedo não seleciona texto nem abre o menu do iPhone */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, #lyrics p { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
img { -webkit-user-drag: none; user-drag: none; }
/* campos com 16px: o iPhone não dá zoom sozinho ao tocar para digitar */
input, select, textarea { font-size: 16px !important; }

/* v19 — desempenho: brilhos sem filtro de desfoque e animações só quando aparecem */
.aura::before, .aura::after { filter: none; will-change: transform; }
.aura::before { background: radial-gradient(circle, var(--aura) 0%, transparent 68%); }
.aura::after { background: radial-gradient(circle, color-mix(in srgb, var(--aura) 60%, #3b2cff) 0%, transparent 68%); }
.wavebars i { height: 100%; transform: scaleY(.3); animation-name: eqS; will-change: transform; }
@keyframes eqS { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
#now:not(.open) .wavebars i, #now:not(.open) .art .disc { animation-play-state: paused; }
.artist-hero::before { filter: blur(36px) saturate(1.4); transform: translateZ(0); }

/* v20 — painel do servidor (só administrador) */
.admin-link { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-md, 16px); background: linear-gradient(135deg, color-mix(in srgb, var(--violet) 28%, transparent), color-mix(in srgb, var(--lime) 14%, transparent)); border: 1px solid rgba(255,255,255,.08); }
.admin-link .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(0,0,0,.3); color: var(--lime); }
.admin-link .t1 { font-weight: 800; } .admin-link > .i:last-child { transform: rotate(180deg); opacity: .6; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 4px; }
.stat { padding: 14px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat b { font-family: Unbounded, sans-serif; font-size: 22px; color: var(--lime); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat span { font-size: 12px; color: var(--muted, #aaa); }
.adm-user { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.adm-user .avatar { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; flex: none; }
.adm-user .on-dot { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; background: #22c55e; border: 2px solid var(--bg); }
.adm-user .grow { flex: 1; min-width: 0; } .adm-user .t2 { font-size: 12px; }
.adm-gb { text-align: right; flex: none; } .adm-gb b { display: block; font-size: 15px; } .adm-gb span { font-size: 11px; color: var(--muted, #aaa); }
.ok { color: #22c55e; } .bad { color: #ef4444; }
.adm-box { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); margin-bottom: 10px; }
.adm-line { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 3px 0; } .adm-line span { color: var(--muted, #aaa); } .adm-line b { text-align: right; }
.meter { height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 8px; }
.meter div { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--lime), var(--violet)); }
