.nkptz-wrap {
	font-family: Roboto, Arial, sans-serif;
	color: #445047;
}

.nkptz-panel {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
	gap: 24px;
	align-items: stretch;
}

.nkptz-preview,
.nkptz-controls {
	overflow: hidden;
	border: 1px solid #e1e7df;
	border-radius: 16px;
	background: #f7f4ea;
	box-shadow: 0 8px 24px rgba(24, 77, 52, 0.07);
}

.nkptz-preview-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 18px;
}

.nkptz-preview-head h3,
.nkptz-controls h3,
.nkptz-stream h3 {
	margin: 0;
	font-family: Acme, Arial, sans-serif;
	font-size: 28px;
	line-height: 1.2;
	color: #184d34;
}

.nkptz-preview-head p {
	margin: 3px 0 0;
	font-size: 15px;
	color: #6a786e;
}

.nkptz-live-dot {
	width: 10px;
	height: 10px;
	flex: 0 0 10px;
	border-radius: 50%;
	background: #184d34;
	box-shadow: 0 0 0 5px rgba(24, 77, 52, 0.1);
}

.nkptz-snapshot {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	background: #111;
}

.nkptz-controls {
	padding: 22px;
}

.nkptz-controls > h3 {
	margin-bottom: 20px;
	text-align: center;
}

.nkptz-wrap button {
	min-width: 46px;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid #c9d7cd;
	border-radius: 9px;
	background: #fff;
	color: #184d34;
	box-shadow: 0 3px 10px rgba(24, 77, 52, 0.05);
	font: 700 17px/1 Roboto, Arial, sans-serif;
	cursor: pointer;
	transition: transform 0.12s ease, background 0.12s ease, opacity 0.12s ease;
}

.nkptz-wrap button:hover {
	background: #eef3e8;
	transform: translateY(-1px);
}

.nkptz-wrap button:focus-visible {
	outline: 3px solid rgba(24, 77, 52, 0.25);
	outline-offset: 2px;
}

.nkptz-wrap button:disabled {
	opacity: 0.45;
	cursor: wait;
	transform: none;
}

.nkptz-pad {
	display: grid;
	grid-template-columns: repeat(3, 54px);
	grid-template-rows: repeat(3, 54px);
	gap: 8px;
	justify-content: center;
	align-items: center;
}

.nkptz-pad button[data-cmd="up"] {
	grid-column: 2;
	grid-row: 1;
}

.nkptz-pad button[data-cmd="left"] {
	grid-column: 1;
	grid-row: 2;
}


.nkptz-pad button {
	width: 54px;
	min-width: 54px;
	height: 54px;
	min-height: 54px;
	padding: 0;
}

.nkptz-pad .nkptz-home {
	grid-column: 2;
	grid-row: 2;
	min-width: 54px;
	width: 54px;
	min-height: 54px;
	height: 54px;
	padding: 0;
	background: #184d34;
	color: #fff;
	font-size: 19px;
	line-height: 1;
}

.nkptz-pad .nkptz-home span {
	display: inline-block;
	transform: translateY(-1px);
}

.nkptz-pad button[data-cmd="right"] {
	grid-column: 3;
	grid-row: 2;
}

.nkptz-pad button[data-cmd="down"] {
	grid-column: 2;
	grid-row: 3;
}

.nkptz-control-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-top: 1px solid #e1e7df;
}

.nkptz-control-row > span,
.nkptz-presets > span {
	font-weight: 700;
	color: #184d34;
}

.nkptz-button-pair {
	display: grid;
	grid-template-columns: repeat(2, 52px);
	gap: 8px;
}

.nkptz-presets {
	margin-top: 4px;
	padding-top: 14px;
	border-top: 1px solid #e1e7df;
}

.nkptz-preset-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin-top: 10px;
}

.nkptz-status {
	min-height: 20px;
	margin-top: 16px;
	text-align: center;
	font-size: 13px;
	color: #6a786e;
}

.nkptz-stream {
	margin-top: 34px;
}

.nkptz-stream > h3 {
	text-align: center;
}

.nkptz-stream-note {
	max-width: 720px;
	margin: 8px auto 16px;
	text-align: center;
	font-size: 15px;
	line-height: 1.5;
	color: #6a786e;
}

.nkptz-streambox {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border: 1px solid #e1e7df;
	border-radius: 16px;
	background: #111;
}

.nkptz-streambox iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

@media (max-width: 767px) {
	.nkptz-panel {
		grid-template-columns: 1fr;
	}

	.nkptz-preview-head {
		align-items: flex-start;
	}

	.nkptz-controls {
		padding: 20px 18px;
	}
}


@media (max-width: 767px) {
	.nkptz-pad button {
		width: 58px;
		min-width: 58px;
		height: 58px;
		min-height: 58px;
	}
}
