/**
 * Estilos: Explorador de artistas musicales
 * Fijate Tools - Suite de Herramientas Web
 * 
 * Paleta Midnight Slate, acentos holográficos neón, ecualizador animado,
 * reproductor flotante persistente y soporte dual tema oscuro/claro.
 */

:root {
  --bg-main: #0b0f17;
  --bg-card: #111827;
  --bg-card-hover: #172033;
  --bg-card-glass: rgba(17, 24, 39, 0.75);
  --bg-input: #1a2234;
  --bg-secondary: #1e293b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #8b5cf6;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-pink: #ec4899;
  --accent-green: #10b981;
  --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  --accent-gradient-warm: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  
  --player-bg: rgba(15, 23, 42, 0.95);
  --shadow-glow: 0 10px 25px -5px rgba(139, 92, 246, 0.25);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

[data-theme="light"] {
  --bg-main: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-card-glass: rgba(255, 255, 255, 0.85);
  --bg-input: #e2e8f0;
  --bg-secondary: #e2e8f0;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-focus: #7c3aed;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --accent-purple: #7c3aed;
  --accent-cyan: #0284c7;
  --accent-pink: #db2777;
  --accent-green: #059669;
  
  --player-bg: rgba(255, 255, 255, 0.95);
  --shadow-glow: 0 10px 25px -5px rgba(124, 58, 237, 0.18);
}

/* ==========================================================================
   RESET Y CONTENCIÓN
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.mono-num {
  font-family: 'JetBrains Mono', monospace;
}

/* ==========================================================================
   LAYOUT Y CONTENEDOR PRINCIPAL
   ========================================================================== */
.tool-layout {
  max-width: 1200px;
  width: 100%;
  margin: 1rem auto 3rem;
  padding: 0 1rem;
  flex: 1;
}

.tool-with-sidebar {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.tool-main-content {
  flex: 1;
  min-width: 0;
  width: 100%;
}

/* ==========================================================================
   SECCIÓN BUSCADOR Y FILTROS RÁPIDOS
   ========================================================================== */
.music-search-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: relative;
}

.search-bar-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.music-search-input {
  width: 100%;
  height: 52px;
  padding: 0 4rem 0 3.25rem;
  background-color: var(--bg-input);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1.05rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
  outline: none;
}

.music-search-input:focus {
  border-color: var(--border-focus);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

.music-search-input::placeholder {
  color: var(--text-muted);
}

.search-actions-box {
  position: absolute;
  right: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-search-clear {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.btn-search-clear:hover {
  color: var(--text-primary);
  background: var(--border-color);
}

.search-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-top-color: var(--accent-purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Sugerencias de autocompletado */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
  max-height: 380px;
  overflow-y: auto;
  z-index: 50;
  display: none;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover,
.search-result-item.active {
  background-color: var(--bg-card-hover);
}

.search-result-info {
  display: flex;
  flex-direction: column;
}

.search-result-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.search-result-genre {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Filtros rápidos por género */
.quick-genres-bar {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.genre-filter-btn {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.genre-filter-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--accent-purple);
}

.genre-filter-btn.active {
  background: var(--accent-gradient);
  color: #ffffff;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Carrusel de artistas destacados */
.curated-artists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.curated-artist-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.curated-artist-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-purple);
  box-shadow: 0 6px 15px rgba(139, 92, 246, 0.2);
}

.curated-artist-avatar-wrap {
  width: 64px;
  height: 64px;
  margin-bottom: 0.6rem;
  position: relative;
  flex-shrink: 0;
}

.curated-artist-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  background-color: var(--bg-card);
}

.curated-artist-card:hover .curated-artist-avatar-img {
  transform: scale(1.08);
  border-color: var(--accent-purple);
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.4);
}

.curated-artist-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.curated-artist-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.curated-artist-genre {
  font-size: 0.72rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

/* ==========================================================================
   ESTADOS DE CARGA Y VACÍO
   ========================================================================== */
.artist-loading-state,
.artist-empty-state,
.artist-error-state {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.loading-bars {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  height: 40px;
  margin-bottom: 1.25rem;
}

.loading-bars span {
  width: 6px;
  height: 100%;
  background: var(--accent-purple);
  border-radius: 3px;
  animation: waveBar 1.2s ease-in-out infinite;
}

.loading-bars span:nth-child(2) { animation-delay: 0.2s; background: var(--accent-cyan); }
.loading-bars span:nth-child(3) { animation-delay: 0.4s; background: var(--accent-pink); }
.loading-bars span:nth-child(4) { animation-delay: 0.6s; background: var(--accent-purple); }

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

/* ==========================================================================
   HERO BANNER DEL ARTISTA
   ========================================================================== */
.artist-profile-hero {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-glow);
}

.hero-backdrop-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 240px;
  background-size: cover;
  background-position: center 20%;
  filter: blur(40px) brightness(0.4);
  transform: scale(1.1);
  opacity: 0.6;
  pointer-events: none;
}

.hero-content {
  position: relative;
  padding: 2rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  z-index: 2;
}

.artist-portrait-box {
  position: relative;
  flex-shrink: 0;
}

.artist-portrait-img {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-card);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  background-color: var(--bg-secondary);
}

.artist-portrait-fallback {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  font-weight: 800;
  color: #ffffff;
  border: 4px solid var(--bg-card);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.artist-hero-info {
  flex: 1;
  min-width: 0;
}

.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-genre {
  background: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-type {
  background: rgba(6, 182, 212, 0.2);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-country {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.artist-main-title {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  line-height: 1.15;
}

.artist-members-preview {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.member-tag {
  background: var(--bg-secondary);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.hero-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-primary-play {
  background: var(--accent-gradient);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.65rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 44px;
}

.btn-primary-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.btn-secondary-action {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.65rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
  text-decoration: none;
}

.btn-secondary-action:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-purple);
  color: var(--text-primary);
}

/* ==========================================================================
   NAVEGACIÓN INTERNA DE SECCIONES (TABS)
   ========================================================================== */
.artist-tabs-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.artist-tabs-nav::-webkit-scrollbar {
  display: none;
}

.tab-nav-btn {
  background: transparent;
  border: none;
  padding: 0.75rem 1.25rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab-nav-btn:hover {
  color: var(--text-primary);
}

.tab-nav-btn.active {
  color: var(--accent-purple);
  border-bottom-color: var(--accent-purple);
}

.tab-nav-badge {
  background: var(--bg-secondary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 12px;
  color: var(--text-secondary);
}

.tab-nav-btn.active .tab-nav-badge {
  background: rgba(139, 92, 246, 0.2);
  color: var(--accent-purple);
}

/* Paneles de pestañas */
.tab-content-panel {
  display: none;
}

.tab-content-panel.active {
  display: block;
}

/* ==========================================================================
   LISTA DE CANCIONES DESTACADAS (TOP TRACKS)
   ========================================================================== */
.tracks-list-container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.track-item-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
  position: relative;
}

.track-item-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(139, 92, 246, 0.3);
}

.track-item-card.is-playing {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--accent-purple);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.15);
}

.track-play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.track-play-btn:hover {
  background: var(--accent-purple);
  color: #ffffff;
  border-color: transparent;
  transform: scale(1.08);
}

.track-item-card.is-playing .track-play-btn {
  background: var(--accent-purple);
  color: #ffffff;
  border-color: transparent;
}

.track-artwork-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.track-info-col {
  flex: 1;
  min-width: 0;
}

.track-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.track-equalizer-bars {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 18px;
  width: 20px;
}

.track-item-card.is-playing .track-equalizer-bars {
  display: flex;
}

.eq-bar {
  width: 3px;
  background: var(--accent-purple);
  border-radius: 2px;
  animation: eqPulse 0.8s ease-in-out infinite alternate;
}

.eq-bar:nth-child(1) { height: 60%; animation-delay: 0.1s; }
.eq-bar:nth-child(2) { height: 100%; animation-delay: 0.3s; }
.eq-bar:nth-child(3) { height: 40%; animation-delay: 0.2s; }
.eq-bar:nth-child(4) { height: 80%; animation-delay: 0.4s; }

@keyframes eqPulse {
  0% { transform: scaleY(0.2); }
  100% { transform: scaleY(1); }
}

.track-meta-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.track-duration {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.track-sample-badge {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.btn-track-lyrics {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 32px;
}

.btn-track-lyrics:hover {
  background: var(--accent-purple);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-1px);
}

/* ==========================================================================
   MODAL DE LETRAS DE CANCIONES (LRCLIB)
   ========================================================================== */
.lyrics-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lyrics-modal-overlay.active {
  display: flex;
}

.lyrics-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: modalPop 0.25s ease;
}

.lyrics-body-scroll {
  padding: 2rem 2.5rem;
  overflow-y: auto;
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 2;
  white-space: pre-wrap;
  color: var(--text-primary);
  text-align: center;
  background: radial-gradient(circle at top, rgba(139, 92, 246, 0.05), transparent 70%);
}

.lyrics-loading, .lyrics-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 3rem 1rem;
}

/* ==========================================================================
   MURO DE DISCOGRAFÍA (ÁLBUMES)
   ========================================================================== */
.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

.album-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.album-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-purple);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.album-cover-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--bg-secondary);
  overflow: hidden;
}

.album-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.album-year-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.album-body {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.album-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.album-meta-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   BIOGRAFÍA VERAZ (WIKIPEDIA)
   ========================================================================== */
.artist-bio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.bio-lead-text {
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.bio-metadata-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.bio-meta-item {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}

.bio-meta-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.bio-meta-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.bio-source-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bio-source-link {
  color: var(--accent-purple);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
}

.bio-source-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   REPRODUCTOR FLOTANTE INFERIOR PERSISTENTE (AUDIO PLAYER)
   ========================================================================== */
.music-sticky-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--player-bg);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  z-index: 999;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
  display: none;
  animation: slideUp 0.3s ease;
}

.music-sticky-player.visible {
  display: block;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.player-inner-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.player-track-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 260px;
  min-width: 0;
}

.player-thumb-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.player-track-info {
  min-width: 0;
  flex: 1;
}

.player-track-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.player-controls-center {
  flex: 1;
  max-width: 550px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.player-buttons-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.player-ctrl-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, transform 0.15s ease;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.player-ctrl-btn:hover {
  color: var(--text-primary);
}

.player-play-main {
  width: 42px;
  height: 42px;
  background: var(--accent-gradient);
  color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.player-play-main:hover {
  color: #ffffff;
  transform: scale(1.08);
}

.player-progress-bar-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.player-time-num {
  font-size: 0.75rem;
  color: var(--text-muted);
  min-width: 32px;
  text-align: center;
}

.player-slider-track {
  flex: 1;
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.player-slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: var(--accent-gradient);
  border-radius: 3px;
  transition: width 0.1s linear;
}

.player-extra-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 180px;
  justify-content: flex-end;
}

.volume-slider-input {
  width: 80px;
  height: 4px;
  accent-color: var(--accent-purple);
  cursor: pointer;
}

/* ==========================================================================
   MODAL DE ÁLBUM CON TRACKLIST
   ========================================================================== */
.album-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.album-modal-overlay.active {
  display: flex;
}

.album-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: modalPop 0.25s ease;
}

@keyframes modalPop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header-banner {
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  position: relative;
}

.modal-album-art {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.modal-album-details {
  flex: 1;
  min-width: 0;
}

.modal-album-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.modal-album-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.btn-close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-close-modal:hover {
  color: var(--text-primary);
  background: var(--border-color);
}

.modal-tracklist-scroll {
  padding: 1rem 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.modal-track-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.modal-track-row:last-child {
  border-bottom: none;
}

.modal-track-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.modal-track-num {
  color: var(--text-muted);
  width: 24px;
  font-size: 0.8rem;
}

.modal-track-name {
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-footer-bar {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   TOAST NOTIFICACIÓN
   ========================================================================== */
.music-toast-notification {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--accent-purple);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 1001;
  animation: toastFadeIn 0.2s ease;
}

.music-toast-notification.visible {
  display: flex;
}

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

/* ==========================================================================
   RESPONSIVE / MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1rem;
    gap: 1.25rem;
  }

  .artist-portrait-img,
  .artist-portrait-fallback {
    width: 130px;
    height: 130px;
  }

  .hero-badges-row {
    justify-content: center;
  }

  .artist-main-title {
    font-size: 1.8rem;
  }

  .artist-members-preview {
    justify-content: center;
  }

  .hero-actions-bar {
    justify-content: center;
  }

  .hero-actions-bar .btn-primary-play,
  .hero-actions-bar .btn-secondary-action {
    width: 100%;
    justify-content: center;
  }

  .player-inner-container {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .player-track-box {
    width: 100%;
  }

  .player-controls-center {
    width: 100%;
    max-width: 100%;
  }

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

  .music-sticky-player {
    padding: 0.6rem 1rem;
  }

  .albums-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}
