body, html {
  padding: 0;
  margin: 0;
  color: #585858;
  font-weight: 400;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 14px;
  height: 100%;
}

/* apply a natural box layout model to all elements, but allowing components to change */
html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

.autocompleteContainer {
  position: relative;
}

.autocomplete-results {
  background: white;
  z-index: 1000;
  width: 100%;
  border: 1px solid #E9E9E9;
  margin: 3px auto;
  display: none;
  border-radius: 24px;
  padding: 0 10px;
  border: 1px solid #BCB7DD;
  box-shadow: 0px 4px 14px 0px rgba(0, 0, 0, 0.1);
  box-shadow: 0px 4px 14px 0px color(display-p3 0 0 0/0.1);
}

.autocomplete-results > div {
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: #F9F8F8;
  border: 1px solid #E9E9E9;
  margin: 10px 0;
  color: #7F76C3;
  transition: all 0.3s linear;
}
.autocomplete-results > div .resultContent {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.autocomplete-results > div .resultType {
  font-size: 12px;
}
.autocomplete-results > div:hover {
  background: var(--gradient, linear-gradient(90deg, #FFF1FF 0%, #E1F5FB 100%));
  background: var(--gradient, linear-gradient(90deg, color(display-p3 0.9949 0.9477 1) 0%, color(display-p3 0.8979 0.9587 0.9798) 100%));
  border-color: #BCB7DD;
}

.thumbnail {
  background-color: #CFEAF4;
  width: 50px !important;
  height: 70px !important;
  display: block;
  background-size: cover;
  border-radius: 6px;
}

.message {
  margin: 12px 0;
  color: #7F76C3;
  background: #F2F1F9;
  padding: 6px 0;
  border-radius: 12px;
  border: 1px solid #DEDBEF;
}
.message span {
  font-weight: 600;
}
.message a {
  color: #7F76C3;
}

section {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
}

#logo {
  width: 90px;
  height: 60px;
}

#search {
  width: 100%;
}

#search_inputs {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  position: relative;
}

.modal {
  display: none;
}

input[type=search]::-webkit-search-cancel-button {
  /* Remove default */
  -webkit-appearance: none;
  /* Now your own custom styles */
  height: 18px;
  width: 18px;
  display: block;
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAn0lEQVR42u3UMQrDMBBEUZ9WfQqDmm22EaTyjRMHAlM5K+Y7lb0wnUZPIKHlnutOa+25Z4D++MRBX98MD1V/trSppLKHqj9TTBWKcoUqffbUcbBBEhTjBOV4ja4l4OIAZThEOV6jHO8ARXD+gPPvKMABinGOrnu6gTNUawrcQKNCAQ7QeTxORzle3+sDfjJpPCqhJh7GixZq4rHcc9l5A9qZ+WeBhgEuAAAAAElFTkSuQmCC);
  background-repeat: no-repeat;
  background-size: 18px;
}

input {
  outline: none;
  width: 100%;
  border: 1px solid #E9E9E9;
  padding: 12px 18px;
  border-radius: 30px;
  font-size: 14px;
  background: #F9F8F8;
  transition: all 0.3s ease-in-out;
}
input:focus {
  border: 1px solid #BCB7DD;
  /* shadow */
}
input.hiddenInput {
  width: 33%;
  pointer-events: none;
  opacity: 0.25;
}

#autocomplete {
  margin: 0 0px;
  height: 20px;
}

#comparisonResults {
  width: 100%;
  padding: 0 12px;
}

.result {
  border: 1px solid #E9E9E9;
  background: #F9F8F8;
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s linear;
}
.result:last-child {
  margin-bottom: 0;
}
.result:hover {
  background: var(--gradient, linear-gradient(90deg, #FFF1FF 0%, #E1F5FB 100%));
  background: var(--gradient, linear-gradient(90deg, color(display-p3 0.9949 0.9477 1) 0%, color(display-p3 0.8979 0.9587 0.9798) 100%));
  border-color: #BCB7DD;
  box-shadow: 0px 4px 14px 0px rgba(0, 0, 0, 0.1);
  box-shadow: 0px 4px 14px 0px color(display-p3 0 0 0/0.1);
}

.actor-name-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #E9E9E9;
  padding-bottom: 10px;
  color: #7F76C3;
}
.actor-name-container .actor-image {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background-position: center;
  background-size: cover;
  background-color: #CFEAF4;
}
.actor-name-container a {
  text-decoration: none;
  color: #7F76C3;
  font-size: 16px;
}

.actor-roles {
  display: flex;
  flex-direction: row;
  padding: 10px 0 0;
  gap: 10px;
}
.actor-roles > div {
  flex-basis: 50%;
  max-width: 50%;
}
.actor-roles > div .title {
  font-size: 11px;
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.actor-roles > div .character-name {
  gap: 5px;
  color: rgba(0, 0, 0, 0.8);
}
.actor-roles > div .character-name.character1 {
  justify-content: flex-start;
}
.actor-roles > div .character-name.character2 {
  justify-content: flex-end;
}
.actor-roles > div .character-name span {
  color: #7F76C3;
  opacity: 0.8;
}
.actor-roles > div:first-child {
  text-align: left;
}
.actor-roles > div:last-child {
  align-items: flex-end;
  text-align: right;
}

small {
  color: #7F76C3;
}
small a {
  color: #7F76C3 !important;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  font-size: 12px;
}
footer a {
  color: #7F76C3;
  text-decoration: none;
}
footer a {
  magin: 0;
  padding: 0;
  display: inline-block;
  line-height: 0;
}
footer img {
  width: 150px;
}
footer .disclaimer {
  opacity: 0.5;
  font-size: 9px;
}

@media (min-width: 640px) {
  section {
    padding-top: 30px;
  }
}