:root {
	color-scheme: dark;
}

body {
	background-color: #000000;
	color: #ffffff;
}

a {
	color: #6cb6ff;
}

a:visited {
	color: #b28fdd;
}

nav a {
	margin-right: 1em;
}

nav .navCurrent {
	color: #ffffff;
	font-weight: bold;
}

nav .navAccount {
	margin-right: 1em;
	opacity: 0.7;
}

nav .navLogout {
	display: inline;
}

nav .navLanguage {
	display: inline;
	margin-left: 1em;
}

.formError {
	color: #ff8a80;
}

form label {
	display: inline-block;
	min-width: 12em;
}

table {
	border-collapse: collapse;
}

th, td {
	border-width: 1px;
	border-color: #555555;
	border-style: solid;
	padding: 0.15em 0.3em;
}

#pasteInput {
	width: 80%;
	min-height: 14em;
	resize: both;
}

#artistListTable .listAliasCell,
#albumListTable .listAliasCell {
	max-width: 40em;
}

#songTable {
	max-width: 100%;

	.songTitleCell {
		width: 32em;
	}
}

.songLayout {
	display: flex;
	gap: 1.5em;
	align-items: flex-start;
}

.songFilters {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	gap: 0.4em;

	label {
		min-width: 0;
	}

	select {
		width: 14em;
	}
}

.songListArea {
	flex: 1 1 auto;
	min-width: 0;
	overflow-x: auto;
}

@keyframes songRatingFlash {
	from {
		background-color: #555555;
	}
	to {
		background-color: transparent;
	}
}

#songListTable {
	th a {
		color: inherit;
		text-decoration: none;
	}

	td input {
		width: 100%;
		box-sizing: border-box;
	}

	.songIdCell {
		width: 2.5em;
		white-space: nowrap;
	}

	.songRatingScoreCell {
		width: 2em;
	}

	td.songRatingScoreCell {
		text-align: right;
	}

	.songRatingNoteCell {
		width: 12em;
		white-space: nowrap;
	}

	.ratingNoteText {
		display: block;
		max-width: 12em;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.songRaterGroup {
		text-align: center;
	}

	.songMineCell {
		background-color: #101010;
	}

	.songMyScoreCell {
		box-shadow: inset 1px 0 0 #999999;
	}

	.songMyNoteCell {
		box-shadow: inset -1px 0 0 #999999;
	}

	.songMineGroup {
		box-shadow: inset 1px 0 0 #999999, inset -1px 0 0 #999999, inset 0 1px 0 #999999;
	}

	tbody tr:last-child {
		.songMyScoreCell {
			box-shadow: inset 1px 0 0 #999999, inset 0 -1px 0 #999999;
		}

		.songMyNoteCell {
			box-shadow: inset -1px 0 0 #999999, inset 0 -1px 0 #999999;
		}
	}

	tbody .songMineCell {
		cursor: pointer;

		&:hover {
			background-color: #262626;
		}
	}

	tbody .songRatingCell.songRatingFlash {
		animation: songRatingFlash 1.2s ease-out;

		@media (prefers-reduced-motion: reduce) {
			animation: none;
		}
	}

	.songResultCell {
		width: 14em;
	}

	td.songResultCell {
		color: #ff8a80;
	}

	&.hideResultColumn .songResultCell {
		display: none;
	}
}

#albumScrollSpace {
	height: 75vh;
}

#artistMatchTable {
	max-width: 100%;

	&.hideExtrasColumn .extrasCell {
		display: none;
	}

	.artistSelectCell {
		width: 32em;
	}
}

#artistMatchRows {
	select {
		width: 100%;
	}

	.providedName {
		display: block;
		max-width: 20em;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.rowExtras {
		display: flex;
		gap: 0.4em;
		align-items: center;

		input[type="text"] {
			flex: 0 0 auto;
			width: 14em;
		}

		.rawNamePreview {
			flex: 0 1 auto;
			max-width: 20em;
			overflow: hidden;
			text-overflow: ellipsis;
			white-space: nowrap;
		}

		label {
			flex: 0 0 auto;
			white-space: nowrap;
		}
	}

	.aliasNameInLabel {
		display: inline-block;
		max-width: 14em;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		vertical-align: bottom;
	}
}
