.library-page {
  min-height: 100vh;
  padding: 4rem 1.5rem 5rem;
  background-color: #ffffff;
}

.library-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.library-header {
  text-align: center;
  margin-bottom: 3rem;
}

.library-kicker {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.12);
  color: #4f46e5;
}

.library-title {
  margin-top: 0.75rem;
  font-size: 2.2rem;
  line-height: 1.1;
  font-weight: 800;
  color: #111827;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.library-subtitle {
  margin: 0.9rem auto 0;
  max-width: 32rem;
  font-size: 0.98rem;
  color: #4b5563;
}

.library-empty {
  text-align: center;
  color: #6b7280;
  font-size: 0.95rem;
  padding: 3rem 0 1.5rem;
}

.library-cta {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ec4899, #f97316);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(236, 72, 153, 0.45);
}

.library-cta:hover {
  color: #fff;
  transform: translateY(-1px);
}

/* Dictionary cover sizing + hover effect */
.dictionary-cover {
  /* Keep a fixed proportion, scale with viewport */
  position: relative;
  aspect-ratio: 3 / 4;
  width: 100%;
  max-width: 100%;
  transition: transform 0.2s ease;
}

@media (min-width: 768px) {
  .dictionary-cover {
    width: 100%;
    max-width: 100%;
  }
}

@media (min-width: 1024px) {
  .dictionary-cover {
    max-width: 100%;
  }
}

.dictionary-cover:hover {
  transform: scale(1.05);
}

/* "Create new dictionary" cover */
.new-dictionary-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  border-radius: 0.75rem;
  background: rgba(100, 180, 115, 0.8);
  color: rgb(255, 248, 251);
  font-weight: 500;
  font-size: 7rem;
}

.new-dictionary-cover:hover {
  background: rgb(143, 190, 150);
  color: rgba(18, 85, 30, 0.8);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.25);
}

.new-dictionary-cover span {
  display: block;
  line-height: 1;
}

@media (max-width: 768px) {
  .bookshelf-wrapper {
    padding: 2rem 1.3rem 1.7rem;
  }

  .book-slot {
    width: 46%;
  }

  .book-cover {
    height: 190px;
  }
}
