 @charset "utf-8";

.yt-card { 
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
	transition: transform 0.2s;
	height: 100%;
	background: rgba(128, 128, 128, 0.05);
	border: 1px solid rgba(128, 128, 128, 0.1);
}

.yt-thumb-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16/9;
}

.yt-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.yt-duration {
	position: absolute;
	bottom: 8px;
	right: 8px;
	background: rgba(0,0,0,0.8);
	color: #fff; padding: 2px 6px;
	border-radius: 4px;
	font-size: 11px;
}

.yt-info {
	padding: 12px;
}

.yt-title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	height: 42px;
	margin-bottom: 8px;
}

.yt-meta {
	font-size: 12px;
	color: #888;
}

.more-btn-wrap {
	text-align: center;
	margin-top: 20px;
}

/* 영상 모달 스타일 */
.yt-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}
.yt-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}
.yt-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    font-weight: bold;
}
/* 플레이어 내부 비율 유지 */
#modal-player-target {
    width: 100%;
    aspect-ratio: 16/9;
}
