/* Creator showcase — rolling video rows on the agency pages (EN/KO/JP).
   Without JS (or with reduced motion) the rows are plain swipeable strips;
   showcase.js adds .is-looping after cloning the cards for a seamless loop. */

.showcase-row {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.showcase-row::-webkit-scrollbar { display: none; }
.showcase-row.is-looping { overflow: hidden; }

.showcase-track {
  --showcase-gap: 12px;
  gap: var(--showcase-gap);
}
.showcase-row:not(.is-looping) .showcase-track { padding: 0 16px; }

@media (min-width: 768px) {
  .showcase-track { --showcase-gap: 16px; }
  .showcase-row:not(.is-looping) .showcase-track { padding: 0 40px; }
}

@keyframes showcase-marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-25% - var(--showcase-gap) / 4)); }
}
@keyframes showcase-marquee-right {
  from { transform: translateX(calc(-25% - var(--showcase-gap) / 4)); }
  to { transform: translateX(0); }
}

.is-looping .showcase-track { will-change: transform; }
.is-looping .showcase-track-left { animation: showcase-marquee-left 70s linear infinite; }
.is-looping .showcase-track-right { animation: showcase-marquee-right 70s linear infinite; }

.showcase-row:hover .showcase-track,
.showcase-row:focus-within .showcase-track {
  animation-play-state: paused;
}

/* Progressive edge blur — hides the repeating clips at the edges */
.showcase-edge-blur {
  -webkit-backdrop-filter: blur(18px) saturate(0.8) brightness(0.7);
  backdrop-filter: blur(18px) saturate(0.8) brightness(0.7);
}
.showcase-edge-mask-left {
  -webkit-mask-image: linear-gradient(to right, #000 0%, rgba(0,0,0,.92) 26%, rgba(0,0,0,.55) 58%, rgba(0,0,0,.18) 82%, transparent 100%);
  mask-image: linear-gradient(to right, #000 0%, rgba(0,0,0,.92) 26%, rgba(0,0,0,.55) 58%, rgba(0,0,0,.18) 82%, transparent 100%);
}
.showcase-edge-mask-right {
  -webkit-mask-image: linear-gradient(to left, #000 0%, rgba(0,0,0,.92) 26%, rgba(0,0,0,.55) 58%, rgba(0,0,0,.18) 82%, transparent 100%);
  mask-image: linear-gradient(to left, #000 0%, rgba(0,0,0,.92) 26%, rgba(0,0,0,.55) 58%, rgba(0,0,0,.18) 82%, transparent 100%);
}

/* Full-size player */
#showcase-dialog {
  background: transparent;
  border: 0;
  padding: 0;
  max-width: none;
  max-height: none;
}
#showcase-dialog::backdrop {
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

@media (prefers-reduced-motion: reduce) {
  .is-looping .showcase-track-left,
  .is-looping .showcase-track-right { animation: none; }
}
