.main-body {
  width: 100%;
  background: white;
  padding: 20px 20px 50px 20px;

  @media (max-width: 768px) {
    padding: 16px;
  }
}

.movie-body__container {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.movie-body__content {
  max-width: 680px;
  width: 100%;
}

.movie-title {
  color: #000;
  font-size: 30px;
  line-height: 30px;
  font-weight: bold;

  @media (max-width: 660px) {
    font-size: 22px;
    line-height: 24px;
  }
}

.movie-title-translated {
  color: #777;
  display: block;
  font-size: 18px;
  font-weight: normal;
  line-height: 18px;
  margin: 10px 0 20px;

  @media (max-width: 660px) {
    font-size: 16px;
  }
}

.video-popup-description h2 {
  color: #000;
  font-size: 22px;
  line-height: 22px;
}

.video-popup-description p {
  font-size: 14px;
  color: #444;
  line-height: 22px;
  padding-top: 5px;
  padding-bottom: 15px;
}

.movie-detail__wrapper {
  display: flex;
  margin-bottom: 30px;
}

.movies-banner {
  @media (max-width: 960px) {
    width: 142px;
  }

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

.movies-banner img {
  @media (max-width: 960px) {
    width: 100%;
    height: auto;
  }
}

.movie-video-banner img {
  width: 100%;
  height: auto;
}

.movie-detail-image__wrapper {
  margin-right: 20px;

  @media (max-width: 960px) {
    margin-right: 10px;
  }
}

.movie-detail__image {
  border-radius: 2px;
  background: #fff;
  border: 1px solid #ddd;

  padding: 2px;
  width: 188px;
  height: 283px;

  cursor: pointer;

  @media (max-width: 960px) {
    width: 153px;
    height: auto;
  }

  @media (max-width: 660px) {
    width: 123px;
  }
}

.movie__details {
  display: flex;
  flex-direction: column;
}

.video-container__wrapper {
  position: relative;

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

.video-container--active {
  border-radius: 2px;
  width: 187px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #313131;
  color: white;
  padding: 9px 9px 9px 15px;

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

  @media (max-width: 660px) {
    width: 120px;
    padding: 5px;
    gap: 5px;
    white-space: nowrap;
  }
}

.video-container.video-container--active:hover {
  cursor: pointer;
  opacity: 0.8;
  width: 187px;

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

  @media (max-width: 660px) {
    width: 120px;
  }
}

.video-text-active {
  color: white;
  font-size: 14px;

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

  @media (max-width: 660px) {
    font-size: 10px;
  }
}

.detail-item {
  display: grid;
  grid-template-columns: 30% 70%;
  gap: 5px;
  margin: 5px 0;
  width: 100%;
}

.detail-item strong {
  display: inline-block;
  font-weight: bold;
  color: black;
  white-space: nowrap;

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

  @media (max-width: 660px) {
    font-size: 11px;
    white-space: wrap;
  }
}

.detail-item span {
  display: inline-block;
  flex-grow: 1;
  color: #444;

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

  @media (max-width: 660px) {
    font-size: 11px;
  }
}

.detail-item a {
  color: #00a0b0;
  text-decoration: none;

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

  @media (max-width: 660px) {
    font-size: 11px;
  }
}

.detail-item a:hover {
  text-decoration: underline;
}

.movie__description {
  margin-top: 20px;
}

.movie__description h2 {
  font-size: 22px;
  font-weight: normal;
  margin-bottom: 5px;
  color: #000;
}

.movie__description p {
  margin: 15px 0;
  color: #444;
  line-height: 1.6;
  font-size: 14px;
}

.movie__description p:last-of-type {
  font-size: 14px;
  color: #777;

  padding: 10px;
}

.styles-video {
  width: 100%;
  height: auto;
}

.movie__rating {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 14px;
  padding: 10px 0;
}

.rate-label {
  margin-right: 10px;
  font-weight: bold;
  color: black;
}

.stars {
  display: flex;
  align-items: center;
}

.stars .star {
  width: 20px;
  height: 20px;
  background: url("../img/star-empty.svg") no-repeat center center;
  background-size: cover;
  cursor: pointer;
}

.stars .star.default-filled {
  background: url("../img/star-filled-default.svg") no-repeat center center;
  background-size: cover;
}

.stars .star.filled {
  background: url("../img/star-filled.svg") no-repeat center center;
  background-size: cover;
}

.rating-score {
  margin-left: 10px;
  font-size: 24px;
  font-weight: normal;
  color: #2e849d;
}

.rating-count {
  font-size: 12px;
  color: #777;
  cursor: help;
}

.movie__actions {
  display: flex;
  margin: 0 0 20px 0;

  @media (max-width: 560px) {
    flex-direction: column;
    gap: 20px;
  }
}

.reviews-button,
.bookmark-button {
  flex: 1;
}

.reviews-btn {
  border-radius: 3px 0 0 3px;
  background-color: #00a0b0;
  border: 1px solid #0098a7;

  width: 100%;
  padding: 10px 0;

  color: white;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;

  outline: none;
}

.bookmark-btn {
  border-radius: 0 3px 3px 0;
  background-color: #edc951;
  border: 1px solid #e1bf4d;

  width: 100%;
  padding: 10px 0;

  color: black;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;

  outline: none;
}

.movie-container {
  margin-bottom: 30px;
}

.movies-list {
  display: grid;
  grid-template-columns: 16.8% 16.8% 16.8% 16.8% 16.8% 16.8%;
  width: 100%;
  gap: 10px 0;

  @media (max-width: 960px) {
    grid-template-columns: 20% 20% 20% 20% 20%;
  }

  @media (max-width: 768px) {
    grid-template-columns: 25% 25% 25% 25%;
  }
}

.bookmark-btn:hover {
  background-color: #debc4c;
  border-color: #c5a743;
}

.reviews-btn:hover {
  background-color: #0a8b98;
  border-color: #026c77;
}

.movie__title {
  font-size: 24px;
  font-weight: bold;
  line-height: 30px;

  padding-bottom: 13px;

  @media (max-width: 768px) {
    font-size: 18px;
  }
}

.comment-thread {
  padding: 0;
  list-style: none;
}

.movie__сomments {
  padding-bottom: 25px;
}

.comment {
  padding: 10px;
  display: flex;
  flex-direction: column;
  border: none;
  background-color: #f9f9f9;
}

.comment.reply {
  margin-left: 20px;
  border-left: 2px dashed #ddd;
}

.comment-header {
  width: 100%;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 10px 0;
}

.comment-author {
  display: flex;
  justify-content: space-between;

  width: 100%;

  font-weight: bold;
}

.comment-thread__item {
  background-color: #f9f9f9;
  transition: background-color 2s linear;
  color: #777;
  font-size: 14px;
  line-height: 20px;

  padding-left: 15px;

  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.comment-author__name {
  font-size: 12px;
  font-weight: normal;
}

.comment-author__name strong {
  color: #333;
}

.comment-body {
  margin-bottom: 10px;
  color: #777;
  font-size: 14px;
  line-height: 20px;
}

.comment-footer {
  display: flex;
  align-items: center;
}

.reply-link,
.support-link {
  margin-right: 10px;
  color: #00a0b0;
  text-decoration: underline dotted;
  cursor: pointer;
}

.reply-link:hover,
.support-link:hover {
  text-decoration: none;
}

.like-block {
  display: flex;
  align-items: center;
  gap: 5px;

  transition: all 0.3s;
}

.like-block:hover {
  cursor: pointer;
}

.like-block:hover .support-link,
.like-block .support-link:hover {
  text-decoration: none;
  color: #0e6802;
  transition: all 0.3s;
}

.comment-likes {
  color: #777;
}

.count-like {
  color: #0e6802;
}

.like-block {
  position: relative;
  display: inline-block;
}

.hover-block {
  display: none;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  gap: 10px;

  max-height: 300px;
  max-width: 620px;
  box-shadow: 0px 0px 14px rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  border: 1px solid #ccc;
  background: #ededed;

  position: absolute;
  bottom: 100%;
  left: 50%;

  transform: translateX(-50%);

  padding: 10px;
  border-radius: 5px;
  z-index: 1000;

  @media (max-width: 768px) {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    max-height: 500px;
    max-width: 520px;
  }
}

.hover-block::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;

  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #ededed;
}

.hover-block .user {
  flex-direction: column;
  justify-content: center;
  align-items: center;

  width: 70px;
  display: flex;

  gap: 5px;
}

.hover-block .user img {
  height: 60px;
  width: 60px;
  border-radius: 50%;
  margin-right: 10px;
}

.hover-block .user span {
  font-size: 14px;
  text-align: center;
}

.like-block:hover .hover-block {
  display: block;
}

.isAdmin {
  border-left: 2px dashed #cc333f;

  box-shadow: inset 0 0 1px 0 rgba(205, 50, 64, 0.9),
    inset 0 0 15px 0 rgba(0, 0, 0, 0.2);
  background: #fff;
}

.container-pagination {
  padding: 40px 0;
  max-width: 720px;
  width: 100%;
  margin: 0 auto; /* Центрирует контейнер */
  text-align: center; /* Центрирует содержимое */
}

.custom-pagination {
  display: flex;
  justify-content: center; /* Центрирует пагинацию внутри контейнера */
  gap: 10px; /* Расстояние между элементами */
}

.custom-pagination .page {
  display: inline-block;
  border: 1px solid #bfbfbf;
  border-radius: 5px;
  padding: 8px 12px;
  background-color: white;
  color: black;
  text-align: center;
}

.custom-pagination .current {
  background-color: #bfbfbf; /* Заливка активной страницы */
  font-weight: bold;
}

.custom-pagination .page a {
  text-decoration: none;
  color: black;
}

.custom-pagination .page a:hover {
  text-decoration: underline;
}

.custom-pagination .next a,
.custom-pagination .last a {
  padding: 8px 12px;
  border: 1px solid #bfbfbf;
  border-radius: 5px;
  background-color: white;
}

.custom-pagination .gap {
  color: #bfbfbf;
}

.custom-pagination .prev a, .custom-pagination .next a {
  background-color: #f5f5f5;
  border: 1px solid #bfbfbf;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.breadcrumbs {
  padding: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.breadcrumbs-link {
  color: #2e859e;
  text-decoration: none;
  font-size: 14px;
  font-weight: normal;
  line-height: normal;
}

.breadcrumbs-link.inactive {
  color: #777;
}

.breadcrumbs-link:hover {
  text-decoration: underline;
}

.breadcrumbs-link.inactive:hover {
  text-decoration: none;
  cursor: default;
}

.detail-item__movie-rating {
  color: #000;
  font-weight: bold;
  font-size: 14px;

  white-space: nowrap;
}

.detail-item__count-voice {
  color: #777 !important;
}

.detail-item .detail-item-rate-title {
  color: #000;
  text-decoration: none;
}

.detail-item-rate-title:hover {
  text-decoration: underline;
  color: #000;
}

.detail-item__age {
  color: #666 !important;
  font-weight: bold;
}

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

.actor-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 #ededed;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-top: -10px;
  margin-right: -10px;
}

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

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

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

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

.actor-tooltip .tooltip-inner {
  box-shadow: 0px 0px 14px rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  border: 1px solid #ccc;
  background: #ededed;
  max-width: 480px;
  opacity: 1;
}

.unique-popup-content {
  background: #ededed;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px;

  @media (max-width: 768px) {
    padding: 5px;
  }
}

.unique-popup-image {
  background: white;
  padding: 3px;
  border: 1px solid #888;
  border-radius: 5px;
}

.unique-actor-namealt {
  font-weight: 400;
  color: #777;
  font-size: 12px;
  line-height: 12px;
}

.actor-popup-content__wrapper {
  display: flex;
  flex-direction: column;
}

.unique-actor-name {
  margin: 0;
  padding-bottom: 3px;
}

.unique-actor-name-link {
  font-weight: 700;
  font-size: 18px;
  line-height: 16px;
  color: #00565f !important;
  text-decoration: none;
}

.unique-actor-name-link:hover {
  text-decoration: underline;
}

.detail-item .unique-actor-link {
  cursor: pointer;
  padding: 2px;
  color: #00565f;
  width: fit-content;
  text-decoration: underline;
}

.detail-item .unique-actor-link:hover {
  text-decoration: none;
}

.actor-popup-content {
  width: 100%;
  font-size: 13px;
  display: flex;
  color: #777;
  padding-bottom: 5px;
  margin: 0;
}

.actor-popup-content strong {
  width: 45%;
  text-align: left;
  color: #444;
  font-weight: bold;
  white-space: nowrap;
}

.actor-popup-content span {
  width: 65%;
  text-align: left;
  color: #444;
}

.actor-popup-text {
  text-align: left;
  font-size: 13px;
  line-height: 20px;
  padding-top: 10px;
  color: #777;
}

.actor-popup-span {
  font-size: 13px;
  transition: background-color 0.2s linear;
  background: #555;
  color: #fff !important;
  display: inline-block;
  line-height: 16px;
  padding: 1px 5px;
}

.actor-popup-span:hover {
  background: black;
}

.unique-popup-info {
  display: flex;
  padding-top: 10px;
  gap: 10px;
}

.notification {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: #e1e289;
  overflow: hidden;
  padding: 10px;
}
.notification p {
  color: #222;
  font-size: 14px;
  font-weight: bold;
  line-height: 16px;
}

.comment-form {
  display: flex;
  padding: 15px 0 20px 40px;
  flex-direction: column;
  gap: 13px;
  align-items: start;
  margin-bottom: 20px;
  background-color: #fff;
}

.comment-btn-send,
.comment-btn {
  background-color: #00a0b0;
  border: 1px solid #0098a7;
  border-radius: 3px;
  display: inline-block;
  padding: 11px 69px;
  font-size: 14px;
  font-weight: bold;
  line-height: 20px;
  color: #fff;

  cursor: pointer;
  border: 0;
}

.comment-btn:hover {
  background-color: #0a8b98;
  border-color: #026c77;
}

.styles-textarea:focus {
  border-color: #f9f9f9;
  box-shadow: inset 0 0 1px rgba(136, 136, 136, 0.85), 0 0 8px #52a8ec;
}

.styles-textarea::placeholder {
  font-style: italic;
}

.styles-input-name {
  border: 1px solid #e3e3e3;
  border-radius: 2px;
  background: #f9f9f9;
  outline: none;
  color: #777;
  font-size: 12px;
  font-style: normal;
  padding: 13px 20px;
  min-width: 205px;
  max-width: 512px;
}

.comment-form.collapsed .styles-input-name,
.comment-form.collapsed .comment-btn,
.comment-form.collapsed .validation-error {
  display: none;
}

.comment-form .styles-input-name,
.comment-form .comment-btn,
.comment-form .validation-error {
  display: block;
}

.comment-form.collapsed .styles-textarea {
  padding: 13px;
  height: 50px;
}

.styles-textarea {
  height: 117px;
  width: 100%;
  padding: 20px;
  font-weight: normal;
  font-style: normal;

  background: #f9f9f9;
  border: 1px solid #e3e3e3;

  outline: none;
}

.comment-form .styles-textarea {
  height: 117px;
  width: 100%;
  padding: 20px;
  font-weight: normal;
  font-style: normal;

  background: #f9f9f9;
  border: 1px solid #e3e3e3;

  outline: none;
}

.styles-input-name:focus {
  border-color: #f9f9f9;
  box-shadow: inset 0 0 1px rgba(136, 136, 136, 0.85), 0 0 8px #52a8ec;
}

.styles-input-name::placeholder {
  font-style: italic;
}

.validation-error {
  font-style: italic;
  color: #cc333f;
  font-size: 13px;
  line-height: 14px;
}

.hidden {
  display: none;
}

.comment-container {
  background-color: #fff;
}

.small-btn {
  padding: 8px 10px;
  background-color: #00a0b0;
  border: 1px solid #0098a7;
}

.main-comment-form {
  padding-left: 0;
}

.comment-form-reply {
  padding-left: 60px;
}

.comment-form-send {
  padding: 20px 0 20px 40px;
  margin-bottom: 0;
}

.custom-tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  opacity: 0.5;
}

.custom-tooltip:hover {
  opacity: 1;
}

.custom-tooltip .custom-tooltip-text {
  box-shadow: 0px 0px 14px rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  border: 1px solid #ccc;
  background: #ededed;

  visibility: hidden;
  width: 260px;

  color: #666;
  text-align: center;
  padding: 8px 0;

  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translate(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.custom-tooltip .custom-tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px;
  border-style: solid;
  border-color: #ccc transparent transparent transparent;
}

.custom-tooltip:hover .custom-tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* popap complaints */

.comment-popup {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.975);
  padding: 60px;
}

.comment-popup-title {
  color: #fff;
  font-size: 22px;
  line-height: 22px;
  padding-top: 50px;
  padding-bottom: 10px;
}

.comment-popup-content {
  color: #fff;
  margin: auto;
  margin: 0 auto;
  max-width: 680px;
}

.comment-popup-content .option {
  background: #333;
  color: #fff;
  margin: 10px 0;
  padding: 20px;
  font-size: 20px;
  line-height: 20px;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
}

.comment-popup-content .option.active {
  background: white;
  color: black;
}

.comment-popup-content .option.active:hover {
  background: white;
  color: black;
  cursor: default;
}

.comment-popup-content .option:hover {
  background: #444;
}

.close-comment-btn {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #222;
  border-radius: 50%;
  top: 50px;
  right: 50px;
  color: white;
  font-size: 50px;
  line-height: 0px;
  width: 60px;
  height: 60px;
  cursor: pointer;
}

.comment-textarea {
  width: 100%;
  height: 50px;
  padding: 10px;
  margin-bottom: 20px;
}

.close-comment-btn:hover,
.close-comment-btn:focus {
  background-color: #fff;
  cursor: pointer;
  color: black;
}

.comment-button-container {
  display: flex;
  justify-content: end;
}

@media (max-width: 768px) {
  .custom-tooltip .custom-tooltip-text {
    display: none;
  }

  .comment-popup-title {
    margin-top: 80px;
  }
}





/*SEASONS AND EPISODS*/
.player-container{
	background-color: black;
	padding-top: 2px;
	padding-bottom: 2px;
}

#player-container {
  margin: 20px 0;
  padding: 20px;
  background-color: #000;
  color: #fff;
  text-align: center;
  font-size: 20px;
}

.season-buttons, .episode-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: left;
  margin: 10px 0;
}

.season-buttons div, .episode-buttons div {
  flex: 0 0 calc(12.5% - 10px); 
  padding: 5px;
  background-color: black;
  color: #fff;
  cursor: pointer;
  text-align: center;
  border-radius: 5px;
}

.season-buttons div:hover, .episode-buttons div:hover {
  background-color: gray;
}

.season-buttons div.active {
  background-color: orange; 
  font-weight: bold;
}

.episode-buttons div.active {
  background-color: orange; 
  font-weight: bold;
}
/*END SEASONS AND EPISODS*/


