/* 進站片頭遮罩 —— class 全加 .dy-intro- 前綴，不覆蓋 WordPress 原生 .wp-* class */

/* 顯示片頭時鎖定背景捲動 */
body.dy-intro-active {
	overflow: hidden;
}

/* 全螢幕遮罩層 */
.dy-intro-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
	opacity: 1;
	transition: opacity 0.6s ease;
}

/* 淡出狀態（JS 加上此 class 後淡出） */
.dy-intro-overlay.dy-intro-hide {
	opacity: 0;
	pointer-events: none;
}

/* 影片本體：滿版填滿（會裁切多餘邊緣） */
.dy-intro-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 跳過按鈕（半透明白，可依品牌色調整） */
.dy-intro-skip {
	position: absolute;
	right: 24px;
	bottom: 24px;
	padding: 10px 20px;
	font-size: 15px;
	line-height: 1;
	color: #fff;
	background: rgba(0, 0, 0, 0.45);
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
	z-index: 1;
}

.dy-intro-skip:hover {
	background: rgba(255, 255, 255, 0.9);
	color: #000;
}

/* 手機版（768px 以下） */
@media (max-width: 768px) {
	.dy-intro-video {
		object-fit: contain;
	}
	.dy-intro-skip {
		right: 16px;
		bottom: 16px;
		padding: 8px 16px;
		font-size: 14px;
	}
}
