/* Shared card structure: individual themed artwork first, translated title and copy below. */
.film-grid .film-card,
.book-grid .book-card {
  position: relative;
  display: flex;
  flex: 0 0 clamp(260px, 30%, 320px);
  flex-direction: column;
  height: 450px;
  min-height: 450px;
  max-width: 320px;
  overflow: hidden;
  border: 1px solid #55436e;
  border-radius: 7px;
  background: linear-gradient(145deg, #1a1720, #15121b 72%);
  scroll-margin-block: 24px;
  transition: border-color .2s, box-shadow .2s;
}
.book-grid .book-card {
  height: 480px;
  min-height: 480px;
}
.film-grid .film-card:hover,
.book-grid .book-card:hover {
  transform: none;
  border-color: #8d70ba;
}
.film-grid .film-card.is-picked,
.book-grid .book-card.is-picked {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px #a78bfa70, 0 0 32px #a78bfa25;
}
.film-grid .film-art,
.book-grid .book-art {
  position: relative;
  z-index: 0;
  flex: none;
  width: 100%;
  height: 205px;
  min-height: 205px;
  aspect-ratio: auto;
  padding: 14px;
  opacity: 1;
}
.film-grid .film-art-mark,
.book-grid .book-art > b {
  left: 8%;
  right: 8%;
  max-height: 76%;
  padding: 12px;
  font-size: clamp(20px, 2.2vw, 29px);
  line-height: 1.02;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.film-grid .film-art-top,
.film-grid .film-art-bottom,
.book-grid .book-art > span,
.book-grid .book-art > small {
  font-size: 8px;
}
.film-grid .film-copy,
.book-grid .book-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  padding: 15px 17px 16px;
}
.film-grid .film-meta,
.book-grid .book-meta {
  align-items: flex-start;
  gap: 10px;
  font-size: 9px;
  letter-spacing: .12em;
  line-height: 1.4;
}
.film-grid .film-meta > span,
.book-grid .book-meta > span {
  color: #bda1ef;
}
.film-grid .film-meta time,
.book-grid .book-meta time {
  flex: none;
  font-size: 12px;
}
/* The English title is printed into each themed artwork; retain a semantic heading. */
.film-grid .film-copy h2,
.book-grid .book-copy h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}
.film-grid .film-russian-title,
.book-grid .book-russian-title {
  display: block;
  min-height: 0;
  margin: 12px 0 10px;
  overflow: visible;
  color: var(--text);
  font-size: 0;
  line-height: 1.2;
}
.film-grid .film-russian-title strong,
.book-grid .book-russian-title strong {
  display: block;
  color: var(--text);
  font-size: clamp(24px, 2.4vw, 31px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.15;
  text-wrap: balance;
}
.film-grid .film-description,
.book-grid .book-teaser {
  display: -webkit-box;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  color: #c4bacf;
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.film-grid .film-note {
  display: block;
  margin-top: 7px;
  color: #aa9cba;
  font-size: 10px;
}
.book-grid .book-author {
  display: block;
  min-height: 0;
  margin: 0 0 9px;
  color: #aa9dbb;
  font-size: 11px;
  line-height: 1.4;
}
.book-grid .book-details {
  margin-top: auto;
  border-top-color: #55436e;
}
.book-grid .book-details[open] {
  margin-top: 12px;
}
.book-grid .book-details summary {
  padding-top: 10px;
  font-size: 11px;
}
.book-grid .book-details > p {
  max-height: 140px;
  overflow: auto;
  padding-right: 4px;
  font-size: 12px;
}
.book-grid .book-card:has(.book-details[open]) {
  height: auto;
  min-height: 480px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}
@media (max-width: 650px) {
  .film-grid .film-card,
  .book-grid .book-card {
    flex-basis: min(86vw, 360px);
    height: 430px;
    min-height: 430px;
  }
  .book-grid .book-card {
    height: 460px;
    min-height: 460px;
  }
  .film-grid .film-art,
  .book-grid .book-art {
    height: 190px;
    min-height: 190px;
  }
  .film-grid .film-copy,
  .book-grid .book-copy {
    padding: 13px 15px 14px;
  }
  .film-grid .film-russian-title strong,
  .book-grid .book-russian-title strong {
    font-size: clamp(24px, 7vw, 30px);
  }
  .film-grid .film-description,
  .book-grid .book-teaser {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .film-grid .film-card,
  .book-grid .book-card {
    transition: none;
  }
}
