:root {
	color-scheme: dark;
	--bg: #070707;
	--panel: #10100e;
	--panel-strong: #171713;
	--line: #3d3720;
	--gold: #f6d24a;
	--orange: #c43903;
	--text: #f2edd9;
	--muted: #b9ad83;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	min-height: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.45 Arial, Helvetica, sans-serif;
}

a {
	color: var(--gold);
	text-underline-offset: 0.15em;
}

button,
input {
	font: inherit;
}

.compare-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 14px 18px;
	border-bottom: 2px solid var(--orange);
	background: #050505;
}

.compare-brand {
	display: inline-block;
	margin-bottom: 3px;
	color: var(--gold);
	font-size: 0.78rem;
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
}

h1 {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.1;
}

.compare-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

.compare-links a {
	min-height: 34px;
	padding: 7px 10px;
	border: 1px solid rgba(246, 210, 74, 0.32);
	background: #111;
	color: var(--text);
	font-weight: 700;
	text-decoration: none;
}

.compare-app {
	padding: 14px;
}

.compare-controls {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) auto auto;
	gap: 10px;
	align-items: end;
	max-width: 1280px;
	margin: 0 auto 12px;
}

.path-field {
	display: grid;
	gap: 5px;
}

.path-field span {
	color: var(--muted);
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
}

.path-field input {
	width: 100%;
	min-height: 40px;
	padding: 8px 10px;
	border: 1px solid var(--line);
	background: #0d0d0d;
	color: var(--text);
}

.compare-controls > button,
.mode-tab {
	min-height: 40px;
	border: 1px solid rgba(246, 210, 74, 0.38);
	background: var(--panel-strong);
	color: var(--text);
	font-weight: 700;
	cursor: pointer;
}

.compare-controls > button {
	padding: 8px 14px;
}

.compare-controls > button:focus,
.compare-controls > button:hover,
.mode-tab:focus,
.mode-tab:hover,
.mode-tab[aria-pressed="true"] {
	background: var(--orange);
	color: #fff;
	outline: 2px solid var(--gold);
	outline-offset: 1px;
}

.mode-tabs {
	display: inline-grid;
	grid-template-columns: repeat(3, minmax(74px, 1fr));
	border: 1px solid rgba(246, 210, 74, 0.2);
}

.mode-tab {
	border: 0;
	border-left: 1px solid rgba(246, 210, 74, 0.2);
}

.mode-tab:first-child {
	border-left: 0;
}

.compare-status {
	min-height: 24px;
	max-width: 1280px;
	margin: 0 auto 10px;
	color: var(--muted);
	font-size: 0.88rem;
}

.frames {
	display: grid;
	gap: 12px;
	max-width: 1280px;
	margin: 0 auto;
}

.frames.split {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.frames.original .hd-panel,
.frames.hd .original-panel {
	display: none;
}

.frame-panel {
	min-width: 0;
	border: 1px solid var(--line);
	background: var(--panel);
}

.frame-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 42px;
	padding: 8px 10px;
	border-bottom: 1px solid var(--line);
	background: #0b0b0b;
}

.frame-title h2 {
	margin: 0;
	color: var(--gold);
	font-size: 0.92rem;
	text-transform: uppercase;
}

.frame-title a {
	color: var(--muted);
	font-size: 0.82rem;
}

iframe {
	display: block;
	width: 100%;
	height: calc(100vh - 178px);
	min-height: 520px;
	border: 0;
	background: #fff;
}

.sample-link {
	max-width: 1280px;
	margin: 12px auto 0;
	color: var(--muted);
	font-size: 0.88rem;
}

@media (max-width: 860px) {
	.compare-header {
		align-items: flex-start;
		flex-direction: column;
	}

	.compare-controls {
		grid-template-columns: 1fr;
	}

	.mode-tabs {
		width: 100%;
	}

	.frames.split {
		grid-template-columns: 1fr;
	}

	iframe {
		height: 68vh;
		min-height: 460px;
	}
}
