/* Seek links. Deliberately inherit the theme's type and color so they read as
   part of the comment or transcript rather than plugin chrome. */
.atc-seek {
	font: inherit;
	font-variant-numeric: tabular-nums;
	color: inherit;
	background: none;
	border: 0;
	padding: 0 .15em;
	margin: 0 -.15em;
	border-radius: .2em;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: .15em;
}

.atc-seek:hover,
.atc-seek:focus-visible {
	background: rgba(0, 0, 0, .07);
}

.atc-seek:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 1px;
}

/* Comment form control */
.atc-stamp-wrap {
	display: flex;
	align-items: baseline;
	gap: .75em;
	flex-wrap: wrap;
}

.atc-stamp {
	font: inherit;
	font-size: .9em;
	font-variant-numeric: tabular-nums;
	color: inherit;
	background: none;
	border: 1px solid currentColor;
	border-radius: .25em;
	padding: .25em .7em;
	cursor: pointer;
}

.atc-hint {
	font-size: .85em;
	opacity: .7;
}

/* Transcript */
.atc-transcript {
	margin: 2rem 0;
}

.atc-transcript-title {
	margin: 0 0 .5rem;
}

.atc-transcript-tools {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: .75rem;
	font-size: .9em;
}

.atc-search {
	font: inherit;
	padding: .35em .6em;
	min-width: 14em;
}

.atc-follow-label {
	display: flex;
	align-items: center;
	gap: .4em;
	white-space: nowrap;
}

.atc-search-status {
	margin: 0;
	opacity: .7;
}

.atc-cues {
	position: relative;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding-right: 1rem;
	border-left: 2px solid rgba(0, 0, 0, .1);
	padding-left: 1rem;
}

.atc-cue {
	margin: 0 0 1.1em;
	max-width: 68ch;
}

.atc-cue[hidden] {
	display: none;
}

.atc-cue-time {
	opacity: .65;
	font-size: .85em;
	text-decoration: none;
	margin-right: .35em;
	padding: 0;
}

.atc-cue-time:hover {
	opacity: 1;
	text-decoration: underline;
}

.atc-cue-speaker {
	margin-right: .35em;
}

.atc-cue.is-active .atc-cue-time {
	opacity: 1;
}

.atc-seg.is-active {
	background: rgba(0, 0, 0, .08);
	border-radius: .15em;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

.atc-notice {
	border: 1px dashed currentColor;
	padding: .75em 1em;
	opacity: .8;
	font-size: .9em;
}

@media (prefers-color-scheme: dark) {
	.atc-seek:hover,
	.atc-seek:focus-visible,
	.atc-seg.is-active {
		background: rgba(255, 255, 255, .14);
	}

	.atc-cues {
		border-left-color: rgba(255, 255, 255, .18);
	}
}

/* Managed embed wrapper */
.atc-player {
	margin: 1.5rem 0;
}

.atc-player iframe {
	border: 0;
	border-radius: 12px;
	display: block;
	width: 100%;
}

/* Timed notes */
.atc-note {
	display: block;
	margin: 1.25rem 0;
	padding: .8em 1em;
	border-left: 3px solid currentColor;
	background: rgba(0, 0, 0, .04);
	border-radius: 0 .25em .25em 0;
	transition: background .25s ease;
}

.atc-note.is-active {
	background: rgba(0, 0, 0, .1);
}

.atc-note-time {
	font-size: .85em;
	opacity: .7;
	text-decoration: none;
	margin-right: .5em;
}

.atc-note-time:hover {
	opacity: 1;
	text-decoration: underline;
}

.atc-note-label {
	margin-right: .4em;
}

.atc-note-live {
	margin: -.5rem 0 1.5rem;
}

.atc-note-live .atc-note {
	margin: 0;
}

.atc-note-live[hidden] {
	display: none;
}

@media (prefers-color-scheme: dark) {
	.atc-note {
		background: rgba(255, 255, 255, .07);
	}

	.atc-note.is-active {
		background: rgba(255, 255, 255, .15);
	}
}
