.kvs-showcase,
.kvs-showcase * {
	box-sizing: border-box;
}

.kvs-showcase {
	--kvs-bg: #050912;
	--kvs-panel: #0b1524;
	--kvs-panel-soft: #0d1b2d;
	--kvs-border: #1d334f;
	--kvs-cyan: #37c8ff;
	--kvs-green: #55eea2;
	--kvs-muted: #91a6c3;
	background:
		radial-gradient(circle at 10% 0, rgba(30, 104, 154, .13), transparent 31rem),
		var(--kvs-bg);
	border: 1px solid #14263b;
	border-radius: 18px;
	color: #eef5ff;
	font-family: Inter, "Segoe UI", Arial, sans-serif;
	min-width: 0;
	overflow: hidden;
	padding: clamp(16px, 2.5vw, 28px);
	width: 100%;
}

.kvs-header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 20px;
}

.kvs-heading-group {
	min-width: 0;
}

.kvs-eyebrow {
	color: #6eb7e8;
	display: block;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .14em;
	margin-bottom: 4px;
}

.kvs-header h2 {
	color: #fff;
	font-size: clamp(23px, 3vw, 32px);
	font-weight: 850;
	letter-spacing: -.03em;
	line-height: 1.08;
	margin: 0;
}

.kvs-count {
	color: var(--kvs-muted);
	font-size: 12px;
	margin: 6px 0 0;
}

.kvs-refresh {
	align-items: center;
	background: #101d30;
	border: 1px solid #29415f;
	border-radius: 10px;
	color: #dbeaff;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 12px;
	font-weight: 800;
	gap: 7px;
	justify-content: center;
	min-height: 38px;
	padding: 8px 13px;
	transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.kvs-refresh:hover {
	background: #182943;
	border-color: #4b7fbe;
	transform: translateY(-1px);
}

.kvs-refresh:disabled {
	cursor: wait;
	opacity: .65;
	transform: none;
}

.kvs-refresh svg {
	fill: none;
	height: 15px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
	width: 15px;
}

.kvs-refresh.is-loading svg {
	animation: kvs-spin .8s linear infinite;
}

.kvs-grid {
	display: grid;
	gap: 15px;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 285px), 370px));
	justify-content: start;
	min-width: 0;
	width: 100%;
}

.kvs-card {
	background: var(--kvs-panel);
	border: 1px solid var(--kvs-border);
	border-radius: 14px;
	box-shadow: 0 12px 34px rgba(0, 0, 0, .2);
	min-width: 0;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.kvs-card-badges {
	display: flex;
	gap: 7px;
	left: 9px;
	pointer-events: none;
	position: absolute;
	top: 9px;
	z-index: 2;
}

.kvs-live-badge,
.kvs-mature-badge {
	align-items: center;
	backdrop-filter: blur(7px);
	border-radius: 7px;
	display: inline-flex;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: .04em;
	line-height: 1;
	min-height: 23px;
	padding: 5px 8px;
}

.kvs-live-badge {
	background: rgba(237, 49, 87, .94);
	color: #fff;
	gap: 5px;
}

.kvs-live-badge i {
	background: #fff;
	border-radius: 50%;
	height: 5px;
	width: 5px;
}

.kvs-mature-badge {
	background: rgba(36, 29, 42, .9);
	border: 1px solid rgba(255, 255, 255, .18);
	color: #fff;
}

.kvs-player-shell {
	aspect-ratio: 16 / 9;
	background-color: #010307;
	background-position: center;
	background-size: cover;
	border-bottom: 1px solid #15263a;
	contain: layout paint;
	line-height: 0;
	max-width: 100%;
	min-height: 0;
	overflow: hidden !important;
	position: relative;
	scrollbar-width: none;
	width: 100%;
}

.kvs-player-shell::-webkit-scrollbar,
.kvs-player::-webkit-scrollbar {
	display: none !important;
	height: 0 !important;
	width: 0 !important;
}

.kvs-player {
	background: #010307;
	border: 0 !important;
	display: block;
	height: 100% !important;
	inset: 0;
	margin: 0 !important;
	max-height: none !important;
	max-width: none !important;
	overflow: hidden !important;
	padding: 0 !important;
	position: absolute;
	width: 100% !important;
}

.kvs-card-body {
	display: grid;
	gap: 10px;
	padding: 13px;
}

.kvs-identity {
	align-items: center;
	display: flex;
	gap: 10px;
	min-width: 0;
}

.kvs-avatar {
	align-items: center;
	background: #133150;
	border: 1px solid #2c6599;
	border-radius: 50%;
	color: var(--kvs-green);
	display: flex;
	flex: 0 0 38px;
	font-size: 11px;
	font-weight: 900;
	height: 38px;
	justify-content: center;
	overflow: hidden;
	width: 38px;
}

.kvs-avatar img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.kvs-identity-copy {
	min-width: 0;
}

.kvs-identity-copy h3,
.kvs-identity-copy p {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.kvs-identity-copy h3 {
	color: #f8fbff;
	font-size: 14px;
	font-weight: 850;
	line-height: 1.2;
	margin: 0 0 3px;
}

.kvs-identity-copy p {
	color: #a8bad0;
	font-size: 11px;
	line-height: 1.35;
	margin: 0;
}

.kvs-meta-row {
	align-items: center;
	display: flex;
	gap: 10px;
	justify-content: space-between;
	min-width: 0;
}

.kvs-category {
	color: #95aac4;
	font-size: 11px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.kvs-viewers {
	align-items: center;
	color: #a8c2db;
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 10px;
	gap: 5px;
}

.kvs-viewers svg {
	fill: none;
	height: 13px;
	stroke: currentColor;
	stroke-width: 1.8;
	width: 13px;
}

.kvs-uptime {
	color: #7fd0ff;
	font-size: 10px;
	font-weight: 800;
	margin: -2px 0 0;
}

.kvs-playing {
	align-items: center;
	color: var(--kvs-green);
	display: flex;
	font-size: 9px;
	font-weight: 900;
	gap: 6px;
	letter-spacing: .04em;
}

.kvs-playing i {
	animation: kvs-pulse 1.6s ease-in-out infinite;
	background: var(--kvs-green);
	border-radius: 50%;
	box-shadow: 0 0 10px rgba(85, 238, 162, .65);
	height: 6px;
	width: 6px;
}

.kvs-open-channel {
	align-items: center;
	background: #10233a;
	border: 1px solid #2a4f75;
	border-radius: 9px;
	color: #e5f1ff !important;
	display: flex;
	font-size: 10px;
	font-weight: 800;
	gap: 7px;
	justify-content: center;
	min-height: 34px;
	padding: 7px 10px;
	text-decoration: none !important;
	transition: background .18s ease, border-color .18s ease;
}

.kvs-open-channel:hover {
	background: #17304e;
	border-color: #3c75a9;
	color: #fff !important;
}

.kvs-open-channel svg {
	fill: none;
	height: 13px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
	width: 13px;
}

.kvs-empty {
	align-items: center;
	background: rgba(11, 21, 36, .68);
	border: 1px dashed #29415f;
	border-radius: 14px;
	color: #dce9f9;
	display: flex;
	flex-direction: column;
	gap: 7px;
	justify-content: center;
	min-height: 190px;
	padding: 30px;
	text-align: center;
}

.kvs-empty[hidden] {
	display: none !important;
}

.kvs-empty-icon {
	align-items: center;
	background: #10243a;
	border: 1px solid #294b6e;
	border-radius: 50%;
	color: #58cef9;
	display: flex;
	height: 48px;
	justify-content: center;
	margin-bottom: 4px;
	width: 48px;
}

.kvs-empty-icon svg {
	fill: none;
	height: 22px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
	width: 22px;
}

.kvs-empty strong {
	font-size: 14px;
}

.kvs-empty small,
.kvs-status,
.kvs-noscript {
	color: var(--kvs-muted);
	font-size: 11px;
}

.kvs-status {
	margin: 10px 0 0;
	min-height: 1em;
	text-align: right;
}

.kvs-setup-warning,
.kvs-noscript {
	background: #2a1d13;
	border: 1px solid #714827;
	border-radius: 9px;
	color: #ffd7a3;
	font-size: 12px;
	line-height: 1.5;
	margin-top: 12px;
	padding: 10px 12px;
}

.kvs-setup-warning a {
	color: #fff !important;
	font-weight: 800;
	margin-left: 5px;
}

@keyframes kvs-spin {
	to { transform: rotate(360deg); }
}

@keyframes kvs-pulse {
	0%, 100% { opacity: .45; transform: scale(.85); }
	50% { opacity: 1; transform: scale(1.08); }
}

@media (max-width: 620px) {
	.kvs-showcase {
		border-radius: 13px;
		padding: 13px;
	}

	.kvs-header {
		align-items: flex-start;
	}

	.kvs-refresh span {
		display: none;
	}

	.kvs-refresh {
		min-width: 38px;
		padding: 8px;
	}

	.kvs-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.kvs-card {
		max-width: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.kvs-showcase *,
	.kvs-showcase *::before,
	.kvs-showcase *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}
