@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

body {
  margin: 0;
  font-family: "Lato", sans-serif;
}

.container {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: 0 auto;
  padding: 0 10px;
}

.logo {
  margin: 40px;
  text-align: center;
  font-size: 50px;
}

.search {
  display: flex;

  .search__form {
    display: flex;
    flex: 1;
    gap: 5px;
  }

  .search__field {
    flex: 1;
    padding: 15px 13px;
    border-radius: 10px;
    border: 1px solid gray;
    font-size: 20px;
  }

  .search__field::placeholder {}
}

.recent-list {
  display: flex;
  flex-direction: column;
  margin: 60px 0;
  gap: 15px;

  .recent-list__item {
  }
}

.movie-card {
  display: flex;
  gap: 10px;
  border-radius: 10px;

  .movie-card__poster img {
    max-width: 100px;
    display: block;
    border-radius: 10px;
  }

  .movie-card__movie-info {

  }

  .movie-card__title {
    margin: 5px 0;
    font-size: 18px;
  }

  .movie-card__year {
    margin-left: 5px;
    color: #999;
    font-weight: normal;
  }
}

.search-results {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.search-result {
  display: flex;
  align-items: center;
  gap: 10px;

  .search-result__info {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .search-result__title {
    font-size: 18px;
    margin: 0;
  }

  .search-result__year {
    font-size: 14px;
    color: #AAA;
  }

  .search-result__poster {
    width: 50px;
    height: 75px;
    overflow: hidden;
    border-radius: 10px;
    background: #EEE;
    display: block;

    img {
      width: 100%;
      display: block;
    }
  }
}

.skeleton {
  height: 15px;
  border-radius: 15px;
  background: #EEE;
  display: block;
}
