/* Music Section Styles */

.music-intro {
  max-width: 720px;
  margin: 25px auto 40px;
  text-align: center;
  color: color-mix(in srgb, var(--foreground) 75%, transparent);
}

.music-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.album-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid #333;
  padding: 12px;
  border-radius: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
  background-color: rgba(0, 0, 0, 0.2);
}

.album-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  border-color: #666;
}

.album-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  border: 2px solid var(--accent);
  border-radius: 4px;
  padding: 2px;
  margin-bottom: 10px;
}

.album-title {
  margin: 10px 0 5px;
  font-size: 1.2em;
  font-weight: bold;
}

.album-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.album-composer {
  margin: 0 0 5px;
  font-style: italic;
  color: #aaa;
}

.album-details {
  margin: auto 0 0;
  font-size: 0.9em;
  color: #888;
}

.links-section {
  margin-top: 30px;
}

.album-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.album-links li {
  margin-bottom: 8px;
}

.album-links a {
  text-decoration: underline;
}

.notes-section {
  margin-top: 24px;
}

.album-notes {
  margin: 0;
  color: #888;
}

/* Responsive Grid */
@media (max-width: 1100px) {
  .music-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .music-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .music-grid {
    grid-template-columns: 1fr;
  }
}

/* Single Album Styles */
.album-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.album-header {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  align-items: center;
}

.album-cover-large {
  flex: 0 0 240px;
}

.album-cover-large img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.album-details-large h1 {
  margin-top: 0;
  margin-bottom: 10px;
}

.album-details-large h2 {
  margin-top: 0;
  color: #aaa;
  font-weight: normal;
}

.tracklist-section {
  margin-bottom: 40px;
}

.tracklist {
  list-style-type: decimal;
  padding-left: 20px;
}

.tracklist li {
  margin-bottom: 8px;
  padding: 5px 0;
  border-bottom: 1px solid #333;
}

.pdf-embed {
  border: 1px solid #333;
  padding: 10px;
  background: #fff; /* PDF needs white background usually */
}

.pdf-fallback {
  text-align: center;
  margin-top: 10px;
  color: #333;
}

@media (max-width: 700px) {
  .album-header {
    flex-direction: column;
    text-align: center;
  }
  
  .album-cover-large {
    flex: 0 0 auto;
    width: 80%;
    max-width: 300px;
  }
}
