@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
	--bg-color: #000;
	--text-color: #d4d4d8;
	--twitch-color: #753ccc;
	--telegram-color: #2686b6;
	--steam-color: #5275a0;
	--github-color: #696969;
	--discord-color: #5865f2;
	--spotify-color: #2ea758;
	--pinterest-color: #990f24;
	--lastfm-color: #a32424;
	--instagram-color: #9b205f;
	--osu-color: #f161a2;
	--storygraph-color: #14919b;
}

* {
	margin: 0;
	padding: 0;
}

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

body {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-color);
	background-color: var(--bg-color);
	font-family: 'Open Sans', sans-serif;
}

.bg {
	z-index: -1;
	position: fixed;
	min-width: 100vw;
	min-height: 100vh;
	align-self: center;

	video {
		min-width: 120vw;
		min-height: 120vh;
		object-fit: cover;
		filter: brightness(0.4) grayscale(0.8) blur(1px);
	}
}

.container {
	max-width: min(90vw, 720px);
	text-align: center;
}

.header {
	margin-bottom: 1rem;
}

.avatar {
	width: 150px;
	height: 150px;
	max-height: 150px;
	max-width: 150px;
	border-radius: 100%;
	object-fit: cover;
	filter: brightness(0.7) grayscale(0.2);
}

.name {
	display: block;
	font-size: 14pt;
	font-weight: 600;
	margin-bottom: 1rem;
}

.lyrics {
	display: inline-block;
	position: relative;
	font-style: italic;
	overflow-wrap: anywhere;
}

.lyrics::after {
	content: '|';
	opacity: 1;
	animation: blink 1s infinite;
}

@keyframes blink {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}

.socials {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
}

.socials a {
	display: inline-flex;
	width: 2rem;
	height: 2rem;
	align-items: center;
	justify-content: center;
	color: var(--text-color);
	transition:
		transform 0.1s ease,
		color 0.1s ease;
}

.socials svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.socials a:hover {
	transform: scale(1.2);
	color: var(--hover-color, var(--text-color));
}

.now-playing {
	display: inline-flex;
	width: min(90vw, 360px);
	margin-top: 1.35rem;
	align-items: center;
	gap: 0.8rem;
	color: var(--text-color);
	text-decoration: none;
	transition:
		transform 0.1s ease,
		color 0.1s ease,
		opacity 0.1s ease;
}

.now-playing:hover {
	transform: scale(1.03);
	color: var(--spotify-color);
}

.now-playing.is-hidden {
	display: none;
}

.now-playing-cover {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 100%;
	object-fit: cover;
	filter: brightness(0.8) grayscale(0.15);
}

.now-playing-info {
	display: flex;
	min-width: 0;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
}

.now-playing-title {
	display: -webkit-box;
	max-width: 100%;
	overflow: hidden;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.25;
	text-overflow: ellipsis;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.now-playing-artist {
	display: -webkit-box;
	max-width: 100%;
	margin-top: 0.2rem;
	overflow: hidden;
	font-size: 0.8rem;
	line-height: 1.25;
	text-overflow: ellipsis;
	opacity: 0.75;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.now-playing-progress {
	width: 100%;
	height: 2px;
	margin-top: 0.5rem;
	overflow: hidden;
	border-radius: 999px;
	background: rgb(212 212 216 / 20%);
}

.now-playing-progress-bar {
	display: block;
	width: var(--progress, 0%);
	height: 100%;
	border-radius: inherit;
	background: currentColor;
	transition: width 0.2s linear;
}

.time {
	margin-top: 1em;
	color: var(--text-color);
}
