/* 木木暖短视频边栏组件 v1.3 —— 87zy 风格：全屏无黑边、圆角 */
#msv-root.msv-sidebar-widget {
	width: 100%;
	overflow: hidden;
	border-radius: 20px;
	background: #000;
	box-shadow: 0 8px 20px rgba(0, 0, 0, .6);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}
#msv-root * {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* 视频舞台：铺满卡片，无黑边 */
.msv-stage {
	position: relative;
	aspect-ratio: 9 / 16;
	max-height: 62vh;
	overflow: hidden;
	background: #000;
}
.msv-stage video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* 加载/错误 */
.msv-loading {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: rgba(255, 255, 255, .85);
	font-size: 12px;
	background: rgba(0, 0, 0, .35);
}
.msv-spinner {
	width: 26px;
	height: 26px;
	border: 3px solid rgba(255, 255, 255, .25);
	border-top-color: #fff;
	border-radius: 50%;
	animation: msv-rotate .8s linear infinite;
}
@keyframes msv-rotate {
	to { transform: rotate(360deg); }
}
.msv-error {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: #fff;
	font-size: 13px;
	background: rgba(0, 0, 0, .75);
	text-align: center;
	padding: 16px;
}
.msv-error button {
	border: 0;
	border-radius: 16px;
	padding: 6px 18px;
	color: #fff;
	background: linear-gradient(135deg, #ff5f6d, #ffc371);
	cursor: pointer;
	font-size: 13px;
}

/* 中央播放按钮 */
.msv-play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 4;
	width: 58px;
	height: 58px;
	border: 0;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #111;
	background: rgba(255, 255, 255, .9);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
	cursor: pointer;
	transition: transform .2s, opacity .2s;
}
.msv-play-btn:hover {
	transform: translate(-50%, -50%) scale(1.08);
}
#msv-root.msv-playing .msv-play-btn {
	opacity: 0;
	pointer-events: none;
}

/* 底部控制 */
.msv-controls {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 12px;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	opacity: 0;
	transition: opacity .25s;
}
.msv-stage:hover .msv-controls,
.msv-stage:focus-within .msv-controls {
	opacity: 1;
}
.msv-controls-left {
	display: flex;
	align-items: center;
	gap: 6px;
}
.msv-ctl {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: 50%;
	color: #fff;
	background: rgba(0, 0, 0, .35);
	border: 1px solid rgba(255, 255, 255, .22);
	cursor: pointer;
	backdrop-filter: blur(4px);
	transition: background .2s, transform .15s;
}
.msv-ctl:hover {
	background: rgba(255, 255, 255, .28);
}
.msv-ctl:active {
	transform: scale(.92);
}
.msv-next-btn {
	border: 0;
	border-radius: 50px;
	padding: 7px 14px;
	color: #111;
	background: rgba(255, 255, 255, .88);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 4px 10px rgba(255, 255, 255, .3);
	transition: transform .2s, background .2s, opacity .2s;
	opacity: .85;
}
.msv-next-btn:hover {
	transform: translateY(-2px);
	background: rgba(255, 255, 255, 1);
	opacity: 1;
}

/* 进度条 */
.msv-progress {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 4;
	height: 3px;
	background: rgba(255, 255, 255, .22);
	cursor: pointer;
}
.msv-progress-bar {
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, #ff5f6d, #ffc371);
}

/* 触屏设备没有悬停：始终显示按钮 */
@media (hover: none) {
	.msv-controls {
		opacity: 1;
	}
}
