body {
  background: #000000;
  overflow-x: auto;
  overflow-y: auto;
  font-family: -apple-system, system-ui, "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
  touch-action: manipulation;
}

#player {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    display: none;
    visibility: hidden;
    border: 4px solid black;
}
#event-sink {
	position: fixed;
	left: 0;
	top: 0;
	width:0;
	height:0;
}
#debug-stats {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 440px;
    height: 180px;
    background-color: #cfc9c9;
    color: #000000;
    padding: 4px;
    border: 1px solid #756969;
	visibility: hidden;
}
#video-list {
    top: 0;
    left: 0;
    width: 100%;
	height:fit-content;
	display: flex;
	flex-wrap: wrap;
	justify-content: left;
	position: relative;
}
.video-item {
	margin: 0;
	width: 50%;
	min-width: 320px; /* this dimension is used with max-width media below  */
	text-align: left;
	padding-bottom: 0.5em;
	color: lightcyan;
}
.video-item img {
	width: 100%;
	height: auto;
}
.video-title {
	margin-top: 8px;
	font-size: 14px;
	padding: 0 4px 0 4px;
}
.video-search-item {
	margin: 0 0 12px 0;
	text-align: left;
	float: left;
	width: 100%;
}
.video-search-item img {
	/* width: 39%; */
	min-width: 282px;
	/* height: auto; */
}
.video-search-title {
	/* margin-top: 8px; */
	/* font-size: 14px; */
	/* padding: 0 4px 0 4px; */
	/* width: 56%; */
	/* float:right; */
	margin: 12px 6px 6px 12px;
}

.remove-channel-item {
    margin: 12px 0 32px 0;
    width: 100%;
    text-align: left;
    font-size: 1.45em;
}

.remove-video-item {
    width: 96%;
    display: flex;
    gap: 16px;
    /* margin-left: 36px; */
}

.remove-video-title {
	font-size: 1.1em;
}

.video-item-wrap {
	width: fit-content; 
	min-width:240px; 
	height:fit-content;
}

.video-item-inwrap {
	float:left;
}

/* .remove-video-item img {
	width: 25%;
	min-width: 180px;
	float: left;
} */

.bubble {
	position: relative;
	width: 300px;
	text-align: center;
	line-height: 1.4em;
	margin: 40px auto;
	background-color: #fff;
	border: 6px solid #333;
	border-radius: 30px;
	font-family: -apple-system, system-ui, "Segoe UI", sans-serif;
	padding: 20px;
	font-size: large;
}

.thought {
	width: 300px;
	border-radius: 200px;
	padding: 30px;	
}

.bubble:before,
.bubble:after {
	content: ' ';
	position: absolute;
	width: 0;
	height: 0;
}

.speech:before {
	left: 30px;
	bottom: -50px;
	border: 25px solid;
	border-color: #333 transparent transparent #333;
}

.speech:after {
	left: 38px;
	bottom: -30px;
	border: 15px solid;
	border-color: #fff transparent transparent #fff;
}

.thought:before,
.thought:after {
	left: 10px;
	bottom: -40px;
	width: 40px;
	height: 40px;
	background-color: #fff;
	border: 6px solid #333;
	-webkit-border-radius: 28px;
	-moz-border-radius: 28px;
	border-radius: 28px;
}

.thought:after {
	width: 20px;
	height: 20px;
	left: 5px;
	bottom: -50px;
	-webkit-border-radius: 18px;
	-moz-border-radius: 18px;
	border-radius: 18px;
}

#appmenu {
    position: fixed;
    left: 25px;
    top: 25px;
    width: auto;
    height: auto;
    color:rgb(64, 74, 112);
    padding: 12px 12px 12px 12px;
    z-index:1000;
    display: none;
    visibility: hidden;
    font-size: 1.25em;
	font-family: 'Port Lligat Sans', serif;
}

#ytsearch {
	width:96%;
	border: 1px solid #cfc9c9;
	border-bottom: 2px solid black;
	border-radius: 9px;
	padding: 4px 12px;
	font-size: 1.65em;
}
#yt-search-results-list {
	height: 86%;
	overflow: auto;
	margin-top: 6px;
	align-self: center;
}
#channeltag {
    font-size: 0.55em;
    letter-spacing: 0.25em;
    color: white;
    background-color: #228111;
    position: relative;
    width: fit-content;
    top: -58px;
    left: 12px;
    padding: 2px 4px;
    display: none;
    visibility: hidden;
}
.badge {
	background-image: url("ico/048-check-1.png");
	background-size: contain;
    position: relative;
    left: 12px;
    top: 12px;
    width: 32px;
    height: 32px;
    visibility: hidden;
}
.badge-blue{
	background-image: url("ico/049-check-2.png");
	background-size: contain;
    position: relative;
    left: 12px;
    top: 12px;
    width: 32px;
    height: 32px;
    visibility: hidden;
}
.btn0 {
    border: 1px solid #cfc9c9;
    border-radius: 12px;
    margin-top: 6px;
    padding: 8px 16px;
    font-size: 1.25em;
    letter-spacing: 0.1em;
	width: 90%;
}

.btn1 {
  appearance: none;
  background-color: #FAFBFC;
  border: 1px solid rgba(27, 31, 35, 0.15);
  border-radius: 6px;
  box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
  box-sizing: border-box;
  color: #24292E;
  cursor: pointer;
  display: inline-block;
  font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.24em;
  list-style: none;
  padding: 6px 16px;
  margin-top: 0.5em;
  position: relative;
  transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
  user-select: none;
  -webkit-user-select: none;
  vertical-align: middle;
  white-space: nowrap;
  word-wrap: break-word;
}

.b {
    float:left;
	margin-left: 6px;
}
.ls10em {
	letter-spacing: 0.10em;
}
.ptr {
	cursor: pointer;
}
.s {
	letter-spacing: 0.15em;
	margin: 1.25em 0 0 1.4em
}
.ss {
	letter-spacing: 0.15em;
	margin: 18px 0 18px 0;
}
.lf {
	font-size: 1.2em;
}
.bl {
	color: blue;
}

.h {
	display:none;
	visibility: hidden;
}

.h1 {
	font-size: 2.0em;
}

.ico {
	width: 32px;
	height: auto;
}
.pad-end {
	text-align: end;
	padding: 12px 24px;
}
.in-circle {
    display: block;
    background: #2e9110;
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    font-size: 20px;
}
.R180 {
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
}

.bubble {
    top: 0;
	height: 250px;
	width: 40%;
	min-width: 200px;
	background: ivory;
	display: block;
	margin: 0 auto;
	border-radius: 20px;
	margin-top: 25px;
	font-size: 1.0em;
	text-align: left;
	padding: 16px;
}

.pointer {
	height: 40px;
	width: 40px;
	background: ivory;
	margin: 0 auto;
	transform: rotate(45deg);
	border-radius: 0 0 12px 0;
	margin-top: -22px;
	position: relative;
	left: calc(0.5vw - 50px);
}

.blurred {
	background: gray;
	filter: blur(20px);
	position: relative;
	top: -315px;
/* 	transform: scale(1.05); */
	z-index: -1;
}

.bouncy{
	animation:bouncy 5s infinite linear;
	position:relative;
}
@keyframes bouncy {
	0%{top:0em}
	40%{top:0em}
	43%{top:-0.9em}
	46%{top:0em}
	48%{top:-0.4em}
	50%{top:0em}
	100%{top:0em;}
}

/* OPTIONS */
.options-layout {
	width: 100%;
	text-align: end;
	display: grid;
	gap: 8px;
	padding-top:12px;
	text-align: right;
	font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
	font-size: 1.0em;
	margin-bottom: 24px;
  }

  .r2 {
	grid-template-rows: repeat(2, 0.5fr);
	grid-template-columns: repeat(2, 1fr);
  }

  .r4 {
	grid-template-rows: repeat(4, 0.5fr);
	grid-template-columns: repeat(2, 1fr);
  }

  .r6 {
	grid-template-rows: repeat(6, 0.5fr);
	grid-template-columns: repeat(2, 1fr);
  }

  #opt-section-2 {
	grid-template-rows: repeat(6, 0.5fr);
	grid-template-columns: repeat(2, 0.5fr);
	text-align: right;
  }
  #opt-numvids {
	width:120px;
  }

  .r8 {
	grid-template-rows: repeat(8, 0.5fr);
	grid-template-columns: repeat(2, 1fr);
  }

  .r10 {
	grid-template-rows: repeat(10, 0.5fr);
	grid-template-columns: repeat(2, 1fr);
  }

  .switch {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 28px;
  }
  .opt-key {    
	font-size: 1em;
	padding-top: 4px;
    margin: 4px 0 4px 12px;
  }
  .opt-value {    
	text-align: left;
    margin: 4px 0 4px 12px;
  }
  .switch input { 
	opacity: 0;
	width: 0;
	height: 0;
  }
  
  .slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	-webkit-transition: .4s;
	transition: .4s;
  }
  
  .slider:before {
	position: absolute;
	content: "";
	height: 21px;
	width: 21px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	-webkit-transition: .4s;
	transition: .4s;
  }
  
  input:checked + .slider {
	background-color: #2196F3;
  }
  
  input:focus + .slider {
	box-shadow: 0 0 1px #2196F3;
  }
  
  input:checked + .slider:before {
	-webkit-transform: translateX(22px);
	-ms-transform: translateX(22px);
	transform: translateX(22px);
  }
  
  /* Rounded sliders */
  .slider.round {
	border-radius: 34px;
  }
  
  .slider.round:before {
	border-radius: 50%;
  }

  .dropdown {
	width: 0.5fr;
	font-size: 1.20em;
  }
  .textbox {
	width: 0.5fr;
	font-size: 1.25em;
  }

  .insert-item {
	width: 100%;
	height: 420px;
	border: 4px solid black;
	padding: 24px;
  }

.login-layout {
	width: 100%;
	text-align: left;
	display: grid;
	/* gap: 8px; */
	padding-top:12px;
	font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
	font-size: 1.1em;
	grid-template-rows: repeat(3, 1fr);
	grid-template-columns: repeat(1, 1fr);
}

@media screen and (max-width: 640px) { /* 2x min-width of .video-item */
	.video-item {
	  width: 100%;
	}
}

@media screen and (max-width: 640px) { /* 2x min-width of .video-item */
	#opt-section-2 {
		grid-template-rows: repeat(6, 0.5fr);
		grid-template-columns: repeat(1, 0.5fr);
		text-align: left;
	}
}