/* Reset e Bloqueios Visuais */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1e1e2f, #0f0f1a);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

/* Container Principal */
.player-container {
  background: #252538;
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.exit-btn {
  position: absolute;
  top: 15px;
  right: 15px; /* Alinha o botão no canto superior direito */
  left: auto;   /* Garante que não fique fixado à esquerda */
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.2s ease;
  z-index: 10;
}

.exit-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}
/* Header & Capa */
.player-header {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 20px;
}

.cover-art {
  width: 130px;
  height: 130px;
  margin: 0 auto 15px auto;
  border-radius: 50%;
  background: linear-gradient(45deg, #ff007f, #7928ca);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(121, 40, 202, 0.4);
}

.cover-art i {
  font-size: 45px;
  color: #fff;
}

/* Efeito Especial 'By Dj Kareca' */
.song-artist {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 5px;
  
  /* Gradiente Neon */
  background: linear-gradient(135deg, #ff007f, #7928ca, #00dfd8);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  
  /* Brilho Animado */
  filter: drop-shadow(0 0 8px rgba(255, 0, 127, 0.6));
  animation: shineGlow 3s ease infinite;
}

@keyframes shineGlow {
  0% {
    background-position: 0% center;
    filter: drop-shadow(0 0 6px rgba(255, 0, 127, 0.5));
  }
  50% {
    background-position: 100% center;
    filter: drop-shadow(0 0 12px rgba(0, 223, 216, 0.8));
  }
  100% {
    background-position: 0% center;
    filter: drop-shadow(0 0 6px rgba(255, 0, 127, 0.5));
  }
}

/* Barra de Progresso */
.progress-container {
  margin: 20px 0;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #3a3a52;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ff007f, #7928ca);
  border-radius: 10px;
  transition: width 0.1s linear;
}

.time-stamps {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #a0a0b8;
  margin-top: 8px;
}

/* Controles */
.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 25px;
}

.btn-control {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.btn-control:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.btn-play {
  width: 58px;
  height: 58px;
  background: linear-gradient(45deg, #ff007f, #7928ca);
  font-size: 1.3rem;
  box-shadow: 0 5px 15px rgba(255, 0, 127, 0.4);
}

.btn-play:hover {
  transform: scale(1.08);
  background: linear-gradient(45deg, #ff1a8c, #8932e8);
}

/* Cabeçalho da Lista e Botão Tocar Tudo */
.playlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 5px;
}

.playlist-header .playlist-title {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.btn-play-all {
  background: rgba(255, 0, 127, 0.2);
  border: 1px solid #ff007f;
  color: #fff;
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: 0.2s;
}

.btn-play-all:hover {
  background: #ff007f;
}

/* Lista de Músicas */
.playlist-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #a0a0b8;
}

.playlist {
  list-style: none;
  max-height: 160px;
  overflow-y: auto;
}

.playlist::-webkit-scrollbar {
  width: 4px;
}

.playlist::-webkit-scrollbar-thumb {
  background: #3a3a52;
  border-radius: 5px;
}

.playlist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 5px;
  transition: 0.2s;
}

.playlist-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.playlist-item.active {
  background: rgba(255, 0, 127, 0.15);
  border-left: 3px solid #ff007f;
}

.playlist-item-title {
  font-size: 0.85rem;
  color: #fff;
  display: block;
}

.playlist-item-artist {
  font-size: 0.75rem;
  color: #a0a0b8;
  font-weight: normal;
  text-transform: none;
  letter-spacing: normal;
  background: none;
  -webkit-text-fill-color: #a0a0b8;
  filter: none;
  animation: none;
}

/* Rodapé Propaganda / Carrossel de Patrocinadores */
.footer-ad {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  min-height: 55px;
}

.carousel-container {
  width: 100%;
  position: relative;
  min-height: 45px;
}

.carousel-slide {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.ad-client-logo {
  max-height: 40px;
  max-width: 120px;
  object-fit: contain;
}

.ad-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 20px;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.ad-whatsapp-btn:hover {
  background: #20ba5a;
  transform: scale(1.03);
}

.ad-whatsapp-btn i {
  font-size: 1.1rem;
}

/* Banner Reservado (Quando não há patrocinadores) */
.ad-reserved-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(0, 223, 216, 0.4);
  border-radius: 12px;
  text-align: center;
}

.ad-reserved-text {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, #00dfd8, #007fffff, #ff007f);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 6px rgba(0, 223, 216, 0.6));
  animation: reservedGlow 2.5s ease infinite;
}

@keyframes reservedGlow {
  0% {
    background-position: 0% center;
    filter: drop-shadow(0 0 4px rgba(0, 223, 216, 0.5));
  }
  50% {
    background-position: 100% center;
    filter: drop-shadow(0 0 10px rgba(255, 0, 127, 0.8));
  }
  100% {
    background-position: 0% center;
    filter: drop-shadow(0 0 4px rgba(0, 223, 216, 0.5));
  }
}

/* Transição e efeito de zoom na foto/logo */
.cover-art img {
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.cover-art img:hover {
  transform: scale(1.15); /* Aumenta a imagem suavemente */
  filter: drop-shadow(0 0 12px #ff007f); /* Glow rosa/magenta */
}