.kol-live-profile,
.kol-live-directory {
	--kol-live-bg: #ffffff;
	--kol-live-panel: #f7f8fb;
	--kol-live-text: #171923;
	--kol-live-muted: #667085;
	--kol-live-border: #e3e7ee;
	--kol-live-accent: #e11d48;
	--kol-live-accent-hover: #be123c;
	--kol-live-focus: #2563eb;
	--kol-live-shadow: 0 18px 44px rgba(16, 24, 40, 0.1);
	color: var(--kol-live-text);
	font-family: inherit;
}

html.dark-mode .kol-live-profile,
html.dark-mode .kol-live-directory,
body.dark-mode .kol-live-profile,
body.dark-mode .kol-live-directory,
body.bp-dark-mode .kol-live-profile,
body.bp-dark-mode .kol-live-directory,
[data-theme="dark"] .kol-live-profile,
[data-theme="dark"] .kol-live-directory {
	--kol-live-bg: #11131a;
	--kol-live-panel: #191c25;
	--kol-live-text: #f7f8fb;
	--kol-live-muted: #a8b0c0;
	--kol-live-border: #303643;
	--kol-live-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.kol-live-profile *,
.kol-live-directory * {
	box-sizing: border-box;
}

.kol-live-profile [hidden],
.kol-live-directory [hidden] {
	display: none !important;
}

.kol-live-profile-action {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 8px;
	padding: 6px 11px;
	border: 1px solid currentColor;
	border-radius: 999px;
	color: inherit;
	font-size: 12px;
	font-weight: 750;
	line-height: 1;
	text-decoration: none !important;
}

.kol-live-profile-action.is-live {
	border-color: #e11d48;
	background: #e11d48;
	color: #fff !important;
}

.kol-live-profile-action.is-live span,
.kol-live-connection span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.22);
}

.kol-live-profile {
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
}

.kol-live-panel,
.kol-live-studio,
.kol-live-player {
	position: relative;
	padding: clamp(22px, 4vw, 40px);
	border: 1px solid var(--kol-live-border);
	border-radius: 20px;
	background: var(--kol-live-bg);
	box-shadow: var(--kol-live-shadow);
}

.kol-live-panel {
	max-width: 720px;
	margin: 20px auto;
	text-align: center;
}

.kol-live-panel h2,
.kol-live-studio h2,
.kol-live-player h2,
.kol-live-directory h1,
.kol-live-directory h2,
.kol-live-directory h3 {
	margin: 0;
	color: var(--kol-live-text);
	line-height: 1.18;
}

.kol-live-panel p,
.kol-live-studio p,
.kol-live-player p,
.kol-live-directory p {
	color: var(--kol-live-muted);
}

.kol-live-panel__icon,
.kol-live-offline__icon {
	display: grid;
	width: 58px;
	height: 58px;
	margin: 0 auto 16px;
	place-items: center;
	border-radius: 50%;
	background: color-mix(in srgb, var(--kol-live-accent) 12%, transparent);
	color: var(--kol-live-accent);
	font-size: 26px;
}

.kol-live-eyebrow {
	display: block;
	margin-bottom: 7px;
	color: var(--kol-live-accent);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.kol-live-panel form {
	display: grid;
	gap: 12px;
	max-width: 540px;
	margin: 24px auto 0;
	text-align: left;
}

.kol-live-profile label {
	display: grid;
	gap: 7px;
	color: var(--kol-live-text);
	font-size: 13px;
	font-weight: 700;
}

.kol-live-profile input,
.kol-live-profile select,
.kol-live-profile textarea {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--kol-live-border);
	border-radius: 10px;
	background: var(--kol-live-panel);
	color: var(--kol-live-text);
	font: inherit;
}

.kol-live-profile textarea {
	resize: vertical;
}

.kol-live-profile input:focus,
.kol-live-profile select:focus,
.kol-live-profile textarea:focus,
.kol-live-button:focus-visible,
.kol-live-card:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--kol-live-focus) 35%, transparent);
	outline-offset: 2px;
}

.kol-live-button {
	display: inline-flex;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	padding: 9px 16px;
	border: 1px solid var(--kol-live-border);
	border-radius: 10px;
	background: var(--kol-live-bg);
	color: var(--kol-live-text);
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	font-weight: 750;
	text-decoration: none;
}

.kol-live-button:hover {
	background: var(--kol-live-panel);
}

.kol-live-button:disabled {
	cursor: wait;
	opacity: 0.62;
}

.kol-live-button--primary {
	border-color: var(--kol-live-accent);
	background: var(--kol-live-accent);
	color: #fff;
}

.kol-live-button--primary:hover {
	background: var(--kol-live-accent-hover);
}

.kol-live-button--danger {
	border-color: #e11d48;
	color: #e11d48;
}

.kol-live-button.is-recording {
	border-color: #e11d48;
	background: #e11d48;
	color: #fff;
}

.kol-live-message {
	min-height: 20px;
	margin: 12px 0 0;
	font-size: 13px;
}

.kol-live-message.is-error {
	color: #dc2626;
}

.kol-live-message.is-success {
	color: #15803d;
}

.kol-live-callout {
	padding: 10px 12px;
	border-left: 3px solid #f59e0b;
	border-radius: 6px;
	background: color-mix(in srgb, #f59e0b 9%, transparent);
	text-align: left;
}

.kol-live-studio > header,
.kol-live-directory__header,
.kol-live-player__details {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

.kol-live-studio__viewers,
.kol-live-directory__count {
	padding: 7px 11px;
	border-radius: 999px;
	background: var(--kol-live-panel);
	color: var(--kol-live-muted);
	font-size: 12px;
	font-weight: 750;
}

.kol-live-form-grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(160px, 1fr);
	gap: 14px;
	margin: 24px 0 16px;
}

.kol-live-studio__preview,
.kol-live-player__stage {
	position: relative;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 16px;
	background: #090a0e;
}

.kol-live-studio__preview video,
.kol-live-player__stage video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kol-live-studio__preview video {
	transform: scaleX(-1);
}

.kol-live-studio__placeholder,
.kol-live-player__poster {
	position: absolute;
	inset: 0;
	display: grid;
	place-content: center;
	justify-items: center;
	gap: 12px;
	color: #fff;
	text-align: center;
}

.kol-live-studio__placeholder span {
	color: #e11d48;
	font-size: 38px;
}

.kol-live-studio__placeholder p {
	color: #cbd5e1;
}

.kol-live-studio__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.kol-live-disclosure {
	margin: 14px 0 0;
	font-size: 12px;
}

.kol-live-player {
	padding: 0;
	overflow: hidden;
}

.kol-live-player__stage {
	border-radius: 0;
}

.kol-live-player__poster::before {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.52);
	content: '';
}

.kol-live-player__poster img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: blur(12px);
	transform: scale(1.06);
}

.kol-live-player__poster button {
	position: relative;
	z-index: 1;
}

.kol-live-player__details {
	padding: 20px 24px;
}

.kol-live-player__details h2 {
	display: inline;
	margin-left: 9px;
	font-size: clamp(19px, 3vw, 26px);
}

.kol-live-player__details p {
	margin: 7px 0 0;
}

.kol-live-player > .kol-live-message {
	padding: 0 24px 16px;
}

.kol-live-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 7px;
	border-radius: 5px;
	background: #e11d48;
	color: #fff;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.08em;
}

.kol-live-audio {
	display: none;
}

.kol-live-directory {
	width: min(1180px, calc(100% - 28px));
	margin: 32px auto;
}

.kol-live-directory__header {
	margin-bottom: 26px;
}

.kol-live-directory h1 {
	font-size: clamp(28px, 5vw, 48px);
	letter-spacing: -0.035em;
}

.kol-live-directory h2 {
	margin: 30px 0 14px;
	font-size: clamp(19px, 3vw, 24px);
}

.kol-live-directory__notice {
	padding: 34px;
	border: 1px dashed var(--kol-live-border);
	border-radius: 16px;
	background: var(--kol-live-panel);
	color: var(--kol-live-muted);
	text-align: center;
}

.kol-live-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.kol-live-grid--featured {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kol-live-card {
	overflow: hidden;
	border: 1px solid var(--kol-live-border);
	border-radius: 15px;
	background: var(--kol-live-bg);
	box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
	color: var(--kol-live-text) !important;
	text-decoration: none !important;
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.kol-live-card:hover {
	box-shadow: var(--kol-live-shadow);
	transform: translateY(-3px);
}

.kol-live-card__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #111;
}

.kol-live-card__media > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kol-live-card__media .kol-live-badge {
	position: absolute;
	top: 10px;
	left: 10px;
}

.kol-live-card__viewers {
	position: absolute;
	right: 10px;
	bottom: 10px;
	padding: 4px 7px;
	border-radius: 5px;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
}

.kol-live-card__body {
	display: flex;
	gap: 11px;
	padding: 14px;
}

.kol-live-card__body > img {
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	border-radius: 50%;
	object-fit: cover;
}

.kol-live-card__body h3 {
	overflow: hidden;
	font-size: 15px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.kol-live-card__body p {
	margin: 4px 0 0;
	font-size: 12px;
}

.kol-live-card__body > div {
	min-width: 0;
}

@media (max-width: 840px) {
	.kol-live-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	.kol-live-form-grid,
	.kol-live-grid,
	.kol-live-grid--featured {
		grid-template-columns: 1fr;
	}

	.kol-live-studio > header,
	.kol-live-directory__header,
	.kol-live-player__details {
		align-items: flex-start;
		flex-direction: column;
	}

	.kol-live-panel,
	.kol-live-studio {
		padding: 20px;
		border-radius: 14px;
	}

	.kol-live-studio__actions .kol-live-button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.kol-live-card {
		transition: none;
	}
}
