/* 유튜브 쇼츠 가벼운 임베드 (shorts.js와 같이 씀). 처음엔 썸네일만 보이고, 누르면 그 자리에서 플레이어로 바뀜 */
.yt-short { margin: 16px 0; }
.yt-box {
  position: relative; width: 100%; max-width: 270px; aspect-ratio: 9 / 16;
  border-radius: 14px; overflow: hidden; background: #000;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.1));
}
.yt-box > a, .yt-box > iframe { display: block; width: 100%; height: 100%; border: 0; }
.yt-box img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease, opacity .25s ease; opacity: .92; }
.yt-box a:hover img, .yt-box a:focus-visible img { transform: scale(1.03); opacity: 1; }
.yt-play {
  position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px;
  border-radius: 50%; background: rgba(0, 0, 0, 0.55); border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}
.yt-play::after {
  content: ""; position: absolute; left: 22px; top: 16px;
  border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent #fff;
}
.yt-badge {
  position: absolute; right: 8px; top: 8px; padding: 3px 8px; border-radius: 6px;
  background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
}
.yt-short figcaption { margin-top: 8px; font-size: 13px; color: var(--muted, #bdbdc6); line-height: 1.5; }
.yt-short figcaption a { color: var(--muted, #bdbdc6); }

/* 공략 페이지: 영상 한 개 + 옆에 설명 */
.yt-guide { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.yt-guide .yt-short { flex: 0 0 240px; margin: 4px 0; }
.yt-guide .yt-text { flex: 1 1 260px; }
.yt-guide .yt-text p { margin-top: 4px; }

/* 홈: 게임별 플레이 영상을 한 줄로 늘어놓고 옆으로 밀어서 봄 (영상이 많아도 세로로 길어지지 않게) */
.yt-row {
  display: flex; gap: 14px; margin: 14px 0 6px; padding-bottom: 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.yt-row .yt-short { margin: 0; flex: 0 0 180px; scroll-snap-align: start; }
.yt-row .yt-box { max-width: none; }
/* 휴대폰: 카드를 150px 로 */
@media (max-width: 520px) {
  .yt-row { gap: 10px; margin-right: -4px; padding-bottom: 6px; }
  .yt-row .yt-short { flex: 0 0 150px; }
  .yt-row .yt-play { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
  .yt-row .yt-play::after { left: 18px; top: 13px; border-width: 10px 0 10px 16px; }
  .yt-row .yt-short figcaption { font-size: 12px; }
}
