.kbtv-strimm-stations {
	width: 100%;
}

.kbtv-strimm-stations .kbtv-channel-list {
	position: relative;
}

.kbtv-strimm-stations .kbtv-channel-list.is-loading {
	min-height: 312px;
	display: grid;
	place-items: center;
}

.kbtv-channel-loading,
.kbtv-channel-empty {
	margin: 0;
	width: 100%;
	padding: 18px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.045);
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.92rem;
	line-height: 1.45;
	text-align: center;
}

.kbtv-strimm-stations .kbtv-channel-thumb.has-image {
	background-position: center;
	background-size: cover;
	color: #ffffff;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
	box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.22);
}

.kbtv-strimm-stations .kbtv-channel-item {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
}

.kbtv-strimm-stations .kbtv-channel-item > span:last-child {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
}

.kbtv-strimm-stations .kbtv-channel-item strong,
.kbtv-strimm-stations .kbtv-channel-item small {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	max-width: 100%;
	white-space: normal;
	overflow: hidden;
	overflow-wrap: anywhere;
	word-break: normal;
	line-height: 1.22;
}

.kbtv-strimm-stations .kbtv-channel-item strong {
	-webkit-line-clamp: 2;
}

.kbtv-strimm-stations .kbtv-channel-item small {
	-webkit-line-clamp: 2;
}

.kbtv-tv-screen--selector {
	position: relative;
	min-height: 430px;
	display: grid;
	place-items: center;
	padding: clamp(22px, 4vw, 48px);
	overflow: hidden;
	background: #02040a;
}

.kbtv-tv-screen--selector.is-playing::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(90deg, rgba(2, 4, 10, 0.72), rgba(2, 4, 10, 0.18) 58%, rgba(2, 4, 10, 0.58)),
		linear-gradient(0deg, rgba(2, 4, 10, 0.62), rgba(2, 4, 10, 0.08) 48%, rgba(2, 4, 10, 0.5));
	pointer-events: none;
}

.kbtv-tv-screen-preview-frame {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	border: 0;
	opacity: 0.82;
	pointer-events: none;
	transform: scale(1.01);
}

.kbtv-tv-screen-prompt {
	position: relative;
	z-index: 2;
	max-width: 540px;
	text-align: center;
	color: #ffffff;
}

.kbtv-tv-screen-prompt--overlay {
	padding: clamp(18px, 4vw, 34px);
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 18px;
	background: rgba(2, 4, 10, 0.42);
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
	backdrop-filter: blur(6px);
}

.kbtv-tv-screen-prompt span {
	display: inline-flex;
	margin-bottom: 12px;
	padding: 6px 12px;
	border: 1px solid rgba(45, 212, 191, 0.45);
	border-radius: 999px;
	background: rgba(45, 212, 191, 0.1);
	color: #8ff7e8;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

.kbtv-tv-screen-prompt strong {
	display: block;
	font-size: clamp(1.8rem, 4vw, 3.4rem);
	line-height: 1.02;
}

.kbtv-tv-screen-prompt small {
	display: block;
	max-width: 430px;
	margin: 14px auto 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.98rem;
	line-height: 1.55;
}

.kbtv-strimm-modal[hidden] {
	display: none !important;
}

.kbtv-strimm-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: clamp(14px, 3vw, 34px);
}

.kbtv-strimm-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(2, 5, 12, 0.86);
	backdrop-filter: blur(10px);
}

.kbtv-strimm-modal__dialog {
	position: relative;
	width: min(1120px, 100%);
	max-height: min(92vh, 860px);
	overflow: auto;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 18px;
	background: #080b12;
	box-shadow: 0 24px 90px rgba(0, 0, 0, 0.55);
	color: #ffffff;
}

.kbtv-strimm-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.kbtv-strimm-modal__close:hover,
.kbtv-strimm-modal__close:focus-visible {
	background: rgba(45, 212, 191, 0.22);
	outline: 2px solid rgba(45, 212, 191, 0.65);
	outline-offset: 2px;
}

.kbtv-strimm-modal__header {
	padding: 26px 76px 18px 28px;
}

.kbtv-strimm-modal__header span {
	display: block;
	margin-bottom: 8px;
	color: #8ff7e8;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

.kbtv-strimm-modal__header h2 {
	margin: 0;
	color: #ffffff;
	font-size: clamp(1.4rem, 3vw, 2.2rem);
	line-height: 1.12;
}

.kbtv-strimm-modal__header p {
	margin: 10px 0 0;
	max-width: 760px;
	color: rgba(255, 255, 255, 0.72);
	line-height: 1.5;
}

.kbtv-strimm-modal__frame {
	aspect-ratio: 16 / 9;
	width: 100%;
	background: #02040a;
}

.kbtv-strimm-modal__frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.kbtv-strimm-modal__note {
	margin: 0;
	padding: 14px 28px 22px;
	color: rgba(255, 255, 255, 0.58);
	font-size: 0.86rem;
	line-height: 1.45;
}

.kbtv-strimm-modal-open,
.kbtv-strimm-modal-open body {
	overflow: hidden;
}

@media (max-width: 760px) {
	.kbtv-tv-screen--selector {
		min-height: 300px;
	}

	.kbtv-strimm-modal {
		padding: 0;
	}

	.kbtv-strimm-modal__dialog {
		width: 100%;
		max-height: 100vh;
		border-radius: 0;
	}

	.kbtv-strimm-modal__header {
		padding: 24px 68px 16px 18px;
	}

	.kbtv-strimm-modal__note {
		padding-right: 18px;
		padding-left: 18px;
	}
}
