.cc-search {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 18px;
  box-sizing: border-box;
  position: relative;
}

.cc-search__head {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.cc-search__title {
  margin: 0;
  color: #111;
  font-size: 34px;
  line-height: 1.08;
}

.cc-search__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.cc-search__input {
  min-width: 0;
  width: 100%;
  border: 2px solid rgba(68,133,189,.28);
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 18px;
  line-height: 1.2;
  outline: none;
}

.cc-search__input:focus {
  border-color: #4485bd;
  box-shadow: 0 0 0 3px rgba(68,133,189,.18);
}

.cc-search__button,
.cc-search__filter,
.cc-search__more {
  border: 1px solid #4485bd;
  border-radius: 6px;
  background: #4485bd;
  color: #fff;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.cc-search__button:hover,
.cc-search__button:focus,
.cc-search__more:hover,
.cc-search__more:focus {
  background: #111;
  border-color: #111;
}

.cc-search__filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cc-search__filter {
  background: #fff;
  color: #4485bd;
  padding: 9px 12px;
}

.cc-search__filter:hover,
.cc-search__filter:focus,
.cc-search__filter.is-active {
  background: #4485bd;
  color: #fff;
}

.cc-search__status {
  min-height: 22px;
  margin-bottom: 16px;
  color: #555;
  font-size: 15px;
}

.cc-search__results {
  display: grid;
  gap: 14px;
  position: relative;
  min-height: 120px;
}

.cc-search__results::before {
  content: "";
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.82);
  z-index: 20;
}

.cc-search__results::after {
  content: "";
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border: 5px solid #ddd;
  border-top-color: #4485bd;
  border-radius: 50%;
  z-index: 10050;
  animation: cc-search-spin .8s linear infinite;
}

.cc-search.is-loading .cc-search__results::before,
.cc-search.is-loading .cc-search__results::after {
  display: block;
}

@keyframes cc-search-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.cc-search-result {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.cc-search-result__media {
  display: block;
  width: 100%;
  height: 154px;
  overflow: hidden;
  background: #eef3f7;
  position: relative;
}

.cc-search-result__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 100% !important;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}

.cc-search-result:hover .cc-search-result__media img {
  transform: scale(1.08);
}

.cc-search-result__body {
  min-width: 0;
  overflow: hidden;
  display: grid;
  align-content: center;
  gap: 7px;
}

.cc-search-result__kicker {
  color: #4485bd;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.cc-search-result__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
}

.cc-search-result__title a {
  color: #111;
  text-decoration: none;
  transition: color .18s ease;
}

.cc-search-result__title a:hover,
.cc-search-result__title a:focus {
  color: #4485bd;
}

.cc-search-result__excerpt {
  margin: 0;
  color: #334155;
  font-family: Merriweather, serif;
  font-size: 14px;
  line-height: 1.55;
}

.cc-search mark {
  background: rgba(68,133,189,.18);
  color: inherit;
  padding: 0 .1em;
}

.cc-search__more {
  display: block;
  margin: 20px auto 0;
}

@media (max-width: 680px) {
  .cc-search__form,
  .cc-search-result {
    grid-template-columns: 1fr;
  }

  .cc-search__button {
    width: 100%;
  }

  .cc-search-result__media {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}
