/* Carousel có nút, thẻ video (lớp phủ, chú thích, icon phát) và popup phát video. */

/* ---- Carousel ---- */
.carousel { position: relative; }
.carousel__nav {
	position: absolute;
	top: 30%;
	z-index: 3;
	width: 48px;
	height: 56px;
	border: 0;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.5);
	color: #333333;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}
.carousel__nav:hover { background: rgba(0, 0, 0, 0.7); color: #ffffff; }
.carousel__nav--prev { left: 10px; }
.carousel__nav--next { right: 10px; }
.carousel--tiktok .carousel__nav { top: 38%; }

/* ---- Dải Short Video: thẻ 213px, cách nhau 68px (đo trang mẫu: 4 thẻ phủ hết cột) ---- */
.listtiktok {
	gap: 0;
	scroll-behavior: smooth;
	scroll-snap-type: x proximity;
}
.listtiktok li {
	flex: 0 0 213px;
	margin-right: 69px;
	scroll-snap-align: start;
}
.listdesign { scroll-behavior: smooth; }

/* ---- Thẻ video: lớp phủ, chú thích, icon phát ---- */
.video-link {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 4px;
}
.video-link__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.85) 100%);
	pointer-events: none;
}
.video-link__caption {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 16px;
	text-align: center;
	color: #ffffff;
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 600;
	line-height: 22px;
	text-transform: uppercase;
	pointer-events: none;
}
.video-link__play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 64px;
	height: 64px;
	margin: -32px 0 0 -32px;
	border: 2px solid #ffffff;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.35);
	opacity: 0;
	transition: opacity 0.2s;
	pointer-events: none;
}
.video-link__play::after {
	content: "";
	position: absolute;
	left: 25px;
	top: 18px;
	border-style: solid;
	border-width: 12px 0 12px 19px;
	border-color: transparent transparent transparent #ffffff;
}
.video-link:hover .video-link__play,
.video-link:focus-visible .video-link__play { opacity: 1; }

/* Trang Video: icon phát luôn thấy mờ, rõ hơn khi rê chuột */
.listvideo .video-link__play { opacity: 0.85; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-width: 0; background: rgba(0, 0, 0, 0.55); }
.listvideo .video-link__play::after { left: 18px; top: 14px; border-width: 9px 0 9px 15px; }
.listvideo .video-link:hover .video-link__play { opacity: 1; }

/* ---- Popup ---- */
.video-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.75);
}
.has-video-modal { overflow: hidden; }
.video-modal__box {
	position: relative;
	width: min(90vw, 900px);
	aspect-ratio: 16 / 9;
	border-radius: 14px;
	background: #000000;
}
.video-modal__box--tiktok {
	width: min(92vw, 325px);
	height: min(86vh, 578px);
	aspect-ratio: auto;
	background: #ffffff;
}
.video-modal__frame {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 14px;
	background: #000000;
}
.video-modal__close {
	position: absolute;
	top: -8px;
	right: -40px;
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: 50%;
	background: #000000;
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}
.video-modal__close:hover { background: #264c5d; }
@media (max-width: 600px) {
	.video-modal__close { right: -6px; top: -38px; }
	.carousel__nav { width: 40px; height: 48px; }
}
