
:root {
  --dark-background: linear-gradient(to bottom, #1d1d1d, #0f0f0f);
  --dark-gradient: linear-gradient(to right, #ff6f61, #d45d79);
  --light-background: #ffffff; 
  --light-gradient: linear-gradient(to right, #4fa3f7, #1e76d2);
  --text-light: #000000;
  --text-dark: #ffffff;
  --select-background: #292929;
  --select-hover-background: #3a3a3a;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: var(--dark-background);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

body.light-theme {
  background: var(--light-background);
  color: var(--text-dark);
}
header {
  padding: 1.5rem 2rem;
  background: var(--dark-gradient);
  display: flex;
  justify-content: flex-start; 
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

body.light-theme header {
  background: var(--light-gradient);
}

header h1 {
  font-size: 1.8rem;
  font-weight: bold;
  text-transform: uppercase;
}

.filters select {
  padding: 0.5rem;
  margin: 0 0.5rem;
  border: none;
  border-radius: 4px;
  background: var(--select-background);
  color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  transition: background 0.3s;
}

.filters select:hover {
  background: var(--select-hover-background);
}

body.light-theme .filters select {
  background: #f0f0f0;
  color: #000;
}

body.light-theme .filters select:hover {
  background: #e0e0e0;
}

#album-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}
footer{
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100%;

}

.album-card {
  background: var(--select-background);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeIn 1s ease-in-out;
  color: var(--text-dark);
}

body.light-theme .album-card {
  background: #f0f0f0;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  color: var(--text-light);
}

.album-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.7);
}

.album-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-bottom: 13px;
}

.album-card h2 {
  font-size: 1.4rem;
  margin: 0.5rem 1rem 0;
}

.album-card p {
  margin: 0.3rem 1rem;
  font-size: 0.9rem;
  color: #bbb;
}

@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

#audio-player {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--dark-gradient);
  padding: 1rem 2rem;
  border-radius: 10px 10px 0 0;
  flex-wrap: wrap;
}

body.light-theme #audio-player {
  background: var(--light-gradient);
}

#audio-player button {
  background: transparent;
  border: none;

  font-size: 1.5rem;
  margin: 0 1rem;
  cursor: pointer;
  transition: transform 0.2s;
  flex-wrap: wrap;
}
.audio-button{
  color: white;
}
.control-button {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  margin: 0 0.5rem;
  cursor: pointer;
  transition: transform 0.2s, color 0.3s;
}

button.active {
  background-color: #000000;
  color: black; 

}

#audio-player button:hover {
  transform: scale(1.2);
}

#audio-player input[type="range"] {
  width: 100px;
  margin: 0 1rem;
  cursor: pointer;
}

#audio-player input[type="range"]::-webkit-slider-thumb {
  background: #ff6f61;
  border: none;
  border-radius: 50%;
}

.slider-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 1rem;
}

.slider-label {
  font-size: 0.9rem;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 0.5rem;
  text-align: center;
}

.track-list {
  display: flex;
  flex-direction: column; 
  gap: 10px; 
}

.play-track {
  width: 100%;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  font-weight: bold;
  color: #ffffff;
  background: var(--dark-gradient);
  border: none;
  border-radius: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  gap: 10px;
}

.play-track:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
  background: var(--dark-gradient);
}

.play-track:active {
  transform: translateY(2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

body.light-theme .play-track {
  background: var(--light-gradient);
}


@media (max-width: 768px) {
  header h1 {
      font-size: 1.5rem;
  }

  .filters select {
      width: 100%;
      margin: 0.5rem 0;
  }

  #album-list {
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
  }

  .album-card img {
      width: 100%;
      height: 200px;
  }

  .album-card h2 {
      font-size: 1.2rem;
  }

  #audio-player {
    flex-direction: row;
    justify-content: center;
  }

  #audio-player{
        font-size: 1.2rem;
        margin: 0 0.5rem; 
        flex-wrap: nowrap; 
        flex-direction: column; 
        align-items: center; 

  }

  #audio-player input[type="range"] {
      width: 80%;
  }


}
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-background);
  color: var(--text-dark);
  border: none;
  border-radius: 30px;
  width: 100px;
  height: 40px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
  font-weight: bold;
  transition: background 0.3s;
}

body.light-theme .theme-toggle{
  background: var(--light-background);
  color: var(--text-light);
}

body.light-theme .theme-toggle:hover {
  background: var(--dark-gradient); 
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5); 
  transform: scale(1.05); 
}
.theme-toggle:hover {
  background: var(--light-gradient); 
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5); 
  transform: scale(1.05); 
}

