/* H-Donghua V2 Homepage Genre Carousel Stylesheet */
/* Premium Genre Slider Section (This Turn) */
.hd-genre-slider-section {
  margin-top: var(--hd-spacing-xl);
}

.hd-genre-title-wrap {
  display: flex;
  align-items: center;
  gap: var(--hd-spacing-sm);
}

.hd-genre-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--hd-primary-glow);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--hd-radius-md);
  color: var(--hd-primary);
  box-shadow: var(--hd-glow-primary);
}

.hd-genre-slider-wrapper {
  position: relative;
  width: 100%;
}

.hd-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: var(--hd-radius-full);
  background: rgba(15, 18, 23, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--hd-border-glass);
  color: var(--hd-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all var(--hd-duration-normal) var(--hd-ease-out);
  box-shadow: var(--hd-shadow-md);
}

.hd-slider-arrow:hover {
  background: var(--hd-primary);
  border-color: var(--hd-primary);
  color: #fff;
  box-shadow: 0 0 15px var(--hd-primary-glow);
  transform: translateY(-50%) scale(1.08);
}

.hd-slider-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.hd-slider-arrow.prev {
  left: -20px;
}

.hd-slider-arrow.next {
  right: -20px;
}

@media (max-width: 1200px) {
  .hd-slider-arrow.prev {
    left: -10px;
  }
  .hd-slider-arrow.next {
    right: -10px;
  }
}

@media (max-width: 768px) {
  .hd-slider-arrow.prev {
    left: -4px;
  }
  .hd-slider-arrow.next {
    right: -4px;
  }
  .hd-slider-arrow {
    width: 32px;
    height: 32px;
  }
  .hd-slider-arrow svg {
    width: 16px;
    height: 16px;
  }
}

.hd-genre-scroll-container {
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  padding: 4px 4px 12px 4px;
  margin: 0 -4px;
  -webkit-overflow-scrolling: touch;
}

.hd-genre-scroll-container::-webkit-scrollbar {
  display: none; /* Safari/Chrome */
}

.hd-genre-cards-wrap {
  display: flex;
  gap: var(--hd-spacing-sm);
  width: max-content;
}

.hd-genre-card {
  display: flex;
  align-items: center;
  gap: var(--hd-spacing-xs);
  background-color: var(--hd-surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--hd-border-glass);
  padding: 10px 20px;
  border-radius: var(--hd-radius-full);
  transition: all var(--hd-duration-normal) var(--hd-ease-out);
  cursor: pointer;
  text-decoration: none;
}

.hd-genre-card:hover {
  transform: translateY(-3px);
  border-color: var(--hd-primary);
  box-shadow: 0 8px 20px var(--hd-primary-glow);
  background-color: rgba(255, 255, 255, 0.05);
}

.hd-genre-card-name {
  font-family: var(--hd-font-display);
  font-weight: 700;
  font-size: var(--hd-text-sm);
  color: #fff;
  transition: color var(--hd-duration-normal) var(--hd-ease-out);
}

.hd-genre-card:hover .hd-genre-card-name {
  color: var(--hd-primary);
}

.hd-genre-card-count {
  font-size: 10px;
  font-weight: 800;
  color: var(--hd-text-muted);
  background-color: rgba(255, 255, 255, 0.04);
  padding: 2px 8px;
  border-radius: var(--hd-radius-full);
  border: 1px solid var(--hd-border-glass);
  transition: all var(--hd-duration-normal) var(--hd-ease-out);
}

.hd-genre-card:hover .hd-genre-card-count {
  color: #fff;
  background-color: var(--hd-primary);
  border-color: var(--hd-primary);
  box-shadow: var(--hd-glow-primary);
}
