:root {
  --primary-color: #C400AB;
  --secondary-color: #C400AB;
  --background-color: #1a07359e;
  --text-color: #fff;
  --modal-background: rgba(255, 255, 255, 0.9);
  --modal-text-color: #000000;
  --scrollbar-thumb-color: var(--secondary-color);
  --scrollbar-track-color: #f1f1f1;
  --button-color: #ffffff;
  --button-hover-color: #f0f0f0; 
  --slider-track-color: #ffffff;
  --slider-thumb-color: var(--secondary-color); 
}

body {
  font-family: Rethink Sans, sans-serif;
  margin: 0;
  padding: 0;
  background: url('images/bgdefault.jpg') no-repeat center center fixed;
  background-size: cover;
  color: var(--text-color);
  position: relative;
  overflow-x: hidden;
  transition: background-image 2s, background-color 2s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb-color) var(--scrollbar-track-color);
}

body::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-track {
  background: var(--scrollbar-track-color);
  border-radius: 6px;
}

body::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb-color);
  border-radius: 6px;
  border: 3px solid var(--scrollbar-track-color);
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background-color);
  z-index: -1;
}

h1, h2, h3 {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
}

#waveCanvas {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 800px; 
  z-index: -2; 
  pointer-events: none;    
}

.site-header {
  padding: 20px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  top: 0px auto;
  left: auto;
  width: 100%;
  z-index: 1000;
  transition: background-color 2s ease;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 10px;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--secondary-color);
  border-radius: 15px;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 999;
  width: 200px;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu li {
  margin: 10px 0;
}

.mobile-menu li a {
  color: var(--secondary-color);
  font-size: 1rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-menu li a:hover {
  color: var(--primary-color);
}

.mobile-menu li a img {
  width: 16px;
  height: 16px;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  margin-left: auto;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: #fff; 
  transition: background-color 0.3s;
}

.hamburger:hover div,
.hamburger.active div {
  background-color: var(--secondary-color);
}

.site-header.active .hamburger div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.site-header.active .hamburger div:nth-child(2) {
  opacity: 0;
}

.site-header.active .hamburger div:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


.header-content {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  padding-right: 20px;
  box-sizing: border-box;
}

.header-content > a {
  text-align: center;
  flex: 1;
}

.planeta-logo {
  max-width: 260px;
  height: auto;
  transition: transform 0.3s;
}

.planeta-logo:hover {
  transform: scale(1.05);
}

.social-icons {
  display: flex;
  align-items: center;
}

.social-icons a {
  color: #fff;
  margin: 0 8px;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: var(--secondary-color);
}

.main-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  padding: 8px;
  margin-top: 0px auto; 
  box-sizing: border-box;
  width: 100%;
}

.player-historico-container {
  display: grid;
  grid-template-columns: 1fr minmax(0, 0px) 300px;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  box-sizing: border-box;
}

.player-container {
  grid-column: 2;
  justify-self: flex-start;
  flex: none;
  width: fit-content;
  max-width: 1900px;
  color: #fff;
  padding: 430px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  transition: background-color 2s ease;
  position: absolute;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.0);
  z-index:2;
}

.song-info {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 2000%;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.song-image {
  border-radius: 20px; 
  width: 400px; 
  height: 400px; 
  margin-right: 20px;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.song-image:hover {
  transform: scale(1.05);
}

.song-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  width: 350px;
}

.song-title {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 2px; 
  color: #fff;
   cursor: pointer;
  padding: 8px 0;
    display: inline-block;
 
}

.song-artist {
  font-size: 1rem; 
  color: #fff; 
   cursor: pointer;
  padding: 8px 0;
    display: inline-block;

}

.player-controls {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.extra-controls {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
  width: 100%;
  max-width: 800px;
}

.request-button {
  background-color: var(--button-color);
  font-family: Rethink Sans;
  color: var(--text-color);
  padding: 8px 16px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  width: 140px;
  text-align: center;
}

.request-button:hover {
  background-color: #f0f0f0; 
  border-color: var(--secondary-color);
}

.share-button {
  background: none;
  border: none;
  color: #fff; 
  font-size: 1.5rem; 
  cursor: pointer;
  transition: color 0.3s;
}

.share-button:hover {
  color: var(--secondary-color);
}

.wave-cl-button img {
  width: 24px;
  height: 24px;
  transition: opacity 0.3s;
  cursor: pointer;
  margin-right: 10px;
}

.wave-cl-button img:hover {
  opacity: 0.7;
}

.control-btns {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  max-width: 800px;
  margin-top: 10px;
  gap: 15px;
  flex-wrap: wrap;
}

.control-btn {
  cursor: pointer;
  color: #fff; 
  font-size: 2rem; 
  transition: color 0.3s;
}

.control-btn:hover {
  color: var(--secondary-color);
}

.volume-slider {
  width: 250px; 
  margin: 0 0 0 10px; 
  -webkit-appearance: none;
  appearance: none;
  height: 6px; 
  background: var(--slider-track-color); 
  border-radius: 5px;
  outline: none;
  transition: background 0.3s;
}

.volume-slider:hover {
  background: #e0e0e0; 
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--slider-thumb-color);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.volume-slider::-webkit-slider-thumb:hover {
  background: #C400AB;
}

.volume-slider::-moz-range-thumb {
  width: 14px; 
  height: 14px; 
  background: var(--slider-thumb-color);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.volume-slider::-moz-range-thumb:hover {
  background: #C400AB;
}

.historico-container {
  grid-column: 3; 
  justify-self: end; 
  flex: none; 
  width: 300px; 
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--text-color);
  padding: 20px;
  flex: 1 1 30%; 
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  display: flex;
  z-index: 4;
  flex-direction: column;
  max-height: 500px; 
}

.historico-container h2 {
  margin-bottom: 20px;
  text-align: center;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.historico-list {
  list-style: none;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%; 
  box-sizing: border-box;
  overflow-y: auto;
}

.historico-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: background-color 0.3s;
  width: 100%; 
  box-sizing: border-box;
}

.historico-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.historico-music {
  display: flex;
  align-items: center;
  flex: 1;
  margin-right: 10px;
  gap: 10px;
  width: 100%; 
  box-sizing: border-box;
}

.historico-music img {
  width: 50px;
  height: 50px;
  border-radius: 10px; 
  object-fit: cover;
}

.historico-music p {
  margin: 0;
  font-size: 1rem;
  word-wrap: break-word; 
}

.historico-music p.title {
  font-weight: bold;
  color: var(--primary-color);
}

.historico-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.historico-actions a.spotify {
  background-color: #1DB954; 
  color: #fff;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s;
  text-decoration: none;
}

.historico-actions a.spotify:hover {
  background-color: #17a44d;
}

.skeleton {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.skeleton .skeleton-img {
  width: 50px;
  height: 50px;
  background-color: #ccc;
  border-radius: 10px; 
}

.skeleton .skeleton-text {
  flex: 1;
  height: 15px;
  background-color: #ccc;
  border-radius: 4px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  gap: 5px;
  flex-wrap: wrap;
}

.pagination button {
  background-color: var(--secondary-color);
  color: #fff;
  border: none;
  margin: 0 5px;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.pagination button:hover {
  background-color: #C400AB;
}

.pagination button.active {
  background-color: var(--primary-color);
}

.pagination button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

#programacao {
  background-color: rgba(255, 255, 255, 0.8); 
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  max-width: 1200px;
  color: var(--text-color);
  transition: background-color 2s ease;
  padding: 20px;
  box-sizing: border-box;
  width: 100%;
  z-index: 4;
}

#dias {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap; 
  gap: 10px;
}

.dia {
  padding: 10px 15px;
  background-color: var(--secondary-color);
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-weight: bold;
  flex: 1 1 calc(14.28% - 20px);
  text-align: center;
  min-width: 80px;
  box-sizing: border-box;
}

.email-button {
  background: none;
  border: none;
  color: #fff; 
  font-size: 1.5rem; 
  cursor: pointer;
  transition: color 0.3s;
}

.email-button:hover {
  color: var(--secondary-color);
}

.email-button i {
  display: block; 
}

.programa {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  width: 100%;
  max-width: 600px;
}

.programa:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.programa img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  display: block;
}

.programa-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.programa-overlay h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.programa-overlay .horario {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--secondary-color);
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.9rem;
  margin-top: 5px;
  font-family: 'Rethink Sans', sans-serif;
}

.share-modal, .modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  overflow: auto;
}

.share-modal-content, .modal-content {
    display: flex;
    background-color: #FFFF;
    color: var(--modal-text-color);
    padding: 30px;
    border-radius: 15px;
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    position: fixed;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s;
    flex-direction: column;
    align-items: center;
    position-area: center;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.close-button {
  font-size: 2rem;
  color: #000;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 20px;
  transition: color 0.3s, transform 0.3s;
}

.close-button:hover {
  color: var(--secondary-color);
  transform: scale(1.2);
}

.share-options {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--secondary-color);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.share-preview {
  background-color: rgba(240, 240, 240, 0.9);
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  word-wrap: break-word;
  font-size: 1rem;
  color: #333;
  width: 100%;
  text-align: center;
}

.share-buttons {
  display: flex;
  justify-content: space-around;
  gap: 15px;
  flex-wrap: wrap;
  width: 100%;
}

.share-buttons a, .share-buttons button {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  text-decoration: none;
  color: #fff;
  font-size: 1.5rem;
}

.share-buttons a:hover, .share-buttons button:hover {
  transform: scale(1.1);
}

.share-buttons .copy-btn {
  background-color: #555;
}

.share-buttons .facebook {
  background-color: #1877F2;
}

.share-buttons .whatsapp {
  background-color: #25D366;
}

.share-buttons .twitter {
  background-color: #16181C;
}

@media (max-width: 768px) {

body {
  font-family: 'Rethink Sans', sans-serif;
}

  .header-content{
    text-align: center;
    padding-left: 20px;
  }

  .social-icons {
    display: none;
  }

  .hamburger {
    display: flex;
    margin-left: auto;
  }

  .mobile-menu {
    width: 180px;
    margin: 15px;
  }

  .player-historico-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  
  .extra-controls {
    display: flex;
    justify-content: center !important;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    width: 100%;
    max-width: 800px;
}

  .song-info {
    display: flex;
    align-items: center;
    justify-content: center;
    top: -35px;
    width: 100%;
    margin-bottom: -100px;
    position: relative;
    z-index: 1;
  }
    
  .player-container {
    padding: 20px;
    width: 90%;
    top: 350px;
  }

  .historico-container {
    grid-column: 1;
    justify-self: center;
    width: 100%;
    margin-top: 20px;
    padding: 20px;
  }

  .control-btns {
    gap: 15px;
    flex-wrap: wrap;
  }

  .volume-slider {
    width: 100%;
    max-width: 250px; 
  }

  .request-button {
    width: 80%;
  }

  .programa {
    flex-direction: column;
    text-align: center;
  }

  .programa img {
    width: 100%;
    height: auto;
  }

  .programa-overlay .horario {
    font-size: 0.8rem;
  }

  .historico-music p {
    font-size: 0.9rem;
  }

  .historico-actions a.spotify {
    font-size: 1.2rem;
  }

  .site-header {
    top: -20px;
    width: 95%;
    flex-direction: column;
    padding: 10px 5px;
  }

  .main-content{
    width: 100%;
  }
    
  .wave-logo {
    max-width: 100px;
  }

  .dia.atual{ 
    text-align: center;
    background-color: #C400AB;
  }
  
  .share-modal {
    display: none;
    position: fixed;
    justify-content: center;
    top: 0;
    left: 0;
    width: 90%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    overflow: auto;
  }
  
  .share-modal-content, .modal-content {
  display: nome;
  background-color: #FFFF;
  position-area: center;
  color: var(--modal-text-color);
  padding: 30px;
  justify-content: center;
  border-radius: 15px;
  max-width: 800px;
  width: 100%;
  max-height: 80vh;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.5s;
  display: nome;
  flex-direction: column;
  align-items: center;
}
  .modal {
    z-index: 1000;
    position-area: center !important;
    left: 0;
    top: 0px;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
  }
  
   .share-preview {
    background-color: rgba(240, 240, 240, 0.9);
    padding: 15px;
    justify-self: center;
    border-radius: 10px;
    margin-bottom: 20px;
    word-wrap: break-word;
    font-size: 1rem;
    color: #333;
    width: 100%;
    text-align: center;
  }

  .copyright-bar {
    padding: 10px;
}

#request-modal {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: -10px;
    width: 102%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    padding: 25px;
    box-sizing: border-box;
}

#request-modal .modal-content {
  background-color: #ffffff;
  color: var(--modal-text-color);
  padding: 30px;
  border-radius: 15px;
  width: calc(93% - 39px);
  max-width: 800px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.5s;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  max-height: calc(100% - 48px);
  overflow-y: scroll;
  scrollbar-width: none; 
}

#request-modal .modal-content::-webkit-scrollbar {
  display: none; 
}


#request-modal .sc-track-request-widget {
  width: 100%; 
  max-width: 700px; 
  overflow-x: hidden; 
  margin: 0 auto; 
  box-sizing: border-box;
}


.modal-content {
  background-color: #ffffff;
  color: var(--modal-text-color);
  padding: 30px;
  border-radius: 15px;
  width: calc(100% - 48px); 
  max-width: 800px; 
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.5s;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 24px auto; 
}

.modal-content track-request-widget {
  width: 100%; 
  max-width: 700px; 
  overflow-x: auto;
  box-sizing: border-box;
}

.modal-content .sc-track-request-widget {
  width: 100%;
  max-width: 700px;
  overflow-x: hidden;
  margin: 0 auto; 
  box-sizing: border-box;
}

  
  .oldmodal-content {
    display: flow !important;
    background-color: #ffffff;
    padding: 0px;
    height: max-content;
    width: fit-content;
    position: relative;
  }
   
  .player-container {
    padding: 20px;
    width: -webkit-fill-available;
    justify-self: center;
  }

  .historico-container {
    width: 100%;
    margin-top: 200px;
    padding: 38px;
  }

  .song-image {
    width: 290px;
    height: 290px;
  }

  .song-details {
    text-align: center;
    width: 100%;
  }

  #programacao {
    padding: 15px;
  }

  .pagination button {
    margin: 3px;
    font-size: 0.9rem;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 768px) {

body {
  font-family: 'Rethink Sans', sans-serif;
  justify-items: center;
}

  .header-content{
    padding-left: 20px;
  }

  .wave-logo {
    max-width: 190px;
    margin-top: 10px;
  }

  .control-btns {
    flex-direction: column;
    gap: 10px;
  }

  .share-button,
  .wave-cl-button img {
    font-size: 1.5rem;
  }

  .song-image {
    width: 200px;
    height: 200px;
    margin: auto;
  }

  .programa img {
    width: 100%;
    height: auto;
  }

  .programa-overlay .horario {
    font-size: 0.8rem;
  }

  .historico-music p {
    font-size: 0.9rem;
  }

  .historico-actions a.spotify {
    font-size: 1.2rem;
  }

  .song-title {
    font-size: 1.2rem;
  }

  .song-artist {
    font-size: 0.9rem;
  }

  .volume-slider {
    width: 150px;
  }

  .historico-container h2 {
    font-size: 1.2rem;
  }

  .historico-item {
    padding: 5px;
  }

  .request-button {
    width: 100%;
    font-size: 0.8rem;
  }
}

.copyright-bar {
    position: fixed;
    bottom: 36px;
    color: #fff;
    text-align: center;
    justify-self: anchor-center;
    padding: 0px 25px;
    font-size: 0.9em;
}
  }