/* PC 福彩图库 — match screenshot 1:1 */
body {
	background: #ececec !important;
}
#app.m3d-pc-gallery {
	min-width: 1170px;
	background: #ececec;
	height: auto !important;
	border-bottom: none !important;
}
.m3d-pc-gallery-main {
	width: 1180px;
	max-width: calc(100% - 40px);
	margin: 18px auto 40px;
	box-sizing: border-box;
}

/* filter bar — grey rounded strip */
.m3d-gallery-filters {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 10px;
	padding: 12px 14px;
	background: #e8e8e8;
	border-radius: 16px;
	margin-bottom: 16px;
	box-sizing: border-box;
}
.m3d-gallery-filters .f-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 36px;
	padding: 0 14px;
	border-radius: 999px;
	background: transparent;
	color: #555 !important;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none !important;
	cursor: pointer;
	user-select: none;
	transition: color .15s, background .15s, box-shadow .15s;
}
.m3d-gallery-filters .f-item.is-letter {
	width: 36px;
	height: 36px;
	padding: 0;
	background: #f7f7f7;
	color: #666 !important;
	font-weight: 700;
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
}
.m3d-gallery-filters .f-item:hover {
	color: #2f7cf6 !important;
}
.m3d-gallery-filters .f-item.is-on {
	background: #fff;
	color: #2f7cf6 !important;
	box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.m3d-gallery-filters .f-item.is-letter.is-on {
	background: #fff;
	color: #2f7cf6 !important;
}

/* 4-column card grid */
.m3d-gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px 14px;
}
.m3d-gallery-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	background: #fff;
	border-radius: 10px;
	box-sizing: border-box;
	text-decoration: none !important;
	color: inherit;
	cursor: pointer;
	transition: box-shadow .15s, transform .15s;
	min-height: 84px;
}
.m3d-gallery-card:hover {
	box-shadow: 0 4px 14px rgba(0,0,0,.07);
	transform: translateY(-1px);
}
.m3d-gallery-card.is-hide {
	display: none !important;
}
.m3d-gallery-thumb {
	flex: 0 0 60px;
	width: 60px;
	height: 60px;
	border-radius: 6px;
	overflow: hidden;
	background: #f0f0f0;
	position: relative;
}
.m3d-gallery-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.m3d-gallery-meta {
	flex: 1 1 auto;
	min-width: 0;
}
.m3d-gallery-title {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 15px;
	font-weight: 700;
	color: #222;
	line-height: 1.35;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.m3d-gallery-title .zheng {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #2f7cf6;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}
.m3d-gallery-issue {
	margin-top: 6px;
	font-size: 13px;
	color: #999;
	line-height: 1.3;
}
.m3d-gallery-empty {
	grid-column: 1 / -1;
	padding: 48px 20px;
	text-align: center;
	color: #999;
	font-size: 15px;
	background: #fff;
	border-radius: 10px;
}

#app.m3d-pc-gallery footer .bottom .son {
	border-top: 4px solid #d7000f !important;
}

/* embed: fullscreen player only */
body.m3d-live-embed {
	background: #000 !important;
	margin: 0;
}
body.m3d-live-embed .appHeader,
body.m3d-live-embed .m3d-pc-games,
body.m3d-live-embed .m3d-pc-gallery-main,
body.m3d-live-embed footer,
body.m3d-live-embed .currentVideo,
body.m3d-live-embed .m3d-live-popup {
	display: none !important;
}
body.m3d-live-embed .m3d-live-embed-stage {
	display: block !important;
	width: 100%;
	height: 100vh;
	background: #000;
}
body.m3d-live-embed .m3d-live-embed-stage iframe {
	width: 100%;
	height: 100%;
	border: 0;
}
.m3d-live-embed-stage {
	display: none;
}

/* image zoom lightbox */
.m3d-img-zoom {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 10050;
	background: rgba(0,0,0,.82);
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
	cursor: zoom-out;
}
.m3d-img-zoom.is-on {
	display: flex;
}
.m3d-img-zoom img {
	max-width: min(92vw, 960px);
	max-height: 90vh;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 12px 40px rgba(0,0,0,.45);
	background: #fff;
	cursor: default;
}
.m3d-img-zoom .zoom-close {
	position: absolute;
	top: 16px;
	right: 20px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(255,255,255,.95);
	color: #333;
	font-size: 28px;
	line-height: 40px;
	cursor: pointer;
}
.m3d-gallery-card,
.m3d-gallery-thumb {
	cursor: zoom-in;
}
