/* 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;
:root .mejs__poster-img {
-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,
.mejs__time-float-corner,
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 {