/**
 * Broadcast Archive
 * A broadcast diary: day and time slot are the spine, one persistent
 * transport is the only player.
 *
 * Everything is scoped to .ba or the transport, uses the host theme's font,
 * and keeps station red for play state, position and primary actions only.
 */

.ba {
	--ba-accent: #e50526;
	--ba-accent-ink: #b3041e;
	--ba-ink: #14161a;
	--ba-text: #191c21;
	--ba-muted: #5a6371;
	--ba-line: #e2e5e9;
	--ba-line-strong: #c9ced5;
	--ba-surface: #ffffff;
	--ba-surface-2: #f6f7f9;
	position: relative;
	max-width: 100%;
	color: var(--ba-text);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.45;
	color-scheme: light;
}

.ba *,
.ba *::before,
.ba *::after {
	box-sizing: border-box;
}

.ba button,
.ba input,
.ba select {
	font-family: inherit;
}

.ba h2,
.ba h3,
.ba h4 {
	font-family: inherit;
}

.ba img {
	max-width: 100%;
}

.ba ::selection {
	background: var(--ba-accent);
	color: #fff;
}

.ba :focus-visible {
	outline: 2px solid var(--ba-accent);
	outline-offset: 2px;
}

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

.ba-icon {
	display: block;
	width: 1.15em;
	height: 1.15em;
	flex: none;
}

.ba-audio {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

/* ---------------------------------------------------------------- toolbar */

.ba .ba-toolbar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 220px);
	align-items: center;
	gap: 10px;
	padding: 2px 0 4px;
}

.ba .ba-toolbar[hidden] {
	display: none;
}

.ba .ba-search {
	position: relative;
	display: flex;
	align-items: center;
	min-width: 0;
}

.ba .ba-search__icon {
	position: absolute;
	inset-inline-start: 14px;
	display: flex;
	color: var(--ba-muted);
	pointer-events: none;
}

.ba .ba-search__icon .ba-icon {
	width: 17px;
	height: 17px;
}

.ba .ba-search__input {
	width: 100%;
	height: 44px;
	margin: 0;
	padding-block: 0;
	padding-inline: 40px 42px;
	border: 1px solid var(--ba-line-strong);
	border-radius: 8px;
	background: var(--ba-surface);
	color: var(--ba-text);
	font-size: 15px;
	-webkit-appearance: none;
	appearance: none;
}

.ba .ba-search__input::placeholder {
	color: #69717e;
	opacity: 1;
}

.ba .ba-search__input:hover {
	border-color: #aeb5bf;
}

.ba .ba-search__input:focus {
	outline: 2px solid var(--ba-accent);
	outline-offset: 2px;
	border-color: var(--ba-accent);
}

.ba .ba-search__input::-webkit-search-cancel-button,
.ba .ba-search__input::-webkit-search-decoration {
	-webkit-appearance: none;
	appearance: none;
}

.ba .ba-search__clear {
	position: absolute;
	inset-inline-end: 6px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--ba-muted);
	cursor: pointer;
}

.ba .ba-search__clear:hover {
	background: var(--ba-surface-2);
	color: var(--ba-ink);
}

.ba .ba-search__clear[hidden] {
	display: none;
}

.ba .ba-search__clear .ba-icon {
	width: 16px;
	height: 16px;
}

.ba .ba-select-wrap {
	position: relative;
	min-width: 0;
}

.ba .ba-select {
	width: 100%;
	height: 44px;
	margin: 0;
	padding-inline: 12px;
	border: 1px solid var(--ba-line-strong);
	border-radius: 8px;
	background: var(--ba-surface);
	color: var(--ba-text);
	font-size: 14px;
	cursor: pointer;
}

.ba .ba-select:hover {
	border-color: #aeb5bf;
}

.ba .ba-select:focus {
	outline: 2px solid var(--ba-accent);
	outline-offset: 2px;
	border-color: var(--ba-accent);
}

.ba .ba-select:disabled {
	color: var(--ba-muted);
	cursor: default;
}

/* ------------------------------------------------------------- day filter */

.ba .ba-days {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 10px 0 12px;
	scrollbar-width: thin;
	scrollbar-color: #c3c8d0 transparent;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
}

.ba .ba-days[hidden] {
	display: none;
}

.ba .ba-days::-webkit-scrollbar {
	height: 6px;
}

.ba .ba-days::-webkit-scrollbar-thumb {
	background: #c3c8d0;
	border-radius: 3px;
}

.ba .ba-day {
	flex: none;
	min-height: 38px;
	margin: 0;
	padding: 6px 13px;
	border: 1px solid var(--ba-line-strong);
	border-radius: 999px;
	background: var(--ba-surface);
	color: var(--ba-text);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	scroll-snap-align: start;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ba .ba-day:hover {
	border-color: var(--ba-ink);
}

.ba .ba-day.is-active {
	background: var(--ba-ink);
	border-color: var(--ba-ink);
	color: #fff;
}

/* ------------------------------------------------------------------ meta */

.ba .ba-meta {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 4px 0 6px;
}

.ba .ba-meta[hidden] {
	display: none;
}

.ba .ba-count {
	margin: 0;
	font-size: 12.5px;
	letter-spacing: 0.01em;
	color: var(--ba-muted);
}

.ba .ba-clear {
	margin: 0;
	padding: 2px 0;
	border: 0;
	background: none;
	color: var(--ba-text);
	font-size: 12.5px;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.ba .ba-clear:hover {
	color: var(--ba-ink);
}

/* --------------------------------------------------------------- day list */

.ba .ba-day-section {
	margin-top: 22px;
}

.ba .ba-day-section:first-child {
	margin-top: 6px;
}

.ba .ba-day-section__title {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 0;
	padding: 0 0 9px;
	border-bottom: 1px solid var(--ba-line-strong);
	color: var(--ba-text);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.ba .ba-day-section__label::first-letter {
	text-transform: uppercase;
}

.ba .ba-day-section__count {
	margin-inline-start: auto;
	color: var(--ba-muted);
	font-size: 12px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.ba .ba-day-section__rows {
	display: flex;
	flex-direction: column;
}

/* ------------------------------------------------------------------- row */

.ba .ba-episode {
	position: relative;
	border-bottom: 1px solid var(--ba-line);
}

.ba .ba-episode:last-child {
	border-bottom: 0;
}

.ba .ba-episode__main {
	display: grid;
	grid-template-columns: 3rem 5.25rem minmax(0, 1fr) 2.5rem;
	align-items: center;
	gap: 12px;
	padding: 8px 6px;
	border-radius: 8px;
}

.ba .ba-episode__time {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
}

.ba .ba-episode__time-start {
	color: var(--ba-text);
	font-size: 14px;
	font-weight: 600;
}

.ba .ba-episode__time-end {
	color: var(--ba-muted);
	font-size: 12px;
}

.ba .ba-episode__body {
	min-width: 0;
}

.ba .ba-episode__title {
	margin: 0;
	color: var(--ba-text);
	font-size: 15px;
	font-weight: 650;
	line-height: 1.32;
	overflow-wrap: anywhere;
}

.ba .ba-episode__title-button {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	line-height: inherit;
	text-align: left;
	cursor: pointer;
}

.ba .ba-episode__title-button:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ba .ba-episode__meta {
	margin: 3px 0 0;
	overflow: hidden;
	color: var(--ba-muted);
	font-size: 12.5px;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.ba .ba-episode__meta--mobile {
	display: none;
}

.ba .ba-episode__excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
	overflow: hidden;
	margin: 4px 0 0;
	color: var(--ba-muted);
	font-size: 12.5px;
	line-height: 1.45;
}

/* play + details buttons */

.ba .ba-episode__play {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--ba-line-strong);
	border-radius: 50%;
	background: var(--ba-surface);
	color: var(--ba-ink);
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ba .ba-episode__play .ba-icon {
	width: 17px;
	height: 17px;
}

.ba .ba-episode__play .ba-icon[data-icon="play"] {
	margin-inline-start: 1px;
}

.ba .ba-episode__play:hover {
	border-color: var(--ba-ink);
}

.ba .ba-episode.is-playing .ba-episode__play {
	background: var(--ba-accent);
	border-color: var(--ba-accent);
	color: #fff;
}

.ba .ba-episode.is-playing .ba-episode__play .ba-icon {
	margin-inline-start: 0;
}

.ba .ba-episode__more {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--ba-muted);
	cursor: pointer;
}

.ba .ba-episode__more:hover {
	background: #eceef1;
	color: var(--ba-ink);
}

.ba .ba-episode__more[aria-expanded="true"] {
	color: var(--ba-ink);
}

.ba .ba-episode__more .ba-icon {
	width: 18px;
	height: 18px;
	transition: transform 0.18s ease;
}

.ba .ba-episode__more[aria-expanded="true"] .ba-icon {
	transform: rotate(180deg);
}

.ba .ba-episode__progress {
	position: absolute;
	inset-inline: 0;
	bottom: -1px;
	display: block;
	height: 2px;
	overflow: hidden;
	border-radius: 2px;
	background: rgba(20, 22, 26, 0.06);
	pointer-events: none;
}

.ba .ba-episode__progress-bar {
	display: block;
	height: 100%;
	border-radius: 0 2px 2px 0;
	background: var(--ba-accent);
	opacity: 0.55;
}

/* --------------------------------------------------------------- details */

.ba .ba-episode__details {
	padding: 2px 6px 18px 4.75rem;
}

.ba .ba-episode__details[hidden] {
	display: none;
}

.ba .ba-episode__details:not([hidden]) {
	animation: ba-reveal 0.16s ease-out both;
}

@keyframes ba-reveal {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.ba .ba-episode__details-inner {
	padding: 16px;
	border: 1px solid var(--ba-line);
	border-radius: 10px;
	background: var(--ba-surface-2);
}

.ba .ba-details__when {
	margin: 0 0 12px;
	color: var(--ba-muted);
	font-size: 12px;
	letter-spacing: 0.01em;
}

.ba .ba-details__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 0;
}

.ba .ba-details__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: start;
	gap: 16px;
	margin-bottom: 14px;
}

.ba .ba-details__head-text {
	min-width: 0;
}

/* Programme cover in the expanded row: a quiet top-right anchor, not a card. */
.ba .ba-details__cover {
	width: 112px;
	height: 112px;
	margin: 0;
	border: 1px solid var(--ba-line);
	border-radius: 8px;
	background: var(--ba-surface);
	object-fit: cover;
}

.ba .ba-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid transparent;
	border-radius: 8px;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

/* Host themes often underline every link on hover (e.g. the Newspaper
   theme's .tagdiv-type a:hover). Keep the button treatment in every
   interaction state; the extra class gives this rule higher specificity
   than the theme's link rule. */
.ba .ba-button:visited,
.ba .ba-button:hover,
.ba .ba-button:focus,
.ba .ba-button:focus-visible,
.ba .ba-button:active {
	text-decoration: none;
}

.ba .ba-button--primary {
	background: var(--ba-accent);
	border-color: var(--ba-accent);
	color: #fff;
}

.ba .ba-button--primary:hover {
	background: var(--ba-accent-ink);
	border-color: var(--ba-accent-ink);
}

.ba .ba-button--ghost {
	background: var(--ba-surface);
	border-color: var(--ba-line-strong);
	color: var(--ba-text);
}

.ba .ba-button--ghost:visited {
	color: var(--ba-text);
}

.ba .ba-button--ghost:hover {
	border-color: var(--ba-ink);
	background: rgba(20, 22, 26, 0.045);
}

.ba .ba-button .ba-icon {
	width: 16px;
	height: 16px;
}

.ba .ba-download__size {
	color: var(--ba-muted);
	font-weight: 500;
}

.ba .ba-details__description {
	max-width: 68ch;
	margin: 0 0 14px;
	color: #2c3138;
	font-size: 13.5px;
	line-height: 1.6;
	white-space: pre-line;
	overflow-wrap: anywhere;
}

.ba .ba-details__playlist {
	padding-top: 12px;
	border-top: 1px solid var(--ba-line);
}

.ba .ba-details__heading {
	margin: 0 0 6px;
	color: var(--ba-muted);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ba .ba-tracklist {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ba .ba-track {
	display: grid;
	grid-template-columns: 3.5rem minmax(0, 1fr);
	gap: 10px;
	padding: 5px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	font-size: 13px;
}

.ba .ba-track:last-child {
	border-bottom: 0;
}

.ba .ba-track__time {
	color: var(--ba-muted);
	font-variant-numeric: tabular-nums;
}

.ba .ba-track__artist {
	color: var(--ba-text);
	font-weight: 650;
}

.ba .ba-track__artist--link {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-decoration-color: rgba(20, 22, 26, 0.28);
	text-underline-offset: 2px;
	transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.ba .ba-track__artist--link:hover {
	color: var(--ba-accent);
	text-decoration-color: currentColor;
}

.ba .ba-track__title {
	color: #3a414b;
}

.ba .ba-track__title::before {
	content: " — ";
	color: #9aa2ad;
}

/* ---------------------------------------------------------------- resume */

.ba .ba-resume-slot:empty {
	display: none;
}

.ba .ba-resume {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin: 10px 0 0;
	padding: 10px 14px;
	border: 1px solid var(--ba-line-strong);
	border-radius: 10px;
	background: var(--ba-surface);
	color: var(--ba-text);
	font-family: inherit;
	text-align: start;
	cursor: pointer;
}

.ba .ba-resume:hover {
	border-color: var(--ba-ink);
}

.ba .ba-resume__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--ba-accent);
	color: #fff;
}

.ba .ba-resume__icon .ba-icon {
	width: 14px;
	height: 14px;
	margin-inline-start: 1px;
}

.ba .ba-resume__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ba .ba-resume__label {
	color: var(--ba-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ba .ba-resume__title {
	overflow: hidden;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.ba .ba-resume__time {
	margin-inline-start: auto;
	color: var(--ba-muted);
	font-size: 12.5px;
	font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------ stale feed */

.ba .ba-stale {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 8px 0 0;
	padding: 9px 12px;
	border: 1px solid var(--ba-line-strong);
	border-radius: 8px;
	background: var(--ba-surface-2);
	color: var(--ba-muted);
	font-size: 12.5px;
}

.ba .ba-stale[hidden] {
	display: none;
}

.ba .ba-stale__text {
	flex: 1 1 220px;
	margin: 0;
}

.ba .ba-stale__retry {
	margin: 0;
	padding: 2px 0;
	border: 0;
	background: none;
	color: var(--ba-ink);
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.ba .ba-stale__retry:hover {
	color: var(--ba-ink);
	text-decoration-thickness: 2px;
}

/* --------------------------------------------------------- empty + error */

.ba .ba-empty {
	margin-top: 16px;
	padding: 32px 16px;
	border: 1px dashed var(--ba-line-strong);
	border-radius: 10px;
	text-align: center;
}

.ba .ba-empty__title {
	margin: 0 0 14px;
	color: var(--ba-muted);
}

.ba .ba-message {
	margin-top: 16px;
	padding: 22px;
	border: 1px solid #f0c9cf;
	border-radius: 10px;
	background: #fff5f6;
}

.ba .ba-message__title {
	margin: 0 0 6px;
	color: var(--ba-text);
	font-size: 16px;
}

.ba .ba-message__body {
	margin: 0 0 16px;
	color: #5a3c40;
	font-size: 13.5px;
}

.ba .ba-notice {
	padding: 18px 20px;
	border: 1px solid var(--ba-line);
	border-radius: 10px;
	background: var(--ba-surface-2);
}

.ba .ba-notice p {
	margin: 0 0 10px;
}

.ba .ba-notice p:last-child {
	margin-bottom: 0;
}

/* -------------------------------------------------------------- load more */

.ba .ba-more {
	display: block;
	width: 100%;
	min-height: 44px;
	margin: 18px 0 0;
	padding: 0 16px;
	border: 1px solid var(--ba-line-strong);
	border-radius: 8px;
	background: var(--ba-surface);
	color: var(--ba-text);
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
}

.ba .ba-more:hover {
	border-color: var(--ba-ink);
}

.ba .ba-more[hidden] {
	display: none;
}

/* --------------------------------------------------------------- skeleton */

.ba .ba-skeleton {
	padding-top: 6px;
}

.ba .ba-skeleton__toolbar {
	display: flex;
	gap: 10px;
	padding: 2px 0 4px;
}

.ba .ba-skeleton__days {
	display: flex;
	gap: 8px;
	padding: 10px 0 12px;
}

.ba .ba-skeleton__block {
	display: block;
	height: 44px;
	border-radius: 8px;
	background: #eceef1;
	animation: ba-pulse 1.6s ease-in-out infinite;
}

.ba .ba-skeleton__block--search {
	flex: 1;
}

.ba .ba-skeleton__block--select {
	width: 220px;
}

.ba .ba-skeleton__block--chip {
	width: 110px;
	height: 38px;
	border-radius: 999px;
}

.ba .ba-skeleton__day {
	width: 180px;
	height: 14px;
	margin: 16px 0 12px;
	border-radius: 4px;
	background: #eceef1;
	animation: ba-pulse 1.6s ease-in-out infinite;
}

.ba .ba-skeleton__row {
	display: grid;
	grid-template-columns: 3rem 5.25rem minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	padding: 12px 6px;
	border-bottom: 1px solid var(--ba-line);
}

.ba .ba-skeleton__block--time {
	width: 100%;
	height: 32px;
}

.ba .ba-skeleton__block--title {
	width: 62%;
	height: 14px;
}

.ba .ba-skeleton__block--meta {
	display: none;
}

@keyframes ba-pulse {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.55;
	}
}

/* -------------------------------------------------------------- transport */

.ba-transport {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 2147483647;
	padding-bottom: env(safe-area-inset-bottom);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	background: #14161a;
	color: #f4f5f7;
	color-scheme: dark;
	transform: translateY(calc(100% + 2px));
	transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.25, 1);
	will-change: transform;
}

.ba-transport.is-open {
	transform: translateY(0);
}

.ba-transport[hidden] {
	display: none;
}

.ba-transport *,
.ba-transport *::before,
.ba-transport *::after {
	box-sizing: border-box;
}

.ba-transport :focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.ba-transport__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.7fr) auto;
	align-items: center;
	gap: 18px;
	max-width: 1120px;
	margin: 0 auto;
	padding: 10px 16px;
}

.ba-transport__track {
	display: flex;
	align-items: center;
	gap: 11px;
	min-width: 0;
}

.ba-transport__cover {
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 6px;
	background: #242830;
	object-fit: cover;
}

.ba-transport__text {
	min-width: 0;
}

.ba-transport__title {
	margin: 0;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ba-transport__meta {
	margin: 1px 0 0;
	color: #a7aeb9;
	font-size: 11.5px;
	line-height: 1.35;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ba-transport__controls {
	display: flex;
	align-items: center;
	gap: 6px;
}

.ba-transport__play {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ba-accent, #e50526);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.ba-transport__play:hover {
	background: var(--ba-accent-ink, #b3041e);
}

.ba-transport__play:disabled {
	opacity: 0.4;
	cursor: default;
}

.ba-transport__play .ba-icon {
	width: 20px;
	height: 20px;
}

.ba-transport__play .ba-icon[data-icon="play"] {
	margin-inline-start: 2px;
}

.ba-skip {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #c3c9d2;
	cursor: pointer;
}

.ba-skip .ba-icon {
	width: 16px;
	height: 16px;
}

.ba-skip__num {
	margin-top: -1px;
	font-size: 8.5px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.02em;
}

.ba-skip:hover {
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
}

.ba-transport__seek {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.ba-time {
	color: #a7aeb9;
	font-size: 11.5px;
	font-variant-numeric: tabular-nums;
}

.ba-time--current {
	color: #fff;
}

.ba-transport__range {
	width: 100%;
	height: 24px;
	margin: 0;
	padding: 0;
	background: transparent;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.ba-transport__range:disabled {
	opacity: 0.5;
	cursor: default;
}

.ba-transport__range::-webkit-slider-runnable-track {
	height: 4px;
	border-radius: 2px;
	background: linear-gradient(
		to right,
		var(--ba-accent, #e50526) 0 var(--ba-progress, 0%),
		#3a3f48 var(--ba-progress, 0%) 100%
	);
}

.ba-transport__range::-webkit-slider-thumb {
	width: 14px;
	height: 14px;
	margin-top: -5px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(229, 5, 38, 0.35);
	-webkit-appearance: none;
	appearance: none;
}

.ba-transport__range::-moz-range-track {
	height: 4px;
	border-radius: 2px;
	background: #3a3f48;
}

.ba-transport__range::-moz-range-progress {
	height: 4px;
	border-radius: 2px;
	background: var(--ba-accent, #e50526);
}

.ba-transport__range::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border: 0;
	border-radius: 50%;
	background: #fff;
}

.ba-transport__range:focus-visible {
	outline: none;
}

.ba-transport__range:focus-visible::-webkit-slider-thumb {
	box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--ba-accent, #e50526);
}

:dir(rtl) .ba-transport__range::-webkit-slider-runnable-track {
	background: linear-gradient(
		to left,
		var(--ba-accent, #e50526) 0 var(--ba-progress, 0%),
		#3a3f48 var(--ba-progress, 0%) 100%
	);
}

.ba-transport__aside {
	display: flex;
	align-items: center;
	gap: 4px;
}

.ba-transport__download,
.ba-transport__close {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #c3c9d2;
	cursor: pointer;
	text-decoration: none;
}

.ba-transport__download .ba-icon,
.ba-transport__close .ba-icon {
	width: 18px;
	height: 18px;
}

.ba-transport__download:hover,
.ba-transport__close:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.ba-transport__download[hidden] {
	display: none;
}

.ba-transport__info {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 38px;
	margin: 0;
	padding: 0 8px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #c3c9d2;
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ba-transport__info .ba-icon {
	width: 17px;
	height: 17px;
}

.ba-transport__info:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.ba-transport__info[aria-expanded="true"] {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.ba-transport__info[hidden] {
	display: none;
}

/* Info panel: a light sheet that slides up from the dark transport. */
.ba-transport-info {
	position: absolute;
	inset-inline: 0;
	bottom: 100%;
	max-height: min(62vh, 540px);
	overflow-y: auto;
	overscroll-behavior: contain;
	border-radius: 10px 10px 0 0;
	background: #fff;
	color: var(--ba-text, #191c21);
	color-scheme: light;
	box-shadow: 0 -14px 34px rgba(20, 22, 26, 0.18);
}

.ba-transport-info[hidden] {
	display: none;
}

.ba-transport-info:not([hidden]) {
	animation: ba-info-in 0.22s ease-out both;
}

@keyframes ba-info-in {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.ba-transport-info__inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 16px 22px;
}

.ba-transport-info__head {
	position: sticky;
	top: 0;
	z-index: 1;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
	padding: 16px 0 12px;
	border-bottom: 1px solid var(--ba-line, #e2e5e9);
	background: #fff;
}

.ba-transport-info__titles {
	min-width: 0;
}

.ba-transport-info__title {
	margin: 0;
	font-size: 16px;
	font-weight: 650;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.ba-transport-info__close {
	display: grid;
	place-items: center;
	flex: none;
	width: 38px;
	height: 38px;
	margin: -4px -8px 0 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--ba-muted, #5a6371);
	cursor: pointer;
}

.ba-transport-info__close:hover {
	background: #f0f2f5;
	color: var(--ba-ink, #14161a);
}

.ba-transport-info__close .ba-icon {
	width: 18px;
	height: 18px;
}

.ba-transport-info .ba-details__when {
	margin: 4px 0 0;
}

.ba-transport-info .ba-details__description {
	max-width: 74ch;
	margin: 0;
}

.ba-transport-info__playlist {
	margin-top: 16px;
	padding-top: 12px;
	border-top: 1px solid var(--ba-line, #e2e5e9);
}

.ba-transport-info__playlist[hidden] {
	display: none;
}

.ba-transport-info :focus-visible {
	outline-color: var(--ba-ink, #14161a);
}

.ba-transport ::selection {
	background: var(--ba-accent, #e50526);
	color: #fff;
}

body.ba-transport-open {
	padding-bottom: calc(var(--ba-transport-height, 0px) + 8px);
}

/* ----------------------------------------------------------- interaction */

@media (hover: hover) {
	.ba .ba-episode__main:hover {
		background: var(--ba-surface-2);
	}

	.ba .ba-day:hover,
	.ba .ba-day.is-active:hover {
		border-color: var(--ba-ink);
	}

	.ba .ba-episode__more:hover {
		background: #eceef1;
	}
}

/* --------------------------------------------------------------- tablet */

@media (max-width: 900px) {
	.ba-transport__inner {
		gap: 12px;
	}
}

/* ----------------------------------------------------------- small screens */

@media (max-width: 760px) {
	.ba-transport__inner {
		grid-template-columns: minmax(0, 1fr) auto auto;
		grid-template-areas:
			"track controls aside"
			"seek seek seek";
		gap: 6px 10px;
		padding: 9px 12px;
	}

	.ba-transport__track {
		grid-area: track;
	}

	.ba-transport__controls {
		grid-area: controls;
	}

	.ba-transport__seek {
		grid-area: seek;
	}

	.ba-transport__aside {
		grid-area: aside;
	}

	.ba-transport__info {
		width: 38px;
		padding: 0;
	}

	.ba-transport__info-label {
		display: none;
	}

	.ba-transport-info {
		max-height: 64vh;
	}

	.ba-transport-info__inner {
		padding: 0 14px 18px;
	}

	.ba-transport-info__head {
		padding-top: 14px;
	}

	.ba-transport-info__title {
		font-size: 15px;
	}

	.ba-transport__aside .ba-transport__download {
		display: none;
	}

	.ba-transport__play {
		width: 44px;
		height: 44px;
	}

	.ba-skip {
		width: 38px;
		height: 40px;
	}

	.ba-transport__cover {
		width: 38px;
		height: 38px;
	}

	.ba-transport__title {
		font-size: 13px;
	}

	.ba-transport__meta {
		font-size: 11px;
	}

	.ba-transport__close {
		width: 38px;
		height: 38px;
	}
}

@media (max-width: 680px) {
	.ba .ba-episode__main {
		grid-template-columns: 3rem minmax(0, 1fr) 2.5rem;
		gap: 10px;
		padding-inline: 4px 2px;
	}

	.ba .ba-episode__time {
		display: none;
	}

	.ba .ba-episode__meta--desktop {
		display: none;
	}

	.ba .ba-episode__meta--mobile {
		display: block;
	}

	.ba .ba-episode__excerpt {
		-webkit-line-clamp: 2;
	}

	.ba .ba-episode__details {
		padding: 0 2px 16px;
	}

	.ba .ba-details__head {
		gap: 12px;
	}

	.ba .ba-details__cover {
		width: 88px;
		height: 88px;
	}

	.ba .ba-episode__title {
		font-size: 15px;
	}

	.ba .ba-episode__play {
		width: 44px;
		height: 44px;
	}

	.ba .ba-day-section__title {
		font-size: 15px;
	}

	.ba .ba-skeleton__row {
		grid-template-columns: 3rem minmax(0, 1fr);
	}

	.ba .ba-skeleton__block--time {
		display: none;
	}

	.ba .ba-skeleton__block--select {
		width: 100%;
	}
}

@media (max-width: 560px) {
	.ba .ba-toolbar {
		grid-template-columns: minmax(0, 1fr);
	}

	.ba .ba-skeleton__toolbar {
		flex-direction: column;
	}
}

@media (max-width: 420px) {
	.ba .ba-episode__meta {
		font-size: 12px;
	}

	.ba .ba-episode__excerpt {
		display: none;
	}

	.ba .ba-episode__details-inner {
		padding: 14px;
	}

	.ba .ba-details__cover {
		width: 76px;
		height: 76px;
	}

	.ba .ba-day-section__count {
		display: none;
	}
}

/* ------------------------------------------------------------- reduce motion */

@media (prefers-reduced-motion: reduce) {
	.ba *,
	.ba *::before,
	.ba *::after,
	.ba-transport,
	.ba-transport * {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ------------------------------------------------------------ forced colors */

@media (forced-colors: active) {
	.ba .ba-episode__play,
	.ba .ba-day,
	.ba .ba-button,
	.ba .ba-search__input,
	.ba .ba-select,
	.ba .ba-more {
		border: 1px solid CanvasText;
	}

	.ba-transport {
		border-top: 2px solid CanvasText;
	}
}

/* ------------------------------------------------------------------ print */

@media print {
	.ba .ba-toolbar,
	.ba .ba-days,
	.ba .ba-resume,
	.ba .ba-more,
	.ba .ba-clear,
	.ba .ba-episode__play,
	.ba .ba-episode__more,
	.ba .ba-episode__progress,
	.ba .ba-details__actions,
	.ba-transport {
		display: none !important;
	}

	.ba .ba-episode__main {
		grid-template-columns: 5.25rem minmax(0, 1fr);
	}

	.ba .ba-episode__time {
		display: flex !important;
	}

	.ba .ba-episode__details {
		padding: 0 0 14px;
	}

	.ba .ba-episode__details[hidden] {
		display: block !important;
	}

	.ba .ba-episode__details-inner {
		border: 0;
		background: transparent;
		padding: 0;
	}
}

/* Phones: drop the artwork so the title stays readable. */
@media (max-width: 420px) {
	.ba-transport__cover {
		display: none;
	}
}

@media (max-width: 360px) {

	.ba-transport__inner {
		gap: 6px 8px;
		padding: 9px 10px;
	}

	.ba-transport__controls {
		gap: 2px;
	}

	.ba-transport__play {
		width: 44px;
		height: 44px;
	}

	.ba-skip {
		width: 38px;
	}

	.ba-transport__close {
		width: 38px;
		height: 38px;
	}
}
