.fclt-track-player {
	display: grid;
	gap: var(--fclt-gap, 0.75rem);
	--fclt-modal-width: 720px;
	--fclt-backdrop-opacity: 0.65;
	--fclt-modal-background: #121212;
	--fclt-modal-foreground: #fafafa;
	--fclt-modal-radius: 14px;
}

.fclt-track {
	min-width: 0;
	padding: 0.55rem 0;
	border-top: 1px solid rgba(127, 127, 127, 0.28);
}

.fclt-track:last-of-type {
	border-bottom: 1px solid rgba(127, 127, 127, 0.28);
}

.fclt-track__row {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	flex-wrap: nowrap;
}

.fclt-track__number {
	flex: 0 0 2.2em;
	font-variant-numeric: tabular-nums;
	opacity: 0.55;
	text-align: right;
}

.fclt-track__play {
	display: inline-flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: flex-start;
	gap: 0.55em;
	min-width: 0;
	min-height: 2.75rem;
	padding: 0.65rem 1rem;
	border: 1px solid currentColor;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.fclt-track__label {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fclt-track__play-icon {
	width: 0;
	height: 0;
	border-top: 0.35em solid transparent;
	border-bottom: 0.35em solid transparent;
	border-left: 0.55em solid currentColor;
}

.fclt-track.is-playing .fclt-track__play-icon {
	width: 0.55em;
	height: 0.7em;
	border: 0;
	border-left: 0.18em solid currentColor;
	border-right: 0.18em solid currentColor;
}

.fclt-track__source {
	flex: 0 0 auto;
	font-size: 0.875rem;
	line-height: 1.4;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.fclt-track__embed {
	margin-top: 0.75rem;
	width: 100%;
}

.fclt-track__embed iframe {
	display: block;
	width: 100%;
	border: 0;
}

.fclt-track-player__privacy,
.fclt-track-player__notice {
	margin: 0;
	font-size: 0.78rem;
	line-height: 1.45;
	opacity: 0.75;
}

body.fclt-modal-open {
	overflow: hidden;
}

.fclt-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: grid;
	align-items: center;
	justify-items: center;
	padding: clamp(1rem, 4vw, 3rem);
	color: var(--fclt-modal-foreground, #fafafa);
	opacity: 0;
	transition: opacity 180ms ease;
}

.fclt-modal.is-visible {
	opacity: 1;
}

.fclt-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, var(--fclt-backdrop-opacity, 0.65));
	cursor: pointer;
}

.fclt-modal__panel {
	position: relative;
	z-index: 1;
	width: min(var(--fclt-modal-width, 720px), calc(100vw - 2rem));
	max-height: calc(100vh - 2rem);
	overflow: auto;
	padding: 3.25rem 1rem 1rem;
	border-radius: var(--fclt-modal-radius, 14px);
	background: var(--fclt-modal-background, #121212);
	box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.45);
	transform: translateY(0.75rem) scale(0.985);
	transition: transform 180ms ease;
}

.fclt-modal.is-visible .fclt-modal__panel {
	transform: translateY(0) scale(1);
}

.fclt-modal__close {
	position: absolute;
	top: 0.65rem;
	right: 0.65rem;
	display: inline-grid;
	place-items: center;
	width: 2.35rem;
	height: 2.35rem;
	padding: 0;
	border: 1px solid currentColor;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
}

.fclt-modal__close:hover,
.fclt-modal__close:focus-visible {
	background: transparent;
	color: inherit;
	opacity: 0.72;
}

.fclt-modal__close:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.fclt-modal__player,
.fclt-modal__player iframe {
	display: block;
	width: 100%;
}

.fclt-modal__player iframe {
	border: 0;
}

.fclt-modal__footer {
	display: flex;
	justify-content: flex-end;
	padding-top: 0.75rem;
}

.fclt-modal__source {
	color: inherit;
	font-size: 0.875rem;
	line-height: 1.4;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.fclt-visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media (max-width: 480px) {
	.fclt-track__row {
		display: grid;
		grid-template-columns: 2.2em minmax(0, 1fr);
		align-items: center;
		gap: 0.55rem 0.75rem;
	}

	.fclt-track__play {
		width: 100%;
	}

	.fclt-track__source {
		grid-column: 2;
		justify-self: start;
	}

	.fclt-modal {
		align-items: end;
		padding: 0;
	}

	.fclt-modal__panel {
		width: 100%;
		max-height: calc(100vh - 1rem);
		padding: 3.25rem 0.75rem max(0.75rem, env(safe-area-inset-bottom));
		border-radius: 18px 18px 0 0;
		transform: translateY(2rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	.fclt-modal,
	.fclt-modal__panel {
		transition: none;
	}
}
