/* Custom Castilo style for the Media Element plugin */

.podcast-episode-player,
body .castilo-mejs-container {
	height: 40px !important;
	margin-bottom: 1.65em !important;
}

.podcast-episode-player {
	height: auto !important;
	padding-top: 10px !important;
}

/* Let the time-float tooltip escape the control bar. */
.podcast-episode-player,
body .castilo-mejs-container,
body .castilo-mejs-container .mejs-controls,
body .castilo-mejs-container .mejs-time-rail,
body .castilo-mejs-container .mejs-time-slider {
	overflow: visible !important;
}

body .castilo-mejs-container.mejs-video {
	height: auto !important;
}

body .castilo-mejs-container.mejs-video video {
	margin-bottom: 0 !important;
}

.featured-content .podcast-episode-player {
	margin-bottom: 2.5em !important;
}

body .castilo-mejs-container,
body .castilo-mejs-container .mejs-controls {
	height: 40px !important;
	padding: 0 !important;
	border-color: transparent !important;
	background: transparent !important;
}

body .castilo-mejs-container.mejs-video .mejs-controls {
	background-color: rgba(255, 255, 255, .9) !important;
}

body .wp-playlist .castilo-mejs-container.mejs-video .mejs-controls {
	background-color: #fff !important;
}

body .castilo-mejs-container .mejs-time {
	color: #262626 !important;
	font-size: 12px !important;
	line-height: 9px !important;
}

body .featured-content .castilo-mejs-container .mejs-time {
	color: #fff !important;
}

.castilo-mejs-container .mejs-controls .mejs-time-rail {
	height: 10px !important;
	margin-top: 15px !important;
	padding: 0 !important;
}

.castilo-mejs-container .mejs-controls .mejs-time-rail .mejs-time-total {
	margin: 0 !important;
}

.castilo-mejs-container .mejs-controls .mejs-time-rail .mejs-time-loaded {
	display: none !important;
}

.castilo-mejs-container .mejs-controls .mejs-time-rail .mejs-time-buffering,
.castilo-mejs-container .mejs-controls .mejs-time-rail .mejs-time-current,
.castilo-mejs-container .mejs-controls .mejs-time-rail .mejs-time-total {
	border-radius: 3px !important;
}

.castilo-mejs-container .mejs-controls .mejs-time-rail .mejs-time-total:focus {
	outline: 1px dotted #999 !important;
}

.castilo-mejs-container .mejs-controls .mejs-time-rail .mejs-time-total:hover,
.castilo-mejs-container .mejs-controls .mejs-time-rail .mejs-time-total:active {
	outline: 0 !important;
}

.castilo-mejs-container .mejs-controls .mejs-time-slider .mejs-time-hovered,
.castilo-mejs-container .mejs-controls .mejs-time-slider .mejs-time-handle {
	visibility: hidden !important;
}

body .castilo-mejs-container .mejs-currenttime-container,
body .castilo-mejs-container .mejs-duration-container {
	padding: 0 2px !important;
	height: 40px !important;
	line-height: 40px !important;
}

body .castilo-mejs-container.mejs-video .mejs-duration-container {
	padding-right: 6px !important;
}

body .castilo-mejs-container .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total,
body .castilo-mejs-container .mejs-controls .mejs-time-rail,
body .castilo-mejs-container .mejs-controls .mejs-time-rail .mejs-time-total,
body .castilo-mejs-container .mejs-controls .mejs-time-rail .mejs-time-loaded {
	background-color: rgba(32, 32, 32, .2) !important;
}

body .featured-content .castilo-mejs-container .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total,
body .featured-content .castilo-mejs-container .mejs-controls .mejs-time-rail,
body .featured-content .castilo-mejs-container .mejs-controls .mejs-time-rail .mejs-time-total,
body .featured-content .castilo-mejs-container .mejs-controls .mejs-time-rail .mejs-time-hovered,
body .featured-content .castilo-mejs-container .mejs-controls .mejs-time-rail .mejs-time-loaded {
	background-color: rgba(255, 255, 255, .2) !important;
}

body .castilo-mejs-container .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current,
body .castilo-mejs-container .mejs-time-current,
body .castilo-mejs-container .mejs-controls .mejs-time-rail .mejs-time-current,
body .castilo-mejs-container .mejs-time-hovered {
	background-color: #262626 !important;
}

body .featured-content .castilo-mejs-container .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current,
body .featured-content .castilo-mejs-container .mejs-time-current,
body .featured-content .castilo-mejs-container .mejs-controls .mejs-time-rail .mejs-time-current,
body .featured-content .castilo-mejs-container .mejs-time-hovered {
	background-color: #fff !important;
}

body .castilo-mejs-container .mejs-time-float,
body .castilo-mejs-container .mejs-time-handle-content {
	border-color: #262626 !important;
	background-color: #262626 !important;
	border-radius: 0 !important;
}

body .featured-content .castilo-mejs-container .mejs-time-float,
body .featured-content .castilo-mejs-container .mejs-time-handle-content {
	border-color: #fff !important;
	background-color: #fff !important;
}

.castilo-mejs-container .mejs-time-rail {
	margin-left: 5px !important;
	margin-right: 5px !important;
}

body .castilo-mejs-container .mejs-time-float {
	color: #fff !important;
	margin-bottom: 6px !important;
	width: 34px !important;
	height: 16px !important;
}

body .featured-content .castilo-mejs-container .mejs-time-float {
	color: #262626 !important;
}

body .castilo-mejs-container .mejs-time-float .mejs-time-float-current {
	margin: 2px 0 0 !important;
	width: 100% !important;
}

body .castilo-mejs-container .mejs-time-float,
body .castilo-mejs-container .mejs-time-float .mejs-time-float-corner {
	border-top-color: #262626 !important;
}

body .featured-content .castilo-mejs-container .mejs-time-float,
body .featured-content .castilo-mejs-container .mejs-time-float .mejs-time-float-corner {
	border-top-color: #fff !important;
}

body .castilo-mejs-container .mejs-playpause-button {
	width: 45px !important;
	height: 40px !important;
}

body .castilo-mejs-container.mejs-video .mejs-playpause-button {
	width: 40px !important;
}

body .castilo-mejs-container .mejs-button > button {
	background: none !important;
}

body .castilo-mejs-container .mejs-playpause-button > button {
	background: #262626 !important;
	margin: 0 !important;
	width: 40px !important;
	height: 40px !important;
	border-radius: 3px !important;
}

body #content .castilo-mejs-container .mejs-playpause-button.mejs-pause > button,
body .featured-content .castilo-mejs-container .mejs-playpause-button > button {
	background: #cc00aa !important;
}

.castilo-mejs-container .mejs-volume-button,
.castilo-mejs-container .mejs-captions-button,
.castilo-mejs-container .mejs-download-button,
.castilo-mejs-container .mejs-transcript-button {
	margin-left: 3px !important;
	width: 30px !important;
}

.castilo-mejs-container .mejs-volume-button > button,
.castilo-mejs-container .mejs-captions-button > button {
	margin: 0 !important;
	width: 30px !important;
	height: 40px !important;
	line-height: 40px !important;
}

.castilo-mejs-container.mejs-video .mejs-captions-button,
.castilo-mejs-container.mejs-video .mejs-volume-button {
	margin-left: 2px !important;
}

body .castilo-mejs-container .mejs-volume-button {
	display: none !important;
}

@media (min-width: 768px) {
	body .castilo-mejs-container .mejs-volume-button {
		display: block !important;
	}

	.podcast-episode-player {
		padding-top: 80px !important;
	}
}

.castilo-mejs-container .mejs-volume-button > .mejs-volume-slider,
.castilo-mejs-container .mejs-volume-button .mejs-volume-slider .mejs-volume-total {
	background-color: rgba(32, 32, 32, .2) !important;
}

.castilo-mejs-container .mejs-volume-button > .mejs-volume-slider {
	background-color: transparent !important;
}

.featured-content .castilo-mejs-container .mejs-volume-button > .mejs-volume-slider,
.featured-content .castilo-mejs-container .mejs-volume-button .mejs-volume-slider .mejs-volume-total {
	background-color: rgba(255, 255, 255, .2) !important;
}

.featured-content .castilo-mejs-container .mejs-volume-button > .mejs-volume-slider {
	background-color: transparent !important;
}

.castilo-mejs-container.mejs-video .mejs-volume-button > .mejs-volume-slider {
	background-color: rgba(255, 255, 255, .9) !important;
}

.castilo-mejs-container .mejs-volume-button > .mejs-volume-slider {
	left: 15px !important;
	width: 20px !important;
	height: 80px !important;
	border-radius: 3px !important;
}

.castilo-mejs-container.mejs-video .mejs-volume-button > .mejs-volume-slider {
	height: 100px !important;
	border-radius: 0 !important;
}

.castilo-mejs-container .mejs-volume-button > .mejs-volume-slider:hover {
	opacity: 1 !important;
}

.castilo-mejs-container .mejs-volume-button .mejs-volume-slider .mejs-volume-total {
	width: 10px !important;
	height: 80px !important;
	top: 0 !important;
	border-radius: 3px !important;
}

.castilo-mejs-container.mejs-video .mejs-volume-button .mejs-volume-slider .mejs-volume-total {
	top: 5px !important;
	height: 90px !important;
	border-radius: 0 !important;
}

.castilo-mejs-container .mejs-volume-button .mejs-volume-slider .mejs-volume-total .mejs-volume-current {
	background-color: #262626 !important;
	border-radius: 3px !important;
}

.castilo-mejs-container.mejs-video .mejs-volume-button .mejs-volume-slider .mejs-volume-total .mejs-volume-current {
	border-radius: 0 !important;
}

.featured-content .castilo-mejs-container .mejs-volume-button .mejs-volume-slider .mejs-volume-total .mejs-volume-current {
	background-color: #fff !important;
}

.castilo-mejs-container .mejs-volume-button .mejs-volume-slider .mejs-volume-total .mejs-volume-handle {
	background: transparent !important;
	width: 10px !important;
	height: 10px !important;
}

.castilo-mejs-container .mejs-download-button,
.castilo-mejs-container .mejs-captions-button,
.castilo-mejs-container .mejs-transcript-button {
	margin-left: 1px !important;
}

.castilo-mejs-container .mejs-download-button a,
.castilo-mejs-container .mejs-transcript-button a {
	background: transparent !important;
	display: block !important;
	text-align: center !important;
}

.castilo-mejs-container .mejs-download-button a,
.castilo-mejs-container .mejs-download-button a:hover,
.castilo-mejs-container .mejs-download-button a:focus,
.castilo-mejs-container .mejs-transcript-button a,
.castilo-mejs-container .mejs-transcript-button a:hover,
.castilo-mejs-container .mejs-transcript-button a:focus {
	text-decoration: none !important;
}

.castilo-mejs-container .mejs-button > button:hover,
.castilo-mejs-container .mejs-button > button:focus {
	opacity: 1 !important;
}

#content .castilo-mejs-container .mejs-playpause-button > button:hover,
#content .castilo-mejs-container .mejs-playpause-button > button:focus {
	background: #262626 !important;
}

.mejs-video.castilo-mejs-container,
.mejs-video.castilo-mejs-container .mejs-poster,
.mejs-video.castilo-mejs-container video {
	width: 100% !important;
	height: auto !important;
	max-width: 100% !important;
}

.mejs-video.castilo-mejs-container .mejs-overlay {
	width: 100% !important;
	height: 100% !important;
}

.mejs-video.castilo-mejs-container .mejs-mediaelement {
	position: static !important;
}

.mejs-video.castilo-mejs-container mediaelementwrapper {
	display: block !important;
	line-height: 1 !important;
}

.mejs-video.castilo-mejs-container .mejs-captions-selector,
.mejs-video.castilo-mejs-container .mejs-chapters-selector {
	background-color: rgba(255, 255, 255, .9) !important;
}

.mejs-video.castilo-mejs-container .mejs-captions-selector label,
.mejs-video.castilo-mejs-container .mejs-chapters-selector label {
	margin-bottom: 0 !important;
	padding: 5px !important;
}

.mejs-video.castilo-mejs-container .mejs-captions-selector input,
.mejs-video.castilo-mejs-container .mejs-chapters-selector input {
	display: none !important;
}

.mejs-video.castilo-mejs-container .mejs-captions-selector li,
.mejs-video.castilo-mejs-container .mejs-chapters-selector li {
	color: #262626 !important;
	margin-bottom: 0 !important;
}

.mejs-video.castilo-mejs-container .mejs-captions-selected,
.mejs-video.castilo-mejs-container .mejs-chapters-selected {
	color: #cc00aa !important;
}

body .castilo-mejs-container.mejs-video .mejs-playpause-button > button,
#content .castilo-mejs-container.mejs-video .mejs-playpause-button > button,
#content .castilo-mejs-container.mejs-video .mejs-playpause-button.mejs-pause > button {
	background: transparent !important;
}

body .castilo-mejs-container.mejs-video .mejs-fullscreen-button > button,
body .castilo-mejs-container.mejs-video .mejs-overlay-button {
	background: transparent !important;
	margin: 0 !important;
	width: 32px !important;
	height: 40px !important;
	color: #262626 !important;
}

body .castilo-mejs-container.mejs-video .mejs-fullscreen-button > button {
	width: 32px !important;
	height: 40px !important;
}

body .castilo-mejs-container.mejs-video .mejs-overlay-button {
	position: relative !important;
	width: 80px !important;
	height: 80px !important;
	margin-top: -40px !important;
	background-color: rgba(32, 32, 32, .8) !important;
	color: #fff !important;
	border-radius: 50% !important;
	transition: background-color .2s !important;
}

body .castilo-mejs-container.mejs-video .mejs-overlay:hover .mejs-overlay-button {
	background-color: #262626 !important;
}

body .castilo-mejs-container .mejs-playpause-button > button:before,
.castilo-mejs-container .mejs-volume-button button:before,
.castilo-mejs-container .mejs-captions-button button:before,
.castilo-mejs-container .mejs-download-button a:before,
.castilo-mejs-container .mejs-transcript-button a:before,
body .castilo-mejs-container.mejs-video .mejs-fullscreen-button > button:before,
body .castilo-mejs-container.mejs-video .mejs-overlay-button:before {
	display: inline-block !important;
	font: normal normal normal 14px/1 'Material-Design-Iconic-Font' !important;
	font-size: inherit !important;
	text-rendering: auto !important;
	-webkit-font-smoothing: antialiased !important;
	-moz-osx-font-smoothing: grayscale !important;
}

body .castilo-mejs-container .mejs-playpause-button > button:before {
	content: '\f3aa' !important;
	font-size: 24px !important;
	color: #fff !important;
}

body .castilo-mejs-container.mejs-video .mejs-playpause-button > button:before {
	color: #262626 !important;
}

body .castilo-mejs-container .mejs-playpause-button.mejs-play > button:before {
	position: relative !important;
	left: 1px !important;
}

body .castilo-mejs-container .mejs-playpause-button.mejs-pause > button:before {
	content: '\f3a7' !important;
}

.castilo-mejs-container .mejs-volume-button button:before {
	content: '\f3bb' !important;
	font-size: 24px !important;
	line-height: 40px !important;
}

.castilo-mejs-container .mejs-captions-button button:before {
	content: '\f3d3' !important;
	font-size: 24px !important;
	line-height: 40px !important;
}

.castilo-mejs-container .mejs-volume-button button:before,
.castilo-mejs-container .mejs-captions-button button:before,
.castilo-mejs-container .mejs-download-button a:before,
.castilo-mejs-container .mejs-transcript-button a:before {
	color: #262626 !important;
}

.featured-content .castilo-mejs-container .mejs-volume-button button:before,
.featured-content .castilo-mejs-container .mejs-captions-button button:before,
.featured-content .castilo-mejs-container .mejs-download-button a:before,
.featured-content .castilo-mejs-container .mejs-transcript-button a:before {
	color: #fff !important;
}

.castilo-mejs-container .mejs-volume-button.mejs-mute button:before {
	content: '\f3bc' !important;
}

.castilo-mejs-container .mejs-download-button a:before,
.castilo-mejs-container .mejs-transcript-button a:before {
	font-size: 24px !important;
	line-height: 40px !important;
}

.castilo-mejs-container .mejs-download-button a:before {
	content: '\f220' !important;
	position: relative !important;
	top: 1px !important;
}

.castilo-mejs-container .mejs-transcript-button a:before {
	content: '\f16a' !important;
	content: '\f3d3' !important;
}

body .castilo-mejs-container.mejs-video .mejs-fullscreen-button > button:before {
	content: '\f16d' !important;
	font-size: 24px !important;
}

body .castilo-mejs-container.mejs-video .mejs-fullscreen-button.mejs-unfullscreen > button:before {
	content: '\f16c' !important;
}

body .castilo-mejs-container.mejs-video .mejs-overlay-button:before {
	content: '\f3aa' !important;
	display: inline-block !important;
	font-size: 2.5rem !important;
	width: 84px !important;
	height: 80px !important;
	line-height: 80px !important;
	text-align: center !important;
}

body .wp-playlist {
	padding: 2rem !important;
	margin: 0 0 1.65rem !important;
}

body .wp-playlist.wp-playlist-light,
body .wp-playlist .wp-playlist-item {
	border-color: #ddd !important;
}

body .wp-playlist .mejs-container {
	margin-bottom: 2rem !important;
}

body .wp-playlist.wp-playlist-light {
	background-color: #fafafa !important;
}

body .wp-playlist .wp-playlist-item-album {
	font-style: normal !important;
	text-transform: uppercase !important;
}

body .wp-playlist .wp-playlist-item-artist {
	font-size: inherit !important;
	font-weight: 400 !important;
	text-transform: none !important;
}

body .wp-playlist .wp-playlist-tracks {
	margin: 1rem -2rem -2rem !important;
}

body .wp-playlist.wp-playlist-light .wp-playlist-tracks {
	border-top: 1px solid #ddd !important;
}

body .wp-playlist .wp-playlist-item {
	padding: 1rem 4rem 1rem 2rem !important;
}

body .wp-playlist.wp-playlist-light .wp-playlist-playing {
	background-color: rgba(0, 0, 0, .1) !important;
}

body .wp-playlist .wp-playlist-item-length {
	top: 1rem !important;
	right: 2rem !important;
}

@media (min-width: 480px) {
	body .castilo-mejs-container .mejs-time {
		font-size: 13px !important;
		line-height: 41px !important;
	}
	body .castilo-mejs-container .mejs-duration-container {
		margin-right: 2px !important;
	}

	body .castilo-mejs-container .mejs-playpause-button {
		width: 54px !important;
	}

	.castilo-mejs-container .mejs-time-rail {
		margin-left: 13px !important;
		margin-right: 13px !important;
	}

	.castilo-mejs-container .mejs-volume-button {
		margin-left: 6px !important;
	}

	.castilo-mejs-container .mejs-download-button,
	.castilo-mejs-container .mejs-transcript-button {
		margin-left: 5px !important;
	}
}

.podcast-episode-player audio,
.wp-audio-shortcode > audio,
.wp-video-shortcode > video {
  opacity: 0 !important;
  visibility: hidden !important;
}

body.dark-mode .castilo-mejs-container .mejs-time {
  color: #f5f5f5 !important;
}

body.dark-mode .castilo-mejs-container .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total,
body.dark-mode .castilo-mejs-container .mejs-controls .mejs-time-rail,
body.dark-mode .castilo-mejs-container .mejs-controls .mejs-time-rail .mejs-time-total,
body.dark-mode .castilo-mejs-container .mejs-controls .mejs-time-rail .mejs-time-loaded {
  background-color: rgba(255, 255, 255, 0.2) !important;
}

body.dark-mode .castilo-mejs-container .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current,
body.dark-mode .castilo-mejs-container .mejs-time-current,
body.dark-mode .castilo-mejs-container .mejs-controls .mejs-time-rail .mejs-time-current,
body.dark-mode .castilo-mejs-container .mejs-time-hovered {
  background-color: #ffffff !important;
}

body.dark-mode .castilo-mejs-container .mejs-time-float,
body.dark-mode .castilo-mejs-container .mejs-time-handle-content {
  border-color: #ffffff !important;
  background-color: #ffffff !important;
}

body.dark-mode .castilo-mejs-container .mejs-time-float {
  color: #262626 !important;
}

body.dark-mode .castilo-mejs-container .mejs-volume-button button:before,
body.dark-mode .castilo-mejs-container .mejs-captions-button button:before,
body.dark-mode .castilo-mejs-container .mejs-download-button a:before,
body.dark-mode .castilo-mejs-container .mejs-transcript-button a:before {
  color: #ffffff !important;
}

body.dark-mode .castilo-mejs-container .mejs-playpause-button > button {
  background: #f5f5f5 !important;
}

body.dark-mode #content .castilo-mejs-container .mejs-playpause-button.mejs-pause > button {
  background: #cc00aa !important;
}

body.dark-mode .castilo-mejs-container .mejs-playpause-button > button:before {
  color: #262626 !important;
}

body.dark-mode #content .castilo-mejs-container .mejs-playpause-button.mejs-pause > button:before {
  color: #ffffff !important;
}

.castilo-mejs-container .mejs-controls .mejs-time-rail .mejs-time-loaded {
  display: block !important;
}

.castilo-mejs-container .mejs-volume-button > .mejs-volume-slider {
  display: none !important;
}

.castilo-mejs-container .mejs-volume-button > .mejs-volume-slider[style*="display: block"] {
  display: block !important;
}
