.bj66-live {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 0 2rem;
	color: #f0f2f5;
}

.bj66-live__header {
	text-align: center;
	margin-bottom: 1.25rem;
}

.bj66-live__title {
	color: #fff;
	font-family: 'Finger Paint', 'Tomorrow', sans-serif;
	font-size: clamp(1.35rem, 4vw, 2rem);
	margin: 0 0 0.35rem;
}

.bj66-live__title .green,
.bj66-live__title strong {
	color: #00ffac;
}

.bj66-live__subtitle {
	margin: 0;
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.75);
}

.bj66-live__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
	gap: 1rem;
	align-items: stretch;
	width: 100%;
}

.bj66-live__player-col,
.bj66-live__chat-col {
	min-width: 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.bj66-live__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 0.65rem;
}

.bj66-live__tab {
	border: 1px solid rgba(249, 141, 5, 0.45);
	background: rgba(0, 0, 0, 0.45);
	color: #fcd55c;
	font-size: 0.78rem;
	font-weight: 600;
	padding: 0.45rem 0.75rem;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.bj66-live__tab:hover {
	background: rgba(249, 141, 5, 0.2);
	color: #fff;
}

.bj66-live__tab.is-active {
	background: #dc2626;
	border-color: #f87171;
	color: #fff;
}

.bj66-live__video-wrap {
	position: relative;
	background: #000;
	border-radius: 12px;
	overflow: hidden;
	border: 2px solid rgba(249, 141, 5, 0.35);
	aspect-ratio: 16 / 9;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.bj66-live__video {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
	background: #000;
}

.bj66-live__video-status {
	position: absolute;
	left: 0.75rem;
	bottom: 0.75rem;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	font-size: 0.75rem;
	padding: 0.25rem 0.55rem;
	border-radius: 6px;
	pointer-events: none;
}

.bj66-live__unmute {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(249, 141, 5, 0.92);
	color: #111;
	border: none;
	border-radius: 999px;
	padding: 0.65rem 1.25rem;
	font-weight: 700;
	cursor: pointer;
	z-index: 2;
}

.bj66-live__chat-col {
	display: flex;
	flex-direction: column;
	min-height: 320px;
	background: rgba(10, 10, 20, 0.85);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	overflow: hidden;
}

.bj66-live__chat-header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1rem;
	background: rgba(249, 141, 5, 0.15);
	border-bottom: 1px solid rgba(249, 141, 5, 0.25);
	font-weight: 700;
	color: #fcd55c;
	font-size: 0.9rem;
}

.bj66-live__chat-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 8px #22c55e;
	animation: bj66-live-pulse 1.5s infinite;
}

@keyframes bj66-live-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}

.bj66-live__chat-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.bj66-live__chat-iframe,
.bj66-live__tawk {
	width: 100%;
	flex: 1;
	min-height: 280px;
	border: 0;
}

.bj66-live__chat-messages {
	flex: 1;
	overflow-y: auto;
	padding: 0.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	min-height: 200px;
	max-height: 420px;
}

.bj66-live__chat-msg {
	font-size: 0.82rem;
	line-height: 1.4;
	word-break: break-word;
}

.bj66-live__chat-msg time {
	color: rgba(255, 255, 255, 0.45);
	font-size: 0.7rem;
	margin-right: 0.35rem;
}

.bj66-live__chat-msg strong {
	color: #4db8ff;
}

.bj66-live__chat-form {
	padding: 0.65rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.bj66-live__chat-form input {
	width: 100%;
	box-sizing: border-box;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 8px;
	color: #fff;
	padding: 0.5rem 0.65rem;
	font-size: 0.85rem;
}

.bj66-live__chat-form input::placeholder {
	color: rgba(255, 255, 255, 0.45);
}

.bj66-live__chat-input-row {
	display: flex;
	gap: 0.4rem;
}

.bj66-live__chat-input-row input {
	flex: 1;
}

.bj66-live__chat-form button {
	background: #f98d05;
	color: #111;
	border: none;
	border-radius: 8px;
	padding: 0 1rem;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
}

.bj66-live__chat-form button:hover {
	background: #fcd55c;
}

/* hm_frame3 wrapper */
.hm_frame3 .bj66-live {
	padding-top: 0.5rem;
}

.hm_frame3 .frm-cntnr {
	overflow: hidden;
}

@media (min-width: 1024px) {
	.hm_frame3 > .frm-cntnr.width--80 {
		width: 92%;
		max-width: 1420px;
	}

	.bj66-live {
		max-width: 1380px;
	}

	.bj66-live__grid {
		grid-template-columns: minmax(0, 1.72fr) minmax(300px, 1fr);
		gap: 1.15rem;
	}
}

@media (max-width: 1024px) {
	.bj66-live__grid {
		grid-template-columns: 1fr;
		gap: 0.75rem;
		width: 100%;
	}

	.bj66-live {
		width: 100%;
		max-width: 100%;
		margin-left: auto;
		margin-right: auto;
		padding: 0 0 1.25rem;
		box-sizing: border-box;
	}

	.bj66-live__header {
		margin-bottom: 0.85rem;
		padding: 0;
	}

	.bj66-live__title {
		font-size: clamp(1.1rem, 5vw, 1.5rem);
		line-height: 1.35;
	}

	.bj66-live__subtitle {
		font-size: 0.82rem;
	}

	.bj66-live__tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 0.25rem;
		margin-left: 0;
		margin-right: 0;
		width: 100%;
	}

	.bj66-live__tabs::-webkit-scrollbar {
		display: none;
	}

	.bj66-live__tab {
		flex: 0 0 auto;
		font-size: 0.72rem;
		padding: 0.4rem 0.6rem;
		white-space: nowrap;
	}

	.bj66-live__video-wrap {
		border-radius: 10px;
		border-width: 1px;
		width: 100%;
		max-width: 100%;
	}

	.bj66-live__video {
		width: 100% !important;
		max-width: 100%;
		height: auto;
	}

	.bj66-live__video-status {
		left: 0.5rem;
		bottom: 0.5rem;
		font-size: 0.68rem;
		max-width: calc(100% - 1rem);
	}

	.bj66-live__unmute {
		font-size: 0.85rem;
		padding: 0.55rem 1rem;
	}

	.bj66-live__chat-col {
		min-height: 300px;
		width: 100%;
	}

	.bj66-live__chat-header {
		font-size: 0.82rem;
		padding: 0.6rem 0.75rem;
	}

	.bj66-live__chat-messages {
		max-height: 220px;
		min-height: 160px;
		padding: 0.55rem;
	}

	.bj66-live__chat-form {
		padding: 0.5rem;
	}

	.bj66-live__chat-form input {
		font-size: 16px;
		padding: 0.45rem 0.55rem;
	}

	.bj66-live__chat-input-row {
		flex-wrap: nowrap;
	}

	.bj66-live__chat-input-row input {
		min-width: 0;
		flex: 1 1 auto;
	}

	.bj66-live__chat-form button {
		flex: 0 0 auto;
		min-height: 40px;
		padding: 0 0.85rem;
		font-size: 0.85rem;
	}
}
