.book-card-top {
  min-width: 0;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: start;
  gap: 0.7rem;
}

.book-cover-link,
.book-info-link {
  color: inherit;
  text-decoration: none;
}

.book-cover-link {
  min-width: 0;
  display: block;
}

.book-info-link {
  display: block;
}

.book-actions {
  width: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding-top: 0.15rem;
}

.interaction-button {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(81,68,55,0.13);
  border-radius: 10px;
  background: rgba(255,255,255,0.82);
  color: #777069;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(48,38,29,0.055);
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.interaction-button:hover {
  border-color: rgba(81,68,55,0.3);
  color: #28231f;
  transform: translateY(-1px);
}

.interaction-button:focus-visible {
  outline: 2px solid #a96743;
  outline-offset: 2px;
}

.interaction-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.interaction-button svg {
  width: 18px;
  height: 18px;
  fill: transparent;
  transition: fill 0.15s ease;
}

.interaction-button.bookmark.active {
  border-color: rgba(47,111,194,0.28);
  background: rgba(47,111,194,0.11);
  color: #2f6fc2;
}

.interaction-button.upvote.active {
  border-color: rgba(52,138,80,0.28);
  background: rgba(52,138,80,0.11);
  color: #348a50;
}

.interaction-button.downvote.active {
  border-color: rgba(198,74,69,0.28);
  background: rgba(198,74,69,0.11);
  color: #c64a45;
}

.interaction-button.active svg {
  fill: currentColor;
}

.icon-count {
  position: absolute;
  min-width: 13px;
  height: 13px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--surface, #fff);
  font-size: 0.52rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.icon-count[hidden] {
  display: none;
}

.upvote .icon-count {
  top: 1px;
  right: 1px;
  color: #348a50;
}

.downvote .icon-count {
  right: 1px;
  bottom: 1px;
  color: #c64a45;
}

.landing-book-card .book-card-top {
  width: min(150px, 100%);
  display: block;
}

.landing-book-actions {
  position: absolute;
  inset: 0;
  width: auto;
  padding: 0;
  pointer-events: none;
}

.landing-book-actions .interaction-button,
.landing-upvote-indicator {
  position: absolute;
  right: 0.35rem;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}

.landing-book-actions .bookmark {
  top: 0.35rem;
  pointer-events: auto;
}

.landing-upvote-indicator {
  bottom: 0.35rem;
  color: #348a50;
  pointer-events: none;
}

.landing-upvote-indicator[hidden] {
  display: none;
}

.landing-upvote-indicator svg {
  width: 18px;
  height: 18px;
  fill: transparent;
}

.landing-upvote-indicator.has-votes svg,
.landing-upvote-indicator.active svg {
  fill: currentColor;
}

.landing-upvote-indicator .icon-count {
  top: -1px;
  right: -1px;
  color: #348a50;
}

.hero-cover-cluster {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  flex-shrink: 0;
}

.hero-cover-cluster .book-actions {
  padding-top: 0.65rem;
}

.collection-section-block + .collection-section-block {
  margin-top: 4rem;
}

.interaction-status {
  position: fixed;
  z-index: 2100;
  right: 1rem;
  bottom: 1rem;
  max-width: min(360px, calc(100% - 2rem));
  padding: 0.75rem 0.95rem;
  border-radius: 10px;
  background: #28231f;
  color: #fff;
  box-shadow: 0 10px 35px rgba(0,0,0,0.22);
  font: 500 0.76rem var(--sans, sans-serif);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.interaction-status.visible {
  opacity: 1;
  transform: translateY(0);
}

.interaction-status.error {
  background: #873b36;
}

@media (max-width: 700px) {
  .book-card-top {
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 0.4rem;
  }

  .book-actions {
    width: 34px;
  }

  .interaction-button {
    width: 34px;
    height: 34px;
  }

  .landing-book-actions {
    width: auto;
  }

  .landing-book-actions .interaction-button,
  .landing-upvote-indicator {
    right: 0.15rem;
    width: 34px;
    height: 34px;
  }

  .hero-cover-cluster {
    gap: 0.55rem;
  }

  .interaction-status {
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .interaction-button,
  .interaction-button svg {
    transition: none;
  }
}
