.mv-viewer {
	--mv-bg: #111214;
	--mv-panel: #1c1d20;
	--mv-text: #e8e8ea;
	--mv-accent: #ff5c5c;
	--mv-border: #2c2d31;

	max-width: 760px;
	margin: 0 auto;
	background: var(--mv-bg);
	color: var(--mv-text);
	border-radius: 8px;
	overflow: hidden;
	outline: none;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.mv-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
	background: var(--mv-panel);
	border-bottom: 1px solid var(--mv-border);
	font-size: 13px;
}

.mv-btn {
	background: transparent;
	border: 1px solid var(--mv-border);
	color: var(--mv-text);
	border-radius: 4px;
	padding: 5px 10px;
	font-size: 12px;
	cursor: pointer;
	transition: background 0.15s ease;
}
.mv-btn:hover {
	background: rgba(255, 255, 255, 0.08);
}

.mv-page-indicator {
	font-variant-numeric: tabular-nums;
	opacity: 0.85;
}

.mv-stage {
	position: relative;
	display: flex;
	align-items: stretch;
	background: #000;
	touch-action: pan-y;
}

.mv-pages-wrap {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 320px;
	max-height: 82vh;
	overflow: hidden;
	user-select: none;
}

.mv-pages {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.mv-pages.mv-ltr {
	flex-direction: row;
}
.mv-pages.mv-rtl {
	flex-direction: row-reverse;
}

.mv-page-img {
	max-width: 100%;
	max-height: 82vh;
	object-fit: contain;
	display: block;
	pointer-events: none;
}

.mv-pages.mv-spread .mv-page-img {
	max-width: 50%;
}

.mv-nav {
	flex: 0 0 44px;
	background: rgba(0, 0, 0, 0.15);
	border: none;
	color: var(--mv-text);
	cursor: pointer;
	position: relative;
	transition: background 0.15s ease;
}
.mv-nav:hover:not(:disabled) {
	background: rgba(255, 255, 255, 0.08);
}
.mv-nav:disabled {
	opacity: 0.25;
	cursor: default;
}

.mv-nav::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 10px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
}

.mv-nav-left::before {
	transform: translate(-30%, -50%) rotate(-135deg);
}
.mv-nav-right::before {
	transform: translate(-70%, -50%) rotate(45deg);
}

.mv-nav-next {
	color: var(--mv-accent);
}

@media (max-width: 600px) {
	.mv-pages-wrap {
		min-height: 220px;
	}
	.mv-nav {
		flex-basis: 36px;
	}
}
