/* HTML5 version of the studio's 2010 Flash video player (TSVideoPlayerAS3.swf),
   sized and styled after the original: video area, 4px gap, 21px control bar. */

.tsfim-player {
	position: relative;
	user-select: none;
}

/* white space below the control bar, like the theme's 10px frame around images, so a heading's
   white background (which reaches a little above the heading) lands on white, not on the bar */
.swf_div .tsfim-player {
	padding-bottom: 10px;
}

/* and the player's frame draws above the heading (the theme's heading spans use z-index 100), so
   however a browser's fonts size that background, it can't cover the bar */
.media .swf_div {
	position: relative;
	z-index: 101;
}

.tsfim-player-screen {
	position: relative;
	overflow: hidden;
	background: radial-gradient(ellipse at center, #5a5a5a 0%, #2a2a2a 55%, #000000 100%);
	cursor: pointer;
}

.tsfim-player-screen video,
.tsfim-player-screen .tsfim-player-poster {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.tsfim-player-screen video {
	display: block;
	background: transparent;
}

/* the theme pads images in .media with white; not this one */
.content_column div.media .tsfim-player img.tsfim-player-poster {
	padding: 0;
	background: transparent;
}

/* the poster sits over the video until playback starts */
.tsfim-player.started .tsfim-player-poster {
	display: none;
}

.tsfim-player-big {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 66px;
	height: 66px;
	margin: -33px 0 0 -33px;
	padding: 0;
	border: 0;
	background: rgba(32, 32, 32, 0.9);
	cursor: pointer;
}

.tsfim-player-big::after,
.tsfim-player-toggle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	border-style: solid;
	border-color: transparent transparent transparent #ffffff;
}

.tsfim-player-big::after {
	margin: -7px 0 0 -4px;
	border-width: 7px 0 7px 11px;
}

.tsfim-player.playing .tsfim-player-big {
	display: none;
}

.tsfim-player-bar {
	display: flex;
	height: 21px;
	margin-top: 4px;
}

.tsfim-player-toggle {
	position: relative;
	flex: 0 0 40px;
	padding: 0;
	border: 0;
	background: #000000;
	cursor: pointer;
}

.tsfim-player-toggle::after {
	margin: -5px 0 0 -3px;
	border-width: 5px 0 5px 8px;
}

/* pause: two bars */
.tsfim-player.playing .tsfim-player-toggle::after {
	width: 3px;
	height: 10px;
	margin: -5px 0 0 -4px;
	border: 0;
	border-left: 3px solid #ffffff;
	border-right: 3px solid #ffffff;
}

.tsfim-player-track {
	position: relative;
	flex: 1 1 auto;
	margin-left: 8px;
	background: repeating-linear-gradient(-45deg, #d4d4d4 0, #d4d4d4 1px, #ececec 1px, #ececec 4px);
	cursor: pointer;
}

.tsfim-player-head {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 5px;
	background: #000000;
}

.tsfim-player button:focus-visible,
.tsfim-player-track:focus-visible {
	outline: 2px solid #000000;
	outline-offset: 2px;
}
