:root {
  --bg: #120a1f;
  --bg-alt: #1b0f2e;
  --pink: #ff2e88;
  --cyan: #21e6c1;
  --yellow: #ffd23f;
  --text: #f1ecf7;
  --text-dim: #b6a9cc;
  --card-bg: #1e1233;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(ellipse at top, #241539 0%, var(--bg) 55%, #0a0614 100%);
  color: var(--text);
  font-family: 'Poppins', system-ui, sans-serif;
  line-height: 1.5;
}

h1, h2, .eyebrow {
  font-family: 'Press Start 2P', 'Poppins', sans-serif;
}

a { color: var(--cyan); }

.album-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
  border-bottom: 1px solid #2c1d47;
  padding: 1.1rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.album-banner-track {
  display: flex;
  width: max-content;
  gap: 1.5rem;
  animation: album-banner-scroll 32s linear infinite;
}

.album-banner:hover .album-banner-track { animation-play-state: paused; }

.album-banner-item {
  flex: none;
  width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.album-banner-item img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  filter: brightness(0.75);
  box-shadow: 0 6px 16px rgba(0,0,0,.45);
}

.album-banner-item p {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.3;
  text-align: center;
  color: var(--text-dim);
}

@keyframes album-banner-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 600px) {
  .album-banner-item { width: 92px; }
  .album-banner-item img { width: 92px; height: 92px; }
}

.hero {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  background:
    linear-gradient(180deg, rgba(255,46,136,.12), transparent 60%),
    repeating-linear-gradient(0deg, transparent, transparent 38px, rgba(255,255,255,0.03) 39px);
}

.eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--yellow);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(1.4rem, 5vw, 2.6rem);
  line-height: 1.5;
  margin: 0 0 1rem;
  text-shadow: 0 0 12px rgba(255,46,136,.55);
}

.hero h1 span {
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(33,230,193,.55);
}

.hero-sub {
  max-width: 40rem;
  margin: 0 auto;
  color: var(--text-dim);
  font-size: 1rem;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

/* Controles / filtros */
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(18,10,31,0.92);
  backdrop-filter: blur(6px);
  padding: 0.85rem 0;
}

.controls input,
.controls select {
  background: var(--card-bg);
  border: 1px solid #3a2a55;
  color: var(--text);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  font-family: inherit;
  font-size: 0.9rem;
}

#search { flex: 1 1 220px; }
.controls select { flex: 0 1 160px; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--pink);
  color: var(--pink);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}

.btn-outline:hover { background: rgba(255,46,136,.12); }
.btn-outline.small { padding: 0.4rem 0.7rem; font-size: 0.8rem; text-decoration: none; }

/* Catálogo */
#catalog-section h2 { font-size: 1rem; color: var(--yellow); margin-bottom: 1rem; }

.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}

.song-card {
  background: var(--card-bg);
  border: 1px solid #2c1d47;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s, border-color .15s;
}

.song-card:hover { transform: translateY(-3px); border-color: var(--cyan); }
.song-card.active { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink); }

.song-card .thumb {
  height: 140px;
  background-color: #0a0614;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: flex-end;
  position: relative;
}

.song-card .thumb.placeholder {
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Press Start 2P', sans-serif;
  font-size: 1.4rem;
  color: rgba(0,0,0,.55);
}

.song-card .body {
  padding: 0.85rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.song-card .title { font-weight: 600; font-size: 0.95rem; }
.song-card .title-link {
  background: none;
  border: none;
  color: var(--text);
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.song-card .title-link:hover { color: var(--pink); text-decoration: underline; }
.song-card .band-link {
  background: none;
  border: none;
  color: var(--cyan);
  font-size: 0.8rem;
  padding: 0;
  cursor: pointer;
  text-align: left;
  text-decoration: underline dotted;
}
.song-card .meta { color: var(--text-dim); font-size: 0.75rem; }
.song-card .plays { color: var(--text-dim); font-size: 0.75rem; opacity: 0.8; }

.song-card .actions {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.6rem;
}

.play-btn {
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.play-btn .vinyl-icon { flex: none; }

.fav-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-dim);
  line-height: 1;
}
.fav-btn.active { color: var(--yellow); }

.empty-state { color: var(--text-dim); text-align: center; padding: 2rem 0; }

/* Player */
.player-panel[hidden] { display: none; }

.player-panel {
  position: sticky;
  top: 4.2rem;
  z-index: 15;
  display: flex;
  gap: 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--cyan);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.player-frame {
  flex: 1 1 320px;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.player-frame iframe { width: 100%; height: 100%; border: 0; }

.player-info { flex: 1 1 220px; display: flex; flex-direction: column; justify-content: center; }
.now-playing-label { color: var(--text-dim); font-size: 0.75rem; margin: 0; }
#now-playing-title { font-size: 1.1rem; font-weight: 700; margin: 0.2rem 0; }
.now-playing-band { color: var(--cyan); margin: 0 0 0.8rem; }

.player-controls { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.player-controls button {
  background: var(--card-bg);
  border: 1px solid #3a2a55;
  color: var(--text);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
.btn-close { margin-left: auto; background: transparent !important; border: none !important; font-size: 1.1rem; }

/* Sobre / contexto */
.about { margin-top: 3rem; }
.about h2 { font-size: 1rem; color: var(--yellow); margin-bottom: 1rem; }
.cenas { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.cena-card { background: var(--card-bg); border-radius: var(--radius); padding: 1rem; border: 1px solid #2c1d47; }
.cena-card h3 { margin: 0 0 0.4rem; color: var(--pink); font-size: 0.95rem; }
.cena-card p { margin: 0; color: var(--text-dim); font-size: 0.9rem; }
.marco, .legado { color: var(--text-dim); font-size: 0.9rem; max-width: 42rem; }
.marco { color: var(--yellow); }

/* Modal de banda */
.modal[hidden] { display: none; }

.modal {
  position: fixed; inset: 0;
  background: rgba(5,2,12,.75);
  display: flex; align-items: center; justify-content: center;
  z-index: 50; padding: 1rem;
}
.modal-content {
  background: var(--bg-alt);
  border: 1px solid var(--cyan);
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  padding: 1.5rem;
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute; top: 0.75rem; right: 0.75rem;
  background: none; border: none; color: var(--text); font-size: 1.1rem; cursor: pointer;
}
.modal-body h3 { margin-top: 0; color: var(--pink); }
.modal-body .modal-meta { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 0.8rem; }
.modal-body ul { padding-left: 1.1rem; color: var(--text-dim); font-size: 0.9rem; }
.modal-body ul li { margin-bottom: 0.4rem; }
.modal-section-label {
  color: var(--yellow);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 1rem 0 0.4rem;
}
.modal-members {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  list-style: none;
  padding-left: 0 !important;
}
.modal-members li { margin-bottom: 0 !important; }
.modal-members a { color: var(--cyan); text-decoration: underline dotted; }

footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .controls { position: static; }
  .player-panel { position: static; }
  .controls select { flex: 1 1 45%; }
}
