/* UAKino fast search — reference-compatible responsive implementation. */
#searchsuggestions {
  position: absolute;
  z-index: 12050 !important;
  width: 700px;
  max-width: calc(100vw - 24px);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #444;
  color: #fff;
  border: 0;
  border-radius: 0 0 3px 3px;
  box-shadow: 0 10px 24px rgba(0,0,0,.34);
  font-family: "PT Sans", Arial, sans-serif;
  font-size: 14px;
  scrollbar-width: thin;
  scrollbar-color: #666 #353535;
}
#searchsuggestions::-webkit-scrollbar { width: 8px; }
#searchsuggestions::-webkit-scrollbar-track { background: #353535; }
#searchsuggestions::-webkit-scrollbar-thumb { background: #666; border-radius: 5px; }

#searchsuggestions > .uakino-fastsearch-result {
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 110px;
  height: auto !important;
  padding: 10px 20px;
  overflow: hidden;
  border-bottom: 1px solid #e3e3e3;
  background: #444;
  color: #fff;
  text-decoration: none;
  font-weight: 400;
  line-height: 1.25;
  transition: background-color .12s ease;
}
#searchsuggestions > .uakino-fastsearch-result:hover,
#searchsuggestions > .uakino-fastsearch-result:focus-visible {
  background: #1f2123;
  color: #fff;
  text-decoration: none;
  outline: 0;
}
#searchsuggestions .fastsearch-kind { display: none !important; }
#searchsuggestions .fastsearch-thumb {
  display: block;
  flex: 0 0 65px;
  width: 65px;
  height: 90px;
  overflow: hidden;
  background: #292b2d;
}
#searchsuggestions .fastsearch-thumb img {
  display: block !important;
  float: none !important;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  object-fit: cover;
  object-position: center;
}
#searchsuggestions .search-result-info {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  color: #fff;
}
#searchsuggestions .searchheading {
  display: block;
  margin: 0 0 2px !important;
  color: #fff;
  font-size: 17px;
  line-height: 1.22;
  font-weight: 700;
  overflow-wrap: anywhere;
}
#searchsuggestions .search-orig-title {
  display: block;
  margin: 0 0 7px;
  color: #fff;
  font-size: 14px;
  line-height: 1.25;
  font-style: italic;
  font-weight: 400;
  overflow-wrap: anywhere;
}
#searchsuggestions .search-extend-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 7px;
  color: #fff;
  line-height: 17px;
}
#searchsuggestions .search-year { display: block; width: 100%; }
#searchsuggestions .search-imdb {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
#searchsuggestions .search-imdb img {
  display: block !important;
  float: none !important;
  width: 30px !important;
  height: 15px !important;
  margin: 0 !important;
  object-fit: contain !important;
}

/* News/search entries without movie metadata use the landscape thumbnail from the reference. */
#searchsuggestions > .uakino-fastsearch-result:not(:has(.search-year)):not(:has(.search-imdb)):not(:has(.fastsearch-kind--movie)):not(:has(.fastsearch-kind--tv)):not(:has(.fastsearch-kind--cartoon)):not(:has(.fastsearch-kind--anime)) .fastsearch-thumb,
#searchsuggestions > .uakino-fastsearch-result:has(.fastsearch-kind--news) .fastsearch-thumb {
  flex-basis: 168px;
  width: 168px;
  height: 96px;
}

#searchsuggestions span.notfound {
  box-sizing: border-box;
  display: block;
  padding: 15px 20px;
  border-bottom: 1px solid #e3e3e3;
  background: #444;
  color: #fff;
}
#searchsuggestions span.seperator { display: block; }
#searchsuggestions span.seperator a {
  box-sizing: border-box;
  display: block;
  height: 40px !important;
  margin: 0;
  padding: 10px 0 !important;
  border: 0;
  background: #ca563f;
  color: #fff;
  text-align: center;
  font-weight: 700 !important;
  line-height: 20px;
}
#searchsuggestions span.seperator a:hover { background: #b94935; }
#searchsuggestions .break { display: none; }

@media screen and (max-width: 760px) {
  #searchsuggestions {
    max-width: calc(100vw - 20px);
    border-radius: 0;
    box-shadow: 0 8px 18px rgba(0,0,0,.34);
  }
  #searchsuggestions > .uakino-fastsearch-result {
    gap: 10px;
    min-height: 110px;
    padding: 10px 25px;
  }
  #searchsuggestions .fastsearch-thumb {
    flex-basis: 67px;
    width: 67px;
    height: 91px;
  }
  #searchsuggestions .searchheading {
    font-size: 17px;
    line-height: 1.22;
  }
  #searchsuggestions .search-orig-title {
    margin-bottom: 7px;
    font-size: 14px;
  }
  #searchsuggestions > .uakino-fastsearch-result:not(:has(.search-year)):not(:has(.search-imdb)):not(:has(.fastsearch-kind--movie)):not(:has(.fastsearch-kind--tv)):not(:has(.fastsearch-kind--cartoon)):not(:has(.fastsearch-kind--anime)) .fastsearch-thumb,
  #searchsuggestions > .uakino-fastsearch-result:has(.fastsearch-kind--news) .fastsearch-thumb {
    flex-basis: 168px;
    width: 168px;
    height: 96px;
  }
  #searchsuggestions span.seperator { display: none !important; }
}

@media screen and (max-width: 520px) {
  #searchsuggestions > .uakino-fastsearch-result {
    padding-left: 15px;
    padding-right: 15px;
  }
  #searchsuggestions > .uakino-fastsearch-result:not(:has(.search-year)):not(:has(.search-imdb)):not(:has(.fastsearch-kind--movie)):not(:has(.fastsearch-kind--tv)):not(:has(.fastsearch-kind--cartoon)):not(:has(.fastsearch-kind--anime)) .fastsearch-thumb,
  #searchsuggestions > .uakino-fastsearch-result:has(.fastsearch-kind--news) .fastsearch-thumb {
    flex-basis: min(42vw, 168px);
    width: min(42vw, 168px);
  }
}
