/* Because You Read - Scroll Enhancement */

.byr-novels-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  padding-bottom: 10px;
  cursor: grab;
}

.byr-novels-scroll:active,
.byr-novels-scroll.dragging {
  cursor: grabbing;
}

.byr-novels-scroll::-webkit-scrollbar {
  height: 6px;
}

.byr-novels-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.byr-novels-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.byr-novels-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.byr-novel-card {
  flex: 0 0 auto;
  width: 140px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.byr-novel-card:hover {
  transform: translateY(-4px);
}

/* Ensure cards don't shrink */
.byr-novels-wrapper {
  position: relative;
  overflow: hidden;
}

/* Mobile optimization */
@media (max-width: 768px) {
  .byr-novels-scroll {
    gap: 12px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .byr-novel-card {
    width: 120px;
  }
}
