.size {
  width: 1168px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  height: 90px;
  margin: 40px;

  background-color: var(--background);
}

.header__container-logo {
  display: flex;
  align-items: center;

  font-style: normal;
  font-weight: 700;
  font-size: 32px;
  line-height: 38px;
}

.header__container-logo img {
  width: 40px;
  margin-right: 8px;
}

.header__container-right {
  display: flex;
}

.header__container-right input {
  margin-right: 64px;
}

.btn-theme {
  cursor: pointer;
}

.btn-theme:hover {
  opacity: 0.9;
}

.header__title {
  font-style: normal;
  font-weight: bold;
  font-size: 36px;
  line-height: 150%;

  color: var(--text-color);
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 24px;
}

.input {
  all: unset;

  width: 300px;
  height: 48px;
  padding: 16px;

  border: 1px solid var(--input-color);
  color: var(--text-color);
}

.input::placeholder {
  font-style: normal;
  font-weight: normal;
  font-size: 12px;
  line-height: 150px;

  color: var(--input-color);
}

.movies-container {
  display: flex;
  align-items: center;
  padding: 16px;
  width: 1160px;
  height: 296px;

  background: var(--bg-secondary);
  position: relative;
}

.movies-container,
.movies {
  display: flex;
  gap: 16px;
}

.movies {
  overflow-x: scroll;
  scroll-behavior: smooth;
  padding-bottom: 5px;
}

.movies::-webkit-scrollbar {
  scroll-margin-top: 10px;
  width: 15px;
}

.movies::-webkit-scrollbar-thumb {
  scroll-margin-top: 10px;
  background-color: var(--scroll);
  border-radius: 20px;
  border: 3px solid var(--scroll-border);
}

.movie {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  min-width: 160px;
  height: 264px;

  display: flex;
  flex-direction: column;
  align-items: center;

  cursor: pointer;

  box-shadow: 0px 4px 8px;
}

.movie__info {
  background-color: rgba(0, 0, 0, 0.8);

  display: flex;
  justify-content: space-between;
  align-items: center;

  width: 100%;
  margin-top: auto;
  padding: 8px 10px;

  font-style: normal;
  font-weight: bold;
  line-height: 150%;
}

.movie__title {
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  font-size: 16px;

  color: #fdfdfd;
}

.movie__rating {
  display: flex;
  align-items: center;
  gap: 4px;

  font-size: 12px;
  color: var(--rating-color);
}

.subtitle {
  font-style: normal;
  font-weight: bold;
  font-size: 24px;
  line-height: 150%;

  color: var(--text-color);

  margin-bottom: 16px;
}

.highlight,
.highlight-video {
  display: flex;
  gap: 16px;

  padding: 16px;
  background-color: var(--bg-secondary);
}

.highlight__video {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 560px;
  height: 310px;
}

.highlight_background_video {
  width: 560px;
  min-height: 310px;
}

.highlight__info {
  width: 560px;
  min-height: 310px;
}

.highlight__title-rating {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 8px;
}

.highlight__title {
  font-style: normal;
  font-weight: 700;
  font-size: 24px;
  line-height: 150%;

  margin-bottom: 8px;

  color: var(--text-color);
}

.highlight__genre-launch {
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  line-height: 150%;

  text-transform: uppercase;

  color: var(--text-color);

  margin-bottom: 36px;
}

.highlight__rating {
  font-style: normal;
  font-weight: bold;
  font-size: 24px;
  line-height: 150%;

  color: var(--rating-color);
}

.highlight__description {
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;

  opacity: 0.8;

  color: var(--text-color);
}

.modal {
  background-color: rgba(0, 0, 0, 0.8);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
}

.modal__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;

  width: 793px;
  min-height: 811px;
  padding: 32px;

  background-color: var(--bg-secondary);

  position: absolute;
  top: 32px;
}

.hidden {
  display: none;
}

.modal__close {
  position: absolute;
  right: 32px;
  top: 32px;

  cursor: pointer;
}

.modal__title {
  font-style: normal;
  font-weight: bold;
  font-size: 36px;
  line-height: 150%;
  color: var(--text-color);

  margin-bottom: 40px;
  padding-right: 45px;
}

.img__modal {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
}

.play {
  position: absolute;
  width: 90px;
}

.modal__img {
  width: 729px;
  height: 413px;

  margin-bottom: 20px;
}

.modal__description {
  font-style: normal;
  font-size: 20px;
  line-height: 150%;

  color: var(--text-color);

  width: 729px;
  height: 200px;

  margin-bottom: 20px;
  overflow-y: auto;
}

.modal__genre-avarage {
  width: 729px;
  align-self: center;

  display: flex;
  justify-content: space-between;
}

.modal__genre,
.modal__avarage {
  border-radius: 8px;
  padding: 10px;

  font-style: normal;
  font-weight: bold;
  font-size: 20px;
  line-height: 150%;

  color: #ffffff;
}

.modal__genre {
  background: #fe0078;
}

.modal__avarage {
  background: var(--rating-color);
}

.no_poster {
  color: #ffffff;
}
