@import url("https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&display=swap");

/*video wrap*/
/* #video_slice {
  display: flex!important;
} */

.video-wrap {
  background-color: #343a40; /**** SUS-1153 changes ****/
  margin: auto;
  position: relative;
  display: inline-block;
  /* border-radius: 10px; */
  overflow: hidden;
  -webkit-transform: translate3d(0, 0, 0);
}

:root {
  --playerIconsColor: #ffffff;
  --playerIconsColorProgressBar: #ffffff44;
  /*playerIconsColor + transparence 0.25  44*/
  --playerIconsColorProgressValue: #ffffffbb;
  /*playerIconsColor + transparence 0.75 bb*/
  --playerBackgroundColor: rgba(83, 77, 77, 0.75);
  --playButtonPosition: top-right;
}

video#video_playback {
  left: 0 !important;
  border: 0;
  min-width: 320px;
  /* object-fit: fill; */
  object-fit: contain;
}

#video_playback {
  border: none !important;
}

.center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.top-left {
  top: 2%;
  left: 5%;
}

.top-right {
  top: 5%;
  right: 5%;
}

.bottom-left {
  bottom: 23%;
  left: 5%;
}

.bottom-right {
  bottom: 23%;
  right: 5%;
}

.none {
  display: none !important;
}

.video-container {
  border-radius: 4px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
}

.video-controls {
  right: 0;
  left: 0;
  padding: 3px 8px 4px;
  position: absolute;
  bottom: 0;
  transition: all 0.2s ease;
  background-color: var(--playerBackgroundColor);
  color: var(--playerIconsColor);
}

.video-controls.hide {
  opacity: 0;
  pointer-events: none;
}

.video-progress {
  position: relative;
  display: flex;
  flex: 1;
  margin-right: 4px;
  height: 2px;
  padding-top: 10px;
  padding-bottom: 10px;
}

progress {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 2px;
  width: 100%;
  height: 2px;
  pointer-events: none;
  position: absolute;
}

progress::-webkit-progress-bar {
  background-color: var(--playerIconsColorProgressBar);
  border-radius: 2px;
}

progress::-webkit-progress-value {
  background: var(--playerIconsColorProgressValue);
  border-radius: 2px;
  transition: all 0.05s;
}

.seek {
  position: absolute;
  top: 0;
  width: 100%;
  cursor: pointer;
  margin: 0;
}

.seek:hover + .seek-tooltip {
  display: block;
}

.seek-tooltip {
  display: none;
  position: absolute;
  top: -35px;
  margin-left: -20px;
  font-size: 12px;
  padding: 3px;
  content: attr(data-title);
  font-weight: bold;
  color: var(--playerIconsColor);
  background-color: var(--playerBackgroundColor);
}

.bottom-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 5px;
}
.bottom-controls button {
  height: 20px;
}

.left-controls {
  display: flex;
  align-items: center;
}

.right-controls {
  display: flex;
  align-items: center;
}

.volume-controls {
  display: flex;
  align-items: center;
  padding-right: 10px;
  transition: all 0.4s;
  width: 100px;
}

.volume-controls input {
  width: 74px;
}

button {
  cursor: pointer;
  position: relative;
  margin-right: 8px;
  font-size: 12px;
  padding: 0px;
  border: none;
  outline: none;
  background-color: transparent;
}

button * {
  pointer-events: none;
}

button::before {
  content: attr(data-title);
  position: absolute;
  display: none;
  left: -8px;
  top: -30px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-weight: bold;
  padding: 4px 6px;
  word-break: keep-all;
  white-space: pre;
}

button#volume-button::before {
  left: -20px;
}

button.fullscreen-button::before {
  left: -35px;
}

button:hover::before {
  display: inline-block;
}

.fullscreen-button,
.subtitles-button {
  margin-right: 8px;
}

.playback-animation {
  pointer-events: none;
  position: absolute;
  width: 72px;
  height: 72px;
  background-color: var(--playerBackgroundColor);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  z-index: 9999;
}

input[type="range"] {
  -webkit-appearance: none;
  height: 8.4px;
  background: transparent;
  cursor: pointer;
}

input[type="range"]:focus {
  outline: none;
}

input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  cursor: pointer;
  border-radius: 1.3px;
  -webkit-appearance: none;
  transition: all 0.4s ease;
}

input[type="range"]::-webkit-slider-thumb {
  height: 16px;
  width: 16px;
  border-radius: 16px;
  background: var(--youtube-red);
  cursor: pointer;
  -webkit-appearance: none;
  border-color: transparent;
}

input[type="range"]:focus::-webkit-slider-runnable-track {
  background: transparent;
}

input[type="range"].volume {
  height: 2px;
  border-radius: 2px;
  background-color: var(--playerIconsColor);
  position: relative;
  bottom: 4px;
}

input[type="range"].volume::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  opacity: 0.75;
  background-color: transparent;
}

input[type="range"].volume::-webkit-slider-thumb {
  margin-top: -1px;
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background-color: var(--playerIconsColor);
}
.time {
  font-size: 14px;
  margin-right: 17px;
  margin-left: 10px;
}

.hidden {
  display: none;
}

svg {
  width: 20px;
  height: 20px;
  fill: var(--playerIconsColor);
  stroke: var(--playerIconsColor);
  cursor: pointer;
  stroke-width: 0;
}

.bottom-controls .right-controls svg {
  width: 16px;
  height: 16px;
}

.bottom-controls .right-controls button {
  border-radius: 5px;
  width: 20px;
}

.bottom-controls .right-controls button.button-inactive:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.bottom-controls .right-controls button.button-inactive {
  transition: all 0.3s ease 0s;
}

.bottom-controls .right-controls button.button-active {
  background-color: #fff;
}

.playback-icons-lg {
  width: 45px;
  height: 45px;
}

video#video_playback.video-playback-fullscreen {
  height: 100% !important;
  /* max-width: initial !important;
  max-height: initial !important; */
  max-width: 100% !important;
  max-height: 100% !important;
  background-color: black !important;
}

#speed-menu {
  z-index: 99999;
  position: absolute;
  right: 68px;
  bottom: 35px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 1);
  font-weight: 500;
  max-height: 192px;
}

#speed-menu ul {
  overflow-y: auto;
  min-width: 110px;
  cursor: pointer;
  background-color: white;
  border: 1px solid rgb(247, 248, 250);
  box-sizing: border-box;
  box-shadow: rgb(29 30 36 / 6%) 0px 6px 16px;
  border-radius: 5px;
  color: var(--primary);
  max-height: 192px;
  padding: 0 1rem;
  margin-bottom: 0px;
}

#speed-menu ul p {
  cursor: default;
  padding: 8px 0px;
  height: 24px;
  color: rgb(146, 151, 162);
  margin-bottom: 0px;
}

#speed-menu ul li {
  cursor: pointer;
  color: #eee;
  padding: 5px;
  display: flex;
  justify-content: left;
  color: rgb(39, 42, 50);
  font-weight: 600;
  align-items: center;
}

#speed-menu ul li svg#active-speed-checkmark {
  margin-left: auto;
  width: initial;
  height: initial;
}

#speed-menu ul li:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

#subtitles-menu {
  z-index: 99999;
  position: absolute;
  right: 38px;
  bottom: 35px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 1);
  font-weight: 500;
  max-height: 192px;
}

#subtitles-menu ul {
  overflow-y: auto;
  min-width: 110px;
  cursor: pointer;
  background-color: white;
  border: 1px solid rgb(247, 248, 250);
  box-sizing: border-box;
  box-shadow: rgb(29 30 36 / 6%) 0px 6px 16px;
  border-radius: 5px;
  color: var(--primary);
  max-height: 192px;
  padding: 0 1rem;
  margin-bottom: 0px;
}

#subtitles-menu ul p {
  cursor: default;
  padding: 8px 0px;
  height: 24px;
  color: rgb(146, 151, 162);
  margin-bottom: 0px;
}

#subtitles-menu ul li {
  cursor: pointer;
  color: #eee;
  padding: 5px;
  display: flex;
  justify-content: left;
  color: rgb(39, 42, 50);
  font-weight: 600;
}

#subtitles-menu ul li span {
  margin: 0 8px;
  align-self: center;
}

#subtitles-menu ul li svg#active-language-checkmark {
  margin-left: auto;
}

#subtitles-menu ul li:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

@media screen and (max-width: 660px) {
  video#video_playback {
    width: 100%;
  }
  #video_slice {
    background-color: transparent;
  }

  #video-container {
    background: black;
  }

  #subtitles-menu {
    height: 150px;
    overflow-y: scroll;
  }

  #subtitles-menu ul li {
    padding: 2px;
    font-size: 10px;
  }
}

/**** SUS-1153 changes ****/
@media only screen and (min-width: 800px) {
  video#video_playback {
    min-width: 420px;
  }
}
/*******/

/*CHAPTERS*/
.progress-wrapper {
  width: 100%;
  display: flex;
  cursor: pointer;
  flex: 1;
  padding: 0 12px;
}
.chapters-progress-list-container {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
}
.video-chapter-progress {
  width: 100%;
  height: 4px;
  color: white;
  opacity: 1;
  border-radius: 4px;
  border: 1px solid transparent;
  box-sizing: border-box;
  position: relative !important;
}
.video-chapter-progress.-webkit-progress-bar {
  background-color: rgba(255, 255, 255, 0.25);
  background-color: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}
.video-chapter-progress.-webkit-progress-value {
  background-color: rgba(255, 255, 255, 0.75);
  background-color: rgba(0, 0, 0, 0.75);
  border-radius: 4px;
}
.video-chapter-progress:hover {
  height: 6px;
}
.video-chapter-bubble {
  display: none;
  box-sizing: border-box;
  position: absolute;
  bottom: 50px;
  width: auto;
  min-width: 50px;
  max-height: 50px;
  text-overflow: ellipsis;
  background: white;
  box-shadow: 0px 0px 4px rgba(66, 79, 104, 0.08),
    0px 6px 12px rgba(66, 79, 104, 0.06);
  border-radius: 6px;
  padding: 4px 12px 6px;
  flex-direction: column;
  gap: 4px;
  z-index: 999;
}
.bubble-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.bubble-time {
  font-family: "Work Sans", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  max-width: 250px;
  color: #272a32;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bubble-title {
  font-family: "Work Sans", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  max-width: 250px;
  color: #272a32;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-feature-settings: "tnum" on, "lnum" on;
}

.progress-wrapper-item {
  display: flex;
  align-items: center;
  height: 4px;
}

.chapters-preview-button {
  position: absolute;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
  font-size: 13px;
  line-height: 24px;
  bottom: 65px;
  right: 8px;
  height: 30px;
  border-radius: 6px;
  color: #001b53;
  background-color: #fff;
  border: 1px solid rgba(0, 27, 83, 0.05);
  cursor: pointer;
  padding: 10px;
}

.chapters-preview-button > span {
  display: flex;
  width: auto;
  color: rgba(0, 27, 83, 0.2);
  font-size: 19px;
  padding: 4px;
}

.chapters-preview-button > span > svg {
  width: 14px;
  height: 14px;
}

.chapters-preview-button::before {
  all: unset;
}

.chapter-main-wrapper {
  display: block;
  position: absolute;
  max-height: 202px;
  padding: 12px;
  width: 50%;
  max-width: 50%;
  top: 8px;
  bottom: 0;
  left: auto;
  right: 8px;
  background-color: white;
  z-index: 99;
  border-radius: 6px;
}

.chapter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chapter-content {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 250px;
  height: 100%;
}
.chapter-content::-webkit-scrollbar {
  height: 24px;
  width: 4px;
}
.chapter-content::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background-color: rgba(0, 27, 83, 0.2);
}
.chapter-content::-webkit-scrollbar {
  -webkit-appearance: none;
}
.chapter-content::-webkit-scrollbar-track {
  background-color: transparent;
}

.close-btn-wrapper {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  margin-left: auto;
  color: #b3b9bf;
}
.close-btn-wrapper:hover {
  cursor: pointer;
}

.chapter-wrapper {
  display: inline-flex;
  align-items: center;
  flex-direction: row;
  justify-content: center;
  margin-top: 12px;
  font-family: "Work Sans", sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 12px;
  line-height: 20px;
  cursor: pointer;
}
.chapter-time {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 2px 8px;
  width: 49px;
  min-width: 49px;
  height: 24px;
  background: #f2f4f6;
  border-radius: 6px;
  font-feature-settings: "tnum" on, "lnum" on;
  color: rgba(0, 27, 83, 0.8);
}
.chapter-title {
  color: black;
  margin-left: 12px;
}

@media screen and (max-width: 640px) {
  .chapter-main-wrapper {
    max-width: 90%;
    width: 90%;
    right: 4px;
    z-index: 99999;
    max-height: 363px;
  }
}

/* INTERACTIVE CTAS */

.main-cta-wrapper {
  display: none;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  align-items: stretch;
  /*background-color: var(--playerBackgroundColor);*/
  font-size: 40px;
  font-family: "Work Sans", sans-serif;
  cursor: pointer;
  position: absolute;
  padding: 24px;
  border-radius: 12px;
  z-index: 12;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.main-cta-wrapper.active {
  display: flex !important;
}
.cta-button {
  color: #001b53;
  background: white;
  font-family: "Work Sans", sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 15px;
  line-height: 24px;
  opacity: 1 !important;
  min-width: 160px;
  height: 40px;
  border: 1px solid #eeeff2;
  box-sizing: border-box;
  border-radius: 5px;
  text-decoration: none;
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 8px 16px 8px 8px;
  white-space: nowrap;
  text-align: center;
}
