.movie-item {
  position: relative;
  cursor: pointer;
  height: fit-content;
  transition: all 0.3s;
  width: 95%;
}

.movie-tooltip {
  opacity: 1 !important;
}

.movie-tooltip.bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow,
.movie-tooltip.bs-tooltip-start .tooltip-arrow {
  width: 0;
  height: 0;
  border-right: 10px solid white;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-top: -10px;
  margin-right: -10px;
}

.movie-tooltip.bs-tooltip-auto[data-popper-placement^="left"] .tooltip-arrow,
.movie-tooltip.bs-tooltip-end .tooltip-arrow {
  width: 0;
  height: 0;
  border-left: 10px solid white;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-top: -10px;
  margin-left: -10px;
}

.movie-tooltip.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow,
.movie-tooltip.bs-tooltip-top .tooltip-arrow {
  width: 0;
  height: 0;
  border-bottom: 10px solid white;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  margin-left: -10px;
  margin-bottom: -10px;
}

.movie-tooltip.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow,
.movie-tooltip.bs-tooltip-bottom .tooltip-arrow {
  width: 0;
  height: 0;
  border-top: 10px solid white;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  margin-left: -10px;
  margin-top: -10px;
}

.movie-tooltip .tooltip-arrow::before {
  display: none;
}

.movie-tooltip .tooltip-inner {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 3px;
  max-width: 386px;
  height: auto;
  padding: 30px 20px 20px 20px;
  text-align: start;

  @media (max-width: 960px) {
    max-width: 360px;
  }
}

.movie-tooltip .bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow,
.movie-tooltip .bs-tooltip-end .tooltip-arrow {
  top: 20px;
}

.rating-popup {
  position: absolute;
  top: 0;
  right: 0;

  display: flex;
  align-items: center;
  gap: 5px;
  background-color: #00a0b0;
  height: 26px;
  line-height: 26px;
  min-width: 32px;
  padding: 0 10px;

  z-index: 2;
}

.movie-popup__title {
  padding-bottom: 12px;
}

.movie-popup__title a {
  width: fit-content;
  font-size: 18px;
  line-height: 20px;
  font-weight: bold;
  color: #2e859e;
  text-decoration: underline;
  margin-bottom: 12px;
}

.movie-popup__title a:hover {
  text-decoration: none;
  cursor: pointer;
}

.movie-popup__description {
  color: #777;
  font-size: 12px;
  margin-top: 15px;
  margin-bottom: 10px;
}

.movie-popup__details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.details-text-gray {
  color: red;
}

.movie-popup__ratings p {
  margin: 7px 0;
  font-weight: normal;
  color: #000;
}

.movie-popup__details p {
  font-weight: normal;
  color: #000;
}

.movie-popup__details span a,
.movie-popup__ratings span a {
  font-weight: normal;
  color: #2e859e;
  text-decoration: none;
}

.movie-popup__details span a:hover,
.movie-popup__ratings span a:hover {
  text-decoration: underline;
}

.movie-popup__ratings {
  padding-top: 10px;
  display: flex;
  gap: 10px;

  @media (max-width: 960px) {
    font-size: 13px;
  }
}

.stars-block {
  display: flex;
  gap: 2px;
  margin-top: 3px;
}

.b-content__bubble_rating .rating-voice-count {
  color: #777;
}

.b-content__bubble_rating {
  color: black;
}

.star-item {
  width: 20px;
  height: 20px;
}

.b-content__bubble_rating {
  color: #777;
  font-size: 12px;
}

.b-content__bubble_rating b {
  color: #2e859e;
  font-weight: bold;
}

.b-content__bubble_rating span {
  color: #000;
}

.movie-item .movie-type-block:nth-child(2) {
  display: none;
}

.movie-item:hover .movie-type-block:nth-child(1) {
  display: none;
}

.movie-item:hover .movie-type-block:nth-child(2) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.movie-item:hover .movie-info__title {
  text-decoration: underline;
  transition: all 0.3s;
}

.movie-item:hover .video-icon-block__big {
  display: flex;
  transition: all 0.3s;
  opacity: 1;
}

.movie-image {
  border-radius: 2px;
  border: 1px solid #ddd;
  position: relative;
  padding: 3px;
  margin-bottom: 10px;
  width: fit-content;
  cursor: pointer;
  width: 100%;
}

.movie-image img {
  width: 100%;
  
}

.movie-type-block {
  display: flex;
  align-items: center;
  gap: 5px;
  background-color: #00a0b0;
  position: absolute;
  top: 3px;
  right: 3px;
  cursor: help;
  height: 26px;
  line-height: 26px;
  min-width: 32px;
  padding-left: 10px;
  padding-right: 10px;
  z-index: 2;
}

.movie-type-text {
  font-size: 11px;
  color: white;
}

.movie-info {
  display: flex;
  flex-direction: column;
  width: 100px;
}

.movie-info__big {
  width: 100%;
}

.movie-info__title {
  font-size: 12px;
  line-height: 16px;
  font-weight: bold;
  color: #2e859e;
  text-decoration: none;
  cursor: pointer;
}

.movie-info__title-big {
  font-size: 14px;
  line-height: 20px;
}

.movie-info__text {
  display: inline-block;
  color: #777;
  font-size: 11px;
  line-height: 14px;
  font-weight: bold;
}

.movie-info__text-big {
  line-height: 16px;
}

.movie-img {
  width: 92px;
  height: 140px;
  transition: all 0.3s;
  z-index: 1;
}

.movie-img-big {
  width: 166px;
  height: 250px;
}

.movie-item:hover .movie-img {
  filter: brightness(0.7);
}

.video-icon-block__big {
  display: none;
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.video-icon-block__big-card {
  top: 40%;
  height: 70px;
  width: 70px;

  @media (max-width: 768px) {
    width: 50px;
    height: 50px;
  }
}

.video-icon-block__big img {
  width: 25px;
  height: 25px;
}

.video-container {
  display: flex;
  position: absolute;
  top: 29px;
  left: 3px;
  z-index: 21;
}

.video-container:hover {
  opacity: 0.8;
  width: calc(100% - 6px);
}

.video-container:hover .video-text {
  display: flex;
  align-items: center;
  height: 38px;
  color: white;
  background-color: #000;

  @media (max-width: 768px) {
    display: none;
  }
}

.video-container:hover .video-block {
  background-color: #000;
}

.video-block {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 38px;
  width: 40px;
  height: 38px;
  background-color: rgba(0, 0, 0, 0.5);
  text-align: center;
  color: #fff;
  transition: background-color 0.3s;
}

.video-icon-block {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
}

.video-text {
  display: none;
  width: 100%;
  font-style: normal;
  font-size: 10px;
  text-transform: uppercase;
  white-space: nowrap;

  @media (max-width: 1040px) {
    font-size: 60%;
  }
}

.video-text__big-card {
  width: 210px;
  font-weight: 600;

  @media (max-width: 1040px) {
    font-size: 60%;
  }
}

.video-block img {
  opacity: 0.5;
  width: 12px;
  height: 12px;
}

.carousel-inner td{
	vertical-align: top;
}
