.jpaj-player {
	--jpaj-accent-a: #009eef;
	--jpaj-accent-b: #e61484;
	--jpaj-bg: #f0eee1;
	--jpaj-fg: #000000;
	--jpaj-border: #000000;
	--jpaj-btn-gradient: linear-gradient(-60deg, #FFF2C4, #D6EACA, #BAE3E7, #C7DEF4, #D9D1E8, #FACFE2);

	box-sizing: border-box;
	color: var(--jpaj-fg);
	margin: 32px 0;
	font-family: 'hero-new', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.jpaj-player * {
	box-sizing: border-box;
}

.jpaj-player__title {
	font-family: 'all-round-gothic', 'Arial Black', sans-serif;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.85em;
	margin: 0 0 16px;
}

.jpaj-player__controls {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.jpaj-player__play {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	flex: 0 0 auto;
	overflow: hidden;
	z-index: 1;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	border: 1px solid #000;
	border-radius: 0 !important;
	box-shadow: 1px 1px #000, 2px 2px #000, 3px 3px #000;
	cursor: pointer;
	padding: 0;
}

.jpaj-player__play::before,
.jpaj-player__btn::before {
	content: '';
	position: absolute;
	left: -20px;
	top: -150px;
	width: calc(100% + 40px);
	height: calc(100% + 300px);
	background: var(--jpaj-btn-gradient);
	z-index: -1;
}

.jpaj-player__play::after,
.jpaj-player__btn::after {
	content: '';
	position: absolute;
	width: calc(100% - 6px);
	height: calc(100% - 6px);
	left: 3px;
	top: 3px;
	background-color: #000000;
	border-radius: 0 !important;
	z-index: -1;
}

.jpaj-player__icon {
	width: 16px;
	height: 16px;
}

/* Some browsers don't apply the UA [hidden] -> display:none rule to inline
 * SVG elements, so the play/pause icon toggle silently fails to hide the
 * inactive icon. Force it explicitly. */
.jpaj-player__icon[hidden] {
	display: none !important;
}

.jpaj-player__progress {
	position: relative;
	flex: 1 1 auto;
	min-width: 100px;
	height: 10px;
	background: #fff;
	border: 1px solid #000;
	border-radius: 0;
	cursor: pointer;
}

.jpaj-player__progress-fill {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 0%;
	background: linear-gradient(-45deg, var(--jpaj-accent-a), var(--jpaj-accent-b));
	border-radius: 0;
	pointer-events: none;
}

.jpaj-player__time {
	font-family: 'hero-new', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 0.8em;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	flex: 0 0 auto;
}

.jpaj-player .jpaj-player__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	font-family: 'all-round-gothic', 'Arial Black', sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 0.75em;
	overflow: hidden;
	z-index: 1;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	border: 1px solid #000;
	border-radius: 0 !important;
	box-shadow: 1px 1px #000, 2px 2px #000, 3px 3px #000;
	padding: 0 12px;
	cursor: pointer;
	text-decoration: none;
	flex: 0 0 auto;
}

.jpaj-player__btn-label {
	background-image: var(--jpaj-btn-gradient);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	color: #000;
}

.jpaj-player__speed {
	min-width: 3.5em;
	text-align: center;
}

@media (max-width: 480px) {
	.jpaj-player__progress {
		order: 1;
		flex-basis: 100%;
	}

	.jpaj-player__time {
		order: 2;
	}
}

.jpaj-transcript {
	box-sizing: border-box;
	margin: 16px 0 32px;
	padding: 16px;
	background: var(--jpaj-bg, #f0eee1);
	border: 1px solid #000;
	box-shadow: 1px 1px #000, 2px 2px #000, 3px 3px #000;
	color: #000;
	font-family: 'hero-new', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.jpaj-transcript__summary {
	font-family: 'all-round-gothic', 'Arial Black', sans-serif;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.85em;
	cursor: pointer;
}

.jpaj-transcript[open] .jpaj-transcript__summary {
	margin-bottom: 16px;
}

.jpaj-transcript__body {
	font-size: 0.95em;
	line-height: 1.6;
}

.jpaj-transcript__body p:last-child {
	margin-bottom: 0;
}

.jpaj-word-active {
	background-color: var(--jpaj-sync-bg, rgba(0, 158, 239, 0.3));
	border-radius: 2px;
	padding: 0 1px;
}
