/* --- Video Player --- */

.swtor-video {
	position: relative;
	max-width: 100%;
	margin: 20px auto;
}

.swtor-video video {
	display: block;
	width: 100%;
}

.swtor-video__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

/* --- YouTube Player --- */

.yt-video {
	position: relative;
	max-width: 100%;
	margin: 20px 0;
}

.yt-video__placeholder {
	position: relative;
	padding-bottom: 56.25%;
	background-color: #000;
	cursor: pointer;
}

.yt-video__play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 68px;
	height: 48px;
	border: none;
	background: url('../images/video/youtube-play.png') no-repeat center;
	background-size: contain;
	cursor: pointer;
	transition: opacity 0.3s;
}

.yt-video__placeholder:hover .yt-video__play-btn {
	opacity: 0.8;
}

/* MP4 play button (shown via JS on poster) */
.swtor-video__play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 200px;
	height: 200px;
	border: none;
	background: none;
	cursor: pointer;
	padding: 0;
}

.swtor-video__play-btn .off,
.swtor-video__play-btn .on {
	position: absolute;
	top: 0;
	left: 0;
	width: 200px;
	height: 200px;
	background: url('../images/video/play-button.png') no-repeat top;
	transition: opacity 0.3s ease;
}

.swtor-video__play-btn .on {
	background-position: bottom;
	opacity: 0;
}

.swtor-video__overlay:hover .swtor-video__play-btn .off,
.swtor-video__play-btn:focus .off {
	opacity: 0;
}

.swtor-video__overlay:hover .swtor-video__play-btn .on,
.swtor-video__play-btn:focus .on {
	opacity: 1;
}


/* --- Media Frame (gold border) --- */

.swtor-video,
.yt-video {
	border-width: 7px 5px;
	border-style: solid;
	border-image: url('../images/video/video-border.png') 7 5 7 5 stretch;
}

.mediaFrame {
	margin: 20px 0;
}
