/* ---- Album Tiles for Micro.blog ---- */

.album-tiles {
  display: grid;
  /* Medium density: covers around 150px, responsive down to phones */
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.album-item {
  display: flex;
  flex-direction: column;
  min-width: 0; /* let text truncate instead of overflowing the grid cell */
}

.album-cover-link { display: block; }

.album-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  display: block;
  transition: transform .15s ease, box-shadow .15s ease;
}

.album-cover-link:hover .album-cover,
.album-cover-link:focus .album-cover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}

.album-cover-missing {
  background: linear-gradient(135deg, rgba(127,127,127,.25), rgba(127,127,127,.1));
}

.album-details {
  margin-top: .5rem;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.album-title {
  font-weight: 600;
  line-height: 1.25;
  font-size: .95rem;
}

.album-artist {
  font-size: .8rem;
  opacity: .7;
}

.album-rating {
  font-size: .75rem;
  opacity: .85;
  margin-top: .15rem;
}

.album-note {
  font-size: .8rem;
  line-height: 1.4;
  margin-top: .3rem;
  opacity: .9;
}
