/* music review */

.music-review {
  border: 1px solid var(--border);
  padding: 16px;
  margin-bottom: 12px;
  background-color: var(--bg-inset);
  display: grid;
  grid-template-columns: 104px 1fr;
  grid-template-rows: auto 1fr;
  gap: 0 14px;
  transition: border-color 0.15s;
}

.music-review:hover {
  border-color: var(--border-bright);
}

.album-art {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 104px;
  height: 104px;
  background-color: var(--bg-panel-dark);
  border: 1px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  image-rendering: pixelated;
  align-self: start;
}

.album-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  filter: brightness(0.9) contrast(1.05);
}

.art-placeholder {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
  padding: 8px;
}

.art-placeholder .art-noise {
  display: block;
  font-size: 11px;
  color: var(--border-bright);
  margin: 4px 0;
  letter-spacing: -1px;
}

.review-header {
  grid-column: 2;
  grid-row: 1;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.review-artist {
  font-family: 'VT323', monospace;
  font-size: 26px;
  color: var(--heading);
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 2px;
}

.review-album {
  font-size: 13px;
  color: var(--text-bright);
  margin-bottom: 6px;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  color: var(--text-dim);
  align-items: center;
}

.review-meta .rating {
  font-family: 'VT323', monospace;
  font-size: 17px;
  color: var(--warn);
  letter-spacing: 1px;
}

.review-meta .fav-song span {
  color: var(--accent-pale);
}

.review-body {
  grid-column: 2;
  grid-row: 2;
}

.review-body p {
  font-size: 12px;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 8px;
}

.review-body p:last-child {
  margin-bottom: 0;
}

/* cross-links between reviews and playlists */

.section-link {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.section-link a {
  color: var(--accent-pale);
  text-decoration: none;
}

.section-link a:hover {
  color: var(--link-hover);
}

/* monthly playlists */

.playlist-entry {
  border: 1px solid var(--border);
  padding: 16px;
  margin-bottom: 12px;
  background-color: var(--bg-inset);
  transition: border-color 0.15s;
}

.playlist-entry:hover {
  border-color: var(--border-bright);
}

/* drilldown nav: years -> months */

.playlist-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.playlist-nav a {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 10px 14px;
  border: 1px solid var(--border);
  background-color: var(--bg-inset);
  text-decoration: none;
  transition: border-color 0.15s;
}

.playlist-nav a:hover {
  border-color: var(--border-bright);
}

.year-nav li {
  margin-bottom: 8px;
}

.pl-year,
.pl-month {
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: var(--heading);
  letter-spacing: 1px;
  line-height: 1;
}

.pl-count,
.pl-monthname {
  font-size: 11px;
  color: var(--text-dim);
}

.playlist-nav a:hover .pl-count,
.playlist-nav a:hover .pl-monthname {
  color: var(--accent-pale);
}

/* months as a wrapped row of chips within a year */
.month-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.month-nav a {
  flex-direction: column;
  gap: 3px;
  min-width: 78px;
}

.playlist-body p {
  font-size: 12px;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 12px;
}

.playlist-body ol {
  list-style: none;
  counter-reset: track;
  margin: 0;
  padding: 0;
}

.playlist-body ol li {
  counter-increment: track;
  position: relative;
  padding-left: 30px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text);
  line-height: 1.6;
}

.playlist-body ol li:last-child {
  margin-bottom: 0;
}

.playlist-body ol li::before {
  content: counter(track, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
}

.playlist-body ol li strong {
  color: var(--text-bright);
  font-weight: normal;
}

/* shrink the art a bit on medium screens */
@media only screen and (max-width: 820px) {
  .music-review {
    grid-template-columns: 80px 1fr;
  }

  .album-art {
    width: 80px;
    height: 80px;
  }
}

/* on small screens just stack everything vertically */
@media only screen and (max-width: 520px) {
  .music-review {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .album-art {
    grid-column: 1;
    grid-row: 1;
    width: 80px;
    height: 80px;
  }

  .review-header {
    grid-column: 1;
    grid-row: 2;
  }

  .review-body {
    grid-column: 1;
    grid-row: 3;
  }
}
