/* ===========================================================
   SUNO MUSIC PAGE — Styles
   Design inspirado no Suno AI com funcionalidade AI33/Minimax
   =========================================================== */

/* ---- Menu lateral: badge NEW do Suno ---- */
.nav-provider-suno .nav-section-toggle {
  position: relative;
  overflow: visible;
  border-radius: 10px;
  border: 1px solid rgba(168, 85, 247, 0.45);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(168, 85, 247, 0.08));
  animation: sunoNavGlow 2.4s ease-in-out infinite;
}

.nav-provider-suno .nav-section-toggle:hover {
  border-color: rgba(192, 132, 252, 0.8);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(168, 85, 247, 0.14));
}

.nav-provider-suno .nav-provider-dot {
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.9);
}

@keyframes sunoNavGlow {
  0%, 100% { box-shadow: 0 0 8px 1px rgba(139, 92, 246, 0.40), inset 0 0 6px rgba(168, 85, 247, 0.10); }
  50% { box-shadow: 0 0 22px 4px rgba(168, 85, 247, 0.85), inset 0 0 10px rgba(168, 85, 247, 0.22); }
}
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #7c3aed, #a855f7, #c084fc);
  color: #fff;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.65);
  animation: sunoNavBadgePulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes sunoNavBadgePulse {
  0%, 100% { box-shadow: 0 0 8px rgba(168, 85, 247, 0.5); }
  50% { box-shadow: 0 0 18px 2px rgba(168, 85, 247, 0.85); }
}

@media (prefers-reduced-motion: reduce) {
  .suno-nav-new-badge { animation: none; }
  .nav-provider-suno .nav-section-toggle { animation: none; }
}

/* ---- Layout principal da página Suno ---- */
#page-suno-music {
  display: none;
  height: 100%;
  flex-direction: column;
}

#page-suno-music.active {
  display: flex;
}

.suno-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  height: calc(100vh - var(--topbar-h) - 72px); /* 72px = player height */
  overflow: hidden;
  background: #0f0f10;
}

/* ---- Sidebar de criação (esquerda) ---- */
.suno-creator {
  display: flex;
  flex-direction: column;
  background: #111112;
  border-right: 1px solid rgba(255,255,255,0.07);
  overflow-y: auto;
  padding: 20px 16px 24px;
  gap: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(168,85,247,0.3) transparent;
}

.suno-creator::-webkit-scrollbar { width: 4px; }
.suno-creator::-webkit-scrollbar-track { background: transparent; }
.suno-creator::-webkit-scrollbar-thumb { background: rgba(168,85,247,0.4); border-radius: 4px; }

/* Abas Simple/Advanced/Sounds no topo */
.suno-tabs {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 20px;
}

.suno-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
  font-family: var(--font);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.suno-tab-btn:hover {
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.06);
}

.suno-tab-btn.active {
  background: rgba(168, 85, 247, 0.18);
  color: #d8b4fe;
  border: 1px solid rgba(168,85,247,0.3);
}

.suno-tab-btn .suno-new-label {
  font-size: 8px;
  background: #7c3aed;
  color: #fff;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

/* Painéis de conteúdo das abas */
.suno-panel {
  display: none;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.suno-panel.active {
  display: flex;
}

/* Labels e campos */
.suno-field-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 6px;
  display: block;
}

.suno-field-collapsible {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  overflow: hidden;
}

.suno-field-collapsible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  user-select: none;
}

.suno-field-collapsible-header:hover { background: rgba(255,255,255,0.04); }

.suno-collapse-body {
  padding: 0 14px 14px;
}

.suno-textarea {
  width: 100%;
  min-height: 90px;
  background: transparent;
  border: none;
  resize: none;
  font-size: 13px;
  color: #e8e0f0;
  font-family: var(--font);
  line-height: 1.6;
  outline: none;
  padding: 0;
  box-sizing: border-box;
}

.suno-textarea::placeholder {
  color: rgba(255,255,255,0.22);
}

.suno-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: #e8e0f0;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.suno-input:focus {
  border-color: rgba(168,85,247,0.5);
}

.suno-input::placeholder {
  color: rgba(255,255,255,0.22);
}

/* Suggestions/Tags */
.suno-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.suno-tag-chip {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  padding: 4px 11px;
  cursor: pointer;
  transition: all 0.18s;
  font-family: var(--font);
  white-space: nowrap;
}

.suno-tag-chip:hover {
  background: rgba(168,85,247,0.15);
  border-color: rgba(168,85,247,0.4);
  color: #d8b4fe;
}

/* Toggle Instrumental */
.suno-instrumental-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.suno-instrumental-label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

.suno-toggle-switch {
  position: relative;
  width: 40px;
  height: 22px;
  cursor: pointer;
}

.suno-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.suno-toggle-track {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  border-radius: 11px;
  transition: background 0.2s;
}

.suno-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

.suno-toggle-switch input:checked + .suno-toggle-track {
  background: #7c3aed;
}

.suno-toggle-switch input:checked + .suno-toggle-track::after {
  transform: translateX(18px);
}

/* Vocal Gender selector */
.suno-vocal-row {
  display: flex;
  gap: 6px;
}

.suno-vocal-btn {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.18s;
  font-family: var(--font);
}

.suno-vocal-btn:hover {
  background: rgba(168,85,247,0.1);
  color: #d8b4fe;
}

.suno-vocal-btn.active {
  background: rgba(168,85,247,0.18);
  border-color: rgba(168,85,247,0.4);
  color: #d8b4fe;
}

/* Audio input row (+Audio, +Voice, +Inspo) */
.suno-audio-inputs {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}

.suno-audio-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: all 0.18s;
  font-family: var(--font);
}

.suno-audio-btn:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
}

.suno-audio-btn .material-icons-round {
  font-size: 15px;
}

/* Botão Create */
.suno-create-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #6d28d9, #7c3aed, #9333ea);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s;
  font-family: var(--font);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
  margin-top: auto;
}

.suno-create-btn:hover {
  background: linear-gradient(135deg, #7c3aed, #9333ea, #a855f7);
  box-shadow: 0 6px 28px rgba(124,58,237,0.6);
  transform: translateY(-1px);
}

.suno-create-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.suno-create-btn.loading {
  pointer-events: none;
  animation: sunoCreatePulse 1.4s ease-in-out infinite;
}

@keyframes sunoCreatePulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.55; }
}

/* Créditos embaixo do botão */
.suno-credit-info {
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.28);
  margin-top: 8px;
}

.suno-credit-info strong {
  color: rgba(168,85,247,0.9);
}

/* ---- Workspace/Histórico (direita) ---- */
.suno-workspace {
  display: flex;
  flex-direction: column;
  background: #0a0a0b;
  overflow: hidden;
}

.suno-workspace-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.suno-workspace-breadcrumb {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.suno-workspace-breadcrumb span {
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}

.suno-workspace-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 7px 12px;
  min-width: 200px;
}

.suno-workspace-search input {
  background: transparent;
  border: none;
  font-size: 13px;
  color: #e8e0f0;
  font-family: var(--font);
  outline: none;
  width: 100%;
}

.suno-workspace-search input::placeholder {
  color: rgba(255,255,255,0.22);
}

.suno-workspace-search .material-icons-round {
  font-size: 17px;
  color: rgba(255,255,255,0.3);
}

.suno-workspace-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.suno-filter-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.18s;
  font-family: var(--font);
  display: flex;
  align-items: center;
  gap: 5px;
}

.suno-filter-btn:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
}

.suno-filter-btn.active {
  background: rgba(168,85,247,0.14);
  border-color: rgba(168,85,247,0.35);
  color: #d8b4fe;
}

/* Track list */
.suno-track-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(168,85,247,0.2) transparent;
}

.suno-track-list::-webkit-scrollbar { width: 4px; }
.suno-track-list::-webkit-scrollbar-track { background: transparent; }
.suno-track-list::-webkit-scrollbar-thumb { background: rgba(168,85,247,0.3); border-radius: 4px; }

.suno-track-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 200px;
  color: rgba(255,255,255,0.25);
  font-size: 14px;
}

.suno-track-empty .material-icons-round {
  font-size: 48px;
  opacity: 0.3;
}

/* Grupo de geração: 2 clips irmãos lidos como um único bloco visual */
.suno-track-group {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  margin: 8px 16px;
  overflow: hidden;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}

.suno-track-group::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(168,85,247,0.5), rgba(124,58,237,0.2));
  opacity: 0.5;
  transition: opacity 0.15s;
}

.suno-track-group:hover {
  border-color: rgba(168,85,247,0.18);
  background: rgba(255,255,255,0.035);
}

.suno-track-group:hover::before {
  opacity: 1;
}

/* Divisória interna entre os 2 clips irmãos do mesmo grupo */
.suno-track-group .suno-track-item + .suno-track-item {
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* Item de faixa individual */
.suno-track-item {
  display: grid;
  grid-template-columns: 22px 46px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}

.suno-track-item:hover {
  background: rgba(255,255,255,0.03);
}

.suno-track-item.playing {
  background: rgba(168,85,247,0.06);
}

/* Capa da faixa */
.suno-track-cover {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(255,255,255,0.08);
}

/* Motivo de disco de vinil da capa-fallback: círculo escuro central, sulcos
   concêntricos finos e ponto-furo brilhante. Fica ABAIXO do <img> (z-index:2)
   e do overlay (z-index:3), então só aparece quando não há imagem real. */
.suno-track-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(0,0,0,0.0) 14%, rgba(0,0,0,0.28) 15%, rgba(0,0,0,0.0) 16%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 0 2px, transparent 2px 5px),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.85) 0 2.5px, transparent 3px);
}

/* Brilho/vinheta da capa-fallback para parecer arte de álbum desenhada */
.suno-track-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  z-index: 1;
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,0.32), transparent 58%),
    radial-gradient(circle at 80% 92%, rgba(0,0,0,0.42), transparent 55%),
    radial-gradient(circle at 50% 50%, transparent 60%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
}

/* Quando há imagem real, a vinheta fica discreta (o img cobre o gradiente) */
.suno-track-cover img + .suno-track-play-overlay ~ .material-icons-round {
  display: none;
}

.suno-track-cover .material-icons-round {
  color: rgba(255,255,255,0.65);
  text-shadow: 0 0 12px rgba(255,255,255,0.45), 0 1px 2px rgba(0,0,0,0.4);
  position: relative;
  z-index: 1;
}

.suno-track-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  position: relative;
  z-index: 2;
}

.suno-track-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
  border-radius: 10px;
  z-index: 3;
}

.suno-track-item:hover .suno-track-play-overlay,
.suno-track-item.playing .suno-track-play-overlay {
  opacity: 1;
}

.suno-track-play-overlay .material-icons-round {
  font-size: 22px;
  color: #fff;
}

/* Spinner para faixas em geração */
.suno-track-spinner {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  border: 2px solid rgba(168,85,247,0.2);
  border-top-color: #a855f7;
  animation: sunoSpin 1s linear infinite;
  flex-shrink: 0;
}

@keyframes sunoSpin {
  to { transform: rotate(360deg); }
}

/* Info da faixa */
.suno-track-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.suno-track-title {
  font-size: 14px;
  font-weight: 600;
  color: #e8e0f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suno-track-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.suno-track-style {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}

.suno-track-status-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.suno-track-status-badge.done {
  background: rgba(52,211,153,0.12);
  color: #34d399;
  border: 1px solid rgba(52,211,153,0.25);
}

.suno-track-status-badge.doing,
.suno-track-status-badge.waiting {
  background: rgba(168,85,247,0.12);
  color: #c084fc;
  border: 1px solid rgba(168,85,247,0.25);
  animation: sunoStatusPulse 1.6s ease-in-out infinite;
}

.suno-track-status-badge.error {
  background: rgba(248,113,113,0.12);
  color: #f87171;
  border: 1px solid rgba(248,113,113,0.25);
}

@keyframes sunoStatusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Duração (minutagem) — coluna alinhada à direita com números tabulares */
.suno-track-duration {
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Créditos */
.suno-track-credits {
  font-size: 11px;
  color: rgba(168,85,247,0.7);
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
}

/* Actions (download, delete) — última coluna, à direita */
.suno-track-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  opacity: 0.55;
  transition: opacity 0.15s;
}

.suno-track-item:hover .suno-track-actions {
  opacity: 1;
}

.suno-track-action-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  color: rgba(255,255,255,0.4);
  transition: all 0.15s;
  display: flex;
  align-items: center;
}

.suno-track-action-btn:hover {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.85);
}

.suno-track-action-btn .material-icons-round {
  font-size: 17px;
}

/* Barra de progresso de processamento inline */
.suno-track-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #7c3aed, #a855f7, #c084fc);
  border-radius: 0 1px 0 0;
  transition: width 0.5s ease;
  box-shadow: 0 0 6px rgba(168,85,247,0.6);
}

/* ---- Player global (rodapé) ---- */
.suno-player {
  height: 72px;
  background: #161618;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}

.suno-player-cover {
  width: 44px;
  height: 44px;
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

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

.suno-player-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 140px;
  max-width: 200px;
}

.suno-player-title {
  font-size: 13px;
  font-weight: 600;
  color: #e8e0f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suno-player-style {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suno-player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
  max-width: 600px;
  flex-direction: column;
}

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

.suno-player-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 7px;
  border-radius: 50%;
  color: rgba(255,255,255,0.55);
  transition: all 0.15s;
  display: flex;
  align-items: center;
}

.suno-player-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
}

.suno-player-btn.play-btn {
  width: 38px;
  height: 38px;
  background: rgba(168,85,247,0.2);
  border: 1px solid rgba(168,85,247,0.4);
  color: #d8b4fe;
}

.suno-player-btn.play-btn:hover {
  background: rgba(168,85,247,0.35);
  color: #fff;
}

.suno-player-btn .material-icons-round {
  font-size: 20px;
}

.suno-player-btn.play-btn .material-icons-round {
  font-size: 22px;
}

/* Progress bar do player */
.suno-player-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.suno-player-time {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  font-variant-numeric: tabular-nums;
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}

.suno-player-track {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  overflow: visible;
}

.suno-player-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #a855f7);
  border-radius: 3px;
  transition: width 0.1s linear;
}

.suno-player-track:hover .suno-player-fill {
  background: linear-gradient(90deg, #9333ea, #c084fc);
}

/* Thumb visível no hover */
.suno-player-track::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateX(-50%);
  left: var(--suno-progress, 0%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d8b4fe;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}

.suno-player-track:hover::after {
  opacity: 1;
}

/* Volume */
.suno-player-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.suno-player-vol-track {
  width: 80px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}

.suno-player-vol-fill {
  height: 100%;
  background: rgba(168,85,247,0.6);
  border-radius: 3px;
  width: 70%;
}

/* Estado oculto do player quando nada toca */
.suno-player.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ---- Indicador de waveform animado (quando em playing) ---- */
.suno-waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 16px;
}

.suno-waveform span {
  display: block;
  width: 2px;
  background: #a855f7;
  border-radius: 1px;
  animation: sunoWave 0.9s ease-in-out infinite;
}

.suno-waveform span:nth-child(2) { animation-delay: 0.15s; }
.suno-waveform span:nth-child(3) { animation-delay: 0.3s; }
.suno-waveform span:nth-child(4) { animation-delay: 0.45s; }
.suno-waveform span:nth-child(5) { animation-delay: 0.6s; }

@keyframes sunoWave {
  0%, 100% { height: 4px; }
  50% { height: 16px; }
}

/* ---- Responsividade ---- */
@media (max-width: 900px) {
  .suno-layout {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }

  .suno-workspace {
    height: 50vh;
  }

  .suno-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 0 16px;
  }

  .suno-workspace-search {
    min-width: 120px;
  }

  .suno-track-group {
    margin: 6px 10px;
  }

  .suno-track-item {
    grid-template-columns: 20px 42px minmax(0, 1fr) auto;
    padding: 8px 12px;
    gap: 10px;
  }

  /* Posicionamento explícito p/ não quebrar o grid de 6 colunas no mobile:
     linha 1 = checkbox | capa | info | actions; linha 2 = duração sob a info. */
  .suno-track-item .suno-track-select { grid-column: 1; grid-row: 1; }
  .suno-track-item .suno-track-cover  { grid-column: 2; grid-row: 1; }
  .suno-track-item .suno-track-info   { grid-column: 3; grid-row: 1; }
  .suno-track-item .suno-track-actions { grid-column: 4; grid-row: 1; }

  .suno-track-duration {
    grid-column: 3;
    grid-row: 2;
    text-align: left;
    font-size: 11px;
  }

  /* Oculta a coluna de créditos para não comprimir o nome em telas pequenas. */
  .suno-track-credits {
    display: none;
  }

  .suno-track-actions {
    opacity: 1;
  }
}
