.tabpanels-responsive {
  height: calc(100dvh - 9.7rem);
  overflow: auto;
}

@media (max-width: 768px) {
  .tabpanels-responsive {
    height: calc(100dvh - 8.5rem);
  }
}

.author-wrapper {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--p-content-border-color);
}

.loading-state {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: 1rem;
}

.author-header {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem;
  margin-bottom: 1.5rem;

  @media (max-width: 767px) {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.author-photo-section {
  flex-shrink: 0;
}

.author-photo-large {
  width: 180px;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);

  @media (max-width: 767px) {
    width: 140px;
    height: 175px;
  }
}

.author-photo-placeholder-large {
  width: 180px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--p-surface-800), transparent 20%);
  color: #64748b;

  i {
    font-size: 4rem;
  }

  @media (max-width: 767px) {
    width: 140px;
    height: 175px;
  }
}

.author-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.author-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;

  @media (max-width: 767px) {
    justify-content: center;
  }
}

.asin-link {
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;

  &:hover {
    opacity: 0.8;
  }
}

.author-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;

  @media (min-width: 768px) {
    font-size: 1.875rem;
  }
}

.description-box {
  padding: 1rem 0.5rem 0.5rem;

  @media (max-width: 767px) {
    text-align: left;
  }
}

.description-container {
  transition: all 0.3s;
  overflow: hidden;
}

.line-clamp-5 {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-none {
  -webkit-line-clamp: unset;
}

.readonly-editor {
  font-size: 0.9rem;
  color: #d1d5db;
  line-height: 1.6;
  white-space: pre-wrap;
}

.books-section {
  padding: 0 0.5rem;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #e2e8f0;
}

.books-virtual-scroller {
  width: 100%;
  height: calc(100dvh - 22rem);
  box-sizing: border-box;
  overflow-y: auto;

  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) rgba(20, 20, 30, 0.5);

  &::-webkit-scrollbar {
    width: 12px;
  }

  &::-webkit-scrollbar-track {
    background: rgba(20, 20, 30, 0.5);
    border-radius: 10px;
  }
}

.books-grid {
  display: grid;
  gap: 1.3rem;
  align-items: start;
  justify-items: center;
  width: 100%;
  padding: 0.5rem;
}

.virtual-scroller-item {
  position: relative;
  overflow: visible;
}

.empty-books {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem;
  text-align: center;

  i {
    font-size: 2.5rem;
    color: #64748b;
    margin-bottom: 0.75rem;
  }

  p {
    color: #94a3b8;
    font-size: 1rem;
    margin: 0;
  }
}
