/* Common styles. */

.mtv-grayscale,
.mtv-speaker {
	cursor: pointer;
	filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+ */
	filter: gray; /* IE6-9 */
	-webkit-filter: grayscale(100%); /* Chrome 19+ & Safari 6+ */
	-webkit-transition: all .6s ease; /* Fade to color for Chrome and Safari */
	-moz-transition: all .6s ease;
	-o-transition: all .6s ease;
	-webkit-backface-visibility: hidden; /* Fix for transition flickering */
}

.mtv-grayscale:hover,
.mtv-speaker:hover {
	filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 1 0\'/></filter></svg>#grayscale") !important;
	filter: none;
	-webkit-filter: grayscale(0%) !important;
}

.mtv-speaker {
	position: absolute;
	max-width: 100%;
	max-height: 100%;
	top: 0;
	left: 0;
}

/*----------------------------------------------------------------------------*/
/* 1. FREE MEDIA PAGE (archive page) */
/*----------------------------------------------------------------------------*/

.post-type-archive-freemedia #posts-container {
	padding: 7.5px;
}

.post-type-archive-freemedia .pagination {
	margin-right: 30px;
}

.post-type-archive-freemedia h2,
.single-freemedia h2 {
	text-align: center;
}

.post-type-archive-freemedia p {
	margin: 20px;
}

/*----------------------------------------------------------------------------*/
/* 1.1. Free media search widget */
/*----------------------------------------------------------------------------*/

#fm_searchform * {
	font-size: 13px;
}

#fm_searchform label {
	font-weight: bold;
}

#lblSearch,
#btnRecentSearch,
#btnTopSearch,
#btnShuffleSearch {
	color: white;
	background-color: #d75d2b;
	width: 150px;
	padding: 1px;
	margin: 3px 0 5px 5px;
	line-height: 20px;
}

#searchBox {
	height: 24px;
	width: 206px;
	margin: 0;
	display: inline-block;
	padding: 0;
	vertical-align: middle;
}

#lblSearch,
#fldSearch {
	float: left;
	display: block;
	height: 24px;
	margin: 0;
	line-height: 24px;
}

#lblSearch {
	width: 60px;
	text-align: right;
	padding: 0 8px;
}

#fldSearch {
	width: 140px;
	border: 1px solid #d75d2b;
	padding-left: 4px;
}

.linkButton {
	background: none;
	border: none;
	color: #d75d2b;
	text-decoration: none;
	cursor: pointer;
}

#fm_searchform div {
	text-align: center;
}

#fm_searchform h3 {
	text-align: center;
	font-size: 22px;
	font-family: "Belleza",​Arial,​Helvetica,​sans-serif;
	padding-bottom: 5px;
	font-weight: normal;
}

#fm_refine_search {
	margin: 10px;
	overflow: auto;
	width: 100%;
}

#fm_refine_search div {
	display: block;
	float: left;
	width: 280px;
	margin: 0 0 8px 0;
}

#fm_refine_search #search {
	width: 190px;
	float: right;
	color: white;
	background-color: #d75d2b;
	border: none;
	padding: 3px;
	margin: 1px;
}

#fm_refine_search select {
	width: 190px;
	float: right;
	border: 1px solid #d75d2b;
	height: 22px;
	-webkit-appearance: none; /*Removes default chrome and safari style*/
	-webkit-padding-start: 3px;
	-moz-padding-start: 3px;
	-moz-appearance: none; /* Removes Default Firefox style*/
	background: url('../img/arrow.gif') no-repeat; /*Adds background-image*/
	background-position: 168px 0; /*Position of the background-image*/
	text-indent: 0.01px; /* Removes default arrow from firefox*/
	text-overflow: ""; /*Removes default arrow from firefox*/
	-moz-border-radius: 0;
		 border-radius: 0;
}

#fm_refine_search label {
	display: inline-block;
	width: 80px;
	text-align: right;
	margin: 0 3px 0 0;
}

#fm_searchform * {
	font-size: 13px;
}

#fm_searchform button {
	font-family: inherit;
}

#fm_searchform h3 {
	font-size: 22px;
	padding-bottom: 5px;
	margin: 0;
	margin-top: 20px;
	margin-bottom: 8px;
	line-height: 22px;
}

/*----------------------------------------------------------------------------*/
/* 1.2. Thumbnail block. Used both on archive page and in related list. */
/*----------------------------------------------------------------------------*/

.mtv-thumbnail-block {}

.mtv-thumbnail {
	display: block;
	position: relative;
}

.mtv-thumbnail_cover {
	border: 1px solid silver;

	background-repeat: no-repeat;
	background-position: 50% 50%;
	-webkit-background-size: cover;
	   -moz-background-size: cover;
			background-size: cover;
}

.mtv-thumbnail_duration {
	position: absolute;
	right: 4px;
	bottom: 4px;
	padding: 0 3px;
	font-size: 10px;
	line-height: 11px;
	-moz-border-radius: 2px;
	border-radius: 2px;
	background: #000;
	color: #fff;
}

.mtv-thumbnail-info {}

.mtv-thumbnail-info_title {
	display: block;
	font-size: 12px;
	line-height: 14px;
	font-weight: bold;
}

.mtv-thumbnail-info_date {
	display: block;
	font-size: 12px;
}

/* Thumbnail list view */

.mtv-thumbnail-block_list {
	display: table;
}

.mtv-thumbnail-block_list .mtv-thumbnail {
	display: table-cell;
	height: 78px;

}

.mtv-thumbnail-block_list .mtv-thumbnail_cover {
	width: 133px;
	height: 78px;
}

.mtv-thumbnail-block_list .mtv-thumbnail-info {
	display: table-cell;
	vertical-align: top;
	padding-left: 10px;
	width: 143px;
}

/* Thumbnail grid view (archive page) */

.mtv-thumbnail-block_grid {
	float: left;
	display: block;
	width: 230px;
	height: 190px;
	margin: 0;
	padding: 15px;
	list-style-type: none;
}

.mtv-thumbnail-block_grid .mtv-thumbnail {
	height: 114px;
}


.mtv-thumbnail-block_grid .mtv-thumbnail_cover {
	width: 200px;
	height: 114px;
}

.mtv-thumbnail-block_grid .mtv-thumbnail-info {
	margin-top: 2px;
}

.mtv-thumbnail-block_grid  .mtv-thumbnail-info_title {
	color: #000;
}

.mtv-thumbnail-info_date {
	line-height: 14px;
}

/*----------------------------------------------------------------------------*/
/* 1.3. Grid of videos on the archive page. */
/*----------------------------------------------------------------------------*/

.video-block-container {
	margin: 0 !important;
	padding: 0 !important;
}

/* FIXME not used anymore? */
.media_type {
	position: absolute;
	left: 0;
	bottom: 10px;
	font-size: 10px;
	background: #000;
	padding: 0 3px;
	color: #fff;
	line-height: 11px;
	-moz-border-radius: 2px;
	border-radius: 2px;
}

/* FIXME is it used? */
#gallery_banner_list ul li:hover {
	background: none repeat scroll 0 0 rgb(223, 223, 223);
}

/*----------------------------------------------------------------------------*/
/* 2. SINGLE FREE MEDIA PAGE */
/*----------------------------------------------------------------------------*/

.single-freemedia h1 {
	font-weight: 500 !important;
	font-size: 22px !important;
	line-height: 1.2em !important;
	margin: 15px 0;
}

.mtv-sm-content {
	margin-top: 20px;
}

.mtv-sm-media-container {
	display: block;
	position: relative;
	width: 600px;
	max-width: 100%;
	color: #353535;
}

.mtv-sm-media_audio {
	position: relative;
	overflow: hidden;
	width: 600px;
	height: auto;
	max-width: 100%;
}

.mtv-sm-media_audio_cover {
	max-width: 100%;
}

.mtv-sm-media_audio_player {
	position: absolute;
	width: 100%;
	left: 0;
	bottom: 0;
}

.mtv-sm-media_video {
	position: relative;
}

.mtv-sm-media_video iframe,
.mtv-sm-media_video object,
.mtv-sm-media_video embed {
	border: none;
}

.mtv-sm-related-container {
	display: block;
	margin-top: 65px;
	font-size: 12px;
	line-height: 16px;
}

.mtv-sm-related-list {
	width: 320px;
	max-height: 1000px;
	padding: 0;
	margin: 0;
	overflow: -moz-scrollbars-vertical;
	overflow-x: hidden;
	overflow-y: scroll;
}

.mtv-sm-related-list::-webkit-scrollbar {
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 7px;
}

.mtv-sm-related-list::-webkit-scrollbar-thumb {
	border-radius: 4px;
	background-color: rgba(0,0,0,.5);
	-webkit-box-shadow: 0 0 1px rgba(255,255,255,.5);
	-moz-box-shadow: 0 0 1px rgba(255,255,255,.5);
	box-shadow: 0 0 1px rgba(255,255,255,.5);
}

.mtv-sm-related-list_item {
	display: block;
	height: 86px;
	padding-left: 0;
	list-style-type: none;
}

.mtv-sm-related-list_item:last-child {
	height: 78px;
}

/* Responsive layout */

@media screen and (max-width: 600px) {

	/* Free Media archive page. */
	#container .video-block {
		margin: 0 15px 10px !important;
		min-height: 145px;
	}

	.video-block-container .video-block {
		margin: 0 15px 0 !important;
		min-height: 145px;
	}

	.video-block:first-child {
		margin: 0 15px 0 !important;
	}

}

/* 980 = 940 (page width) + 40 (20 * 2 page padding) */
@media (min-width: 980px) {
	.mtv-sm-content {
		display: table;
	}

	.mtv-sm-media-container {
		display: table-cell;
		max-width: none;
		vertical-align: top;
	}

	.mtv-sm-related-container {
		display: table-cell;
	}

	.mtv-sm-related-list {
		max-height: 338px;
		margin-left: 20px;
		margin-top: 0;
	}

}
