/**
 * Components: buttons, the audio player, episode cards and rows, artwork,
 * listen links, chapters, guests, transcript and small UI pieces.
 * Loaded on the front end and in the editor (so block previews match).
 */

/* ── Utilities ────────────────────────────────────────────────────────── */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.ot-icon {
	width: 1.25em;
	height: 1.25em;
	flex-shrink: 0;
	vertical-align: middle;
}

.ot-when-playing,
.ot-when-muted,
.ot-spinner {
	display: none;
}

.is-playing .ot-when-playing,
.is-muted .ot-when-muted {
	display: block;
}

.is-playing .ot-when-paused,
.is-muted .ot-when-unmuted,
.is-loading .ot-when-paused,
.is-loading .ot-when-playing {
	display: none;
}

.is-loading .ot-spinner {
	display: block;
}

.ot-spinner {
	width: 1.1em;
	height: 1.1em;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: ot-spin 0.75s linear infinite;
}

@keyframes ot-spin {
	to {
		transform: rotate(360deg);
	}
}

.ot-eyebrow {
	margin: 0;
	color: var(--ot-accent-ink);
	font-family: var(--ot-font-body);
	font-size: var(--ot-step--1);
	font-weight: 650;
	letter-spacing: 0.1em;
	line-height: 1.3;
	text-transform: uppercase;
}

.ot-eyebrow a {
	color: inherit;
	text-decoration: none;
}

.ot-badge {
	display: inline-grid;
	place-items: center;
	min-width: 1.35em;
	height: 1.35em;
	padding: 0 0.3em;
	border-radius: 0.3em;
	background: var(--ot-surface-2);
	color: var(--ot-muted);
	font-size: 0.78em;
	font-weight: 700;
	line-height: 1;
}

.ot-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.15em 0.5em;
	margin: 0;
	color: var(--ot-muted);
	font-family: var(--ot-font-body);
	font-size: var(--ot-step--1);
	font-variant-numeric: tabular-nums;
	line-height: 1.4;
}

.ot-meta__label {
	color: var(--ot-accent-ink);
	font-weight: 650;
	letter-spacing: 0.04em;
}

.ot-meta__sep {
	color: var(--ot-subtle);
}

.ot-block-notice {
	margin: 0;
	padding: var(--ot-space-4) var(--ot-space-5);
	border: 1.5px dashed var(--ot-border-strong);
	border-radius: var(--ot-radius);
	color: var(--ot-muted);
	font-size: var(--ot-step--1);
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.ot-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55em;
	min-height: 2.75rem;
	padding: 0.7em 1.35em;
	border: 1.5px solid transparent;
	border-radius: var(--ot-button-radius);
	background: var(--ot-accent);
	color: var(--ot-on-accent);
	cursor: pointer;
	font-family: var(--ot-font-body);
	font-size: var(--ot-step--1);
	font-weight: 650;
	line-height: 1.15;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--ot-fast) var(--ot-ease), border-color var(--ot-fast) var(--ot-ease), color var(--ot-fast) var(--ot-ease), transform var(--ot-fast) var(--ot-ease);
}

.ot-button:hover {
	background: var(--ot-accent-hover);
	color: var(--ot-on-accent);
}

.ot-button:active {
	transform: translateY(1px);
}

.ot-button--ghost {
	border-color: var(--ot-border-strong);
	background: transparent;
	color: var(--ot-text);
}

.ot-button--ghost:hover {
	border-color: var(--ot-text);
	background: transparent;
	color: var(--ot-text);
}

.ot-button--soft {
	background: var(--ot-accent-soft);
	color: var(--ot-text);
}

.ot-button--soft:hover {
	background: color-mix(in oklab, var(--ot-accent) 22%, var(--ot-bg));
	color: var(--ot-text);
}

.ot-button--inverse {
	background: var(--ot-on-accent);
	color: var(--ot-accent);
}

.ot-button--inverse:hover {
	background: color-mix(in oklab, var(--ot-on-accent) 88%, var(--ot-accent));
	color: var(--ot-accent);
}

.ot-button--small {
	min-height: 2.35rem;
	padding: 0.5em 1em;
}

.ot-button--large {
	min-height: 3.1rem;
	padding: 0.85em 1.6em;
	font-size: var(--ot-step-0);
}

.ot-button .ot-icon {
	width: 1.15em;
	height: 1.15em;
}

.ot-button .ot-play__icon {
	display: inline-grid;
	place-items: center;
}

.ot-icon-btn {
	display: inline-grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	border-radius: min(var(--ot-button-radius), 50%);
	background: transparent;
	color: inherit;
	cursor: pointer;
	text-decoration: none;
	transition: background-color var(--ot-fast) var(--ot-ease), color var(--ot-fast) var(--ot-ease);
}

.ot-icon-btn:hover {
	background: var(--ot-surface-2);
	color: var(--ot-text);
}

.ot-icon-btn .ot-icon {
	width: 1.35rem;
	height: 1.35rem;
}

.ot-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	color: var(--ot-text);
	font-size: var(--ot-step--1);
	font-weight: 650;
	text-decoration: none;
}

.ot-link-arrow .ot-icon {
	width: 1.05em;
	height: 1.05em;
	color: var(--ot-accent-ink);
	transition: transform var(--ot-fast) var(--ot-ease);
}

.ot-link-arrow:hover {
	color: var(--ot-accent-ink);
}

.ot-link-arrow:hover .ot-icon {
	transform: translateX(3px);
}

:where(.ot-button, .ot-icon-btn, .ot-play, .ot-rate, .ot-chip, .ot-tag, .ot-listen__link, .ot-chapters__btn, .ot-transcript__time, .ot-player__toggle, .ot-dock__toggle):focus-visible,
.ot-stretched:focus-visible::after {
	outline: 2px solid transparent;
	box-shadow: var(--ot-focus-ring);
}

/* ── Range inputs (seek, volume) ──────────────────────────────────────── */

.ot-range {
	--ot-progress: 0%;
	--ot-track: var(--ot-border-input);
	--ot-fill: var(--ot-accent);
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 1.5rem;
	margin: 0;
	background: transparent;
	cursor: pointer;
}

.ot-range::-webkit-slider-runnable-track {
	height: 5px;
	border-radius: 99px;
	background: linear-gradient(to right, var(--ot-fill) var(--ot-progress), var(--ot-track) var(--ot-progress));
}

.ot-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 15px;
	height: 15px;
	margin-top: -5px;
	border: 0;
	border-radius: 50%;
	background: var(--ot-fill);
	box-shadow: 0 0 0 3px var(--ot-thumb-ring, transparent);
	transition: transform var(--ot-fast) var(--ot-ease);
}

.ot-range::-moz-range-track {
	height: 5px;
	border-radius: 99px;
	background: var(--ot-track);
}

.ot-range::-moz-range-progress {
	height: 5px;
	border-radius: 99px;
	background: var(--ot-fill);
}

.ot-range::-moz-range-thumb {
	width: 15px;
	height: 15px;
	border: 0;
	border-radius: 50%;
	background: var(--ot-fill);
}

.ot-range:hover::-webkit-slider-thumb {
	transform: scale(1.2);
}

.ot-range:focus-visible {
	outline: none;
}

.ot-range:focus-visible::-webkit-slider-thumb {
	box-shadow: var(--ot-focus-ring);
}

.ot-range:focus-visible::-moz-range-thumb {
	box-shadow: var(--ot-focus-ring);
}

/* ── The player ───────────────────────────────────────────────────────── */

.ot-player {
	--ot-player-pad: clamp(var(--ot-space-3), 2.5vw, var(--ot-space-4));
	position: relative;
	container-type: inline-size;
	padding: var(--ot-player-pad);
	border: 1px solid var(--ot-card-border, var(--ot-border));
	border-radius: var(--ot-radius);
	background: var(--ot-card-bg, transparent);
	box-shadow: var(--ot-card-shadow, none);
	font-family: var(--ot-font-body);
	font-size: var(--ot-step--1);
}

.ot-cards-outline .ot-player,
.editor-styles-wrapper .ot-player {
	background: var(--ot-surface);
	border-color: transparent;
}

.ot-player__native {
	display: block;
	width: 100%;
}

.js .ot-player__native,
.no-js .ot-player__ui {
	display: none;
}

.ot-player__ui {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: var(--ot-space-4);
}

.ot-player__toggle,
.ot-dock__toggle {
	display: grid;
	place-items: center;
	width: 3.5rem;
	height: 3.5rem;
	padding: 0;
	border: 0;
	border-radius: min(var(--ot-button-radius), 50%);
	background: var(--ot-accent);
	color: var(--ot-on-accent);
	cursor: pointer;
	transition: transform var(--ot-fast) var(--ot-ease), background-color var(--ot-fast) var(--ot-ease);
}

.ot-player__toggle:hover,
.ot-dock__toggle:hover {
	background: var(--ot-accent-hover);
	transform: scale(1.04);
}

.ot-player__toggle .ot-icon,
.ot-dock__toggle .ot-icon {
	width: 1.5rem;
	height: 1.5rem;
}

.ot-player__toggle .ot-icon--play,
.ot-dock__toggle .ot-icon--play,
.ot-play__icon .ot-icon--play {
	transform: translateX(1px);
}

.ot-player__main {
	display: grid;
	gap: var(--ot-space-1);
	min-width: 0;
}

.ot-player__title {
	margin: 0;
	overflow: hidden;
	font-weight: 650;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ot-player__title a {
	color: inherit;
	text-decoration: none;
}

.ot-player__timeline {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--ot-space-3);
}

.ot-player__time {
	color: var(--ot-muted);
	font-size: var(--ot-step--2);
	font-variant-numeric: tabular-nums;
	min-width: 3.4em;
}

.ot-player__time--end {
	text-align: end;
}

.ot-player__track {
	position: relative;
	display: flex;
	align-items: center;
}

.ot-player__marks {
	position: absolute;
	inset: 50% 0 auto;
	height: 5px;
	transform: translateY(-50%);
	pointer-events: none;
	z-index: 1;
}

.ot-player__marks span {
	position: absolute;
	left: var(--ot-at);
	width: 2px;
	height: 100%;
	background: var(--ot-surface);
}

.ot-player__controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--ot-space-1);
	margin-inline-start: calc(-1 * var(--ot-space-2));
}

.ot-player__controls .ot-icon-btn {
	width: 2.25rem;
	height: 2.25rem;
	color: var(--ot-muted);
}

.ot-player__controls .ot-icon-btn:hover {
	color: var(--ot-text);
}

.ot-rate {
	min-width: 3rem;
	height: 1.85rem;
	padding: 0 0.6em;
	border: 1px solid var(--ot-border-strong);
	border-radius: var(--ot-button-radius);
	background: transparent;
	color: var(--ot-text);
	cursor: pointer;
	font: 700 var(--ot-step--2) / 1 var(--ot-font-body);
	font-variant-numeric: tabular-nums;
}

.ot-rate:hover {
	border-color: var(--ot-text);
}

.ot-rate.is-changed {
	border-color: var(--ot-accent);
	background: var(--ot-accent-soft);
}

.ot-player__chapter {
	overflow: hidden;
	min-width: 0;
	max-width: 22ch;
	margin-inline-start: var(--ot-space-2);
	color: var(--ot-muted);
	font-size: var(--ot-step--2);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ot-player__spacer {
	flex: 1;
}

.ot-player__volume {
	display: inline-flex;
	align-items: center;
}

.ot-player__volume-range {
	width: 5.5rem;
	--ot-fill: var(--ot-muted);
}

@media (hover: none) {
	.ot-player__volume-range {
		display: none;
	}
}

/* Compact layout whenever the player sits in a narrow space (sidebar, column, phone). */
@container (max-width: 460px) {
	.ot-player__volume-range,
	.ot-player__chapter {
		display: none;
	}
}

.ot-player__status {
	margin: 0;
	color: var(--ot-muted);
	font-size: var(--ot-step--2);
}

.ot-player__status:empty {
	display: none;
}

.ot-player__status:not(:empty) {
	margin-block-start: var(--ot-space-2);
}

.ot-player.is-error .ot-player__status {
	color: #c0392b;
}

@container (max-width: 380px) {
	.ot-player__ui {
		gap: var(--ot-space-3);
	}

	.ot-player__toggle {
		width: 3rem;
		height: 3rem;
	}
}

/* Compact play button on cards. */
.ot-play {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	padding: 0.25em 0.95em 0.25em 0.25em;
	border: 0;
	border-radius: var(--ot-button-radius);
	background: var(--ot-accent-soft);
	color: var(--ot-text);
	cursor: pointer;
	font: 650 var(--ot-step--1) / 1.2 var(--ot-font-body);
	font-variant-numeric: tabular-nums;
	transition: background-color var(--ot-fast) var(--ot-ease);
}

.ot-play:hover {
	background: color-mix(in oklab, var(--ot-accent) 24%, var(--ot-bg));
}

.ot-play__icon {
	display: grid;
	place-items: center;
	width: 2.15rem;
	height: 2.15rem;
	border-radius: min(var(--ot-button-radius), 50%);
	background: var(--ot-accent);
	color: var(--ot-on-accent);
}

.ot-play__icon .ot-icon {
	width: 1rem;
	height: 1rem;
}

.ot-play.is-playing {
	background: var(--ot-accent);
	color: var(--ot-on-accent);
}

.ot-play.is-playing .ot-play__icon {
	background: var(--ot-on-accent);
	color: var(--ot-accent);
}

/* ── Artwork ──────────────────────────────────────────────────────────── */

.ot-art {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 1;
	border-radius: var(--ot-radius);
	background: var(--ot-surface-2);
}

.ot-art__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ot-art--placeholder {
	display: grid;
	place-items: center;
	background:
		radial-gradient(120% 90% at 100% 0%, color-mix(in oklab, var(--ot-accent) 70%, #fff) 0%, transparent 55%),
		linear-gradient(145deg, var(--ot-accent) 0%, color-mix(in oklab, var(--ot-accent) 58%, var(--ot-text)) 100%);
	color: var(--ot-on-accent);
	container-type: inline-size;
}

.ot-art__mark {
	font-family: var(--ot-font-heading);
	font-size: clamp(1.25rem, 38cqi, 9rem);
	font-weight: var(--ot-heading-weight);
	letter-spacing: -0.04em;
	line-height: 1;
}

.ot-art__wave {
	position: absolute;
	inset-block-start: 9%;
	inset-inline-start: 9%;
	opacity: 0.55;
}

.ot-art__wave .ot-icon {
	width: clamp(0.9rem, 16cqi, 3rem);
	height: clamp(0.9rem, 16cqi, 3rem);
}

.ot-art--doc {
	background: var(--ot-surface-2);
	color: var(--ot-muted);
}

.ot-art--doc .ot-icon {
	width: 40%;
	height: 40%;
}

/* Played / in-progress badges (set by the player script). */
[data-ot-badge]::after {
	content: attr(data-ot-badge);
	position: absolute;
	inset-block-start: var(--ot-space-2);
	inset-inline-end: var(--ot-space-2);
	z-index: 1;
	padding: 0.3em 0.65em;
	border-radius: var(--ot-button-radius);
	background: color-mix(in srgb, var(--ot-bg) 88%, transparent);
	color: var(--ot-text);
	font: 700 var(--ot-step--2) / 1 var(--ot-font-body);
	letter-spacing: 0.04em;
	backdrop-filter: blur(6px);
}

.ot-progress {
	display: block;
	height: 4px;
	overflow: hidden;
	border-radius: 99px;
	background: var(--ot-border);
}

.ot-progress[hidden] {
	display: none;
}

.ot-progress > span {
	display: block;
	width: var(--ot-p, 0%);
	height: 100%;
	border-radius: inherit;
	background: var(--ot-accent);
}

/* ── Episode lists ────────────────────────────────────────────────────── */

.ot-episodes--grid {
	--ot-grid-gap: var(--ot-space-5);
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, max(15rem, calc((100% - (var(--ot-columns, 3) - 1) * var(--ot-grid-gap)) / var(--ot-columns, 3)))), 1fr));
	gap: var(--ot-space-6) var(--ot-grid-gap);
}

.ot-card {
	position: relative;
	border: 1px solid var(--ot-card-border);
	border-radius: var(--ot-radius);
	background: var(--ot-card-bg);
	box-shadow: var(--ot-card-shadow);
	transition: border-color var(--ot-medium) var(--ot-ease), box-shadow var(--ot-medium) var(--ot-ease), transform var(--ot-medium) var(--ot-ease);
}

.ot-card:hover {
	border-color: var(--ot-card-hover-border);
}

.ot-cards-elevated .ot-card:hover {
	box-shadow: var(--ot-shadow-lg);
	transform: translateY(-2px);
}

.ot-stretched {
	color: inherit;
	text-decoration: none;
}

.ot-stretched::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}

.ot-episode-card {
	display: flex;
	flex-direction: column;
	padding: var(--ot-space-3);
}

.ot-episode-card__art {
	position: relative;
}

.ot-episode-card__art .ot-art {
	border-radius: var(--ot-radius-inner);
}

.ot-episode-card__art .ot-art__img {
	transition: transform 600ms var(--ot-ease);
}

.ot-episode-card:hover .ot-art__img {
	transform: scale(1.03);
}

.ot-episode-card__art .ot-progress {
	position: absolute;
	inset: auto var(--ot-space-3) var(--ot-space-3);
	background: color-mix(in srgb, var(--ot-bg) 70%, transparent);
	z-index: 1;
}

.ot-episode-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--ot-space-2);
	padding: var(--ot-space-4) var(--ot-space-2) var(--ot-space-2);
}

.ot-episode-card__title,
.ot-row__title,
.ot-post-card__title {
	font-size: var(--ot-step-1);
	line-height: var(--ot-leading-snug);
}

.ot-episode-card__title a:hover,
.ot-row__title a:hover,
.ot-post-card__title a:hover {
	color: var(--ot-accent-ink);
}

.ot-episode-card__excerpt,
.ot-row__excerpt,
.ot-post-card__excerpt {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: var(--ot-muted);
	font-size: var(--ot-step--1);
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.ot-episode-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--ot-space-3);
	margin-block-start: auto;
	padding-block-start: var(--ot-space-3);
}

/* Rows */
.ot-episodes--list {
	display: flex;
	flex-direction: column;
}

.ot-row {
	position: relative;
	display: grid;
	grid-template-columns: clamp(3.75rem, 11vw, 6rem) minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--ot-space-5);
	padding-block: var(--ot-space-5);
	border-bottom: 1px solid var(--ot-border);
}

.ot-row:first-child {
	border-top: 1px solid var(--ot-border);
}

.ot-row__art {
	position: relative;
}

.ot-row__art .ot-art {
	border-radius: var(--ot-radius-sm);
}

.ot-row__art[data-ot-badge]::after {
	display: none;
}

.ot-row__body {
	display: grid;
	gap: var(--ot-space-1);
	min-width: 0;
}

.ot-row__excerpt {
	-webkit-line-clamp: 2;
}

.ot-row .ot-progress {
	max-width: 14rem;
	margin-block-start: var(--ot-space-2);
}

.ot-cards-filled .ot-episodes--list,
.ot-cards-elevated .ot-episodes--list {
	gap: var(--ot-space-3);
}

.ot-cards-filled .ot-row,
.ot-cards-elevated .ot-row {
	padding: var(--ot-space-4);
	border: 1px solid var(--ot-card-border);
	border-radius: var(--ot-radius);
	background: var(--ot-card-bg);
	box-shadow: var(--ot-card-shadow);
}

@media (max-width: 600px) {
	.ot-row {
		grid-template-columns: 4.25rem minmax(0, 1fr);
		gap: var(--ot-space-4);
	}

	.ot-row__action {
		grid-column: 2;
	}

	.ot-row__excerpt {
		display: none;
	}
}

/* Blog cards */
.ot-post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.ot-post-card__media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.ot-post-card__body {
	display: grid;
	gap: var(--ot-space-2);
	padding: var(--ot-card-pad);
}

/* ── Spotlight (featured episode) ─────────────────────────────────────── */

.ot-spotlight {
	position: relative;
	container-type: inline-size;
	padding: clamp(var(--ot-space-4), 4vw, var(--ot-space-7));
	border: 1px solid var(--ot-card-border);
	border-radius: var(--ot-radius-lg);
	background: var(--ot-card-bg);
	box-shadow: var(--ot-card-shadow);
}

.ot-cards-outline .ot-spotlight {
	background:
		radial-gradient(120% 140% at 0% 0%, var(--ot-accent-soft) 0%, transparent 55%),
		var(--ot-bg);
}

.ot-spotlight__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--ot-space-6);
	align-items: center;
}

/* Side by side only when the spotlight itself is wide enough — wherever it is placed. */
@container (min-width: 680px) {
	.ot-spotlight__inner {
		grid-template-columns: minmax(12rem, 20rem) minmax(0, 1fr);
	}

	.ot-spotlight--no-art .ot-spotlight__inner {
		grid-template-columns: minmax(0, 1fr);
	}
}

.ot-spotlight__art {
	display: block;
	max-width: 20rem;
	box-shadow: var(--ot-shadow);
	border-radius: var(--ot-radius);
}

.ot-spotlight__body {
	display: grid;
	gap: var(--ot-space-3);
	min-width: 0;
}

.ot-spotlight__title {
	font-size: var(--ot-step-3);
	line-height: var(--ot-leading-tight);
}

.ot-spotlight__title a {
	color: inherit;
	text-decoration: none;
}

.ot-spotlight__title a:hover {
	color: var(--ot-accent-ink);
}

.ot-spotlight__excerpt {
	margin: 0;
	color: var(--ot-muted);
}

.ot-spotlight .ot-player {
	margin-block-start: var(--ot-space-2);
}

.ot-spotlight .ot-player,
.ot-cards-outline .ot-spotlight .ot-player {
	background: var(--ot-bg);
	border-color: var(--ot-border);
}

.ot-cards-filled .ot-spotlight .ot-player {
	background: var(--ot-bg);
	border-color: transparent;
}

.ot-spotlight__more {
	justify-self: start;
}

/* ── Listen links ─────────────────────────────────────────────────────── */

.ot-listen {
	display: grid;
	gap: var(--ot-space-3);
}

.ot-listen__heading {
	margin: 0;
	color: var(--ot-muted);
	font-size: var(--ot-step--2);
	font-weight: 650;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.ot-listen__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ot-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ot-listen--center {
	justify-items: center;
	text-align: center;
}

.ot-listen--center .ot-listen__list {
	justify-content: center;
}

.ot-listen--right {
	justify-items: end;
}

.ot-listen--right .ot-listen__list {
	justify-content: flex-end;
}

.ot-listen__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	color: var(--ot-text);
	font-family: var(--ot-font-body);
	font-weight: 600;
	text-decoration: none;
	transition: background-color var(--ot-fast) var(--ot-ease), border-color var(--ot-fast) var(--ot-ease), color var(--ot-fast) var(--ot-ease);
}

.ot-listen__link .ot-icon {
	width: 1.1em;
	height: 1.1em;
	color: var(--ot-accent-ink);
}

.ot-listen__go {
	opacity: 0.45;
}

.ot-listen__link.is-copied .ot-listen__go {
	opacity: 1;
}

/* Buttons variant */
.ot-listen--buttons .ot-listen__link {
	min-height: 3rem;
	padding: 0.65em 1.1em;
	border: 1px solid var(--ot-border-strong);
	border-radius: var(--ot-button-radius);
	font-size: var(--ot-step--1);
}

.ot-listen--buttons .ot-listen__link:hover {
	border-color: var(--ot-text);
}

/* Pills variant */
.ot-listen--pills .ot-listen__link {
	padding: 0.42em 0.85em;
	border: 1px solid var(--ot-border);
	border-radius: var(--ot-button-radius);
	background: color-mix(in oklab, var(--ot-bg) 70%, transparent);
	font-size: var(--ot-step--2);
}

.ot-listen--pills .ot-listen__link:hover {
	border-color: var(--ot-border-strong);
	background: var(--ot-surface);
}

.ot-listen--pills .ot-listen__go {
	display: none;
}

/* List variant (dialog) */
.ot-listen--list .ot-listen__list {
	display: grid;
	gap: 0;
}

.ot-listen--list .ot-listen__link {
	display: grid;
	grid-template-columns: auto 1fr auto;
	width: 100%;
	padding: var(--ot-space-3) var(--ot-space-3);
	border-radius: var(--ot-radius-input);
	font-size: var(--ot-step-0);
}

.ot-listen--list .ot-listen__link:hover {
	background: var(--ot-surface);
}

.ot-listen--list li + li {
	border-top: 1px solid var(--ot-border);
}

.ot-listen__support {
	justify-self: start;
}

.ot-listen--center .ot-listen__support {
	justify-self: center;
}

/* ── Chapters ─────────────────────────────────────────────────────────── */

.ot-chapters {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.ot-chapters__btn {
	display: grid;
	grid-template-columns: 4.2em minmax(0, 1fr);
	gap: var(--ot-space-3);
	width: 100%;
	padding: var(--ot-space-2) var(--ot-space-3);
	border: 0;
	border-radius: var(--ot-radius-input);
	background: transparent;
	color: var(--ot-text);
	cursor: pointer;
	font: inherit;
	font-size: var(--ot-step--1);
	line-height: 1.4;
	text-align: start;
	transition: background-color var(--ot-fast) var(--ot-ease);
}

.ot-chapters__btn:hover {
	background: var(--ot-surface-2);
}

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

.ot-chapters__item.is-current .ot-chapters__btn {
	background: var(--ot-accent-soft);
}

.ot-chapters__item.is-current .ot-chapters__time {
	color: var(--ot-accent-ink);
	font-weight: 700;
}

.ot-chapters__item.is-current .ot-chapters__title {
	font-weight: 650;
}

/* ── Guests & avatars ─────────────────────────────────────────────────── */

.ot-avatar {
	display: inline-grid;
	place-items: center;
	flex-shrink: 0;
	width: 3rem;
	height: 3rem;
	overflow: hidden;
	border-radius: 50%;
	background: var(--ot-accent-soft);
}

.ot-avatar__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ot-avatar--initials {
	color: var(--ot-accent-ink);
	font-family: var(--ot-font-heading);
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.ot-guests {
	display: grid;
	gap: var(--ot-space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ot-guest {
	display: flex;
	align-items: center;
	gap: var(--ot-space-3);
}

.ot-guest__body {
	display: grid;
	min-width: 0;
	line-height: 1.35;
}

.ot-guest__name {
	color: var(--ot-text);
	font-weight: 650;
	text-decoration: none;
}

.ot-guest__name:hover {
	color: var(--ot-accent-ink);
	text-decoration: underline;
}

.ot-guest__role,
.ot-guest__count {
	color: var(--ot-muted);
	font-size: var(--ot-step--1);
}

/* ── Chips, tags, search ──────────────────────────────────────────────── */

.ot-chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ot-space-2);
}

.ot-chip,
.ot-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.45em 0.95em;
	border: 1px solid var(--ot-border);
	border-radius: var(--ot-button-radius);
	color: var(--ot-text);
	font-size: var(--ot-step--1);
	font-weight: 550;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--ot-fast) var(--ot-ease), border-color var(--ot-fast) var(--ot-ease);
}

.ot-chip:hover,
.ot-tag:hover {
	border-color: var(--ot-border-strong);
	background: var(--ot-surface);
	color: var(--ot-text);
}

.ot-chip[aria-current="page"] {
	border-color: var(--ot-text);
	background: var(--ot-text);
	color: var(--ot-bg);
}

.ot-tag .ot-icon {
	width: 0.95em;
	height: 0.95em;
	color: var(--ot-subtle);
}

.ot-tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ot-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ot-search {
	display: flex;
	gap: var(--ot-space-2);
	width: 100%;
	max-width: 34rem;
}

.ot-search-field {
	position: relative;
	display: flex;
	flex: 1;
	align-items: center;
}

.ot-search-field > .ot-icon {
	position: absolute;
	inset-inline-start: 0.85em;
	width: 1.1em;
	height: 1.1em;
	color: var(--ot-subtle);
	pointer-events: none;
}

.ot-search-field input,
.ot-input {
	width: 100%;
	min-height: 2.75rem;
	padding: 0.6em 0.9em 0.6em 2.6em;
	border: 1px solid var(--ot-border-input);
	border-radius: var(--ot-radius-input);
	background: var(--ot-bg);
	color: var(--ot-text);
	font: inherit;
	font-size: var(--ot-step--1);
}

.ot-search-field input:focus,
.ot-input:focus {
	border-color: var(--ot-accent);
	outline: 2px solid transparent;
	box-shadow: 0 0 0 3px var(--ot-accent-soft);
}

.ot-switch {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
	color: var(--ot-muted);
	cursor: pointer;
	font-size: var(--ot-step--1);
	user-select: none;
}

.ot-switch input {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	width: 2.25rem;
	height: 1.3rem;
	margin: 0;
	border-radius: 99px;
	background: var(--ot-border-strong);
	cursor: pointer;
	transition: background-color var(--ot-fast) var(--ot-ease);
}

.ot-switch input::after {
	content: "";
	position: absolute;
	inset-block-start: 3px;
	inset-inline-start: 3px;
	width: calc(1.3rem - 6px);
	height: calc(1.3rem - 6px);
	border-radius: 50%;
	background: var(--ot-bg);
	transition: transform var(--ot-fast) var(--ot-ease);
}

.ot-switch input:checked {
	background: var(--ot-accent);
}

.ot-switch input:checked::after {
	transform: translateX(0.95rem);
}

.ot-switch input:focus-visible {
	outline: 2px solid transparent;
	box-shadow: var(--ot-focus-ring);
}

/* ── Transcript ───────────────────────────────────────────────────────── */

.ot-transcript {
	border: 1px solid var(--ot-card-border);
	border-radius: var(--ot-radius);
	background: var(--ot-card-bg);
	box-shadow: var(--ot-card-shadow);
}

.ot-cards-outline .ot-transcript {
	background: transparent;
}

.ot-transcript__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--ot-space-4);
	padding: var(--ot-space-4) var(--ot-space-5);
	cursor: pointer;
	list-style: none;
}

.ot-transcript__summary::-webkit-details-marker {
	display: none;
}

.ot-transcript__heading {
	display: inline-flex;
	align-items: center;
	gap: var(--ot-space-3);
}

.ot-transcript__heading h2 {
	font-size: var(--ot-step-1);
}

.ot-transcript__heading .ot-icon {
	color: var(--ot-accent-ink);
}

.ot-transcript__info {
	display: inline-flex;
	align-items: center;
	gap: var(--ot-space-2);
	color: var(--ot-muted);
	font-size: var(--ot-step--1);
}

.ot-transcript__chevron {
	transition: transform var(--ot-medium) var(--ot-ease);
}

.ot-transcript__details[open] .ot-transcript__chevron {
	transform: rotate(180deg);
}

.ot-transcript__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--ot-space-3) var(--ot-space-5);
	padding: 0 var(--ot-space-5) var(--ot-space-4);
	border-bottom: 1px solid var(--ot-border);
}

.ot-transcript__tools .ot-search-field {
	flex: 1 1 16rem;
	max-width: 26rem;
}

.ot-transcript__count {
	color: var(--ot-muted);
	font-size: var(--ot-step--1);
}

.ot-transcript__body {
	position: relative;
	display: grid;
	gap: var(--ot-space-2);
	max-height: min(70vh, 44rem);
	padding: var(--ot-space-4) var(--ot-space-5) var(--ot-space-5);
	overflow-y: auto;
	overscroll-behavior: contain;
	scroll-behavior: smooth;
}

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

.ot-transcript__line {
	display: grid;
	grid-template-columns: 4.4em minmax(0, 1fr);
	gap: 0 var(--ot-space-3);
	margin: 0;
	padding: var(--ot-space-2) var(--ot-space-3);
	border-radius: var(--ot-radius-input);
	transition: background-color var(--ot-medium) var(--ot-ease);
}

.ot-transcript__line:not([data-time]) {
	padding-inline-start: calc(4.4em + var(--ot-space-6));
}

.ot-transcript__time {
	grid-row: span 2;
	align-self: start;
	padding: 0.15em 0;
	border: 0;
	background: none;
	color: var(--ot-muted);
	cursor: pointer;
	font: inherit;
	font-size: var(--ot-step--1);
	font-variant-numeric: tabular-nums;
	text-align: start;
	border-radius: 4px;
}

.ot-transcript__time:hover {
	color: var(--ot-accent-ink);
	text-decoration: underline;
}

.ot-transcript__speaker {
	color: var(--ot-text);
	font-size: var(--ot-step--1);
	font-weight: 700;
	letter-spacing: 0.02em;
}

.ot-transcript__line[data-speaker="0"] .ot-transcript__speaker { color: var(--ot-accent-ink); }
.ot-transcript__line[data-speaker="1"] .ot-transcript__speaker { color: var(--ot-text); }
.ot-transcript__line[data-speaker="2"] .ot-transcript__speaker { color: color-mix(in oklab, var(--ot-accent-ink) 55%, var(--ot-text)); }
.ot-transcript__line[data-speaker="3"] .ot-transcript__speaker { color: var(--ot-muted); }

.ot-transcript__text {
	grid-column: 2;
}

.ot-transcript__line.is-current {
	background: var(--ot-accent-soft);
}

.ot-transcript__line.is-hidden {
	display: none;
}

.ot-transcript mark {
	padding: 0 0.1em;
	border-radius: 3px;
	background: color-mix(in oklab, var(--ot-accent) 35%, var(--ot-bg));
	color: inherit;
}

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

	.ot-transcript__line:not([data-time]) {
		padding-inline-start: var(--ot-space-3);
	}

	.ot-transcript__time {
		grid-row: auto;
	}

	.ot-transcript__text {
		grid-column: 1;
	}
}

/* ── Tabs (Listen / Watch) and video ──────────────────────────────────── */

.ot-tabs {
	display: grid;
	gap: var(--ot-space-3);
}

.ot-tabs__list {
	display: inline-flex;
	justify-self: start;
	gap: 2px;
	padding: 3px;
	border-radius: var(--ot-button-radius);
	background: var(--ot-surface-2);
}

.ot-tabs__tab {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	padding: 0.45em 1em;
	border: 0;
	border-radius: var(--ot-button-radius);
	background: transparent;
	color: var(--ot-muted);
	cursor: pointer;
	font: 650 var(--ot-step--1) / 1.2 var(--ot-font-body);
}

.ot-tabs__tab[aria-selected="true"] {
	background: var(--ot-bg);
	color: var(--ot-text);
	box-shadow: 0 1px 3px rgb(0 0 0 / 0.12);
}

.ot-tabs__tab:focus-visible {
	outline: 2px solid transparent;
	box-shadow: var(--ot-focus-ring);
}

.ot-video {
	overflow: hidden;
	border-radius: var(--ot-radius);
	background: #000;
}

.ot-video iframe,
.ot-video video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
}

/* ── Embed consent (click to load third-party content) ─────────────────── */

.ot-embed__consent {
	display: grid;
	gap: var(--ot-space-2);
	align-content: center;
	min-height: 12rem;
	padding: var(--ot-space-5);
	border: 1px solid var(--ot-border);
	border-radius: var(--ot-radius);
	background: var(--ot-surface);
	color: var(--ot-text);
	text-align: center;
}

.ot-video .ot-embed__consent {
	aspect-ratio: 16 / 9;
	border: 0;
}

.ot-embed__notice {
	max-width: 34rem;
	margin: 0 auto;
	font-size: var(--ot-step--1);
}

.ot-embed__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ot-space-3);
	align-items: center;
	justify-content: center;
	margin: 0;
}

.ot-embed.is-loaded iframe {
	display: block;
	width: 100%;
	max-width: 100%;
	border: 0;
}

/* ── Empty states ─────────────────────────────────────────────────────── */

.ot-empty {
	display: grid;
	justify-items: center;
	gap: var(--ot-space-3);
	max-width: 36rem;
	margin-inline: auto;
	padding: var(--ot-space-8) var(--ot-gutter);
	text-align: center;
}

.ot-empty > .ot-icon {
	width: 2.5rem;
	height: 2.5rem;
	color: var(--ot-accent-ink);
}

.ot-empty h1,
.ot-empty h2 {
	font-size: var(--ot-step-3);
}

.ot-empty p {
	margin: 0;
	color: var(--ot-muted);
}

.ot-empty .ot-search {
	margin-block: var(--ot-space-3);
}
