.book-cover-media,
.book-cover-auto {
  width: 100%;
  height: 100%;
  display: block;
}

.book-cover-auto {
  position: relative;
  overflow: hidden;
  color: rgba(255,255,255,.96);
  background: var(--cover-color, #5b6cfa);
  background-image:
    radial-gradient(circle at 20% 18%, rgba(255,255,255,.18), rgba(255,255,255,0) 36%),
    linear-gradient(160deg, rgba(255,255,255,.08), rgba(0,0,0,.10));
}

.book-cover-auto::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 100%;
  background: rgba(0,0,0,.18);
  box-shadow: inset -1px 0 0 rgba(255,255,255,.12);
}

.book-cover-auto__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 14px 14px 12px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.book-cover-auto__badge {
  align-self: flex-start;
  max-width: 100%;
  padding: .2rem .48rem;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.90);
  font-size: .68rem;
  line-height: 1.1;
  backdrop-filter: blur(2px);
}

.book-cover-auto__title {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .01em;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0,0,0,.16);
}

.book-cover-auto__author {
  margin-top: .45rem;
  font-size: .78rem;
  line-height: 1.2;
  color: rgba(255,255,255,.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-cover--sm .book-cover-auto__inner {
  padding: 9px 8px 8px 12px;
}
.book-cover--sm .book-cover-auto__badge {
  font-size: .55rem;
  padding: .12rem .35rem;
}
.book-cover--sm .book-cover-auto__title {
  font-size: .74rem;
  -webkit-line-clamp: 4;
}
.book-cover--sm .book-cover-auto__author {
  margin-top: .25rem;
  font-size: .60rem;
}

.book-cover--md .book-cover-auto__title {
  font-size: 1.05rem;
}
.book-cover--lg .book-cover-auto__inner {
  padding: 16px 16px 14px 22px;
}
.book-cover--lg .book-cover-auto__title {
  font-size: 1.2rem;
  -webkit-line-clamp: 5;
}
.book-cover--lg .book-cover-auto__author {
  font-size: .86rem;
}
