/* YouTube latest skin */

.yt-latest {
  list-style: none;
  margin: 0;
  padding: 0;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* 반응형 */
@media (max-width: 1200px) {
  .yt-latest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


.yt-item {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  transition: transform .18s ease, box-shadow .18s ease;
}

.yt-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}

.yt-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* 영상 영역(16:9) */
.yt-video {position:relative; width:100%; aspect-ratio:16/8; background:#f3f3f3; overflow:hidden; }
.yt-thumb{width: 100%; height: 100%; object-fit: cover;}
.yt-play{
  position:absolute; left:50%; top:50%;
  width:64px; height:44px;
  transform:translate(-50%,-50%);
  border-radius:12px;
  background:rgba(230, 0, 0, 0.9);
}
.yt-play:before{
  content:"";
  position:absolute; left:50%; top:50%;
  transform:translate(-35%,-50%);
  width:0; height:0;
  border-left:16px solid #fff;
  border-top:10px solid transparent;
  border-bottom:10px solid transparent;
}
/* iFrame 꽉 채우기 */
.yt-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 동영상 없을 때 */
.yt-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 14px;
  color: #777;
  background: #f6f6f6;
}

/* 제목/메타 */
.yt-meta {
  padding: 12px 12px 14px;
}

.yt-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;

  /* 2줄 말줄임 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* 게시물 없음 */
.yt-empty-li {
  grid-column: 1 / -1;
  padding: 20px 0;
  text-align: center;
  color: #777;
}