#html,
body {
	width: 100vw;
	height: 100vh;
	margin: 0;
	padding: 0;
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
}

/* 加载遮罩层样式 */
.loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 30%;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.loading-overlay.hidden {
	display: none;
}

.loading-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.loading-spinner {
	width: 48px;
	height: 48px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-left: 4px;
	transition: transform 0.2s;
}

.loading-spinner svg {
	width: 28px;
	height: 28px;
}

.loading-overlay:hover .loading-spinner {
	transform: scale(1.1);
}

.loading-text {
	color: #fff;
	font-size: 14px;
	margin: 0;
	padding: 8px 16px;
	background: rgba(45, 184, 77, 0.9);
	border-radius: 4px;
}

.cameraBox {
	width: 100%;
	height: 30%;
}

.operation {
	width: 100%;
	height: 70%;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 20px;
	box-sizing: border-box;
	background: #f5f7fa;
}

/* ====== 功能按钮行（录像回放 | 云台）====== */
.op-btn-row {
	display: flex;
	gap: 60px;
	margin-bottom: 24px;
}

.op-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
	outline: none;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
}

.op-btn .btn-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #ddd;
	background: #fff;
	transition: all 0.2s ease;
}

.op-btn .btn-icon svg {
	width: 28px;
	height: 28px;
}

.op-btn.active .btn-icon {
	border-color: #2db84d;
	background: #e8f8ec;
}

.op-btn.active .btn-label {
	color: #2db84d;
	font-weight: 600;
}

.op-btn .btn-label {
	font-size: 14px;
	color: #555;
	letter-spacing: 1px;
}

/* ====== 云台方向控制盘 ====== */
.ptz-container {
	position: relative;
	width: 220px;
	height: 220px;
	margin-bottom: 30px;
}

.ptz-svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* 扇形区块 hover 反馈 */
.ptz-sector {
	fill: #4bc465;
	stroke: #38a54e;
	stroke-width: 1;
	cursor: pointer;
	transition: fill 0.12s ease;
	-webkit-tap-highlight-color: transparent;
}

.ptz-sector:active {
	fill: #35a34a;
}

/* 箭头三角形 */
.ptz-arrow {
	fill: #fff;
	pointer-events: none;
}

/* 中心圆孔 */
.ptz-hole {
	fill: #f5f7fa;
	stroke: #d8dce3;
	stroke-width: 2;
}

/* ====== 变焦按钮行 ====== */
.zoom-row {
	display: flex;
	gap: 48px;
}

.zoom-btn {
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: linear-gradient(145deg, #5cc97a, #38b55a);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 3px 10px rgba(56, 181, 90, 0.35);
	transition: all 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}

.zoom-btn:hover,
.zoom-btn:active {
	filter: brightness(1.1);
	transform: scale(0.94);
}

.zoom-btn svg {
	width: 26px;
	height: 26px;
	fill: #fff;
}

.player-control {
	visibility: hidden !important;
}