.baw-epg {
	--baw-epg-ratio: 60%;
	--baw-epg-accent: #8a1538;
	--baw-epg-surface: #ffffff;
	--baw-epg-border: #d9dde5;
	--baw-epg-title: #101828;
	--baw-epg-body: #475467;
	--baw-epg-meta: #667085;
	--baw-epg-button: #1d1f24;
}

.baw-epg-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
}

.baw-epg-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--baw-epg-border);
	background: var(--baw-epg-surface);
	transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.baw-epg-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(16, 24, 40, 0.08);
	border-color: rgba(138, 21, 56, 0.28);
}

.baw-epg-card__media {
	position: relative;
	display: block;
	padding-top: var(--baw-epg-ratio);
	background: linear-gradient(135deg, #20232b 0%, #0f1115 100%);
	overflow: hidden;
}

.baw-epg-card__media img,
.baw-epg-card__placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.baw-epg-card__placeholder {
	background:
		radial-gradient(circle at 20% 20%, rgba(255,255,255,0.09), transparent 38%),
		linear-gradient(135deg, #1c212b, #050608);
}

.baw-epg-card__badge {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 14px;
	background: var(--baw-epg-accent);
	color: #fff !important;
	font-family: inherit;
	font-size: 12px !important;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.08em;
	white-space: nowrap;
	text-transform: uppercase;
	text-decoration: none;
	opacity: 1;
	visibility: visible;
	-webkit-text-fill-color: #fff;
}

.baw-epg-card__content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 24px;
}

.baw-epg-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 18px;
	color: var(--baw-epg-meta);
	font-size: 14px;
	line-height: 1.45;
}

.baw-epg-card__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.baw-epg-card__meta-item svg {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
}

.baw-epg-card__title {
	margin: 0 0 16px;
	color: var(--baw-epg-title);
	font-size: clamp(24px, 2vw, 32px);
	font-weight: 700;
	line-height: 1.15;
}

.baw-epg-card__title a {
	color: inherit;
	text-decoration: none;
}

.baw-epg-card__title a:hover {
	color: var(--baw-epg-accent);
}

.baw-epg-card__excerpt {
	margin-bottom: 22px;
	color: var(--baw-epg-body);
	font-size: 18px;
	line-height: 1.7;
}

.baw-epg-card__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	color: var(--baw-epg-accent);
	font-size: 18px;
	font-weight: 700;
	text-decoration: none;
	transition: gap 0.2s ease, color 0.2s ease;
}

.baw-epg-card__link:hover {
	gap: 12px;
	color: #6e102d;
}

.baw-epg-actions {
	display: flex;
	justify-content: center;
	margin-top: 48px;
}

.baw-epg-load-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 244px;
	border: 0;
	padding: 18px 34px;
	background: var(--baw-epg-button);
	color: #fff;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.15;
	cursor: pointer;
	transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.baw-epg-load-more:hover {
	transform: translateY(-2px);
	background: #121418;
}

.baw-epg-load-more[disabled] {
	opacity: 0.6;
	cursor: wait;
}

@media (max-width: 1024px) {
	.baw-epg-card__content {
		padding: 22px;
	}

	.baw-epg-card__title {
		font-size: clamp(22px, 2.8vw, 28px);
	}

	.baw-epg-card__excerpt {
		font-size: 17px;
		line-height: 1.65;
	}
}

@media (max-width: 767px) {
	.baw-epg-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.baw-epg-card__badge {
		top: 14px;
		left: 14px;
		padding: 7px 12px;
	}

	.baw-epg-card__content {
		padding: 20px;
	}

	.baw-epg-card__meta {
		gap: 12px;
		margin-bottom: 14px;
		font-size: 13px;
	}

	.baw-epg-card__title {
		font-size: 28px;
	}

	.baw-epg-card__excerpt {
		font-size: 16px;
		margin-bottom: 18px;
	}

	.baw-epg-actions {
		margin-top: 32px;
	}

	.baw-epg-load-more {
		width: 100%;
		min-width: 0;
		font-size: 18px;
	}
}
