.book-cover-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  height: auto;

  .book-cover {
    width: 100%;
    display: block;
    border-radius: 0.5rem;
  }

  &.audiobook-only {
    .book-cover {
      aspect-ratio: 1 / 1;
      object-fit: cover;
    }
  }

  .info-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
    z-index: 2;

    &.visible {
      opacity: 1;
      pointer-events: auto;
    }
  }

  .series-number-overlay {
    position: absolute;
    top: 4px;
    left: 4px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.75rem;
    padding: 1px 3px;
    border-radius: 3px;
    z-index: 3;
  }
}
