/* 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/ */
.mejs__offscreen {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  word-wrap: normal;
  border: 0;
}

.mejs__container {
  position: relative;
  box-sizing: border-box;
  font-family: 'Helvetica', Arial, serif;
  text-align: left;
  text-indent: 0;
  vertical-align: top;
  background: #000;
}

.mejs__container * {
  box-sizing: border-box;
}

/* 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__fill-container .mejs__container {
  width: 100%;
  height: 100%;
}

.mejs__fill-container {
  position: relative;
  margin: 0 auto;
  overflow: hidden;
  background: transparent;
}

.mejs__container:focus {
  outline: none;
}

.mejs__iframe-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
}

.mejs__embed,
.mejs__embed body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: #000;
}

.mejs__fullscreen {
  overflow: hidden !important;
}

.mejs__container-fullscreen {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  overflow: hidden;
}

/* Start: LAYERS */
.mejs__background {
  position: absolute;
  top: 0;
  left: 0;
}

.mejs__mediaelement {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.mejs__poster {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: cover;
}

:root .mejs__poster-img {
  display: none;
}

.mejs__poster-img {
  padding: 0;
  border: 0;
}

.mejs__overlay {
  position: absolute;
  top: 0;
  left: 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
}

.mejs__layer {
  z-index: 1;
}

.mejs__overlay-play {
  cursor: pointer;
}

.mejs__overlay-button {
  background: transparent;
  border: 0;
}

.mejs__overlay:hover .mejs__overlay-button svg {
  opacity: 1;
}

.mejs__overlay-button svg {
  opacity: 0.75;
}

.mejs__overlay-button:focus svg {
  opacity: 1;
}

.mejs__overlay-button,
.mejs__overlay-button svg {
  width: 5rem;
  height: 5rem;
}

.mejs__overlay-loading,
.mejs__overlay-loading svg {
  width: 5rem;
  height: 5rem;
}

.mejs__overlay-loading-bg-img {
  z-index: 1;
  display: block;
  width: 5rem;
  height: 5rem;
  -webkit-animation: mejs__loading-spinner 1s linear infinite;
  animation: mejs__loading-spinner 1s linear infinite;
}

@-webkit-keyframes mejs__loading-spinner {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes mejs__loading-spinner {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/* End: LAYERS */

/* Start: CONTROL BAR */
.mejs__controls {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 10px;
  margin: 0;
  list-style-type: none;
}

.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));
}

.mejs__time,
.mejs__time-rail {
  width: 2rem;
  height: 2.5rem;
  margin: 0 6px;
  font-size: 0.625rem;
  line-height: 0.625rem;
}
.mejs__button {
  width: 20px;
  height: 20px;
  margin: 10px 6px;
  margin-right: 6px;
  margin-left: 6px;
}

.mejs__button > button {
  position: absolute;
  display: block;
  width: 20px;
  height: 20px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  background-color: transparent;
  border: 0;
}

.mejs__button svg {
  width: inherit;
  height: inherit;
  fill: currentColor;
}

/* :focus for accessibility */
.mejs__button > button:focus {
  outline: dotted 0.125rem #fff;
}

.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 {
  outline: 0;
}

/* End: CONTROL BAR */

/* Start: Play (Play / Pause / Replay) */
.mejs__playpause-button svg {
  display: none;
}

.mejs__play svg.mejs__icon-play {
  display: block;
}

.mejs__pause svg.mejs__icon-pause {
  display: block;
}

.mejs__replay svg.mejs__icon-replay {
  display: block;
}
/* End: Play (Play / Pause / Replay) */

/* Start: Fullscreen (Fullscreen / Unfullscreen) */
.mejs__fullscreen-button svg.mejs__icon-unfullscreen {
  display: none;
}
.mejs__fullscreen svg.mejs__icon-fullscreen {
  display: block;
}

.mejs__fullscreen svg.mejs__icon-unfullscreen {
  display: none;
}

.mejs__unfullscreen svg.mejs__icon-unfullscreen {
  display: block;
}

.mejs__unfullscreen svg.mejs__icon-fullscreen {
  display: none;
}
/* End: Fullscreen (Fullscreen / Unfullscreen) */

/* Start: Time (Current / Duration) */
.mejs__time {
  box-sizing: content-box;
  width: auto;
  height: 1.5rem;
  padding: 1rem 0 0;
  overflow: hidden;
  font-size: 0.6875rem;
  font-weight: bold;
  color: #fff;
  text-align: center;
}
/* End: Time (Current / Duration) */

/* Start: Progress Bar */
.mejs__time-rail {
  position: relative;
  -webkit-flex-grow: 1;
  flex-grow: 1;
  height: 2.5rem;
  padding-top: 8px;
  margin: 0 10px;
  direction: ltr;
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
}

.mejs__time-total,
.mejs__time-buffering,
.mejs__time-loaded,
.mejs__time-current,
.mejs__time-float,
.mejs__time-hovered,
.mejs__time-float-current,
.mejs__time-float-corner,
.mejs__time-marker {
  position: absolute;
  display: block;
  height: 10px;
  cursor: pointer;
  border-radius: 0.125rem;
}

.mejs__time-total {
  width: 100%;
  margin: 0;
  background: rgba(255, 255, 255, 0.3);
}

.mejs__time-buffering {
  width: 100%;
  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: 0.9375rem 0.9375rem;
  -webkit-transform: scaleX(1);
  -ms-transform: scaleX(1);
  transform: scaleX(1);
  -webkit-animation: buffering-stripes 2s linear infinite;
  animation: buffering-stripes 2s linear infinite;
}

@-webkit-keyframes buffering-stripes {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 1.875rem 0;
  }
}

@keyframes buffering-stripes {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 1.875rem 0;
  }
}

.mejs__time-loaded {
  background: rgba(255, 255, 255, 0.3);
}

.mejs__time-current,
.mejs__time-handle-content {
  background: rgba(255, 255, 255, 0.9);
}

.mejs__time-hovered {
  z-index: 10;
  background: rgba(255, 255, 255, 0.5);
  -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-hovered.negative {
  background: rgba(0, 0, 0, 0.2);
}

.mejs__time-current,
.mejs__time-buffering,
.mejs__time-loaded,
.mejs__time-hovered {
  left: 0;
  width: 100%;
  -webkit-transition: 0.15s ease-in all;
  transition: 0.15s ease-in all;
  -webkit-transform: scaleX(0);
  -ms-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transform-origin: 0 0;
  -ms-transform-origin: 0 0;
  transform-origin: 0 0;
}

.mejs__time-handle,
.mejs__time-handle-content {
  position: absolute;
  left: 0;
  z-index: 11;
  cursor: pointer;
  border: 4px solid transparent;
  -webkit-transform: translateX(0);
  -ms-transform: translateX(0);
  transform: translateX(0);
}

.mejs__time-handle-content {
  top: -4px;
  left: -7px;
  width: 10px;
  height: 10px;
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  -webkit-transform: scale(0);
  -ms-transform: scale(0);
  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);
  -ms-transform: scale(1);
  transform: scale(1);
}

.mejs__time-float {
  position: absolute;
  bottom: 100%;
  display: none;
  width: 2.25rem;
  height: 1.0625rem;
  margin-bottom: 0.5625rem;
  color: #111;
  text-align: center;
  background: #eee;
  border: solid 1px #333;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
}

.mejs__time-float-current {
  left: 0;
  display: block;
  width: 1.875rem;
  margin: 0.125rem;
  text-align: center;
}

.mejs__time-float-corner {
  position: absolute;
  top: 100%;
  left: 50%;
  display: block;
  width: 0;
  height: 0;
  line-height: 0;
  border: solid 0.3125rem #eee;
  border-color: #eee transparent transparent;
  border-radius: 0;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
}

.mejs__long-video .mejs__time-float {
  width: 4rem;
  margin-left: -1.4375rem;
}

.mejs__long-video .mejs__time-float-current {
  width: 3.75rem;
}

.mejs__broadcast {
  position: absolute;
  top: 0.9375rem;
  width: 100%;
  height: 0.625rem;
  color: #fff;
}

/* End: Progress Bar */

/* Start: Mute/Volume */
.mejs__volume-button {
  position: relative;
}

.mejs__volume-button > .mejs__volume-slider {
  position: absolute;
  bottom: 100%;
  left: 50%;
  z-index: 1;
  display: none;
  width: 1.5625rem;
  height: 7.1875rem;
  margin: 0;
  background: rgba(50, 50, 50, 0.7);
  border-radius: 0;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  -webkit-backface-visibility: hidden;
}

.mejs__volume-button:hover {
  border-radius: 0 0 0.25rem 0.25rem;
}

.mejs__volume-total {
  position: absolute;
  top: 0.5rem;
  left: 50%;
  width: 0.125rem;
  height: 6.25rem;
  margin: 0;
  background: rgba(255, 255, 255, 0.5);
  border: 0.06rem solid #fff;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
}

.mejs__volume-current {
  position: absolute;
  left: 0;
  width: 100%;
  margin: 0;
  background: rgba(255, 255, 255, 0.9);
}

.mejs__volume-handle {
  position: absolute;
  left: 50%;
  width: 1rem;
  height: 0.375rem;
  cursor: ns-resize;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #fff;
  border-radius: 1px;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
}

.mejs__horizontal-volume-slider {
  position: relative;
  display: block;
  width: 56px;
  height: 36px;
}

.mejs__horizontal-volume-total {
  position: absolute;
  top: 15px;
  left: 0;
  width: 50px;
  height: 8px;
  padding: 0;
  margin: 0;
  font-size: 1px;
  cursor: pointer;
  background: rgba(50, 50, 50, 0.8);
  border-radius: 2px;
}

.mejs__horizontal-volume-current {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  font-size: 1px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
}

.mejs__horizontal-volume-handle {
  display: none;
}

.mejs__mute svg,
.mejs__unmute svg {
  stroke: currentColor;
}

.mejs__volume-button svg {
  display: none;
}

.mejs__mute .mejs__icon-mute {
  display: block;
}

.mejs__unmute .mejs__icon-unmute {
  display: block;
}
/* End: Mute/Volume */

/* Start: Track (Captions and Chapters) */
.mejs__captions-button,
.mejs__chapters-button {
  position: relative;
}

.mejs__chapters-button svg,
.mejs__captions-button svg {
  padding-top: 0.125rem;
}

.mejs__captions-button > .mejs__captions-selector,
.mejs__chapters-button > .mejs__chapters-selector {
  position: absolute;
  right: 50%;
  bottom: 100%;
  width: 5.375rem;
  padding: 0;
  margin-right: -2.6875rem;
  overflow: hidden;
  visibility: visible;
  background: rgba(50, 50, 50, 0.7);
  border: solid 1px transparent;
  border-radius: 0;
}

.mejs__chapters-button > .mejs__chapters-selector {
  width: 6.875rem;
  margin-right: -3.4375rem;
}

.mejs__captions-selector-list,
.mejs__chapters-selector-list {
  padding: 0;
  margin: 0;
  overflow: hidden;
  list-style-type: none !important;
}

.mejs__captions-selector-list-item,
.mejs__chapters-selector-list-item {
  display: block;
  padding: 0;
  margin: 0 0 0.375rem;
  overflow: hidden;
  color: #fff;
  list-style-type: none !important;
  cursor: pointer;
}

.mejs__captions-selector-list-item:hover,
.mejs__chapters-selector-list-item:hover {
  background-color: rgb(200, 200, 200) !important;
  background-color: rgba(255, 255, 255, 0.4) !important;
}

.mejs__captions-selector-input,
.mejs__chapters-selector-input {
  position: absolute;
  left: -62.5rem;
  float: left;
  margin: 0.1875rem 0.1875rem 0 0.3125rem;
  clear: both;
}

.mejs__captions-selector-label,
.mejs__chapters-selector-label {
  float: left;
  width: 100%;
  padding: 0.25rem 0.625rem 0;
  font-size: 0.625rem;
  line-height: 0.9375rem;
  cursor: pointer;
}

.mejs__captions-selector-list-item:hover .mejs__captions-selector-label,
.mejs__chapters-selector-list-item:hover .mejs__chapters-selector-label {
  text-decoration: underline;
}

.mejs__captions-selected,
.mejs__chapters-selected {
  font-weight: bold;
  color: rgba(33, 248, 248, 1);
}

.mejs__captions-translations {
  margin: 0 0 0.3125rem;
  font-size: 0.625rem;
}

.mejs__captions-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  font-size: 1rem;
  line-height: 1.25rem;
  color: #fff;
  text-align: center;
}

.mejs__captions-layer a {
  color: #fff;
  text-decoration: underline;
}

.mejs__captions-layer[lang='ar'] {
  font-size: 1.25rem;
  font-weight: normal;
}

.mejs__captions-position {
  position: absolute;
  bottom: 0.9375rem;
  left: 0;
  width: 100%;
}

.mejs__captions-position-hover {
  bottom: 2.1875rem;
}

.mejs__captions-text,
.mejs__captions-text * {
  padding: 0;
  white-space: pre-wrap;
  background: rgba(20, 20, 20, 0.5);
  box-shadow: 0.3125rem 0 0 rgba(20, 20, 20, 0.5), -0.3125rem 0 0 rgba(20, 20, 20, 0.5);
}

.mejs__container.mejs__hide-cues video::-webkit-media-text-track-container {
  display: none;
}
/* End: Track (Captions and Chapters) */

/* Start: Error */
.mejs__overlay-error {
  position: relative;
}
.mejs__overlay-error > img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  max-width: 100%;
}
.mejs__cannotplay,
.mejs__cannotplay a {
  font-size: 0.8em;
  color: #fff;
}

.mejs__cannotplay {
  position: relative;
}

.mejs__cannotplay p,
.mejs__cannotplay a {
  display: inline-block;
  width: 100%;
  padding: 0 0.9375rem;
}
/* End: Error */
