*

 {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	border-width: 0;
	border-style: solid;
	border-color: #dfe4ea;
}

html {
	font-size: 16px;
	margin: 0;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Lato, Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
	;
}

.stack-tv-container {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	height: 100%;
	padding: 1rem;
}

.stack-tv-box {
	position: relative;
	box-sizing: border-box;
	margin: 0;
	margin-right: 2rem;
	width: 75%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	border-radius: 1rem;
	overflow: hidden;
	background: rgba(0, 0, 0);
	/* border: 2px solid #2f3542; */
	box-shadow: 0px 0px 1rem #2f3542;
	transition: all .3s ease;
}

.stack-tv-box.wide-screen {
	position: fixed;
	width: 100%;
	height: 100vh;
	margin: 0;
	padding: 0;
	left: 0;
	top: 0;
	bottom: 0;
	right: 0;
	z-index: 9999;
	border-radius: 0;
	scrollbar-width: none;
}

.stack-tv-box:hover {
	/* box-shadow: 0px 0px 2rem #2f3542; */
}

.stack-tv-video {
	position: relative;object-fit: fill
	margin: auto;object-fit: fill
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	height: 100%;
	width: 100%;object-fit: fill
	max-width: 100%; object-fit: fill
	max-height: 100%;object-fit: fill
}

/* video::cue{object-fit: fill
	position: center;
	white-space: nowrap;
	font-size: 1rem;
	line-height: 1rem;
	align: center;
} */
.stack-tv-switch {
	display: flex;
	flex-direction: column;
	width: 25%;
	height: 100%;
	overflow: hidden;
	background: #2f3542;
	border-radius: 1rem;
	border: 2px solid #2f3542;
	box-shadow: 0px 0px 1rem #2f3542;
	transition: all .3s ease;
}

.stack-tv-switch.hidden {
	position: fixed;
	right: 0;
	transform: translateX(100%);
}

.stack-tv-switch.shown {
	position: fixed;
	right: 0;
	transform: translateX(0);
	z-index: 10000;
	/* height: 100vh; */
	top: 0;
	bottom: 0;
}

.stack-tv-switch:hover {
	/* box-shadow: 0px 0px 2rem #2f3542; */
}

.stack-tv-switch-list {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: calc(100% - 4.5rem);
	overflow: hidden;
	overflow-y: auto;
}

.stack-tv-switch-head {
	display: flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 100%;
	height: 2rem;
	background: white;
	color: #2f3542;
	font-weight: bold;
}

.stack-tv-switch-foot {
	width: 100%;
	height: 2.5rem;
}

.stack-tv-switch-foot input {
	width: 100%;
	height: 100%;
	border: none;
	padding: .5rem;
	background: #57606f;
	color: white;
	text-align: center;
	font-weight: bold;
	font-size: 1rem;
}

.stack-tv-switch-item {
	width: 100%;
	height: 10rem;
	color: white;
	background-color: black;
	cursor: pointer;
	flex: 0 0 auto;
	margin: 0;
	margin-bottom: 1rem;
	overflow: hidden;
	opacity: 1;
	transition: all .2s ease;
	order: var(--stack-tv-index);
}

.stack-tv-switch-item.hidden {
	margin: 0;
	height: 0;
	opacity: 0;
}

.stack-tv-switch-item:last-child {
	margin-bottom: 0;
}

.stack-tv-switch-item .tv-name {
	display: flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 100%;
	height: 25%;
}

.stack-tv-switch-item img {
	width: 100%;
	height: 75%;
	user-select: none;
	object-fit: contain;
	transition: all .3s ease;
}

.stack-tv-switch-item:hover {
	box-shadow: 0px 0px 1rem rgba(255, 255, 255, 0.6);
}

img.loadedImg {
	-webkit-animation: scale-in-center 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
	animation: scale-in-center 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

.stack-tv-log-list {
	position: absolute;
	display: flex;
	flex-direction: column;
	bottom: 2.5rem;
	margin: 0;
	padding: 0;
	max-width: 25%;
	overflow: hidden;
	transition: all .3s ease;
}

.stack-tv-log-list.hidden {
	opacity: 0;
}

.stack-tv-log-item {
	position: relative;
	width: fit-content;
	max-width: calc(100% - 0.5rem);
	height: 1rem;
	line-height: 1rem;
	font-size: .75rem;
	margin-left: .5rem;
	margin-bottom: .25rem;
	padding-left: .25rem;
	padding-right: .25rem;
	border-radius: .5rem;
	color: rgb(255, 255, 255);
	background: rgba(0, 0, 0, 0.1);
	flex: 0 0 auto;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	-webkit-user-select: none;
	/*webkit浏览器*/
	-moz-user-select: none;
	/*火狐*/
	-ms-user-select: none;
	/*IE10*/
	user-select: none;
	opacity: 1;
}

.stack-tv-log-item:before {
	position: absolute;
	content: "";
	height: 100%;
	width: 100%;
	background: rgba(0, 0, 0, .3);
	filter: blur(10px);
}

.stack-tv-log-item.hidden {
	opacity: 0;
	margin: 0;
	padding: 0;
	height: 0;
}

/* .stack-tv-box:hover .stack-tv-toolbox{
	opacity: 1;
} */
.stack-tv-toolbox {
	/* width: 80%; */
	position: absolute;
	display: flex;
	padding: .5rem;
	flex-direction: column;
	bottom: 2rem;
	border-radius: .25rem;
	overflow: hidden;
	left: 50%;
	transform: translateX(-50%);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	background: rgba(255, 255, 255, 0.3);
	box-shadow: 0px 0px 1rem rgba(0, 0, 0, 0.3);
	transition: all .3s ease;
	/* opacity: 0; */
}

.stack-tv-box.undisturbed {
	cursor: none;
}
.stack-tv-box.undisturbed .stack-tv-toolbox{
	opacity: 0;
}


/* .stack-tv-toolbox::after{
	content: "";
	width: 100%;
	height: 100%;
	filter: blur(10px);
	margin: -.5rem;
} */
.stack-tv-toolbar {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
}

.stack-tv-toolbar-item {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 1.875rem;
	height: 1.875rem;
	color: rgba(0, 0, 0, 0.75);
	margin: 0 .5rem;
	cursor: pointer;
	transition: all .2s ease-in-out;
}

.stack-tv-toolbar-item.small {
	width: 1.5rem;
	height: 1.5rem;
}

.stack-tv-toolbar-item.s-small {
	width: 1rem;
	height: 1rem;
}

.stack-tv-toolbar-item:hover {
	transform: scale(1.1);
}

.stack-tv-toolbar-item svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.stack-tv-toobar-volume {
	display: flex;
	margin: 0 .5rem;
	margin-right: 1rem;
	flex-direction: row;
	align-items: center;
	height: 1rem;
	color: rgba(0, 0, 0, 0.75);
}

.stack-tv-toobar-volume .volume-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1rem;
	height: 1rem;
	flex: 0 0 auto;
	margin: 0 .5rem;
	margin-right: 1rem;
}

.volume-icon svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.stack-tv-toobar-volume .volume-bar {
	display: flex;
	position: relative;
	align-items: center;
	height: .25rem;
	border-radius: .125rem;
	width: 4rem;
	background: rgba(0, 0, 0, 0.2);
	cursor: pointer;
}

.volume-bar::after {
	position: absolute;
	content: "";
	left: 0;
	width: var(--current-volume);
	background: #1e90ff;
	height: .25rem;
	border-radius: .125rem;
	z-index: 1;
}

.volume-bar .bar-item {
	position: absolute;
	width: .75rem;
	height: .75rem;
	transform: translateX(-50%);
	left: 0;
	background: rgb(255, 255, 255);
	border-radius: 50%;
	cursor: pointer;
	z-index: 2;
}

.volume-bar .bar-item {
	box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.4);
}

.stack-tv-toobar-more {
	display: flex;
	align-items: center;
	height: 1rem;
	margin: 0 .5rem;
	margin-left: 1rem;
}

.stack-tv-theaterMode{
	scrollbar-width: none;
	background: rgba(0, 0, 0, 1);
}

.stack-tv-theaterMode::-webkit-scrollbar{
	width: 0;
}











.stack-loading-panel{
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 6rem;
	height: 6rem;
	z-index: 9999;
	left: 1110%;
	top: 0%;
	transform: translate(-50%, -50%);
	color: rgba(0, 0, 0, 0.75);
	background: rgba(255, 255, 255, 0.3);
	box-shadow: 0px 0px 1rem rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: .5rem;
}
.stack-loading-panel .stack-loading{
	width: 4rem;
	height: 4rem;
	line-height: 4rem;
	text-align: center;
	animation: loading-rotate 1.5s linear infinite;
	
}
.stack-loading-panel.hidden,.stack-loading-panel.hidden * {
	opacity: 0;
	z-index: -1;
}
.stack-loading svg{
	width: 0%;
	height: 0%;
	fill: currentColor;
}
.stack-tv-progressbar {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
}
.stack-tv-progressbar-time{
	width: 2rem;
	height: 1rem;
	line-height: 1rem;
	text-align: center;
	font-size: .5rem;
	color: rgba(0, 0, 0, 0.75);
}
.stack-tv-progressbar-time.left{
	margin-right: .5rem;
}
.stack-tv-progressbar-time.right{
	margin-left: .5rem;
}
.stack-tv-progressbar-line{
	position: relative;
	height: .25rem;
	border-radius: .125rem;
	flex: 1 0 auto;
	background: rgba(0, 0, 0, 0.3);
}
.stack-tv-progressbar-line .line-item{	
	position: absolute;
	width: .2rem;
	height: .75rem;
	left: 0;
	top: 50%;
	transform: translate(-50%, -50%);
	background: rgba(255, 255, 255, 0.8);
	box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.4);
}
@media only screen and (max-width: 767px) {
	.stack-tv-container {
		display: flex;
		flex-direction: column;
	}

	.stack-tv-box {
		width: 100%;
		height: 75%;
		margin: 0;
		margin-bottom: 2rem;
	}

	.stack-tv-switch {
		display: flex;
		flex-direction: row;
		width: 100%;
		height: 25%;
	}

	.stack-tv-switch.hidden {
		position: fixed;
		bottom: 0;
		transform: translateY(100%);
	}

	.stack-tv-switch.shown {
		position: fixed;
		transform: translateY(0);
		z-index: 10000;
		width: 100vw;
		left: 0;
		right: 0;
		bottom: 0;
		bottom: 0;
		top: unset;
	}

	.stack-tv-switch-head {
		width: 2rem;
		height: 100%;
		writing-mode: vertical-lr;
	}

	.stack-tv-switch-foot {
		width: 2.5rem;
		height: 100%;
	}

	.stack-tv-switch-list {
		display: flex;
		flex-direction: row;
		width: calc(100% - 4.5rem);
		height: 100%;
		overflow: hidden;
		overflow-x: auto;
	}

	.stack-tv-switch-item {
		width: 50%;
		height: 100%;
		margin: 0;
		margin-right: 1rem;
	}


	.stack-tv-switch-item:last-child {
		margin-right: 0;
	}

	.stack-tv-switch-item.hidden {
		width: 0;
		height: 0;
		opacity: 0;
	}

	.stack-tv-log-list {
		max-width: 50%;
	}

	.stack-tv-toobar-volume {
		margin: 0;
	}

	.stack-tv-toobar-more {
		margin: 0;
	}

	.stack-tv-toobar-volume .volume-bar {
		width: 3rem;
	}

	.stack-tv-toolbar-item {
		width: 1.5rem;
		height: 1.5rem;
	}

	.stack-tv-toolbar-item.small {
		width: 1.25rem;
		height: 1.25rem;
	}

	.stack-tv-toolbar-item.s-small {
		width: .75rem;
		height: .75rem;
	}
}

@media only screen and (max-width: 767px) and (orientation: landscape){
	.stack-tv-switch-item{
		width: 25%;
	}
	.stack-tv-switch-foot{
		width: 5rem;
	}
	
}
@media only screen and (max-width: 767px) and (orientation: portrait){
	.stack-tv-toobar-volume{
		display: none;
	}
	.stack-tv-toolbar-item.small{
		display: none;
	}
}
/* ----------------------------------------------
 * Generated by Animista on 2023-6-13 0:22:43
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation scale-in-center
 * ----------------------------------------
 */
@-webkit-keyframes scale-in-center {
	0% {
		-webkit-transform: scale(0);
		transform: scale(0);
		opacity: 1;
	}

	100% {
		-webkit-transform: scale(1);
		transform: scale(1);
		opacity: 1;
	}
}

@keyframes scale-in-center {
	0% {
		-webkit-transform: scale(0);
		transform: scale(0);
		opacity: 1;
	}

	100% {
		-webkit-transform: scale(1);
		transform: scale(1);
		opacity: 1;
	}
}

@-webkit-keyframes loading-rotate{
	0%{
		transform: rotate(0deg);
	}
	0%{
		transform: rotate(360deg);
	}
}
@keyframes loading-rotate{
	0%{
		transform: rotate(0deg);
	}
	0%{
		transform: rotate(360deg);
	}
}
@media screen and (prefers-color-scheme:dark) {
	.stack-tv-toolbox, .stack-loading-panel {
		background: rgba(0, 0, 0, 0.3);
		box-shadow: 0px 0px 1rem rgba(255, 255, 255, 0.3);
	}

	.stack-tv-toobar-volume {
		color: rgba(255, 255, 255, 0.75);
	}

	.stack-tv-toolbar-item {
		color: rgba(255, 255, 255, 0.75);
	}

	.stack-tv-toobar-volume .volume-bar {
		background: rgba(255, 255, 255, .2);
	}
	.stack-loading-panel{
		color: rgba(255, 255, 255, 0.75);
	}
	.stack-tv-progressbar-line{
		background: rgba(255, 255, 255, 0.3);
	}
	.stack-tv-progressbar-time{
		color: rgba(255, 255, 255, 0.75);
	}
}





