@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/icon?family=Material+Icons+Round");

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

:root {
	--accent: #888888;
	--accent-dim: #666666;
	--gold: #e0e0e0;
	--gold-dim: #888888;
	--bg: #121212;
	--bg2: #181818;
	--bg3: #222222;
	--bg4: #333333;
	--bg5: #444444;
	--text: #e0e0e0;
	--text-dim: #b0b0b0;
	--text-faint: #888888;
	--sidebar-w: 380px;
	--pip-w: 560px;
	--pip-h: 315px;
	--logo-w: 84px;
	--name-w: 260px;
	--row-h: 90px;
	--radius: 4px;
	--border: 1px solid #444444;
	--focus-ring: 0 0 0 2px #888888;
}

html,
body {
	height: 100%;
	overflow: hidden;
	background: var(--bg);
	color: var(--text);
	font-family: "Manrope", "Helvetica Neue", sans-serif;
	font-size: 20px;
}

body::before {
	position: fixed;
	z-index: -1;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
	background-size: 48px 48px;
	content: "";
	pointer-events: none;
}

button,
input,
select {
	font-family: inherit;
}

.material-icons-round {
	display: inline-block;
	direction: ltr;
	font-family: "Material Icons Round";
	font-feature-settings: "liga";
	font-size: 1em;
	font-style: normal;
	font-weight: normal;
	letter-spacing: normal;
	line-height: 1;
	text-transform: none;
	white-space: nowrap;
	word-wrap: normal;
	-webkit-font-feature-settings: "liga";
	-webkit-font-smoothing: antialiased;
}

*:focus:not(:focus-visible) {
	outline: none;
}

*:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.tv-input-active {
	border-color: var(--accent) !important;
	box-shadow: 0 0 0 2px var(--accent) !important;
	outline: none !important;
}

.modal-overlay {
	position: fixed;
	z-index: 700;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.82);
}

.modal-box {
	width: 90%;
	min-width: 0;
	max-width: 580px;
	padding: 34px 36px;
	border: var(--border);
	border-radius: 8px;
	background: var(--bg3);
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.72);
}

.modal-heading {
	margin-bottom: 22px;
	font-size: 22px;
	font-weight: 700;
}

.modal-input {
	width: 100%;
	margin-bottom: 22px;
	padding: 16px 18px;
	border: var(--border);
	border-radius: var(--radius);
	outline: none;
	background: var(--bg4);
	color: var(--text);
	font-size: 20px;
}

.modal-input:focus {
	border-color: var(--accent);
}

.modal-btns {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
}

.modal-btn {
	padding: 16px 34px;
	border: var(--border);
	border-radius: var(--radius);
	background: var(--bg5);
	color: var(--text-dim);
	cursor: pointer;
	font-size: 19px;
	font-weight: 600;
}

.modal-btn:hover,
.modal-btn.tv-focus-visible {
	background: var(--text);
	color: var(--bg);
}

.modal-btn-ok,
.modal-btn-ok:hover {
	border-color: var(--text);
	background: var(--text);
	color: var(--bg);
}

.modal-btn.tv-focus-visible {
	outline: 2px solid var(--accent) !important;
	outline-offset: 2px !important;
}

@media (max-width: 720px) {
	html,
	body {
		overflow: auto;
		font-size: 17px;
	}

	.modal-box {
		padding: 24px;
	}

	.modal-btns {
		flex-direction: column-reverse;
	}

	.modal-btn {
		width: 100%;
	}
}
