.cc-section {
  --cc-w: 240px;
  --cc-h: 320px;
  --cc-radius: 18px;
  --cc-accent: var(--primary-color, #0f766e);
}

/* scroll row */
.cc-track {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 2px 16px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cc-track::-webkit-scrollbar { display: none; }

/* card */
.cc-card-wrap { position: relative; flex: 0 0 var(--cc-w); scroll-snap-align: start; }
.cc-card {
  position: relative; display: block; height: var(--cc-h);
  border-radius: var(--cc-radius); overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  box-shadow: 0 6px 18px rgba(15, 23, 42, .12);
  transition: transform .3s ease, box-shadow .3s ease;
  text-decoration: none;
}
.cc-card:hover { transform: translateY(-6px); box-shadow: 0 16px 30px rgba(15, 23, 42, .22); }
.cc-card img, .cc-card video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .6s ease;
}
.cc-card:hover img, .cc-card:hover video { transform: scale(1.08); }
.cc-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, .15) 50%, transparent 75%);
}
.cc-ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 4rem; font-weight: 700; color: rgba(255, 255, 255, .75);
}

/* text */
.cc-info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  padding: 16px; color: #fff;
}
.cc-info strong { display: block; font-size: 1.1rem; line-height: 1.25; }
.cc-info small { display: block; margin-top: 3px; font-size: .78rem; opacity: .85; }
.cc-arrow {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: .85rem;
  background: rgba(255, 255, 255, .22); backdrop-filter: blur(6px);
  transition: background .25s, transform .25s;
}
.cc-card:hover .cc-arrow { background: var(--cc-accent); transform: translateX(3px); }

/* loading skeleton */
.cc-skel {
  flex: 0 0 var(--cc-w); height: var(--cc-h); border-radius: var(--cc-radius);
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%; animation: cc-shimmer 1.3s infinite;
}
@keyframes cc-shimmer { to { background-position: -200% 0; } }

.cc-empty { padding: 28px 8px; color: #64748b; font-size: .95rem; }

/* editor-only config bar */
.cc-config { display: none; }
.cc-section.is-admin .cc-config {
  display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px;
  padding: 8px 12px; border: 1px dashed var(--cc-accent); border-radius: 10px;
  background: rgba(15, 118, 110, .06); font-size: .8rem; color: #334155;
}
.cc-config b { padding: 1px 8px; border-radius: 6px; background: #fff; border: 1px solid #cbd5e1; min-width: 40px; display: inline-block; }

@media (max-width: 640px) {
  .cc-section { --cc-w: 68vw; --cc-h: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-card, .cc-card img, .cc-card video, .cc-arrow, .cc-skel { transition: none; animation: none; }
}