/* Reset e fonte */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #0b0f16;
  color: #fff;
  text-align: center;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Cabeçalho */
.header {
  margin-top: 40px;
  animation: fadeIn 1.8s ease-in;
}

.header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px #ff6b81, 0 0 20px #ff4757;
  animation: glow 3s ease-in-out infinite alternate;
}

.header .subtitle {
  font-size: 1.2rem;
  color: #ffcad4;
  margin-top: 8px;
  font-style: italic;
  text-shadow: 0 0 6px #ffcad4, 0 0 10px #ff9bb3;
  animation: subtitleGlow 3s ease-in-out infinite alternate;
}

/* Container dos cards */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 40px 20px;
  justify-items: center;
}

/* Cards */
.music-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 15px;
  max-width: 250px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.music-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255,107,129,0.4);
}

.music-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.music-card h2 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

/* Botões */
.button-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.music-card button {
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  background-color: #ff6b81;
  color: #fff;
  cursor: pointer;
  margin: 5px;
  transition: all 0.3s;
  flex-grow: 1;
}

.music-card button:hover {
  background-color: #ff4757;
  transform: scale(1.05);
}

/* Footer */
footer {
  padding: 20px;
  background: rgba(255,255,255,0.05);
  border-top: 1px solid rgba(255,255,255,0.2);
}

.footer-text {
  font-size: 0.9rem;
  color: #ffcad4;
  text-shadow: 0 0 5px #ffcad4;
}

/* Fade in */
.fade-in {
  opacity: 0;
  animation: fadeIn 2s forwards;
}

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

/* Responsivo */
@media (max-width: 768px) {
  .header h1 { font-size: 2rem; }
  .header .subtitle { font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .container { padding: 20px 10px; }
  .music-card { width: 95%; }
  .music-card img { height: 180px; }
  .button-container { flex-direction: column; }
  .music-card button { width: 100%; margin: 4px 0; font-size: 1rem; }
}
