/* ── Modlochi Wheel Shortcode — wheel.css ───────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@400;500;600;700;800&display=swap');

/* ── RESET inside wrap ──────────────────────────────────────────────────── */
.modlochi-wheel-wrap *,
.modlochi-wheel-wrap *::before,
.modlochi-wheel-wrap *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* ── CONTAINER ──────────────────────────────────────────────────────────── */
.modlochi-wheel-wrap {
	position: relative;
	background: #070711;
	color: #fff;
	font-family: 'DM Sans', sans-serif;
	overflow: hidden;
	min-height: 580px;
	border-radius: 12px;
	user-select: none;
	-webkit-user-select: none;
	margin: 40px 0;
	padding: 90px;
}

/* ── SECTION LABEL ──────────────────────────────────────────────────────── */
.modlochi-wheel-wrap .mw-section-label {
	position: absolute;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
	z-index: 10;
	pointer-events: none;
	white-space: nowrap;
}
.modlochi-wheel-wrap .mw-eyebrow {
	font-family: 'DM Sans', sans-serif;
	font-size: 10px;
	letter-spacing: .35em;
	color: #00e676;
	opacity: .5;
	text-transform: uppercase;
	margin-bottom: 6px;
}
.modlochi-wheel-wrap .mw-title {
	font-family: 'Bebas Neue', sans-serif;
	font-size: clamp(28px, 4vw, 46px);
	letter-spacing: .08em;
	line-height: 1;
	color: #fff;
}
.modlochi-wheel-wrap .mw-title span { color: #00e676; }

/* ── SCENE ──────────────────────────────────────────────────────────────── */
.modlochi-wheel-wrap .mw-scene {
	perspective: 2200px;
	perspective-origin: 50% 46%;
	width: 100%;
	height: 580px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: radial-gradient(ellipse at 50% 60%, #0c1020 0%, #070711 72%);
}

.modlochi-wheel-wrap .mw-wheel {
	position: relative;
	width: 0;
	height: 0;
	transform-style: preserve-3d;
	will-change: transform;
}

/* ── CARD ────────────────────────────────────────────────────────────────── */
.modlochi-wheel-wrap .mw-card {
	position: absolute;
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
	background: #0c0c18;
	border: 1px solid rgba(255,255,255,.06);
	box-shadow:
		-8px 10px 28px rgba(0,0,0,.75),
		inset 0 0 0 1px rgba(255,255,255,.04);
	transform-style: preserve-3d;
	opacity: 0;
	transition: box-shadow .3s ease, border-color .3s ease, filter .3s ease;
	display: flex;
	flex-direction: column;
}
.modlochi-wheel-wrap .mw-card:hover {
	border-color: rgba(0,230,118,.35);
	box-shadow:
		-14px 18px 52px rgba(0,0,0,.9),
		0 0 0 1px rgba(0,230,118,.18),
		0 0 28px rgba(0,230,118,.08);
	filter: brightness(1.12);
}
.modlochi-wheel-wrap .mw-card.is-live {
	border-color: rgba(0,230,118,.22);
}

/* card thumbnail */
.modlochi-wheel-wrap .mw-card-thumb {
	flex: 1;
	background: #111120;
	background-size: cover;
	background-position: center top;
	position: relative;
	overflow: hidden;
	min-height: 0;
}
.modlochi-wheel-wrap .mw-card-thumb::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, transparent 30%, rgba(7,7,17,.95) 100%);
}

/* LIVE / OFFLINE badge */
.modlochi-wheel-wrap .mw-card-live-badge {
	position: absolute;
	top: 9px;
	left: 9px;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 5px;
	font-family: 'DM Sans', sans-serif;
	font-size: 8.5px;
	font-weight: 800;
	letter-spacing: .08em;
	color: #000;
	background: #00e676;
	padding: 3px 7px;
	border-radius: 4px;
}
.modlochi-wheel-wrap .mw-card-live-badge.offline {
	background: rgba(255,255,255,.07);
	color: #444;
}

/* pulsing dot */
.modlochi-wheel-wrap .mw-live-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #000;
	flex-shrink: 0;
	animation: mw-pulse 1.6s ease-in-out infinite;
}

/* avatar on card */
.modlochi-wheel-wrap .mw-card-av {
	position: absolute;
	bottom: 48px;
	left: 50%;
	transform: translateX(-50%);
	width: 50px;
	height: 50px;
	border-radius: 50%;
	border: 2px solid #00e676;
	background-size: cover;
	background-position: center;
	z-index: 3;
	box-shadow: 0 0 14px rgba(0,230,118,.3);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Bebas Neue', sans-serif;
	font-size: 18px;
	color: #00e676;
	background-color: #0c1a14;
	flex-shrink: 0;
}
.modlochi-wheel-wrap .mw-card-av.offline {
	border-color: #1e1e1e;
	box-shadow: none;
	color: #333;
	background-color: #0a0a12;
}

/* card footer */
.modlochi-wheel-wrap .mw-card-foot {
	padding: 5px 9px 9px;
	text-align: center;
	background: #0c0c18;
	flex-shrink: 0;
	height: 44px;
}
.modlochi-wheel-wrap .mw-card-name {
	font-family: 'Bebas Neue', sans-serif;
	font-size: 13px;
	letter-spacing: .06em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.1;
	margin-bottom: 3px;
	color: #fff;
}
.modlochi-wheel-wrap .mw-card-viewers {
	font-family: 'DM Sans', sans-serif;
	font-size: 10px;
	font-weight: 700;
	color: #00e676;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.modlochi-wheel-wrap .mw-card-viewers.offline { color: #333; }

/* ── SIDE MENU ───────────────────────────────────────────────────────────── */
.modlochi-wheel-wrap .mw-side-menu {
	position: absolute;
	right: 28px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	gap: 5px;
	z-index: 50;
	text-align: right;
	max-height: 65%;
	overflow-y: auto;
	padding-right: 12px;
	scrollbar-width: none;
	-webkit-mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
	mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
}
.modlochi-wheel-wrap .mw-side-menu::-webkit-scrollbar { display: none; }

.modlochi-wheel-wrap .mw-menu-item {
	font-family: 'DM Sans', sans-serif;
	font-size: 9px;
	text-transform: uppercase;
	letter-spacing: .12em;
	opacity: .12;
	cursor: pointer;
	transition: opacity .25s, transform .25s, color .25s;
	white-space: nowrap;
	font-weight: 700;
	color: #fff;
	line-height: 1.8;
}
.modlochi-wheel-wrap .mw-menu-item:hover { opacity: .4; }
.modlochi-wheel-wrap .mw-menu-item.active {
	opacity: 1;
	transform: translateX(-10px);
	color: #00e676;
}
.modlochi-wheel-wrap .mw-menu-dot {
	display: inline-block;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #00e676;
	vertical-align: middle;
	margin-right: 6px;
	opacity: 0;
	transition: opacity .25s;
}
.modlochi-wheel-wrap .mw-menu-item.active .mw-menu-dot { opacity: 1; }

/* ── BOTTOM HINTS ────────────────────────────────────────────────────────── */
.modlochi-wheel-wrap .mw-hint {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	font-family: 'DM Sans', sans-serif;
	font-size: 8.5px;
	text-transform: uppercase;
	letter-spacing: .45em;
	opacity: .15;
	pointer-events: none;
	white-space: nowrap;
}

/* ── LIVE COUNT BADGE ────────────────────────────────────────────────────── */
.modlochi-wheel-wrap .mw-count-badge {
	position: absolute;
	bottom: 20px;
	left: 16px;
	z-index: 50;
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.modlochi-wheel-wrap .mw-count-live {
	font-family: 'Bebas Neue', sans-serif;
	font-size: 26px;
	line-height: 1;
	color: #00e676;
	text-shadow: 0 0 20px rgba(0,230,118,.35);
}
.modlochi-wheel-wrap .mw-count-lbl {
	font-family: 'DM Sans', sans-serif;
	font-size: 7.5px;
	color: #2a2a2a;
	letter-spacing: .2em;
	text-transform: uppercase;
}

/* ── LOADING STATE ───────────────────────────────────────────────────────── */
.modlochi-wheel-wrap .mw-loader {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 580px;
	flex-direction: column;
	gap: 14px;
}
.modlochi-wheel-wrap .mw-spinner {
	width: 22px;
	height: 22px;
	border: 2px solid rgba(0,230,118,.15);
	border-top-color: #00e676;
	border-radius: 50%;
	animation: mw-spin .75s linear infinite;
}
.modlochi-wheel-wrap .mw-loader-lbl {
	font-family: 'DM Sans', sans-serif;
	font-size: 9px;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: #2a2a2a;
}

/* hidden data container */
#mw-loading { display: none !important; }

/* ── KEYFRAMES ───────────────────────────────────────────────────────────── */
@keyframes mw-pulse {
	0%, 100% { opacity: 1; }
	50%       { opacity: .25; }
}
@keyframes mw-spin {
	to { transform: rotate(360deg); }
}
@keyframes mw-fade-up {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ── DETAIL OVERLAY ─────────────────────────────────────────────────────── */
/* Fixed — renders over the entire viewport regardless of container */
.mw-overlay {
	position: fixed;
	inset: 0;
	background: rgba(7,7,17,.96);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity .4s ease;
	font-family: 'DM Sans', sans-serif;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	padding: 1rem;
	overflow-y: auto;
}
.mw-overlay.open {
	opacity: 1;
	pointer-events: auto;
}

.mw-detail {
	display: flex;
	width: 100%;
	max-width: 860px;
	padding: 2.5rem 3rem;
	gap: 4rem;
	align-items: center;
	margin: auto;
}

/* left column */
.mw-detail-left {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	transform: scale(.92) translateY(28px);
	transition: transform .65s cubic-bezier(0.16, 1, 0.3, 1);
}
.mw-overlay.open .mw-detail-left {
	transform: scale(1) translateY(0);
}

.mw-detail-av {
	width: 155px;
	height: 155px;
	border-radius: 50%;
	border: 3px solid #00e676;
	background-size: cover;
	background-position: center;
	box-shadow:
		0 0 0 6px rgba(0,230,118,.07),
		0 0 40px rgba(0,230,118,.18);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Bebas Neue', sans-serif;
	font-size: 56px;
	color: #00e676;
	background-color: #0c1a14;
	overflow: hidden;
	flex-shrink: 0;
}
.mw-detail-av.offline {
	border-color: #1e1e1e;
	box-shadow: none;
	color: #2a2a2a;
	background-color: #0a0a12;
}

.mw-detail-status {
	display: flex;
	align-items: center;
	gap: 7px;
	font-family: 'DM Sans', sans-serif;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #00e676;
}
.mw-detail-status.offline { color: #333; }
.mw-detail-status-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #00e676;
	flex-shrink: 0;
	animation: mw-pulse 1.6s ease-in-out infinite;
}
.mw-detail-status.offline .mw-detail-status-dot {
	background: #1e1e1e;
	animation: none;
}

/* right column */
.mw-detail-right {
	flex: 1;
	min-width: 0;
	transform: translateY(22px);
	opacity: 0;
	transition:
		transform .65s .07s cubic-bezier(0.16, 1, 0.3, 1),
		opacity .5s .07s ease;
}
.mw-overlay.open .mw-detail-right {
	transform: translateY(0);
	opacity: 1;
}

.mw-detail-eyebrow {
	font-family: 'DM Sans', sans-serif;
	font-size: 9px;
	letter-spacing: .3em;
	color: #00e676;
	opacity: .4;
	text-transform: uppercase;
	margin-bottom: 8px;
}
.mw-detail-name {
	font-family: 'Bebas Neue', sans-serif;
	font-size: clamp(36px, 5vw, 58px);
	letter-spacing: .04em;
	line-height: .95;
	margin-bottom: 6px;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.mw-detail-handle {
	font-family: 'DM Sans', sans-serif;
	font-size: 12px;
	color: #2a2a2a;
	margin-bottom: 16px;
	letter-spacing: .04em;
}
.mw-detail-stream-title {
	font-family: 'DM Sans', sans-serif;
	font-size: 12px;
	color: #555;
	font-style: italic;
	margin-bottom: 12px;
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.mw-detail-bio {
	font-family: 'DM Sans', sans-serif;
	font-size: 13px;
	color: #4a4a5a;
	line-height: 1.65;
	margin-bottom: 22px;
}

/* stats grid */
.mw-detail-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin-bottom: 26px;
	padding: 16px;
	background: rgba(255,255,255,.02);
	border: 1px solid rgba(255,255,255,.05);
	border-radius: 10px;
}
.mw-stat-val {
	font-family: 'Bebas Neue', sans-serif;
	font-size: 26px;
	line-height: 1;
	color: #fff;
}
.mw-stat-val.live-val {
	color: #00e676;
	text-shadow: 0 0 16px rgba(0,230,118,.3);
}
.mw-stat-lbl {
	font-family: 'DM Sans', sans-serif;
	font-size: 8px;
	color: #2a2a2a;
	letter-spacing: .14em;
	text-transform: uppercase;
	margin-top: 3px;
}

/* action buttons */
.mw-detail-btns {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.mw-watch-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 12px 26px;
	background: #00e676;
	color: #000 !important;
	border-radius: 8px;
	text-decoration: none !important;
	font-family: 'DM Sans', sans-serif;
	font-weight: 800;
	font-size: 12px;
	letter-spacing: .07em;
	border: none;
	cursor: pointer;
	transition: background .18s, box-shadow .18s;
	box-shadow: 0 4px 20px rgba(0,230,118,.25);
}
.mw-watch-btn:hover {
	background: #00ff88;
	box-shadow: 0 6px 28px rgba(0,230,118,.4);
	color: #000 !important;
}
.mw-close-btn {
	padding: 12px 22px;
	background: transparent;
	color: #333;
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 8px;
	font-family: 'DM Sans', sans-serif;
	font-size: 10px;
	letter-spacing: .18em;
	text-transform: uppercase;
	cursor: pointer;
	transition: color .2s, border-color .2s;
}
.mw-close-btn:hover {
	color: #fff;
	border-color: rgba(255,255,255,.18);
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */

/* Large tablet */
@media (max-width: 1100px) {
	.modlochi-wheel-wrap .mw-side-menu { right: 16px; }
	.modlochi-wheel-wrap .mw-count-badge { left: 16px; }
}

/* Tablet — hide side menu, shrink scene */
@media (max-width: 820px) {
	.modlochi-wheel-wrap {
		min-height: 480px;
		margin: 28px 0;
		padding: 60px;
	}
	.modlochi-wheel-wrap .mw-scene {
		height: 480px;
	}
	.modlochi-wheel-wrap .mw-loader {
		height: 480px;
	}
	.modlochi-wheel-wrap .mw-side-menu {
		display: none;
	}
	.modlochi-wheel-wrap .mw-hint {
		letter-spacing: .2em;
	}
	/* detail overlay — stack vertically */
	.mw-detail {
		flex-direction: column;
		gap: 1.5rem;
		padding: 2rem 1.5rem;
		align-items: flex-start;
	}
	.mw-detail-left {
		flex-direction: row;
		align-items: center;
		gap: 20px;
		transform: translateY(28px) !important;
	}
	.mw-overlay.open .mw-detail-left {
		transform: translateY(0) !important;
	}
	.mw-detail-av {
		width: 90px;
		height: 90px;
		font-size: 32px;
	}
	.mw-detail-name {
		font-size: 36px;
	}
}

/* Mobile */
@media (max-width: 540px) {
	.modlochi-wheel-wrap {
		min-height: 400px;
		border-radius: 8px;
		margin: 20px 0;
		padding: 40px;
	}
	.modlochi-wheel-wrap .mw-scene {
		height: 400px;
	}
	.modlochi-wheel-wrap .mw-loader {
		height: 400px;
	}
	.modlochi-wheel-wrap .mw-section-label {
		top: 18px;
	}
	.modlochi-wheel-wrap .mw-count-badge {
		display: none;
	}
	.modlochi-wheel-wrap .mw-hint {
		font-size: 7px;
		letter-spacing: .15em;
		bottom: 12px;
	}
	.mw-detail {
		padding: 1.5rem 1rem;
	}
	.mw-detail-stats {
		grid-template-columns: repeat(2, 1fr);
	}
	.mw-detail-btns {
		flex-direction: column;
	}
	.mw-watch-btn,
	.mw-close-btn {
		width: 100%;
		justify-content: center;
		text-align: center;
	}
}

/* Very small phones */
@media (max-width: 380px) {
	.modlochi-wheel-wrap {
		min-height: 340px;
		padding: 20px;
	}
	.modlochi-wheel-wrap .mw-scene {
		height: 340px;
	}
	.modlochi-wheel-wrap .mw-loader {
		height: 340px;
	}
	.mw-detail-av {
		width: 70px;
		height: 70px;
		font-size: 26px;
	}
}
