* {
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

html, body {
	width: 100%;
	height: 100%;
	overflow: hidden;
	margin: 0;
	padding: 0;
	font-family: Arial, sans-serif;
	font-size: 13px;
}

::-webkit-scrollbar {
	width: 11px;
	height: 11px;
}

::-webkit-scrollbar-track {
	background-color: #555;
}

::-webkit-scrollbar-thumb {
	background-color: #777;
	border-style: solid;
	border-color: #bbb;
	border-width: 1px;
}

::-webkit-scrollbar-button:vertical:decrement {
	border-style: solid;
	border-width: 1px;
	border-color: #bbb;
	background-color: #777;
	border-radius: 6px 6px 0 0;
}

::-webkit-scrollbar-button:vertical:increment {
	border-style: solid;
	border-width: 1px;
	border-color: #bbb;
	background-color: #777;
	border-radius: 0 0 6px 6px;
}

::-webkit-scrollbar-button:horizontal:decrement {
	border-style: solid;
	border-width: 1px;
	border-color: #bbb;
	background-color: #777;
	border-radius: 6px 0 0 6px;
}

::-webkit-scrollbar-button:horizontal:increment {
	border-style: solid;
	border-width: 1px;
	border-color: #bbb;
	background-color: #777;
	border-radius: 0 6px 6px 0;
}

table, tr, td, input, select, button {
	font-family: inherit;
	font-weight: inherit;
	font-size: inherit;
	color: inherit;
}

a {
	text-decoration: none;
	color: inherit;
}

.djTarget, .djVisualizerWindow, .djYouTubeWindow {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background-color: #000;
	color: #fff;
}

.djTarget {
	padding: 2px;
}

.djInput {
	font: inherit;
	border: none;
	width: calc(100% - 3px);
	max-width: 150px;
	height: 30px;
	vertical-align: top;
	margin: 0 3px 0 0;
	padding: 5px;
	border-radius: 6px;
	background-color: #222;
	color: #fff;
}

.djInput:focus {
	outline: none;
}

.djButton {
	font: inherit;
	border: none;
	background-color: #222;
	border-radius: 6px;
	max-width: 150px;
	margin: 0 3px 0 0;
	height: 30px;
	vertical-align: top;
	padding: 5px;
	color: #ccc;
	cursor: pointer;
}

.djButton:hover {
	background-color: #111;
	color: #fff;
}

.djCurrentlyPlayingSection {
	float: right;
	width: 50%;
	text-align: right;
	height: 100%;
	padding: 3px;
	color: #efefef;
}

.djPlaylistHeaderTitle {
	float: left;
	white-space: nowrap;
	vertical-align: middle;
	padding: 2px 0 0 2px;
	width: 100px;
	font-weight: bold;
}

.djPlaylistHeaderControls {
	float: left;
	vertical-align: middle;
	width: calc(100% - 100px);
	text-align: right;
}

.djPendingImage {
	width: 500px;
	margin: 20px;
	box-shadow: 0 0 10px #000;
}

.djDeckButton {
	opacity: 0.1;
	margin-right: 3px;
	width: calc(16.66% - 3px);
}

.djPlaylistSection, .djDeckSection {
	float: left;
	width: 100%;
	padding: 0;
	margin: 0;
	background-color: #444;
	color: #efefef;
	overflow: hidden;
	border: 2px solid #000;
}

.djPlaylistHeader, .djDeckHeader {
	height: 34px;
	padding: 2px 0 0 0;
	overflow: hidden;
	background-color: royalblue;
}

.djDeckInfo {
	width: 100%;
	height: calc(100% - 34px);
	overflow: auto;
	margin: 0;
	padding: 5px;
}

.djPlaylistTracks {
	width: 100%;
	height: calc(100% - 34px);
	overflow: auto;
	list-style-type: none;
	margin: 0;
	padding: 0;
}

.djTrack, .djTrackPlaceholder {
	float: left;
	width: calc(100% - 12px);
	max-width: 108px;
	height: 34px;
	margin: 8px 0 0 6px;
	overflow: hidden;
	border-radius: 6px;
	white-space: nowrap; 
	text-align: center;
	padding: 3px 0 0 3px;
	cursor: pointer;
	box-shadow: 1px 1px 8px #000;
	list-style-type: none;
}

.djTrack {
	background-color: #666;
}

.djTrackPlaceholder {
	background-color: red;
}

.djMAINPlaylist .djTrack:first-of-type, .djMAINPlaylist .djTrackPlaceholder:first-of-type {
	background-color: maroon;
}

.djSEARCHPlaylist .djPlaylistHeader {
	background-color: darkcyan;
}

/*
.djSEARCHPlaylist .djTrack, .djSEARCHPlaylist .djTrackPlaceholder {
	background-color: darkcyan;
}
*/

.djREQUESTSPlaylist .djPlaylistHeader {
	background-color: darkgoldenrod;
}

.djREQUESTSPlaylist .djTrack, .djREQUESTSPlaylist .djTrackPlaceholder {
	background-color: darkgoldenrod;
}

.djHISTORYPlaylist .djPlaylistHeader {
	background-color: lightgreen;
	color: #000;
}

.djHISTORYPlaylist .djTrack, .djHISTORYPlaylist .djTrackPlaceholder {
	background-color: lightgreen;
	color: #000;
}

.djDeckSection .djTrack {
	max-width: 5000px;
	height: calc(100% - 16px);
	padding: 18px 0 0 0;
	background-color: green;
}

.djTrackDuplicate, .djREQUESTSPlaylist .djTrack.djTrackDuplicate {
	background-color: red;
}

.djPlayCount {
	background-color: transparent;
	text-align: center;
	height: auto;
	margin: 0;
	padding: 0;
	width: 40%;
}

.ui-menu {
	z-index: 101;
	width: 240px;
	box-shadow: 0 0 4px #000;
	border-radius: 5px;
	padding: 5px;
}

.ui-menu .ui-menu-item {
	padding: 5px;
}

.ui-menu .ui-menu-item:hover {
	background-color: #ccc;
}

.ui-state-disabled.ui-menu-item:first-child {
	background-color: #987543;
	color: #fff;
	opacity: 1;
	border-radius: 5px;
	text-align: center;
}

/* Cartoon DJ head — visualizer window during Web Speech (TTS) */
.dj-speech-dj-wrap {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 50;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: radial-gradient(ellipse at center, #2a1f4a 0%, #0d0618 62%, #000 100%);
	pointer-events: none;
	transition: background 180ms ease-in-out;
}

.dj-speech-dj-stage {
	--dj-stage-x: -50%;
	--dj-stage-y: -50%;
	--dj-beat-scale: 1;
	--dj-beat-rot: 0deg;
	position: absolute;
	left: 50%;
	top: 50%;
	width: min(72vmin, 440px);
	transform: translate(var(--dj-stage-x), var(--dj-stage-y)) scale(var(--dj-beat-scale)) rotate(var(--dj-beat-rot));
	transform-origin: center center;
	transition: left 200ms ease-in-out, top 200ms ease-in-out, width 200ms ease-in-out, transform 130ms ease-out;
	filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.7));
}

.dj-speech-dj-svg {
	width: 100%;
	height: auto;
	animation: djSpeechBob 0.55s ease-in-out infinite alternate;
}

.dj-speech-dj-wrap.dj-mini {
	background: transparent;
}

.dj-speech-dj-wrap.dj-mini .dj-speech-dj-stage {
	left: 16px;
	top: 16px;
	width: min(26vmin, 170px);
	--dj-stage-x: 0%;
	--dj-stage-y: 0%;
}

.dj-speech-dj-wrap.dj-full .dj-speech-dj-stage {
	left: 50%;
	top: 50%;
	width: min(72vmin, 440px);
	--dj-stage-x: -50%;
	--dj-stage-y: -50%;
}

.dj-speech-dj-stage.dj-speech-beat {
	filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.78)) saturate(1.07);
}

.dj-speech-face {
	fill: #ffd4a8;
	stroke: #c9785c;
	stroke-width: 3;
}

.dj-speech-face-hi {
	fill: #ffe8cf;
	opacity: 0.5;
}

.dj-speech-cheek {
	fill: #f19b7f;
	opacity: 0.22;
}

.dj-speech-hair {
	fill: #190b2a;
	stroke: #0f061c;
	stroke-width: 2;
}

.dj-speech-phone {
	fill: #3d3d48;
	stroke: #1a1a22;
	stroke-width: 2;
}

.dj-speech-band {
	fill: none;
	stroke: #2a2a35;
	stroke-width: 10;
	stroke-linecap: round;
}

.dj-speech-eye {
	animation: djSpeechBlink 3.8s ease-in-out infinite;
	transform-origin: center;
	transform-box: fill-box;
}

.dj-speech-eye-sclera {
	fill: #fff;
	stroke: #e3d1bf;
	stroke-width: 2;
}

.dj-speech-eye-pupil {
	fill: #1a1a22;
}

.dj-speech-eye-highlight {
	fill: #ffffff;
	opacity: 0.7;
}

.dj-speech-brow {
	fill: none;
	stroke: #6b3a2f;
	stroke-width: 4;
	stroke-linecap: round;
}

.dj-speech-stubble {
	fill: none;
	stroke: rgba(58, 21, 32, 0.35);
	stroke-width: 2;
	stroke-linecap: round;
}

.dj-speech-nose {
	fill: #e8a878;
	stroke: #c9785c;
	stroke-width: 1.5;
}

.dj-speech-mouth {
	/* Hide larger lower-mouth shape unless explicitly in speaking mode. */
	transform-origin: 50% 25%;
	transform-box: fill-box;
	opacity: 0;
	transform: scaleY(0.15);
}

.dj-speech-dj-wrap.dj-speaking .dj-speech-mouth {
	opacity: 1;
	animation: djSpeechMouth 0.13s ease-in-out infinite alternate;
}

.dj-speech-mouth-cavity {
	fill: #5a2432;
	stroke: #3a1520;
	stroke-width: 2;
}

.dj-speech-mouth-upper {
	fill: none;
	stroke: #3a1520;
	stroke-width: 2.2;
	stroke-linecap: round;
}

.dj-speech-mouth-teeth {
	fill: #f6f6f6;
	stroke: #d9d9d9;
	stroke-width: 1.5;
}

.dj-speech-tongue {
	fill: #b63b55;
	opacity: 0.95;
}

@keyframes djSpeechMouth {
	from {
		transform: scaleY(0.28);
	}
	to {
		transform: scaleY(1.35);
	}
}

@keyframes djSpeechBob {
	from {
		transform: translateY(0) rotate(-1.2deg);
	}
	to {
		transform: translateY(-10px) rotate(1.2deg);
	}
}

@keyframes djSpeechBlink {
	0%, 92%, 100% {
		transform: scaleY(1);
	}
	94%, 98% {
		transform: scaleY(0.08);
	}
}

.dj-speech-dj-caption {
	margin-top: 1rem;
	position: absolute;
	left: 50%;
	bottom: max(5vh, 20px);
	transform: translateX(-50%);
	max-width: 92%;
	padding: 0 12px;
	text-align: center;
	font-size: clamp(14px, 2.5vmin, 22px);
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.88);
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.dj-speech-dj-wrap.dj-mini .dj-speech-dj-caption {
	display: none !important;
}