.controles-container {
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

.controle-grupo {
  display: flex;
  align-items: center;
  gap: 5px;
}

.controle-grupo label {
  color: #1a1a1a;
}

.seletor-custom {
  color: #1a1a1a;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

.pesquisa-container {
  margin-top: 5px;
  width: 100%;
  position: relative;
}

.pesquisa-container.com-sugestoes {
  padding-bottom: 10px;
}

.campo-pesquisa {
  width: 100%;
  max-width: 100%;
  border: none;
  border-bottom: 1px solid #ccc;
  background: none;
  padding: 10px 25px 10px 0;
  font-family: inherit;
  font-size: 16px;    
  line-height: normal;
  color: #1a1a1a;
  outline: none;
  box-sizing: border-box;
}

.campo-pesquisa::-webkit-search-cancel-button {
  display: none;
}

#btn-limpar-busca {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  cursor: pointer;
  color: #1a1a1a;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  line-height: 1;
}

#limpar-filtros {
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 20px;
  margin-bottom: 20px;
  color: #1a1a1a;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}

#limpar-filtros:not([hidden]) {
  display: block;
}

#sugestoes-lista {
  list-style: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.2s ease, opacity 0.2s ease;
}

#sugestoes-lista.visivel {
  max-height: 300px;
  opacity: 1;
  padding: 10px 0 0;
}

@keyframes sugestoes-entrar {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#sugestoes-lista li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 10px 10px;
  font-size: 14px;
  cursor: pointer;
  color: #717171;
}

#sugestoes-lista li:first-child {
  color: #1a1a1a;
}

#sugestoes-lista li.sugestao-nova {
  animation: sugestoes-entrar 0.15s ease;
}

#sugestoes-lista li:hover {
  color: #1a1a1a;
  opacity: 1;
}

.sugestao-tipo {
  font-size: 11px;
  color: #717171;
  flex-shrink: 0;
  margin-left: 8px;
}

mark {
  background: none;
  font-weight: bold;
  color: inherit;
}

.grid-discos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 0;
}

@media (min-width: 600px) {
  .grid-discos {
    grid-template-columns: repeat(4, 1fr);
  }
}

.disco-card {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.disco-card[hidden] {
  display: none;
}

.disco-capa {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(90deg, #eee 25%, #e0e0e0 50%, #eee 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
  margin-bottom: 10px;
  border-radius: 5px;
}

.disco-capa.carregada {
  aspect-ratio: auto;
  height: auto;
  background: none;
  animation: none;
}

@keyframes skeleton {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.disco-info-block {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  line-height: 1.4;
  gap: 4px;
}

.disco-artista {
  font-weight: bold;
  color: #1a1a1a;
  cursor: pointer;
}

.disco-artista:hover {
  text-decoration: underline;
}

.disco-nome {
  color: #1a1a1a;
  text-wrap: balance;
}

.disco-ano {
  color: #717171;
  cursor: pointer;
}

.disco-ano:hover {
  text-decoration: underline;
}

.paginacao-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #717171;
}

.btn-pagina {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: #1a1a1a;
  padding: 0;
  text-decoration: underline;
}

.btn-pagina:disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  .controle-grupo label,
  .disco-artista,
  .disco-nome,
  .seletor-custom,
  #limpar-filtros,
  .campo-pesquisa,
  #btn-limpar-busca {
    color: #e0e0e0;
  }

  .campo-pesquisa {
    border-bottom-color: #444;
  }

  .disco-ano {
    color: #a0a0a0;
  }

  .disco-capa {
    background: linear-gradient(90deg, #2a2a2a 25%, #333 50%, #2a2a2a 75%);
    background-size: 200% 100%;
  }

  .disco-capa.carregada {
    background: none;
  }

  .seletor-custom {
    color-scheme: dark;
  }

  .seletor-custom option {
    background-color: #1a1a1a;
    color: #e0e0e0;
  }

  .btn-pagina {
    color: #e0e0e0;
  }

  .paginacao-container {
    color: #a0a0a0;
  }

  #mensagem-vazia {
    color: #a0a0a0;
  }

  #sugestoes-lista {
    border-color: #444;
  }

  #sugestoes-lista li {
    color: #555;
  }

  #sugestoes-lista li:first-child {
    color: #e0e0e0;
  }

  #sugestoes-lista li:hover {
    color: #e0e0e0;
  }
}