.tcb-wrapper {
	width: 100%;
}

/* Toggle switch row */
.tcb-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-bottom: 32px;
}

.tcb-toggle-label {
	font-weight: 500;
	font-size: 16px;
	color: #888888;
	cursor: pointer;
	transition: color 0.25s ease;
	user-select: none;
}

.tcb-toggle-label.tcb-active {
	color: #ffffff;
}

.tcb-switch {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	flex-shrink: 0;
}

.tcb-switch-input {
	opacity: 0;
	width: 0;
	height: 0;
}

.tcb-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #333333;
	border-radius: 24px;
	transition: 0.3s;
}

.tcb-slider:before {
	content: "";
	position: absolute;
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background-color: #c6ff00;
	border-radius: 50%;
	transition: 0.3s;
}

.tcb-switch-input:checked + .tcb-slider:before {
	transform: translateX(20px);
}

/* Card grid */
.tcb-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.tcb-card {
	display: block;
	width: 100%;
	background-color: #111111;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: opacity 0.3s ease, transform 0.3s ease;
	border: none;
	padding: 0;
	margin: 0;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.tcb-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	padding: 20px;
}

.tcb-lightbox.tcb-open {
	display: flex;
}

.tcb-lightbox-inner {
	position: relative;
	width: 100%;
	max-width: 900px;
}

.tcb-lightbox-player {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}

.tcb-lightbox-player iframe,
.tcb-lightbox-player video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.tcb-lightbox-close {
	position: absolute;
	top: -40px;
	right: 0;
	background: transparent;
	border: none;
	color: #fff;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
}

.tcb-card.tcb-hidden {
	display: none;
}

.tcb-card.tcb-visible {
	display: block;
}

.tcb-card-media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background-color: #222;
}

.tcb-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tcb-play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tcb-badge {
	position: absolute;
	left: 14px;
	bottom: 14px;
	background-color: #f5c518;
	color: #111;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.5px;
	padding: 4px 10px;
	border-radius: 4px;
	text-transform: uppercase;
}

.tcb-card-body {
	padding: 18px;
}

.tcb-card-category {
	font-size: 13px;
	font-weight: 600;
	color: #c6ff00;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}

.tcb-card-title {
	font-size: 18px;
	font-weight: 600;
	color: #ffffff;
	margin: 0 0 8px 0;
	line-height: 1.3;
}

.tcb-card-desc {
	font-size: 14px;
	color: #aaaaaa;
	margin: 0;
	line-height: 1.5;
}

/* Carousel layout */
.tcb-carousel-outer {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
}

.tcb-carousel-track {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 40px 4px;
	flex: 1;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.tcb-carousel-track::-webkit-scrollbar {
	display: none;
}

.tcb-is-carousel .tcb-card {
	scroll-snap-align: center;
	flex: 0 0 33.333%;
	transition: transform 0.35s ease, opacity 0.35s ease;
	opacity: 0.55;
}

.tcb-is-carousel .tcb-card.tcb-slide-active {
	opacity: 1;
	transform: scale(1.12);
	z-index: 2;
}

.tcb-carousel-arrow {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.3);
	background: transparent;
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.tcb-carousel-arrow:hover {
	background: rgba(255, 255, 255, 0.1);
}

.tcb-carousel-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
}

.tcb-carousel-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
	border: none;
	padding: 0;
}

.tcb-carousel-dot.tcb-active {
	background: #c6ff00;
	transform: scale(1.3);
}

@media (max-width: 1024px) {
	.tcb-is-carousel .tcb-card {
		flex: 0 0 50%;
	}
}

@media (max-width: 600px) {
	.tcb-is-carousel .tcb-card {
		flex: 0 0 85%;
	}
}

@media (max-width: 1024px) {
	.tcb-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.tcb-grid {
		grid-template-columns: 1fr;
	}
}
