@font-face {
	font-family: 'dos437';
	src: url('fonts/dos437.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family:'PixelOperator';
	src: url('fonts/PixelOperator.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family:'PixelOperator';
	src: url('fonts/PixelOperator-Bold.ttf') format('truetype');
	font-weight: bold;
	font-style: normal;
}

html, body, div, span, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, 
a, em, hr, figure, img, small, b, u, i, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, tr, th, td {
	background:transparent;
	border:0;
	margin:0;
	padding:0;
	vertical-align:baseline;
}

* {
	box-sizing: border-box;
	scroll-behavior:smooth;
}

body {
	background:#000;
	color: #fff;
	text-align:center;
	font-family:"PixelOperator";
	font-size:24px;
	max-width:750px;
	margin:0 auto;
}

#header {
	margin: 4rem auto 0;
}

pre {
	font:16px/1 "dos437";
}

i {
	color:#aaa;
	background:#000;
	font-style:normal;
	display:inline-block;
}

a {
	color:#f70;
	text-decoration:none;
}

main {
	display:flex;
	flex-direction:column;
	gap:30px;
	border-top:2px dashed #222;
	background:#111;
	margin:1px auto 25px;
	text-align:left;
	padding:50px 60px 30px;
	line-height:normal;
	/*color:#5f5;*/
	color:#fb5;
}

section {
	position:relative;
}

#title::before {
	content: "$ ";
}

@media (prefers-reduced-motion: no-preference) {
	@keyframes flash {
		50% { opacity: 0; }
	}

	@keyframes reveal {
		from { max-width: 2em; } /* Width of ::before */
		  to { max-width: 100%; }
	}

	#title {
		overflow: hidden;
		white-space: nowrap;
		text-overflow: "_";
	}

		#title.anim {
			animation: reveal 4s linear forwards;
			max-width:2em;
		}

	#title::after {
		content: "█";
		animation: flash 0.5s step-end infinite;
		font:.875em "dos437";
		position: relative;
		top: -1px;
		left: 1px;
	}
}

h2 {
	font-size:34px;
	margin:.5em 0 .25em;
}

	h2#title {
		margin:0 0 1em;
	}

h4 {
	color:#555;
	margin-bottom:.5em;
}

#top-albums div {
	display:grid;
	grid-template-columns:1fr 1fr 1fr 1fr 1fr;
	grid-gap:5px;
	font-size:16px;
}

	#top-albums span {
		display:block;
		margin-bottom:1em;
	}

img {
	display:block;
}

	#top-albums img {
		width:100%;
		margin-bottom:5px;
	}

	#top-albums span.no-cover {
		position:relative;
		padding-bottom:100%;
		margin-bottom:5px;
		background-color:#fff1;
	}

		#top-albums span.no-cover:before {
			content:"[ no cover ]";
			position:absolute;
			width: 100%;
			text-align: center;
			line-height: 130px;
			opacity:.75;
		}

table {
	width:100%;
}

table tr {
	position:relative;
}

thead  td {
	border-bottom:2px dashed #333;
	padding-right:10px;
}

	thead td:last-child {
		padding-right:0;
	}

tbody td {
	padding: 15px 20px 0px 0;
	vertical-align: middle;
}

	tbody td:last-child {
		padding-right:0;
	}

	tbody td span {
		display:inline-block;
		color:#555;
		border:8px solid #222;
		position:relative;
	}

		tbody td span[playing="1"] img {
			opacity:.5;
		}

em {
	position: absolute;
	display: block;
	background-image:url(images/spectrum.gif);
	background-repeat:repeat-x;
	background-size: 50px;
	background-position: center;
	filter: grayscale(1);
	mix-blend-mode: screen;
	bottom:0px;
	left: 20px;
	width: 50px;
	height:25px;
	color: transparent;
}

footer {
	color:#fb5;
	margin:0 auto 2em;
	display:flex;
	flex-direction:column;
}

	footer > small {
		line-height:1.5rem;
		color:#333;
	}

@media only screen and (max-width: 768px) {
	body {
		font-size:16px;
	}

	main {
        width:100%;
		padding:20px;
    }

	#header {
		transform: scale(.5);
		transform-origin: top left;
		margin: 2rem auto -193px;
		width:200%;
		height:384px;
		padding: 0 5%;
		overflow: hidden;
  	}

	h2 {
		font-size:24px;
		margin:0;
	}

		#title {
			white-space:initial;
			max-width:initial;
		}

	thead {
		display:none;
	}

	table td {
		display:block;
		padding:0;
		font-size:16px;
	}

		tbody td:first-child {
			float:left;
			margin:0 15px 20px 0;
		}

		tbody td:nth-child(2) {
			padding-top:6px;
		}

	table em {
		top:65px;
	}

	section + section {
		margin-top:-2rem;
	}

	#top-albums div {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

