/*!
 * Latest & Popular News — بلوک ویدیو و پادکست
 */

.hrtn-md {
	--hrtn-ink: #0c1428;
	--hrtn-ink-soft: rgba(255, 255, 255, 0.75);
	--hrtn-ink-line: rgba(255, 255, 255, 0.14);

	background: #fafafd;
}

.hrtn-md[data-scheme="dark"],
html[data-theme="dark"] .hrtn-md[data-scheme="auto"],
html.dark .hrtn-md[data-scheme="auto"],
body.dark .hrtn-md[data-scheme="auto"],
body.dark-mode .hrtn-md[data-scheme="auto"] {
	background: var(--hrtn-bg);
}

@media (prefers-color-scheme: dark) {
	html:not([data-theme="light"]):not(.light) body:not(.light-mode) .hrtn-md[data-scheme="auto"] {
		background: var(--hrtn-bg);
	}
}

/* --- سربرگ --- */
.hrtn-md__mark {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--hrtn-head, #e46a02);
	color: #fff;
	box-shadow: 0 10px 20px -12px var(--hrtn-head, #e46a02);
}

.hrtn-md__mark .hrtn-icon {
	width: 16px;
	height: 16px;
	opacity: 1;
}

.hrtn-md__dots {
	color: var(--hrtn-head, #e46a02);
	opacity: 0.3;
}

.hrtn-btn--head {
	color: var(--hrtn-head, #e46a02);
	border-color: var(--hrtn-head-soft, #fbe7d4);
}

.hrtn-btn--head:hover,
.hrtn-btn--head:focus-visible {
	color: var(--hrtn-head, #e46a02);
	background: var(--hrtn-head-soft, #fbe7d4);
	border-color: var(--hrtn-head, #e46a02);
}

/* --- تب‌ها --- */
.hrtn-md__tabs {
	margin-bottom: clamp(14px, 1.8vw, 22px);
}

.hrtn-md__strip {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.hrtn-md__strip::-webkit-scrollbar {
	display: none;
}

.hrtn-mtab {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 18px;
	border: 1px solid var(--hrtn-border);
	border-radius: 9px;
	background: var(--hrtn-surface);
	color: var(--hrtn-text-soft);
	font-size: clamp(12px, 0.95vw, 13.5px);
	font-weight: 600;
	line-height: 1.7;
	white-space: nowrap;
	text-decoration: none;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.hrtn-mtab:hover {
	color: var(--hrtn-text);
	border-color: var(--hrtn-accent-soft);
}

.hrtn-mtab.is-active {
	background: var(--hrtn-ink);
	border-color: var(--hrtn-ink);
	color: #fff;
}

.hrtn-mtab.is-active::after {
	content: "";
	position: absolute;
	bottom: -7px;
	inset-inline-start: 50%;
	transform: translateX(50%);
	width: 26px;
	height: 3px;
	border-radius: 2px;
	background: var(--hrtn-head, #e46a02);
}

.hrtn-mtab:focus-visible {
	outline: 2px solid var(--hrtn-accent);
	outline-offset: 2px;
}

/* --- ردیف‌ها --- */
.hrtn-md__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
	grid-template-areas: "side main";
	gap: 16px;
	align-items: stretch;
	margin-bottom: 16px;
}

.hrtn-md__row--pod {
	grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr);
	margin-bottom: 0;
}

.hrtn-md__main {
	grid-area: main;
	min-width: 0;
	display: flex;
	flex-direction: column;
	padding: clamp(12px, 1.4vw, 18px);
}

.hrtn-md__slider {
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex: 1 1 auto;
	margin-top: 0;
}

.hrtn-md__side {
	grid-area: side;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: clamp(12px, 1.4vw, 18px);
}

.hrtn-md__main--pod {
	background: var(--hrtn-surface-2);
}

/* --- سربرگ پنل --- */
.hrtn-md__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.hrtn-md__head-main {
	display: flex;
	align-items: center;
	gap: 10px;
}

.hrtn-md__head-icon {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--hrtn-accent-soft);
	color: var(--hrtn-accent);
}

.hrtn-md__head-icon .hrtn-icon {
	width: 17px;
	height: 17px;
	opacity: 1;
}

.hrtn-md__head-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.hrtn-md__head-title {
	margin: 0;
	padding: 0;
	font-size: clamp(14px, 1.15vw, 16.5px);
	font-weight: 800;
	line-height: 1.7;
	color: var(--hrtn-text);
}

.hrtn-md__head-sub {
	margin: 0;
	padding: 0;
	font-size: clamp(10.5px, 0.85vw, 12px);
	line-height: 1.7;
	color: var(--hrtn-text-soft);
}

/* --- کارت‌ها --- */
.hrtn-md__track {
	gap: 12px;
	padding-bottom: 6px;
}

.hrtn-md__item {
	flex: 0 0 clamp(168px, 15.5vw, 208px);
}

.hrtn-md__card {
	height: 100%;
	display: flex;
	flex-direction: column;
	background: var(--hrtn-surface);
	border: 1px solid var(--hrtn-border);
	border-radius: 14px;
	overflow: hidden;
	transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.hrtn-md__card:hover {
	transform: translateY(-4px);
	border-color: var(--hrtn-accent-soft);
	box-shadow: 0 16px 30px -22px rgba(15, 22, 30, 0.6);
}

.hrtn-md__media {
	position: relative;
	overflow: visible;
	border-radius: 14px 14px 0 0;
}

.hrtn-md__img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
	border-radius: 14px 14px 0 0;
	transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.hrtn-md__card:hover .hrtn-md__img {
	transform: scale(1.05);
}

.hrtn-md__play {
	position: absolute;
	top: 50%;
	inset-inline-start: 50%;
	transform: translate(50%, -50%);
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.7);
	background: rgba(16, 18, 28, 0.4);
	color: #fff;
	cursor: pointer;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	transition: transform 0.25s ease, background-color 0.25s ease;
}

.hrtn-md__play .hrtn-icon {
	width: 17px;
	height: 17px;
	opacity: 1;
	margin-inline-start: 2px;
}

.hrtn-md__card:hover .hrtn-md__play,
.hrtn-md__play:hover {
	background: var(--hrtn-accent);
	border-color: var(--hrtn-accent);
	transform: translate(50%, -50%) scale(1.08);
}

.hrtn-md__play:focus-visible {
	outline: 2px solid var(--hrtn-accent);
	outline-offset: 3px;
}

.hrtn-md__duration {
	position: absolute;
	bottom: 9px;
	inset-inline-end: 9px;
	padding: 3px 8px;
	border-radius: 6px;
	background: rgba(10, 13, 20, 0.72);
	color: #fff;
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1.8;
	letter-spacing: 0.02em;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.hrtn-md__chip {
	position: absolute;
	bottom: -11px;
	inset-inline-start: 10px;
	padding: 4px 10px;
	border-radius: 7px;
	background: var(--c, var(--hrtn-accent));
	color: #fff;
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1.8;
	box-shadow: 0 8px 16px -10px rgba(0, 0, 0, 0.8);
	max-width: calc(100% - 20px);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hrtn-md__body {
	display: flex;
	flex-direction: column;
	gap: 7px;
	flex: 1 1 auto;
	padding: 18px 12px 10px;
	text-align: center;
}

.hrtn-md__title {
	margin: 0;
	padding: 0;
	font-size: clamp(12.5px, 0.98vw, 14px);
	font-weight: 700;
	line-height: 1.95;
}

.hrtn-md__title a {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--hrtn-text);
	text-decoration: none;
	transition: color 0.22s ease;
}

.hrtn-md__title a:hover {
	color: var(--hrtn-accent);
}

.hrtn-md__guest {
	margin: 0;
	padding: 0;
	font-size: 11px;
	line-height: 1.8;
	color: var(--hrtn-text-soft);
}

.hrtn-md__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
	padding-top: 9px;
	border-top: 1px solid var(--hrtn-border-soft);
}

.hrtn-md__foot .hrtn-time {
	font-size: 10.5px;
}

.hrtn-md__dl {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 8px;
	background: var(--hrtn-accent-soft);
	color: var(--hrtn-accent);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.hrtn-md__dl .hrtn-icon {
	width: 14px;
	height: 14px;
	opacity: 1;
}

.hrtn-md__dl:hover {
	background: var(--hrtn-accent);
	color: #fff;
}

.hrtn-md__empty {
	flex: 1 1 auto;
	padding: 30px 14px;
	text-align: center;
	color: var(--hrtn-text-soft);
	list-style: none;
}

.hrtn-md__empty-row {
	margin: 0;
	padding: 22px 8px;
	text-align: center;
	color: var(--hrtn-text-soft);
	font-size: 12.5px;
}

/* --- پربازدیدترین --- */
.hrtn-md__side-head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--hrtn-border-soft);
}

.hrtn-md__flame {
	display: inline-grid;
	place-items: center;
	color: #e8541f;
}

.hrtn-md__flame .hrtn-icon {
	width: 18px;
	height: 18px;
	opacity: 1;
}

.hrtn-md__pop {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.hrtn-md__pop-item + .hrtn-md__pop-item {
	border-top: 1px solid var(--hrtn-border-soft);
}

.hrtn-md__pop-link {
	display: grid;
	grid-template-columns: auto auto minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	padding: 8px 4px;
	text-decoration: none;
	color: inherit;
	border-radius: 10px;
	transition: background-color 0.22s ease;
}

.hrtn-md__pop-link:hover,
.hrtn-md__pop-link:focus-visible {
	background: var(--hrtn-surface-2);
}

.hrtn-md__pop-num {
	font-family: "Times New Roman", Georgia, serif;
	font-size: clamp(18px, 1.7vw, 25px);
	font-weight: 700;
	line-height: 1;
	min-width: 1.5em;
	text-align: center;
	color: var(--hrtn-accent);
	font-variant-numeric: tabular-nums;
}

.hrtn-md__pop-thumb {
	position: relative;
	display: block;
	width: clamp(60px, 6vw, 82px);
	aspect-ratio: 3 / 2;
	border-radius: 9px;
	overflow: hidden;
	background: var(--hrtn-surface-2);
	flex: 0 0 auto;
}

.hrtn-md__pop-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hrtn-md__pop-play {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: #fff;
	background: rgba(10, 13, 20, 0.28);
	transition: background-color 0.2s ease;
}

.hrtn-md__pop-play .hrtn-icon {
	width: 14px;
	height: 14px;
	opacity: 1;
}

.hrtn-md__pop-link:hover .hrtn-md__pop-play {
	background: rgba(10, 13, 20, 0.05);
}

.hrtn-md__pop-time {
	position: absolute;
	bottom: 4px;
	inset-inline-end: 4px;
	padding: 1px 5px;
	border-radius: 4px;
	background: rgba(10, 13, 20, 0.75);
	color: #fff;
	font-size: 9px;
	line-height: 1.7;
}

.hrtn-md__pop-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.hrtn-md__pop-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: clamp(11.5px, 0.9vw, 12.5px);
	font-weight: 700;
	line-height: 1.75;
	color: var(--hrtn-text);
	transition: color 0.22s ease;
}

.hrtn-md__pop-link:hover .hrtn-md__pop-title {
	color: var(--hrtn-accent);
}

.hrtn-md__pop-views {
	font-size: 10.5px;
	color: var(--hrtn-text-mute);
}

.hrtn-btn--soft {
	justify-content: center;
	width: 100%;
	background: var(--hrtn-accent-soft);
	color: var(--hrtn-accent);
	font-size: 12.5px;
}

.hrtn-btn--soft:hover,
.hrtn-btn--soft:focus-visible {
	background: var(--hrtn-accent);
	color: #fff;
}

/* --- کارت دعوت --- */
.hrtn-md__cta {
	grid-area: side;
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	border-radius: var(--hrtn-radius);
	padding: clamp(16px, 1.8vw, 24px);
	background:
		radial-gradient(120% 120% at 15% 10%, #6a3ad0 0%, rgba(106, 58, 208, 0) 55%),
		linear-gradient(150deg, #4b2699 0%, #2b1466 100%);
	color: #fff;
}

.hrtn-md__cta-art {
	position: absolute;
	bottom: -14px;
	inset-inline-end: -10px;
	width: clamp(90px, 9vw, 130px);
	color: #fff;
	opacity: 0.2;
	pointer-events: none;
}

.hrtn-md__cta-art svg {
	width: 100%;
	height: auto;
	display: block;
}

.hrtn-md__cta-body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}

.hrtn-md__cta-title {
	margin: 0;
	padding: 0;
	font-size: clamp(17px, 1.7vw, 24px);
	font-weight: 800;
	line-height: 1.7;
	color: #fff;
}

.hrtn-md__cta-text {
	margin: 0;
	padding: 0;
	font-size: clamp(11.5px, 0.92vw, 13px);
	line-height: 2;
	color: var(--hrtn-ink-soft);
	max-width: 26ch;
}

.hrtn-md__cta-btn {
	align-self: flex-start;
	margin-top: 4px;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #fff;
	padding: 11px 24px;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.hrtn-md__cta-btn:hover,
.hrtn-md__cta-btn:focus-visible {
	background: #fff;
	color: #3a1d78;
	border-color: #fff;
}

.hrtn-md__cta-list {
	list-style: none;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
	margin: auto 0 0;
	padding: 14px 0 0;
	border-top: 1px solid var(--hrtn-ink-line);
}

.hrtn-md__cta-list li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	flex: 1 1 0;
	text-align: center;
	font-size: 10px;
	line-height: 1.7;
	color: var(--hrtn-ink-soft);
}

.hrtn-md__cta-ico {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.hrtn-md__cta-ico .hrtn-icon {
	width: 15px;
	height: 15px;
	opacity: 1;
}

/* --- پنجره پخش --- */
.hrtn-md__modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: 16px;
}

.hrtn-md__modal[hidden] {
	display: none;
}

.hrtn-md__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(6, 8, 14, 0.82);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.hrtn-md__dialog {
	position: relative;
	z-index: 1;
	width: min(920px, 100%);
	background: #0f131c;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 16px;
	padding: 14px;
	box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}

.hrtn-md__close {
	position: absolute;
	top: -14px;
	inset-inline-end: -14px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: #1a1f2b;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.hrtn-md__close:hover {
	background: var(--hrtn-accent);
}

.hrtn-md__close .hrtn-icon {
	width: 17px;
	height: 17px;
	opacity: 1;
}

.hrtn-md__modal-title {
	margin: 0 0 10px;
	padding: 0 4px;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.9;
	color: #fff;
}

.hrtn-md__stage {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	background: #05070c;
}

.hrtn-md__stage iframe,
.hrtn-md__stage video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
}

.hrtn-md__stage audio {
	display: block;
	width: 100%;
	padding: 18px;
}

/* --- واکنش‌گرایی --- */
@media (max-width: 1080px) {
	.hrtn-md__row,
	.hrtn-md__row--pod {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"main"
			"side";
	}

	.hrtn-md__cta-text {
		max-width: none;
	}
}

@media (max-width: 720px) {
	.hrtn-md__strip {
		justify-content: flex-start;
		flex-wrap: nowrap;
	}

	.hrtn-mtab {
		flex: 0 0 auto;
	}

	.hrtn-md__item {
		flex: 0 0 clamp(150px, 46vw, 200px);
	}

	.hrtn-md__close {
		top: 6px;
		inset-inline-end: 6px;
	}

	.hrtn-md__cta {
		flex-direction: column;
	}
}

@media (max-width: 600px) {
	.hrtn-md__head {
		flex-wrap: wrap;
		gap: 8px;
	}

	.hrtn-md__head .hrtn-link {
		font-size: 11.5px;
	}

	.hrtn-md__cta-list {
		gap: 4px;
	}
}
