.hero-slider {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: #111;
  margin-bottom: 22px;
  contain: layout paint;
}
.hero-slide {
  position: absolute;
  inset: 0;
  transform: translate3d(100%,0,0);
}
.hero-slide.active { transform: translate3d(0,0,0); }
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--cover);
  background-size: cover;
  background-position: center top;
  filter: brightness(0.35) saturate(1.2);
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 16px 18px;
}

.hero-btn{
  margin-top:auto;
}
  
.hero-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  font-family: 'Oswald', sans-serif;
  border-radius: 3px;
  color: #fff;
  margin-bottom: 6px;
  width: fit-content;
}
.hero-tag.light { background: var(--red); }
.hero-tag.web   { background: var(--blue); }
.hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 5px;
  line-height: 1.25;
  text-shadow: 0 1px 8px rgba(0,0,0,.9);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-desc {
  font-size: 12px;
  color: #ccc;
  margin: 0 0 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-btn {
  display: inline-block;
  padding: 8px 20px;
  background: var(--red);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 13px;
  border-radius: 5px;
  text-decoration: none;
  width: fit-content;
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(0,0,0,.45);
  border: none;
  color: #fff;
  font-size: 30px;
  width: 32px;
  height: 48px;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.hero-arrow.left  { left: 6px; }
.hero-arrow.right { right: 6px; }
.hero-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translate3d(-50%,0,0);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: background .3s, transform .3s;
}
.dot.active { background: #fff; transform: scale(1.3); }

/* ROW HEADER */
.rj-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  margin-bottom: 10px;
}
.rj-label {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  color: var(--text);
  margin: 0;
  border-left: 4px solid var(--red);
  padding-left: 10px;
}
.rj-viewall {
  background: none;
  border: none;
  color: var(--red);
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  cursor: pointer;
}
#popularSection { margin-top: 6px; }

/* HORIZONTAL ROW */
.rj-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 12px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.rj-row::-webkit-scrollbar { display: none; }
.rj-card {
  flex: 0 0 115px;
  scroll-snap-align: start;
  cursor: pointer;
  background: var(--card);
  border-radius: 6px;
  overflow: hidden;
  transition: transform .2s;
}
.rj-card:hover { transform: translateY(-3px); }
.rj-cover {
  position: relative;
  width: 115px;
  height: 155px;
}
.rj-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.3) brightness(.95);
}
.rj-title {
  font-size: 11px; color: var(--text);
  padding: 5px 6px 1px; margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}
.rj-sub { font-size: 10px; color: #888; padding: 0 6px 1px; margin: 0; }
.rj-ch  { font-size: 10px; color: var(--red); padding: 0 6px 6px; margin: 0; font-family: 'Oswald', sans-serif; }

/* SKELETON */
.rj-card.skeleton {
  height: 195px;
  cursor: default;
  background: linear-gradient(90deg,#2a2a2a 25%,#333 50%,#2a2a2a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ALL NOVELS */
#allNovelsSection .category-buttons { padding: 8px 12px 4px; }
