* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  --background-color: #fff;
  --input-border-color: #979797;
  --color: #000;
  --shadow-color: 0px 4px 8px rgba(0, 0, 0, 0.15);
  --highlight-background: #fff;
  --highlight-color: rgba(0, 0, 0, 0.7);
  --highlight-description: #000;

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

.header {
  background-color: #a785ed;

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

  margin-bottom: 40px;
  padding: 15px;
}

.header__title {
  font-family: "Manrope", sans-serif;
  font-style: normal;
  font-weight: bold;
  font-size: 36px;
  line-height: 150%;

  color: #fdfdfd;
}

.btn-theme {
  cursor: pointer;
}

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

.input {
  all: unset;
  box-sizing: border-box;

  width: 400px;

  background: var(--background-color);

  margin-bottom: 40px;
  padding: 14px;
  border: 1px solid var(--input-border-color);
  border-radius: 8px;

  color: var(--color);
}

.input,
.input::placeholder {
  font-family: "Manrope", sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 12px;
  line-height: 150%;
}

.input::placeholder {
  color: var(--input-border-color);
}

.movies-container,
.movies {
  display: flex;
  align-items: center;
  gap: 24px;
}

.movies-container {
  margin-bottom: 40px;
}

.btn-prev,
.btn-next {
  cursor: pointer;
}

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

  width: 168px;
  height: 300px;

  display: flex;
  flex-direction: column;

  box-shadow: var(--shadow-color);

  cursor: pointer;
}

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

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

  margin-top: auto;
  padding: 10px 8px;
}

.movie__title {
  font-family: "Manrope", sans-serif;
  font-style: normal;
  font-weight: bold;
  font-size: 16px;
  line-height: 150%;

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

  color: #fdfdfd;
}

.movie__rating {
  font-family: "Manrope", sans-serif;
  font-style: normal;
  font-weight: bold;
  font-size: 12px;
  line-height: 150%;

  color: #fbcd6e;
}

.subtitle {
  font-family: "Manrope", sans-serif;
  font-style: normal;
  font-weight: bold;
  font-size: 24px;
  line-height: 150%;

  margin-bottom: 16px;

  color: var(--color);
}

.highlight {
  display: flex;
  gap: 24px;
}

.highlight__video {
  width: 550px;
  height: 350px;

  display: flex;
  justify-content: center;
  align-items: center;
}

.highlight__info {
  max-width: 360px;
  height: 360px;

  background: var(--highlight-background);
  box-shadow: var(--shadow-color);

  padding: 16px;
}

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

  margin-bottom: 8px;
}

.highlight__title {
  font-family: "Manrope", sans-serif;
  font-style: normal;
  font-weight: bold;
  font-size: 24px;
  line-height: 150%;

  color: #e183c8;
}

.highlight__rating {
  font-family: "Manrope", sans-serif;
  font-style: normal;
  font-weight: bold;
  font-size: 24px;
  line-height: 150%;

  color: #a785ed;
}

.highlight__genre-launch {
  font-family: "Manrope", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  line-height: 150%;

  text-transform: uppercase;

  color: var(--highlight-color);

  margin-bottom: 36px;
}

.highlight__description {
  font-family: "Manrope", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;

  color: var(--highlight-description);
}

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

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

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

  padding: 56px;

  overflow-y: scroll;
}

.hidden {
  display: none;
}

.modal__close {
  cursor: pointer;
  align-self: flex-end;

  margin-bottom: 10px;
}

.modal__title {
  font-family: "Manrope", sans-serif;
  font-style: normal;
  font-weight: bold;
  font-size: 36px;
  line-height: 150%;

  color: #ffffff;

  margin-bottom: 40px;
}

.modal__img {
  max-width: 730px;
  margin-bottom: 20px;
}

.modal__description {
  max-width: 730px;

  font-family: "Manrope", sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 20px;
  line-height: 150%;

  color: #ffffff;

  margin-bottom: 20px;
}

.modal__genre-average {
  width: 730px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal__genres {
  display: flex;
  gap: 12px;
}

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

  font-family: "Manrope", sans-serif;
  font-style: normal;
  font-weight: bold;
  font-size: 20px;
  line-height: 150%;

  color: #ffffff;
}

.modal__genre {
  background: #e183c8;
}

.modal__average {
  background: #a785ed;
}

.js-scroll {
  opacity: 0;
  transform: translate3d(-20px, 0, 0);
}

.js-scroll.ativo {
  opacity: 1;
  transform: translate3d(0, 0, 0);

  transition: 0.5s;
}
