:root {
  --color-transparency: #d1d1d16c;
  --color-transparency-2: #ffffffaf;
}

#video {
  height: 100%;
  width: 100%;
  z-index: 890;
  cursor: none;
}

.container,
.video-controls,
.video-timer,
.options {
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  user-select: none;
  overflow: hidden;
  border-radius: 5px;
  background: #000;
  aspect-ratio: 16 / 9;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 900;
  transition: 0.3s;
}

.container.fullscreen {
  max-width: 100%;
  width: 100%;
  height: 100vh;
  border-radius: 0px;
}

.container .b-player {
  border: none;
  outline: none;
  background-color: transparent;
  cursor: pointer;
}

.container .b-player .i {
  transition: 0.1s;

}

.container .b-player:hover .i {
  color: var(--font-1);
  transform: scale(1.06);
}

.container .b-player:active .i {
  color: var(--font-2);
  transform: scale(1);
}

.container .next {
  display: none;
}

.container .next.show-next-episode-btn {
  display: block;
}

.video-timeline {
  display: flex;
  align-items: center;
  height: 20px;
  width: 100%;
  cursor: grab;
}

.video-timeline:active {
  cursor: grabbing;
}

.video-timer .separator {
  margin: 0;
}

.video-timeline .progress-area {
  width: 100%;
  height: 3px;
  position: relative;
  background: var(--color-transparency);
  transition: ease 0.1s;
}

.video-timeline:hover .progress-area {
  height: 8px;
}

.video-timeline.is-dragging .progress-area {
  height: 8px;
  filter: brightness(0.8);
}

.progress-area span {
  position: absolute;
  left: 50%;
  top: -40px;
  font-family: sans-serif;
  font-size: 1.4rem;
  color: #fff;
  pointer-events: none;
  transform: translateX(-50%);
}

.progress-area .video-buffered-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  margin: 0;
  z-index: 1;
  background: var(--color-transparency-2);
}

.progress-area .video-event-bar {
  position: absolute;
  width: 0%;
  height: 100%;
  margin: 0;
  z-index: 101;
  background: rgba(214, 255, 64, 0.75);
}

.progress-area .video-progress-bar {
  width: 0%;
  height: 100%;
  position: relative;
  margin: 0;
  background: var(--color-important);
  /* border-radius: var(--border-radius) 0 0 var(--border-radius); */
  z-index: 100;
}

.video-progress-bar::before {
  content: "";
  right: -10px;
  top: 50%;
  width: 15px;
  height: 15px;
  position: absolute;
  border-radius: 50%;
  background: var(--color-important);
  transform: translateY(-50%);
}

.shadow-controls {
  width: 100%;
  height: 100%;
  position: absolute;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.4);
  box-shadow: inset 0px -60px 60px rgba(0, 0, 0, 0.5), inset 0px 60px 60px rgba(0, 0, 0, 0.5);
  transition: 0.3s;
  cursor: none;
}

.shadow-controls.show-cursor {
  cursor: auto;
}

.pause-info {
  display: none;
}

.pause-info .content {
  margin: 0 200px;
  width: calc(100% - 400px);
}

.pause-info .you-are-watching {
  color: var(--font-2);
  font-size: 1.4rem;
  font-weight: 400;
}

.pause-info #pause-info-anime-title {
  color: var(--font-1);
  font-size: 3.4rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.pause-info #pause-info-episode-title {
  color: var(--font-1);
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.pause-info #pause-info-episode-description {
  color: var(--font-2);
  font-weight: 400;
  font-size: 1.2rem;
}

.container.show-pause-info .pause-info {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: var(--color-dark-opacity);
  z-index: 896;
  transition: 0.3s;
}

.container.show-controls .up-controls {
  z-index: 896;
  opacity: 1;
  transition: 0.3s;
}

.container.show-controls .mid-controls,
.container.show-controls .bottom-controls,
.container.show-controls .shadow-controls {
  z-index: 895;
  opacity: 1;
  transition: 0.3s;
}

.up-controls,
.mid-controls,
.bottom-controls {
  width: calc(100% - 80px);
  height: 98px;
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  margin: 40px;
  color: white;
}

.up-controls {
  top: 0;
  justify-content: center;
}

.mid-controls {
  top: 40%;
  justify-content: center;
  align-items: center;
  gap: 120px;
}

.bottom-controls {
  align-items: center;
  flex-direction: row;
  gap: 20px;
  margin-bottom: 20px;
  bottom: 0;
}

.up-controls .left {
  position: absolute;
  left: 0;
  margin-top: 10px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.up-controls .center {
  margin: auto;
}

.up-controls .right {
  position: absolute;
  right: 0;
  margin-top: 10px;
  display: flex;
  gap: 30px;
  align-items: center;
}

.up-controls .left .info {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.up-controls .left .info:hover {
  filter: brightness(0.80);
}

.up-controls .left .info:active {
  filter: brightness(0.70);
}

.up-controls .info .title,
.up-controls .info .back {
  max-width: calc(100vw - 500px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.up-controls .info .title {
  color: var(--font-2);
  /* color: var(--color-transparency); */
  font-weight: var(--font-weight);
  font-size: 1.4rem;
}

.up-controls .info .back {
  color: var(--font-1);
  font-weight: var(--font-weight);
  font-size: 2.2rem;
}

.up-controls .info .episode {
  margin-left: 10px;
}

.up-controls .dropdown {
  position: absolute;
  top: 60px;
  right: 0;
  display: block;
  opacity: 0;
  width: 400px;
  opacity: 0.95;
  list-style: none;
  border-radius: var(--border-radius);
  background-color: #22252ee6;
  transition: opacity 0.13s ease;
  pointer-events: auto;
}

.up-controls .other-episodes-content .dropdown {
  width: 750px;
  max-height: 473px;
  overflow-y: auto;
  overflow-x: hidden;
}

.up-controls .other-episodes-content .dropdown .episode {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 16px;
}

.up-controls .other-episodes-content .dropdown .episode:hover {
  background-color: var(--color-1);
}

.up-controls .other-episodes-content .dropdown .episode.active {
  background-color: var(--color-1);
}

.up-controls .other-episodes-content .dropdown .episode .title {
  position: relative;
  font-size: 1.3rem;
  font-weight: var(--font-weight);

  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  overflow: hidden;
}

.up-controls .other-episodes-content .dropdown .episode .title span.number {
  color: var(--font-3);
}

.up-controls .other-episodes-content .dropdown .episode .title span.main {
  color: var(--font-1);
  display: inline-flex;
  width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.up-controls .other-episodes-content .dropdown .episode .title span.current-tag {
  position: absolute;
  top: 3px;
  right: 0;
  font-size: 1rem;
  color: var(--font-3);
  text-transform: uppercase;
}

.up-controls .other-episodes-content .dropdown .episode .content {
  width: 100%;
  display: flex;
  gap: 22px;
  border-radius: var(--border-radius);
}

.up-controls .other-episodes-content .dropdown .episode .content.pressable {
  cursor: pointer;
}

.up-controls .other-episodes-content .dropdown .episode .content img {
  width: 270px;
  height: 100%;
  aspect-ratio: 1.78 / 1;
  object-fit: cover;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.up-controls .other-episodes-content .dropdown .episode .content .info {
  display: flex;
  gap: 20px;
  color: var(--font-3);
  font-size: 1rem;
  font-weight: var(--font-weight);
  line-height: 25px;

  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  overflow: hidden;
}

.up-controls .settings-content .dropdown input[type='range'] {
  accent-color: var(--font-1);
}

.up-controls .settings-content .dropdown li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 55px;
  padding: 0 15px;
  font-size: 1.2rem;
  color: var(--font-2);
}

.up-controls .settings-content .dropdown .provider-info {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  padding-right: 15px;
  padding-bottom: 5px;
  font-weight: 500;
  height: 30px;
  font-size: 1rem;
  color: var(--font-3);
}

.up-controls .settings-content .dropdown .provider-info .dub {
  color: var(--font-3);
  background-color: var(--color-4);
  padding: 2px 5px;
  font-size: 0.8rem;
  border-radius: var(--border-radius);
}

.up-controls .settings-content .dropdown li .i.label {
  margin-right: 8px;
  width: 30px;
}

.up-controls .settings-content .dropdown li input,
.up-controls .settings-content .dropdown li select,
.up-controls .settings-content .dropdown li label {
  position: absolute;
  right: 15px;
}

.up-controls .settings-content .dropdown li select {
  background-color: transparent;
}

.up-controls .settings-content .dropdown li:hover {
  color: var(--font-1);
  background-color: var(--color-1);
}

.up-controls .settings-content .dropdown li:first-child:hover {
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.up-controls .settings-content .dropdown li:last-child:hover {
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}


.up-controls .settings-content .dropdown li .activity-indicator {
  position: absolute;
  /* top: 0; */
  right: 25px;
}

.mid-controls .play-pause-center {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 72px;
}

.skip-forward-small {
  width: 36px;
}

.up-controls .b-player {
  color: var(--font-2);
  font-size: 2rem;
  transition: 0.1s ease-out;
}

.up-controls .b-player.active {
  color: var(--font-1);
}

.mid-controls .b-player {
  color: var(--color-transparency);
  font-size: 4.6rem;
}

.mid-controls .skip-forward-small {
  font-size: 2.3rem;
}

.mid-controls .skip-forward-small span {
  font-size: 1rem;
}

/* .mid-controls .b-player i:hover {
  color: var(--font-1);
} */

.bottom-controls .current-time,
.bottom-controls .video-duration {
  color: var(--font-1);
  font-size: 1.4rem;
  font-family: sans-serif;
  will-change: transform;
}

.bottom-controls .video-duration:hover {
  color: var(--font-2);
}

.bottom-controls .video-duration:active {
  /* transform: scale(0.95); */
}

.skip-button {
  right: 0;
  bottom: 80px;
  position: absolute;
}
