/**
 * Hamenagen - מצעד שבועי
 * עיצוב נקי בסגנון הדר / כרטיסי עמוד הבית
 */

.hm-homepage .hm-weekly-chart {
	--hm-wc-brand: #cb1e53;
	--hm-wc-navy: #20215a;
	--hm-wc-radius: 16px;
	--hm-wc-transition: 0.22s ease;
	--hm-wc-font: "פולין", "Polin", sans-serif;

	scroll-margin-top: 5rem;
	box-sizing: border-box;
	width: 100%;
	max-width: 1320px;
	margin: 0 auto 1.5rem;
	padding: 0 1rem;
	font-family: var(--hm-wc-font) !important;
	direction: rtl;
}

html[data-hm-theme="light"] .hm-homepage .hm-weekly-chart,
html:not([data-hm-theme]) .hm-homepage .hm-weekly-chart {
	--hm-wc-heading: #20215a;
	--hm-wc-text: #333333;
	--hm-wc-muted: #666666;
	--hm-wc-surface: #ffffff;
	--hm-wc-soft: #f4f5f8;
	--hm-wc-row: #ffffff;
	--hm-wc-row-hover: #f7f8fb;
	--hm-wc-border: rgba(32, 33, 90, 0.1);
	--hm-wc-shadow: 0 4px 24px rgba(32, 33, 90, 0.08);
	--hm-wc-rank: rgba(32, 33, 90, 0.35);
	--hm-wc-countdown-bg: rgba(32, 33, 90, 0.04);
	--hm-wc-countdown-border: rgba(32, 33, 90, 0.1);
	--hm-wc-vote-bg: #20215a;
	--hm-wc-vote-text: #ffffff;
	--hm-wc-voted-bg: rgba(203, 30, 83, 0.08);
	--hm-wc-voted-border: rgba(203, 30, 83, 0.35);
	--hm-wc-play-bg: #20215a;
	--hm-wc-empty: #666666;
}

html[data-hm-theme="dark"] .hm-homepage .hm-weekly-chart {
	--hm-wc-heading: #f5f5f7;
	--hm-wc-text: #f5f5f7;
	--hm-wc-muted: rgba(245, 245, 247, 0.65);
	--hm-wc-surface: rgba(255, 255, 255, 0.06);
	--hm-wc-soft: rgba(255, 255, 255, 0.04);
	--hm-wc-row: rgba(255, 255, 255, 0.04);
	--hm-wc-row-hover: rgba(255, 255, 255, 0.08);
	--hm-wc-border: rgba(255, 255, 255, 0.1);
	--hm-wc-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
	--hm-wc-rank: rgba(245, 245, 247, 0.4);
	--hm-wc-countdown-bg: rgba(255, 255, 255, 0.06);
	--hm-wc-countdown-border: rgba(255, 255, 255, 0.12);
	--hm-wc-vote-bg: #cb1e53;
	--hm-wc-vote-text: #ffffff;
	--hm-wc-voted-bg: rgba(203, 30, 83, 0.18);
	--hm-wc-voted-border: rgba(203, 30, 83, 0.55);
	--hm-wc-play-bg: #cb1e53;
	--hm-wc-empty: rgba(245, 245, 247, 0.7);
}

.hm-homepage .hm-weekly-chart *,
.hm-homepage .hm-weekly-chart *::before,
.hm-homepage .hm-weekly-chart *::after {
	box-sizing: border-box;
}

.hm-homepage .hm-weekly-chart__inner {
	position: relative;
	overflow: hidden;
	border-radius: var(--hm-wc-radius);
	padding: 1.35rem 1.35rem 1.15rem;
	background: var(--hm-wc-surface);
	border: 1px solid var(--hm-wc-border);
	box-shadow: var(--hm-wc-shadow);
	transition: background var(--hm-wc-transition), border-color var(--hm-wc-transition), box-shadow var(--hm-wc-transition);
}

/* Accent line - subtle brand signal, not a loud banner */
.hm-homepage .hm-weekly-chart__inner::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--hm-wc-brand) 0%, var(--hm-wc-navy) 100%);
	pointer-events: none;
}

/* === Header === */

.hm-homepage .hm-weekly-chart__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	margin-bottom: 1.15rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--hm-wc-border);
	flex-wrap: wrap;
}

.hm-homepage .hm-weekly-chart__head-main {
	min-width: 0;
	flex: 1 1 220px;

	@media (max-width: 600px) {
		flex: 1 1 10px;
	}
}

.hm-homepage .hm-weekly-chart__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-bottom: 0.35rem;
	color: var(--hm-wc-brand);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.hm-homepage .hm-weekly-chart__eyebrow svg {
	flex-shrink: 0;
	opacity: 0.9;
}

.hm-homepage .hm-weekly-chart__title {
	margin: 0 0 0.3rem !important;
	padding: 0 !important;
	font-size: clamp(1.2rem, 2.2vw, 1.5rem) !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	color: var(--hm-wc-heading) !important;
	font-family: inherit !important;
	border: none !important;
	background: none !important;
}

.hm-homepage .hm-weekly-chart__lead {
	margin: 0 !important;
	max-width: 42ch;
	font-size: 0.92rem !important;
	line-height: 1.45 !important;
	color: var(--hm-wc-muted) !important;
	font-family: inherit !important;
}

.hm-homepage .hm-weekly-chart__countdown {
	display: inline-flex;
	align-items: baseline;
	gap: 0.4rem;
	margin: 0;
	padding: 0.55rem 0.85rem;
	border-radius: 12px;
	background: var(--hm-wc-countdown-bg);
	border: 1px solid var(--hm-wc-countdown-border);
	flex-shrink: 0;
}

.hm-homepage .hm-weekly-chart__countdown-num {
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--hm-wc-brand);
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.hm-homepage .hm-weekly-chart__countdown-label {
	font-size: 0.8rem;
	color: var(--hm-wc-muted);
	line-height: 1.2;
}

/* === Voting grid - compact, 5 per row === */

.hm-homepage .hm-weekly-chart__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0.5rem;
}

.hm-homepage .hm-weekly-chart__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	padding: 0.55rem 0.4rem 0.5rem;
	border-radius: 12px;
	background: var(--hm-wc-row);
	border: 1px solid var(--hm-wc-border);
	transition: background var(--hm-wc-transition), border-color var(--hm-wc-transition), box-shadow var(--hm-wc-transition);
	min-width: 0;
	text-align: center;
}

.hm-homepage .hm-weekly-chart__card:hover {
	background: var(--hm-wc-row-hover);
	box-shadow: 0 2px 10px rgba(32, 33, 90, 0.06);
}

.hm-homepage .hm-weekly-chart__card.is-voted {
	background: var(--hm-wc-voted-bg);
	border-color: var(--hm-wc-voted-border);
}

.hm-homepage .hm-weekly-chart__rank {
	position: absolute;
	top: 0.35rem;
	inset-inline-start: 0.35rem;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.2rem;
	height: 1.2rem;
	border-radius: 50%;
	font-size: 0.65rem;
	font-weight: 800;
	color: var(--hm-wc-heading);
	background: var(--hm-wc-soft);
	border: 1px solid var(--hm-wc-border);
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.hm-homepage .hm-weekly-chart__card.is-voted .hm-weekly-chart__rank {
	background: var(--hm-wc-brand);
	border-color: var(--hm-wc-brand);
	color: #fff;
}

.hm-homepage .hm-weekly-chart__card-media {
	position: relative;
	flex-shrink: 0;
	line-height: 0;
	width: 56px;
	height: 56px;
	margin-top: 0.15rem;
	border-radius: 10px;
	overflow: hidden;
}

.hm-homepage .hm-weekly-chart__card-thumb {
	display: block;
	width: 56px;
	height: 56px;
	border-radius: 10px;
	object-fit: cover;
	background: var(--hm-wc-soft);
}

/* הסתרת "לא מעניין אותי" - לא רלוונטי למצעד */
.hm-homepage .hm-weekly-chart .cmp-not-interested-btn {
	display: none !important;
}

/* Play - ממורכז על העטיפה, בסגנון האתר */
.hm-homepage .hm-weekly-chart button.hm-weekly-chart__play-btn.cmp-play-btn {
	position: absolute !important;
	inset: 0 !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	height: 100% !important;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 10px !important;
	background: rgba(32, 33, 90, 0.28) !important;
	background-image: none !important;
	color: #fff !important;
	font-size: 0 !important;
	line-height: 1 !important;
	box-shadow: none !important;
	cursor: pointer !important;
	opacity: 1 !important;
	transform: none !important;
	transition: background var(--hm-wc-transition) !important;
	appearance: none !important;
	-webkit-appearance: none !important;
}

.hm-homepage .hm-weekly-chart button.hm-weekly-chart__play-btn.cmp-play-btn::after {
	content: "";
	display: block;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: linear-gradient(135deg, #e91e63 0%, #cb1e53 55%, #9c27b0 100%);
	box-shadow: 0 3px 10px rgba(203, 30, 83, 0.45);
	transition: transform var(--hm-wc-transition), box-shadow var(--hm-wc-transition);
}

.hm-homepage .hm-weekly-chart__card:hover button.hm-weekly-chart__play-btn.cmp-play-btn,
.hm-homepage .hm-weekly-chart button.hm-weekly-chart__play-btn.cmp-play-btn:focus-visible {
	background: rgba(32, 33, 90, 0.42) !important;
	background-image: none !important;
	filter: none !important;
	transform: none !important;
}

.hm-homepage .hm-weekly-chart__card:hover button.hm-weekly-chart__play-btn.cmp-play-btn::after,
.hm-homepage .hm-weekly-chart button.hm-weekly-chart__play-btn.cmp-play-btn:focus-visible::after {
	transform: scale(1.06);
	box-shadow: 0 4px 14px rgba(203, 30, 83, 0.55);
}

.hm-homepage .hm-weekly-chart button.hm-weekly-chart__play-btn.cmp-play-btn .hm-weekly-chart__play-icon {
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	display: block !important;
	width: 13px !important;
	height: 13px !important;
	margin: 0 !important;
	fill: #fff !important;
	pointer-events: none !important;
	filter: none;
	transform: translate(-42%, -50%);
	z-index: 1;
}

.hm-homepage .hm-weekly-chart__card-body {
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
}

.hm-homepage .hm-weekly-chart__card-title {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 0.78rem !important;
	font-weight: 700 !important;
	color: var(--hm-wc-heading) !important;
	line-height: 1.25 !important;
	font-family: inherit !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hm-homepage .hm-weekly-chart__card-artist {
	margin: 0.1rem 0 0 !important;
	padding: 0 !important;
	font-size: 0.7rem !important;
	color: var(--hm-wc-muted) !important;
	line-height: 1.2 !important;
	font-family: inherit !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hm-homepage .hm-weekly-chart__vote-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-width: 0;
	padding: 0.32rem 0.4rem;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--hm-wc-vote-bg);
	color: var(--hm-wc-vote-text) !important;
	font-family: inherit !important;
	font-size: 0.72rem;
	font-weight: 700;
	cursor: pointer;
	transition: background var(--hm-wc-transition), opacity var(--hm-wc-transition), border-color var(--hm-wc-transition), color var(--hm-wc-transition);
	white-space: nowrap;
}

.hm-homepage .hm-weekly-chart__vote-btn:hover:not(:disabled) {
	background: var(--hm-wc-brand);
}

.hm-homepage .hm-weekly-chart__vote-btn:disabled {
	opacity: 0.55;
	cursor: wait;
}

.hm-homepage .hm-weekly-chart__card.is-voted .hm-weekly-chart__vote-btn {
	background: transparent;
	border-color: var(--hm-wc-brand);
	color: var(--hm-wc-brand) !important;
}

.hm-homepage .hm-weekly-chart__cta-note {
	margin: 0.9rem 0 0 !important;
	text-align: center;
	font-size: 0.8rem !important;
	color: var(--hm-wc-muted) !important;
	font-family: inherit !important;
}

.hm-homepage .hm-weekly-chart__cta-note--login {
	color: var(--hm-wc-accent, #cb1e53) !important;
	font-weight: 700 !important;
}

.hm-homepage .hm-weekly-chart__empty {
	margin: 0;
	padding: 1.75rem 1rem;
	text-align: center;
	color: var(--hm-wc-empty);
	font-size: 0.95rem;
}

/* === Results === */

.hm-homepage .hm-weekly-chart__podium {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.hm-homepage .hm-weekly-chart__podium-item {
	display: grid;
	grid-template-columns: 2rem 4.5rem minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.85rem;
	padding: 0.7rem 0.85rem;
	border-radius: 12px;
	background: var(--hm-wc-row);
	border: 1px solid var(--hm-wc-border);
	min-width: 0;
	transition: background var(--hm-wc-transition), border-color var(--hm-wc-transition);
}

.hm-homepage .hm-weekly-chart__podium-item:hover {
	background: var(--hm-wc-row-hover);
}

.hm-homepage .hm-weekly-chart__podium-item--winner {
	border-color: rgba(203, 30, 83, 0.35);
	background: var(--hm-wc-voted-bg);
}

.hm-homepage .hm-weekly-chart__podium-rank {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	font-size: 0.85rem;
	font-weight: 800;
	color: var(--hm-wc-heading);
	background: var(--hm-wc-soft);
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.hm-homepage .hm-weekly-chart__podium-item--winner .hm-weekly-chart__podium-rank {
	background: var(--hm-wc-brand);
	color: #fff;
}

.hm-homepage .hm-weekly-chart__podium-cover {
	position: relative;
	display: block;
	width: 72px;
	height: 72px;
	border-radius: 12px;
	overflow: hidden;
	line-height: 0;
	background: var(--hm-wc-soft);
	flex-shrink: 0;
}

.hm-homepage .hm-weekly-chart__podium-cover img {
	position: absolute !important;
	inset: 0 !important;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover !important;
	object-position: center !important;
}

.hm-homepage .hm-weekly-chart__podium-body {
	min-width: 0;
}

.hm-homepage .hm-weekly-chart__podium-label {
	margin: 0 0 0.15rem !important;
	font-size: 0.72rem !important;
	font-weight: 700 !important;
	color: var(--hm-wc-brand) !important;
	letter-spacing: 0.02em;
	font-family: inherit !important;
}

.hm-homepage .hm-weekly-chart__podium-title {
	margin: 0 0 0.15rem !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	font-family: inherit !important;
}

.hm-homepage .hm-weekly-chart__podium-title a {
	color: var(--hm-wc-heading) !important;
	text-decoration: none !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hm-homepage .hm-weekly-chart__podium-title a:hover {
	color: var(--hm-wc-brand) !important;
}

.hm-homepage .hm-weekly-chart__podium-artist {
	display: block;
	font-size: 0.82rem;
	color: var(--hm-wc-muted);
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hm-homepage .hm-weekly-chart__podium-actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.35rem;
	min-width: 7.5rem;
}

.hm-homepage .hm-weekly-chart__podium-play {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	width: 100%;
	padding: 0.5rem 0.85rem;
	border: none;
	border-radius: 999px;
	background: var(--hm-wc-vote-bg);
	color: #fff !important;
	font-family: inherit !important;
	font-size: 0.8rem;
	font-weight: 700;
	cursor: pointer;
	transition: background var(--hm-wc-transition), opacity var(--hm-wc-transition);
}

.hm-homepage .hm-weekly-chart__podium-play svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
	flex-shrink: 0;
}

.hm-homepage .hm-weekly-chart__podium-play:hover {
	background: var(--hm-wc-brand);
}

.hm-homepage .hm-weekly-chart__podium-link {
	font-size: 0.75rem;
	color: var(--hm-wc-muted) !important;
	text-decoration: none !important;
	text-align: center;
	font-family: inherit !important;
	transition: color var(--hm-wc-transition);
}

.hm-homepage .hm-weekly-chart__podium-link:hover {
	color: var(--hm-wc-brand) !important;
	text-decoration: underline !important;
}

/* === Responsive === */

@media (max-width: 1100px) {
	.hm-homepage .hm-weekly-chart__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 800px) {
	.hm-homepage .hm-weekly-chart__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.hm-homepage .hm-weekly-chart {
		margin-bottom: 1.15rem;
	}

	.hm-homepage .hm-weekly-chart__inner {
		padding: 1.1rem 0.9rem 0.95rem;
	}

	.hm-homepage .hm-weekly-chart__head {
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
	}

	.hm-homepage .hm-weekly-chart__countdown {
		align-self: flex-start;
	}

	.hm-homepage .hm-weekly-chart__podium-item {
		grid-template-columns: 1.75rem 3.75rem minmax(0, 1fr);
		grid-template-areas:
			"rank cover body"
			"actions actions actions";
		gap: 0.65rem;
	}

	.hm-homepage .hm-weekly-chart__podium-rank {
		grid-area: rank;
	}

	.hm-homepage .hm-weekly-chart__podium-cover {
		grid-area: cover;
		width: 60px;
		height: 60px;
	}

	.hm-homepage .hm-weekly-chart__podium-body {
		grid-area: body;
	}

	.hm-homepage .hm-weekly-chart__podium-actions {
		grid-area: actions;
		flex-direction: row;
		align-items: center;
		min-width: 0;
	}

	.hm-homepage .hm-weekly-chart__podium-play {
		flex: 1;
	}

	.hm-homepage .hm-weekly-chart__podium-link {
		flex: 0 0 auto;
		padding-inline: 0.5rem;
	}
}

@media (max-width: 520px) {
	.hm-homepage .hm-weekly-chart__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.4rem;
	}

	.hm-homepage .hm-weekly-chart__card {
		padding: 0.45rem 0.3rem 0.4rem;
	}

	.hm-homepage .hm-weekly-chart__card-media,
	.hm-homepage .hm-weekly-chart__card-thumb {
		width: 48px;
		height: 48px;
	}

	.hm-homepage .hm-weekly-chart button.hm-weekly-chart__play-btn.cmp-play-btn::after {
		width: 26px;
		height: 26px;
	}

	.hm-homepage .hm-weekly-chart button.hm-weekly-chart__play-btn.cmp-play-btn .hm-weekly-chart__play-icon {
		width: 11px !important;
		height: 11px !important;
	}
}

@media (prefers-reduced-motion: reduce) {

	.hm-homepage .hm-weekly-chart__card,
	.hm-homepage .hm-weekly-chart__vote-btn,
	.hm-homepage .hm-weekly-chart__podium-play,
	.hm-homepage .hm-weekly-chart button.hm-weekly-chart__play-btn.cmp-play-btn {
		transition: none !important;
	}
}