.nextup {
  display: flex;
}

.nextup__item {
  position: relative;
}

.nextup__item:last-child {
  margin-right: 0;
}

.nextup__img {
  width: 100%;
}

.nextup__mask {
  position: absolute;
  z-index: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%);
  width: 100%;
  height: 50%;
}

.video-container.stuck .nextup {
  display: none;
}

/* Up-Next thumb styles */
.up-next-wrapper {
  bottom: 90px;
  cursor: pointer;
  height: 90px;
  position: absolute;
  right: 15px;
  width: 230px;
  z-index: 10;
}

/* Lower Up-Next position if player is in compact mode, so it doesn't block the unmute button */
/* 520 pixels is the defaultCompactViewBreakpoint value in Avia UI. */
@media (max-width : 520px) {
  .up-next-wrapper {
    bottom: 40px;
  }
}

.up-next-wrapper .up-next-row {
  display: flex;
  background: rgba(79, 76, 82, 0.75);
}

.up-next-wrapper .up-next-row .header {
  background: rgba(65, 64, 66, 0.9);
  color: #fff;
  font-size: 14px;
  line-height: 18px;
  padding: 2px 5px;
  width: 100%;
}

.up-next-wrapper .up-next-row .title {
  flex: 1 1 50%;
  color: #fff;
  font-size: 10px;
  line-height: 14px;
  padding: 5px;
}

.up-next-wrapper .up-next-row .thumb {
  flex: 1 1 44%;
  height: 58px;
  overflow: hidden;
  margin: 5px;
}

.up-next-wrapper .up-next-row .thumb img {
  height: 60px;
  width: 110px;
}

.up-next-wrapper .up-next-row .duration {
  background: rgba(0, 0, 0, 0.75);
  bottom: 5px;
  color: white;
  font-size: 10px;
  height: 20px;
  line-height: 10px;
  padding: 5px;
  position: absolute;
  right: 5px;
}

/* Hide Up-Next if player is in sticky mode */
.cvp-outer.stuck .up-next-wrapper {
  display: none !important;
}
