.poster-box {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--poster-a), var(--poster-b));
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

.poster-box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, .32), transparent 30%),
    linear-gradient(0deg, rgba(0, 0, 0, .58), transparent 58%);
}

.poster-box img {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.poster-box img.is-broken {
  display: none;
}

.poster-fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  color: #fff;
}

.poster-fallback span {
  align-self: flex-start;
  margin-bottom: auto;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  background: rgba(0, 0, 0, .24);
  font-size: 12px;
  font-weight: 900;
}

.poster-fallback strong {
  font-size: 24px;
  line-height: 1.15;
}

.poster-fallback em {
  margin-top: 7px;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  font-style: normal;
}

.hero-poster:hover .poster-box,
.drama-card:hover .poster-box,
.wide-item:hover .poster-box {
  transform: translateY(-7px) scale(1.02);
  box-shadow: 0 22px 54px rgba(23, 32, 27, .2);
}

.hero-poster-cover {
  min-height: 390px;
}

.wide-poster {
  width: 80px;
  min-width: 80px;
  box-shadow: none;
}

.wide-poster .poster-fallback {
  padding: 8px;
}

.wide-poster .poster-fallback span,
.wide-poster .poster-fallback em {
  display: none;
}

.wide-poster .poster-fallback strong {
  font-size: 14px;
}

.detail-poster-cover {
  width: 100%;
  max-width: 320px;
}

.screen-poster {
  width: 240px;
  min-width: 240px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, .38);
}

@media (max-width: 720px) {
  .screen-poster {
    width: 180px;
    min-width: 180px;
  }

  .hero-poster-cover {
    min-height: 300px;
  }
}
