.hyf-feed {
	margin: 28px 0;
}

.hyf-heading {
	margin: 0 0 18px;
	font-size: 1.6em;
	line-height: 1.2;
}

.hyf-empty {
	padding: 14px 18px;
	border: 1px dashed #c3c4c7;
	border-radius: 8px;
	background: #f6f7f7;
	color: #50575e;
	font-size: 14px;
}

/* Full-bleed wrapper */
.hyf-bleed {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}

/* Grid */
.hyf-grid {
	display: grid;
	gap: 16px;
}

.hyf-cols-2 .hyf-grid {
	grid-template-columns: repeat(2, 1fr);
}

.hyf-cols-3 .hyf-grid {
	grid-template-columns: repeat(3, 1fr);
}

.hyf-cols-4 .hyf-grid {
	grid-template-columns: repeat(4, 1fr);
}

/* Card */
.hyf-item {
	position: relative;
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	text-align: left;
	font: inherit;
	color: inherit;
	text-decoration: none;
	-webkit-appearance: none;
	appearance: none;
}

.hyf-item:focus-visible {
	outline: 2px solid #ff0000;
	outline-offset: 3px;
	border-radius: 12px;
}

.hyf-thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 12px;
	background: linear-gradient(135deg, #e8ebef 0%, #d3d9e0 100%);
}

.hyf-mode-shorts .hyf-thumb {
	aspect-ratio: 9 / 16;
}

.hyf-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.hyf-item:hover .hyf-thumb img,
.hyf-item:focus-visible .hyf-thumb img {
	transform: scale(1.045);
}

.hyf-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: rgba(15, 17, 21, 0.68);
	color: #fff;
	transition: background 0.2s ease, transform 0.2s ease;
}

.hyf-play svg {
	width: 24px;
	height: 24px;
	margin-left: 3px;
}

.hyf-item:hover .hyf-play,
.hyf-item:focus-visible .hyf-play {
	background: rgba(255, 0, 0, 0.9);
	transform: translate(-50%, -50%) scale(1.07);
}

.hyf-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 3px 9px;
	border-radius: 5px;
	background: #ff0000;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.4;
}

.hyf-meta {
	display: block;
	padding: 10px 2px 0;
}

.hyf-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}

.hyf-date {
	display: block;
	margin-top: 3px;
	font-size: 13px;
	color: #6b7280;
}

/* Carousel */
.hyf-car {
	position: relative;
}

.hyf-track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 4px;
}

.hyf-track::-webkit-scrollbar {
	display: none;
}

.hyf-layout-carousel .hyf-item {
	scroll-snap-align: start;
}

.hyf-cols-2.hyf-layout-carousel .hyf-item {
	flex: 0 0 calc((100% - 16px) / 2);
}

.hyf-cols-3.hyf-layout-carousel .hyf-item {
	flex: 0 0 calc((100% - 32px) / 3);
}

.hyf-cols-4.hyf-layout-carousel .hyf-item {
	flex: 0 0 calc((100% - 48px) / 4);
}

.hyf-car-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #1f2430;
	box-shadow: 0 4px 16px rgba(15, 17, 21, 0.22);
	cursor: pointer;
	transition: transform 0.15s ease;
}

.hyf-car-btn:hover {
	transform: translateY(-50%) scale(1.06);
}

.hyf-car-btn svg {
	width: 20px;
	height: 20px;
}

.hyf-car-prev {
	left: -8px;
}

.hyf-car-next {
	right: -8px;
}

/* Subscribe CTA */
.hyf-cta-row {
	display: flex;
	justify-content: center;
	margin-top: 22px;
}

.hyf-cta {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 11px 24px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	line-height: 1;
	transition: filter 0.2s ease, transform 0.15s ease;
}

.hyf-cta:hover {
	filter: brightness(0.9);
	transform: translateY(-1px);
}

.hyf-cta svg {
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
}

/* Lightbox */
.hyf-lb {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 14px;
	background: rgba(10, 12, 16, 0.94);
	padding: 24px;
	box-sizing: border-box;
}

.hyf-lb.is-open {
	display: flex;
}

.hyf-lb-frame {
	position: relative;
	width: min(960px, 100%);
	aspect-ratio: 16 / 9;
	max-height: 82vh;
	background: #000;
	border-radius: 12px;
	overflow: hidden;
}

.hyf-lb.is-short .hyf-lb-frame {
	width: auto;
	height: min(82vh, 720px);
	aspect-ratio: 9 / 16;
	max-width: 100%;
}

.hyf-lb-frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.hyf-lb-title {
	max-width: min(960px, 100%);
	color: #e5e7eb;
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	line-height: 1.4;
}

.hyf-lb-close {
	position: absolute;
	top: 18px;
	right: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s ease;
}

.hyf-lb-close:hover {
	background: rgba(255, 255, 255, 0.24);
}

.hyf-lb-close svg {
	width: 20px;
	height: 20px;
}

.hyf-lb-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s ease;
}

.hyf-lb-nav:hover {
	background: rgba(255, 255, 255, 0.24);
}

.hyf-lb-nav svg {
	width: 22px;
	height: 22px;
}

.hyf-lb-prev {
	left: 18px;
}

.hyf-lb-next {
	right: 18px;
}

/* Mobile */
@media (max-width: 780px) {
	.hyf-cols-3 .hyf-grid,
	.hyf-cols-4 .hyf-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.hyf-cols-2.hyf-layout-carousel .hyf-item,
	.hyf-cols-3.hyf-layout-carousel .hyf-item,
	.hyf-cols-4.hyf-layout-carousel .hyf-item {
		flex: 0 0 74%;
	}

	.hyf-mode-shorts.hyf-cols-2.hyf-layout-carousel .hyf-item,
	.hyf-mode-shorts.hyf-cols-3.hyf-layout-carousel .hyf-item,
	.hyf-mode-shorts.hyf-cols-4.hyf-layout-carousel .hyf-item {
		flex: 0 0 52%;
	}

	.hyf-bleed {
		padding-left: 16px;
		padding-right: 16px;
	}

	.hyf-lb {
		padding: 14px;
	}

	.hyf-lb-nav {
		display: none;
	}

	.hyf-lb-close {
		top: 10px;
		right: 10px;
	}
}

@media (max-width: 480px) {
	.hyf-cols-2 .hyf-grid,
	.hyf-cols-3 .hyf-grid,
	.hyf-cols-4 .hyf-grid {
		grid-template-columns: 1fr;
	}

	.hyf-mode-shorts.hyf-cols-2 .hyf-grid,
	.hyf-mode-shorts.hyf-cols-3 .hyf-grid,
	.hyf-mode-shorts.hyf-cols-4 .hyf-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
