#album-detalhes.fullscreen {
    width: 100%;
    padding: 10px;
    color: #fff;
}

.album-header-flex {
    display: flex;
    gap: 30px;
    padding: 30px;
    background: linear-gradient(to bottom, #444444, #303030);
    border-radius: 10px 10px 0 0;
    align-items: center;
}

.album-controls-bar {
    margin: 0px;
    display: flex;
    padding: 20px;
    background: linear-gradient(to bottom, #222222, #191919);
    align-items: center;
}

.album-cover {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 8px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5) !important;
}

.album-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
}

.album-info .album-title {
    font-size: 50px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #fff;
    margin-bottom: 8px;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
}

.album-info .album-subinfo,
.album-info .album-count {
    font-size: 16px;
    font-weight: 500;
    color: #b3b3b3;
    margin-bottom: 4px;
}

#albuns-favoritos h3,
#albuns-playlists h3,
#albuns-listados h3 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 40px 10px 16px;
    font-family: 'Montserrat', sans-serif;
}

.albuns-favoritos-wrapper {
    margin-bottom: 40px;
}

.albuns-favoritos-scroll {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.albuns-favoritos-scroll::-webkit-scrollbar {
    display: none;
}

.albuns-favoritos-scroll::-webkit-scrollbar-thumb {
    background-color: #666;
    border-radius: 4px;
}

.albuns-favoritos-scroll::-webkit-scrollbar-track {
    background-color: transparent;
}

.albuns-favoritos-scroll .album-card {
    flex: 0 0 auto;
    width: 150px;
}

/* Botoes */
.album-top-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.btn-voltar {
  background: none;
  color: #ccc;
  border: none;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn-voltar:hover {
  color: #ffff;
  background: none;
}

.btn-voltar svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

#albumPlayButton i {
  font-size: 32px;
  color: #000;
  flex-shrink: 0;
}

.btn-download-outline {
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    padding: 6px 16px;
    border-radius: 24px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-download-outline svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: inline;
    margin-bottom: -3px;
}

.btn-download-outline:hover {
    background: #fff;
    color: #000;
}

/* Bloco de musicas */
.album-tracks-table {
    padding: 0 10px 10px;
    background: linear-gradient(to bottom, #191919, #050505);
    border-radius: 0 0 10px 10px;
}

.table-header, .musica {
    display: grid;
    grid-template-columns: 30px 1fr 80px 40px;
    align-items: center;
    padding: 10px 0;

}

.table-header {
    font-weight: bold;
    color: #b3b3b3;
    border-bottom: 1px solid #444;
}

.table-header span:last-child {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 10px;
}

.musica:hover {
    background-color: #1a1a1a;
    cursor: pointer;
}

.track-index, .track-name, .track-status {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-index {
    font-size: 16px;
}

/* Tabela de musicas */
.table-header {
  display: grid;
  grid-template-columns: 40px 1fr 80px;
  font-weight: bold;
  color: #b3b3b3;
  padding: 10px 0;
  border-bottom: 1px solid #444;
}

.table-header span {
  font-size: 13px;
  padding: 0 20px;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.musica {
  margin-top: 5px;
  display: grid;
  border-radius: 10px;
  padding: 5px 5px;
  align-items: center;
  transition: background-color 0.2s ease;
}

.musica:hover {
  background-color: #1a1a1a;
  cursor: pointer;
}

.track-index {
  color: #b3b3b3;
  text-align: left;
  min-width: 35px;
  margin-left: 4px;
  padding-left: 0px;
  position: relative;
  transition: color 0.2s ease;
  display: inline-block;
}

.musica:hover .track-index::before {
  content: '';
  background-color: #fff;
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 3.993v8.014c0 .55.595.872 1.07.58l6.067-4.007a.667.667 0 000-1.167L5.07 3.406A.667.667 0 004 3.993z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 3.993v8.014c0 .55.595.872 1.07.58l6.067-4.007a.667.667 0 000-1.167L5.07 3.406A.667.667 0 004 3.993z'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: left center;
  -webkit-mask-position: left center;
  mask-size: 14px;
  -webkit-mask-size: 14px;
  width: 14px;
  height: 14px;
  position: absolute;
  left: 0px;
  top: 50%;
  transform: translateY(-50%);
}


.musica:hover .track-index {
  color: transparent;
}

.musica.playing .track-name {
    color: #1db954;
    font-weight: 600;
}

.track-name {
  display: flex;
  flex-direction: column;
  color: #fff;
  white-space: normal;
  word-break: break-word;
  margin-bottom: -7px;
}

.track-artist {
  font-size: 12px;
  color: #b3b3b3;
}

.track-status {
  color: #b3b3b3;
  text-align: right;
}

.track-status,
.track-download {
  display: flex;
  justify-content: center;
  align-items: center;
}

.track-download svg {
  color: #fff;
  display: block;
  margin: auto;
}

.track-download svg:hover {
  color: #838383;
}

/* Grid de albuns */
.albuns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0px;
}

.albuns-grid.ocultar {
    display: none;
}

.album-card {
  border-radius: 8px;
  overflow: hidden;
  padding: 10px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: background-color 0.2s ease;
}

.album-card:hover {
  background-color: #1b1b1b;
}

.album-card img {
  width: 100%;
  border-radius: 4px;
  display: block;
}

.album-card h4 {
  margin: 6px 1px 1px 1px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-align: left;
  line-height: 1.2;
}

.album-card p {
  font-size: 12px;
  color: #aaa;
  text-align: left;
  margin: 0px 1px;
  line-height: 1.2;
}

.album-card a {
  display: block;
  position: relative;
}

.album-card a::after {
  content: "";
  position: absolute;
  top: 90px;
  right: 8px;
  background-color: #1ed760;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='%23000' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.2s ease;
}

.album-card:hover a::after {
  opacity: 1;
  transform: scale(1);
}

/* Bloco de musicas */
#blocos-dinamicos {
    margin-top: 15px;
    padding: 10px 0 ;
    border-radius: 10px !important;
    background: #050505;
    border-radius: 0 0 10px 10px;
}

#blocos-dinamicos h3{
    margin-left: 15px;
    margin-bottom: 0px;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

@media (max-width: 600px) {
  #album-detalhes.fullscreen {
    width: 100%;
    padding: 10px;
  }
  .album-header-flex {
    flex-direction: row;
    gap: 16px;
  }

  .album-cover {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
  }

  .album-info .album-title {
    font-size: 20px;
  }
  
  .album-tracks-table {
    padding: 0 10px 3px;
  }
  
  .album-info .album-subinfo,
  .album-info .album-count {
    font-size: 12px;
  }
  
  .albuns-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
  .btn-download-outline {
    padding: 5px 10px;
    font-size: 12px;
  }
  
  .btn-download-outline svg {
    width: 18px;
    height: 18px;
    margin-bottom: -4px;
  }
  .album-info {
    flex: 1;
  }

  .table-header,
  .musica {
    grid-template-columns: 28px 1fr 28px 28px;
    padding: 3px 10px;
  }
  
  .table-header span:last-child {
    padding: 0 5px;
  }
  
  .table-header span {
    padding: 0 7px;
  }
  
  .track-index {
    font-size: 12px;
    margin-left: -1px;
  }

  .track-name {
    font-size: 13px;
  }

  .track-artist {
    font-size: 11px;
  }

  .album-card h4 {
    font-size: 12px;
  }

  .album-card p {
    font-size: 11px;
  }

  .album-card a::after {
    top: 66%;
    right: 10px;
  }
  
  .album-card:hover {
    transform: scale(0.95);
    transition: transform 0.2s ease;
  }
  
  #blocos-dinamicos h3{
    font-size: 16px;
  }
}


/* Estilizando o player */
body {
  margin: 0;
  padding: 0;
  background-color: #111;
  color: #fff;
  font-family: Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
  user-select: none !important;
}

/* Para garantir que o player fique no final da pÃƒÂ¡gina */
.player-album {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: #222;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.5);
}

/* Nome da musica */
.music-info-album {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 15px;
  position: relative;
}

/* Container nome da musica */
.music-name-container-album {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  text-align: center;
  position: relative;
}

/* Icone de musica */
.music-info-album i {
  color: #fff;
  font-size: 18px;
}

/* Nome da musica */
#musicName-album {
  font-size: 14px;
  font-weight: 600;
  color: #22c55e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90%;
}

/* Barra de progresso e tempos */
.progress-container-album {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 800px;
  margin-top: 10px;
  margin-bottom: 10px;
}

#currentTime-album, #duration-album {
  font-size: 12px;
  color: #999;
}

.progress-bar-album {
  flex: 1;
  height: 5px;
  background-color: #444;
  border-radius: 5px;
  position: relative;
  margin: 0 10px;
}

.progress-album {
  height: 100%;
  width: 0;
  background-color: #22c55e;
  border-radius: 5px;
}

/* Controles */
.controls-album {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  max-width: 450px;
  gap: 5px;
}

/* Play/Pause Button */
.controls-album button#playPauseBtn-album {
  background-color: #fff !important;
  color: #000;
  border-radius: 50%;
  padding: 8px;
  font-size: 25px;
}

.controls-album button {
  background: none !important;
  border: none;
  color: #ccc;
  font-size: 25px;
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.controls-album button:hover {
  color: #fff;
}

.controls-album button#playPauseBtn-album:hover {
  background-color: #ddd;
}

/* BotÃƒÂµes de shuffle e repeat */
.controls-album button#shuffleButton-album,
.controls-album button#repeatButton-album {
  font-size: 22px;
}

.controls-album button#shuffleButton-album.active,
.controls-album button#repeatButton-album.active {
  color: #0f0;
}

/* Ajustes para telas pequenas (mobile) */
@media (max-width: 600px) {
  .player-album {
    padding: 15px;
  }

  .music-info-album {
    font-size: 14px;
  }

  .controls-album {
    max-width: 100%;
    gap: 8px;
  }

  .controls-album button {
    font-size: 26px;
  }

  .controls-album button#playPauseBtn-album {
    font-size: 32px;
    padding: 15px;
  }

  #currentTime-album, #duration-album {
    font-size: 12px;
  }

  .progress-bar-album {
    height: 4px;
  }
}
