* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

#app {
  max-width: 500px;
  margin: 0 auto;
  padding-bottom: 40px;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 0 0 40px 40px;
  padding: 40px 20px 60px;
  margin-bottom: 30px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.album-art {
  width: 140px;
  height: 140px;
  margin: 0 auto 20px;
  background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.vinyl {
  width: 80px;
  height: 80px;
  background: #1a1a2e;
  border-radius: 50%;
  position: relative;
  animation: spin 4s linear infinite;
}

.vinyl::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background: #f5576c;
  border-radius: 50%;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.album-subtitle {
  font-size: 14px;
  opacity: 0.9;
  letter-spacing: 1px;
}

/* Canciones */
.songs-container {
  padding: 0 16px;
}

#songs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.song {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.song:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.15);
}

.song h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.song h3::before {
  content: '🎵';
  font-size: 16px;
}

/* Reproductor de audio personalizado */
audio {
  width: 100%;
  height: 40px;
  border-radius: 20px;
  outline: none;
}

audio::-webkit-media-controls-panel {
  background: rgba(255, 255, 255, 0.9);
}

audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
  color: #333;
}

/* Prevenir selección y descarga */
.song {
  user-select: none;
  -webkit-user-select: none;
}

audio {
  pointer-events: auto;
}

/* Botón Spotify */
.spotify-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 30px auto 20px;
  padding: 14px 24px;
  width: calc(100% - 32px);
  max-width: 400px;
  background: linear-gradient(135deg, #1DB954 0%, #1ed760 100%);
  color: white;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(29, 185, 84, 0.3);
}

.spotify-btn:active {
  transform: scale(0.96);
  box-shadow: 0 2px 8px rgba(29, 185, 84, 0.4);
}

.spotify-btn span:first-child {
  font-size: 20px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  opacity: 0.7;
}

/* Mensaje de error */
.error-message {
  background: rgba(255, 59, 48, 0.2);
  border: 1px solid rgba(255, 59, 48, 0.3);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  font-size: 14px;
  margin-top: 20px;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}