@font-face {
    font-family: 'vcr';
    src: url('vcr_osd_mono.woff') format('woff'), /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
         url('vcr_osd_mono.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5, Opera 10+, Safari 3—5 */
}

body {
	background: url(stars.jpg) repeat;
	background-position: center;
	margin: 0;
	font-family: vcr;
}

input, select {
	font-family: monospace;
}

body.behind-video {
	overflow-x: hidden;
	overflow-y: auto;
}

body.behind-video video .label {
	position: absolute;
	top: 0;
}

body.nocontrols {
	overflow: hidden;
}

.thumbnail {
	position: relative;
	float: left;
	width: 320px;
	height: 180px;
	overflow: hidden;
	margin: 16px;
	border-radius: 10px;
	border: 4px outset gray;
	background: url(videotape.png) no-repeat;
	background-size: contain;
}

.thumbnail:hover {
	border: 4px outset white;
}

.thumbnail:active {
	border: 4px solid white;
	background: white;
	box-shadow: 0 0 20px white;
}

.thumbnail:active img {
	opacity: 0.6;

}

.thumbnail img {
	background: black;
}

.thumbnail .label {
	position: absolute;
	margin: 10px;
	padding: 5px;
	color: white;
	text-shadow: 2px 2px 0px black;
	text-decoration: none;
	border-radius: 2px;
	font-size: 14pt;
}

.thumbnail .label-top {
	top: 0px;
	right: 0px;
	background: #00000088;
	font-size: 14px;
	font-weight: bold;
}

.thumbnail:hover .label-top {
	background: #555555;
	background: mediumpurple;
}

.thumbnail .label-bottom {
	bottom: 0px;
	left: 0px;
	background: #00000088;
	pointer-events: none;
	font-size: 14px;
	font-weight: bold;
}

.thumbnail:hover .label-bottom {
	background: #555555;
	background: mediumpurple;
}

.player {
	float: left;
	width: 100%;
	min-height: 360px;
}

.player video {
	display: inherit;
	margin: 0 auto;
	margin-top: 20px;
	background: black;
	border-radius: 8px;
	box-shadow: 0 0 20px 10px black;
	opacity: 1 !important;
}

.player video::-internal-media-controls-overlay-cast-button {
    display: none;
}

.fixed-supernav .player {
  position: absolute;
  top: 48px;
  bottom: 96px;
}

.fixed-supernav .player video {
  height: 71vh;
}

.fixed-supernav .listing-box {
  margin-top: 100vh;
}

.fixed-supernav .header {
  position: absolute;
  top: 0;
}

.fixed-supernav .footer {
  margin-bottom: 96px;
}

.backlight .player video {
	margin-top: -10px;
	box-shadow: 0 0 10px white;
	padding: 16px;
  transition: .2s ease-in-out;
}

#background-video {
	width: 100vw;
	height: 100vh;
	object-fit: cover;
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	z-index: 1;
}

.player .label {
	color: #cccccc;
	float: left;
	text-align: center;
	width: 100%;
	padding: 20px 0 20px 0;
	background: -webkit-linear-gradient(top, rgba(0, 0, -1, 0), rgba(0, 0, 0, 1));
	background: -moz-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
	text-shadow: -2px 0px black;
	font-size: 16px;
	font-weight: bold;
}

.listing-box {
	position: relative;
	width: 100%;
}

.listing {
	position: relative;
	margin: 0 auto;
	width: 85%;
}

.header, .footer {
	float: left;
	width: 100%;
	background: #555555;
	text-align: left;
	box-sizing: border-box;
}

.header {
	height: 48px;
	background: mediumpurple;
}

body.behind-video .header {
	background: #555555;
}

.header h1 {
	margin: 0;
}

.header h1 a {
	color: white;
	text-shadow: 3px 0px 2px black;
	font-size: 20px;
	padding: 12px;
        line-height: 48px;
}

.header h1 a:hover {
	background: mediumpurple;
}

.footer {
 	height: 50%;
	overflow: hidden;
	margin-top: 20px;
	padding-left: 20px;
}

form.search {
	position: absolute;
	top: 0;
	right: 0;
	margin: 6px 6px 0px 0px;
	width:20%;
	text-align: right;
}

form.search input[type=text] {
	font-size: 14px;
	height: 36px;
	border: 0 none;
	padding: 0px 0px 0px 10px;
	margin-left: 10px;
}

form.search a {
	cursor: pointer;
}

h2 {
	float: left;
	color: white;
	text-shadow: -2px 0px 2px black;
	padding-left: 12px;
	font-size: 14px;
	line-height: 32px;
	height: 32px;
	margin: 0;
}

h4 {
	float: left;
	color: #cccccc;
	text-shadow: 2px 0px 2px black;
	line-height: 32px;
	height: 32px;
	margin-right: 14px;
}

h4 a {
	color: #cccccc;
	padding: 8px;
}

h4 a:hover {
	background: mediumpurple;
}

.supernav {
	display: block;
	float: left;
	width: 100%;
	height: 96px;
	background: #555555;
	border-top: 1px solid #cccccc;
	position: relative;
	z-index: 1;
}

.fixed-supernav .supernav {
  position: fixed;
  bottom: 0;
}

.fixed-supernav video {
  height: 540px;
}

.supernav h4 {
	color: #cccccc;
	background: black;
	border: 1px solid white;
	margin-right: 5px;
	height: 32px;
	overflow: hidden;
}

.supernav h4:last-child {
	margin-right: 0;
}

.supernav h4:hover {
}

.supernav-left-side {
	float: left;
	width: 33%;
	text-align: left;
}

.supernav-left-side canvas {
	width: 220px;
	height: 70px;
	float: left;
	margin-left: 10px;
	margin-top: 12px;
	background: url(stars.jpg);
	border: 1px solid #cccccc;
	box-shadow: 0 0 4px white;
	border-radius: 7px;
	padding-left: 10px;
	padding-right: 10px;
}

.supernav-left-side #volvalue {
	position: relative;
	top: 40px;
	left: -2px;
	text-align: right;
	width: 32px;
}

.supernav-right-side #speedvalue {
	position: relative;
	top: 10px;
	left: 20px;
}

.supernav-left-side .player-controls {
	width: unset;
	float: left;
}

.supernav-left-side h4 {
	border: 0;
	border-radius: 42px;
	margin-left: 10px;
	border-top: 1px solid #cccccc;
	border-bottom: 4px solid #2B1800;
}

.supernav-left-side h4 input[type=checkbox] {
	display: none;
}

.supernav .time-box {
	width: 220px;
	height: 64px;
	overflow: hidden;
	padding: 10px 10px 0px 10px;
	background: url(stars.jpg);
	color: #cccccc;
	float: left;
	margin: 10px;
	border-radius: 8px;
	border: 1px solid #cccccc;
	box-shadow: 0 0 4px white;
	font-weight: bold;
	line-height: 18px;
	text-align: center;
}

.supernav-right-side #player-status {
	min-width: 20px;
	min-height: 20px;
	padding-left: 0px;
	margin-left: 0px;
	margin-top: 10px;

	color: #cccccc;
	text-shadow: -1px -1px 0 #000,
		1px -1px 0 #000,
		-1px 1px 0 #000,
		1px 1px 0 #000;
}

.supernav-left-side #player-status {
	background: url(https://imgs.search.brave.com/fXe4nGGtFgaOkJMCxc5Scw98XIidjBf0RwJumLHuVjo/rs:fit:860:0:0:0/g:ce/aHR0cHM6Ly93d3cu/YW5pbWF0ZWRpbWFn/ZXMub3JnL2RhdGEv/bWVkaWEvMzQyL2Fu/aW1hdGVkLWxlZC1p/bWFnZS0wMDgzLmdp/Zg.gif) no-repeat;
}

.supernav-middle {
	float: left;
	width: 34%;
	text-align: center;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.supernav-middle .player-controls {
	text-align: center;
	float: right;
	width: 100%;
}

.supernav-right-side .player-controls {
	right: 10px;
	top: 55px;
	float: left;
}

.player-controls input[type=checkbox] {
	margin-top: 9px;
	float: left;
	display: none;
}

.player-controls label {
	padding: 10px;
	cursor: pointer;
	line-height: 32px;
}

.player-controls h4 {
	border-radius: 20px;
}

.player-controls h4:has(input:checked) {
	background: mediumpurple;
}

.player-controls a {
	display: block;
	float: left;
	margin-right: 10px;
	width: 48px;
	height: 48px;
	line-height: 48px;
	text-align: center;
	color: #cccccc;
	box-shadow: 2px 2px black;
	background: #333333;
	font-weight: bold;
	cursor: pointer;
	text-decoration: none;
	user-select: none;
	text-shadow: 0 0 4px black;
}

.player-controls a:last-child {
	margin-right: 0;
}

.player-controls a:hover {

}

.player-controls a:active,
.player-controls .pressed {
	background: silver;
	box-shadow: none;
	margin-top: 1px;
	margin-left: 1px;
	box-shadow: 2px 2px black inset;
	width: 47px;
	height: 47px;
}

.player-controls .pressed {

}

.supernav-right-side {
	float: right;
	width: 33%;
	height: 100%;
}

.subnav {
	float: left;
	width: 100%;
	background: #555555;
	margin-bottom: 32px;
}

.behind-video .subnav {
	background: unset;
}

.subnav a {
	color: #cccccc;
}

.subnav label, .subnav input {
	cursor: pointer;
}

.subnav input {
	margin-top: 9px;
	float: left;
}

.subnav-right-side {
	float: right;
}

.behind-video .subnav-right-side h4 label {
	display: block;
	float: right;
	height: 100%;
	padding: 0;
	width: 32px;
	text-align: center;
}

.subnav a:hover {
	background: mediumpurple;
}

h6, h6 a {
	color: white;
	text-shadow: 2px 0px 2px black;
	padding: 10px;
	font-size: 14px;
}

h6 a:hover {
	background: mediumpurple;
}

form.install {
	float: left;
	width: 100%;
	text-align: center;
	background: lightyellow;
	padding: 36px 0px 36px;
}

pre {
	overflow-x: scroll;
	background: white;
	padding: 20px;
	margin: 20px;
	border: 1px solid black;
	text-align: left;
}

form.video-editor,
form.video-editor label,
form.video-editor input,
form.video-editor select {
  display: block;
  float: left;
  width: 100%;
  margin-top: 20px;
}

form.video-editor, form.video-editor label {
  background: black;
  color: white;
}

form.video-editor input[type=submit] {
  cursor: pointer;
  background: mediumpurple;
  color: white;
  font-size: 14px;
  text-shadow: -2px 0 2px #000;
}

form.video-editor input, form.video-editor select {
  padding: 20px;
  border: 2px solid black;
  box-sizing: border-box;
}

form.video-editor h2 {
  padding: 0px;
}

form#imports {
  border-radius: 4px;
  border: 1px solid white;
  margin-bottom: 20px;
}

form#imports .item {
  width: 100%;
  padding: 10px;
  background-size: contain;
  background-position: top right;
  background-repeat: no-repeat;
  box-sizing: border-box;
  color: black;
  background-color: #eeeeee;
}

form#imports div.item:nth-child(even) {
  background-color: #cccccc;
}

form#imports .info {
  box-sizing: border-box;
  width: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  padding-left: 86px;
  padding-right: 86px;
}

form#imports .title, form#imports .collection {
  font-weight: bold;
  text-shadow: -2px 0px 2px white;
}

form#imports .icon {
  display: block;
  float: left;
  margin-right: 10px;
  width: 77px;
  height: 45px;
  overflow: hidden;
  background: url(videotape.png);
  background-size: contain;
  background-repeat: no-repeat;
}

form#imports .icon-border:hover {
  box-shadow: 1px 1px 4px black, -1px -1px 4px black, -1px 1px 4px black, 1px -1px 4px black;
}

form#imports .icon .thumb {
  opacity: 0;
  width: 80px;
  border-radius: 4px;
}
form#imports .icon .thumb:hover {
  opacity: 1;
}

.progress-container {
  display: block;
  margin:0 auto;
  background:#CDCDCD;
  height:5px;
  border-radius:4px;
  border: 1px solid gray;
  width: 99%;
  margin: 4px 0px 4px 0px;
  overflow: hidden;
}

.progress-bar {
  height: 5px;
  width:100%;
  max-width:100%;
  border-radius:4px;
}

.progress-bar span {
  height: 5px;
  border-radius:4px;
  display: block;
}

form#imports .status-bar {
  text-transform: capitalize;
  background: white;
  color: white;
  padding: 4px;
  margin: 10px 0px 10px 0px;
  display: block;
  border-radius: 4px;
  border: 1px solid gray;
  font-family: monospace;
  width: 75%;
}

form#imports .status-text {
  font-style: italic;
}

form#imports .target {
  float: right;
}

form#imports .incomplete {

}

form#imports .target-text {
  float: right;
  display: block;
}

form#imports .target-text a {
  font-weight: bold;
  text-shadow: 1px 0px 1px black;
  color: white;
  background: mediumpurple;
  border: 1px solid gray;
  text-decoration: none;
  padding: 4px;
  border-radius: 4px;
}

form#imports .target-text a:hover {
  text-decoration: underline;
}

form#imports .queued {
  background-image: url(/vplaylist/include/queued.gif);
}

form#imports .downloading {
  background-image: url(/vplaylist/include/downloading.gif);
}

form#imports .processing {
  background-image: url(/vplaylist/include/processing.gif);
}

form#imports .refreshing {
  background-image: url(/vplaylist/include/refreshing.gif);
}

form#imports .error .progress-bar span {
  background-color: indianred;
  width: 100% !important;
}

form#imports .queued .progress-bar span {
  background-color: goldenrod;
  width: 100% !important;
}

form#imports .downloading .progress-bar span {
  background-color: dodgerblue;
  width: 5%;
}

form#imports .processing .progress-bar span {
  background-color: dodgerblue;
  width: 33%;
}

form#imports .refreshing .progress-bar span {
  background-color: dodgerblue;
  width: 75%;
}

form#imports .completed .progress-bar span {
  background-color: mediumaquamarine;
  width: 100% !important;
}

/*
 * Pressable, iOS Compatible CSS Button
 * https://codepen.io/jemware/pen/kPoYbe
 */
.button {
  position:relative;
  display:inline-block;
  margin:4px;
}

.button a {
	color: #cccccc;
	font-weight:bold;
	font-size:16px;
	text-align: center;
	text-decoration:none;
	background-color:#666666;
	display:block;
	position:relative;
	padding:5px;

	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	text-shadow: 0px 2px 0px #000;
	filter: dropshadow(color=#000, offx=0px, offy=1px);

	-webkit-box-shadow:inset 0 1px 0 #cccccc, 0 10px 0 #444444;
	-moz-box-shadow:inset 0 1px 0 #cccccc, 0 10px 0 #444444;
	box-shadow:inset 0 1px 0 #cccccc, 0 10px 0 #444444;

	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}

.button a.pressed,
.button a:active{
	top:10px;
	background-color:#666666;
	-webkit-box-shadow:inset 0 1px 0 #cccccc, inset 0 -3px 0 #444444;
	-moz-box-shadow:inset 0 1px 0 #cccccc, inset 0 -3pxpx 0 #444444;
}

.button:after{
	content:"";
	height:100%;
	width:100%;
	padding:4px;
	position: absolute;
	bottom:-15px;
	left:-4px;
	z-index:-1;
	background-color:#2B1800;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}

/*
 * Custom slider
 * https://codepen.io/ibaslogic/pen/GRYRgay
 */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 78px;
  cursor: pointer;
  outline: none;
  border-radius: 15px;
  height: 8px;
  display: block;
  float: left;
  margin-top: 28px;
}

/* Thumb: webkit */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 30px;
  width: 9px;
 background-color: #aaaaaa;
/*   background-image: url("https://ibaslogic.github.io/hosted-assets/smile.png");*/
  background-size: cover;
/*   border-radius: 50%;*/
  border: none;
  transition: .2s ease-in-out;
  /*  rotate thumb  */
  transform: rotateZ(var(--thumb-rotate, 0deg));
  border-left: 4px solid black;
  border-right: 4px solid black;
}

/* Thumb: Firefox */
input[type="range"]::-moz-range-thumb {
  height: 30px;
  width: 30px;
/*   background-color: #f50; */
  background-image: url("https://ibaslogic.github.io/hosted-assets/smile.png");
  background-size: cover;
  border-radius: 50%;
  border: none;
  transition: .2s ease-in-out;
  /*  rotate thumb  */
  transform: rotateZ(var(--thumb-rotate, 0deg));
}

/* Hover, active & focus Thumb: Webkit */
input[type="range"]::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 10px rgba(255,85,0, .1)
}
input[type="range"]:active::-webkit-slider-thumb {
  box-shadow: 0 0 0 13px rgba(255,85,0, .2)
}
input[type="range"]:focus::-webkit-slider-thumb {
  /*box-shadow: 0 0 0 13px rgba(255,85,0, .2)*/
}

/* Hover, active & focus Thumb: Firfox */

input[type="range"]::-moz-range-thumb:hover {
  box-shadow: 0 0 0 10px rgba(255,85,0, .1)
}
input[type="range"]:active::-moz-range-thumb {
  box-shadow: 0 0 0 13px rgba(255,85,0, .2)
}
input[type="range"]:focus::-moz-range-thumb {
  box-shadow: 0 0 0 13px rgba(255,85,0, .2)
}

/*=============
Aesthetics
=========================*/

body {
/*  font-family: system-ui;*/
}

h1 {
 /* color: #4b4949; */
 /*  text-align: center;*/
}

.wrapper {
  color: #4b4949;
  background: #f50;
  max-width: 400px;
  width: 100%;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.range {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
  height: 4rem;
  width: 80%;
  background: #fff;
  padding: 0px 10px;
}

.value {
  font-size: 26px;
  width: 50px;
  text-align: center;
}

.horizontal {
/*  background: linear-gradient(to right, rgb(255, 85, 0) 32%, rgb(204, 204, 204) 32%); */
  background: #2B1800;
  border: 1px solid #999999;
}

.vertical {
  transform: rotate(-90deg);
  background: #2B1800;
  border: 1px solid #999999;
}
