.mvex-viewer {
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 100%;
	min-height: min(100svh, 860px);
	padding: 0;
	overflow: hidden;
	background: var(--mvex-viewer-bg, #111);
	color: #fff;
	touch-action: manipulation;
}

.mvex-viewer *,
.mvex-viewer *::before,
.mvex-viewer *::after {
	box-sizing: inherit;
}

.mvex-error {
	padding: 12px;
	border: 1px solid #dcdcde;
	background: #fff;
	color: #1d2327;
}

.mvex-viewer-pages {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: inherit;
	padding: 48px 12px;
}

.mvex-viewer-page,
.mvex-viewer-complete {
	position: absolute;
	inset: 48px 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: auto;
	margin: 0;
	padding: 0;
}

.mvex-viewer-page-spread-left {
	right: 50%;
	justify-content: flex-end;
	padding-right: 0;
	padding-left: 0;
}

.mvex-viewer-page-spread-right {
	left: 50%;
	justify-content: flex-start;
	padding-right: 0;
	padding-left: 0;
}

.mvex-viewer-page[hidden],
.mvex-viewer-complete[hidden] {
	display: none;
}

.mvex-viewer-swiping .mvex-viewer-page:not([hidden]) {
	transform: translate3d(var(--mvex-swipe-x, 0), 0, 0);
	will-change: transform;
}

.mvex-viewer-swipe-settle .mvex-viewer-page:not([hidden]) {
	transform: translate3d(var(--mvex-swipe-x, 0), 0, 0);
	transition: transform 140ms cubic-bezier(0.2, 0.8, 0.2, 1);
	will-change: transform;
}

.mvex-viewer-transitioning .mvex-viewer-page:not([hidden]),
.mvex-viewer-transitioning .mvex-viewer-complete:not([hidden]) {
	animation: mvex-page-settle-in 180ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.mvex-viewer-transition-next[data-mvex-reading-direction="rtl"],
.mvex-viewer-transition-prev[data-mvex-reading-direction="ltr"] {
	--mvex-transition-x: -14px;
}

.mvex-viewer-transition-prev[data-mvex-reading-direction="rtl"],
.mvex-viewer-transition-next[data-mvex-reading-direction="ltr"] {
	--mvex-transition-x: 14px;
}

@keyframes mvex-page-settle-in {
	from {
		opacity: 0.78;
		transform: translate3d(var(--mvex-transition-x, 8px), 0, 0);
	}

	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.mvex-viewer-swiping .mvex-viewer-page:not([hidden]) {
		transform: none;
	}

	.mvex-viewer-swipe-settle .mvex-viewer-page:not([hidden]) {
		transform: none;
		transition: none;
	}

	.mvex-viewer-transitioning .mvex-viewer-page:not([hidden]),
	.mvex-viewer-transitioning .mvex-viewer-complete:not([hidden]) {
		animation: none;
	}
}

.mvex-viewer-page img {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 100%;
	height: auto;
	margin: 0 auto;
	background: #fff;
	user-select: none;
	-webkit-user-drag: none;
}

.mvex-viewer-page-spread-left img {
	margin-right: 0;
}

.mvex-viewer-page-spread-right img {
	margin-left: 0;
}

.mvex-viewer-complete {
	text-align: center;
}

.mvex-viewer-complete-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.7;
}

.mvex-viewer-hit-area {
	position: absolute;
	top: 0;
	bottom: 0;
	z-index: 2;
	width: 50%;
	cursor: pointer;
}

.mvex-viewer-hit-area-prev {
	right: 0;
}

.mvex-viewer-hit-area-next {
	left: 0;
}

.mvex-viewer-controls {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 44px;
	padding: 8px 12px;
	background: var(--mvex-page-bar-bg, rgba(0, 0, 0, 0.76));
	color: var(--mvex-page-bar-color, #fff);
}

.mvex-viewer-button {
	min-height: 32px;
	padding: 4px 12px;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	color: var(--mvex-page-bar-color, #fff);
	font: inherit;
	line-height: 1.4;
	cursor: pointer;
}

.mvex-viewer-button:disabled {
	opacity: 0.42;
	cursor: default;
}

.mvex-viewer-counter {
	min-width: 88px;
	font-size: 13px;
	line-height: 1.4;
	text-align: center;
}

.mvex-single-episode-info {
	box-sizing: border-box;
	width: 100%;
	max-width: 1080px;
	margin: 28px auto;
	padding: 0 16px;
	color: inherit;
	clear: both;
}

.mvex-single-episode-info *,
.mvex-single-episode-info *::before,
.mvex-single-episode-info *::after {
	box-sizing: inherit;
}

.mvex-single-episode-description {
	max-width: 720px;
	font-size: 15px;
	line-height: 1.8;
}

.mvex-single-episode-description > :first-child {
	margin-top: 0;
}

.mvex-single-episode-description > :last-child {
	margin-bottom: 0;
}

.mvex-episode-nav {
	box-sizing: border-box;
	width: 100%;
	max-width: 1080px;
	margin: 24px auto 32px;
	padding: 0 16px;
	clear: both;
}

.mvex-episode-nav *,
.mvex-episode-nav *::before,
.mvex-episode-nav *::after {
	box-sizing: inherit;
}

.mvex-episode-nav-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.mvex-episode-nav-link {
	display: grid;
	gap: 4px;
	min-height: 78px;
	padding: 14px 16px;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #fff;
	color: inherit;
	text-decoration: none;
}

.mvex-episode-nav-link:hover,
.mvex-episode-nav-link:focus {
	border-color: #8c8f94;
	text-decoration: none;
}

.mvex-episode-nav-link-next,
.mvex-episode-nav-link-title {
	grid-column: 2;
}

.mvex-episode-nav-label {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	color: #646970;
}

.mvex-episode-nav-title {
	overflow: hidden;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media (max-width: 640px) and (orientation: portrait) {
	.mvex-viewer {
		min-height: 72svh;
	}

	.mvex-viewer-pages {
		padding: 40px 0 48px;
	}

	.mvex-viewer-page,
	.mvex-viewer-complete {
		inset: 40px 0 48px;
	}

	.mvex-viewer-page-spread-left,
	.mvex-viewer-page-spread-right {
		right: 0;
		left: 0;
		justify-content: center;
		padding-right: 0;
		padding-left: 0;
	}

	.mvex-viewer-controls {
		gap: 8px;
		min-height: 40px;
		padding: 6px 8px;
	}

	.mvex-viewer-button {
		min-height: 30px;
		padding: 3px 10px;
		font-size: 13px;
	}

	.mvex-single-episode-info {
		margin: 22px auto;
		padding: 0 16px;
	}

	.mvex-episode-nav {
		margin: 20px auto 28px;
		padding: 0 16px;
	}

	.mvex-episode-nav-row {
		grid-template-columns: 1fr;
	}

	.mvex-episode-nav-link-next,
	.mvex-episode-nav-link-title {
		grid-column: auto;
	}

}

.mvex-title-page {
	box-sizing: border-box;
	display: block;
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	padding: 24px 16px;
	color: inherit;
	clear: both;
}

.mvex-title-page *,
.mvex-title-page *::before,
.mvex-title-page *::after {
	box-sizing: inherit;
}

.mvex-title-hero {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
	align-items: start;
	width: 100%;
	margin-bottom: 30px;
}

.mvex-title-cover {
	display: block;
	overflow: hidden;
	width: 100%;
	max-width: none;
	margin: 0;
	border-radius: 8px;
	background: #f0f0f0;
	aspect-ratio: 16 / 9;
}

.mvex-title-cover img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.mvex-title-info {
	min-width: 0;
	max-width: 720px;
}

.mvex-title-name {
	display: block;
	margin: 0 0 12px;
	padding: 0;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.25;
}

.mvex-title-page #toc_container,
.mvex-title-page .toc_container,
.mvex-title-page .ez-toc-container,
.mvex-title-page .toc,
.mvex-title-page .toc_widget,
.mvex-title-page .lwptoc,
.mvex-title-page .rtoc-mokuji,
.mvex-title-page .simpletoc {
	display: none !important;
}

.mvex-title-description {
	font-size: 15px;
	line-height: 1.8;
}

.mvex-title-description > :first-child {
	margin-top: 0;
}

.mvex-title-description > :last-child {
	margin-bottom: 0;
}

.mvex-title-section-heading {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	align-items: baseline;
	margin: 0 0 14px;
	padding: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
}

.mvex-title-episode-summary {
	font-size: 13px;
	font-weight: 400;
	color: #646970;
}

.mvex-title-episodes {
	display: block;
	width: 100%;
	clear: both;
}

.mvex-title-empty {
	margin: 0;
	padding: 16px;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #fff;
	color: #1d2327;
}

.mvex-title-page ol.mvex-episode-list,
.mvex-episode-list {
	display: grid;
	gap: 10px;
	justify-items: stretch;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	counter-reset: none;
}

.mvex-title-page li.mvex-episode-list-item,
.mvex-episode-list-item {
	display: block;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.mvex-episode-card {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	gap: 16px;
	align-items: center;
	justify-self: stretch;
	width: 100%;
	min-height: 106px;
	padding: 12px;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	box-shadow: none;
}

.mvex-episode-card:hover,
.mvex-episode-card:focus {
	border-color: #8c8f94;
	text-decoration: none;
}

.mvex-episode-thumb {
	display: block;
	overflow: hidden;
	width: 100%;
	min-width: 0;
	border-radius: 6px;
	background: #f0f0f0;
	aspect-ratio: 16 / 9;
}

.mvex-episode-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.mvex-episode-body {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.mvex-episode-title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.45;
}

.mvex-episode-description {
	display: -webkit-box;
	overflow: hidden;
	font-size: 13px;
	line-height: 1.6;
	color: #646970;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

@media (max-width: 640px) {
	.mvex-title-page {
		padding: 18px 0;
	}

	.mvex-title-hero {
		gap: 14px;
	}

	.mvex-title-name {
		font-size: 24px;
	}

	.mvex-episode-card {
		grid-template-columns: 136px minmax(0, 1fr);
		gap: 12px;
		width: 100%;
	}
}

@media (max-width: 420px) {
	.mvex-episode-card {
		grid-template-columns: 116px minmax(0, 1fr);
	}
}
