/* MUSICA.CSS - LEITORES VERTICAIS */

.page-hero {
  min-height: 50vh;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.7), rgba(30, 41, 59, 0.75)),
    url('../images/banner-musica.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(29, 185, 84, 0.12), transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.7;
  }
}

.page-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  animation: fadeInUp 0.8s ease;
}

.page-hero-content h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero-content p {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--text-gray);
}

.stats-section {
  padding: clamp(3rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2rem);
  background: var(--light-bg);
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  background: var(--dark-bg);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(99, 102, 241, 0.1);
  /* Separar transform das outras propriedades:
     box-shadow/border-color têm transição suave;
     transform é controlado 100% pelo JS (sem delay, sem lag) */
  transition:
    opacity 0.5s ease,
    box-shadow 0.4s ease,
    border-color 0.3s ease;
  /* Estado inicial — entrada controlada por JS */
  opacity: 0;
  transform: translateY(30px);
  position: relative;
  overflow: hidden;
  cursor: default;
}

/* Estado visível — quando JS adiciona .visible, o card fica "em cima"
   mesmo depois de o JS limpar o style inline. Resolve o bug de "cair". */
.stat-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Brilho que passa (shimmer) — igual ao "Em Números" da homepage */
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.stat-card:hover::before {
  left: 100%;
}

/* Hover CSS (fallback para touch / quando JS não aplica 3D) */
.stat-card:hover {
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.3);
  border-color: var(--primary-color);
}

.stat-number {
  font-size: clamp(3rem, 6vw, 4rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.filtros-section {
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2rem);
  background: var(--dark-bg);
}

.filtros-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.filtro-btn {
  padding: 1rem 2rem;
  background: transparent;
  color: var(--text-gray);
  border: 2px solid rgba(99, 102, 241, 0.3);
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.filtro-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--primary-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.4s ease,
    height 0.4s ease;
  z-index: -1;
}

.filtro-btn:hover::before,
.filtro-btn.active::before {
  width: 300px;
  height: 300px;
}

.filtro-btn:hover,
.filtro-btn.active {
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

/* LEITORES VERTICAIS */
.musica-section {
  padding: clamp(3rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2rem);
  background: var(--light-bg);
}

.container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.musica-card {
  display: flex;
  flex-direction: column;
  background: var(--dark-bg);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.musica-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(99, 102, 241, 0.25);
  border-color: var(--primary-color);
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.musica-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.musica-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}

.musica-titulo {
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 700;
  line-height: 1.3;
}

.musica-artista {
  font-size: 0.9rem;
  color: var(--text-gray);
  font-weight: 500;
  margin-top: 0.3rem;
}

.badge-ep,
.badge-feat,
.badge-single {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.badge-ep {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.badge-feat {
  background: linear-gradient(135deg, var(--accent-color), #f472b6);
  color: white;
}

.badge-single {
  background: linear-gradient(135deg, #64748b, #475569);
  color: white;
}

.musica-detalhes {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.musica-detalhes span {
  font-size: 0.85rem;
  color: var(--text-gray);
  font-weight: 500;
}

.musica-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  align-content: start;
}

/* "Ouvir no Site" ocupa a linha de baixo inteira */
.btn-ouvir-site {
  grid-column: 1 / -1;
  grid-row: 2;
}

/* Para cards só com YouTube + Site: ficam lado a lado */
.musica-links.solo-links {
  grid-template-columns: 1fr 1fr;
}

.musica-links.solo-links .btn-ouvir-site {
  grid-column: auto;
  grid-row: auto;
}

.musica-links .btn {
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.78rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  line-height: 1.3;
}

.btn-spotify {
  background: #1db954 !important;
  color: white !important;
}

.btn-spotify:hover {
  background: #1ed760 !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(29, 185, 84, 0.4);
}

.btn-youtube {
  background: #ff0000 !important;
  color: white !important;
}

.btn-youtube:hover {
  background: #cc0000 !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 0, 0, 0.4);
}

.btn-secondary {
  background: #ff0000 !important;
  color: white !important;
}

.btn-secondary:hover {
  background: #cc0000 !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 0, 0, 0.4);
}

.btn-primary {
  background: var(--primary-color) !important;
  color: white !important;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.btn-full {
  width: 100%;
}

.spotify-icon {
  font-size: 1.1rem;
}

/* EP Card */
.ep-card {
  display: flex;
  gap: 2.5rem;
  background: var(--dark-bg);
  border-radius: 25px;
  padding: 2.5rem;
  border: 1px solid rgba(99, 102, 241, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  grid-column: 1 / -1;
}

.ep-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.ep-card:hover::before {
  opacity: 1;
}

.ep-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 70px rgba(99, 102, 241, 0.3);
  border-color: var(--primary-color);
}

.ep-capa {
  position: relative;
  flex-shrink: 0;
  width: 250px;
  height: 250px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease;
}

.ep-card:hover .ep-capa {
  transform: scale(1.05) rotate(3deg);
}

.ep-capa img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ep-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.ep-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ep-titulo {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ep-autor {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 1rem;
}

.ep-sinopse {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.ep-detalhes {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.ep-detalhes span {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 600;
}

.ep-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-section {
  padding: clamp(5rem, 8vw, 7rem) clamp(1.5rem, 3vw, 2rem);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 60%);
  animation: rotate 20s linear infinite;
}

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

.cta-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: white;
  margin-bottom: 1.5rem;
}

.cta-content p {
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2.5rem;
}

.platform-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.platform-btn {
  padding: 1.2rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  border: 2px solid white;
}

.platform-btn.spotify {
  background: #1db954;
  color: white;
  border-color: #1db954;
}

.platform-btn.youtube {
  background: #ff0000;
  color: white;
  border-color: #ff0000;
}

.platform-btn.soundcloud {
  background: #ff5500;
  color: white;
  border-color: #ff5500;
}

.platform-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* ─── BOTÃO "OUVIR NO SITE" ─── */
.btn-ouvir-site {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
  color: white !important;
  border: none !important;
  position: relative;
  overflow: hidden;
}

.btn-ouvir-site::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.4s ease,
    height 0.4s ease;
}

.btn-ouvir-site:hover::after {
  width: 200px;
  height: 200px;
}

.btn-ouvir-site:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 25px rgba(29, 185, 84, 0.4) !important;
}

/* Versão full-width para cards de single */
.btn-full-site {
  width: 100%;
}

@media (max-width: 768px) {
  .ep-card {
    flex-direction: column;
    padding: 2rem;
  }

  .ep-capa {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    max-width: 300px;
    margin: 0 auto;
  }

  .filtros-container {
    gap: 0.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 340px;
  }

  .filtro-btn {
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    text-align: center;
  }

  .musica-links {
    flex-direction: column;
  }

  .musica-links .btn {
    width: 100%;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ─── TÍTULOS DE SECÇÃO ─── */
.musica-secao-titulo {
  grid-column: 1 / -1;
  padding: 1.5rem 0 0.5rem;
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.musica-secao-titulo:first-of-type,
.musica-secao-titulo.is-first-visible {
  padding-top: 0;
}

.musica-secao-titulo h2 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.musica-secao-titulo span {
  font-size: 0.82rem;
  color: var(--text-gray);
  font-weight: 500;
}