/* ===================================================================
   MusicMi - Design System & Modern Aesthetics
   Obsidian Dark Mode, Glassmorphism, Neon Glow & Micro-animations
   =================================================================== */

:root {
  /* Paleta Base HSL */
  --bg-main: #07090f;
  --bg-surface: #0e1322;
  --bg-card: rgba(20, 27, 45, 0.6);
  --bg-card-hover: rgba(30, 41, 69, 0.75);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.3);

  /* Acentos Vibrantes */
  --accent-primary: #6366f1;       /* Indigo eletrizante */
  --accent-secondary: #a855f7;     /* Violeta neon */
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --accent-glow: 0 0 25px rgba(99, 102, 241, 0.45);
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-danger: #f43f5e;

  /* Tipografia & Cores de Texto */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Medidas */
  --sidebar-width: 260px;
  --player-height: 90px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transições Suaves */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
  user-select: none;
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 85%, rgba(168, 85, 247, 0.08) 0%, transparent 45%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ---------------- LAYOUT PRINCIPAL ---------------- */
.app-layout {
  display: flex;
  height: calc(100vh - var(--player-height));
  position: relative;
}

/* SIDEBAR */
.sidebar {
  width: var(--sidebar-width);
  background: rgba(11, 15, 26, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  gap: 28px;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
  transition: transform var(--transition-smooth);
}
.brand-logo:hover {
  transform: rotate(6deg) scale(1.05);
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 800;
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

/* MENU DE NAVEGAÇÃO */
.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  text-align: left;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.nav-item:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.nav-item.active svg {
  color: #a5b4fc;
}

.nav-count {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  color: var(--text-dim);
}

.active-job-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  margin-left: auto;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-dot 1.5s infinite;
}

.status-indicator {
  width: 8px;
  height: 8px;
  background: var(--text-dim);
  border-radius: 50%;
  margin-left: auto;
}
.status-indicator.online {
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

/* SIDEBAR STATUS CARD */
.sidebar-status-card {
  margin-top: auto;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.status-label {
  color: var(--text-dim);
  font-weight: 500;
}

.status-val {
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.status-val.success { color: var(--accent-emerald); }
.status-val.accent { color: #818cf8; }

/* ---------------- CONTEÚDO PRINCIPAL ---------------- */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* CABEÇALHO SUPERIOR */
.top-header {
  height: 72px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(7, 9, 15, 0.4);
  backdrop-filter: blur(16px);
  gap: 20px;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  width: 380px;
  transition: all var(--transition-fast);
}

.header-search:focus-within {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--accent-primary);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.2);
  width: 440px;
}

.header-search svg {
  width: 18px;
  height: 18px;
  color: var(--text-dim);
}

.header-search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  width: 100%;
}

.header-search input::placeholder {
  color: var(--text-dim);
}

.clear-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.9rem;
}
.clear-btn:hover { color: var(--text-main); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* BOTÕES GERAIS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  text-decoration: none;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary-gradient {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}
.btn-primary-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.5);
}
.btn-primary-gradient:active {
  transform: translateY(0);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  backdrop-filter: blur(8px);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger-glass {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fda4af;
}
.btn-danger-glass:hover {
  background: rgba(244, 63, 94, 0.25);
  color: #fff;
}

.btn-sm { padding: 7px 12px; font-size: 0.82rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius-lg); }

/* CONTAINER DE ABAS */
.tab-content-container {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}
.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 4px;
}

.view-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}
.form-select option {
  background: #111827;
  color: #fff;
}

.view-toggle-btns {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 3px;
}

.toggle-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all var(--transition-fast);
}
.toggle-btn svg { width: 16px; height: 16px; }
.toggle-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ---------------- GRADE DE MÚSICAS (BIBLIOTECA) ---------------- */
.songs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

/* Card Individual de Música */
.song-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 14px;
  transition: all var(--transition-smooth);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

.song-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.15);
}

.song-card.playing {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.15);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.3);
}

.card-cover-container {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
  background: #000;
}

.card-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.song-card:hover .card-cover {
  transform: scale(1.05);
}

/* Botão de Play sobreposto na capa */
.card-play-overlay {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}
.card-play-overlay svg { width: 22px; height: 22px; }

.song-card:hover .card-play-overlay,
.song-card.playing .card-play-overlay {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.card-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-artist {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.card-actions {
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.song-card:hover .card-actions {
  opacity: 1;
}

.action-icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.action-icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.action-icon-btn.delete-btn:hover {
  background: rgba(244, 63, 94, 0.3);
  color: #f43f5e;
}
.action-icon-btn svg { width: 14px; height: 14px; }

/* Visualização em Lista */
.songs-grid.list-mode {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.songs-grid.list-mode .song-card {
  flex-direction: row;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  gap: 16px;
}
.songs-grid.list-mode .card-cover-container {
  width: 48px;
  height: 48px;
  padding-bottom: 0;
  margin-bottom: 0;
  flex-shrink: 0;
}
.songs-grid.list-mode .card-play-overlay {
  display: none;
}
.songs-grid.list-mode .card-details {
  flex: 1;
  min-width: 0;
}
.songs-grid.list-mode .card-footer {
  margin-top: 0;
  gap: 20px;
}

/* ESTADO VAZIO */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  gap: 16px;
}

.empty-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
}
.empty-icon-wrap svg { width: 40px; height: 40px; }

.empty-state h2 { font-size: 1.4rem; font-weight: 700; }
.empty-state p { color: var(--text-muted); max-width: 440px; font-size: 0.95rem; }

/* ---------------- ABA DOWNLOADER ---------------- */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.input-url-group {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(11, 15, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  transition: all var(--transition-fast);
}
.input-url-group:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.input-url-icon svg {
  width: 22px;
  height: 22px;
  color: #818cf8;
}

.input-url-group input,
.input-url-group textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  min-height: 28px;
  line-height: 1.5;
}

.download-options-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 2fr;
  gap: 20px;
  margin-top: 24px;
}

.option-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.format-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 8px 6px;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
}
.chip:hover {
  background: rgba(255, 255, 255, 0.08);
}
.chip.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
}
.chip-title { font-size: 0.85rem; font-weight: 700; }
.chip-desc { font-size: 0.68rem; color: var(--text-dim); }

.toggle-box {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.toggle-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toggle-desc {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Switch estilizado */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .3s;
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .slider {
  background: var(--accent-gradient);
}
input:checked + .slider:before {
  transform: translateX(20px);
}

.form-footer {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}

/* CARD ATIVO DO DOWNLOAD */
.active-download-card {
  margin-top: 24px;
  border-left: 4px solid var(--accent-primary);
}

.download-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.download-live-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-emerald);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  animation: pulse-dot 1.2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.download-track-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.download-icon-pulse {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
}
.download-icon-pulse svg { width: 24px; height: 24px; }

.download-text-wrap {
  flex: 1;
  min-width: 0;
}
.download-text-wrap h3 {
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.download-submeta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.badge-tag {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
}

.download-percent-display {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.progress-bar-container {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
}

.logs-details {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.logs-details summary { cursor: pointer; }
.logs-console {
  margin-top: 8px;
  background: #000;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  max-height: 120px;
  overflow-y: auto;
  color: #10b981;
}

/* ---------------- ABA COOKIES / CONTA ---------------- */
.cookies-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.cookie-status-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-status-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cookie-status-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}
.cookie-status-icon.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}
.cookie-status-icon svg { width: 24px; height: 24px; }

.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0;
}

.steps-list li {
  display: flex;
  gap: 14px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.steps-list a {
  color: #818cf8;
  text-decoration: none;
}
.steps-list a:hover { text-decoration: underline; }

.cookie-input-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.cookie-input-area textarea {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  outline: none;
}
.cookie-input-area textarea:focus {
  border-color: var(--accent-primary);
}

#btn-save-cookies {
  align-self: flex-start;
  margin-top: 6px;
}

/* ---------------- ABA REMOTO / CELULAR ---------------- */
.remote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.pill-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  border: 1px solid rgba(99, 102, 241, 0.3);
}
.accent-pill {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.3);
}

.qr-code-wrapper {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.qr-container {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  display: inline-block;
}

.network-links {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.network-hint { font-size: 0.8rem; color: var(--text-dim); }
.ip-boxes {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ip-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feature-item {
  display: flex;
  gap: 16px;
  margin-top: 18px;
}
.feature-icon {
  font-size: 1.6rem;
  background: rgba(255, 255, 255, 0.04);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-body h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.feature-body p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.4; }

/* ---------------- PLAYER BAR INFERIOR (BOTTOM) ---------------- */
.player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--player-height);
  background: rgba(11, 15, 26, 0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 100;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.6);
}

/* Esquerda: Info da Faixa */
.player-track-info,
.player-track-left {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 280px;
  min-width: 0;
}

.track-cover-wrap,
.player-cover-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  min-width: 56px;
  max-width: 56px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.track-cover,
#player-cover,
.player-cover-wrap img {
  width: 100%;
  height: 100%;
  max-width: 56px;
  max-height: 56px;
  object-fit: cover;
  display: block;
}

/* Indicador de ondas sonoras */
.sound-wave-indicator,
.soundwave-anim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.sound-wave-indicator span,
.soundwave-anim span {
  width: 3px;
  background: var(--accent-primary);
  border-radius: 2px;
  animation: soundBars 1s infinite ease-in-out;
}
.sound-wave-indicator span:nth-child(1), .soundwave-anim span:nth-child(1) { height: 12px; animation-delay: 0.1s; }
.sound-wave-indicator span:nth-child(2), .soundwave-anim span:nth-child(2) { height: 20px; animation-delay: 0.3s; }
.sound-wave-indicator span:nth-child(3), .soundwave-anim span:nth-child(3) { height: 16px; animation-delay: 0.2s; }
.sound-wave-indicator span:nth-child(4), .soundwave-anim span:nth-child(4) { height: 8px; animation-delay: 0.4s; }

@keyframes soundBars {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

.track-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.track-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Centro: Controles & Linha do Tempo */
.player-controls-center {
  flex: 1;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.player-buttons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.control-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  transition: all var(--transition-fast);
}
.control-btn:hover {
  color: #fff;
  transform: scale(1.1);
}
.control-btn.active {
  color: var(--accent-primary);
}
.control-btn svg { width: 18px; height: 18px; }

.play-btn-main {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: #090d16;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.25);
}
.play-btn-main:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}
.play-btn-main:active {
  transform: scale(0.96);
}
.play-btn-main svg { width: 20px; height: 20px; }

/* Linha do tempo */
.player-timeline {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.time-stamp {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  width: 38px;
  text-align: center;
}

.timeline-slider-wrap {
  flex: 1;
  height: 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.timeline-slider-bg {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  position: relative;
  transition: height 0.15s ease;
}
.timeline-slider-wrap:hover .timeline-slider-bg {
  height: 6px;
}

.timeline-slider-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  pointer-events: none;
}

.timeline-thumb {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.15s ease;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
.timeline-slider-wrap:hover .timeline-thumb {
  transform: translate(-50%, -50%) scale(1);
}

/* Direita: Volume & Ações */
.player-actions-right {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 240px;
  justify-content: flex-end;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-slider-wrap {
  width: 80px;
  display: flex;
  align-items: center;
}

#volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  cursor: pointer;
}
#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* ---------------- TOAST NOTIFICAÇÕES ---------------- */
.toast-container {
  position: fixed;
  bottom: calc(var(--player-height) + 20px);
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
  pointer-events: none;
}

.toast {
  background: rgba(20, 27, 45, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  color: #fff;
  font-size: 0.88rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
  pointer-events: auto;
}
.toast.success { border-left-color: var(--accent-emerald); }
.toast.error { border-left-color: var(--accent-danger); }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOut {
  to { opacity: 0; transform: translateY(-8px); }
}

/* ---------------- RESPONSIVIDADE MOBILE / CELULAR ---------------- */
@media (max-width: 860px) {
  .app-layout {
    flex-direction: column;
    height: calc(100vh - var(--player-height) - 64px);
  }

  .sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    position: fixed;
    bottom: var(--player-height);
    left: 0;
    right: 0;
    padding: 8px 16px;
    background: rgba(11, 15, 26, 0.95);
    border-right: none;
    border-top: 1px solid var(--border-glass);
    z-index: 90;
    gap: 0;
  }

  .brand, .sidebar-status-card { display: none; }

  .nav-menu {
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
  }

  .nav-item {
    flex-direction: column;
    gap: 4px;
    padding: 6px 12px;
    font-size: 0.72rem;
  }
  .nav-item svg { width: 18px; height: 18px; }
  .nav-count { display: none; }

  .top-header {
    padding: 0 16px;
  }
  .header-search {
    width: 100%;
  }
  .header-search:focus-within {
    width: 100%;
  }

  .tab-content-container {
    padding: 16px;
  }

  .download-options-grid {
    grid-template-columns: 1fr;
  }

  .remote-grid {
    grid-template-columns: 1fr;
  }

  .player-actions-right {
    display: none;
  }

  .player-bar {
    padding: 0 16px;
  }
  .player-track-info {
    width: auto;
    max-width: 50%;
  }
}

/* ===================================================================
   LUNAMIX - FAMILY & PLAYLISTS DESIGN EXTENSION
   =================================================================== */

/* Perfil do Usuário na Sidebar */
.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin: 12px 16px 16px 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.user-profile-badge:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}
.user-avatar-mini {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
  flex-shrink: 0;
}
.user-info-mini {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}
.user-name-mini {
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-role-mini {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.chevron-switch {
  width: 16px;
  height: 16px;
  color: var(--text-dim);
  transition: transform var(--transition-fast);
}
.user-profile-badge:hover .chevron-switch {
  color: #fff;
  transform: translateX(2px);
}

/* Filtros por Chips na Biblioteca */
.library-filter-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 16px;
  scrollbar-width: thin;
}
.library-filter-chips::-webkit-scrollbar {
  height: 4px;
}
.filter-chip-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}
.filter-chip-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.filter-chip-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.35);
}

/* Abas de Escopo da Playlist */
.playlist-scope-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 12px;
  overflow-x: auto;
}
.scope-tab {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.scope-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.scope-tab.active {
  color: #fff;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.4);
}

/* Grid de Playlists */
.playlists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}
.playlist-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.playlist-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(99, 102, 241, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.2);
}
.playlist-cover-wrap {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  display: flex;
  align-items: center;
  justify-content: center;
}
.playlist-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}
.playlist-card:hover .playlist-cover-img {
  transform: scale(1.05);
}
.playlist-cover-fallback {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.4);
}
.playlist-play-overlay {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 16px rgba(99, 102, 241, 0.6);
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition-fast);
}
.playlist-card:hover .playlist-play-overlay {
  opacity: 1;
  transform: translateY(0);
}
.playlist-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.playlist-title {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.playlist-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.badge-family {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.7rem;
}
.badge-personal {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.7rem;
}

/* Destino de Download */
.download-destination-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}
.destination-header {
  margin-bottom: 12px;
}
.destination-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dest-sublabel {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast);
}
.form-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

/* Modais Universais */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease-out;
}
.modal-card {
  background: #0d1220;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(99, 102, 241, 0.25);
  width: 100%;
  max-width: 520px;
  padding: 28px;
  position: relative;
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleUp {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 12px;
}
.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}
.modal-close-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.modal-actions-right {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

/* Netflix Style Profile Picker */
.modal-profiles-dialog {
  max-width: 720px;
  text-align: center;
  background: #0a0d17;
  padding: 40px 32px;
}
.netflix-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 40%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.netflix-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
}
.profiles-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 36px;
}
.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all var(--transition-smooth);
}
.profile-card:hover {
  transform: scale(1.08);
}
.profile-avatar-box {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  background: linear-gradient(135deg, #312e81, #1e1b4b);
  border: 3px solid transparent;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  position: relative;
  transition: all var(--transition-fast);
}
.profile-card:hover .profile-avatar-box {
  border-color: #fff;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
}
.profile-card.active .profile-avatar-box {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.5);
}
.profile-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.profile-card:hover .profile-name {
  color: #fff;
}
.profile-pin-lock {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #eab308;
}
.profile-pin-lock svg {
  width: 12px;
  height: 12px;
}
.modal-profiles-footer {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* PIN Modal */
.modal-pin-dialog {
  max-width: 380px;
  text-align: center;
  padding: 32px 24px;
}
.pin-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px auto;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}
.pin-sub {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
  margin-bottom: 24px;
}
.pin-inputs-wrap input {
  font-size: 2.2rem;
  letter-spacing: 16px;
  text-align: center;
  width: 180px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-mono);
  outline: none;
}
.pin-inputs-wrap input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}
.pin-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

/* Seletor de Avatar em Chips */
.avatar-chips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 6px;
}
.avatar-chip {
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.avatar-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}
.avatar-chip.active {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.2);
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.4);
}

/* Radio Group Cards */
.radio-group-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.radio-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.radio-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 102, 241, 0.4);
}
.radio-card input {
  margin-top: 4px;
  accent-color: var(--accent-primary);
}
.radio-card-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.radio-card-content strong {
  font-size: 0.9rem;
  color: #fff;
}
.radio-card-content span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Botão Favoritar no Player e na Tabela */
.song-fav-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  padding: 6px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.song-fav-btn:hover {
  color: #f43f5e;
  transform: scale(1.15);
}
.song-fav-btn.active {
  color: #f43f5e;
}
.song-fav-btn.active svg {
  fill: #f43f5e;
}
#btn-favorite-current.active svg {
  fill: #f43f5e;
  color: #f43f5e;
}

/* ===================================================================
   PORTÃO DE ENTRADA DA FAMÍLIA (SENHA MESTRA) & SEGURANÇA
   =================================================================== */

/* Container de Perfil e Botões na Sidebar */
.sidebar-user-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-user-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-sidebar-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 7px 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-sidebar-sub svg {
  width: 14px;
  height: 14px;
}

.btn-sidebar-sub:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: #fff;
  transform: translateY(-1px);
}

.btn-sidebar-sub.danger:hover {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.4);
  color: #f43f5e;
}

.btn-sidebar-lock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 12px;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.btn-sidebar-lock svg {
  width: 14px;
  height: 14px;
}

.btn-sidebar-lock:hover {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.35);
  color: #f43f5e;
  transform: translateY(-1px);
}

/* TELA DO PORTÃO DE ENTRADA (FULLSCREEN OVERLAY) */
.master-gate-screen {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background-color: #07090f;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.master-gate-screen.gate-closing {
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
}

.master-gate-backdrop {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(168, 85, 247, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.06) 0%, transparent 60%);
  z-index: 1;
}

/* Glowing Floating Orbs */
.master-gate-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
  animation: orbFloat 14s ease-in-out infinite alternate;
}

.master-gate-glow-orb.orb-1 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
  top: 10%;
  left: 20%;
}

.master-gate-glow-orb.orb-2 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 70%);
  bottom: 10%;
  right: 20%;
  animation-duration: 18s;
  animation-direction: alternate-reverse;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* Card Principal do Portão */
.master-gate-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  background: rgba(14, 19, 34, 0.82);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.7),
    0 0 50px rgba(99, 102, 241, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  padding: 40px 36px;
  animation: gateCardPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes gateCardPop {
  0% { opacity: 0; transform: translateY(24px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.master-gate-header {
  text-align: center;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.master-gate-logo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 22px auto;
}

.master-gate-logo {
  width: 120px;
  height: 120px;
  border-radius: 30px;
  object-fit: cover;
  box-shadow: 
    0 16px 45px rgba(99, 102, 241, 0.6),
    0 0 50px rgba(168, 85, 247, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 16px 45px rgba(99, 102, 241, 0.6), 0 0 50px rgba(168, 85, 247, 0.45); }
  50% { transform: scale(1.04); box-shadow: 0 20px 55px rgba(168, 85, 247, 0.75), 0 0 60px rgba(99, 102, 241, 0.65); }
}

.master-gate-shield-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 3px solid #0e1322;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65);
}

.master-gate-shield-badge svg {
  width: 18px;
  height: 18px;
}

.master-gate-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #a5b4fc;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.master-gate-pill .gate-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.master-gate-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 30%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.master-gate-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 360px;
  margin: 0 auto;
}

/* Formulário do Portão */
.master-gate-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.master-form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.master-form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.master-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.master-input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  pointer-events: none;
  transition: color var(--transition-fast);
}

.master-input-wrapper input {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 13px 44px 13px 44px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.master-input-wrapper input:focus {
  border-color: var(--accent-primary);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.master-input-wrapper input:focus ~ .master-input-icon {
  color: var(--accent-primary);
}

.master-eye-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.master-eye-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.master-eye-btn svg {
  width: 18px;
  height: 18px;
}

/* Opção Lembrar Neste Aparelho */
.master-remember-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
}

.master-remember-box:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(99, 102, 241, 0.3);
}

.master-remember-box input {
  display: none;
}

.master-remember-custom {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all var(--transition-fast);
}

.master-remember-box input:checked ~ .master-remember-custom {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.master-remember-custom::after {
  content: '';
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  display: none;
  margin-top: -2px;
}

.master-remember-box input:checked ~ .master-remember-custom::after {
  display: block;
}

.master-remember-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.remember-main {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}

.remember-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Banner de Erro */
.master-gate-error {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fca5a5;
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font-size: 0.85rem;
  animation: gateShake 0.4s ease-in-out;
}

.master-gate-error svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent-danger);
}

@keyframes gateShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* Botão Abrir o Portão */
.master-btn-enter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
  transition: all var(--transition-smooth);
}

.master-btn-enter:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(168, 85, 247, 0.6);
  filter: brightness(1.08);
}

.master-btn-enter:active {
  transform: translateY(0);
}

.master-btn-enter svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.master-btn-enter:hover svg {
  transform: translateX(4px);
}

.master-btn-enter:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Dica amigável no rodapé do portão */
.master-gate-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.master-gate-hint code {
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
  padding: 2px 5px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 600;
}

/* CARD DE SEGURANÇA NA ABA CONTA */
.master-security-card {
  margin-top: 24px;
}

.master-change-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

.master-change-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* ================= GERENCIAR E EDITAR PERFIS ================= */

.profile-card {
  position: relative;
}

.profile-edit-badge-btn {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-gradient);
  border: 2px solid #0e1322;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  transition: all var(--transition-fast);
  z-index: 10;
}

.profile-edit-badge-btn svg {
  width: 15px;
  height: 15px;
}

.profile-edit-badge-btn:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
}

.is-managing-profiles .profile-edit-badge-btn {
  display: flex;
  animation: pulseEditBadge 1.8s infinite;
}

@keyframes pulseEditBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); box-shadow: 0 0 14px rgba(168, 85, 247, 0.8); }
}

.btn-danger-glass {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fca5a5;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-danger-glass svg {
  width: 16px;
  height: 16px;
}

.btn-danger-glass:hover {
  background: rgba(244, 63, 94, 0.25);
  color: #fff;
  border-color: rgba(244, 63, 94, 0.6);
}

.modal-actions-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.modal-title-with-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 5px;
  display: block;
}

/* ---------------- ÍCONES DE PASTAS GLOWING (NÃO AMARELO DO EXPLORER) ---------------- */
.chip-folder-svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent-cyan);
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.5));
  transition: all var(--transition-fast);
}

.filter-chip-btn:hover .chip-folder-svg {
  stroke: #fff;
  filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.8));
}

.filter-chip-btn.active .chip-folder-svg {
  stroke: #fff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9));
}

/* Cabeçalho com ações da playlist ativa */
.title-with-actions-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  gap: 6px;
}

/* Modais de Gerenciamento */
.modal-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 18px 0;
}

.input-with-button-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.input-with-button-row .form-input {
  flex: 1;
}

.move-scope-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.move-scope-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  padding: 12px 16px;
  text-align: left;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
}

.move-scope-btn svg {
  width: 18px;
  height: 18px;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.delete-scope-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.danger-btn {
  color: #fca5a5;
  border-color: rgba(244, 63, 94, 0.3);
}

.danger-btn:hover {
  background: rgba(244, 63, 94, 0.15);
  color: #fff;
}

.btn-danger-gradient {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: none;
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.btn-danger-gradient:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.5);
}

.btn-danger-gradient svg {
  width: 16px;
  height: 16px;
}

/* Ações nos cards de Playlist */
.playlist-card-top-bar {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
  z-index: 5;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.playlist-card:hover .playlist-card-top-bar {
  opacity: 1;
}

.btn-playlist-mini-action {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-playlist-mini-action:hover {
  background: var(--accent-primary);
  transform: scale(1.1);
}

.btn-playlist-mini-action.danger:hover {
  background: var(--accent-danger);
}

.btn-playlist-mini-action svg {
  width: 13px;
  height: 13px;
}

/* ---------------- HERO DE PLAYLIST ESTILO YOUTUBE MUSIC (IMAGEM 2) ---------------- */
.ytm-playlist-hero {
  display: flex;
  gap: 32px;
  align-items: flex-end;
  margin-bottom: 28px;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  animation: fadeIn 0.3s ease;
}

.ytm-hero-cover-container {
  width: 200px;
  height: 200px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ytm-hero-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ytm-hero-fallback-icon svg {
  width: 64px;
  height: 64px;
  color: var(--accent-cyan);
}

.ytm-hero-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.ytm-hero-badge {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  color: #38bdf8;
}

.ytm-hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin: 0;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.ytm-hero-meta {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.ytm-hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  align-items: center;
}

.btn-ytm-play-big {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #000;
  border: none;
  padding: 12px 28px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ytm-play-big svg {
  width: 18px;
  height: 18px;
}

.btn-ytm-play-big:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.35);
}

.btn-ytm-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 22px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ytm-action-pill svg {
  width: 16px;
  height: 16px;
}

.btn-ytm-action-pill:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.03);
}

/* ---------------- TELA TOCANDO AGORA / NOW PLAYING (IMAGEM 1) ---------------- */
.btn-expand-now-playing {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-left: 6px;
  transition: all var(--transition-fast);
}

.btn-expand-now-playing:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-2px);
}

.now-playing-overlay {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  bottom: var(--player-height);
  background: #030712;
  z-index: 90;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.6);
}

.now-playing-overlay.active {
  transform: translateY(0);
}

.np-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.np-top-tabs {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px;
  border-radius: 9999px;
}

.np-top-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 24px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.np-top-tab.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.np-main-content {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  flex: 1;
  overflow: hidden;
  padding: 32px 48px;
  gap: 48px;
}

.np-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 580px;
  margin: 0 auto;
  width: 100%;
}

.np-cover-box {
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 380px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  background: #111;
}

.np-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.np-cover-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.15), transparent 70%);
  pointer-events: none;
}

.np-info-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}

.np-titles {
  min-width: 0;
  flex: 1;
}

.np-track-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.np-track-artist {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.np-fav-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.np-fav-btn svg {
  width: 24px;
  height: 24px;
}

.np-fav-btn.active {
  color: var(--accent-danger);
}

.np-fav-btn.active svg {
  fill: currentColor;
}

.np-progress-bar-wrap {
  width: 100%;
  margin-top: 24px;
}

.np-timeline-slider {
  height: 6px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.np-timeline-fill {
  height: 100%;
  background: #fff;
  width: 0%;
  border-radius: 3px;
  transition: width 0.1s linear;
}

.np-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.np-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 20px;
  width: 100%;
}

.np-play-main {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.np-play-main svg {
  width: 28px;
  height: 28px;
}

.np-play-main:hover {
  transform: scale(1.08);
}

.np-ctrl-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.np-ctrl-btn svg {
  width: 22px;
  height: 22px;
}

.np-ctrl-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.np-ctrl-btn.active {
  color: var(--accent-primary);
}

.np-queue-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.np-queue-panel-header {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.np-queue-subhead {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.np-queue-current-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-top: 4px;
}

.np-queue-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.np-queue-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.np-queue-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.np-queue-item.active {
  background: rgba(99, 102, 241, 0.25);
  border-left: 4px solid var(--accent-primary);
}

.np-q-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.np-q-info {
  flex: 1;
  min-width: 0;
}

.np-q-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-q-artist {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-q-duration {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 8px;
}

@media (max-width: 900px) {
  .app-layout {
    flex-direction: column;
    padding-bottom: 70px;
  }

  .sidebar {
    width: 100% !important;
    height: 58px !important;
    flex-direction: row !important;
    position: fixed !important;
    bottom: var(--player-height) !important;
    left: 0 !important;
    right: 0 !important;
    padding: 2px 8px !important;
    background: rgba(11, 15, 26, 0.98) !important;
    border-right: none !important;
    border-top: 1px solid var(--border-glass) !important;
    z-index: 80 !important;
    align-items: center !important;
  }

  .brand, 
  .sidebar-status-card,
  .sidebar-user-block,
  .sidebar-user-quick-actions { 
    display: none !important; 
  }

  .nav-menu {
    flex-direction: row !important;
    justify-content: space-around !important;
    width: 100% !important;
  }

  .nav-item {
    flex-direction: column !important;
    gap: 3px !important;
    padding: 6px 10px !important;
    font-size: 0.72rem !important;
  }

  .nav-item svg { width: 18px !important; height: 18px !important; }
  .nav-count { display: none !important; }

  .now-playing-overlay {
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: var(--player-height) !important;
    width: 100% !important;
    z-index: 95 !important;
  }

  .np-top-bar {
    padding: 12px 16px;
  }

  .np-main-content {
    grid-template-columns: 1fr;
    padding: 16px 14px;
    gap: 16px;
    overflow-y: auto;
  }

  .np-queue-panel {
    display: none;
  }

  .np-stage {
    max-width: 100%;
  }

  .np-cover-box {
    max-height: 250px;
  }

  .np-track-title {
    font-size: 1.25rem;
  }

  .np-track-artist {
    font-size: 0.9rem;
  }

  .np-controls-row {
    gap: 18px;
    margin-top: 14px;
  }

  .np-play-main {
    width: 52px;
    height: 52px;
  }

  .np-play-main svg {
    width: 24px;
    height: 24px;
  }

  .ytm-playlist-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 14px;
    gap: 14px;
  }

  .ytm-hero-cover-container {
    width: 140px;
    height: 140px;
  }

  .ytm-hero-title {
    font-size: 1.6rem;
    white-space: normal;
    text-align: center;
  }

  .ytm-hero-meta {
    text-align: center;
    font-size: 0.85rem;
  }

  .ytm-hero-actions {
    justify-content: center;
    width: 100%;
  }
}



