.mv-widget *, .mv-widget *::before, .mv-widget *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.mv-widget {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  overflow: hidden;
}

/* --- PC: 4列横並び --- */
.mv-widget__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mv-widget__item {
  position: relative;
  width: 100%;
  flex-shrink: 0;
}

/* TikTok風 縦長 9:16 */
.mv-widget__frame {
  position: relative;
  width: 100%;
  padding-top: 177.78%; /* 9:16 = 16/9*100 */
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.mv-widget__frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: contain;
}

/* タッチオーバーレイ（SPスワイプ用） */
.mv-widget__touch-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: pointer;
}

/* Instagram: videoタグ */
.mv-widget__frame--ig video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* ソースバッジ */
.mv-widget__badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: bold;
  z-index: 1;
}

.mv-widget__badge--ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
}

/* プレースホルダー（遅延読み込み前） */
.mv-widget__placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 14px;
}

.mv-widget__date {
  margin-top: 6px;
  font-size: 12px;
  color: #888;
  text-align: center;
}

.mv-widget__link {
  display: block;
  margin-top: 8px;
  padding: 8px 0;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  background: #333;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}

.mv-widget__link:hover {
  background: #555;
}

.mv-widget__more {
  display: block;
  margin: 16px auto 0;
  padding: 10px 24px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  background: #111;
  border: 1px solid #444;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
  width: fit-content;
}

.mv-widget__more:hover {
  background: #333;
}

/* --- ドットインジケーター（SPのみ表示） --- */
.mv-widget__dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.mv-widget__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s;
}

.mv-widget__dot.is-active {
  background: #333;
}

/* --- SP: スワイプカルーセル --- */
@media (max-width: 768px) {
  .mv-widget {
    padding: 0;
  }

  .mv-widget__track {
    display: flex;
    transition: transform 0.3s ease;
    gap: 0;
  }

  .mv-widget__item {
    width: 80vw;
    min-width: 80vw;
    flex-shrink: 0;
    padding: 0 6px;
  }

  .mv-widget__dots {
    display: flex;
  }
}
