/**
 * Shortcode [stream_category_list]: slider 5 thẻ danh mục (SwiperJS) — style đỏ/vàng, bo góc, badge "Đang trực tuyến".
 */
.stream-category-list {
	position: relative;
	max-width: 100%;
	margin: 1rem 0;
	padding: 0;
}

/* Swiper container: ẩn nút mặc định, dùng nút custom */
.stream-category-list-swiper {
	overflow: hidden;
	border-radius: 12px;
}
.stream-category-list-swiper .swiper-wrapper {
	align-items: stretch;
}
.stream-category-list-swiper .swiper-slide {
	height: auto;
	box-sizing: border-box;
}

/* Ẩn nút mặc định Swiper (dùng .stream-category-list__nav) */
.stream-category-list-swiper .swiper-button-prev::after,
.stream-category-list-swiper .swiper-button-next::after {
	display: none;
}

.stream-category-list__card {
	height: 100%;
}

.stream-category-list__card-link {
	display: block;
	position: relative;
	height: 100%;
	min-height: 200px;
	border-radius: 12px;
	overflow: hidden;
	background: linear-gradient(145deg, #b91c1c 0%, #7f1d1d 100%);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
	text-decoration: none;
	color: inherit;
}

.stream-category-list__card-bg {
	position: absolute;
	inset: 0;
	background: linear-gradient(145deg, #b91c1c 0%, #7f1d1d 100%);
}

.stream-category-list__card-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center bottom;
}

.stream-category-list__card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 40%, transparent 70%);
	pointer-events: none;
}

.stream-category-list__badge {
	position: absolute;
	top: 8px;
	right: 8px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	font-size: 0.7rem;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
	background: rgba(180, 30, 30, 0.95);
	border-radius: 999px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
	z-index: 2;
}

.stream-category-list__badge i {
	font-size: 0.6rem;
	opacity: 0.95;
}

.stream-category-list__card-content {
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: 8px;
	padding: 10px 12px;
	background: linear-gradient(135deg, #fef08a 0%, #fde047 50%, #eab308 100%);
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4);
	z-index: 1;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.stream-category-list__card-title {
	margin: 0 0 4px 0;
	font-size: 1rem;
	line-height: 1.2;
	color: #1a1a1a;
	font-weight: 600;
    text-transform: uppercase;
}

.stream-category-list__card-desc {
	margin: 0;
	font-size: 0.75rem;
	line-height: 1.35;
	color: #424242;
}

.stream-category-list__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	margin-top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.9);
	color: #7f1d1d;
	border: none;
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	cursor: pointer;
	z-index: 10;
	transition: background 0.2s, color 0.2s;
}
.stream-category-list__nav:hover {
	background: #fff;
	color: #b91c1c;
}

.stream-category-list__nav--prev {
	left: 0.5rem;
}

.stream-category-list__nav--next {
	right: 0.5rem;
}

/* Responsive: slidesPerView do JS đặt, chỉ điều chỉnh nút */
@media (max-width: 768px) {
	.stream-category-list__nav {
		width: 30px;
		height: 30px;
		font-size: 0.85rem;
	}
	.stream-category-list__nav--prev { left: 0.25rem; }
	.stream-category-list__nav--next { right: 0.25rem; }
}
