/* Portrait poster art (features/posters.js). The old banner height and emoji pattern of .poster are replaced for these posters. */
.poster.poster-art {
  display: block;
  height: auto;
  aspect-ratio: 2 / 3;
  border-bottom: 3px solid var(--border);
  background: #241b3f;
}

.poster-art::before { display: none; }

.poster-svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Silhouettes (features/posters.js): dark fill with a thin rim light in the colour of the svg. */
.poster-svg .s { fill: #07030f; stroke: currentColor; stroke-width: 1.6; stroke-opacity: 0.55; }

.poster-title text {
  font-family: var(--font-display);
  font-weight: 800;
  stroke: rgba(20, 20, 60, 0.55);
  stroke-width: 1.5px;
  paint-order: stroke;
}

.poster-tag {
  fill: #fff;
  opacity: 0.92;
  font-family: var(--font-display);
  font-weight: 800;
}

.poster-year {
  fill: #fff;
  opacity: 0.7;
  font-family: var(--font-display);
  font-weight: 700;
}

/* In the film window the poster stands on its own above the text instead of stretching across it. */
.modal-content .poster.poster-art {
  width: min(230px, 60%);
  height: auto;
  margin: 0 auto 1.3rem;
  overflow: hidden;
  border: 3px solid var(--border);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--shadow-color);
}

@media (max-width: 700px) {
  .poster.poster-art { height: auto; }
  .modal-content .poster.poster-art { margin: 0 auto 1.1rem; }
}

/* The best-match card of the guided picker keeps its wide banner: the picture is cropped, the title is in the text below. */
.modal-content .quiz-best .poster.poster-art {
  width: auto;
  height: 180px;
  aspect-ratio: auto;
  margin: 0;
  border: 0;
  border-bottom: 3px solid var(--border);
  border-radius: 0;
  box-shadow: none;
}

/* Static film pages (tools/build-pages.js): the poster fills the 2:3 frame of .page-poster. */
.page-poster.poster-art {
  display: block;
  overflow: hidden;
  background: #241b3f;
}

@media (max-width: 700px) {
  .page-poster.poster-art { width: 11rem; aspect-ratio: 2 / 3; margin: 0 auto; }
}

/* Movie of the day: the poster fills the left column; on a phone it stands on its own above the text. */
.daily-poster.poster-art {
  position: relative;
  display: block;
  min-height: 300px;
  overflow: hidden;
  background: #241b3f;
}

.daily-poster.poster-art .poster-svg { position: absolute; inset: 0; }

@media (max-width: 700px) {
  .daily-poster.poster-art {
    width: 9.5rem;
    min-height: 0;
    aspect-ratio: 2 / 3;
    margin: 1.1rem auto 0;
    border: 3px solid var(--border);
    border-radius: 16px;
    box-shadow: 4px 4px 0 var(--shadow-color);
  }
}

/* Thumbnails of the movie assistant's suggestions. */
.assist-poster.poster-art {
  position: relative;
  display: block;
  height: auto;
  aspect-ratio: 2 / 3;
  padding: 0;
  overflow: hidden;
  background: #241b3f;
}

.assist-poster.poster-art b {
  position: absolute;
  left: 50%;
  bottom: 0.25rem;
  transform: translateX(-50%);
  white-space: nowrap;
}
