/* =========================
   Base / Reset
========================= */

html,
body {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	background: #1b1b1b;
	font-family: system-ui, sans-serif;
	overflow: hidden;
}

/* =========================
   Frame
========================= */

#frame {
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	padding: 16px;

	border: clamp(2px, 1vw, 6px) solid;
	border-image: linear-gradient(135deg, #ff7ac8, #ffd36a) 1;

	display: flex;
	flex-direction: column;
}

/* =========================
   Header
========================= */

header {
	text-align: center;
	margin-bottom: 8px;
	-webkit-app-region: drag;
}

header h1 {
	font-size: 18px;
	font-weight: 500;
	color: #ffd36a;
	margin: 0;
}

/* =========================
   Main Area
========================= */

main {
	position: relative;
	flex: 1;
	overflow: hidden;
	border-radius: 8px;
}

/* =========================
   Video
========================= */

video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* =========================
   Music Toggle Button
========================= */

#musicToggle {
	position: absolute;
	bottom: 12px;
	left: 12px;

	background: rgba(255, 122, 200, 0.85);
	color: #1b1b1b;

	border: none;
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 12px;

	cursor: pointer;
	-webkit-app-region: no-drag;
}

#musicToggle:hover {
	background: rgba(255, 211, 106, 0.9);
}

/* =========================
   Exit Hint
========================= */

#exitHint {
	position: absolute;
	bottom: 12px;
	right: 12px;

	font-size: 11px;
	color: rgba(255, 255, 255, 0.5);

	font-family: system-ui, sans-serif;
	pointer-events: none;
}

/* =========================
   Footer
========================= */

footer {
	margin-top: 8px;
	text-align: center;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.6);
}

/* =========================
   Buttons (Electron)
========================= */

button {
	-webkit-app-region: no-drag;
}

/* =========================
   Mobile Optimization
========================= */

@media (max-width: 768px) {

	#frame {
		padding: 8px;
		border-radius: 0;
	}

	header {
		margin-bottom: 6px;
	}

	header h1 {
		font-size: 14px;
	}

	main {
		border-radius: 10px;
	}

	video {
		width: 100%;
		height: auto;
		max-height: 70vh;
		object-fit: contain;
	}

	#musicToggle {
		bottom: 10px;
		left: 10px;
		font-size: 11px;
		padding: 5px 12px;
	}

	#exitHint {
		bottom: 6px;
		right: 8px;
		font-size: 10px;
		opacity: 0.4;
	}

	footer {
		font-size: 10px;
		margin-top: 4px;
	}
}
