/* ==========================================================================
   MUSIC SECTION STYLES
   ========================================================================== */

/* Controls the divs that surround albums, EPs, and singles. */
.music-category {
  margin-top: 0.5rem;
}

/* Controls the headers that announce the Albums, EPs, and Singles subsections. */
.music-category h3 {
  font-size: 1.5rem;
  border-bottom: 1px solid #222222;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

/* A div containing all the albums / all the EPs. */
.releases-list-horizontal {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

/* The article about an album or EP. */
.release-card-horizontal {
  display: flex;
  background-color: #111111;
  border: 1px solid #222222;
  border-radius: 6px;
  overflow: hidden;
  text-align: left;
}

/* A div around the cover of an album or EP. */
.release-card-horizontal .cover-container {
  flex: 0 0 350px;
  /* Do not grow, do not shrink, fix basis to 350px */
  width: 350px;
  height: 350px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

/* A div around the cover of a single. */
.release-card-vertical .cover-container {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  overflow: visible;
  /* Prevents artificial container padding/overflow */
}

/* The image for some kind of music release. */
.release-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  /* Forces every cover image to remain a square */
  object-fit: cover;
  /* Prevents image distortion by cropping cleanly if needed */
  display: block;
}

/* All the text about a release. */
.release-details {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.release-title {
  margin: 0 0 0.25rem 0;
  font-size: 1.3rem;
  color: #ffffff;
}

.release-date {
  margin: 0 0 1rem 0;
  font-size: 0.85rem;
  color: #888888;
}

.tracklist-container {
  font-size: 0.9rem;
  color: #cccccc;
  margin-bottom: 1.25rem;
  flex: 1;
}

.tracklist {
  margin: 0.5rem 0 0 1.25rem;
  padding: 0;
}

.tracklist li {
  margin-bottom: 0.2rem;
}

.stream-btn {
  display: inline-block;
  align-self: flex-start;
  background-color: #ffffff;
  color: #000000;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.stream-btn:hover {
  background-color: #cccccc;
  transform: translateY(-2px);
}

/* Grid layout for Singles (Compact) */
.singles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.singles-grid .release-card-vertical {
  background-color: #111111;
  border: 1px solid #222222;
  border-radius: 6px;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.singles-grid .cover-container {
  aspect-ratio: 1 / 1;
  width: 100%;
}

/* Responsive collapse for small screens */
@media (max-width: 600px) {
  .release-card-horizontal {
    flex-direction: column;
  }

  .release-card-horizontal .cover-container {
    flex: auto;
    max-width: 100%;
  }
}