/* Player de mídia DOM simples para webOS 5 / Chromium 68. */
.hm-player,
.hm-player * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.hm-player {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 320px;
  min-height: 180px;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-user-select: none;
  user-select: none;
}

.hm-player__engine,
.hm-player__bitmovin,
.hm-player__bitmovin > div,
.hm-player__video {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  background: #000;
}

.hm-player__video,
.hm-player__bitmovin video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

.hm-player__status {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  padding: 60px;
  background: rgba(0, 0, 0, 0.84);
  text-align: center;
}

.hm-player[data-media-state="idle"] .hm-player__status,
.hm-player[data-media-state="loading"] .hm-player__status,
.hm-player[data-media-state="buffering"] .hm-player__status,
.hm-player[data-media-state="error"] .hm-player__status {
  display: block;
}

.hm-player__spinner {
  width: 54px;
  height: 54px;
  margin: 20vh auto 28px;
  border: 5px solid rgba(255, 255, 255, 0.24);
  border-top-color: #fff;
  border-radius: 50%;
  -webkit-animation: hm-player-spin 0.9s linear infinite;
  animation: hm-player-spin 0.9s linear infinite;
}

.hm-player__status-text {
  max-width: 960px;
  margin: 0 auto;
  font-size: 30px;
  line-height: 1.4;
  font-weight: 600;
}

.hm-player__error-actions {
  display: none;
  margin-top: 38px;
}

.hm-player__button,
.hm-player__control {
  min-width: 190px;
  min-height: 62px;
  margin: 0 9px;
  padding: 14px 24px;
  border: 2px solid rgba(255, 255, 255, 0.52);
  border-radius: 10px;
  background: rgba(22, 30, 54, 0.94);
  color: #fff;
  font-size: 21px;
  font-weight: 600;
  cursor: pointer;
}

.hm-player__button--primary,
.hm-player__control--primary,
.hm-player__button:focus,
.hm-player__control:focus {
  outline: none;
  border-color: #fff;
  background: #1f5eff;
  -webkit-box-shadow: 0 0 0 4px rgba(65, 126, 255, 0.38);
  box-shadow: 0 0 0 4px rgba(65, 126, 255, 0.38);
}

.hm-player__button:disabled,
.hm-player__control:disabled {
  opacity: 0.34;
  cursor: default;
}

.hm-player__overlay {
  position: absolute;
  z-index: 10;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  min-height: 290px;
  padding: 48px 64px 38px;
  background: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.97), rgba(0, 0, 0, 0));
  background: linear-gradient(to top, rgba(0, 0, 0, 0.97), rgba(0, 0, 0, 0));
}

.hm-player[data-controls-visible="true"] .hm-player__overlay,
.hm-player[data-media-state="paused"] .hm-player__overlay,
.hm-player[data-media-state="ended"] .hm-player__overlay,
.hm-player[data-media-state="stopped"] .hm-player__overlay {
  display: block;
}

.hm-player__header {
  min-height: 92px;
  padding-right: 560px;
}

.hm-player__channel-number {
  display: inline-block;
  min-width: 54px;
  margin-right: 16px;
  padding: 7px 12px;
  border-radius: 7px;
  background: #1f5eff;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  vertical-align: middle;
}

.hm-player__title {
  display: inline;
  margin: 0;
  font-size: 38px;
  line-height: 1.15;
  vertical-align: middle;
}

.hm-player__subtitle {
  margin: 10px 0 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  font-size: 20px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hm-player__controls {
  position: absolute;
  right: 54px;
  bottom: 91px;
  white-space: nowrap;
}

.hm-player__control {
  min-width: 142px;
  min-height: 56px;
  padding: 10px 18px;
  font-size: 18px;
}

.hm-player__progress {
  position: absolute;
  right: 64px;
  bottom: 35px;
  left: 64px;
  height: 32px;
}

.hm-player__progress-track {
  position: absolute;
  right: 180px;
  bottom: 12px;
  left: 0;
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.28);
}

.hm-player__progress-value {
  width: 0;
  height: 100%;
  background: #1f5eff;
}

.hm-player__time,
.hm-player__live {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 18px;
  font-weight: 700;
}

.hm-player__live {
  display: none;
  padding: 5px 11px;
  border-radius: 5px;
  background: #e32636;
  letter-spacing: 0.8px;
}

.hm-player__mute-badge,
.hm-player__number-badge {
  position: absolute;
  z-index: 30;
  display: none;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  font-weight: 700;
}

.hm-player__mute-badge {
  top: 44px;
  right: 54px;
  padding: 15px 21px;
  font-size: 18px;
}

.hm-player__number-badge {
  top: 50%;
  left: 50%;
  min-width: 150px;
  padding: 22px 28px;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 54px;
}

@-webkit-keyframes hm-player-spin {
  to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

@keyframes hm-player-spin {
  to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

@media (max-width: 1280px) {
  .hm-player__overlay { padding-right: 36px; padding-left: 36px; }
  .hm-player__header { padding-right: 470px; }
  .hm-player__title { font-size: 30px; }
  .hm-player__controls { right: 28px; }
  .hm-player__control { min-width: 120px; margin: 0 5px; font-size: 16px; }
  .hm-player__progress { right: 36px; left: 36px; }
}
