/**
 * Hamenagen - גריד כל האלבומים [hm_albums_grid]
 * פונט: פולין | כפתורים/אינפוטים: !important
 */

.hm-albums-grid {
	--hm-ag-brand: #cb1e53;
	--hm-ag-accent: #fa8504;
	--hm-ag-pink: #f2357b;
	--hm-ag-navy: #26235a;
	--hm-ag-radius: 16px;
	--hm-ag-radius-sm: 10px;
	--hm-ag-radius-pill: 999px;
	--hm-ag-transition: 0.25s ease;
	--hm-ag-font: "פולין", "Polin", sans-serif;
	--hm-ag-pad-x: 7%;
	--hm-ag-cover: clamp(132px, 16vw, 180px);

	direction: rtl;
	font-family: var(--hm-ag-font) !important;
	color: var(--hm-ag-text) !important;
	background:
		radial-gradient(1200px 420px at 100% -10%, rgba(203, 30, 83, 0.08), transparent 55%),
		radial-gradient(900px 360px at 0% 0%, rgba(250, 133, 4, 0.07), transparent 50%),
		var(--hm-ag-page-bg);
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	padding: clamp(1.25rem, 3vw, 2.5rem) var(--hm-ag-pad-x) 3rem !important;
	box-sizing: border-box;
	overflow-x: clip;
	transition: background var(--hm-ag-transition), color var(--hm-ag-transition);
}

.hm-albums-grid *,
.hm-albums-grid *::before,
.hm-albums-grid *::after {
	box-sizing: border-box;
}

.hm-albums-grid,
.hm-albums-grid *,
.hm-albums-grid *::before,
.hm-albums-grid *::after,
.hm-albums-grid input,
.hm-albums-grid button,
.hm-albums-grid select,
.hm-albums-grid-notice {
	font-family: var(--hm-ag-font) !important;
}

html[data-hm-theme="light"] .hm-albums-grid,
html:not([data-hm-theme]) .hm-albums-grid {
	--hm-ag-page-bg: #f4f5f8;
	--hm-ag-heading: #20215a;
	--hm-ag-text: #333333;
	--hm-ag-text-muted: #666666;
	--hm-ag-surface: #ffffff;
	--hm-ag-surface-soft: #f7f6ff;
	--hm-ag-border: rgba(32, 33, 90, 0.14);
	--hm-ag-shadow: 0 10px 28px rgba(32, 33, 90, 0.1);
	--hm-ag-chip-bg: #ffffff;
	--hm-ag-chip-active-bg: #20215a;
	--hm-ag-chip-active-text: #ffffff;
	--hm-ag-search-bg: #ffffff;
	--hm-ag-cover-bg: rgba(32, 33, 90, 0.08);
}

html[data-hm-theme="dark"] .hm-albums-grid {
	--hm-ag-page-bg: #0b0b24;
	--hm-ag-heading: #ffffff;
	--hm-ag-text: #ffffff;
	--hm-ag-text-muted: #b3b3b3;
	--hm-ag-surface: rgba(255, 255, 255, 0.06);
	--hm-ag-surface-soft: rgba(255, 255, 255, 0.04);
	--hm-ag-border: rgba(255, 255, 255, 0.12);
	--hm-ag-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
	--hm-ag-chip-bg: rgba(255, 255, 255, 0.08);
	--hm-ag-chip-active-bg: #ffffff;
	--hm-ag-chip-active-text: #0b0b24;
	--hm-ag-search-bg: rgba(255, 255, 255, 0.08);
	--hm-ag-cover-bg: rgba(255, 255, 255, 0.08);
}

/* === כפיית כפתורים / אינפוטים / סלקטים === */
.hm-albums-grid input[type="search"],
.hm-albums-grid .hm-albums-grid__search {
	-webkit-appearance: none !important;
	appearance: none !important;
	box-sizing: border-box !important;
	width: 100% !important;
	min-height: unset !important;
	height: auto !important;
	line-height: 1.4 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	box-shadow: none !important;
}

.hm-albums-grid button,
.hm-albums-grid .hm-albums-grid__chip,
.hm-albums-grid .hm-albums-grid__play {
	-webkit-appearance: none !important;
	appearance: none !important;
	box-sizing: border-box !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	cursor: pointer !important;
}

.hm-albums-grid select,
.hm-albums-grid .hm-albums-grid__select {
	-webkit-appearance: none !important;
	appearance: none !important;
	box-sizing: border-box !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	box-shadow: none !important;
	background-image: none !important;
}

/* === Header / Hero === */
.hm-albums-grid__header {
	margin-bottom: clamp(1rem, 2.5vw, 1.75rem);
}

.hm-albums-grid__hero {
	display: grid;
	gap: 1.25rem;
	margin-bottom: 1.25rem;
}

@media (min-width: 900px) {
	.hm-albums-grid__hero {
		grid-template-columns: 1.4fr 1fr;
		align-items: end;
		gap: 2rem;
	}
}

.hm-albums-grid__eyebrow {
	margin: 0 0 0.35rem !important;
	font-size: 0.85rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.04em;
	color: var(--hm-ag-brand) !important;
}

.hm-albums-grid__title-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.75rem 1.25rem;
	margin-bottom: 0.5rem;
}

.hm-albums-grid__page-title {
	margin: 0 !important;
	font-size: clamp(1.75rem, 4vw, 2.6rem) !important;
	font-weight: 800 !important;
	line-height: 1.15 !important;
	color: var(--hm-ag-heading) !important;
}

.hm-albums-grid__count {
	margin: 0 !important;
	display: inline-flex;
	align-items: baseline;
	gap: 0.35rem;
	padding: 0.35rem 0.85rem !important;
	border-radius: var(--hm-ag-radius-pill) !important;
	background: var(--hm-ag-surface) !important;
	border: 1px solid var(--hm-ag-border) !important;
	color: var(--hm-ag-text-muted) !important;
	font-size: 0.9rem !important;
}

.hm-albums-grid__count-num {
	font-weight: 800 !important;
	color: var(--hm-ag-heading) !important;
	font-variant-numeric: tabular-nums;
}

.hm-albums-grid__seo-intro {
	margin: 0 !important;
	max-width: 42rem;
	font-size: 1rem !important;
	line-height: 1.55 !important;
	color: var(--hm-ag-text-muted) !important;
}

.hm-albums-grid__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.65rem;
}

.hm-albums-grid__stat {
	background: var(--hm-ag-surface) !important;
	border: 1px solid var(--hm-ag-border) !important;
	border-radius: var(--hm-ag-radius-sm) !important;
	padding: 0.85rem 0.9rem !important;
	box-shadow: var(--hm-ag-shadow);
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.hm-albums-grid__stat-num {
	font-size: clamp(1rem, 2.4vw, 1.35rem) !important;
	font-weight: 800 !important;
	color: var(--hm-ag-heading) !important;
	line-height: 1.2 !important;
	font-variant-numeric: tabular-nums;
}

.hm-albums-grid__stat-label {
	font-size: 0.78rem !important;
	color: var(--hm-ag-text-muted) !important;
}

/* === Search === */
.hm-albums-grid__search-wrap {
	position: relative;
	margin-bottom: 1rem;
	max-width: 520px;
}

.hm-albums-grid__search-label {
	position: absolute;
	top: 50%;
	right: 0.95rem;
	transform: translateY(-50%);
	display: flex;
	pointer-events: none;
	color: var(--hm-ag-text-muted);
	z-index: 1;
}

.hm-albums-grid__search-icon {
	fill: currentColor;
}

.hm-albums-grid__search {
	width: 100% !important;
	padding: 0.85rem 2.75rem 0.85rem 1rem !important;
	border: 1px solid var(--hm-ag-border) !important;
	border-radius: var(--hm-ag-radius-pill) !important;
	background: var(--hm-ag-search-bg) !important;
	color: var(--hm-ag-heading) !important;
	font-size: 1rem !important;
	font-weight: 500 !important;
	outline: none !important;
	transition: border-color var(--hm-ag-transition), box-shadow var(--hm-ag-transition) !important;
}

.hm-albums-grid__search::placeholder {
	color: var(--hm-ag-text-muted) !important;
	opacity: 0.9;
}

.hm-albums-grid__search:focus {
	border-color: var(--hm-ag-brand) !important;
	box-shadow: 0 0 0 3px rgba(203, 30, 83, 0.18) !important;
}

.hm-albums-grid__search:focus-visible {
	border-color: var(--hm-ag-brand) !important;
	box-shadow: 0 0 0 3px rgba(203, 30, 83, 0.18) !important;
}

/* === Filters === */
.hm-albums-grid__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.65rem;
}

.hm-albums-grid__toolbar--view-only {
	justify-content: flex-end;
}

.hm-albums-grid__filters-toggle {
	display: inline-flex !important;
	align-items: center !important;
	gap: 0.4rem !important;
	padding: 0.45rem 0.85rem !important;
	border-radius: var(--hm-ag-radius-pill) !important;
	border: 1px solid var(--hm-ag-border) !important;
	background: var(--hm-ag-chip-bg) !important;
	color: var(--hm-ag-heading) !important;
	font-size: 0.88rem !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	margin: 0 !important;
	min-height: unset !important;
	height: auto !important;
	cursor: pointer !important;
	transition: background var(--hm-ag-transition), border-color var(--hm-ag-transition), color var(--hm-ag-transition) !important;
}

.hm-albums-grid__filters-toggle:hover,
.hm-albums-grid__filters-toggle:focus-visible,
.hm-albums-grid__filters-toggle[aria-expanded="true"] {
	border-color: rgba(203, 30, 83, 0.45) !important;
	color: var(--hm-ag-brand) !important;
}

.hm-albums-grid__filters-toggle svg {
	flex-shrink: 0;
}

.hm-albums-grid__view-toggle {
	display: inline-flex !important;
	align-items: center !important;
	gap: 2px !important;
	padding: 3px !important;
	background: var(--hm-ag-surface-soft) !important;
	border-radius: 10px !important;
	flex-shrink: 0 !important;
	border: 1px solid var(--hm-ag-border) !important;
	box-sizing: border-box !important;
}

.hm-albums-grid__view-btn,
.hm-albums-grid button.hm-albums-grid__view-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 34px !important;
	min-width: 34px !important;
	max-width: 34px !important;
	height: 34px !important;
	min-height: 34px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 2px solid transparent !important;
	border-radius: 8px !important;
	background: transparent !important;
	color: var(--hm-ag-text-muted) !important;
	cursor: pointer !important;
	box-shadow: none !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	font-size: 0 !important;
	line-height: 1 !important;
	transition: background var(--hm-ag-transition), color var(--hm-ag-transition), border-color var(--hm-ag-transition) !important;
}

.hm-albums-grid__view-btn:hover {
	color: var(--hm-ag-heading) !important;
}

.hm-albums-grid__view-btn.is-active {
	background: var(--hm-ag-chip-active-bg) !important;
	color: var(--hm-ag-chip-active-text) !important;
	border-color: transparent !important;
}

.hm-albums-grid__view-btn:focus-visible {
	outline: 2px solid var(--hm-ag-brand) !important;
	outline-offset: 2px !important;
}

.hm-albums-grid__filters {
	display: none;
	margin-bottom: 0.75rem;
}

.hm-albums-grid__filters.is-open {
	display: block;
}

.hm-albums-grid__filters-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem 0.5rem;
}

.hm-albums-grid__sort-label {
	font-size: 0.85rem !important;
	font-weight: 600 !important;
	color: var(--hm-ag-text-muted) !important;
	margin: 0 !important;
}

.hm-albums-grid__filter-sep {
	width: 1px;
	height: 1.35rem;
	background: var(--hm-ag-border);
	margin: 0 0.1rem;
}

.hm-albums-grid__chip {
	display: inline-flex !important;
	align-items: center !important;
	gap: 0.25rem !important;
	padding: 0.4rem 0.75rem !important;
	border-radius: var(--hm-ag-radius-pill) !important;
	border: 1px solid var(--hm-ag-border) !important;
	background: var(--hm-ag-chip-bg) !important;
	color: var(--hm-ag-heading) !important;
	font-size: 0.86rem !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	margin: 0 !important;
	min-height: unset !important;
	height: auto !important;
	transition: background var(--hm-ag-transition), color var(--hm-ag-transition), border-color var(--hm-ag-transition), transform 0.15s ease !important;
}

.hm-albums-grid__chip:hover {
	border-color: rgba(203, 30, 83, 0.45) !important;
	transform: translateY(-1px);
}

.hm-albums-grid__chip.is-active {
	background: var(--hm-ag-chip-active-bg) !important;
	color: var(--hm-ag-chip-active-text) !important;
	border-color: transparent !important;
}

.hm-albums-grid__chip:focus-visible {
	outline: 2px solid var(--hm-ag-brand) !important;
	outline-offset: 2px !important;
}

.hm-albums-grid__chip-arrow {
	opacity: 0.85;
}

.hm-albums-grid__chip.is-active .hm-albums-grid__chip-arrow {
	opacity: 1;
}

.hm-albums-grid__chip-arrow.is-up {
	transform: translateY(1px);
}

.hm-albums-grid__select {
	padding: 0.45rem 2rem 0.45rem 0.75rem !important;
	border-radius: var(--hm-ag-radius-pill) !important;
	border: 1px solid var(--hm-ag-border) !important;
	background-color: var(--hm-ag-chip-bg) !important;
	color: var(--hm-ag-heading) !important;
	font-size: 0.88rem !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	min-height: unset !important;
	height: auto !important;
	cursor: pointer !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666666' d='M1.4.6L6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: left 0.75rem center !important;
	background-size: 10px 7px !important;
	transition: border-color var(--hm-ag-transition), box-shadow var(--hm-ag-transition) !important;
}

.hm-albums-grid__select:hover {
	border-color: rgba(203, 30, 83, 0.45) !important;
}

.hm-albums-grid__select:focus {
	outline: none !important;
	border-color: var(--hm-ag-brand) !important;
	box-shadow: 0 0 0 3px rgba(203, 30, 83, 0.16) !important;
}

.hm-albums-grid__select.is-active {
	border-color: var(--hm-ag-brand) !important;
	color: var(--hm-ag-brand) !important;
}

html[data-hm-theme="dark"] .hm-albums-grid__select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23b3b3b3' d='M1.4.6L6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E") !important;
}

/* === Featured === */
.hm-albums-grid__featured-wrap {
	margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.hm-albums-grid.is-filtered .hm-albums-grid__featured-wrap {
	display: none;
}

.hm-albums-grid__featured-head {
	margin-bottom: 0.85rem;
}

.hm-albums-grid__featured-title,
.hm-albums-grid__catalog-title {
	margin: 0 !important;
	font-size: clamp(1.15rem, 2.2vw, 1.4rem) !important;
	font-weight: 800 !important;
	color: var(--hm-ag-heading) !important;
}

.hm-albums-grid__featured-sub {
	margin: 0.25rem 0 0 !important;
	font-size: 0.9rem !important;
	color: var(--hm-ag-text-muted) !important;
}

.hm-albums-grid__featured-row {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(148px, 180px);
	gap: 1rem;
	overflow-x: auto;
	padding: 0.35rem 0.15rem 0.85rem;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.hm-albums-grid__featured-row::-webkit-scrollbar {
	height: 0;
}

.hm-albums-grid__featured-row .hm-albums-grid__card {
	scroll-snap-align: start;
}

/* === Catalog grid === */
.hm-albums-grid__catalog-head {
	margin-bottom: 1rem;
}

.hm-albums-grid__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.15rem 0.85rem;
}

@media (min-width: 640px) {
	.hm-albums-grid__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.35rem 1rem;
	}
}

@media (min-width: 900px) {
	.hm-albums-grid__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 1200px) {
	.hm-albums-grid__grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 1.5rem 1.15rem;
	}
}

@media (min-width: 1500px) {
	.hm-albums-grid__grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

.hm-albums-grid__grid[data-view="list"] {
	grid-template-columns: 1fr;
	gap: 0.75rem;
}

.hm-albums-grid__grid[data-view="list"] .hm-albums-grid__card {
	flex-direction: row;
	align-items: center;
	gap: 1rem;
	padding: 0.65rem 0.75rem;
	background: var(--hm-ag-surface);
	border: 1px solid var(--hm-ag-border);
	border-radius: var(--hm-ag-radius-sm);
}

.hm-albums-grid__grid[data-view="list"] .hm-albums-grid__cover {
	width: 72px;
	height: 72px;
	flex: 0 0 72px;
}

.hm-albums-grid__grid[data-view="list"] .hm-albums-grid__play {
	opacity: 1;
	transform: none;
	width: 32px !important;
	min-width: 32px !important;
	max-width: 32px !important;
	height: 32px !important;
	min-height: 32px !important;
	inset: auto 6px 6px auto !important;
}

.hm-albums-grid__grid[data-view="list"] .hm-albums-grid__play-status {
	display: none !important;
}

.hm-albums-grid__grid[data-view="list"] .hm-albums-grid__play-icon {
	width: 14px;
	height: 14px;
}

.hm-albums-grid__grid[data-view="list"] .hm-albums-grid__body {
	min-width: 0;
	flex: 1;
}

.hm-albums-grid__grid[data-view="list"] .hm-albums-grid__title {
	-webkit-line-clamp: 1;
}

/* === Card === */
.hm-albums-grid__card {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	color: inherit;
	min-width: 0;
	animation: hm-ag-fade-up 0.45s ease both;
}

@keyframes hm-ag-fade-up {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hm-albums-grid__cover {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 8px;
	overflow: hidden;
	background: var(--hm-ag-cover-bg);
	box-shadow: var(--hm-ag-shadow);
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.hm-albums-grid__card:hover .hm-albums-grid__cover {
	transform: scale(1.02);
	box-shadow: 0 16px 36px rgba(32, 33, 90, 0.16);
}

.hm-albums-grid__cover-link {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
}

.hm-albums-grid__cover-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hm-albums-grid__cover-ph {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.4;
	font-size: 2.4rem;
	color: var(--hm-ag-heading);
}

.hm-albums-grid__year-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 1;
	padding: 0.2rem 0.5rem;
	border-radius: var(--hm-ag-radius-pill);
	background: rgba(32, 33, 90, 0.78);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	backdrop-filter: blur(6px);
	pointer-events: none;
}

html[data-hm-theme="dark"] .hm-albums-grid__year-badge {
	background: rgba(0, 0, 0, 0.55);
}

.hm-albums-grid button.hm-albums-grid__play,
.hm-albums-grid__card button.hm-albums-grid__play {
	position: absolute !important;
	inset: auto 10px 10px auto !important;
	width: 42px !important;
	min-width: 42px !important;
	max-width: 42px !important;
	height: 42px !important;
	min-height: 42px !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 999px !important;
	border: 0 !important;
	background: #f2357b !important;
	background-color: #f2357b !important;
	color: #111 !important;
	display: grid !important;
	place-items: center !important;
	cursor: pointer !important;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease !important;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28) !important;
	z-index: 2;
	font-size: 0 !important;
}

.hm-albums-grid__play-ring {
	position: absolute;
	inset: -4px;
	border-radius: 999px;
	border: 2px solid transparent;
	border-top-color: #fff;
	border-right-color: rgba(255, 255, 255, 0.35);
	opacity: 0;
	pointer-events: none;
	transform: rotate(0deg);
}

.hm-albums-grid__play-icon {
	display: block;
	position: relative;
	z-index: 1;
}

.hm-albums-grid__play-status {
	position: absolute;
	left: 10px;
	right: 58px;
	bottom: 12px;
	z-index: 3;
	margin: 0;
	padding: 0.35rem 0.55rem;
	border-radius: 999px;
	background: rgba(15, 15, 35, 0.78);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	backdrop-filter: blur(6px);
	pointer-events: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.hm-albums-grid__play-status[hidden] {
	display: none !important;
}

.hm-albums-grid__card:hover .hm-albums-grid__play,
.hm-albums-grid__card:focus-within .hm-albums-grid__play,
.hm-albums-grid__card.is-play-loading .hm-albums-grid__play {
	opacity: 1;
	transform: translateY(0);
}

.hm-albums-grid__card.is-play-loading .hm-albums-grid__play {
	opacity: 1 !important;
	cursor: wait !important;
}

.hm-albums-grid__play.is-loading .hm-albums-grid__play-ring {
	opacity: 1;
	animation: hm-ag-spin 0.75s linear infinite;
}

.hm-albums-grid__play.is-loading .hm-albums-grid__play-icon {
	opacity: 0.55;
}

@media (hover: none) {
	.hm-albums-grid__play {
		opacity: 1 !important;
		transform: none !important;
	}
}

.hm-albums-grid__play:hover {
	box-shadow: 0 8px 20px rgba(242, 53, 123, 0.45) !important;
}

.hm-albums-grid__play:disabled {
	opacity: 0.55 !important;
	cursor: wait !important;
}

.hm-albums-grid__card.is-play-loading .hm-albums-grid__play:disabled {
	opacity: 1 !important;
}

.hm-albums-grid__body {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.hm-albums-grid__title-link {
	color: inherit;
	text-decoration: none;
}

.hm-albums-grid__title-link:hover .hm-albums-grid__title {
	color: var(--hm-ag-brand);
}

.hm-albums-grid__title {
	margin: 0 !important;
	font-size: 0.98rem !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	color: var(--hm-ag-heading) !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.15s ease;
}

.hm-albums-grid__singer {
	display: inline-block;
	font-size: 0.88rem !important;
	font-weight: 600 !important;
	color: var(--hm-ag-text) !important;
	text-decoration: none;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

a.hm-albums-grid__singer:hover {
	color: var(--hm-ag-brand) !important;
	text-decoration: underline;
}

.hm-albums-grid__meta {
	margin: 0 !important;
	font-size: 0.8rem !important;
	color: var(--hm-ag-text-muted) !important;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.35rem;
}

.hm-albums-grid__meta-sep {
	opacity: 0.6;
}

.hm-albums-grid__empty {
	grid-column: 1 / -1;
	margin: 2rem 0 !important;
	text-align: center;
	color: var(--hm-ag-text-muted) !important;
	font-size: 1.05rem !important;
}

/* === Infinite scroll === */
.hm-albums-grid__footer {
	display: flex;
	justify-content: center;
	padding: 1.75rem 0 0.5rem;
}

.hm-albums-grid__infinite {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	color: var(--hm-ag-text-muted);
	font-size: 0.92rem;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.hm-albums-grid__footer.is-busy .hm-albums-grid__infinite {
	opacity: 1;
}

.hm-albums-grid__spinner {
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 50%;
	border: 2px solid rgba(203, 30, 83, 0.25);
	border-top-color: var(--hm-ag-brand);
	animation: hm-ag-spin 0.7s linear infinite;
}

@keyframes hm-ag-spin {
	to {
		transform: rotate(360deg);
	}
}

.hm-albums-grid.is-loading .hm-albums-grid__grid {
	opacity: 0.55;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.hm-albums-grid__toast {
	position: fixed;
	bottom: 5.5rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 9999;
	padding: 0.7rem 1.15rem;
	border-radius: var(--hm-ag-radius-pill);
	background: #1d2327;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 600;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
	max-width: min(90vw, 360px);
	text-align: center;
}

.hm-albums-grid__toast.is-error {
	background: #b42318;
}

.hm-albums-grid-notice {
	padding: 1rem;
	text-align: center;
	color: #666;
}

/* Elementor overrides */
.elementor-widget-shortcode .hm-albums-grid button.hm-albums-grid__chip,
.elementor-element .hm-albums-grid button.hm-albums-grid__chip,
.elementor-widget-shortcode .hm-albums-grid,
.elementor-widget-shortcode .hm-albums-grid *,
.elementor-element .hm-albums-grid,
.elementor-element .hm-albums-grid * {
	font-family: var(--hm-ag-font) !important;
}

@media (max-width: 640px) {
	.hm-albums-grid {
		--hm-ag-pad-x: 4.5%;
	}

	.hm-albums-grid__stats {
		grid-template-columns: 1fr;
	}

	.hm-albums-grid__filter-sep {
		display: none;
	}
}
