body {
	background: #f7efe4 url('yt.gif') repeat;
	line-height: 1.45;
}

.ytseq {
	box-sizing: border-box;
	width: min(100% - 2rem, 820px);
	margin: 1rem auto;
	padding: 1rem 1.25rem 2rem;
	border-radius: .7rem;
	background: #fff0d8;
	box-shadow: 0 .25rem .9rem rgb(0 0 0 / 15%);
}

.ytseq-logo {
	max-width: min(100%, 300px);
	height: auto;
}

.ytseq h1 {
	margin-top: .5rem;
}

.player-panel,
.editor,
.help {
	margin-top: 1.25rem;
	padding: 1rem;
	border: 1px solid #bd9870;
	border-radius: .55rem;
	background: #fffaf3;
}

.player-frame {
	position: relative;
	width: min(100%, 640px);
	margin: 0 auto 1rem;
	aspect-ratio: 16 / 9;
	background: #171717;
}

.player-frame iframe,
#player {
	width: 100%;
	height: 100%;
	border: 0;
}

.privacy-note,
.status {
	margin: .6rem 0 0;
}

.privacy-note {
	font-size: .92rem;
	color: #594a3d;
}

.status {
	font-weight: 600;
}

.editor > label {
	display: block;
	margin-bottom: .4rem;
	font-weight: 700;
}

#playlist {
	box-sizing: border-box;
	width: 100%;
	min-height: 13rem;
	padding: .65rem;
	border: 1px solid #7c6e61;
	border-radius: .35rem;
	background: #fff;
	font: 1rem/1.4 Consolas, 'Courier New', monospace;
	resize: vertical;
}

.options,
.actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: .7rem 1rem;
	margin-top: 1rem;
}

.options label {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
}

.options input {
	width: 1.15rem;
	height: 1.15rem;
}

button {
	min-height: 44px;
	padding: .55rem .85rem;
	border: 1px solid #625448;
	border-radius: .35rem;
	background: #eee8e0;
	color: #17120f;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

button:hover:not(:disabled) {
	filter: brightness(.95);
}

button:focus-visible,
textarea:focus-visible,
input:focus-visible,
a:focus-visible {
	outline: 3px solid #1769aa;
	outline-offset: 2px;
}

button:disabled {
	cursor: not-allowed;
	opacity: .55;
}

.primary-button {
	background: #f3b14b;
}

.generated-link,
.output {
	margin-top: 1rem;
	text-align: left;
	overflow-wrap: anywhere;
}

.generated-link a {
	display: inline-block;
	padding: .45rem .65rem;
	border-radius: .3rem;
	background: #e5f1e8;
}

.output-entry {
	margin: .35rem 0;
	padding: .4rem .55rem;
	border-left: .25rem solid #7b9a81;
	background: #f4f7f4;
}

.output-entry.error {
	border-left-color: #b21f1f;
	background: #fff0f0;
	color: #781414;
}

.help {
	text-align: left;
}

.help h2 {
	text-align: center;
}

.help li {
	margin-bottom: .4rem;
}

.help pre {
	padding: .75rem;
	border: 1px solid #cab59e;
	border-radius: .35rem;
	background: #fff;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.contact {
	margin-top: 1.5rem;
}

.visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media (max-width: 560px) {
	.ytseq {
		width: min(100% - .75rem, 820px);
		padding: .7rem .5rem 1.5rem;
	}

	.player-panel,
	.editor,
	.help {
		padding: .75rem .55rem;
	}

	.actions button {
		flex: 1 1 45%;
	}
}
