/* Frontend webcast detail page: player, synced slide viewer, thumbnails, files. */

.eeg-webcast {
	margin: 1.5em 0;
}

.eeg-webcast__player {
	margin-bottom: 2em;
}

.eeg-webcast__stage {
	margin-bottom: 1em;
}

/* Main slide viewer */
.eeg-webcast__viewer {
	position: relative;
	background: #0b0b0b;
	border-radius: 6px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
}

.eeg-webcast__slide {
	display: block;
	max-width: 100%;
	max-height: 70vh;
	height: auto;
	margin: 0 auto;
}

.eeg-webcast__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}

.eeg-webcast__nav:hover,
.eeg-webcast__nav:focus {
	background: rgba(0, 0, 0, 0.75);
}

.eeg-webcast__nav--prev {
	left: 10px;
}

.eeg-webcast__nav--next {
	right: 10px;
}

.eeg-webcast__fullscreen {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	font-size: 20px;
	cursor: pointer;
}

.eeg-webcast__fullscreen:hover,
.eeg-webcast__fullscreen:focus {
	background: rgba(0, 0, 0, 0.75);
}

.eeg-webcast__counter {
	position: absolute;
	bottom: 10px;
	left: 10px;
	padding: 2px 8px;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	font-size: 13px;
}

/* Fullscreen mode: center the slide on a black backdrop. */
.eeg-webcast__viewer:fullscreen {
	background: #000;
	width: 100vw;
	height: 100vh;
}

.eeg-webcast__viewer:-webkit-full-screen {
	background: #000;
	width: 100vw;
	height: 100vh;
}

.eeg-webcast__viewer:fullscreen .eeg-webcast__slide {
	max-height: 100vh;
}

/* Thumbnail strip */
.eeg-webcast__thumbs {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	padding-bottom: 6px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.eeg-webcast__thumb {
	flex: 0 0 auto;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 4px;
	background: none;
	cursor: pointer;
	line-height: 0;
	opacity: 0.65;
	transition: opacity 0.15s ease, border-color 0.15s ease;
}

.eeg-webcast__thumb img {
	display: block;
	width: 96px;
	height: auto;
	border-radius: 2px;
}

.eeg-webcast__thumb:hover,
.eeg-webcast__thumb:focus {
	opacity: 1;
}

.eeg-webcast__thumb.is-active {
	opacity: 1;
	border-color: #2271b1;
}

/* Audio player */
.eeg-webcast__audio {
	display: block;
	width: 100%;
	margin-top: 12px;
	margin-bottom: 30px;
}

/* Files list */
.eeg-webcast__files-title {
	font-size: 1.2em;
	margin: 0 0 0.5em;
}

.eeg-webcast__file-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.eeg-webcast__file {
	margin: 0 0 0.4em;
}

@media (max-width: 600px) {
	.eeg-webcast__thumb img {
		width: 72px;
	}

	.eeg-webcast__nav {
		width: 36px;
		height: 36px;
		font-size: 20px;
	}
}
