/* Live room modal — compact stage, no empty chrome */
.m3d-live-popup {
	position: fixed;
	inset: 0;
	z-index: 9999;
}
.m3d-live-popup-mask {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.58);
}
.m3d-live-popup-box {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 720px;
	max-width: calc(100vw - 32px);
	transform: translate(-50%, -50%);
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 16px 48px rgba(0,0,0,.28);
	display: flex;
	flex-direction: column;
}
.m3d-live-popup-hd {
	position: relative;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 48px 14px 18px;
	background: linear-gradient(135deg, #e60d1a 0%, #d7000f 55%, #b8000d 100%);
	color: #fff;
}
.m3d-live-popup-title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.m3d-live-popup-title .name {
	color: #fff;
}
.m3d-live-popup-title .badge {
	display: inline-block;
	padding: 0 8px;
	height: 20px;
	line-height: 20px;
	font-size: 12px;
	font-weight: 600;
	color: #d7000f;
	background: #fff;
	border-radius: 4px;
}
.m3d-live-popup-close {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 28px;
	height: 28px;
	line-height: 26px;
	text-align: center;
	border-radius: 50%;
	background: rgba(255,255,255,.22);
	color: #fff !important;
	font-size: 20px;
	text-decoration: none !important;
	cursor: pointer;
}
.m3d-live-popup-close:hover {
	background: rgba(255,255,255,.35);
}
.m3d-live-popup-bd {
	background: #0b0b0b;
}
.m3d-live-stage {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #111;
	overflow: hidden;
}
.m3d-live-stage iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000;
}
.m3d-live-wait {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 24px 20px;
	text-align: center;
	background:
		radial-gradient(circle at 50% 20%, rgba(215,0,15,.28), transparent 55%),
		linear-gradient(180deg, #2a0a0e 0%, #140608 100%);
	color: #fff;
	box-sizing: border-box;
}
.m3d-live-wait.is-hidden {
	display: none !important;
}
.m3d-live-wait .wait-ico {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(255,255,255,.12);
	border: 2px solid rgba(255,255,255,.35);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 6px;
	box-shadow: 0 0 0 10px rgba(215,0,15,.12);
}
.m3d-live-wait .wait-ico::after {
	content: "";
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 12px 0 12px 20px;
	border-color: transparent transparent transparent #fff;
	margin-left: 4px;
}
.m3d-live-wait .wait-label {
	font-size: 13px;
	opacity: .85;
	letter-spacing: .5px;
}
.m3d-live-wait .wait-issue {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: .5px;
}
.m3d-live-wait .wait-issue span {
	color: #ffd0d4;
}
.m3d-live-wait .wait-clock {
	margin-top: 4px;
	font-size: 42px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 2px;
	font-variant-numeric: tabular-nums;
	font-family: "DIN Alternate", Consolas, "Courier New", monospace;
	text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.m3d-live-wait .wait-tip {
	margin-top: 6px;
	font-size: 14px;
	font-weight: 600;
	color: #ffc4c8;
}
.m3d-live-wait .wait-time {
	font-size: 13px;
	opacity: .78;
}
.m3d-live-popup-ft {
	flex: 0 0 auto;
	padding: 10px 16px;
	background: #fff7f7;
	border-top: 1px solid rgba(215,0,15,.1);
	color: #8a4a50;
	font-size: 12px;
	text-align: center;
	line-height: 1.4;
}
