html {
  font-size: 16px !important;
}
body {
  margin: 0;
}

.sm-video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: center;
  margin-inline: auto;
  background-color: black;
  font-family: arial;
  font-size: 16px;
  color: white;
  z-index: 50;
}
.sm-video-main-button svg:hover {
  opacity: 1;
}
.sm-video-main-button svg {
  color: #555;
  height: 3.8rem;
  width: 3.8rem;
  opacity: 0.8;
  transition: opacity 150ms ease-in-out;
}
.sm-video-main-button {
  width: 5rem;
  height: 5rem;
  position: absolute;
  z-index: 110;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  background: rgba(250, 250, 250, 0.6);
  border-radius: 80px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}
.sm-video-container.sm-theater,
.sm-video-container.sm-full-screen {
  max-width: 90vw;
 /* width: 147%;
  position: absolute;
transition: all 1s ease-in-out;*/
}
.sm-100 {
width: 100%;
}
.sm-video-container.sm-theater {
  max-height: 80vh;
}

.sm-video-container.sm-full-screen {
  max-height: 100vh;
}

video {
  width: 100%;
}

.sm-video-controls-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: white;
  z-index: 100;
  opacity: 0;
  transition: opacity 150ms ease-in-out;
}

.sm-video-controls-container::before {
  content: "";
  position: absolute;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  width: 100%;
  aspect-ratio: 6 / 1;
  z-index: -1;
  pointer-events: none;
}

.sm-video-container:hover .sm-video-controls-container,
.sm-video-container:focus-within .sm-video-controls-container,
.sm-video-container.paused .sm-video-controls-container {
  opacity: 1;
}

.sm-video-controls-container .sm-controls {
  display: flex;
  gap: 0.5rem;
  padding: 0.25rem;
  align-items: center;
}

.sm-video-controls-container .sm-controls button {
  background: none;
  border: none;
  color: inherit;
  padding: 0;
  height: 30px;
  width: 30px;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 150ms ease-in-out;
}

.sm-video-controls-container .sm-controls button:hover {
  opacity: 1;
}

.sm-video-container.sm-paused .sm-pause-icon {
  display: none;
}
.sm-video-container:not(.sm-paused) .sm-video-main-button {
  display: none;
}
.sm-video-container:not(.sm-paused) #notice {
  display: none;
}
.sm-video-container.paused .sm-video-main-button {
  display: flex;
}
.sm-video-container:not(.sm-paused) .sm-play-icon {
  display: none;
}

.sm-video-container.sm-theater .sm-tall {
  display: none;
}

.sm-video-container:not(.sm-theater) .sm-wide {
  display: none;
}

.sm-video-container.sm-full-screen .sm-open {
  display: none;
}

.sm-video-container:not(.sm-full-screen) .sm-close {
  display: none;
}

.sm-volume-high-icon,
.sm-volume-low-icon,
.sm-volume-muted-icon {
  display: none;
}

.sm-video-container[data-volume-level="high"] .sm-volume-high-icon {
  display: block;
}

.sm-video-container[data-volume-level="low"] .sm-volume-low-icon {
  display: block;
}

.sm-video-container[data-volume-level="muted"] .sm-volume-muted-icon {
  display: block;
}

.sm-volume-container {
  display: flex;
  align-items: center;
}

.sm-volume-slider {
  width: 0;
  transform-origin: left;
  transform: scaleX(0);
  transition: width 150ms ease-in-out, transform 150ms ease-in-out;
}

.sm-volume-container:hover .sm-volume-slider,
.sm-volume-slider:focus-within {
  width: 100px;
  transform: scaleX(1);
}
.sm-volume-container .sm-volume-slider {
  width: 0;
}
.sm-duration-container {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-grow: 1;
}

.sm-video-container.sm-captions .sm-captions-btn {
  border-bottom: 3px solid red;
}

.sm-video-controls-container .sm-controls button.sm-wide-btn {
  width: 50px;
}

.sm-timeline-container {
  height: 7px;
  margin-inline: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.sm-timeline {
  background-color: rgba(100, 100, 100, 0.5);
  height: 3px;
  width: 100%;
  position: relative;
}

.sm-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: calc(100% - var(--preview-position) * 100%);
  background-color: rgb(150, 150, 150);
  display: none;
}

.sm-timeline::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: calc(100% - var(--progress-position) * 100%);
  background-color: red;
}

.sm-timeline .sm-thumb-indicator {
  --scale: 0;
  position: absolute;
  transform: translateX(-50%) scale(var(--scale));
  height: 200%;
  top: -50%;
  left: calc(var(--progress-position) * 100%);
  background-color: red;
  border-radius: 50%;
  transition: transform 150ms ease-in-out;
  aspect-ratio: 1 / 1;
}

.sm-timeline .sm-preview-img {
  position: absolute;
  height: 80px;
  aspect-ratio: 16 / 9;
  top: -1rem;
  transform: translate(-50%, -100%);
  left: calc(var(--preview-position) * 100%);
  border-radius: 0.25rem;
  border: 2px solid white;
  display: none;
}

.sm-thumbnail-img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: none;
}

.sm-video-container.sm-scrubbing .sm-thumbnail-img {
  display: block;
}

.sm-video-container.sm-scrubbing .sm-preview-img,
.sm-timeline-container:hover .sm-preview-img {
  display: block;
}

.sm-video-container.sm-scrubbing .sm-timeline::before,
.sm-timeline-container:hover .sm-timeline::before {
  display: block;
}

.sm-video-container.sm-scrubbing .sm-thumb-indicator,
.sm-timeline-container:hover .sm-thumb-indicator {
  --scale: 1;
}

.sm-video-container.sm-scrubbing .sm-timeline,
.sm-timeline-container:hover .sm-timeline {
  height: 100%;
}

.hide {
  display: none;
}
#live-alert {
  font-family: arial, calibri, sans-serif;
  background: #d20000;
  color: #fff;
  width: 40px;
  text-align: center;
  position: absolute;
  top: 5px;
  left: 5px;
  display: inline-block;
  font-size: 10px;
  font-weight: bold;
  border-radius: 4px;
  opacity: 0;
  padding: 1px 0;
}
#notice {
  bottom: 25%;
  position: absolute;
  text-align: center;
  color: #fff;
  font-family: arial;
  background: #333;
  font-weight: bold;
}
.sm-pulse {
  background: rgba(114, 184, 235, 0.4);
  -webkit-animation: glower 0.7s ease-in-out infinite alternate;
  -moz-animation: glower 0.7s ease-in-out infinite alternate;
  animation: glower 0.7s ease-in-out infinite alternate;
}
@keyframes glower {
  from {
    box-shadow: 0 0 10px rgba(114, 184, 235, 0.2),
      0 0 20px rgba(114, 184, 235, 0.4);
  }
  to {
    box-shadow: 0 0 0px rgba(114, 184, 235, 0.7);
  }
}
.sm-pulse .sm-play-icon {
  color: #fff;
}
