/* Search result page */
.search-result-page {
  color: #666b74;
  background: #f5f8fd;
  font-size: 12px;
}

.search-result-page .header {
  height: 70px;
  min-height: 70px;
  padding: 0 14px;
  gap: 22px;
}

.search-result-page .site-logo__image {
  width: 204px;
  max-height: 54px;
}

.search-result-page .header .site-nav__list {
  justify-content: flex-end;
  gap: clamp(18px, 3.9vw, 56px);
}

.search-result-page .header .site-nav__list > li > a {
  height: 70px;
  color: #35373c;
  font-size: 16px;
  line-height: 70px;
}

.search-result-page .header .site-nav__list > li.active > a::before {
  bottom: 0;
}

.search-result-page .site-search {
  width: 34px;
  height: 34px;
}

.search-result-page .site-search img {
  width: 20px;
  height: 20px;
}

.search-result-main {
  flex: 1 0 auto;
}

.search-result-hero {
  height: 128px;
  padding-top: 43px;
  background: #edf6ff url("../../images/search-result-banner.png") center / cover no-repeat;
}

.result-search {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 86px;
  width: min(716px, calc(100% - 40px));
  height: 44px;
  margin: 0 auto;
  padding: 0 4px;
  border: 4px solid rgba(255, 255, 255, .92);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(67, 107, 190, .08);
}

.result-search__select,
.result-search input,
.result-search__submit {
  border: 0;
  outline: 0;
  font-family: inherit;
}

.result-search__select {
  position: relative;
  z-index: 2;
  padding: 0 18px;
  border: 1px solid #e7ebf1;
  border-radius: 9999px;
  color: #777d87;
  background: #fff;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.result-search__select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 17px;
  width: 6px;
  height: 6px;
  border-right: 1px solid #777d87;
  border-bottom: 1px solid #777d87;
  transform: translateY(-70%) rotate(45deg);
}

.result-search input {
  min-width: 0;
  height: 100%;
  padding: 0 10px;
  color: #293b61;
  background: transparent;
  font-size: 16px;
}

.result-search input::placeholder {
  color: #c5cbd5;
}

.result-search__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 36px;
  border-radius: 19px;
  color: #fff;
  background: #5168f4;
  font-size: 11px;
  cursor: pointer;
}

.search-glyph {
  position: relative;
  width: 9px;
  height: 9px;
  border: 1px solid #fff;
  border-radius: 50%;
}

.search-glyph::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 4px;
  height: 1px;
  background: #fff;
  transform: rotate(45deg);
}

.result-search__menu {
  position: absolute;
  top: 39px;
  left: 4px;
  z-index: 6;
  display: none;
  width: 104px;
  padding: 5px 0;
  border: 1px solid #e7ebf1;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(47, 77, 132, .14);
}

.result-search__menu.is-open {
  display: block;
}

.result-search__menu button {
  display: block;
  width: 100%;
  height: 28px;
  padding: 0 15px;
  border: 0;
  color: #666b74;
  background: #fff;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.result-search__menu button:hover {
  color: #247ef3;
  background: #f3f7ff;
}

.search-result-wrap {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.result-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 61px;
  color: #aeb4bd;
  font-size: 16px;
}

.result-breadcrumb a:hover {
  color: #267ff4;
}

.result-breadcrumb strong {
  color: #767b84;
  font-weight: 400;
}

.result-layout {
  display: grid;
  grid-template-columns: 171px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-bottom: 54px;
}

.filter-sidebar {
  min-width: 0;
}

.filter-group {
  margin-bottom: 15px;
  border: 1px solid #e5e9ef;
  background: #fff;
}

.filter-group h2 {
  position: relative;
  height: 35px;
  margin: 0;
  padding: 0 14px;
  border-left: 2px solid #2583f5;
  color: #5d626c;
  font-size: 13px;
  font-weight: 500;
  line-height: 35px;
}

.filter-group h2 button {
  position: absolute;
  top: 0;
  right: 7px;
  width: 24px;
  height: 35px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.filter-group h2 button span {
  display: block;
  width: 7px;
  height: 7px;
  margin: 4px auto 0;
  border-top: 1px solid #d3d7de;
  border-left: 1px solid #d3d7de;
  transform: rotate(45deg);
}

.filter-group.is-collapsed h2 button span {
  margin-top: -1px;
  transform: rotate(225deg);
}

.filter-group label {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 31px;
  padding: 0 11px;
  border-top: 1px solid #eef0f3;
  color: #888e98;
  cursor: pointer;
}

.filter-group label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fake-check {
  position: relative;
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-right: 9px;
  border: 1px solid #cfd3d9;
  background: #fff;
}

.filter-group label input:checked + .fake-check {
  border-color: #3096f8;
  background: #3096f8;
}

.filter-group label input:indeterminate + .fake-check {
  border-color: #b9bec6;
  background: #fff;
}

.filter-group label input:indeterminate + .fake-check::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 5px;
  height: 5px;
  background: #aeb4bc;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%);
}

.filter-group label input:checked + .fake-check::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 0;
  width: 3px;
  height: 6px;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  transform: rotate(45deg);
}

.filter-group label em {
  min-width: 0;
  overflow: hidden;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.filter-group label b {
  margin-left: auto;
  color: #5a9eff;
  font-weight: 400;
}

.filter-group.is-collapsed label {
  display: none;
}

.result-panel {
  min-width: 0;
  border: 1px solid #e5e9ef;
  background: #fff;
}

.result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 35px;
  padding: 0 14px;
  border-bottom: 1px solid #edf0f3;
  color: #6f757e;
}

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

.result-query strong {
  color: #f34d4e;
  font-weight: 400;
}

.history-link {
  height: 20px;
  padding: 0 7px;
  border: 0;
  color: #70a9f3;
  background: #eef6ff;
  font-size: 10px;
  cursor: pointer;
}

.result-meta p {
  white-space: nowrap;
}

.result-meta p b {
  color: #559bfa;
  font-weight: 400;
}

.result-sort {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 28px;
  padding: 0 14px;
  border-bottom: 1px solid #edf0f3;
  color: #7b8088;
}

.result-sort button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.result-sort button.active {
  color: #3d8cf1;
}

.result-sort button i {
  font-style: normal;
}

.result-item {
  position: relative;
  min-height: 207px;
  padding: 25px 14px 20px;
  border-bottom: 1px solid #edf0f3;
}

.result-item__actions {
  position: absolute;
  top: 14px;
  right: 13px;
  display: flex;
  gap: 15px;
}

.result-item__actions button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  color: #9ca2ab;
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.result-item__actions button span {
  position: relative;
  display: block;
  width: 11px;
  height: 10px;
}

.result-item__actions .action-icon {
  display: block;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.favorite span::before {
  content: "☆";
  position: absolute;
  top: -5px;
  color: #9da5b0;
  font-size: 16px;
}

.favorite.active {
  color: #4e9ff4;
}

.favorite.active span::before {
  content: "★";
  color: #36a0f5;
}

.share span::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 8px;
  height: 8px;
  border: 1px solid #a9afb7;
  border-radius: 1px;
}

.share span::after {
  content: "↗";
  position: absolute;
  top: -6px;
  right: -1px;
  color: #a9afb7;
  font-size: 12px;
  background: #fff;
}

.result-item h2 {
  display: flex;
  align-items: flex-start;
  max-width: calc(100% - 150px);
  margin: 0 0 9px;
  color: #3189f4;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
}

.result-item h2 a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-item h2 small {
  flex: 0 0 auto;
}

.result-item h2 a:hover,
.result-details a:hover {
  text-decoration: underline;
}

.result-item h2 mark,
.result-summary mark {
  color: #f14e4d;
  background: transparent;
}

.result-item h2 small {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 4px;
  border-radius: 2px;
  color: #fff;
  background: #2698ef;
  font-size: 9px;
  vertical-align: 2px;
}

.result-item h2 small.tag-violet {
  background: #af64f7;
}

.result-item h2 small.tag-blue {
  background: #5bb7f8;
}

.result-item__body {
  display: flex;
  gap: 14px;
}

.result-cover {
  position: relative;
  display: block;
  flex: 0 0 100px;
  width: 100px;
  height: 137px;
  overflow: hidden;
  border: 1px solid #e7e9ec;
  background: #f7f8fa;
}

.result-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-cover--video img {
  object-fit: cover;
}

.play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #138ff1;
  box-shadow: 0 1px 4px rgba(0, 61, 135, .3);
  transform: translate(-50%, -50%);
}

.play-icon::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  border-left: 9px solid #fff;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.result-details {
  min-width: 0;
  flex: 1 1 auto;
  color: #a0a4aa;
  font-size: 11px;
  line-height: 1.45;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.15fr;
  column-gap: 12px;
  row-gap: 7px;
}

.detail-grid p {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.detail-grid .detail-keywords {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: visible;
  white-space: normal;
}

.detail-label {
  flex: 0 0 auto;
}

.keyword-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.detail-grid a.keyword-tag {
  display: inline-block;
  padding: 3px 13px;
  border-radius: 2px;
  color: #4f93ed;
  background: #f1f5fb;
  line-height: 1.35;
  white-space: nowrap;
}

.detail-grid a {
  color: #5b9ced;
}

.result-summary {
  margin-top: 7px;
  color: #8e939b;
  line-height: 1.55;
}

.result-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 58px;
  color: #a5aab2;
}

.result-pagination button {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border: 1px solid #edf0f3;
  color: #adb2bb;
  background: #fff;
  font-size: 11px;
  cursor: pointer;
}

.result-pagination button:hover,
.result-pagination button.active,
.result-pagination button.confirm {
  border-color: #2e90f6;
  color: #fff;
  background: #2e90f6;
}

.result-pagination button.next {
  margin-left: 3px;
}

.result-pagination .total {
  margin-left: 3px;
}

.result-pagination label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.result-pagination input {
  width: 29px;
  height: 24px;
  border: 1px solid #edf0f3;
  outline: 0;
  color: #777d86;
  text-align: center;
}

.search-result-page .site-footer {
  padding: 47px 0 25px;
}

.search-result-page .site-footer .wrap {
  width: min(1020px, calc(100% - 48px));
}

.search-result-page .footer-grid {
  grid-template-columns: 300px 260px 390px;
  gap: 35px;
}

.search-result-page .footer-links {
  grid-template-columns: repeat(2, max-content);
  gap: 63px;
}

.search-result-page .footer-links h3 {
  font-size: 14px;
}

.search-result-page .footer-links a {
  margin: 12px 0;
  font-size: 12px;
}

.search-result-page .footer-logo .top-logo {
  width: 58px;
}

.search-result-page .footer-logo .bottom-logo {
  width: 170px;
}

.search-result-page .qrs {
  gap: 18px;
  font-size: 11px;
}

.search-result-page .qrs img {
  width: 104px;
  height: 104px;
  margin-bottom: 8px;
}

.search-result-page .copyright {
  margin-top: 35px;
  padding-top: 20px;
  font-size: 10px;
}

@media (max-width: 960px) {
  .search-result-page .header .site-nav__list {
    gap: 18px;
  }

  .search-result-page .header .site-nav__list > li > a {
    font-size: 14px;
  }

  .search-result-page .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .search-result-page .footer-logo {
    display: none;
  }

  .search-result-page .qrs {
    grid-column: 2;
  }
}

@media (max-width: 767px) {
  .search-result-page .header {
    height: auto;
    min-height: 70px;
    padding: 10px 16px 0;
  }

  .search-result-page .site-logo__image {
    width: 180px;
  }

  .search-result-page .header .site-nav {
    margin: 0 -16px;
  }

  .search-result-page .header .site-nav__list {
    min-width: 690px;
  }

  .search-result-page .header .site-nav__list > li > a {
    height: 43px;
    line-height: 43px;
  }

  .search-result-page .site-search {
    margin-left: auto;
  }

  .search-result-hero {
    height: 104px;
    padding-top: 29px;
  }

  .result-search {
    grid-template-columns: 84px minmax(0, 1fr) 70px;
    height: 42px;
  }

  .result-search__select {
    padding: 0 10px;
  }

  .result-search__select::after {
    right: 11px;
  }

  .search-result-wrap {
    width: calc(100% - 24px);
  }

  .result-breadcrumb {
    height: 43px;
  }

  .result-layout {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-bottom: 28px;
  }

  .filter-sidebar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .filter-group {
    margin: 0;
  }

  .filter-group h2 {
    padding: 0 9px;
    font-size: 11px;
  }

  .filter-group label {
    padding: 0 7px;
    font-size: 10px;
  }

  .filter-group label b {
    display: none;
  }

  .result-meta {
    padding: 0 9px;
  }

  .result-meta p {
    display: none;
  }

  .result-item {
    padding: 45px 10px 15px;
  }

  .result-item h2 {
    max-width: 100%;
    font-size: 15px;
  }

  .result-item__actions {
    top: 15px;
    right: 10px;
  }

  .result-item__body {
    gap: 9px;
  }

  .result-cover {
    flex-basis: 78px;
    width: 78px;
    height: 108px;
  }

  .detail-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4px 8px;
    min-height: 0;
  }

  .result-details {
    font-size: 10px;
  }

  .result-summary {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .result-pagination {
    flex-wrap: wrap;
    padding: 10px 6px;
  }

  .search-result-page .site-footer .wrap {
    width: calc(100% - 32px);
  }

  .search-result-page .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .search-result-page .footer-links {
    justify-content: space-between;
    gap: 16px;
  }

  .search-result-page .qrs {
    grid-column: auto;
    justify-content: center;
  }

  .search-result-page .copyright {
    display: block;
    line-height: 1.8;
  }

  .search-result-page .copyright span {
    display: block;
  }
}

@media (min-width: 1441px) {
  .search-result-page .header {
    height: 98px;
    min-height: 98px;
    padding: 0 20px;
    gap: 32px;
  }

  .search-result-page .site-logo__image {
    width: 284px;
    max-height: 75px;
  }

  .search-result-page .header .site-nav__list {
    gap: clamp(24px, 3.9vw, 80px);
  }

  .search-result-page .header .site-nav__list > li > a {
    height: 98px;
    font-size: 22px;
    line-height: 98px;
  }

  .search-result-page .site-search {
    width: 48px;
    height: 48px;
  }

  .search-result-page .site-search img {
    width: 28px;
    height: 28px;
  }

  .search-result-hero {
    height: 184px;
    padding-top: 62px;
  }

  .result-search {
    grid-template-columns: 152px minmax(0, 1fr) 122px;
    width: min(1000px, calc(100% - 56px));
    height: 64px;
    padding: 0 6px 0 0;
    border-width: 6px;
    border-radius: 34px;
  }

  .result-search__select {
    padding: 0 32px;
    font-size: 18px;
  }

  .result-search__select::after {
    right: 14px;
    width: 8px;
    height: 8px;
  }

  .result-search input {
    padding: 0 14px;
    font-size: 17px;
  }

  .result-search__submit {
    height: 52px;
    border-radius: 27px;
    gap: 8px;
    font-size: 15px;
  }

  .result-search__menu {
    top: 57px;
    left: 6px;
    width: 148px;
    padding: 7px 0;
  }

  .result-search__menu button {
    height: 40px;
    padding: 0 22px;
    font-size: 15px;
  }

  .search-result-wrap {
    width: min(1200px, calc(100% - 56px));
  }

  .result-breadcrumb {
    gap: 13px;
    height: 86px;
    font-size: 16px;
  }

  .result-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 16px;
    padding-bottom: 56px;
  }

  .filter-group {
    margin-bottom: 21px;
  }

  .filter-group h2 {
    height: 49px;
    padding: 0 20px;
    font-size: 18px;
    line-height: 49px;
  }

  .filter-group h2 button {
    right: 10px;
    width: 32px;
    height: 49px;
  }

  .filter-group h2 button span {
    width: 10px;
    height: 10px;
    margin-top: 7px;
  }

  .filter-group label {
    height: 44px;
    padding: 0 16px;
    font-size: 15px;
  }

  .fake-check {
    width: 13px;
    height: 13px;
    margin-right: 13px;
  }

  .filter-group label input:checked + .fake-check::after {
    left: 3px;
    top: 1px;
    width: 4px;
    height: 8px;
  }

  .filter-group label input:indeterminate + .fake-check::after {
    left: 3px;
    top: 3px;
    width: 7px;
    height: 7px;
  }

  .result-meta {
    min-height: 49px;
    padding: 0 20px;
    font-size: 15px;
  }

  .result-query {
    gap: 14px;
  }

  .history-link {
    height: 28px;
    padding: 0 10px;
    font-size: 13px;
  }

  .result-sort {
    gap: 20px;
    height: 39px;
    padding: 0 20px;
    font-size: 15px;
  }

  .result-sort button {
    font-size: 15px;
  }

  .result-item {
    min-height: 296px;
    padding: 36px 20px 28px;
  }

  .result-item__actions {
    top: 20px;
    right: 20px;
    gap: 21px;
  }

  .result-item__actions button {
    gap: 7px;
    font-size: 15px;
  }

  .result-item__actions button span {
    width: 15px;
    height: 14px;
  }

  .result-item__actions .action-icon {
    width: 19px;
    height: 18px;
  }

  .favorite span::before {
    top: -7px;
    font-size: 21px;
  }

  .share span::before {
    width: 11px;
    height: 11px;
  }

  .share span::after {
    top: -8px;
    font-size: 16px;
  }

  .result-item h2 {
    max-width: calc(100% - 210px);
    margin-bottom: 13px;
    font-size: 22px;
  }

  .result-item h2 small {
    margin-left: 7px;
    padding: 2px 6px;
    font-size: 12px;
    vertical-align: 3px;
  }

  .result-item__body {
    gap: 20px;
  }

  .result-cover {
    flex-basis: 140px;
    width: 140px;
    height: 191px;
  }

  .play-icon {
    width: 38px;
    height: 38px;
  }

  .play-icon::after {
    left: 15px;
    top: 11px;
    border-left-width: 12px;
    border-top-width: 8px;
    border-bottom-width: 8px;
  }

  .result-details {
    font-size: 15px;
    line-height: 1.45;
  }

  .detail-grid {
    column-gap: 17px;
    row-gap: 10px;
  }

  .result-summary {
    margin-top: 10px;
    line-height: 1.55;
  }

  .result-pagination {
    gap: 10px;
    min-height: 83px;
    font-size: 15px;
  }

  .result-pagination button {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    font-size: 15px;
  }

  .result-pagination input {
    width: 40px;
    height: 34px;
  }

  .search-result-page .site-footer {
    padding: 66px 0 35px;
  }

  .search-result-page .site-footer .wrap {
    width: min(1440px, calc(100% - 56px));
  }

  .search-result-page .footer-grid {
    grid-template-columns: 420px 390px 550px;
    gap: 50px;
  }

  .search-result-page .footer-links {
    gap: 88px;
  }

  .search-result-page .footer-links h3 {
    font-size: 20px;
  }

  .search-result-page .footer-links a {
    margin: 17px 0;
    font-size: 16px;
  }

  .search-result-page .footer-logo .top-logo {
    width: 82px;
  }

  .search-result-page .footer-logo .bottom-logo {
    width: 238px;
  }

  .search-result-page .qrs {
    gap: 25px;
    font-size: 15px;
  }

  .search-result-page .qrs img {
    width: 145px;
    height: 145px;
    margin-bottom: 12px;
  }

  .search-result-page .copyright {
    margin-top: 49px;
    padding-top: 28px;
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  .filter-sidebar {
    grid-template-columns: 1fr;
  }

  .filter-group:not(:first-child) label:nth-of-type(n + 4) {
    display: none;
  }

  .filter-group.is-collapsed label {
    display: none;
  }

  .result-pagination .total,
  .result-pagination label {
    display: none;
  }
}
