/* ===============================
   DEMO SLIDER PLAYER CARDS
================================ */

.demo-card{
  background: rgba(18,20,26,0.94);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
}

.demo-card-top{
  padding: 18px 18px 12px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.demo-badge{
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fccb3b;
  border: 1px solid rgba(252,203,59,0.35);
  border-radius: 999px;
  padding: 4px 10px;
  line-height: 1;
}

.demo-title{
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.demo-sub{
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255,255,255,0.70);
}

/* widget mount area */
.demo-player{
  padding: 0 18px 18px;
}

/* keep slider height stable */
.single-item{
  padding-bottom: 10px;
}
/* Prevent Slick from collapsing dynamic slides */
.product-slider .slick-slide{
  height: auto !important;
}

.product-slider .slick-track{
  display: flex;
}

.product-slider .slick-slide > div{
  height: 100%;
}
/* Only target the carousel demo cards */
.product-slider .demo-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(25,25,25,0.95), rgba(10,10,10,0.95));
  box-shadow:
    0 18px 40px rgba(0,0,0,0.35),
    inset 0 0 0 1px rgba(255,255,255,0.06);
}

/* Side rails */
.product-slider .demo-card::before,
.product-slider .demo-card::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;               /* thickness of wood */
  z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
}

/* Left wood */
.product-slider .demo-card::before {
  left: 0;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(0,0,0,0.20)),
    linear-gradient(90deg, rgba(0,0,0,0.55), rgba(0,0,0,0.05) 40%, rgba(255,255,255,0.08)),
    repeating-linear-gradient(90deg, rgba(120,75,35,0.55) 0px, rgba(120,75,35,0.55) 6px, rgba(95,55,25,0.55) 12px);
  filter: saturate(1.05) contrast(1.05);
}

/* Right wood */
.product-slider .demo-card::after {
  right: 0;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(0,0,0,0.20)),
    linear-gradient(90deg, rgba(255,255,255,0.08), rgba(0,0,0,0.05) 60%, rgba(0,0,0,0.55)),
    repeating-linear-gradient(90deg, rgba(120,75,35,0.55) 0px, rgba(120,75,35,0.55) 6px, rgba(95,55,25,0.55) 12px);
  filter: saturate(1.05) contrast(1.05);
}

/* Ensure content sits above rails */
.product-slider .demo-card > * {
  position: relative;
  z-index: 1;
}

/* Push inner content away from the wood so it reads clean */
.product-slider .demo-card .demo-card-top,
.product-slider .demo-card .demo-player {
  padding-left: 18px;
  padding-right: 18px;
}

/* ===============================
   ACTIVE PLAYING CARD STATE
================================ */

/* Active card - lights up when its player is playing */
.product-slider .demo-card:has(.demo-player.is-playing) {
  box-shadow:
    0 0 0 1.5px rgba(252, 203, 59, 0.55),
    0 0 32px rgba(252, 203, 59, 0.12),
    0 18px 40px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.35s ease;
}

/* Slightly lift the active card */
.product-slider .slick-slide:has(.demo-player.is-playing) {
  transform: translateY(-3px);
  transition: transform 0.35s ease;
}

/* Dim inactive cards when one is playing */
.product-slider:has(.demo-player.is-playing) .slick-slide:not(:has(.demo-player.is-playing)) {
  opacity: 0.55;
  transition: opacity 0.35s ease;
}

/* Restore full opacity on hover even when dimmed */
.product-slider .slick-slide:not(:has(.demo-player.is-playing)):hover {
  opacity: 1 !important;
  transition: opacity 0.2s ease;
}

/* ===============================
   DESKTOP SCROLL HINT
================================ */

.scroll-hint {
  display: none;
}

@media (min-width: 768px) {
  .scroll-hint {
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
    pointer-events: auto;
  }

  .scroll-hint-arrow {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.55);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    flex-shrink: 0;
  }

  .scroll-hint-arrow:hover:not(:disabled) {
    background: rgba(252,203,59,0.12);
    border-color: rgba(252,203,59,0.40);
    color: #fccb3b;
  }

  .scroll-hint-arrow:disabled {
    opacity: 0.22;
    cursor: default;
  }

  .scroll-hint-dots {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .scroll-hint-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.22);
    cursor: pointer;
    padding: 0;
    transition: background 0.22s, border-color 0.22s, transform 0.22s;
  }

  .scroll-hint-dot.active {
    background: #fccb3b;
    border-color: #fccb3b;
    transform: scale(1.25);
    cursor: default;
  }

  .scroll-hint-dot:hover:not(.active) {
    background: rgba(255,255,255,0.45);
  }
}