/* YouTube video carousel — horizontal slide */
.seo-video-player {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin: 0 auto 20px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  background: #0f172a;
}
.seo-video-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.seo-video-carousel-wrap {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 44px;
}
.seo-video-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 16px;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 transparent;
}
.seo-video-carousel::-webkit-scrollbar {
  height: 6px;
}
.seo-video-carousel::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 999px;
}
.seo-video-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  text-align: left;
  padding: 0;
  font: inherit;
  color: inherit;
}
.seo-video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}
.seo-video-card.active {
  border-color: #0369a1;
  box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.15);
}
.seo-video-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e2e8f0;
}
.seo-video-card-body {
  padding: 10px 12px 12px;
}
.seo-video-card-body strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.35;
  color: #0f172a;
  margin-bottom: 4px;
}
.seo-video-card-body span {
  display: block;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #64748b;
}
.seo-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  color: #0369a1;
  z-index: 2;
}
.seo-carousel-btn:hover {
  background: #f0f9ff;
}
.seo-carousel-btn.prev { left: 0; }
.seo-carousel-btn.next { right: 0; }
@media (max-width: 767px) {
  .seo-video-carousel-wrap { padding: 0 36px; }
  .seo-video-card { flex: 0 0 180px; }
  .seo-carousel-btn { width: 32px; height: 32px; font-size: 1rem; }
}
