:root {
  --bg: #030305;
  --bg-elevated: #0d0e12;
  --bg-card: #0d0e12;
  --border: rgba(255, 51, 85, 0.16);
  --border-strong: rgba(255, 51, 85, 0.4);
  --text: #f5f5f7;
  --text-muted: #86868f;
  --accent: #ff3355;
  --accent-2: #ff7700;
  --glass: rgba(8, 8, 11, 0.82);
  --radius: 14px;
  --radius-lg: 22px;
  --font: -apple-system, 'Segoe UI', Roboto, system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  background-image:
    radial-gradient(ellipse at 15% 0%, rgba(255, 51, 85, 0.14), transparent 50%),
    radial-gradient(ellipse at 85% 100%, rgba(255, 119, 0, 0.08), transparent 45%);
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* —— Topbar —— */
.topbar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem 1.25rem;
  background: var(--glass);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  font-weight: 900;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}
.logo span { color: var(--accent); }
.nav-desktop { display: none; gap: 1.4rem; flex: 1; }
.nav-desktop a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s;
}
.nav-desktop a:hover, .nav-desktop a.active { color: var(--accent); }
.auth-area { display: flex; gap: 0.5rem; margin-left: auto; }

.btn-primary, .btn-ghost {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 51, 85, 0.25);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-primary:hover, .btn-ghost:hover { opacity: 0.88; }
.btn-primary:active, .btn-ghost:active { transform: scale(0.97); }
.btn-primary:disabled, .btn-ghost:disabled { opacity: 0.5; cursor: not-allowed; }

.main {
  padding: 1.25rem;
  padding-bottom: 150px;
  max-width: 1100px;
  margin: 0 auto;
}

.hero { padding: 2rem 0 1.5rem; }
.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  background: linear-gradient(90deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { color: var(--text-muted); margin-top: 0.5rem; }

.search-box { display: flex; gap: 0.5rem; margin: 1rem 0 1.5rem; }
.search-box input {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 1rem;
  outline: none;
}
.search-box input:focus { border-color: var(--accent); }
.search-box button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  border-radius: var(--radius);
  padding: 0 1.25rem;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* —— Listas de faixas —— */
.list { display: flex; flex-direction: column; gap: 0.4rem; }
.list-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.list-item:hover { background: rgba(255, 51, 85, 0.06); border-color: var(--border-strong); }
.list-item .thumb {
  width: 46px; height: 46px; border-radius: 10px;
  background: linear-gradient(145deg, #1a0508, #0d0e12);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.list-item .thumb svg { width: 40%; opacity: 0.35; fill: var(--accent); }
.list-item .meta { flex: 1; min-width: 0; }
.list-item .meta .t { font-weight: 700; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .meta .a { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .row-actions { display: flex; align-items: center; gap: 0.35rem; flex-shrink: 0; }

.icon-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 999px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s;
}
.icon-btn svg { width: 17px; height: 17px; fill: currentColor; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn.is-active { border-color: var(--accent); color: var(--accent); }
.icon-btn:disabled { opacity: 0.45; cursor: default; }

/* —— Forms —— */
.form {
  max-width: 380px;
  margin: 2rem auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.form h2 { margin-bottom: 1.25rem; font-size: 1.35rem; font-weight: 800; }
.form label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.form input, .form select {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  color: var(--text);
  margin-bottom: 1rem;
  outline: none;
}
.form input:focus, .form select:focus { border-color: var(--accent); }
.form button[type=submit] {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.5rem;
}
.form .error { color: var(--accent); font-size: 0.85rem; margin-bottom: 0.75rem; min-height: 1em; }
.form .link { text-align: center; margin-top: 1rem; font-size: 0.85rem; color: var(--text-muted); }
.form .link a { color: var(--accent); }

/* —— Nav mobile —— */
.nav-mobile {
  display: flex;
  position: fixed;
  bottom: 64px;
  left: 0; right: 0;
  background: var(--glass);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
  z-index: 90;
  justify-content: space-around;
  padding: 0.35rem 0;
}
.nav-mobile a {
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.63rem;
  padding: 0.25rem 0.5rem;
}
.nav-mobile a svg { width: 21px; height: 21px; fill: currentColor; }
.nav-mobile a.active { color: var(--accent); }

/* —— Mini player —— */
.player {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0.75rem;
  z-index: 95;
  cursor: pointer;
}
.player-art {
  width: 44px; height: 44px; border-radius: 9px;
  background: linear-gradient(145deg, #1a0508, #0d0e12);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--border);
}
.player-info { flex: 1; min-width: 0; }
.player-title { font-size: 0.85rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-artist { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-controls { display: flex; gap: 0.15rem; align-items: center; }
.player-controls button {
  background: transparent; border: none; color: var(--text);
  width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.player-controls button svg { width: 20px; height: 20px; fill: currentColor; }
.player-controls #btn-play { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.player-controls #btn-play svg { fill: #fff; }
.player-progress {
  display: none; align-items: center; gap: 0.4rem;
  font-size: 0.7rem; color: var(--text-muted); min-width: 180px;
}
.player-progress input[type=range] { flex: 1; accent-color: var(--accent); }

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .nav-mobile { display: none; }
  .player { bottom: 0; }
  .player-progress { display: flex; }
  .main { padding-bottom: 100px; }
}

/* —— Now Playing (card expandido, estilo do exemplo) —— */
.now-playing-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.now-playing-overlay.open { display: flex; animation: fadeIn 0.2s ease-out; }
@media (min-width: 640px) {
  .now-playing-overlay.open { align-items: center; padding: 1rem; }
}
.now-playing-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 92vh;
  overflow-y: auto;
  background: #0d0e12;
  border: 1px solid var(--border-strong);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 51, 85, 0.1);
  padding: 1.5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
@media (min-width: 640px) {
  .now-playing-card { border-radius: 26px; }
}
.np-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.np-close svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; }
.np-banner {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 160px;
  background: linear-gradient(160deg, rgba(255, 51, 85, 0.18), transparent);
  background-size: cover;
  background-position: center;
  border-radius: 26px 26px 0 0;
  filter: blur(0px);
  opacity: 0.55;
  mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
}
.np-art {
  position: relative;
  width: 210px; height: 210px;
  border-radius: 20px;
  background: linear-gradient(145deg, #1a0508, #0d0e12);
  background-size: cover;
  background-position: center;
  margin-top: 3rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border-strong);
}
.np-title { position: relative; font-size: 1.25rem; font-weight: 800; margin-top: 1.5rem; }
.np-artist { position: relative; font-size: 0.9rem; color: var(--text-muted); margin-top: 0.25rem; }
.np-progress {
  position: relative;
  width: 100%;
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; color: var(--text-muted);
  margin-top: 1.5rem;
}
.np-progress input[type=range] { flex: 1; accent-color: var(--accent); }
.np-controls { position: relative; display: flex; align-items: center; gap: 1.25rem; margin-top: 1rem; }
.np-controls button {
  background: transparent; border: none; color: var(--text);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.np-controls button svg { width: 26px; height: 26px; fill: currentColor; }
.np-controls #np-play {
  width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 20px rgba(255, 51, 85, 0.4);
}
.np-controls #np-play svg { width: 28px; height: 28px; fill: #fff; }
.np-download { margin-top: 1.5rem; width: 100%; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* —— Modal (substitui alert/prompt/confirm) —— */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.15s ease-out; }
.modal-card {
  width: 100%;
  max-width: 360px;
  background: #0d0e12;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 51, 85, 0.1);
}
.modal-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.4rem; }
.modal-card p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1rem; }
.modal-card input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  color: var(--text);
  margin-bottom: 1.1rem;
  outline: none;
  font-size: 0.95rem;
}
.modal-card input:focus { border-color: var(--accent); }
.modal-actions { display: flex; gap: 0.6rem; justify-content: flex-end; }
.modal-actions button {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
}
.modal-actions .btn-cancel { background: transparent; color: var(--text-muted); border-color: var(--border); }
.modal-actions .btn-confirm { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }

/* —— Toasts —— */
.toast-stack {
  position: fixed;
  top: 76px; left: 50%;
  transform: translateX(-50%);
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(90vw, 380px);
  pointer-events: none;
}
.toast {
  background: #0d0e12;
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.2s ease-out;
}
.toast.is-success { border-left-color: #2ecc71; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* —— Diversos —— */
.section-title { font-size: 1.1rem; font-weight: 800; margin: 1.6rem 0 0.75rem; }
.empty { text-align: center; color: var(--text-muted); padding: 2.25rem 1rem; font-size: 0.9rem; }
.hint { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1rem; }
.user-chip {
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
}
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.stat-n {
  font-size: 1.75rem; font-weight: 800;
  background: linear-gradient(90deg, #fff, var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-l { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }
#btn-new-pl { margin-bottom: 1rem; }
.list-item[data-pl] .meta .t { display: flex; align-items: center; gap: 0.4rem; }

/* —— Indicador de pré-download automático (busca inteligente) —— */
.list-item.is-prefetching .thumb { position: relative; }
.list-item.is-prefetching .thumb::after {
  content: '';
  position: absolute; inset: 0;
  border: 2px solid transparent;
  border-top-color: var(--accent);
  border-radius: 10px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.list-item.is-ready .btn-download-row { color: #2ecc71; border-color: rgba(46, 204, 113, 0.4); }

/* —— Fallback quando não há capa/banner —— */
.player-art.no-art, .np-art.no-art, .thumb.no-art {
  display: flex; align-items: center; justify-content: center;
}
.player-art.no-art::before, .np-art.no-art::before {
  content: '';
  width: 38%; height: 38%;
  background: var(--accent);
  opacity: 0.4;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v10.55A4 4 0 1014 17V7h4V3h-6z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v10.55A4 4 0 1014 17V7h4V3h-6z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* —— Now Playing: controles secundários (aleatório/repetir/playlist) —— */
.np-mode-btn { opacity: 0.55; position: relative; }
.np-mode-btn svg { width: 20px; height: 20px; }
.np-mode-btn.is-active { opacity: 1; color: var(--accent); }
.np-mode-btn .rpt-one {
  position: absolute; bottom: -2px; right: -2px;
  font-size: 0.55rem; font-weight: 800;
  background: var(--accent); color: #fff;
  border-radius: 50%; width: 13px; height: 13px;
  display: flex; align-items: center; justify-content: center;
}
.np-secondary-actions { position: relative; width: 100%; display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.5rem; }

/* —— Perfil: banner + avatar —— */
.profile-header { margin: -1.25rem -1.25rem 0; }
.profile-banner {
  height: 180px;
  background: linear-gradient(135deg, rgba(255, 51, 85, 0.35), rgba(255, 119, 0, 0.18));
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0.85rem;
}
.profile-banner-upload {
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  cursor: pointer;
}
.profile-header-row {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  padding: 0 1.25rem;
  padding-top: 0.6rem;
}
.profile-avatar {
  width: 92px; height: 92px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  background-size: cover;
  background-position: center;
  border: 4px solid var(--bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  margin-top: -46px; /* só o avatar sobe por cima do banner — o nome fica sempre abaixo dele */
}
.avatar-initials { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; }
.avatar-upload {
  position: absolute; bottom: 0; right: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.avatar-upload svg { width: 15px; height: 15px; fill: var(--text); }
.profile-header-info { padding-bottom: 0.5rem; }

/* —— Playlist: cabeçalho com capa —— */
.pl-header { margin: -1.25rem -1.25rem 1rem; position: relative; }
.pl-banner {
  height: 200px;
  background: linear-gradient(160deg, rgba(255, 51, 85, 0.4), rgba(13, 14, 18, 0.9));
  background-size: cover;
  background-position: center;
}
.pl-header-info { padding: 1rem 1.25rem 0; }
.pl-h-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 700; }
.pl-h-name { font-size: clamp(1.5rem, 5vw, 2.2rem); font-weight: 900; margin: 0.2rem 0 0.4rem; }
.pl-banner-upload { font-size: 0.78rem; padding: 0.4rem 0.85rem; margin-top: 0.4rem; display: inline-flex; cursor: pointer; }

/* ============================================================
   Tela de boot (splash) — mostrada instantaneamente (puro HTML/CSS,
   antes do app.js carregar) e removida com fade assim que a home
   termina de montar.
   ============================================================ */
.boot-splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  background: var(--bg);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.boot-splash.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-splash-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 51, 85, 0.22), transparent 55%),
    radial-gradient(circle at 30% 80%, rgba(255, 119, 0, 0.12), transparent 50%);
  animation: bootGlowPulse 2.6s ease-in-out infinite;
}
@keyframes bootGlowPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
.boot-splash-logo {
  position: relative;
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--text);
}
.boot-splash-logo span { color: var(--accent); }
.boot-splash-bar {
  position: relative;
  width: 140px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.boot-splash-bar-fill {
  position: absolute;
  top: 0; bottom: 0; left: -40%;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  animation: bootBarSlide 1.1s ease-in-out infinite;
}
@keyframes bootBarSlide {
  0% { left: -40%; }
  60% { left: 100%; }
  100% { left: 100%; }
}

/* ============================================================
   Home — saudação + carrosséis horizontais de faixas (cards)
   ============================================================ */
.home-greeting-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero h1.home-greeting { margin-top: 0.2rem; }
.section-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.8rem 0 0.85rem;
}
.section-head svg { width: 18px; height: 18px; fill: var(--accent); flex-shrink: 0; }
.section-head .section-title { margin: 0; }

.hscroll {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  padding: 0.2rem 0.15rem 0.9rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }

.list-item.card-item {
  position: relative;
  flex: 0 0 auto;
  width: 134px;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  scroll-snap-align: start;
}
.list-item.card-item:hover { background: transparent; border-color: transparent; }
.card-item .thumb {
  width: 134px; height: 134px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--border);
}
.card-item .thumb svg { width: 32%; }
.card-play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(3, 3, 5, 0.32);
  opacity: 0;
  transition: opacity 0.15s;
}
.card-item:active .card-play-btn { opacity: 1; }
.card-play-btn svg { width: 32px; height: 32px; fill: #fff; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)); }
.card-item .row-actions {
  position: absolute; top: 0.4rem; right: 0.4rem;
  gap: 0.3rem;
}
.card-item .row-actions .icon-btn {
  width: 28px; height: 28px;
  background: rgba(8, 8, 11, 0.78);
  backdrop-filter: blur(6px);
  border-color: rgba(255, 255, 255, 0.14);
}
.card-item .row-actions .icon-btn svg { width: 14px; height: 14px; }
.card-item .meta { width: 134px; padding: 0.6rem 0.1rem 0; }
.card-item .meta .t {
  white-space: normal;
  font-size: 0.85rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-item .meta .a { margin-top: 0.2rem; }

/* —— Perfil / Playlist: banner com esmaecimento suave nas bordas —— */
.profile-banner {
  border-radius: 0 0 26px 26px;
  overflow: hidden;
}
.profile-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 3, 5, 0) 42%, rgba(3, 3, 5, 0.55) 80%, var(--bg) 100%);
  pointer-events: none;
}
.profile-banner-upload { position: relative; z-index: 1; }
.pl-banner {
  border-radius: 0 0 26px 26px;
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}

