/* 建築師之路：課程影片帳號浮水印
   來源檔備份於 C:\Users\USER\Downloads\architectroad-元素備份\video-watermark\
   線上位置 wp-content/uploads/architect-road/css/video-watermark.css
   改這支之後記得把 ar-video-watermark.php 的 AR_WM_VER 加一號，否則 LiteSpeed 會送舊檔 */

.arwm-wrap {
	position: relative;
}

.arwm-host {
	position: relative;
}

/* ---- 浮水印本體 ---- */

.arwm {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 12;
	overflow: hidden;
	pointer-events: none;
}

.arwm__txt {
	position: absolute;
	top: 8%;
	left: 6%;
	white-space: nowrap;
	font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .02em;
	color: #fff;
	opacity: .15;
	/* 深色描邊：白底投影片上也要看得出來 */
	-webkit-text-stroke: .55px rgba(0, 0, 0, .95);
	paint-order: stroke fill;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
	user-select: none;
	-webkit-user-select: none;
	will-change: left, top;
	transition: left .8s ease, top .8s ease;
}

@media (prefers-reduced-motion: reduce) {
	.arwm__txt {
		transition: none;
	}
}

/* ---- 自訂全螢幕按鈕（原生全螢幕已關閉，改由外框接手） ---- */

.arwm-fs-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 14;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 9px;
	background: rgba(0, 0, 0, .45);
	color: #fff;
	cursor: pointer;
	opacity: 0;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	transition: opacity .2s ease, background .2s ease;
}

.arwm-fs-btn svg {
	width: 18px;
	height: 18px;
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.arwm-wrap:hover > .arwm-fs-btn,
.arwm-fs-btn:hover,
.arwm-fs-btn:focus-visible {
	opacity: 1;
	background: rgba(0, 0, 0, .68);
}

@media (hover: none) {
	.arwm-fs-btn {
		opacity: .8;
	}
}

.arwm-fs-btn .arwm-ico--exit {
	display: none;
}

.arwm-fs .arwm-fs-btn .arwm-ico--enter {
	display: none;
}

.arwm-fs .arwm-fs-btn .arwm-ico--exit {
	display: block;
}

/* ---- 全螢幕（原生）---- */

.arwm-fs {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: #000;
}

.arwm-fs > .tutor-ratio,
.arwm-fs > .arwm-host {
	width: min(100%, calc(100vh * 16 / 9));
	height: auto;
	margin: 0 auto;
	padding: 0 !important;
	aspect-ratio: 16 / 9;
}

.arwm-fs > .tutor-ratio::before {
	display: none !important;
}

/* ---- 全螢幕（iPhone 用的網頁滿版）---- */

.arwm-fauxfs {
	position: fixed !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	height: 100dvh !important;
	max-width: none !important;
	margin: 0 !important;
	z-index: 2147483000 !important;
	background: #000;
}

html.arwm-fauxfs-lock,
html.arwm-fauxfs-lock body {
	overflow: hidden !important;
}

/* ---- 偵測到浮水印被移除後的停播遮罩 ---- */

.arwm-lock {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(8, 10, 14, .94);
	color: #fff;
	text-align: center;
}

.arwm-lock__box {
	max-width: 30em;
}

.arwm-lock__t {
	margin: 0 0 .5em;
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: .02em;
}

.arwm-lock__d {
	margin: 0 0 1.2em;
	font-size: .95rem;
	line-height: 1.7;
	opacity: .82;
}

.arwm-lock__btn {
	padding: .6em 1.6em;
	border: 1px solid rgba(255, 255, 255, .4);
	border-radius: 999px;
	background: transparent;
	color: #fff;
	font-size: .95rem;
	cursor: pointer;
	transition: background .2s ease;
}

.arwm-lock__btn:hover {
	background: rgba(255, 255, 255, .14);
}
