.genre-directory, .directory-rows {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}
.genre-directory > li, .directory-rows > li { min-width: 0; }
.genre-card, .directory-row {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffef9;
  color: var(--ink);
  text-decoration: none;
}
.genre-card:hover, a.directory-row:hover {
  border-color: #9fb4a8;
  background: #eef3e9;
  color: var(--green);
}
.genre-card { padding: 18px 20px; align-content: start; }
.genre-card-title {
  font: 600 clamp(22px, 3vw, 29px)/1.15 Georgia, serif;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.genre-card .icon-arrow-right, .directory-row .icon-chevron-right, .directory-row .icon-external-link {
  color: var(--green);
  font-size: 15px;
}
.genre-preview {
  grid-column: 1 / -1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.catalog-hero .directory-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  min-height: 44px;
  margin-top: -8px;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.directory-back:hover { text-decoration: underline; }
.genre-description {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffef9;
}
.genre-description summary {
  padding: 13px 18px;
  color: var(--green);
  font-weight: 600;
  cursor: pointer;
}
.genre-description p {
  max-width: 75ch;
  margin: 0;
  padding: 0 18px 18px;
  line-height: 1.65;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.directory-rows { margin-block-end: 0; }
.directory-row { min-height: 52px; padding: 10px 14px; font-weight: 600; overflow-wrap: anywhere; }
.directory-artists .directory-row { grid-template-columns: auto minmax(0, 1fr) auto; }
.artist-portrait {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #e5ecdf;
}
.artist-initial { display: grid; place-items: center; color: var(--green); font: 600 22px/1 Georgia, serif; }
.recording-unavailable small, .directory-empty { color: var(--muted); font-weight: 400; }
@media (min-width: 620px) {
  .genre-directory, .directory-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .genre-directory, .directory-artists { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
