@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

/* --- RESPONSIVE RULES --- */

/* --- GENRE GRID --- */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.genre-card {
  background-color: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.genre-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.genre-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.genre-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  flex-grow: 1;
}

.genre-card li {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.scrollable-list {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
  scroll-behavior: smooth;
  margin-bottom: 0.5rem;
}

.scrollable-list::-webkit-scrollbar {
  width: 6px;
}

.scrollable-list::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 10px;
}

.view-all-link {
  text-align: right;
  font-size: 0.95rem;
  font-weight: 500;
  color: #007aff;
  text-decoration: none;
  margin-top: 1rem;
  margin-bottom: -0.5rem; /* optional spacing tweak */
  align-self: flex-end;
  transition: color 0.3s ease;
}

.view-all-link:hover {
  color: #005bb5;
}

.genre-detail-list {
  list-style: none;
  padding-left: 0;
  font-size: 1.125rem;
  max-width: 600px;
  margin: 2rem auto;
}

.genre-detail-list li {
  margin-bottom: 0.5rem;
}

.album-header {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.album-cover {
  width: 100%;
  max-width: 160px;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.album-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden; /* 🔒 hide overflowed song list */
  position: relative;
  transition: max-height 0.3s ease;
}

.album-card.expanded {
  overflow: visible;
}

.album-card .song-list.limited {
  max-height: 300px; /* Only limits songs, not entire card */
  overflow-y: hidden;
}

.album-card.expanded .song-list.limited {
  max-height: none;
}

.album-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.album-cover {
  width: 160px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

.album-details {
  flex: 1;
  min-width: 220px;
}

.album-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.song-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  text-align: left; /* 👈 Align all text to the left */
}

.song-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
  text-align: left; /* 👈 Ensures left alignment */
}

.song-title {
  flex-grow: 1;
  margin-right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.song-duration {
  opacity: 0.6;
  margin-left: 0.5rem;
}

.spotify-icon {
  display: inline-flex;
  align-items: center;
}

.spotify-logo {
  width: 22px;
  height: 22px;
  opacity: 0.85;
  transition: transform 0.2s ease;
}

.spotify-logo:hover {
  transform: scale(1.1);
  opacity: 1;
}

.expand-songs {
  margin-top: 1rem;
  align-self: flex-start;
  background: none;
  border: none;
  color: #007aff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.expand-songs:hover {
  color: #005fcc;
}

.no-songs {
  text-align: center;
  font-style: italic;
  color: #888;
}

.disc-heading {
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
  color: #333;
  border-top: 1px solid #ddd;
  padding-top: 0.75rem;
}

.artist-network {
  margin-top: 2rem;
  background: #fafafa;
  border: 1px solid #eee;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  list-style-type: none;
}
.artist-network h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.artist-network ul {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0;
}

.artist-network li {
  margin-bottom: 0.25rem;
  list-style: none;
}

.network-title {
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  text-align: center;
}

#artist-network-graph {
  height: 420px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  margin: 0 auto 1.5rem auto;
  max-width: 100%;
}

.artist-network {
  margin-top: 2rem;
}

.network-legend {
  text-align: center;
  margin: 0.75rem 0;
}

.legend-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.influence-dot {
  background-color: #3b82f6; /* Blue */
}

.listens-dot {
  background-color: #10b981; /* Green */
}
