.api-indicator {
  position: absolute;
  background: #f9ab45;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  right: 6px;
}

.amazon-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.amazon-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  vertical-align: middle;
  border: .15em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border .75s linear infinite;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 1rem 0;
  align-items: stretch;
}

@media (min-width: 1200px) {
  .book-grid {
    grid-template-columns: repeat(7, 1fr);
  }
}

.book {
  background: url(/img/book-paper.png);
  background-size: 100% 100%;
  perspective: 1000px;
  width: 175px;
  height: 255px;
  border-radius: 4px;
}

.book img {
  width: 175px;
  height: 255px;
  transition: 1s cubic-bezier(0.25, 1, 0.5, 1);
  transform: rotate(0);
  transform-origin: left;
  border-radius: 4px;
  filter: drop-shadow(0px 20px 13px rgba(27, 37, 58, 0.1)) drop-shadow(0px 8px 5px rgba(27, 37, 58, 0.06));

}

.book:before {
  content: "";
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(255, 255, 255, 0.4) 100%);
  width: 2px;
  margin-left: 8px;
  height: 100%;
  display: block;
  position: absolute;
  z-index: 2;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  ;
}

.book:hover img {
  transition: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  transform: rotateY(-40deg);
  filter: drop-shadow(0px 100px 87px rgba(23, 35, 67, 0.07)) drop-shadow(0px 41.7776px 36.3465px rgba(23, 35, 67, 0.0503198)) drop-shadow(0px 22.3363px 19.4326px rgba(23, 35, 67, 0.0417275)) drop-shadow(0px 12.5216px 10.8938px rgba(23, 35, 67, 0.035)) drop-shadow(0px 6.6501px 5.78559px rgba(23, 35, 67, 0.0282725)) drop-shadow(0px 2.76726px 2.40751px rgba(23, 35, 67, 0.0196802));
  pointer-events: none;
}

.book:hover:before {
  margin-left: 6px;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

.btn-top50 {
  position: relative;
  display: inline-block;
  padding: 12px 28px !important;
  border-radius: 12px;
  background: linear-gradient(135deg, #2196F3, #1976D2); /* Novo azul */
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border: 1px solid rgba(33, 150, 243, 0.2);
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
}

.btn-top50::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1976D2, #1565C0); /* Azul mais escuro */
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.btn-top50-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.btn-top50-text {
  /* no transform animation */
}

.btn-top50-icon {
  display: flex;
  align-items: center;
}

.btn-top50:hover {
  box-shadow: 0 6px 16px rgba(33, 150, 243, 0.3);
  color: #fff !important;
  text-decoration: none;
}

.btn-top50:hover::before {
  opacity: 1;
}

.btn-top50-green::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #388E3C, #2E7D32); /* Verde mais escuro */
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.btn-top50-green-text,
.btn-top50-green:hover {
  box-shadow: 0 6px 16px rgba(36, 176, 79, 0.3);
  color: #fff !important;
  text-decoration: none;
}

.btn-top50-green:hover::before {
  opacity: 1;
}



.book-item.book-locked:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10;
  border-radius: 14px;
}

.book-item.book-locked .lock-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: url('/img/icon-lock-item.svg') no-repeat center center;
  background-size: 50px;
  width: 50px;
  height: 67px;
  z-index: 11;
  cursor: pointer;
  /* Permite interação no cadeado */
}

.book-item.book-locked .lock-icon.shake {
  animation: shake 0.5s ease-in-out;
}

.book-item.book-locked @keyframes shake {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  25% {
    transform: translate(-50%, -50%) rotate(-20deg);
  }

  50% {
    transform: translate(-50%, -50%) rotate(20deg);
  }

  75% {
    transform: translate(-50%, -50%) rotate(-10deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

.book-cover-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f6faff;
  padding-top: 1em;
  padding-bottom: 3em;
}

/* ── SaaS premium book cards (Stripe / Linear / Notion–inspired) ── */

.book-card {
  --book-surface: #ffffff;
  --book-border: rgba(15, 23, 42, 0.08);
  --book-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 28px rgba(15, 23, 42, 0.07);
  --book-shadow-hover: 0 2px 4px rgba(15, 23, 42, 0.04), 0 20px 48px rgba(15, 23, 42, 0.12);
  --book-indigo: #4f46e5;
  --book-indigo-hover: #4338ca;
  --book-text: #111827;
  --book-muted: #6b7280;
  --book-chip-bg: #f3f4f6;
  --book-radius: 18px;

  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  background: var(--book-surface);
  border-radius: var(--book-radius);
  border: 1px solid var(--book-border);
  box-shadow: var(--book-shadow);
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.33, 1, 0.68, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--book-shadow-hover);
  border-color: rgba(15, 23, 42, 0.12);
}

.book-card:focus-within {
  outline: none;
  box-shadow: var(--book-shadow-hover), 0 0 0 3px rgba(79, 70, 229, 0.28);
  border-color: rgba(79, 70, 229, 0.35);
}

.book-card--featured {
  border-color: rgba(79, 70, 229, 0.22);
  box-shadow: var(--book-shadow), 0 0 0 1px rgba(79, 70, 229, 0.12);
}

.book-card .book-item {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.book-card .book-item:hover,
.book-card .book-item:focus-within {
  transform: none;
  box-shadow: none;
}

.book-item-media {
  position: relative;
  padding: 0 18px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 55%);
}

.book-cover-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, #f3f4f6, #e5e7eb);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.book-card .book-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1);
}

.book-card:hover .book-cover-frame .book-cover {
  transform: scale(1.03);
}

.book-badge {
  position: absolute;
  top: 26px;
  left: 26px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.book-badge__icon {
  font-size: 0.68rem;
  opacity: 0.92;
}

.book-badge__rank {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.book-card .book-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px 16px;
  min-height: 0;
  background: transparent;
}

.book-title {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--book-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-author {
  margin: -4px 0 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--book-muted);
}

.book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.book-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #111827;
  background: var(--book-chip-bg);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.book-meta-icon {
  font-size: 0.72rem;
  color: #6b7280;
}

.book-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.book-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}

.book-tag--type {
  color: #312e81;
  background: #eef2ff;
  border-color: rgba(99, 102, 241, 0.18);
}

.book-tag--level {
  font-weight: 600;
}

.book-tag--level i {
  font-size: 0.78rem;
  opacity: 0.88;
}

.book-tag__label {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

/* Meta line (e.g. BT range): no opacity — it washes out contrast on pastel pill backgrounds */
.book-tag__meta {
  font-weight: 500;
  color: #1f2937;
}

/* Level tags: Cool = blue, Spark = orange, Fire = green */
.book-tag--cool {
  color: #1e40af;
  background: #eff6ff;
  border-color: rgba(59, 130, 246, 0.35);
}

.book-tag--cool .book-tag__meta {
  color: #1e3a8a;
}

.book-tag--spark {
  color: #c2410c;
  background: #fff7ed;
  border-color: rgba(249, 115, 22, 0.38);
}

.book-tag--spark .book-tag__meta {
  color: #9a3412;
}

.book-tag--fire {
  color: #166534;
  background: #f0fdf4;
  border-color: rgba(34, 197, 94, 0.38);
}

.book-tag--fire .book-tag__meta {
  color: #14532d;
}

/* ISBN row: strong contrast on card surface (uses .book-card tokens) */
.isbn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-top: auto;
  padding: 8px 2px 2px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: #374151;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.isbn-row:hover {
  color: #1f2937;
}

.isbn-row__code {
  font-variant-numeric: tabular-nums;
  color: var(--book-text, #111827);
  font-weight: 600;
}

.isbn-row:hover .isbn-row__code {
  color: #030712;
}

.isbn-row__action {
  font-size: 0.85rem;
  color: #4b5563;
  transition: color 0.2s ease;
}

.isbn-row:hover .isbn-row__action {
  color: #1f2937;
}

.isbn-row:focus-visible {
  outline: none;
  border-radius: 8px;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.25);
}

.book-card-cta {
  flex-shrink: 0;
  width: 100%;
  padding: 18px 18px 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 55%);
  border-radius: var(--book-radius) var(--book-radius) 0 0;
}

/* Amazon CTA: brand yellow, icon-only (name from aria-label on the link) */
.book-card .btn-amazon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #f0b800;
  background: #ffd814;
  color: #0f1111 !important;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(15, 17, 17, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
  position: relative;
  overflow: hidden;
}

.book-card .btn-amazon:hover {
  background: #f7ca00;
  border-color: #e6a800;
  color: #0f1111 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(240, 136, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.book-card .btn-amazon__logo {
  width: 100%;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.book-card .btn-amazon::before {
  display: none;
}

.book-card .btn-amazon:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 17, 17, 0.35), 0 1px 2px rgba(15, 17, 17, 0.08);
}

.amazon-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  min-height: 40px;
}

.book-card .amazon-spinner {
  color: #232f3e;
  border-color: rgba(15, 17, 17, 0.22);
  border-right-color: transparent;
}

.wrapper-book-item-and-amazon {
  display: flex;
  flex-direction: column;
}

.wrapper-book-item-and-amazon > .book-item {
  flex: 1 1 auto;
  min-height: 0;
}

.book-item.book-locked:after {
  border-radius: var(--book-radius);
  z-index: 10;
}

.book-item.book-locked .lock-icon {
  z-index: 11;
}

/* Skeleton loading */
.book-card--skeleton {
  pointer-events: none;
}

.book-card-skeleton-cta {
  margin: 18px 18px 0;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(90deg, #e5e7eb 0%, #d1d5db 50%, #e5e7eb 100%);
  background-size: 200% 100%;
  animation: book-card-shimmer 1.2s ease-in-out infinite;
}

.book-card-skeleton-media {
  margin: 12px 18px 0;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background: linear-gradient(90deg, #f3f4f6 0%, #eceff3 45%, #f3f4f6 90%);
  background-size: 200% 100%;
  animation: book-card-shimmer 1.2s ease-in-out infinite;
}

.book-card-skeleton-body {
  padding: 18px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.book-card-skeleton-line {
  height: 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f3f4f6 0%, #eceff3 45%, #f3f4f6 90%);
  background-size: 200% 100%;
  animation: book-card-shimmer 1.2s ease-in-out infinite;
}

.book-card-skeleton-line--lg {
  width: 88%;
  height: 14px;
}

.book-card-skeleton-line--md {
  width: 62%;
}

.book-card-skeleton-line--sm {
  width: 48%;
  height: 10px;
}

.book-card-skeleton-chips {
  display: flex;
  gap: 8px;
}

.book-card-skeleton-chip {
  width: 56px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f3f4f6 0%, #eceff3 45%, #f3f4f6 90%);
  background-size: 200% 100%;
  animation: book-card-shimmer 1.2s ease-in-out infinite;
}

@keyframes book-card-shimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

.book_card_front:hover {
  cursor: pointer;
}

.book__flip-container.flipped .flipped .wrapper-spiner-center .spinner-border {
  width: 7rem !important;
  height: 7rem !important;
}

.list-group-item-action:hover {
  cursor: pointer;
}

.bt-level-group {
  background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
  border-radius: 8px;
  padding: 0;
  margin: 2px 0;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}

/* Brilho dinâmico genérico */
.bt-level-group::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent 25%,
      rgba(255, 255, 255, 0.15) 50%,
      transparent 75%);
  animation: shine 4s infinite;
  pointer-events: none;
  opacity: 0.5;
}

/* Brilho colorido específico */
.bt-level-group::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent 25%,
      var(--glow-color) 50%,
      transparent 75%);
  animation: shine 6s infinite;
  pointer-events: none;
  opacity: 0.3;
}

.bg-grades1 {
  background: linear-gradient(45deg, #3B82F6, #2563EB);
}

.bg-grades2 {
  background: linear-gradient(45deg, #F97316, #EA580C);
}

.bg-grades3 {
  background: linear-gradient(45deg, #10B981, #059669);
}

.card-search-book-list {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.color-white {
  color: #FFF !important;
}

.card-search-book-list li {
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-search-book-icon {
  color: #007bff;
}


.emoji {
  font-size: 1.6em;
  filter: drop-shadow(0 0 8px currentColor);
  animation: float 3s ease-in-out infinite;
  position: relative;
  left: 2px;
  top: 2px;
}

.emoji-wrapper {
  margin-right: 6px;
  font-size: 1.1rem;
  display: inline-block;
  position: relative;
  z-index: 2;
  padding: 4px;
  margin-right: 8px;
  display: inline-block;
  position: relative;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.emoji-wrapper::before {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  background: white;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

.filter-pill {
  border: none;
  border-radius: 20px;
  font-weight: 500;
  transition: all 0.2s ease;
  opacity: 1;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
}

.filter-pill:hover,
.filter-pill:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  outline: 3px solid #007bff;
  outline-offset: 3px;
}

.filter-pill.active {
  opacity: 1 !important;
}

.filter-pill:not(.active) {
  opacity: 0.6;
}

.form-label {
  font-size: 16px;
}

.filter-pill {
  border: none;
  padding: 0;
  background: transparent;
  transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.pill-bubble:hover .emoji-wrapper {
  transform: rotate(15deg) scale(1.1);
}

.pill-bubble:hover .emoji-wrapper::before {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pill-bubble {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  font-size: 0.9rem;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(30deg);
  }

  100% {
    transform: translateX(100%) rotate(30deg);
  }
}

/* keyframes do bootstrap */
@keyframes spinner-border {
  to {
    transform: rotate(360deg);
  }
}


@keyframes glow-animation {
  0% {
    box-shadow:
      0 0 10px rgba(255, 215, 0, 0.6),
      0 0 20px rgba(255, 215, 0, 0.4),
      0 0 30px rgba(255, 215, 0, 0.2),
      0 2px 4px rgba(0, 0, 0, 0.2);
  }

  100% {
    box-shadow:
      0 0 20px rgba(255, 215, 0, 0.8),
      0 0 40px rgba(255, 215, 0, 0.6),
      0 0 60px rgba(255, 215, 0, 0.4),
      0 2px 4px rgba(0, 0, 0, 0.2);
  }
}

@keyframes shine {
  0% {
    transform: translateX(-150%) rotate(45deg);
  }

  100% {
    transform: translateX(150%) rotate(45deg);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

/* GRADE FILTERS COMPACTOS */
.grade-filters .pill-bubble {
  padding: 6px 12px;
  font-size: 0.9em;
}

.grade-filters {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.pill-bubble {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  color: white;
  cursor: pointer;
}

/* --- Efeito Hover Corrigido --- */
.pill-bubble:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 20px -5px rgba(0, 0, 0, 0.2),
    0 0 0 2px rgba(255, 255, 255, 0.15) inset;
}

/* --- Efeito de Brilho Dinâmico --- */
.pill-bubble::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.2) 50%,
      rgba(255, 255, 255, 0) 100%);
  transition: left 0.6s ease;
}

.pill-bubble:hover::after {
  left: 150%;
}

/* --- Animação de Gradiente --- */
.pill-bubble {
  background-size: 200% auto;
}

.pill-bubble:hover {
  background-position: right center;
}

.loading-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
  min-height: 200px;
}

.loading-container .spinner-border {
  width: 3rem;
  height: 3rem;
}

.loading-container p {
  font-size: 1.1rem;
  max-width: 400px;
  text-align: center;
}

.list-group-item {
  font-size: 15px;
}

.two-colums li {
  gap: 3px;
}

.s-badge {
  position: absolute;
  top: 6px;
  left: 5px;
  background-color: #ff9800;
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: bold;
  z-index: 5 !important;
}

@media (max-width: 1200px) {
  .book-grid {
    /* columns handled by auto-fill/minmax */
  }
}

@media (max-width: 992px) {
  .book-grid {
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .book-grid {
    gap: 14px;
  }
}

@media (max-width: 400px) {
  .book-grid {
    /* columns handled by auto-fill/minmax */
  }
}