/* Section wrapper */
.sc-section { padding: 48px 0 0; }

/* Header */
.sc-header { text-align: center; margin-bottom: 24px; }

/* Track wrapper for arrows */
.sc-track-wrapper { position: relative; }

/* Scrollable track */
.sc-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0 8px;
}
.sc-track::-webkit-scrollbar { display: none; }

/* Card */
.sc-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  border: 1px solid #F0EAE2;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.sc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Media container (16:9) */
.sc-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f0ebe4;
}
.sc-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sc-card-media video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sc-card-media video.sc-playing { opacity: 1; }

/* Card body */
.sc-card-body { padding: 10px 12px 12px; }
.sc-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #1A1A1A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.sc-card-desc {
  font-size: 11px;
  color: #AAA;
  margin-top: 3px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Scroll arrows */
.sc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-70%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 1px solid #F0EAE2;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: background 0.15s, box-shadow 0.15s;
  padding: 0;
  color: #666;
}
.sc-arrow:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  color: #1A1A1A;
}
.sc-arrow--left { left: -18px; }
.sc-arrow--right { right: -18px; }

/* Skeleton loading */
.sc-skeleton .sc-card-media,
.sc-skeleton .sc-card-title-ph,
.sc-skeleton .sc-card-desc-ph {
  background: linear-gradient(90deg, #f0ebe4 25%, #e8e2da 50%, #f0ebe4 75%);
  background-size: 200% 100%;
  animation: sc-shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
}
.sc-skeleton .sc-card-title-ph { height: 14px; width: 70%; margin: 10px 12px 0; }
.sc-skeleton .sc-card-desc-ph { height: 10px; width: 90%; margin: 6px 12px 12px; }

@keyframes sc-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Responsive */
@media (max-width: 900px) {
  .sc-card { flex: 0 0 200px; }
  .sc-arrow { display: none; }
}
@media (max-width: 480px) {
  .sc-section { padding: 32px 0 0; }
  .sc-card { flex: 0 0 170px; }
  .sc-header { margin-bottom: 16px; }
}
