body.hahp-party-page .entry-title,
body.hahp-party-page .page-title,
body.hahp-party-page .wp-block-post-title,
body.hahp-party-page .hah-article__title {
	display: none !important;
}

/* The party app is available in all 13 theme languages. Keep every option in
   the header language switcher visible on party pages; the switcher navigates
   to the equivalent /{lang}/party/ URL and stores hah_lang. */
.hahp-party {
	--hahp-primary: var(--hah-color-primary, #e7a083);
	--hahp-primary-dark: var(--hah-color-primary-dark, #d4845f);
	--hahp-bg: var(--hah-color-bg, #fdf8f5);
	--hahp-card: var(--hah-color-bg-card, #fff);
	--hahp-text: var(--hah-color-text, #3d2c24);
	--hahp-muted: var(--hah-color-text-light, #7a6560);
	--hahp-border: var(--hah-color-border, #ede0da);
	box-sizing: border-box;
	color: var(--hahp-text);
	font-family: inherit;
	margin: 0 auto;
	max-width: 1120px;
	padding: 20px 16px;
}

.hahp-party *,
.hahp-party *::before,
.hahp-party *::after {
	box-sizing: border-box;
}

.hahp-party [hidden] {
	display: none !important;
}

.hahp-hero {
	margin: 0 auto 28px;
	max-width: 720px;
	text-align: center;
}

.hahp-brand {
	align-items: center;
	color: var(--hahp-text);
	display: inline-flex;
	font-size: 15px;
	font-weight: 700;
	gap: 9px;
	margin-bottom: 26px;
	text-decoration: none;
}

.hahp-brand__mark {
	align-items: center;
	background: var(--hahp-primary);
	border-radius: 50%;
	color: #fff;
	display: inline-flex;
	font-size: 15px;
	height: 34px;
	justify-content: center;
	width: 34px;
}

.hahp-eyebrow {
	color: var(--hahp-primary-dark);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	margin: 0 0 8px;
}

.hahp-hero h1 {
	color: var(--hahp-text);
	font-size: clamp(30px, 5vw, 48px);
	letter-spacing: -0.035em;
	line-height: 1.12;
	margin: 0;
}

.hahp-intro {
	color: var(--hahp-muted);
	font-size: 17px;
	line-height: 1.6;
	margin: 14px auto 0;
	max-width: 580px;
}

.hahp-card {
	background: var(--hahp-card);
	border: 1px solid var(--hahp-border);
	border-radius: 20px;
	box-shadow: 0 16px 48px rgba(61, 44, 36, 0.08);
	margin: 0 auto;
	max-width: 1020px;
	padding: clamp(18px, 3vw, 30px);
}

.hahp-message {
	border-radius: 9px;
	color: var(--hahp-muted);
	margin: 0;
	padding: 0;
}

.hahp-message:not(:empty) {
	background: var(--hahp-bg);
	border: 1px solid var(--hahp-border);
	margin-bottom: 18px;
	padding: 12px 14px;
}

.hahp-message[data-kind="error"] {
	border-color: #c75846;
	color: #983d30;
}

.hahp-message[data-kind="success"] {
	border-color: #8bb98a;
	color: #426c41;
}

.hahp-message--popup {
	background: #fff;
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
	left: 50%;
	max-width: min(600px, calc(100vw - 24px));
	padding: 14px 18px;
	position: fixed;
	top: max(12px, env(safe-area-inset-top));
	transform: translateX(-50%);
	width: max-content;
	z-index: 100001;
}

.hahp-message--popup[data-kind="error"] {
	background: #fff7f5;
	border-color: #c75846;
	color: #983d30;
}

.hahp-home {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hahp-join,
.hahp-panel,
.hahp-host-tools {
	background: var(--hahp-bg);
	border: 1px solid var(--hahp-border);
	border-radius: 14px;
	padding: 18px;
}

.hahp-home__hero {
	background:
		radial-gradient(ellipse at 50% 0, rgba(255, 255, 255, 0.9), transparent 68%),
		var(--hahp-bg);
	border: 1px solid var(--hahp-border);
	border-radius: 20px;
	grid-column: 1 / -1;
	padding: clamp(28px, 7vw, 72px) 20px;
	text-align: center;
}

.hahp-home__hero .hahp-eyebrow {
	margin-bottom: 12px;
}

.hahp-home__hero h1 {
	color: var(--hahp-text);
	font-size: clamp(36px, 6vw, 64px);
	letter-spacing: -0.05em;
	line-height: 1.04;
	margin: 0;
}

.hahp-home__hero .hahp-intro {
	font-size: clamp(16px, 2vw, 19px);
	margin: 18px auto 24px;
}

.hahp-button--create {
	background: linear-gradient(135deg, var(--hahp-primary-dark), #a9533c);
	border-radius: 13px;
	box-shadow: 0 10px 24px rgba(169, 83, 60, 0.24);
	font-size: 18px;
	min-height: 58px;
	padding: 15px 28px;
}

.hahp-button--create:hover {
	transform: translateY(-1px);
}

.hahp-home .hahp-join {
	align-items: center;
	display: grid;
	gap: 16px;
	grid-column: 1 / -1;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.hahp-home .hahp-join label {
	margin: 0;
}

.hahp-home__section {
	background: var(--hahp-bg);
	border: 1px solid var(--hahp-border);
	border-radius: 18px;
	grid-column: 1 / -1;
	padding: clamp(20px, 3vw, 28px);
}

.hahp-home__section h2 {
	color: var(--hahp-text);
	font-size: clamp(20px, 2.4vw, 24px);
	letter-spacing: -0.02em;
	line-height: 1.25;
	margin: 0 0 20px;
}

.hahp-my-rooms__intro {
	color: var(--hahp-muted);
	font-size: 14px;
	line-height: 1.55;
	margin: -10px 0 16px;
}

.hahp-my-rooms {
	display: grid;
	gap: 10px;
}

.hahp-my-room {
	align-items: center;
	background: var(--hahp-card);
	border: 1px solid var(--hahp-border);
	border-radius: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: space-between;
	padding: 12px 14px;
}

.hahp-my-room__info {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.hahp-my-room__info strong {
	color: var(--hahp-text);
	font-size: 16px;
	letter-spacing: 0.04em;
}

.hahp-my-room__info span {
	color: var(--hahp-muted);
	font-size: 13px;
}

.hahp-my-room__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hahp-home__steps ol {
	counter-reset: hahp-step;
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.hahp-home__steps li {
	align-content: start;
	background: var(--hahp-card);
	border: 1px solid var(--hahp-border);
	border-radius: 14px;
	box-shadow: 0 8px 22px rgba(61, 44, 36, 0.05);
	counter-increment: hahp-step;
	display: grid;
	gap: 12px;
	padding: 20px;
	transition: box-shadow 160ms ease, transform 160ms ease;
}

.hahp-home__steps li:hover {
	box-shadow: 0 14px 30px rgba(61, 44, 36, 0.1);
	transform: translateY(-2px);
}

.hahp-home__steps li::before {
	align-items: center;
	background: linear-gradient(135deg, var(--hahp-primary), var(--hahp-primary-dark));
	border-radius: 50%;
	box-shadow: 0 6px 14px rgba(212, 132, 95, 0.28);
	color: #fff;
	content: counter(hahp-step);
	display: flex;
	font-size: 15px;
	font-weight: 800;
	height: 36px;
	justify-content: center;
	width: 36px;
}

.hahp-home__steps li strong {
	font-size: 16px;
	line-height: 1.35;
}

.hahp-home__steps li span {
	color: var(--hahp-muted);
	font-size: 14px;
	line-height: 1.6;
	margin: 0;
}

/* Instruction video above "How it works". */
.hahp-howto__video {
	background: #14102b;
	border: 1px solid var(--hahp-border);
	border-radius: 12px;
	overflow: hidden;
}

.hahp-howto__video video {
	display: block;
	height: auto;
	margin: 0 auto;
	max-height: min(56vw, 420px);
	object-fit: contain;
	width: 100%;
}

.hahp-home__faq details {
	background: var(--hahp-card);
	border: 1px solid var(--hahp-border);
	border-radius: 12px;
	margin-bottom: 10px;
	overflow: hidden;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.hahp-home__faq details:last-child {
	margin-bottom: 0;
}

.hahp-home__faq details[open] {
	border-color: var(--hahp-primary);
	box-shadow: 0 8px 22px rgba(61, 44, 36, 0.06);
}

.hahp-home__faq summary {
	align-items: center;
	cursor: pointer;
	display: flex;
	font-weight: 700;
	gap: 12px;
	justify-content: space-between;
	line-height: 1.4;
	list-style: none;
	padding: 14px 16px;
}

.hahp-home__faq summary::-webkit-details-marker {
	display: none;
}

.hahp-home__faq summary::after {
	color: var(--hahp-primary-dark);
	content: "+";
	flex: 0 0 auto;
	font-size: 20px;
	line-height: 1;
}

.hahp-home__faq details[open] summary::after {
	content: "−";
}

.hahp-home__faq details p {
	border-top: 1px solid var(--hahp-border);
	color: var(--hahp-muted);
	font-size: 14px;
	line-height: 1.6;
	margin: 0;
	padding: 12px 16px 16px;
}

.hahp-home__copy p,
.hahp-home__copy li {
	color: var(--hahp-muted);
	font-size: 14px;
	line-height: 1.6;
}

.hahp-home__copy p {
	margin: 0;
}

.hahp-home__copy ul {
	background: var(--hahp-card);
	border: 1px solid var(--hahp-border);
	border-radius: 12px;
	list-style: none;
	margin: 0;
	padding: 6px 16px;
}

.hahp-home__copy li {
	border-bottom: 1px solid var(--hahp-border);
	padding: 10px 0;
}

.hahp-home__copy li:last-child {
	border-bottom: 0;
}

.hahp-home__copy li::before {
	color: var(--hahp-primary-dark);
	content: "•";
	font-weight: 800;
	margin-right: 8px;
}

.hahp-home__actions label,
.hahp-join label,
.hahp-guest label {
	display: block;
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 8px;
}

.hahp-party input {
	background: #fff;
	border: 1px solid var(--hahp-border);
	border-radius: 9px;
	color: var(--hahp-text);
	font: inherit;
	min-height: 46px;
	padding: 10px 12px;
	width: 100%;
}

.hahp-party input:focus-visible,
.hahp-party select:focus-visible,
.hahp-party button:focus-visible,
.hahp-party a:focus-visible {
	outline: 3px solid var(--hahp-primary);
	outline-offset: 3px;
}

.hahp-button {
	align-items: center;
	background: var(--hahp-primary-dark);
	border: 1px solid transparent;
	border-radius: 9px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-weight: 700;
	justify-content: center;
	min-height: 44px;
	padding: 10px 16px;
	text-align: center;
	text-decoration: none;
	transition: filter 120ms ease, opacity 120ms ease;
}

.hahp-button:hover {
	color: #fff;
	filter: brightness(0.94);
}

.hahp-button:disabled {
	cursor: wait;
	opacity: 0.65;
}

.hahp-button[aria-busy="true"]::before {
	animation: hahp-spin 700ms linear infinite;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	content: "";
	flex: 0 0 14px;
	height: 14px;
	margin-right: 8px;
	width: 14px;
}

@keyframes hahp-spin {
	to {
		transform: rotate(360deg);
	}
}

.hahp-button--secondary {
	background: #fff;
	border-color: var(--hahp-border);
	color: var(--hahp-text);
}

.hahp-button--secondary:hover {
	color: var(--hahp-text);
}

.hahp-button--danger {
	background: #a53e33;
	color: #fff;
}

.hahp-button--small {
	font-size: 13px;
	min-height: 36px;
	padding: 7px 10px;
}

.hahp-button__icon {
	display: block;
	flex: 0 0 16px;
	height: 16px;
	width: 16px;
}

.hahp-join {
	align-self: stretch;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.hahp-join__row,
.hahp-search__form {
	display: flex;
	gap: 10px;
}

.hahp-join__row input,
.hahp-search__form input {
	flex: 1 1 auto;
	min-width: 0;
}

.hahp-playlist-search input {
	flex: 1 1 auto;
}

/* Both search fields show the same inline spinner while a search is running. */
.hahp-search-field {
	align-items: center;
	display: flex;
	gap: 9px;
	min-width: 0;
}

.hahp-search-field input {
	flex: 1 1 auto;
	min-width: 0;
}

.hahp-search-spinner {
	animation: hahp-spin 700ms linear infinite;
	border: 2px solid var(--hahp-primary-dark, #d4845f);
	border-right-color: transparent;
	border-radius: 50%;
	color: var(--hahp-primary-dark, #d4845f);
	flex: 0 0 16px;
	height: 16px;
	width: 16px;
}

.hahp-search-spinner[hidden] {
	display: none;
}

.hahp-party[dir="rtl"] .hahp-search-field {
	flex-direction: row-reverse;
}

.hahp-room {
	display: grid;
	gap: 18px;
}

.hahp-room__toolbar {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: space-between;
}

.hahp-room__code {
	font-size: 20px;
}

.hahp-room__code strong {
	background: var(--hahp-bg);
	border: 1px solid var(--hahp-border);
	border-radius: 8px;
	display: inline-block;
	font-size: 24px;
	letter-spacing: 0.12em;
	padding: 6px 12px;
}

.hahp-link {
	color: var(--hahp-primary-dark);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.hahp-host-tools {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	min-width: 0;
}

.hahp-host-tools--queue {
	background: transparent;
	border: 0;
	border-top: 1px solid var(--hahp-border);
	border-radius: 0;
	margin-top: 16px;
	padding: 14px 0 0;
}

.hahp-room__codes {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.hahp-room__codes-row {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	min-width: 0;
}

/* The share button always sits centered on its own line below the code. */
.hahp-room__codes-row--share {
	align-items: center;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 8px;
	text-align: center;
	width: 100%;
}

.hahp-room__codes-row--share .hahp-room__code {
	white-space: nowrap;
}

.hahp-room__codes-row--guests {
	justify-content: center;
}

.hahp-room__guests {
	background: transparent;
	border: 0;
	color: var(--hahp-primary-dark);
	cursor: pointer;
	font-size: 0.86rem;
	padding: 0;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.hahp-room__guests:focus-visible {
	outline: 2px solid var(--hahp-primary-dark);
	outline-offset: 3px;
}

.hahp-room__tv-code {
	align-items: center;
	background: var(--hahp-bg);
	border: 1px solid var(--hahp-border);
	border-radius: 8px;
	color: var(--hahp-primary-dark);
	display: inline-flex;
	flex: 0 1 auto;
	font-size: 15px;
	gap: 8px;
	min-width: 0;
	padding: 6px 10px;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.hahp-room__tv-code strong {
	font-weight: 700;
	letter-spacing: 0.02em;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hahp-room__tv-code-icon {
	flex-shrink: 0;
	height: 1em;
	line-height: 1;
	text-decoration: none;
	width: 1em;
}

.hahp-room__tv-code:hover,
.hahp-room__tv-code:focus-visible {
	border-color: var(--hahp-primary-dark);
}

.hahp-room__tv-code:focus-visible {
	outline: 2px solid var(--hahp-primary-dark);
	outline-offset: 2px;
}

.hahp-room__tv-link {
	align-items: center;
	display: flex;
	flex-wrap: nowrap;
	gap: 6px;
}

/* The host TV code and its URL always share one line. The Stay Home switch
   starts on its own line, including desktop and landscape phones. */
.hahp-party:not(.hahp-party--tv) .hahp-room__tv-link {
	flex-wrap: wrap;
	gap: 4px;
}

.hahp-party:not(.hahp-party--tv) .hahp-room__tv-code {
	flex: 1 1 100%;
}

.hahp-room__tv-copy,
.hahp-room__code-copy {
	align-items: center;
	background: transparent;
	border: 1px solid var(--hahp-border);
	border-radius: 999px;
	color: var(--hahp-primary-dark);
	cursor: pointer;
	display: inline-flex;
	flex-shrink: 0;
	font: inherit;
	font-size: 0.78rem;
	gap: 5px;
	min-height: 26px;
	padding: 3px 10px;
	touch-action: manipulation;
	white-space: nowrap;
}

.hahp-room__tv-copy svg,
.hahp-room__code-copy svg {
	fill: none;
	height: 13px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
	width: 13px;
}

.hahp-room__tv-copy:hover,
.hahp-room__tv-copy:focus-visible,
.hahp-room__code-copy:hover,
.hahp-room__code-copy:focus-visible {
	border-color: var(--hahp-primary-dark);
}

.hahp-room__tv-copy:focus-visible,
.hahp-room__code-copy:focus-visible {
	outline: 2px solid var(--hahp-primary-dark);
	outline-offset: 2px;
}

.hahp-room__stay-home {
	align-items: center;
	background: transparent;
	border: 1px solid var(--hahp-border);
	border-radius: 999px;
	color: var(--hahp-text);
	cursor: pointer;
	display: inline-flex;
	flex-shrink: 0;
	font: inherit;
	font-size: 0.78rem;
	gap: 8px;
	min-height: 26px;
	padding: 3px 8px 3px 10px;
	touch-action: manipulation;
	white-space: nowrap;
}

.hahp-room__stay-home-label {
	font-weight: 700;
}

.hahp-room__stay-home-track {
	background: var(--hahp-border);
	border-radius: 999px;
	display: inline-block;
	flex: 0 0 auto;
	height: 16px;
	inset-inline-end: 2px;
	position: relative;
	transition: background 160ms ease;
	width: 30px;
}

.hahp-room__stay-home-thumb {
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.24);
	height: 12px;
	inset-inline-start: 2px;
	position: absolute;
	top: 2px;
	transition: transform 160ms ease;
	width: 12px;
}

.hahp-room__stay-home[aria-checked="true"] {
	border-color: var(--hahp-primary-dark);
}

.hahp-room__stay-home[aria-checked="true"] .hahp-room__stay-home-track {
	background: var(--hahp-primary-dark);
}

.hahp-room__stay-home[aria-checked="true"] .hahp-room__stay-home-thumb {
	transform: translateX(14px);
}

.hahp-party[dir="rtl"] .hahp-room__stay-home[aria-checked="true"] .hahp-room__stay-home-thumb {
	transform: translateX(-14px);
}

.hahp-room__stay-home:hover,
.hahp-room__stay-home:focus-visible {
	border-color: var(--hahp-primary-dark);
}

.hahp-room__stay-home:focus-visible {
	outline: 2px solid var(--hahp-primary-dark);
	outline-offset: 2px;
}

.hahp-button--danger-subtle {
	border-color: rgba(165, 62, 51, 0.38) !important;
	color: #8f372e;
	gap: 8px;
}

.hahp-button--danger-subtle:hover,
.hahp-button--danger-subtle:focus-visible {
	border-color: rgba(165, 62, 51, 0.72) !important;
	color: #7a2e26;
}

.hahp-host-tools > .hahp-hint {
	flex-basis: 100%;
}

/* Guest list popup on the host screen. */
body.hahp-guests-open {
	overflow: hidden;
}

.hahp-guests-modal {
	align-items: center;
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 20px;
	position: fixed;
	z-index: 1000;
}

.hahp-guests-modal__backdrop {
	background: rgba(24, 17, 14, 0.72);
	inset: 0;
	position: absolute;
}

.hahp-guests-modal__panel {
	background: var(--hahp-card);
	border: 1px solid var(--hahp-border);
	border-radius: 14px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
	display: flex;
	flex-direction: column;
	max-height: min(80vh, 680px);
	max-width: 520px;
	padding: 20px;
	position: relative;
	width: 100%;
}

.hahp-guests-modal__head {
	align-items: center;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	margin-bottom: 6px;
}

.hahp-guests-modal__head h2 {
	font-size: 1.35rem;
	margin: 0;
}

.hahp-guests-modal__close {
	background: transparent;
	border: 0;
	color: var(--hahp-muted);
	cursor: pointer;
	font: inherit;
	font-size: 26px;
	line-height: 1;
	padding: 0 6px;
}

.hahp-guests-modal__close:hover,
.hahp-guests-modal__close:focus-visible {
	color: var(--hahp-primary-dark);
}

.hahp-guests-list {
	display: grid;
	gap: 8px;
	list-style: none;
	margin: 12px 0 0;
	overflow-y: auto;
	padding: 2px 4px 2px 0;
}

.hahp-guests__item {
	align-items: center;
	background: var(--hahp-bg);
	border: 1px solid var(--hahp-border);
	border-radius: 10px;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	min-width: 0;
	padding: 10px 12px;
}

.hahp-guests__info {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.hahp-guests__info strong {
	overflow-wrap: anywhere;
}

.hahp-guests__info span {
	color: var(--hahp-muted);
	font-size: 0.82rem;
}

.hahp-guests__offline {
	opacity: 0.75;
}

.hahp-guests__remove {
	flex: 0 0 auto;
	min-height: 34px;
	padding: 6px 9px;
}

.hahp-guests__remove svg {
	height: 16px;
	width: 16px;
}

.hahp-guests__empty {
	color: var(--hahp-muted);
	padding: 14px 4px;
	text-align: center;
}

.hahp-qr {
	align-items: center;
	display: flex;
	gap: 14px;
}

.hahp-qr__image {
	background: #fff;
	border: 1px solid var(--hahp-border);
	border-radius: 8px;
	line-height: 0;
	padding: 8px;
	width: 120px;
}

.hahp-qr__image svg {
	display: block;
	height: auto;
	width: 100%;
}

.hahp-qr p,
.hahp-hint {
	color: var(--hahp-muted);
	font-size: 13px;
	line-height: 1.5;
	margin: 0;
}

.hahp-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* The standard layout contains only the queue panel, on both host and room.
   With a second, empty grid column the queue overflowed the card on phones in
   landscape, where the single-column mobile media query no longer applies.
   Give the panel the full width so it grows with its rows. */
.hahp-party:not(.hahp-party--tv) .hahp-grid[data-standard-layout] {
	grid-template-columns: minmax(0, 1fr);
}

.hahp-panel h2 {
	color: var(--hahp-text);
	font-size: 20px;
	margin: 0 0 14px;
}

.hahp-now-playing {
	overflow: hidden;
	position: relative;
}

.hahp-now-playing > :not(.hahp-tv-visualizer):not(.hahp-now-playing__expand) {
	position: relative;
	z-index: 1;
}

.hahp-now-playing .hahp-tv-visualizer {
	height: 100%;
	opacity: 0.18;
}

/* With Stay Home on, "Nu speelt" shows the real video instead of decoration. */
.hahp-party--stay-home .hahp-now-playing__visualizer {
	display: none;
}

.hahp-now-playing .hahp-current {
	font-size: 17px;
	font-weight: 600;
	margin: 0;
}

.hahp-player--stay-home {
	margin-top: 14px;
	max-width: 100%;
}

.hahp-player--stay-home[hidden],
[data-stay-home-player][hidden] {
	display: none !important;
}

.hahp-stay-home__progress-wrap {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
}

.hahp-stay-home__progress-wrap[hidden] {
	display: none !important;
}

.hahp-stay-home__progress {
	background: var(--hahp-border);
	border-radius: 999px;
	flex: 1 1 auto;
	height: 8px;
	min-width: 0;
	overflow: hidden;
}

.hahp-stay-home__indicator {
	background: var(--hahp-primary-dark, #d4845f);
	height: 100%;
	transform: translateX(-100%);
	transition: transform 500ms linear;
	width: 100%;
	will-change: transform;
}

.hahp-stay-home__time {
	color: var(--hahp-muted);
	font-family: monospace;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.hahp-now-playing__tv-link {
	margin-top: 10px;
}

.hahp-now-playing__expand {
	align-items: center;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--hahp-border);
	border-radius: 50%;
	color: var(--hahp-text, inherit);
	display: inline-flex;
	font-size: 18px;
	height: 32px;
	justify-content: center;
	position: absolute;
	right: 16px;
	text-decoration: none;
	top: 16px;
	width: 32px;
	z-index: 2;
}

.hahp-now-playing__expand[hidden] {
	display: none;
}

.hahp-now-playing__expand:hover,
.hahp-now-playing__expand:focus-visible {
	border-color: var(--hahp-primary-dark, #d4845f);
	color: var(--hahp-primary-dark, #d4845f);
}

.hahp-current__guest {
	color: var(--hahp-primary-dark, #d4845f);
	font-weight: 700;
}

.hahp-player {
	aspect-ratio: 16 / 9;
	background: #211a18;
	border-radius: 10px;
	overflow: hidden;
	position: relative;
}

.hahp-player__mount,
.hahp-player__mount iframe {
	border: 0;
	height: 100%;
	width: 100%;
}

/* Block the YouTube seekbar so nobody can move the song away from the
   server time. Only the native fullscreen corner stays clickable. */
.hahp-player .hahp-player__seek-guard {
	bottom: 0;
	cursor: not-allowed;
	/* Only the thin seekbar strip is shielded. YouTube's volume and settings
	   buttons sit above it and stay clickable. */
	height: 20px;
	left: 0;
	pointer-events: auto;
	position: absolute;
	right: 48px;
	touch-action: none;
	z-index: 4;
}

.hahp-player--tv .hahp-player__seek-guard {
	right: 0;
}

/* New videos start behind a black curtain with one small circular opening,
   like a camera aperture. After five seconds the iris opens slowly and the
   curtain fades away. At the end of a song it closes again, outside in.
   The separate orange progress bar below the player is untouched. */
.hahp-player__native-ui {
	background: transparent;
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 0 100vmax #000;
	height: clamp(130px, 16vw, 200px);
	left: 50%;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%) rotate(0deg);
	transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1), height 1.1s cubic-bezier(0.4, 0, 0.2, 1), border-radius 1.1s ease, opacity 1.1s ease, transform 1.1s ease;
	width: clamp(130px, 16vw, 200px);
	z-index: 5;
}

/* Faint blades around the opening make the rotation read as an iris. */
.hahp-player__native-ui::after {
	background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.10) 0deg 2deg, transparent 2deg 60deg);
	border-radius: 50%;
	content: "";
	inset: -16px;
	opacity: 0;
	position: absolute;
	transition: opacity 0.4s ease;
	-webkit-mask: radial-gradient(circle, transparent calc(50% - 16px), #000 calc(50% - 15px));
	mask: radial-gradient(circle, transparent calc(50% - 16px), #000 calc(50% - 15px));
}

@keyframes hahp-aperture-spin {
	to {
		transform: rotate(90deg);
	}
}

.hahp-player--tv.is-starting .hahp-player__native-ui {
	opacity: 1;
}

.hahp-player--tv.is-starting .hahp-player__native-ui::after,
.hahp-player--tv.is-closing .hahp-player__native-ui::after {
	opacity: 1;
}

.hahp-player--tv.is-starting .hahp-player__native-ui::after {
	animation: hahp-aperture-spin 1.1s linear;
}

.hahp-player--tv.is-closing .hahp-player__native-ui::after {
	animation: hahp-aperture-spin 1.1s linear reverse;
}

.hahp-player--tv.is-opening .hahp-player__native-ui {
	border-radius: 0;
	height: 100%;
	opacity: 0;
	transform: translate(-50%, -50%) rotate(25deg);
	width: 100%;
}

.hahp-player--tv.is-opening .hahp-player__native-ui::after {
	opacity: 0;
}

/* At the end of a song the iris closes the other way: black covers the whole
   frame instantly, then pulls in from the outside until only the small circular
   opening is left. This also hides YouTube's UI the moment Skip is pressed. */
@keyframes hahp-curtain-close {
	0% {
		background-color: #000;
		border-radius: 0;
		height: 100%;
		opacity: 1;
		transform: translate(-50%, -50%) rotate(0deg);
		width: 100%;
	}
	15% {
		background-color: transparent;
		border-radius: 50%;
		height: 75%;
		transform: translate(-50%, -50%) rotate(8deg);
		width: 75%;
	}
	to {
		background-color: transparent;
		border-radius: 50%;
		height: clamp(130px, 16vw, 200px);
		opacity: 1;
		transform: translate(-50%, -50%) rotate(25deg);
		width: clamp(130px, 16vw, 200px);
	}
}

.hahp-player--tv.is-closing .hahp-player__native-ui {
	animation: hahp-curtain-close 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
	opacity: 1;
	transition: none;
}

/* Do not hide the shutter on hover/touch. Touch browsers keep :hover active
   after a tap and fire pointer events while the page opens, which previously
   forced opacity: 0 and made the camera shutter invisible on Samsung Internet. */

.hahp-player__empty {
	align-items: center;
	background: #211a18;
	color: #fff;
	display: flex;
	inset: 0;
	justify-content: center;
	margin: 0;
	position: absolute;
	text-align: center;
}

.hahp-player__empty[hidden] {
	display: none !important;
}

.hahp-panel--player > .hahp-button {
	margin-top: 12px;
}

.hahp-queue,
.hahp-results {
	display: grid;
	gap: 9px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hahp-queue__item,
.hahp-result {
	align-items: center;
	background: #fff;
	border: 1px solid var(--hahp-border);
	border-radius: 9px;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	padding: 11px;
}

.hahp-queue__details,
.hahp-result__details {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.hahp-queue__details strong,
.hahp-result__details strong {
	overflow-wrap: anywhere;
}

.hahp-queue__details span,
.hahp-result__details span {
	color: var(--hahp-muted);
	font-size: 12px;
}

.hahp-result__details .hahp-result__source {
	color: var(--hahp-primary-dark, #d4845f);
	font-weight: 700;
}

.hahp-result__details .hahp-result__source--queued {
	color: #a53e33;
}

.hahp-result--queued .hahp-result__add {
	cursor: default;
}

.hahp-result--more {
	justify-content: center;
}

.hahp-result__more {
	width: 100%;
}

.hahp-queue__actions {
	display: flex;
	flex-shrink: 0;
	gap: 6px;
}

.hahp-queue__empty {
	color: var(--hahp-muted);
	padding: 12px 2px;
}

.hahp-queue__more {
	display: flex;
	justify-content: center;
	padding-top: 2px;
}

.hahp-queue__more-button {
	min-width: 160px;
}

.hahp-guest {
	display: flex;
	align-items: flex-end;
	gap: 10px;
}

.hahp-guest label {
	flex-shrink: 0;
	margin-bottom: 13px;
}

.hahp-results {
	margin-top: 14px;
}

.hahp-results:empty {
	display: none;
}

.hahp-playlist-search {
	display: grid;
	gap: 8px;
	min-width: 0;
	width: 100%;
}

.hahp-picker-stack {
	background: var(--hahp-card);
	border: 1px solid var(--hahp-border);
	border-radius: 14px;
	box-shadow: 0 16px 48px rgba(61, 44, 36, 0.08);
	display: grid;
	overflow: hidden;
}

.hahp-picker-stack[hidden] {
	display: none !important;
}

.hahp-picker-stack > .hahp-playlist-search,
.hahp-picker-stack > .hahp-panel {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	margin: 0;
	padding: 18px;
}

.hahp-picker-stack > .hahp-panel {
	border-top: 1px solid var(--hahp-border);
}

.hahp-picker-stack > .hahp-playlist-search[hidden] + .hahp-panel {
	border-top: 0;
}

.hahp-playlist-results {
	display: grid;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hahp-playlist-results-panel {
	display: grid;
	gap: 8px;
}

.hahp-playlist-result {
	align-items: center;
	background: #fff;
	border: 1px solid var(--hahp-border);
	border-radius: 9px;
	display: flex;
	gap: 12px;
	min-width: 0;
	padding: 10px;
}

.hahp-playlist-result > img {
	border-radius: 6px;
	flex: 0 0 120px;
	height: 68px;
	object-fit: cover;
	width: 120px;
}

.hahp-playlist-result__details {
	flex: 1 1 auto;
	min-width: 0;
}

.hahp-playlist-result__details strong,
.hahp-playlist-result__details span {
	display: block;
	overflow-wrap: anywhere;
}

.hahp-playlist-result__details span,
.hahp-playlist-result__details p {
	color: var(--hahp-muted);
	font-size: 12px;
	margin: 4px 0 0;
}

.hahp-playlist-result__details .hahp-playlist-result__count {
	color: var(--hahp-primary-dark, #d4845f);
	font-weight: 700;
}

.hahp-result__add {
	flex: 0 0 auto;
	min-width: 128px;
}

.hahp-attribution {
	color: var(--hahp-muted);
	font-size: 12px;
	line-height: 1.6;
	margin: 14px 0 0;
	text-align: center;
}

@media (max-width: 720px) {
	.hahp-home,
	.hahp-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.hahp-guest {
		align-items: stretch;
		flex-direction: column;
	}

	.hahp-guest label {
		margin-bottom: 0;
	}
}

@media (max-width: 520px) {
	.hahp-join__row,
	.hahp-search__form {
		flex-direction: column;
	}

	.hahp-playlist-result {
		align-items: stretch;
		flex-direction: column;
	}

	.hahp-playlist-result > img {
		height: auto;
		max-height: 180px;
		width: 100%;
	}

	.hahp-host-tools,
	.hahp-qr {
		align-items: flex-start;
		flex-direction: column;
	}

	.hahp-queue__item,
	.hahp-result {
		align-items: flex-start;
		flex-direction: column;
	}

	.hahp-queue__actions {
		width: 100%;
	}
}

.hahp-guest {
	align-items: flex-start;
	flex-direction: column;
}

.hahp-guest .hahp-join__row {
	width: 100%;
}

.hahp-song-thumb {
	background: #eee5e0;
	border-radius: 7px;
	flex: 0 0 68px;
	height: 40px;
	object-fit: cover;
	width: 68px;
}

.hahp-song-thumb--result {
	flex-basis: 120px;
	height: 68px;
	width: 120px;
}

.hahp-queue__item {
	justify-content: flex-start;
	position: relative;
	transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.hahp-queue__details {
	flex: 1 1 auto;
}

.hahp-queue__details strong {
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.hahp-queue__vote-summary,
.hahp-queue__actions {
	align-items: center;
	display: flex;
	gap: 6px;
}

.hahp-queue__pinned {
	background: var(--hahp-bg);
	border: 1px solid var(--hahp-border);
	border-radius: 999px;
	color: var(--hahp-primary-dark);
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	padding: 4px 9px;
	white-space: nowrap;
}

.hahp-vote {
	align-items: center;
	background: #fff;
	border: 1px solid var(--hahp-border);
	border-radius: 999px;
	color: var(--hahp-muted);
	display: inline-flex;
	flex: 0 0 auto;
	font: inherit;
	gap: 4px;
	justify-content: center;
	min-height: 32px;
	min-width: 44px;
	padding: 4px 8px;
}

button.hahp-vote {
	cursor: pointer;
	touch-action: manipulation;
}

.hahp-vote svg {
	fill: none;
	height: 16px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
	width: 16px;
}

.hahp-vote--up {
	color: #187744;
}

.hahp-vote--down {
	color: #b63838;
}

.hahp-vote--up.is-selected {
	background: #e8f6ed;
	border-color: #187744;
}

.hahp-vote--down.is-selected {
	background: #fff0ef;
	border-color: #b63838;
}

.hahp-vote:disabled {
	cursor: wait;
	opacity: 0.6;
}

.hahp-vote:focus-visible,
.hahp-queue__delete:focus-visible {
	outline: 3px solid var(--hahp-primary-dark);
	outline-offset: 2px;
}

.hahp-queue__delete {
	align-items: center;
	display: inline-flex;
	flex: 0 0 40px;
	justify-content: center;
	padding: 8px;
}

.hahp-queue__delete svg {
	fill: none;
	height: 18px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
	width: 18px;
}

.hahp-vote[aria-busy="true"] {
	cursor: wait;
}

.hahp-vote[aria-busy="true"]::after {
	animation: hahp-spin 700ms linear infinite;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	content: "";
	display: inline-block;
	flex: 0 0 14px;
	height: 14px;
	margin-left: 6px;
	width: 14px;
}

.hahp-queue__first {
	white-space: nowrap;
}

.hahp-queue__actions {
	margin-left: auto;
}

/* Host rows have a pin/play/remove button group plus vote controls. Allow the
   row and the button group to wrap so long translated labels always stay
   inside the queue frame, at every viewport width and in every language. */
.hahp-party--host .hahp-queue__item {
	flex-wrap: wrap;
	min-width: 0;
}

.hahp-party--host .hahp-queue__actions {
	flex-wrap: wrap;
	min-width: 0;
}

.hahp-party--host .hahp-queue__actions .hahp-button {
	max-width: 100%;
}

.hahp-party--host .hahp-queue__first {
	white-space: normal;
}

.hahp-queue__toggle {
	align-items: center;
	display: inline-flex;
	font-size: 13px;
	font-weight: 600;
	gap: 8px;
	margin: -4px 0 10px;
}

.hahp-queue__toggle input {
	accent-color: var(--hahp-primary-dark);
	flex: 0 0 18px;
	height: 18px;
	margin: 0;
	width: 18px;
}

.hahp-party--tv {
	background: #000;
	color: #fff;
	height: 100vh;
	height: 100dvh;
	inset: 0;
	max-width: none;
	overflow: auto;
	padding: 18px;
	position: fixed;
	width: 100vw;
	z-index: 100000;
}

.hahp-party--tv::before {
	background:
		radial-gradient(ellipse at 12% 82%, rgba(212, 132, 95, 0.26), transparent 42%),
		radial-gradient(ellipse at 92% 18%, rgba(103, 125, 196, 0.16), transparent 38%);
	content: "";
	inset: 0;
	opacity: 0.32;
	pointer-events: none;
	position: fixed;
	z-index: 0;
}

.hahp-party--tv.hahp-tv--playing::before {
	animation: hahp-tv-ambient-pulse 620ms ease-in-out infinite alternate;
}

@keyframes hahp-tv-ambient-pulse {
	from {
		opacity: 0.2;
		transform: scale(1);
	}
	to {
		opacity: 0.38;
		transform: scale(1.015);
	}
}

.hahp-party--tv .hahp-tv-layout {
	position: relative;
}

.hahp-party--tv .hahp-tv__main > :not(.hahp-tv-visualizer) {
	position: relative;
	z-index: 1;
}

.hahp-tv-visualizer {
	align-items: flex-end;
	bottom: 0;
	display: flex;
	gap: clamp(5px, 0.7vw, 10px);
	height: 20%;
	left: 0;
	opacity: 0.12;
	overflow: hidden;
	pointer-events: none;
	position: absolute;
	width: 100%;
	z-index: 0;
}

.hahp-party--tv .hahp-tv__main,
.hahp-party--tv .hahp-tv__sidebar {
	position: relative;
	z-index: 2;
}

.hahp-tv-visualizer span {
	animation-play-state: paused;
	background: linear-gradient(to top, rgba(212, 132, 95, 0.95), rgba(212, 132, 95, 0.08));
	border-radius: 999px 999px 0 0;
	flex: 1 1 0;
	height: var(--hahp-bar-height, 64%);
	transform: scaleY(0.18);
	transform-origin: bottom;
}

.hahp-tv-visualizer.is-playing span {
	animation: hahp-tv-visualizer-pulse var(--hahp-bar-speed, 620ms) ease-in-out infinite alternate;
	animation-delay: var(--hahp-bar-delay, 0ms);
}

.hahp-tv-visualizer span:nth-child(4n + 1) {
	--hahp-bar-height: 48%;
	--hahp-bar-speed: 510ms;
	--hahp-bar-delay: -120ms;
}

.hahp-tv-visualizer span:nth-child(4n + 2) {
	--hahp-bar-height: 82%;
	--hahp-bar-speed: 690ms;
	--hahp-bar-delay: -310ms;
}

.hahp-tv-visualizer span:nth-child(4n + 3) {
	--hahp-bar-height: 62%;
	--hahp-bar-speed: 570ms;
	--hahp-bar-delay: -220ms;
}

.hahp-tv-visualizer span:nth-child(4n) {
	--hahp-bar-height: 38%;
	--hahp-bar-speed: 760ms;
	--hahp-bar-delay: -70ms;
}

@keyframes hahp-tv-visualizer-pulse {
	to {
		transform: scaleY(0.92);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hahp-party--tv.hahp-tv--playing::before,
	.hahp-tv-visualizer.is-playing span {
		animation: none;
	}

	.hahp-search-spinner {
		animation-duration: 1600ms;
	}

	.hahp-home__steps li,
	.hahp-home__faq details,
	.hahp-room__stay-home-track,
	.hahp-room__stay-home-thumb,
	.hahp-stay-home__indicator {
		transition: none;
	}

	.hahp-home__steps li:hover {
		transform: none;
	}
}

.hahp-tv-active {
	background: #000;
	overflow: hidden;
}

.hahp-party--tv .hahp-hero {
	display: none;
}

.hahp-party--tv .hahp-card {
	background: transparent;
	border: 0;
	box-shadow: none;
	display: flex;
	flex-direction: column;
	height: 100%;
	max-width: none;
	padding: 0;
	position: relative;
	z-index: 2;
}

.hahp-party--tv .hahp-room {
	flex: 1 1 auto;
	grid-template-rows: minmax(0, 1fr);
	min-height: 0;
}

.hahp-party--tv .hahp-message:not(:empty) {
	background: #181818;
	border-color: #444;
	color: #fff;
	margin-bottom: 10px;
}

.hahp-party--tv .hahp-tv-layout {
	display: grid;
	gap: clamp(14px, 1.5vw, 22px);
	grid-template-columns: minmax(0, 1fr) clamp(280px, 25vw, 430px);
	height: 100%;
	margin: 0;
	min-height: 0;
	width: 100%;
}

.hahp-party--tv .hahp-tv__main {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 0;
	min-width: 0;
}

.hahp-party--tv .hahp-player--tv {
	aspect-ratio: 16 / 9;
	background: #000;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 0;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.65);
	align-self: flex-start;
	flex: 0 0 auto;
	min-height: 0;
	max-width: 100%;
	width: 100%;
}

.hahp-party--tv .hahp-player__empty {
	background: #000;
	font-size: clamp(18px, 2vw, 30px);
	padding: 24px;
	pointer-events: none;
	z-index: 1;
}

.hahp-party--tv .hahp-tv-player-controls {
	align-items: center;
	color: #fff;
	display: flex;
	flex: 0 0 auto;
	gap: 16px;
	margin-top: 10px;
}

.hahp-party--tv .hahp-tv-playback__progress {
	background: rgba(255, 255, 255, 0.15);
	flex: 1 1 auto;
	height: 8px;
	min-width: 0;
	overflow: hidden;
	position: relative;
}

.hahp-party--tv .hahp-tv-playback__indicator {
	background: var(--hahp-primary-dark, #d4845f);
	height: 100%;
	transform: translateX(-100%);
	transition: transform 500ms linear;
	width: 100%;
	will-change: transform;
}

.hahp-party--tv .hahp-tv-player-controls span {
	color: rgba(255, 255, 255, 0.8);
	flex: 0 0 128px;
	font-family: monospace;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	text-align: right;
}

.hahp-party--tv .hahp-tv-player-controls :focus-visible {
	outline: 3px solid #f4a27c;
	outline-offset: 3px;
}

.hahp-party--tv .hahp-tv__track {
	border-top: 1px solid rgba(255, 255, 255, 0.25);
	margin-top: 18px;
	padding-top: 16px;
}

.hahp-party--tv .hahp-tv__track-info {
	align-items: flex-end;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	display: flex;
	gap: 18px;
	justify-content: space-between;
	margin-top: 16px;
	padding-bottom: 18px;
}

.hahp-party--tv .hahp-tv__track-info h1 {
	color: #fff;
	font-size: clamp(32px, 4vw, 72px);
	font-weight: 800;
	height: clamp(32px, 4vw, 72px);
	letter-spacing: -0.055em;
	line-height: clamp(32px, 4vw, 72px);
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hahp-party--tv .hahp-tv__track-info > div {
	min-width: 0;
}

.hahp-party--tv .hahp-tv__track-info p {
	color: rgba(255, 255, 255, 0.62);
	font-size: clamp(16px, 1.6vw, 24px);
	height: clamp(20px, 2.2vw, 30px);
	line-height: clamp(20px, 2.2vw, 30px);
	margin: 8px 0 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hahp-party--tv .hahp-tv__track-info p .hahp-tv__guest-name {
	color: var(--hahp-primary-dark, #d4845f);
}

.hahp-party--tv .hahp-tv__track-info .hahp-button {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.42);
	color: #fff;
	flex: 0 0 auto;
}

.hahp-party--tv .hahp-tv__track-info .hahp-button.is-busy {
	color: transparent;
	cursor: progress;
	position: relative;
}

.hahp-party--tv .hahp-tv__track-info .hahp-button.is-busy::after {
	animation: hahp-skip-spin 0.7s linear infinite;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	border-top-color: #fff;
	content: "";
	height: 14px;
	inset: 0;
	margin: auto;
	position: absolute;
	width: 14px;
}

@keyframes hahp-skip-spin {
	to {
		transform: rotate(360deg);
	}
}

.hahp-party--tv .hahp-tv__footer {
	align-items: center;
	display: flex;
	gap: 12px;
	padding-top: 12px;
}

.hahp-party--tv .hahp-tv__djs-label {
	color: rgba(255, 255, 255, 0.65);
	flex: 0 0 auto;
	font-family: monospace;
	font-size: 12px;
	letter-spacing: 0.12em;
}

.hahp-party--tv .hahp-tv__djs-top {
	color: rgba(255, 255, 255, 0.4);
	flex: 0 0 auto;
	font-family: monospace;
	font-size: 10px;
	letter-spacing: 0.08em;
}

.hahp-party--tv .hahp-tv__djs {
	align-items: center;
	display: flex;
	flex: 1 1 auto;
	gap: clamp(8px, 1vw, 16px);
	height: 24px;
	list-style: none;
	margin: 0;
	min-width: 0;
	overflow: hidden;
	padding: 0;
}

.hahp-party--tv .hahp-tv__dj {
	align-items: center;
	display: flex;
	flex: 0 0 auto;
	gap: 3px;
	justify-content: flex-start;
	max-width: clamp(120px, 13vw, 200px);
	min-width: 0;
}

.hahp-party--tv .hahp-tv__dj strong {
	flex: 0 1 auto;
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hahp-party--tv .hahp-tv__dj-name {
	color: var(--hahp-primary-dark, #d4845f);
}

.hahp-party--tv .hahp-tv__dj-count {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	color: rgba(255, 255, 255, 0.72);
	flex: 0 0 auto;
	font-size: 11px;
	line-height: 1.5;
	min-width: 22px;
	padding: 0 6px;
	text-align: center;
	white-space: nowrap;
}

.hahp-party--tv .hahp-tv__footer > .hahp-button {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.3);
	color: rgba(255, 255, 255, 0.8);
	flex: 0 0 auto;
}

.hahp-party--tv .hahp-tv__sidebar {
	border-left: 1px solid rgba(255, 255, 255, 0.25);
	display: flex;
	flex-direction: column;
	justify-self: stretch;
	min-height: 0;
	min-width: 0;
	padding-left: 22px;
}

.hahp-party--tv .hahp-tv__join {
	align-items: center;
	background: transparent;
	border: 0;
	border-bottom: 2px solid rgba(255, 255, 255, 0.8);
	border-radius: 0;
	color: #fff;
	display: grid;
	gap: 14px;
	grid-template-columns: minmax(0, 1fr) minmax(110px, 38%);
	padding: 0 0 18px;
}

.hahp-party--tv .hahp-tv__join .hahp-eyebrow {
	color: rgba(255, 255, 255, 0.55);
	font-family: monospace;
	letter-spacing: 0.14em;
}

.hahp-party--tv .hahp-tv__room-code {
	color: #fff;
	display: block;
	font-family: monospace;
	font-size: clamp(32px, 5vw, 56px);
	font-weight: 800;
	letter-spacing: -0.08em;
	line-height: 1;
	overflow-wrap: anywhere;
}

.hahp-party--tv .hahp-tv__join p:last-child {
	color: rgba(255, 255, 255, 0.58);
	font-size: 12px;
	line-height: 1.5;
	margin: 10px 0 0;
	overflow-wrap: anywhere;
}

.hahp-party--tv .hahp-tv__join p:last-child strong {
	color: #fff;
}

.hahp-party--tv .hahp-tv__join .hahp-qr__image {
	border: 4px solid #fff;
	border-radius: 0;
	box-shadow: 6px 6px 0 #777;
	padding: 8px;
	width: 100%;
}

.hahp-party--tv .hahp-tv__queue-heading {
	align-items: baseline;
	border-bottom: 1px solid rgba(255, 255, 255, 0.24);
	display: flex;
	justify-content: space-between;
	margin-top: 20px;
	padding-bottom: 10px;
}

.hahp-party--tv .hahp-tv__queue-heading h2 {
	color: #fff;
	font-size: clamp(24px, 2.4vw, 38px);
	letter-spacing: -0.04em;
	margin: 0;
}

.hahp-party--tv .hahp-tv__queue-heading span {
	color: rgba(255, 255, 255, 0.45);
	font-family: monospace;
	font-size: 11px;
	letter-spacing: 0.14em;
}

.hahp-party--tv .hahp-tv__queue-panel {
	background: transparent;
	border: 0;
	border-radius: 0;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
	overflow: hidden;
	padding: 10px 0 0;
}

.hahp-party--tv .hahp-queue {
	align-content: start;
	display: grid;
	gap: 8px;
	grid-auto-rows: minmax(62px, auto);
	grid-template-columns: minmax(0, 1fr);
	height: 100%;
	min-height: 0;
	overflow: hidden;
	width: 100%;
}

.hahp-party--tv .hahp-queue__item {
	background: #111;
	border-color: #262626;
	border-radius: 0;
	gap: 8px;
	min-width: 0;
	justify-content: flex-start;
	overflow: hidden;
	padding: 9px 8px;
}

.hahp-party--tv .hahp-queue__item .hahp-song-thumb {
	flex-basis: 48px;
	height: 30px;
	width: 48px;
}

.hahp-party--tv .hahp-queue__details {
	align-content: center;
	gap: 3px;
}

.hahp-party--tv .hahp-queue__details strong {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.hahp-party--tv .hahp-queue__details > span {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hahp-party--tv .hahp-queue__details > span > span {
	display: inline;
}

.hahp-party--tv .hahp-queue__vote-summary {
	display: none;
}

.hahp-party--tv .hahp-queue__details > span,
.hahp-party--tv .hahp-queue__empty {
	color: rgba(255, 255, 255, 0.58);
}

.hahp-queue__details > span .hahp-queue__guest:not(.hahp-queue__guest--fallback) {
	color: var(--hahp-primary-dark, #d4845f);
}

.hahp-party--tv .hahp-queue__empty {
	grid-column: 1 / -1;
}

.hahp-party--tv .hahp-attribution {
	display: none;
}

@media (max-width: 900px) and (orientation: portrait), (max-width: 600px) {
	.hahp-party--tv {
		height: auto;
		min-height: 100vh;
		min-height: 100dvh;
		overflow: auto;
		padding: 14px;
	}

	.hahp-party--tv .hahp-card {
		height: auto;
	}

	.hahp-party--tv .hahp-tv-layout {
		grid-template-columns: minmax(0, 1fr);
		height: auto;
	}

	.hahp-party--tv .hahp-tv__footer {
		flex-wrap: wrap;
	}

	.hahp-party--tv .hahp-tv__djs {
		flex: 1 1 100%;
		flex-wrap: wrap;
	}

	.hahp-party--tv .hahp-tv__dj {
		flex: 0 0 auto;
	}

	.hahp-party--tv .hahp-player--tv {
		align-self: center;
		flex: none;
		min-height: 0;
	}

	.hahp-party--tv .hahp-tv__sidebar {
		border-left: 0;
		border-top: 1px solid rgba(255, 255, 255, 0.25);
		margin-left: auto;
		padding: 18px 0 0;
		width: min(100%, 560px);
	}

	.hahp-party--tv .hahp-tv__queue-panel {
		flex: none;
		height: 55vh;
		height: min(55dvh, 560px);
	}
}

@media (max-width: 720px) {
	.hahp-home .hahp-join {
		grid-template-columns: minmax(0, 1fr);
	}

	.hahp-home__steps ol {
		grid-template-columns: minmax(0, 1fr);
	}

	.hahp-party:not(.hahp-party--tv) {
		padding: 16px 12px;
	}

	.hahp-party:not(.hahp-party--tv) .hahp-hero {
		margin-bottom: 18px;
	}

	.hahp-party:not(.hahp-party--tv) .hahp-hero h1 {
		font-size: clamp(28px, 8vw, 40px);
	}

	.hahp-party:not(.hahp-party--tv) .hahp-intro {
		font-size: 15px;
	}

	.hahp-party:not(.hahp-party--tv) .hahp-card {
		border-radius: 15px;
		padding: 14px;
	}

	.hahp-party:not(.hahp-party--tv) .hahp-room__toolbar {
		align-items: flex-start;
		flex-direction: column;
	}

	.hahp-party:not(.hahp-party--tv) .hahp-room__code {
		font-size: 16px;
	}

	.hahp-party:not(.hahp-party--tv) .hahp-room__code strong {
		font-size: 21px;
	}

	.hahp-party:not(.hahp-party--tv) .hahp-room__codes-row--share {
		align-items: center;
		flex-direction: column;
		flex-wrap: nowrap;
		gap: 8px;
		width: 100%;
	}

	.hahp-party:not(.hahp-party--tv) .hahp-room__code-copy {
		padding-inline: 8px;
	}

	.hahp-party:not(.hahp-party--tv) .hahp-room__codes-row--guests {
		justify-content: center;
		width: 100%;
	}

	.hahp-party:not(.hahp-party--tv) .hahp-room__tv-code {
		font-size: 12px;
		gap: 4px;
		padding: 5px 8px;
	}

	.hahp-party:not(.hahp-party--tv) .hahp-room__tv-code strong {
		letter-spacing: 0;
		overflow: visible;
		text-overflow: clip;
	}

	.hahp-party:not(.hahp-party--tv) .hahp-room__stay-home {
		font-size: 0.72rem;
		padding-inline: 7px;
	}

	.hahp-party:not(.hahp-party--tv) .hahp-host-tools {
		align-items: stretch;
		gap: 10px;
		padding: 14px;
	}

	.hahp-party:not(.hahp-party--tv) .hahp-host-tools .hahp-button {
		width: 100%;
	}

	.hahp-party:not(.hahp-party--tv) .hahp-host-tools--queue {
		padding: 14px 0 0;
	}

	.hahp-party:not(.hahp-party--tv) .hahp-room__codes {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.hahp-party:not(.hahp-party--tv) .hahp-host-tools .hahp-qr {
		align-items: center;
		flex-direction: row;
		width: 100%;
	}

	.hahp-party:not(.hahp-party--tv) .hahp-host-tools__actions {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
	}

	.hahp-party:not(.hahp-party--tv) .hahp-join__row,
	.hahp-party:not(.hahp-party--tv) .hahp-search__form {
		flex-direction: column;
	}

	.hahp-party:not(.hahp-party--tv) .hahp-join__row .hahp-button,
	.hahp-party:not(.hahp-party--tv) .hahp-search__form .hahp-button {
		width: 100%;
	}

	.hahp-party:not(.hahp-party--tv) .hahp-queue__item {
		align-items: center;
		flex-direction: row;
		flex-wrap: wrap;
	}

	.hahp-party:not(.hahp-party--tv) .hahp-queue__details {
		flex: 1 1 calc(100% - 85px);
	}

	.hahp-party:not(.hahp-party--tv) .hahp-queue__actions {
		flex-basis: 100%;
		margin-left: 0;
	}

	.hahp-party:not(.hahp-party--tv) .hahp-queue__actions .hahp-button {
		flex: 1;
	}

	.hahp-party:not(.hahp-party--tv) .hahp-queue__actions .hahp-vote,
	.hahp-party:not(.hahp-party--tv) .hahp-queue__actions .hahp-queue__delete {
		flex: 0 0 auto;
	}

	.hahp-party:not(.hahp-party--tv) .hahp-result {
		align-items: start;
		display: grid;
		gap: 10px;
		grid-template-columns: 88px minmax(0, 1fr);
		min-width: 0;
		padding: 10px;
	}

	.hahp-party:not(.hahp-party--tv) .hahp-result .hahp-song-thumb--result {
		flex-basis: 88px;
		height: 60px;
		max-width: 100%;
		width: 88px;
	}

	.hahp-party:not(.hahp-party--tv) .hahp-result__details {
		min-width: 0;
	}

	.hahp-party:not(.hahp-party--tv) .hahp-result__details strong {
		color: var(--hahp-text);
		font-size: 16px;
		line-height: 1.35;
		overflow-wrap: anywhere;
	}

	.hahp-party:not(.hahp-party--tv) .hahp-result__details span {
		font-size: 13px;
		line-height: 1.4;
		overflow-wrap: anywhere;
	}

	.hahp-party:not(.hahp-party--tv) .hahp-result .hahp-button {
		grid-column: 1 / -1;
		min-height: 44px;
		width: 100%;
	}
}

@media (max-width: 560px) {
	.hahp-party--tv .hahp-tv__join {
		grid-template-columns: minmax(0, 1fr) 100px;
	}

	.hahp-party--tv .hahp-tv-player-controls {
		gap: 7px;
	}

	.hahp-party--tv .hahp-tv-player-controls span {
		flex-basis: 112px;
		font-size: 12px;
	}

	.hahp-party--tv .hahp-tv__room-code {
		font-size: clamp(38px, 12vw, 56px);
	}

	.hahp-party--tv .hahp-tv__track-info {
		align-items: flex-start;
		flex-direction: column;
	}

	.hahp-party:not(.hahp-party--tv) .hahp-song-thumb--result {
		flex-basis: 88px;
		height: 60px;
		max-height: none;
		width: 88px;
	}
}

/* Shown to guests after the host ends the party. */
.hahp-party-ended {
	align-items: center;
	display: flex;
	justify-content: center;
	padding: clamp(24px, 6vw, 64px) 0;
}

.hahp-party-ended[hidden] {
	display: none;
}

.hahp-party-ended__card {
	max-width: 560px;
	text-align: center;
}

.hahp-party-ended__card h2 {
	color: var(--hahp-text);
	font-size: clamp(28px, 5vw, 40px);
	letter-spacing: -0.03em;
	line-height: 1.15;
	margin: 0 0 16px;
}

.hahp-party-ended__intro,
.hahp-party-ended__support {
	color: var(--hahp-muted);
	font-size: 16px;
	line-height: 1.65;
	margin: 0 auto;
}

.hahp-party-ended__support {
	margin-top: 14px;
}

/* Match the site's subtle footer coffee link instead of a filled button. */
.hahp-party-ended__coffee {
	align-items: center;
	color: var(--hahp-muted);
	display: inline-flex;
	font-size: 0.8rem;
	gap: 6px;
	margin-top: 18px;
	opacity: 0.55;
	padding: 4px 0;
	text-decoration: none;
	transition: color 160ms ease, opacity 160ms ease;
}

.hahp-party-ended__coffee:hover,
.hahp-party-ended__coffee:focus-visible {
	color: var(--hahp-primary-dark);
	opacity: 1;
}

.hahp-party-ended__coffee svg {
	flex: 0 0 16px;
	height: 16px;
	width: 16px;
}

/* The guest end screen reuses the TV ranking layout, but on a light card. */
.hahp-party-ended .hahp-tv-ended__ranking {
	margin: 20px auto 0;
	max-width: 520px;
}

.hahp-party-ended .hahp-tv-ended__ranking-title {
	font-size: 14px;
}

.hahp-party-ended .hahp-tv-ended__ranking-subtitle {
	color: var(--hahp-muted);
	font-size: 13px;
	margin: 4px 0 12px;
}

.hahp-party-ended .hahp-tv-ended__dj {
	background: var(--hahp-bg);
	border-color: var(--hahp-border);
	border-radius: 12px;
	gap: 8px;
	grid-template-columns: 36px minmax(0, 0.9fr) minmax(0, 1.7fr) auto;
	padding: 8px 10px;
}

.hahp-party-ended .hahp-tv-ended__dj:first-child {
	background: rgba(212, 132, 95, 0.1);
	border-color: rgba(212, 132, 95, 0.35);
}

.hahp-party-ended .hahp-tv-ended__dj-rank {
	background: var(--hahp-bg);
	color: var(--hahp-text);
	font-size: 15px;
	height: 34px;
	width: 34px;
}

.hahp-party-ended .hahp-tv-ended__dj:first-child .hahp-tv-ended__dj-rank {
	color: #1a1210;
}

.hahp-party-ended .hahp-tv-ended__dj-name {
	font-size: 15px;
}

.hahp-party-ended .hahp-tv-ended__dj-quip {
	color: var(--hahp-text);
	font-size: 12px;
}

.hahp-party-ended .hahp-tv-ended__dj-count {
	background: var(--hahp-bg);
	color: var(--hahp-text);
	font-size: 13px;
	min-width: 34px;
	padding: 4px 8px;
}

.hahp-party-ended .hahp-tv-ended__dj-empty {
	color: var(--hahp-muted);
	font-size: 13px;
}

/* Full-screen thank-you view on the TV when the host ends the party. */
.hahp-party--tv .hahp-tv-ended {
	align-items: center;
	display: flex;
	flex: 1 1 auto;
	justify-content: center;
	min-height: 100%;
	padding: clamp(24px, 5vh, 64px) clamp(18px, 4vw, 64px);
	position: relative;
	z-index: 1;
}

.hahp-party--tv .hahp-tv-ended[hidden] {
	display: none;
}

.hahp-tv-ended__card {
	max-width: 900px;
	text-align: center;
}

.hahp-tv-ended__card h2 {
	color: #fff;
	font-size: clamp(38px, 5.5vw, 76px);
	letter-spacing: -0.04em;
	line-height: 1.05;
	margin: 0 0 clamp(14px, 2vh, 28px);
}

.hahp-tv-ended__intro,
.hahp-tv-ended__support {
	color: rgba(255, 255, 255, 0.72);
	font-size: clamp(16px, 1.5vw, 24px);
	line-height: 1.5;
	margin: 0 auto;
}

.hahp-tv-ended__support {
	margin-top: clamp(10px, 1.5vh, 20px);
}

.hahp-tv-ended__ranking {
	margin: clamp(16px, 2.5vh, 30px) auto 0;
	max-width: 940px;
	text-align: center;
}

.hahp-tv-ended__ranking-title {
	color: var(--hahp-primary-dark, #d4845f);
	font-size: clamp(15px, 1.5vw, 22px);
	font-weight: 900;
	letter-spacing: 0.14em;
	margin: 0;
}

.hahp-tv-ended__ranking-subtitle {
	color: rgba(255, 255, 255, 0.62);
	font-size: clamp(13px, 1.2vw, 18px);
	margin: 4px 0 clamp(10px, 1.5vh, 18px);
}

.hahp-tv-ended__djs {
	display: grid;
	gap: clamp(7px, 1vh, 13px);
	list-style: none;
	margin: 0;
	padding: 0;
}

.hahp-tv-ended__dj {
	align-items: center;
	background: rgba(255, 255, 255, 0.055);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 14px;
	display: grid;
	gap: clamp(10px, 1.4vw, 20px);
	grid-template-columns: 42px minmax(0, 0.9fr) minmax(0, 1.7fr) auto;
	padding: clamp(8px, 1.1vh, 14px) clamp(12px, 1.4vw, 20px);
	text-align: left;
}

.hahp-tv-ended__dj:first-child {
	background: rgba(212, 132, 95, 0.14);
	border-color: rgba(212, 132, 95, 0.45);
}

.hahp-tv-ended__dj-rank {
	align-items: center;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	color: #fff;
	display: flex;
	font-size: clamp(15px, 1.5vw, 22px);
	font-weight: 900;
	height: 40px;
	justify-content: center;
	width: 40px;
}

.hahp-tv-ended__dj:first-child .hahp-tv-ended__dj-rank {
	background: var(--hahp-primary-dark, #d4845f);
	color: #1a1210;
}

.hahp-tv-ended__dj-name {
	color: var(--hahp-primary-dark, #d4845f);
	font-size: clamp(16px, 1.6vw, 23px);
	font-weight: 800;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hahp-tv-ended__dj-quip {
	color: rgba(255, 255, 255, 0.84);
	font-size: clamp(13px, 1.2vw, 18px);
	line-height: 1.3;
}

.hahp-tv-ended__dj-count {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 999px;
	color: #fff;
	font-size: clamp(13px, 1.2vw, 18px);
	font-weight: 800;
	min-width: 38px;
	padding: 5px 10px;
	text-align: center;
}

.hahp-tv-ended__dj-empty {
	color: rgba(255, 255, 255, 0.7);
	font-size: clamp(14px, 1.3vw, 19px);
}

.hahp-tv-ended__qr {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: clamp(10px, 1.5vh, 18px);
	margin-top: clamp(22px, 4vh, 46px);
}

.hahp-tv-ended__qr-code {
	background: #fff;
	border-radius: 18px;
	display: block;
	padding: clamp(12px, 1.6vw, 22px);
	width: min(260px, 28vw);
}

.hahp-tv-ended__qr-code svg {
	display: block;
	height: auto;
	width: 100%;
}

@media (max-width: 900px) {
	.hahp-tv-ended__dj {
		grid-template-columns: 36px minmax(0, 1fr) auto;
	}

	.hahp-tv-ended__dj-quip {
		grid-column: 2 / -1;
	}

	.hahp-tv-ended__dj-rank {
		height: 34px;
		width: 34px;
	}

	.hahp-tv-ended__qr-code {
		width: min(220px, 44vw);
	}
}

@media (max-height: 720px) {
	.hahp-tv-ended__card h2 {
		font-size: clamp(30px, 4vw, 52px);
		margin-bottom: 8px;
	}

	.hahp-tv-ended__intro,
	.hahp-tv-ended__support {
		font-size: clamp(13px, 1.2vw, 18px);
	}

	.hahp-tv-ended__ranking {
		margin-top: 10px;
	}

	.hahp-tv-ended__djs {
		gap: 6px;
	}

	.hahp-tv-ended__dj {
		padding: 6px 12px;
	}

	.hahp-tv-ended__qr {
		margin-top: 12px;
	}

	.hahp-tv-ended__qr-code {
		width: min(170px, 18vw);
	}
}

/* Right-to-left support (Arabic). The root sets dir="rtl"; these overrides
   flip the few explicitly directional rules that CSS cannot mirror on its own. */
.hahp-party[dir="rtl"] .hahp-queue__actions {
	margin-left: 0;
	margin-right: auto;
}

.hahp-party[dir="rtl"] .hahp-tv__sidebar {
	border-left: 0;
	border-right: 1px solid rgba(255, 255, 255, 0.25);
	padding-left: 0;
	padding-right: 22px;
}

.hahp-party[dir="rtl"] .hahp-tv-ended__dj {
	text-align: right;
}

.hahp-party[dir="rtl"] .hahp-queue__toggle,
.hahp-party[dir="rtl"] .hahp-button,
.hahp-party[dir="rtl"] .hahp-room__tv-code {
	text-align: right;
}

@media (max-width: 900px) {
	.hahp-party[dir="rtl"] .hahp-tv__sidebar {
		border-right: 0;
		border-top: 1px solid rgba(255, 255, 255, 0.25);
		margin-left: 0;
		margin-right: auto;
		padding-right: 0;
	}
}
