/* Accessibility: hide screen reader texts (and prefer "top" for RTL languages).
Reference: http://blog.rrwd.nl/2015/04/04/the-screen-reader-text-class-why-and-how/ */
clip: rect( 1px, 1px, 1px, 1px );
-webkit-clip-path: inset( 50% );
font-family: 'Helvetica', Arial, serif;
/* Hide native play button and control bar from iOS to favor plugin button */
.mejs-container video::-webkit-media-controls,
.mejs-container video::-webkit-media-controls-panel,
.mejs-container video::-webkit-media-controls-panel-container,
.mejs-container video::-webkit-media-controls-start-playback-button {
-webkit-appearance: none;
display: none !important;
.mejs-fill-container .mejs-container {
overflow: hidden !important;
.mejs-container-fullscreen {
.mejs-container-fullscreen .mejs-mediaelement,
.mejs-container-fullscreen video {
background-position: 50% 50%;
background-repeat: no-repeat;
-webkit-box-align: center;
-webkit-align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
background: url('mejs-controls.svg') no-repeat;
background-position: 0 -39px;
.mejs-overlay:hover > .mejs-overlay-button {
background-position: -80px -39px;
.mejs-overlay-loading-bg-img {
-webkit-animation: mejs-loading-spinner 1s linear infinite;
animation: mejs-loading-spinner 1s linear infinite;
background: transparent url('mejs-controls.svg') -160px -40px no-repeat;
@-webkit-keyframes mejs-loading-spinner {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
@keyframes mejs-loading-spinner {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
.mejs-controls:not([style*='display: none']) {
background: rgba(255, 0, 0, 0.7);
background: -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.35));
background: linear-gradient(transparent, rgba(0, 0, 0, 0.35));
background: transparent url('mejs-controls.svg');
/* :focus for accessibility */
.mejs-button > button:focus {
outline: dotted 1px #999;
.mejs-container-keyboard-inactive a,
.mejs-container-keyboard-inactive a:focus,
.mejs-container-keyboard-inactive button,
.mejs-container-keyboard-inactive button:focus,
.mejs-container-keyboard-inactive [role=slider],
.mejs-container-keyboard-inactive [role=slider]:focus {
/* Start: Time (Current / Duration) */
/* End: Time (Current / Duration) */
/* Start: Play/Pause/Stop */
background-position: 0 0;
background-position: -20px 0;
background-position: -160px 0;
/* End: Play/Pause/Stop */
/* Start: Progress Bar */
.mejs-time-float-current,
background: rgba(255, 255, 255, 0.3);
-webkit-animation: buffering-stripes 2s linear infinite;
animation: buffering-stripes 2s linear infinite;
background: -webkit-linear-gradient(135deg, rgba(255, 255, 255, 0.4) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.4) 75%, transparent 75%, transparent);
background: linear-gradient(-45deg, rgba(255, 255, 255, 0.4) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.4) 75%, transparent 75%, transparent);
background-size: 15px 15px;
@-webkit-keyframes buffering-stripes {
background-position: 0 0;
background-position: 30px 0;
@keyframes buffering-stripes {
background-position: 0 0;
background-position: 30px 0;
background: rgba(255, 255, 255, 0.3);
.mejs-time-handle-content {
background: rgba(255, 255, 255, 0.9);
background: rgba(255, 255, 255, 0.5);
.mejs-time-hovered.negative {
background: rgba(0, 0, 0, 0.2);
-webkit-transform: scaleX(0);
-ms-transform: scaleX(0);
-webkit-transform-origin: 0 0;
-ms-transform-origin: 0 0;
-webkit-transition: 0.15s ease-in all;
transition: 0.15s ease-in all;
-webkit-transform: scaleX(1);
-ms-transform: scaleX(1);
-webkit-transition: height 0.1s cubic-bezier(0.44, 0, 1, 1);
transition: height 0.1s cubic-bezier(0.44, 0, 1, 1);
.mejs-time-hovered.no-hover {
-webkit-transform: scaleX(0) !important;
-ms-transform: scaleX(0) !important;
transform: scaleX(0) !important;
.mejs-time-handle-content {
border: 4px solid transparent;
-webkit-transform: translateX(0);
-ms-transform: translateX(0);
transform: translateX(0);
.mejs-time-handle-content {
border: 4px solid rgba(255, 255, 255, 0.9);
-webkit-transform: scale(0);
.mejs-time-rail:hover .mejs-time-handle-content,
.mejs-time-rail .mejs-time-handle-content:focus,
.mejs-time-rail .mejs-time-handle-content:active {
-webkit-transform: scale(1);
-webkit-transform: translateX(-50%);
-ms-transform: translateX(-50%);
transform: translateX(-50%);
.mejs-time-float-current {
.mejs-time-float-corner {
border-color: #eee transparent transparent;
-webkit-transform: translateX(-50%);
-ms-transform: translateX(-50%);
transform: translateX(-50%);
.mejs-long-video .mejs-time-float {
.mejs-long-video .mejs-time-float-current {
.mejs-fullscreen-button > button {
background-position: -80px 0;
.mejs-unfullscreen > button {