/* Stay Wealthy episode player. Layout follows creatorscience.com's episode player; colors are Stay Wealthy's. */
.swep {
	--swep-ink: #333333;
	--swep-accent: #198047;
	--swep-muted: #6b6b6b;
	--swep-line: #d9d9d9;
	box-sizing: border-box;
	width: 100%;
	margin: 0 0 20px;
	padding: 20px 22px 16px;
	border-radius: 6px; /* close to Fusebox's 5px */
	background: #F5F5F5;
	color: var(--swep-ink);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.4;
}
.swep *, .swep *::before, .swep *::after { box-sizing: border-box; }
.swep audio { display: none; }

.swep__k { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--swep-accent); }
.swep__title { margin: 6px 0 12px; font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--swep-ink); }

.swep__row { display: flex; align-items: center; gap: 12px; }
.swep__play {
	flex: none; display: grid; place-items: center;
	width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
	background: var(--swep-ink); color: #fff; cursor: pointer;
	transition: transform .12s ease, background-color .12s ease;
}
.swep__play:hover { background: #000; }
.swep__play:active { transform: scale(.96); }
.swep__play svg { width: 22px; height: 22px; }
.swep__play[data-state="play"] svg { margin-left: 3px; }

.swep__skip, .swep__speed {
	flex: none; min-width: 36px; height: 32px; padding: 0 6px; border: 0; border-radius: 4px;
	background: transparent; color: var(--swep-ink); font: 600 14px/1 Inter, sans-serif;
	font-variant-numeric: tabular-nums; cursor: pointer;
}
.swep__skip:hover, .swep__speed:hover { background: #e6e6e6; }

.swep__scrub { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--swep-muted); font-variant-numeric: tabular-nums; }
.swep__range {
	-webkit-appearance: none; appearance: none;
	flex: 1; min-width: 0; height: 5px; margin: 0; padding: 0;
	border: 0; border-radius: 3px; cursor: pointer; background: var(--swep-line);
	background-image: linear-gradient(var(--swep-ink), var(--swep-ink));
	background-size: var(--swep-pct, 0%) 100%; background-repeat: no-repeat;
}
.swep__range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--swep-ink); }
.swep__range::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--swep-ink); }
.swep__range:focus-visible { outline: 2px solid var(--swep-ink); outline-offset: 4px; }
.swep button:focus-visible, .swep a:focus-visible { outline: 2px solid var(--swep-ink); outline-offset: 2px; }

.swep__alt { margin-top: 12px; font-size: 13.5px; color: var(--swep-muted); }
.swep .swep__alt a { color: var(--swep-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; background: none; }
.swep .swep__alt a:hover { color: #000; }

.swep--pending { padding: 18px 22px; }
.swep__msg { margin: 0; font-size: 15px; color: var(--swep-ink); }
.swep .swep__msg a { color: var(--swep-ink); font-weight: 600; text-decoration: underline; background: none; }

/* Phones: the progress bar gets its own line under the buttons. */
@media (max-width: 520px) {
	.swep { padding: 18px 16px 14px; }
	.swep__row { flex-wrap: wrap; row-gap: 10px; }
	.swep__scrub { order: 5; flex-basis: 100%; }
	.swep__speed { margin-left: auto; }
}
