/* ===== CLIP CONTENT ===== */
.clip-section {
  padding: 36px 0 10px;
  background: var(--g-50);
}
.clip-section .section-title::after { display: none; }
.clip-section .section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
}

.clip-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.clip-track-wrap {
  overflow: hidden;
  flex: 1;
}

.clip-track {
  display: flex;
  gap: 1.2rem;
  transition: transform .4s ease;
}

.clip-card {
  flex: 0 0 calc(16.66% - 1rem);
  min-width: 0;
}

.clip-thumb-wrap {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 9/16;
  background: #000;
  cursor: pointer;
}

.clip-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease, opacity .3s ease;
  display: block;
}

.clip-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.2);
  transition: opacity .25s;
}

.clip-play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-size: 1.3rem;
  transition: transform .2s, background .2s;
}

.clip-thumb-wrap:hover .clip-play-btn {
  transform: scale(1.1);
  background: #fff;
}

/* Platform badge */
.clip-platform-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .85rem;
}

/* Link to original clip */
.clip-origin-link {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .8rem;
  z-index: 5;
  text-decoration: none;
  opacity: 0;
  transition: opacity .2s;
}
.clip-thumb-wrap:hover .clip-origin-link { opacity: 1; }

/* Hover-to-play iframe */
.clip-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 2;
}

.clip-thumb-wrap.is-playing .clip-thumb-img,
.clip-thumb-wrap.is-playing .clip-overlay {
  opacity: 0;
  pointer-events: none;
}

.clip-title {
  font-size: .8rem;
  margin-top: .5rem;
  color: var(--g-700);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clip-arrow {
  background: #fff;
  border: 1px solid var(--g-200);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s, border-color .2s;
  font-size: .9rem;
  color: var(--g-600);
}

.clip-arrow:hover { background: var(--cesm-primary); border-color: var(--cesm-primary); color: #fff; }

@media (max-width: 1200px) { .clip-card { flex: 0 0 calc(20% - 1rem); } }
@media (max-width: 992px)  { .clip-card { flex: 0 0 calc(25% - 1rem); } }
@media (max-width: 768px)  { .clip-card { flex: 0 0 calc(33.33% - .8rem); } }
@media (max-width: 576px)  { .clip-card { flex: 0 0 calc(45% - .6rem); } }
