/* Khối "Kênh video" trang chủ: khung phát chính 1061×564 và hàng 4 ảnh nhỏ 16:9. */

.yt-player {
	position: relative;
	aspect-ratio: 1061 / 564;
	overflow: hidden;
	border-radius: 10px;
	background: #000000;
}
.yt-player__poster,
.yt-player__poster img,
.yt-player__poster .thumb__ph {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.yt-player__poster .thumb__ph { background: linear-gradient(135deg, #e1e0e0, #c9c8c6); }

/* Thanh tiêu đề phía trên (giống thanh tên video của trình phát) */
.yt-player__bar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px 30px;
	background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
	color: #ffffff;
	pointer-events: none;
}
.yt-player__avatar {
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	border: 2px solid #d8c9a3;
	border-radius: 50%;
	background: #0a2231;
}
.yt-player__meta { display: flex; flex-direction: column; min-width: 0; }
.yt-player__title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 20px;
	font-weight: 700;
	line-height: 24px;
}
.yt-player__channel { font-size: 12px; line-height: 16px; opacity: 0.9; }

/* Nút phát đỏ kiểu YouTube ở giữa khung */
.yt-player__play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 68px;
	height: 48px;
	margin: -24px 0 0 -34px;
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: #f00000;
	cursor: pointer;
	transition: background 0.15s;
}
.yt-player__play:hover { background: #cc0000; }
.yt-player__play span {
	position: absolute;
	left: 27px;
	top: 14px;
	border-style: solid;
	border-width: 10px 0 10px 18px;
	border-color: transparent transparent transparent #ffffff;
}

.yt-player__frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000000;
}
.yt-player.is-playing .yt-player__poster,
.yt-player.is-playing .yt-player__bar,
.yt-player.is-playing .yt-player__play { display: none; }

/* Hàng ảnh nhỏ bên dưới */
.video_home__list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}
.yt-thumb {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	padding: 0;
	border: 0;
	border-radius: 6px;
	overflow: hidden;
	background: #e1e0e0;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
	cursor: pointer;
}
.yt-thumb img,
.yt-thumb .thumb__ph {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.yt-thumb:hover { box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35); }
.yt-thumb.is-active { outline: 2px solid #264c5d; outline-offset: -2px; }

@media (max-width: 600px) {
	.video_home__list { grid-template-columns: repeat(2, 1fr); }
	.yt-player__title { font-size: 15px; }
	.yt-player__play { transform: scale(0.8); }
}
