/* Modopolis */
:root {
	--green: #00FF00;
	--dim: #00AA00;
	--mint: #00ff88;
	--bar-h: 64px;
}
* { box-sizing: border-box; }
html { background: #000; overflow-y: scroll; scrollbar-gutter: stable; }
body {
	margin: 0;
	padding: 16px 16px calc(var(--bar-h) + 24px);
	background: #000 url("bluebak.jpg") center / cover fixed;
	color: #fff;
	font: 16px/1.45 "Comic Sans MS", "Comic Sans", "Chalkboard SE", verdana, arial, sans-serif;
	text-align: center;
}
a { color: var(--dim); }
a:visited { color: var(--green); }
a:hover { color: var(--green); }
img { image-rendering: pixelated; }

/* HEADER: logo + category buttons */
.hello { margin: 4px 0 6px; font-size: 14px; }
h1 { margin: 0 0 14px; line-height: 0; }
h1 img { width: min(652px, 100%); height: auto; }
.cats {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 136px));
	justify-content: center;
	gap: 8px;
	margin: 0 auto 22px;
}
.cats a { display: block; line-height: 0; border: 2px solid transparent; }
.cats a img { width: 100%; height: auto; }
.cats a:hover, .cats a:focus-visible, .cats a.current { border-color: var(--green); outline: none; }

/* PAGE */
main { max-width: 720px; margin: 0 auto; text-align: left; }
h2 { margin: 18px 0 10px; color: var(--green); font-size: 18px; font-weight: normal; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: clip; }
#home p { color: var(--green); }
#home .welcome { color: #fff; }
.small { font-size: 13px; color: var(--mint) !important; }
.history { color: var(--dim) !important; }
img.inline { vertical-align: middle; }

/* SONG LISTS: play icon, title, save link */
.songs { list-style: none; margin: 0 0 18px; padding: 0; }
.songs li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 4px 6px;
	border: 1px solid transparent;
}
.songs li:hover { background: #001800; }
.songs li.playing { border-color: var(--green); background: #002200; }
.songs li.playing .desc { color: var(--green); }
.songs li.missing .desc { color: #777; }
.play { flex: none; padding: 0; border: 0; background: none; line-height: 0; cursor: pointer; }
/* play icon: bright on the playing song */
.play .lit, .songs li.live .play .dim { display: none; }
.songs li.live .play .lit { display: inline; }
.play:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.desc { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.save { flex: none; font-size: 12px; text-decoration: none; }
.save:hover { text-decoration: underline; }

/* PLAYER BAR */
.bar {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	height: var(--bar-h);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 0 16px;
	background: #000 url("bluebak.jpg") center / cover;
	border-top: 1px solid var(--dim);
	color: var(--green);
	font-size: 14px;
	z-index: 10;
}
.bar > * { background: rgba(0, 0, 0, 0.55); }
.toggle {
	flex: none;
	min-width: 96px;
	padding: 6px 12px;
	border: 1px solid var(--green);
	background: #000;
	color: var(--green);
	font: bold 15px "Comic Sans MS", "Comic Sans", "Chalkboard SE", verdana, arial, sans-serif;
	cursor: pointer;
}
.toggle:hover:not(:disabled) { background: #003300; }
.toggle:disabled { opacity: 0.5; cursor: default; }
.now { min-width: 0; max-width: 360px; padding: 2px 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.time { flex: none; padding: 2px 6px; color: var(--dim); font-size: 12px; }
.time:empty { display: none; }
.loop { flex: none; padding: 2px 6px; color: var(--dim); font-size: 12px; cursor: pointer; }
.bar.error .now { color: #FF5555; }

/* PHONES */
@media (max-width: 560px) {
	body { font-size: 15px; }
	.cats { gap: 4px; }
	h2 { font-size: 16px; }
	.bar { gap: 8px; padding: 0 8px; }
	.toggle { min-width: 80px; }
	.time { display: none; }
}
