.hrs-card,
.hrs-card * {
	box-sizing: border-box;
}

.hrs-card {
	--hrs-accent: #8b5cf6;
	--hrs-bg: #10131c;
	--hrs-bg-soft: rgba(255, 255, 255, 0.07);
	--hrs-bg-softer: rgba(255, 255, 255, 0.045);
	--hrs-border: rgba(255, 255, 255, 0.12);
	--hrs-text: #ffffff;
	--hrs-muted: #afb5c5;
	--hrs-shadow: 0 20px 55px rgba(8, 10, 18, 0.28);
	position: relative;
	isolation: isolate;
	width: 100%;
	max-width: 430px;
	margin: 0 auto;
	padding: 16px;
	overflow: hidden;
	color: var(--hrs-text);
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 46%),
		var(--hrs-bg);
	border: 1px solid var(--hrs-border);
	border-radius: 22px;
	box-shadow: var(--hrs-shadow);
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 14px;
	line-height: 1.35;
}

.hrs-theme-light {
	--hrs-bg: #ffffff;
	--hrs-bg-soft: rgba(17, 24, 39, 0.055);
	--hrs-bg-softer: rgba(17, 24, 39, 0.035);
	--hrs-border: rgba(17, 24, 39, 0.11);
	--hrs-text: #121722;
	--hrs-muted: #687083;
	--hrs-shadow: 0 20px 55px rgba(21, 27, 40, 0.14);
}

.hrs-theme-plum {
	--hrs-bg: #241425;
	--hrs-bg-soft: rgba(255, 255, 255, 0.075);
	--hrs-bg-softer: rgba(255, 255, 255, 0.045);
	--hrs-border: rgba(255, 255, 255, 0.13);
	--hrs-text: #fff9ff;
	--hrs-muted: #d0bdd0;
	--hrs-shadow: 0 20px 55px rgba(45, 18, 48, 0.3);
}

.hrs-card__glow {
	position: absolute;
	z-index: -1;
	top: -90px;
	right: -90px;
	width: 220px;
	height: 220px;
	background: radial-gradient(circle, color-mix(in srgb, var(--hrs-accent) 34%, transparent), transparent 68%);
	border-radius: 50%;
	pointer-events: none;
}

.hrs-card__header {
	display: grid;
	grid-template-columns: 82px minmax(0, 1fr);
	gap: 13px;
	align-items: center;
	margin-bottom: 14px;
}

.hrs-card__artwork {
	position: relative;
	width: 82px;
	aspect-ratio: 1;
	overflow: hidden;
	background: linear-gradient(145deg, var(--hrs-accent), #111827 86%);
	border: 1px solid var(--hrs-border);
	border-radius: 15px;
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

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

.hrs-card__artwork-placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	color: #fff;
}

.hrs-card__artwork-placeholder svg {
	width: 38px;
	height: 38px;
}

.hrs-card__heading {
	min-width: 0;
}

.hrs-card__eyebrow {
	display: flex;
	gap: 7px;
	align-items: center;
	margin: 0 0 5px;
	color: var(--hrs-muted);
	font-size: 10px;
	font-weight: 750;
	letter-spacing: 0.115em;
	line-height: 1.2;
	text-transform: uppercase;
}

.hrs-spotify-icon {
	flex: 0 0 auto;
	width: 23px;
	height: 23px;
}

.hrs-card__eyebrow .hrs-spotify-icon {
	width: 22px;
	height: 22px;
}

.hrs-card__title {
	margin: 0 !important;
	padding: 0 !important;
	color: var(--hrs-text) !important;
	font-family: inherit !important;
	font-size: 20px !important;
	font-size: clamp(18px, 6.2cqw, 23px) !important;
	font-weight: 780 !important;
	letter-spacing: -0.025em;
	line-height: 1.08 !important;
	text-wrap: balance;
}

.hrs-card__artist {
	margin: 5px 0 0 !important;
	padding: 0 !important;
	color: var(--hrs-muted) !important;
	font-size: 12.5px !important;
	font-weight: 550;
	line-height: 1.2 !important;
}

.hrs-player {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) auto;
	gap: 10px;
	align-items: center;
	margin: 0 0 11px;
	padding: 10px;
	background: var(--hrs-bg-soft);
	border: 1px solid var(--hrs-border);
	border-radius: 14px;
}

.hrs-player__play {
	display: grid;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	place-items: center;
	color: #fff;
	background: var(--hrs-accent);
	border: 0;
	border-radius: 50%;
	box-shadow: 0 8px 20px color-mix(in srgb, var(--hrs-accent) 35%, transparent);
	cursor: pointer;
	transition: transform 160ms ease, filter 160ms ease;
	-webkit-appearance: none;
	appearance: none;
}

.hrs-player__play:hover {
	filter: brightness(1.08);
	transform: translateY(-1px) scale(1.02);
}

.hrs-player__play:active {
	transform: translateY(0) scale(0.97);
}

.hrs-player__play svg {
	display: block;
	width: 20px;
	height: 20px;
}

.hrs-player__play .hrs-icon-pause {
	display: none;
}

.hrs-player.is-playing .hrs-icon-play {
	display: none;
}

.hrs-player.is-playing .hrs-icon-pause {
	display: inline-flex;
}

.hrs-player__wave {
	position: relative;
	display: block;
	min-width: 0;
	height: 44px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border-radius: 5px;
	cursor: pointer;
	touch-action: none;
}

.hrs-wave {
	position: absolute;
	inset: 0;
	display: flex;
	gap: 2px;
	align-items: center;
	width: 100%;
	height: 100%;
}

.hrs-wave span {
	flex: 1 1 2px;
	width: 3px;
	min-width: 1px;
	max-width: 4px;
	height: var(--hrs-bar);
	max-height: 42px;
	background: currentColor;
	border-radius: 999px;
}

.hrs-wave--base {
	color: var(--hrs-muted);
	opacity: 0.46;
}

.hrs-wave--played {
	width: 100%;
	color: var(--hrs-accent);
	clip-path: inset(0 100% 0 0);
	-webkit-clip-path: inset(0 100% 0 0);
}

.hrs-wave--played span {
	flex-shrink: 1;
}

.hrs-player__time {
	display: flex;
	min-width: 57px;
	gap: 3px;
	justify-content: flex-end;
	color: var(--hrs-muted);
	font-size: 10.5px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.hrs-player__slash {
	opacity: 0.55;
}

.hrs-player__error {
	grid-column: 1 / -1;
	margin: 2px 0 0 !important;
	padding: 0 !important;
	color: #fca5a5 !important;
	font-size: 11px !important;
}

.hrs-player--empty {
	grid-template-columns: 34px minmax(0, 1fr) auto;
	min-height: 58px;
	color: var(--hrs-muted);
}

.hrs-player__empty-icon {
	display: grid;
	width: 34px;
	height: 34px;
	place-items: center;
	color: var(--hrs-accent);
	background: var(--hrs-bg-softer);
	border-radius: 50%;
}

.hrs-player__empty-icon svg {
	width: 18px;
	height: 18px;
}

.hrs-player__empty-wave {
	display: flex;
	gap: 2px;
	align-items: center;
	height: 34px;
	overflow: hidden;
	color: var(--hrs-muted);
	opacity: 0.44;
}

.hrs-player__empty-wave span {
	flex: 1 1 2px;
	width: 3px;
	min-width: 1px;
	max-width: 4px;
	height: calc(var(--hrs-bar) * 0.7);
	background: currentColor;
	border-radius: 99px;
}

.hrs-player__empty-label {
	font-size: 10.5px;
	font-weight: 650;
	white-space: nowrap;
}

.hrs-spotify-button,
.hrs-card a.hrs-spotify-button {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr) 18px;
	gap: 9px;
	align-items: center;
	width: 100%;
	min-height: 46px;
	margin: 0 0 11px;
	padding: 10px 13px;
	color: #07110b !important;
	background: #1ed760;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 13px;
	box-shadow: 0 10px 24px rgba(30, 215, 96, 0.18);
	font-family: inherit;
	font-size: 13px;
	font-weight: 780;
	line-height: 1.2;
	text-align: left;
	text-decoration: none !important;
	transition: filter 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.hrs-spotify-button .hrs-spotify-icon {
	width: 24px;
	height: 24px;
}

.hrs-spotify-button:hover,
.hrs-card a.hrs-spotify-button:hover {
	color: #07110b !important;
	filter: brightness(1.035);
	box-shadow: 0 13px 30px rgba(30, 215, 96, 0.25);
	transform: translateY(-1px);
}

.hrs-spotify-button__arrow {
	display: inline-flex;
	justify-self: end;
}

.hrs-spotify-button__arrow svg {
	width: 17px;
	height: 17px;
}

.hrs-resources {
	display: grid;
	grid-template-columns: 1fr;
	gap: 7px;
	margin: 0;
	padding: 0;
}

.hrs-resource,
.hrs-card a.hrs-resource {
	display: grid;
	grid-template-columns: 29px minmax(0, 1fr) 16px;
	gap: 9px;
	align-items: center;
	min-height: 43px;
	padding: 8px 10px;
	color: var(--hrs-text) !important;
	background: var(--hrs-bg-softer);
	border: 1px solid var(--hrs-border);
	border-radius: 11px;
	font-family: inherit;
	font-size: 12px;
	font-weight: 680;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.hrs-resource:hover,
.hrs-card a.hrs-resource:hover {
	color: var(--hrs-text) !important;
	background: var(--hrs-bg-soft);
	border-color: color-mix(in srgb, var(--hrs-accent) 50%, var(--hrs-border));
	transform: translateX(2px);
}

.hrs-resource__icon {
	display: grid;
	width: 29px;
	height: 29px;
	place-items: center;
	color: var(--hrs-accent);
	background: var(--hrs-bg-soft);
	background: color-mix(in srgb, var(--hrs-accent) 13%, transparent);
	border-radius: 8px;
}

.hrs-resource__icon svg {
	width: 17px;
	height: 17px;
}

.hrs-resource__arrow {
	display: inline-flex;
	justify-self: end;
	color: var(--hrs-muted);
}

.hrs-resource__arrow svg {
	width: 15px;
	height: 15px;
}

.hrs-card button:focus-visible,
.hrs-card a:focus-visible,
.hrs-player__wave:focus-visible {
	outline: 3px solid #a78bfa;
	outline-color: color-mix(in srgb, var(--hrs-accent) 70%, #fff);
	outline-offset: 3px;
}

@supports (container-type: inline-size) {
	.hrs-card {
		container-type: inline-size;
	}

	@container (min-width: 350px) {
		.hrs-resources {
			grid-template-columns: repeat(3, minmax(0, 1fr));
		}

		.hrs-resource,
		.hrs-card a.hrs-resource {
			grid-template-columns: 1fr;
			gap: 5px;
			justify-items: center;
			min-height: 70px;
			padding: 9px 5px;
			text-align: center;
		}

		.hrs-resource__arrow {
			display: none;
		}
	}
}

@media (prefers-reduced-motion: reduce) {
	.hrs-card *,
	.hrs-card *::before,
	.hrs-card *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
