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

html {
	font-size: 100%;
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-y: scroll;
	scrollbar-gutter: stable;
}

body {
	min-height: 100vh;
	scroll-behavior: smooth;
	text-rendering: optimizeSpeed;
	font-family: 'Roboto', sans-serif;
	font-size: clamp(0.875rem, 0.8rem + 0.5vw, 1rem);
	max-width: 615px;
	margin: 0 auto;
	padding: 20px 15px;
	background: #181818;
	color: #fff;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
}

input,
button,
textarea,
select {
	font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
}

ul,
ol {
	list-style: none;
}

a {
	text-decoration: none;
	color: #00E586;
}

a:hover {
	text-decoration: underline;
}

a.iconlink {
	position: relative;
	font-weight: 500;
}

a.iconlink img {
	display: inline-block;
	margin: 0 3px;
	transform: translateY(5px);
}

h1 {
	color: #fff;
	font-size: clamp(1.5rem, 1.3rem + 1vw, 1.625rem);
	font-weight: 300;
	margin: 5px 0 15px;
	position: relative;
	display: flex;
	align-items: baseline;
	gap: 15px;
}

h1::after {
	content: '';
	position: absolute;
	top: 31px;
	left: 26px;
	width: 5px;
	height: 13px;
	background: #00E586;
	transform: rotate(-45deg);
	opacity: 0.4;
}

h1 img {
	display: inline-block;
	transform: translateY(5px);
}

h2 {
	font-size: clamp(0.9rem, 1rem + 1vw, 1.1rem);
	font-weight: 400;
	margin: 10px 0 12px;
	color: #ddd;
}

.search-form {
	background: #343434;
	padding: 15px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	margin-bottom: 25px;
}

.search-form > div {
	color: #8c8c8c;
	margin: 5px 0 30px;
}

.search-form form {
	display: flex;
	gap: 5px;
	margin-bottom: 30px;
}

.search-form input[type="text"] {
	width: 100%;
	padding: 10px;
	font-size: clamp(0.875rem, 0.8rem + 0.5vw, 1rem);
	border: 1px solid #ddd;
	border-radius: 4px;
	outline: none;
}

.search-form button {
	width: 110px;
	padding: 10px 20px;
	font-size: clamp(0.875rem, 0.8rem + 0.5vw, 1rem);
	background: rgb(1, 255, 149);
	color: rgb(20, 20, 20);
	border: none;
	border-radius: 4px;
	cursor: pointer;
}

.search-form button:hover {
	background: #00E586;
}

#support-us {
	padding: 20px;
	background: #343434;
	color: #8c8c8c;
	display: flex;
	gap: 15px;
}

#support-us > div {
	display: flex;
	flex-direction: column;
	gap: 7px;
	align-items: center;
	min-width: 85px;
}

#support-us > div > div {
	display: flex;
	flex-direction: row;
	gap: 5px;
}

#support-us > div > div a {
	transition: transform 0.2s ease;
	transform: scale(1);
	white-space: nowrap;
}

#support-us > div > div a:hover {
	transform: scale(1.2);
}

#our-releases {
	margin-bottom: 25px;
}

.results h2 {
	margin-left: 7px;
}

.result-item {
	background: #343434;
	padding: 0;
	margin-bottom: 20px;
	display: flex;
	align-items: flex-start;
	gap: 5px;
	min-height: 120px;
	flex-shrink: 0;
	color: #fff;
	text-decoration: none;
	position: relative;
}

.result-item:hover {
	background: #383838;
}

.result-img {
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	align-self: flex-start;
	margin: 7px;
	transition: transform 0.2s ease;
	transform: scale(1);
}

.result-img:hover {
	transform: scale(1.05);
}

.result-img img {
	width: 80px;
	height: 80px;
	object-fit: cover;
}

.result-content {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding: 12px;
}

.result-content h3 {
	margin: 5px 0 10px;
}

.result-content > div {
	margin: 3px 0;
}

.result-content [class]:before {
	color: #8c8c8c;
}

.result-content .artists:before { content: "Artist(s): "; }
.result-content .title:before { content: "Title: "; }
.result-content .label:before { content: "Label: "; }
.result-content .released:before { content: "Released: "; }

.result-content .artists a { color: rgb(57, 192, 222); }
.result-content .title { color: rgb(1, 255, 149); }

.result-content .label,
.result-content .released {
	font-size: clamp(0.75rem, 0.7rem + 0.3vw, 0.875rem);
}

.result-content .label a,
.result-content h2 a {
	color: #fff;
}

.result-content .label {
	margin-top: 10px;
}

.result-content .item-rank {
	color: #fff;
	display: inline-flex;
	align-items: center;
	font-size: clamp(1.2rem, 1.2rem + 1vw, 1.3rem);
	font-weight: 500;
	line-height: 1rem;
	margin: 0;
}

.result-content .item-rank:before {
	content: '#';
	display: inline-block;
	margin-right: 3px;
}

.position-down span,
.position-up span,
.position-same span,
.position-new span {
	position: relative;
	display: inline-block;
	padding-left: 32px;
	font-size: clamp(0.8rem, 0.8rem + 1vw, 0.9rem);
}

.position-down span { color: #e50000; }
.position-up span { color: #00E586; }
.position-same span,
.position-new span { color: transparent; }

.position-down span::after,
.position-up span::after,
.position-same span::after,
.position-new span::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 15px;
	transform: translateY(-50%);
}

.position-down span::after {
	border-left: 7px solid transparent;
	border-right: 7px solid transparent;
	border-top: 7px solid #e50000;
}

.position-up span::after,
.position-new span::after {
	border-left: 7px solid transparent;
	border-right: 7px solid transparent;
	border-bottom: 7px solid #00E586;
}

.position-same span::after {
	border-top: 7px solid transparent;
	border-bottom: 7px solid transparent;
	border-right: 7px solid #E6B450;
}

.no-results {
	padding: 20px;
	background: #343434;
	color: #fff;
	text-align: left;
}

#last-update {
	color: #8c8c8c;
	font-size: clamp(0.75rem, 0.7rem + 0.3vw, 0.875rem);
	margin: 25px 0 0;
}

@media (min-width: 768px) {
	.result-img,
	.result-img img {
		width: 120px;
		height: 120px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms;
		animation-iteration-count: 1;
		transition-duration: 0.01ms;
		scroll-behavior: auto;
	}
}