.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}
.search-modal--open {
  display: block;
}
.search-modal-lock {
  overflow: hidden;
}
.search-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 40, 0.55);
}
.search-modal__dialog {
  position: relative;
  max-width: 560px;
  margin: 10vh auto 0;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  max-height: 80vh;
  overflow: auto;
}
.search-modal__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.search-modal__close {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: #f5f2fb;
  cursor: pointer;
  color: #6b6b80;
  transition:
    transform 0.15s ease,
    color 0.15s ease,
    background 0.15s ease;
}
.search-modal__close:hover {
  transform: rotate(90deg);
  color: #9345d8;
  background: #ece4fa;
}
.search-modal__form {
  display: flex;
  flex: 1;
  gap: 8px;
  min-width: 0;
}
.search-modal__input {
  flex: 1;
  height: 44px;
  border: 1px solid #e3e0ec;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 15px;
}
.search-modal__input:focus {
  outline: none;
  border-color: #9345d8;
}
.search-modal__submit {
  width: 48px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: #9345d8;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-modal__loader {
  position: relative;
  height: 3px;
  margin: 0 0 12px;
  border-radius: 3px;
  background: #f1eef8;
  overflow: hidden;
}
.search-modal__loader[hidden] {
  display: none;
}
.search-modal__loader-bar {
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  border-radius: 3px;
  background: #9345d8;
  animation: search-loader-slide 1.05s ease-in-out infinite;
}
@keyframes search-loader-slide {
  0% {
    left: -40%;
  }
  50% {
    left: 30%;
  }
  100% {
    left: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .search-modal__loader-bar {
    animation-duration: 2.4s;
  }
}
.search-modal__heading {
  font-weight: 700;
  margin: 16px 0 8px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #8a869c;
}
.search-modal__more {
  display: block;
  width: 100%;
  margin: 10px 0 4px;
  padding: 11px;
  border: 1px solid #ece9f3;
  border-radius: 10px;
  background: #fff;
  color: #9345d8;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}
.search-modal__more:hover {
  background: #f7f3fd;
  border-color: #d9cef0;
}
.search-modal__more:disabled {
  opacity: 0.6;
  cursor: default;
}
.search-modal__hint,
.search-modal__empty {
  color: #8a869c;
  padding: 14px 0;
  text-align: center;
}
.search-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid #ece9f3;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}
.search-match:hover {
  border-color: #d9cef0;
  background: #faf8fd;
}
.search-match__teams {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.search-match__team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.search-match__logo {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: #f1eef8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-match__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.search-match__logo-fallback {
  font-size: 12px;
  font-weight: 700;
  color: #9345d8;
  line-height: 1;
}
.search-match__team-name {
  font-weight: 600;
  font-size: 14px;
  color: #1d1b29;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-match__info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex: 0 0 auto;
  max-width: 46%;
  text-align: right;
}
.search-match__sport {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  background: #f5f2fb;
  color: #6b4b9c;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}
.search-match__sport-icon {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  object-fit: contain;
}
.search-match__sport-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-match__league {
  font-size: 12px;
  line-height: 1.3;
  color: #8a869c;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-match__datetime {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #6b6b80;
  white-space: nowrap;
}
.search-match__calendar {
  flex: 0 0 auto;
  color: #9345d8;
}
.search-news {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.search-news:hover {
  background: #f7f3fd;
}
.search-news__thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1eef8;
}
.search-news__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.search-news__body {
  min-width: 0;
}
.search-news__title {
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}
.search-news__meta {
  display: flex;
  gap: 10px;
  color: #8a869c;
  font-size: 12px;
}
.search-plaque {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1px solid #e3e0ec;
  border-radius: 10px;
  background: #fff;
  color: #8a869c;
  cursor: text;
  margin: 0 0 12px;
  font-size: 15px;
}
.search-plaque:hover {
  border-color: #9345d8;
}
.search-plaque__icon {
  color: #9345d8;
  display: inline-flex;
}
.footer__match-search {
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-size: 14px;
}
