/*
 * ISC License
 *
 * Copyright (c) 2024, Signe Kreicere
 */

/* video player START */
.stpd-video-container {
  position: relative;
  max-width: 800px;
  /*min-height: 450px; */
  height: 100%;
  margin: auto;
}

.stpd-video {
  position: relative;
  height: 100%;
  width: 100%;
}

.stpd-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stpd-video-fixed {
  position: fixed;
  z-index: 9999;
}

.stpd-video-placeholder {
  height: 100%;
  width: 100%;
  display: block;
}
.stpd-video-placeholder.d-none {
  display: none;
}

.video-js .vjs-picture-in-picture-control {
  display: none;
}

.stpd-close-btn {
  position: absolute;
  z-index: 99999;
  cursor: pointer;
  background-color: #0000009e;
  border-radius: 25px;
  height: 30px;
  width: 30px;
  text-align: center;
  top: -32px;
  right: 0;
}
.stpd-close-btn svg {
  margin-top: 8px;
}
.close-btn-hidden {
  display: none;
}

.current-video-overlay {
  width: 100%;
  position: absolute;
  z-index: 2;
  width: 100%;
  height: 6%;
  opacity: 0.5;
  margin-top: 5px;
}
.current-video-overlay:hover {
  opacity: 1;
}
.current-video-title {
  position: relative;
  display: inline-flex;
  color: #fff;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
  font-family: Arial;
  font-size: 20px;
  float: left;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  cursor: default;
  max-width: 90%;
  height: 100%;
}
.stpdLogo,
.publisherLogo {
  position: relative;
  right: 8px;
  height: 90%;
  display: inline-flex;
  float: right;
  top: 50%;
  transform: translateY(-50%);
}

.stpd-overlay-ad {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 40px;
  z-index: 2;
  width: 100%;
  opacity: 0.6;
  text-align: center;
}
.overlay-ad-hidden {
  visibility: hidden !important;
}
.stpd-overlay-ad-inner {
  display: inline-block;
  position: relative;
  text-align: center;
  margin: auto;
}
.overlay-ad-close-btn {
  position: absolute;
  z-index: 99999;
  cursor: pointer;
  background-color: #0000009e;
  border-radius: 25px;
  height: 24px;
  width: 24px;
  text-align: center;
  top: -30px;
  right: 0;
}
.overlay-ad-close-btn svg {
  margin-top: 7px;
}

/* video player END */

/* thumbnail scroller START */
.scroller-container {
  display: flex;
  margin: auto;
  width: 100%;
  align-items: center;
  overflow: hidden;
  margin-top: 20px;
}

.stpd-thumbnail-container {
  flex: 0 0 auto;
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin-left: 5px;
  margin-right: 5px;
  max-width: 200px;
  opacity: 0.9;
}
.stpd-thumbnail-container.active {
  margin-top: 5px;
  margin-bottom: 5px;
  opacity: 1;
}
.stpd-thumbnail-container.active img {
  box-shadow: 0px 0px 5px 2px rgb(0 0 0 / 49%);
}
.stpd-thumbnail-container:hover {
  opacity: 0.8;
}
.stpd-thumbnail-img {
  width: 200px;
  height: 120px;
  border-radius: 5px;
}
.video-duration {
  width: 34px;
  position: absolute;
  right: 0;
  top: 0;
  background-color: gray;
  color: #fff;
  opacity: 0.8;
  border-radius: 2px;
  font-family: Arial;
  text-align: center;
  font-size: 12px;
  padding-top: 1px;
  padding-bottom: 1px;
}
.video-title {
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  font-family: Arial;
  font-size: 16px;
}

.leftscroll,
.rightscroll {
  margin: 0;
  height: 24px;
  width: 24px;
}

.leftscroll {
  order: -1;
}

.scroller {
  display: flex;
  padding: 0;
  margin: 0;
  white-space: nowrap;
  width: 100%;
  overflow: hidden;
}

.navscroll {
  display: flex;
  opacity: 1;
  transition: opacity 0.5s;
  cursor: pointer;
  align-self: center;
  position: static;
}
/* thumbnail scroller END */
