main.rcf-artist-directory,
main.rcf-catalogue-page {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: safe center;
	height: calc(100svh - var(--wp-admin--admin-bar--height, 0px));
	min-height: calc(100svh - var(--wp-admin--admin-bar--height, 0px)) !important;
	padding-block: clamp(12px, 3.5vh, 32px) !important;
}
/* Keep the headings and page links visible while the list uses the remaining space. */
main.rcf-artist-directory > .rcf-listen-content,
main.rcf-catalogue-page > .rcf-listen-content,
.rcf-artist-directory .rcf-artist-index {
	display: flex;
	flex-direction: column;
	min-height: 0;
}
.rcf-catalogue-page .rcf-release-list {
	box-sizing: border-box;
	width: 100%;
}
main.rcf-artist-directory > .rcf-listen-content {
	width: 100%;
	max-width: 100%;
	padding-inline: 0;
}
main.rcf-artist-directory .rcf-artist-index {
	box-sizing: border-box;
	width: max-content;
	min-width: min(100%, 268px);
	max-width: 100%;
	margin-inline: auto;
}
.rcf-artist-index .rcf-directory-measure {
	display: grid;
	height: 0;
	flex: none;
	visibility: hidden;
	overflow: hidden;
	margin: 0 !important;
	padding: 0;
}
.rcf-directory-measure > span {
	grid-area: 1 / 1;
	display: flex;
	align-items: center;
	gap: 12px;
	padding-inline: 14px;
	white-space: nowrap;
}
.rcf-directory-measure > span::before {
	content: attr(data-name);
	font-size: 14px;
	font-weight: 600;
}
.rcf-directory-measure > span::after {
	content: attr(data-count);
	font-size: 12px;
}
.rcf-artist-directory .rcf-artist-name {
	overflow-wrap: anywhere;
}
@media (max-width: 782px) {
	.rcf-artist-directory .rcf-artist-name {
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		color: #f4efdb;
	}
}
.rcf-artist-directory .rcf-artist-grid {
	box-sizing: border-box;
	width: 100%;
}
.rcf-artist-directory .rcf-artist-count {
	flex: none;
	white-space: nowrap;
}
main.rcf-catalogue-page > .rcf-directory-home,
.rcf-listen-content > :not(.rcf-artist-index, .rcf-release-list),
.rcf-artist-directory .rcf-artist-index > .wp-block-query-pagination {
	flex-shrink: 0;
}
.rcf-artist-directory .rcf-artist-index .rcf-artist-grid,
.rcf-catalogue-page .rcf-release-list {
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior-y: contain;
	scroll-padding: 3px;
}
.rcf-catalogue-page .rcf-release-pages,
.rcf-artist-directory .rcf-artist-index .wp-block-query-pagination {
	position: relative;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: safe center;
	gap: 4px;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scrollbar-width: thin;
	margin: 10px auto 0;
	line-height: 1.15;
	font-size: 13px;
	text-align: center;
}
.rcf-artist-index .wp-block-query-pagination .wp-block-query-pagination-numbers {
	display: flex;
	flex: none;
	flex-wrap: nowrap;
	gap: 4px;
	margin: 0;
}
.rcf-artist-directory .rcf-artist-index .wp-block-query-pagination {
	contain: inline-size;
}
.rcf-artist-index .wp-block-query-pagination a,
.rcf-artist-index .wp-block-query-pagination .current,
.rcf-release-pages .page-numbers {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	flex: none;
	min-width: 30px;
	min-height: 30px;
	margin: 0;
	padding: 4px 7px;
	border: 1px solid #998451;
	border-radius: 0;
	background: #10262b;
	color: #f4efdb;
	font-size: inherit;
	text-decoration: none;
}
.rcf-release-pages [aria-current="page"],
.rcf-artist-index .wp-block-query-pagination [aria-current="page"],
.rcf-release-pages a:hover,
.rcf-artist-index .wp-block-query-pagination a:hover {
	background: #24515a;
	color: #fff;
}
.rcf-release-pages a:focus-visible,
.rcf-artist-index .wp-block-query-pagination a:focus-visible {
	outline: 2px solid #f3cf9a;
	outline-offset: 1px;
}

/* WordPress can place the Spotify iframe directly in its block or inside a Jetpack wrapper. */
.rcf-catalogue-page .rcf-release .wp-block-embed-spotify :is(.wp-block-embed__wrapper, .embed-spotify):has(> iframe) {
	--rcf-player-crop: 6px;
	--rcf-player-height: 352px;
	position: relative;
	overflow: hidden;
	height: calc(var(--rcf-player-height) - 2 * var(--rcf-player-crop));
}
.rcf-catalogue-page .rcf-release .wp-block-embed-spotify :is(.wp-block-embed__wrapper, .embed-spotify) > iframe {
	position: absolute;
	top: calc(0px - var(--rcf-player-crop));
	left: calc(0px - var(--rcf-player-crop));
	width: calc(100% + 2 * var(--rcf-player-crop));
	max-width: none;
	height: var(--rcf-player-height);
	margin: 0;
}
