.yt-slide-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.yt-slide-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

/* 💡【修正】勝手に動く原因だったCSSアニメーションをここから完全に排除しました */
.yt-slide-track {
  display: flex;
  flex-wrap: nowrap !important;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.yt-slide-item {
  width: 100%;
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
  position: relative;
  margin: 0;
  padding: 0;
}

.yt-slide-item iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  display: block;
}

/* 💡【新設】動画のクリックを絶対に邪魔しない、画面外の「見えない自動スライドタイマー枠」 */
/* この枠にだけ3秒ごとのアニメーションを実行させ、JavaScriptでその動きを安全に監視します */
.yt-slide-ghost-timer {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none; /* 動画のクリック・タップを100%邪魔しません */
  animation: ytGhostRun 3s infinite linear;
}

@keyframes ytGhostRun {
  0% { transform: translateX(0); }
  100% { transform: translateX(100px); }
}

/* ナビゲーションボタン */
.yt-slide-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  padding: 16px 12px;
  cursor: pointer;
  z-index: 10;
  border-radius: 4px;
  font-size: 20px;
}

.yt-slide-prev-btn { left: 10px; }
.yt-slide-next-btn { right: 10px; }

.yt-slide-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.yt-slide-dot {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.yt-slide-dot.yt-slide-active {
  background: #ff0000;
}

@media (max-width: 480px) {
  .yt-slide-nav-btn {
    display: block !important;
    padding: 12px 8px;
    font-size: 16px;
  }
}
