body {
  font-family: 'Poppins', sans-serif;
  background-image: url('./images/grass.gif');
  color: #fff;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

header {
  text-align: center;
  padding: 1rem 0;
  background-image: url('./images/grass_dark.png');
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 150px);
  gap: 1.5rem;
  padding: 2rem;
  transition: opacity 0.4s ease;
}

.album {
  position: relative;
  cursor: pointer;
  /*transition: transform 0.3s;*/
}

.album:hover {
  transform: scale(1.05);
}

.album img {
  width: 100%;
  border-radius: 10px;
}

.rating {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0,0,0,0.7);
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.3s;
}

.album:hover .rating {
  opacity: 1;
}

.album-show-rating .rating {
  opacity: 1 !important;
}

/* Review panel */
.review-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-size: cover;
  background-position: center;
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, transform 0.4s ease;
}

.review-panel.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
}

.review-content {
  background: rgba(0,0,0,0.7);
  padding: 2rem;
  border-radius: 10px;
  max-width: 80%;
  text-align: center;
}

.album-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.album-artist {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #129c42;
}

.album-date {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 1rem;
}

.close-btn {
  background: #0aa33f;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 1rem;
}

.close-btn:hover {
  background: #077e31;
}

.album-review {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: #129c42 #333; 
}