/* stylelint-disable selector-class-pattern */
/* stylelint-disable selector-no-vendor-prefix */
/* stylelint-enable selector-no-vendor-prefix */
/* Shrink videos to fit rather than overflowing containers */
video {
  width: auto;
  height: auto;
  max-width: 100%;
}
/* Force a fixed size for audio to reduce FOUC */
audio,
.mw-tmh-player.audio {
  width: 220px;
  height: 30px;
}
/* Galleryboxes are usually smaller than 220px, but can be different sizes. (T258622) */
.gallerybox .mw-tmh-player.audio {
  width: 90%;
}
.mw-tmh-player {
  display: inline-block;
  position: relative;
}
.mw-tmh-player .mw-tmh-play {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}
.mw-tmh-player.video > .mw-tmh-play {
  /* @embed */
  transition: background-color 120ms linear, opacity 100ms ease;
  opacity: 0.6;
}
.mw-tmh-player.video > .mw-tmh-play .mw-tmh-play-icon {
  background: rgba(0, 0, 0, 0.6) url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22%3E%3Ctitle%3Eplay%3C/title%3E%3Cpath fill=%22%23fff%22 d=%22M4.55 19A1 1 0 013 18.13V1.87A1 1 0 014.55 1l12.2 8.13a1 1 0 010 1.7z%22/%3E%3C/svg%3E") 12px 10px no-repeat;
  background-position: center;
  margin: auto;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}
.mw-tmh-player.audio > .mw-tmh-play {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22220%22 height=%2230%22 viewBox=%220 0 58.209 7.938%22%3E%3Cpath fill-rule=%22evenodd%22 fill-opacity=%22.67%22 d=%22M0 0h58.209v7.938H0z%22/%3E%3Cpath d=%22M 7.126 4.076 L 3.876 5.986 V 2.165 Z%22 fill=%22%23fff%22/%3E%3C/svg%3E");
  opacity: 0.5;
}
.mw-tmh-player.video > .mw-tmh-play:hover,
.mw-tmh-player.video > .mw-tmh-play:active,
.mw-tmh-player.audio > .mw-tmh-play:hover,
.mw-tmh-player.audio > .mw-tmh-play:active {
  opacity: 1;
}
.mw-tmh-player-interstitial {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.5);
  text-align: center;
}
.mw-tmh-player-progress {
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  max-width: 50em;
  background-color: #fff;
  border: 1px solid #a2a9b1;
  border-radius: 2px;
  overflow: hidden;
}
.mw-tmh-player-progress-bar {
  height: 1em;
  -webkit-transition: width 100ms;
  transition: width 100ms;
  -webkit-animation: mw-tmh-player-progress-bar-slide 2s infinite linear;
  animation: mw-tmh-player-progress-bar-slide 2s infinite linear;
  width: 40%;
  -webkit-transform: translate(-25%);
  -ms-transform: translate(-25%);
  transform: translate(-25%);
  background-color: #36c;
}
@-webkit-keyframes mw-tmh-player-progress-bar-slide {
  from {
    -webkit-transform: translate(-100%);
  }
  to {
    -webkit-transform: translate(350%);
  }
}
@keyframes mw-tmh-player-progress-bar-slide {
  from {
    -webkit-transform: translate(-100%);
    -ms-transform: translate(-100%);
    transform: translate(-100%);
  }
  to {
    -webkit-transform: translate(350%);
    -ms-transform: translate(350%);
    transform: translate(350%);
  }
}
