/* ============================================================
   Spotlight Slider
   Filmstrip-style. Active (center) card is full-brightness,
   larger, and shows title+desc overlay. Side cards are dimmed.
   ============================================================ */

.ao-widget.widget_ao_spotlight_slider {
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
  background: transparent !important;
}

.ao-spotlight-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--ao-bg, #1e1e2e);
}

/* ── Track container ──────────────────────────────────────── */

.ao-spotlight-slider {
  width: 100%;
  height: 320px;
  overflow: hidden;
  position: relative;
  cursor: grab;
  user-select: none;
}

.ao-spotlight-slider.is-dragging {
  cursor: grabbing;
}

.ao-spotlight-track {
  display: flex;
  align-items: center;
  height: 100%;
  will-change: transform;
}

/* ── Each slide ───────────────────────────────────────────── */

.ao-spotlight-slide {
  width: 200px;
  flex-shrink: 0;
  height: 86%;
  margin-right: 12px;
  transition:
    transform 0.4s ease,
    opacity 0.4s ease,
    filter 0.4s ease;
  transform: scale(0.82);
  opacity: 0.4;
  filter: grayscale(1) brightness(0.5);
  will-change: transform, opacity, filter;
}

/* Active (center) slide — full color */
.ao-spotlight-slide.ao-spotlight-active {
  transform: scale(1);
  opacity: 1;
  filter: grayscale(0) brightness(1);
  z-index: 2;
  height: 100%;
}

/* Adjacent slides */
.ao-spotlight-slide.is-prev,
.ao-spotlight-slide.is-next {
  transform: scale(0.9);
  opacity: 0.55;
  filter: grayscale(1) brightness(0.6);
}

/* ── Card ─────────────────────────────────────────────────── */

.ao-spotlight-card {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #111;
}

.ao-spotlight-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.ao-spotlight-card__no-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a2e;
  color: rgba(255, 255, 255, 0.2);
}

/* ── Overlay (title + desc) ───────────────────────────────── */

.ao-spotlight-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 14px 14px;
  background: linear-gradient(
    to top,
    rgba(6, 6, 14, 0.92) 0%,
    rgba(6, 6, 14, 0.55) 50%,
    transparent 100%
  );
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
  pointer-events: none;
}

/* Show overlay only on active slide */
.ao-spotlight-active .ao-spotlight-card__overlay {
  opacity: 1;
  transform: translateY(0);
}

.ao-spotlight-card__genres {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.ao-spotlight-card__genre {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a29bfe;
  background: rgba(108, 92, 231, 0.2);
  border: 1px solid rgba(108, 92, 231, 0.3);
  padding: 2px 7px;
  border-radius: 20px;
}

.ao-spotlight-card__title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin: 0 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ao-spotlight-card__desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Nav arrows ───────────────────────────────────────────── */

.ao-spotlight-prev,
.ao-spotlight-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.ao-spotlight-prev:hover,
.ao-spotlight-next:hover {
  background: rgba(108, 92, 231, 0.4);
  color: #fff;
  border-color: rgba(108, 92, 231, 0.5);
}

.ao-spotlight-prev {
  left: 12px;
}

.ao-spotlight-next {
  right: 12px;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 768px) {
  .ao-spotlight-slider {
    height: 260px;
  }

  .ao-spotlight-slide {
    width: 150px;
    margin-right: 10px;
  }

  .ao-spotlight-card__title {
    font-size: 12px;
  }

  .ao-spotlight-card__desc {
    display: none;
  }
}
