/* Cover Swap — album list. Shared look comes from night.css. */

.toolbar {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

/* Albums as record sleeves: dark square, vinyl grooves peeking out */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.album-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: flex-end;
  padding: 1.1rem;
  overflow: hidden;
  cursor: pointer;
  background:
    radial-gradient(circle at 78% 22%, transparent 0 9%, rgba(244, 241, 234, 0.05) 9.5% 10%, transparent 10.5%),
    repeating-radial-gradient(circle at 78% 22%, rgba(244, 241, 234, 0.035) 0 1px, transparent 1px 5px),
    linear-gradient(150deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
  animation: rise 0.8s var(--ease) both;
}

/* a neon edge that lights up on hover */
.album-tile::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--neon);
  box-shadow: 0 0 10px var(--neon), 0 0 22px var(--neon);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.album-tile:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--neon) 40%, transparent);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8), 0 0 24px -8px color-mix(in srgb, var(--neon) 50%, transparent);
}

.album-tile:hover::after { transform: scaleX(1); }

.album-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--bone);
  transition: text-shadow 0.3s var(--ease);
}

.album-tile:hover .album-title {
  text-shadow: 0 0 10px var(--neon), 0 0 24px color-mix(in srgb, var(--neon) 60%, transparent);
}

/* shown only while the grid is empty */
.empty-note {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--faint);
}

.album-grid:not(:empty) + .empty-note { display: none; }
