.tojino-local-video-wrap {
	text-align: center;
}

.tojino-local-video-shell {
	--tojino-video-accent: #12c95b;
	position: relative;
	display: inline-flex;
	max-width: 100%;
	max-height: calc(100svh - 64px);
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: #000;
	color: #fff;
	font-size: 13px;
	line-height: 1;
	vertical-align: top;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

@supports not (height: 100svh) {
	.tojino-local-video-shell {
		max-height: calc(100vh - 64px);
	}
}

.tojino-local-video-shell .tojino-local-video {
	display: block !important;
	width: auto;
	max-width: 100%;
	max-height: calc(100svh - 64px);
	height: auto !important;
	background: #000;
	object-fit: contain;
	pointer-events: none;
}

@supports not (height: 100svh) {
	.tojino-local-video-shell .tojino-local-video {
		max-height: calc(100vh - 64px);
	}
}

.tojino-local-video-shell button {
	font: inherit;
}

.tojino-local-video-shell svg {
	display: block;
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.tojino-local-video-shell .tojino-video-icon-outline {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tojino-local-video-shell .tojino-video-icon-fill-stroke {
	fill: currentColor;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tojino-local-video-shell .tojino-video-icon-solid {
	fill: currentColor;
	stroke: none;
}

.tojino-video-top-mute svg {
	width: 24px;
	height: 24px;
}

.tojino-video-shade {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(to top, rgba(0, 0, 0, .56), rgba(0, 0, 0, .18) 24%, rgba(0, 0, 0, 0) 58%);
	opacity: 0;
	pointer-events: none;
	transition: opacity .18s ease;
}

.tojino-local-video-shell.is-controls-visible .tojino-video-shade,
.tojino-local-video-shell.is-user-paused .tojino-video-shade,
.tojino-local-video-shell.is-speed-menu-open .tojino-video-shade {
	opacity: 1;
}

.tojino-video-top-mute {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 5;
	display: none;
	width: 36px;
	height: 36px;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: rgba(255, 255, 255, .92);
	cursor: pointer;
	opacity: 1;
	pointer-events: auto;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .72);
	transform: translateY(0);
	transition: opacity .18s ease, background-color .15s ease, transform .18s ease;
}

.tojino-local-video-shell.has-audio .tojino-video-top-mute {
	display: inline-flex;
}

.tojino-video-top-mute:hover,
.tojino-video-top-mute:focus {
	background: rgba(0, 0, 0, .28);
	outline: 0;
	transform: translateY(0) scale(1.03);
}

.tojino-video-surface {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

.tojino-video-center-button {
	display: grid;
	width: 61px;
	height: 61px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 999px;
	background: rgba(0, 0, 0, .48);
	box-shadow: 0 18px 44px -20px rgba(0, 0, 0, .95);
	opacity: 0;
	transform: scale(.94);
	transition: opacity .18s ease, transform .18s ease;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.tojino-video-center-button svg {
	width: 40px;
	height: 40px;
}

.tojino-local-video-shell.is-user-paused .tojino-video-center-button {
	opacity: 1;
	transform: scale(1);
}

.tojino-video-controls {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 4;
	display: flex;
	box-sizing: border-box;
	flex-direction: column;
	gap: 4px;
	padding: 12px 12px 8px;
	color: #fff;
	opacity: 0;
	pointer-events: none;
	transform: translateY(18px);
	transition: opacity .18s ease, transform .18s ease;
}

.tojino-local-video-shell.is-controls-visible .tojino-video-controls,
.tojino-local-video-shell.is-user-paused .tojino-video-controls,
.tojino-local-video-shell.is-speed-menu-open .tojino-video-controls {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.tojino-video-progress-row {
	display: flex;
	width: 100%;
	height: 20px;
	align-items: center;
}

.tojino-video-slider {
	position: relative;
	width: 100%;
	height: 20px;
	cursor: pointer;
	touch-action: none;
}

.tojino-video-slider:focus {
	outline: 0;
}

.tojino-video-slider-track {
	position: absolute;
	top: 50%;
	right: 0;
	left: 0;
	height: 4px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .28);
	transform: translateY(-50%);
}

.tojino-video-slider-buffer,
.tojino-video-slider-fill {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 0;
	border-radius: inherit;
}

.tojino-video-slider-buffer {
	background: rgba(255, 255, 255, .26);
}

.tojino-video-slider-fill {
	background: var(--tojino-video-accent);
}

.tojino-video-slider-thumb {
	position: absolute;
	top: 50%;
	left: 0;
	width: 14px;
	height: 14px;
	border-radius: 999px;
	background: var(--tojino-video-accent);
	box-shadow: 0 1px 5px rgba(0, 0, 0, .5);
	transform: translate(-50%, -50%);
}

.tojino-video-control-row {
	display: flex;
	min-height: 32px;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.tojino-video-control-left,
.tojino-video-control-right {
	display: flex;
	min-width: 0;
	align-items: center;
	gap: 6px;
}

.tojino-video-control-left {
	flex: 1 1 auto;
}

.tojino-video-control-right {
	flex: 0 0 auto;
}

.tojino-video-button,
.tojino-video-speed-button {
	display: inline-flex;
	width: 32px;
	min-width: 32px;
	height: 32px;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #fff;
	cursor: pointer;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .72);
	transition: background-color .15s ease, transform .15s ease;
}

.tojino-video-button:hover,
.tojino-video-button:focus,
.tojino-video-speed-button:hover,
.tojino-video-speed-button:focus {
	background: rgba(255, 255, 255, .16);
	outline: 0;
}

.tojino-video-button:active,
.tojino-video-speed-button:active {
	transform: scale(.95);
}

.tojino-video-volume-group {
	display: none;
	width: 32px;
	min-width: 32px;
	height: 32px;
	align-items: center;
	gap: 6px;
	overflow: hidden;
	border-radius: 999px;
	transition: width .2s ease, background-color .2s ease, padding-right .2s ease;
}

.tojino-local-video-shell.has-audio .tojino-video-volume-group {
	display: flex;
}

.tojino-video-volume {
	width: 0;
	min-width: 0;
	opacity: 0;
	pointer-events: none;
	transition: width .2s ease, opacity .16s ease;
}

.tojino-video-volume .tojino-video-slider-thumb {
	background: #fff;
}

.tojino-local-video-shell.has-volume-slider .tojino-video-volume-group:hover,
.tojino-local-video-shell.has-volume-slider .tojino-video-volume-group:focus-within,
.tojino-local-video-shell.has-volume-slider.is-volume-open .tojino-video-volume-group {
	width: 112px;
	padding-right: 8px;
	background: rgba(0, 0, 0, .28);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.tojino-local-video-shell.has-volume-slider .tojino-video-volume-group:hover .tojino-video-volume,
.tojino-local-video-shell.has-volume-slider .tojino-video-volume-group:focus-within .tojino-video-volume,
.tojino-local-video-shell.has-volume-slider.is-volume-open .tojino-video-volume {
	width: 60px;
	opacity: 1;
	pointer-events: auto;
}

.tojino-local-video-shell.is-volume-toggle-only .tojino-video-volume {
	display: none !important;
}

.tojino-local-video-shell.has-no-audio .tojino-video-top-mute,
.tojino-local-video-shell.has-no-audio .tojino-video-volume-group {
	display: none !important;
}

.tojino-video-top-mute[hidden],
.tojino-video-volume-group[hidden] {
	display: none !important;
}

.tojino-video-time {
	display: inline-flex;
	min-width: 0;
	align-items: center;
	gap: 5px;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .75);
}

.tojino-video-duration {
	color: rgba(255, 255, 255, .74);
}

.tojino-video-speed-group {
	position: relative;
	display: flex;
	align-items: center;
}

.tojino-video-speed-group.is-hidden,
.tojino-video-button.is-hidden {
	display: none !important;
}

.tojino-video-speed-button {
	width: auto;
	min-width: 32px;
	padding: 0 8px;
	font-size: 14px;
	font-weight: 700;
}

.tojino-video-speed-menu {
	position: absolute;
	right: 0;
	bottom: 38px;
	z-index: 6;
	display: flex;
	min-width: 82px;
	flex-direction: column;
	gap: 1px;
	padding: 6px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 14px;
	background: rgba(0, 0, 0, .78);
	box-shadow: 0 18px 56px -28px rgba(0, 0, 0, .95);
	opacity: 0;
	pointer-events: none;
	transform: translateY(6px);
	transition: opacity .15s ease, transform .15s ease;
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}

.tojino-local-video-shell.is-speed-menu-open .tojino-video-speed-menu {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.tojino-video-speed-item {
	display: block;
	width: 100%;
	margin: 0;
	padding: 8px 11px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: rgba(255, 255, 255, .82);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-align: left;
	cursor: pointer;
}

.tojino-video-speed-item:hover,
.tojino-video-speed-item:focus {
	background: rgba(255, 255, 255, .1);
	color: #fff;
	outline: 0;
}

.tojino-video-speed-item.is-selected {
	background: rgba(255, 255, 255, .16);
	color: #fff;
}

.tojino-local-video-shell:fullscreen,
.tojino-local-video-shell:-webkit-full-screen,
.tojino-local-video-shell.is-fullscreen {
	width: 100vw !important;
	max-width: none !important;
	height: 100vh !important;
	max-height: none !important;
	align-items: center;
	justify-content: center;
	background: #000;
}

.tojino-local-video-shell:fullscreen .tojino-local-video,
.tojino-local-video-shell:-webkit-full-screen .tojino-local-video,
.tojino-local-video-shell.is-fullscreen .tojino-local-video {
	width: 100% !important;
	max-width: 100% !important;
	height: 100% !important;
	max-height: 100% !important;
	object-fit: contain;
}

.tojino-local-video-shell:fullscreen .tojino-video-controls,
.tojino-local-video-shell:-webkit-full-screen .tojino-video-controls,
.tojino-local-video-shell.is-fullscreen .tojino-video-controls {
	padding-bottom: max(10px, env(safe-area-inset-bottom));
}

@media (max-width: 480px) {
	.tojino-local-video-shell {
		max-height: none;
	}

	.tojino-local-video-shell .tojino-local-video {
		max-height: none;
	}

	.tojino-video-controls {
		gap: 2px;
		padding: 10px 10px 7px;
	}

	.tojino-video-control-row {
		gap: 7px;
	}

	.tojino-video-control-left,
	.tojino-video-control-right {
		gap: 4px;
	}

	.tojino-video-button,
	.tojino-video-speed-button {
		width: 30px;
		min-width: 30px;
		height: 30px;
	}

	.tojino-video-speed-button {
		width: auto;
		min-width: 32px;
		padding: 0 7px;
	}

	.tojino-video-time {
		font-size: 13px;
	}

	.tojino-video-top-mute {
		width: 36px;
		height: 36px;
	}

	.tojino-video-center-button {
		width: 54px;
		height: 54px;
	}

	.tojino-video-speed-menu {
		bottom: 35px;
	}
}
