/* VLN – Popup thông báo nghỉ lễ 24/11/2026 */
.vln-nl {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	background: rgba(6, 14, 9, .66);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease, visibility 0s linear .3s;
}
.vln-nl *,
.vln-nl *::before,
.vln-nl *::after { box-sizing: border-box; }

.vln-nl.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity .3s ease;
}

/* Khung giữ tỉ lệ 4:5 của poster, không bao giờ tràn màn hình (PC lẫn mobile) */
.vln-nl__wrap {
	position: relative;
	width: min(100%, 480px, calc((100vh - 40px) * .8));
	width: min(100%, 480px, calc((100dvh - 40px) * .8));
	aspect-ratio: 4 / 5;
	transform: translateY(14px) scale(.96);
	transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.vln-nl.is-open .vln-nl__wrap { transform: none; }

.vln-nl__card {
	position: relative;
	width: 100%;
	height: 100%;
	border-radius: 24px;
	overflow: hidden;
	background: #0b1812;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .08);
}
.vln-nl__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	user-select: none;
	-webkit-user-drag: none;
}

/* Nút tắt: nằm lệch ra góc để không che chữ "THÔNG BÁO NGHỈ LỄ" trên poster */
.vln-nl__close {
	position: absolute;
	top: -12px;
	right: -12px;
	z-index: 2;
	width: 40px;
	height: 40px;
	padding: 0;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #111;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
	transition: transform .15s ease, background .15s ease;
	-webkit-tap-highlight-color: transparent;
}
.vln-nl__close:hover { transform: scale(1.08); background: #f4c24d; }
.vln-nl__close:focus-visible { outline: 3px solid #f4c24d; outline-offset: 2px; }
.vln-nl__close svg { width: 18px; height: 18px; display: block; pointer-events: none; }

/* Thanh đếm ngược 5 giây ở đáy popup */
.vln-nl__bar {
	position: absolute;
	left: 0;
	bottom: 0;
	height: 4px;
	width: 100%;
	background: #f4c24d;
	transform-origin: left center;
	transform: scaleX(1);
}
.vln-nl.is-open .vln-nl__bar {
	animation: vln-nl-count var(--vln-nl-dur, 5s) linear forwards;
}
@keyframes vln-nl-count { to { transform: scaleX(0); } }

/* Mobile */
@media (max-width: 600px) {
	.vln-nl { padding: 18px; }
	.vln-nl__wrap {
		width: min(100%, calc((100vh - 36px) * .8));
		width: min(100%, calc((100dvh - 36px) * .8));
	}
	.vln-nl__card { border-radius: 20px; }
	.vln-nl__close { top: -10px; right: -10px; width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
	.vln-nl,
	.vln-nl__wrap { transition: none; }
}
