/* =========================================================
   SEARCH
   ========================================================= */

.search-section {
  width: 100%;

  margin-bottom: 42px;
}

.search-box {
  position: relative;

  display: flex;
  align-items: center;

  width: 100%;
  max-width: 760px;

  margin: 0 auto;
}


/* =========================================================
   SEARCH INPUT
   ========================================================= */

.movie-search {
  width: 100%;
  height: 58px;

  padding: 0 68px 0 22px;

  border: 1px solid #e1e1e1;
  border-radius: 16px;

  background: #f7f7f7;
  color: #171717;

  font-family: inherit;
  font-size: 16px;

  outline: none;

  transition:
    border-color .2s ease,
    background .2s ease,
    box-shadow .2s ease;
}

.movie-search::placeholder {
  color: #969696;
}

.movie-search:focus {
  border-color: #c8c8c8;

  background: #fff;

  box-shadow: 0 6px 25px rgba(0, 0, 0, .06);
}


/* =========================================================
   SEARCH BUTTON
   ========================================================= */

.search-btn {
  position: absolute;

  right: 7px;
  top: 7px;

  width: 44px;
  height: 44px;

  border: 0;
  border-radius: 12px;

  background: #171717;
  color: #fff;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition:
    transform .2s ease,
    opacity .2s ease;
}

.search-btn:hover {
  opacity: .85;
}

.search-btn:active {
  transform: scale(.94);
}

.search-btn span {
  font-size: 27px;
  line-height: 1;

  transform: translateY(-2px);
}


/* =========================================================
   CODE FOUND
   Поиск по коду нашёл фильм
   ========================================================= */

.movie-search.code-found {
  border-color: var(--accent) !important;

  box-shadow:
    0 0 0 2px rgba(105, 199, 47, .12);
}

.search-btn.code-found {
  width: 78px;
  min-width: 78px;

  padding: 0 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--accent);

  border-color: var(--accent);

  color: #fff;

  overflow: visible;
}

.search-btn.code-found:hover {
  background: var(--accent-dark);

  border-color: var(--accent-dark);
}

.search-btn.code-found .open-search-text {
  display: block;

  font-size: 13px;
  font-weight: 600;

  line-height: 1;

  white-space: nowrap;
}