/* Sự kiện đang và sắp diễn ra – happening-now/event-strip: thẻ có huy hiệu ngày, thẻ lớn "đang diễn ra",
 * dải chữ chạy có nút tạm dừng (chỉ chạy khi có JS và người xem không bật giảm chuyển động), dòng "Hằng tuần".
 * Chỉ dùng biến --vh-*. Mobile trước, mốc 640px / 1024px. */

.vh-hn {
	display: grid;
	gap: var(--vh-card-gap);
}

.vh-hn > .vh-section-head {
	margin-bottom: 8px;
}

/* ---------- Huy hiệu ngày "31 Th10" ---------- */
.vh-hn__badge {
	display: inline-grid;
	justify-items: center;
	align-content: center;
	min-width: 72px;
	padding: 8px 10px;
	border-radius: var(--vh-radius-card);
	background: var(--vh-color-card);
	color: var(--vh-color-text);
	box-shadow: var(--vh-shadow-card);
	font-variant-numeric: tabular-nums lining-nums;
	line-height: 1.1;
	text-align: center;
}

.vh-hn__bd {
	font-family: var(--vh-font-heading);
	font-size: 1.75rem;
	font-weight: var(--vh-fw-heading);
}

.vh-hn__bm {
	font-weight: var(--vh-fw-bold);
	font-size: var(--vh-fs-small);
}

.vh-hn__bw {
	color: var(--vh-color-muted);
	font-size: 0.75rem;
}

/* ---------- Dải thẻ ---------- */
.vh-hn__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--vh-card-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.vh-hn__card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: var(--vh-border-width, 1px) solid var(--vh-color-border);
	border-radius: var(--vh-radius-card);
	background: var(--vh-color-card);
	color: var(--vh-color-text);
}

.vh-hn__card-media {
	position: relative;
}

.vh-hn__card-media img,
.vh-hn__card-media .vh-ph {
	width: 100%;
	border-radius: 0;
	object-fit: cover;
}

/* Có ảnh: huy hiệu đè góc trên trái (nền đặc, không phụ thuộc ảnh). Không ảnh: huy hiệu đứng đầu thẻ chữ. */
.vh-hn__card-media .vh-hn__badge {
	position: absolute;
	top: 12px;
	left: 12px;
}

.vh-hn__card--text .vh-hn__card-media {
	padding: var(--vh-card-pad) var(--vh-card-pad) 0;
}

.vh-hn__card--text .vh-hn__card-media .vh-hn__badge {
	position: static;
	background: var(--vh-color-surface);
	box-shadow: none;
}

.vh-hn__card-body {
	display: grid;
	align-content: start;
	gap: 8px;
	flex: 1;
	padding: var(--vh-card-pad);
}

.vh-hn__state {
	margin: 0;
	color: var(--vh-color-accent-ink);
	font-family: var(--vh-font-ui, var(--vh-font-body));
	font-size: var(--vh-fs-small);
	font-weight: var(--vh-fw-bold);
	letter-spacing: var(--vh-ls-label, 0.04em);
	text-transform: uppercase;
}

.vh-hn__state.is-now {
	color: var(--vh-color-success);
}

.vh-hn__title {
	margin: 0;
}

.vh-hn__meta {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	color: var(--vh-color-muted);
	font-size: var(--vh-fs-small);
}

.vh-hn__meta .vh-i {
	margin-top: 1px;
}

.vh-hn__text {
	margin: 0;
}

.vh-hn__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vh-hn__chips .vh-chip {
	white-space: normal;
}

.vh-hn__link {
	justify-self: start;
	margin-top: auto;
}

/* Một sự kiện: thẻ rộng ảnh trái. */
@media (min-width: 768px) {
	.vh-hn__list--n1 .vh-hn__card:not(.vh-hn__card--text) {
		flex-direction: row;
	}

	.vh-hn__list--n1 .vh-hn__card-media {
		width: 45%;
		flex: none;
	}

	.vh-hn__list--n1 .vh-hn__card-media img {
		height: 100%;
	}
}

@media (min-width: 640px) {
	.vh-hn__list--n2,
	.vh-hn__list--n3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.vh-hn__list--n3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ---------- Thẻ lớn "đang diễn ra" ---------- */
.vh-hn__feat {
	display: grid;
	gap: var(--vh-card-gap);
	overflow: hidden;
	border: var(--vh-border-width, 1px) solid var(--vh-color-border);
	border-radius: var(--vh-radius-card);
	background: var(--vh-color-card);
	color: var(--vh-color-text);
}

.vh-hn__feat-media img,
.vh-hn__feat-media .vh-ph {
	width: 100%;
	height: 100%;
	border-radius: 0;
	object-fit: cover;
}

.vh-hn__feat-media > .vh-hn__badge {
	margin: var(--vh-card-pad) var(--vh-card-pad) 0;
	background: var(--vh-color-surface);
	box-shadow: none;
}

.vh-hn__feat-body {
	display: grid;
	align-content: start;
	gap: 12px;
	padding: 0 var(--vh-card-pad) var(--vh-card-pad);
}

.vh-hn__next {
	display: grid;
	gap: 8px;
	margin-top: 8px;
	padding-top: 12px;
	border-top: 1px solid var(--vh-color-border);
}

.vh-hn__next-h {
	margin: 0;
	font-weight: var(--vh-fw-bold);
}

.vh-hn__next-list {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vh-hn__next-list li {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
}

.vh-hn__next-d {
	min-width: 11ch;
	color: var(--vh-color-muted);
	font-variant-numeric: tabular-nums lining-nums;
}

@media (min-width: 1024px) {
	.vh-hn__feat:not(.vh-hn__feat--text) {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		align-items: stretch;
		gap: 0;
	}

	.vh-hn__feat:not(.vh-hn__feat--text) .vh-hn__feat-body {
		padding: clamp(24px, 3vw, 40px);
	}
}

/* ---------- Dải chữ chạy ---------- */
.vh-hn__marquee {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	border-radius: var(--vh-radius-card);
	background: var(--vh-color-highlight, var(--vh-color-accent));
	color: var(--vh-color-text);
}

.vh-hn__mq-view {
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.vh-hn__mq-track {
	display: flex;
	width: max-content;
}

.vh-hn__mq-text {
	margin: 0;
	padding: 12px 16px;
	font-family: var(--vh-font-accent, var(--vh-font-body));
	font-weight: var(--vh-fw-bold);
	white-space: nowrap;
}

/* Chưa chạy (không JS, giảm chuyển động): một dòng tự xuống dòng, không có bản sao. */
.vh-hn__marquee:not(.is-on) .vh-hn__mq-track {
	width: auto;
}

.vh-hn__marquee:not(.is-on) .vh-hn__mq-text {
	white-space: normal;
}

.vh-hn__marquee:not(.is-on) .vh-hn__mq-dup {
	display: none;
}

@keyframes vh-hn-mq {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: no-preference) {
	.vh-hn__marquee.is-on .vh-hn__mq-track {
		animation: vh-hn-mq var(--vh-hn-mq-dur, 30s) linear infinite;
	}

	.vh-hn__marquee.is-paused .vh-hn__mq-track,
	.vh-hn__marquee.is-on:hover .vh-hn__mq-track,
	.vh-hn__marquee.is-on:focus-within .vh-hn__mq-track {
		animation-play-state: paused;
	}
}

.vh-hn__mq-btn {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin-right: 4px;
	padding: 6px 14px;
	border: 1px solid currentColor;
	border-radius: var(--vh-radius-button);
	background: var(--vh-color-bg);
	color: var(--vh-color-text);
	font: inherit;
	font-size: var(--vh-fs-small);
	font-weight: var(--vh-fw-medium);
	cursor: pointer;
}

/* Biểu tượng tạm dừng/chạy vẽ bằng CSS (sprite chưa có pause/play). */
.vh-hn__mq-glyph {
	width: 10px;
	height: 12px;
	border-left: 3px solid currentColor;
	border-right: 3px solid currentColor;
}

.vh-hn__mq-btn[aria-pressed="true"] .vh-hn__mq-glyph {
	width: 0;
	height: 0;
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
	border-left: 10px solid currentColor;
	border-right: 0;
}

/* ---------- Hằng tuần ---------- */
.vh-hn__weekly {
	display: grid;
	gap: 10px;
	padding: var(--vh-card-pad);
	border-radius: var(--vh-radius-card);
	background: var(--vh-color-surface);
	color: var(--vh-color-text);
}

.vh-alt .vh-hn__weekly {
	background: var(--vh-color-bg);
}

.vh-hn__weekly-h {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: var(--vh-fs-body);
	font-weight: var(--vh-fw-bold);
}

.vh-hn__weekly-list {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vh-hn__weekly-list li {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 12px;
}

.vh-hn__wk-when {
	min-width: 14ch;
	color: var(--vh-color-muted);
	font-variant-numeric: tabular-nums lining-nums;
}

@media (min-width: 640px) {
	.vh-hn__weekly-list {
		grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	}
}

/* Dải tối */
.vh-deep .vh-hn__card,
.vh-deep .vh-hn__feat {
	border-color: color-mix(in srgb, currentColor 24%, transparent);
	background: transparent;
	color: inherit;
}

.vh-deep .vh-hn__state {
	color: var(--vh-color-accent-on-deep, var(--vh-color-on-deep));
}
