body.cs-public-encros .cs-encros-search {
  position: relative;
  overflow: visible;
}

body.cs-public-encros .cs-encros-live-search-enhanced {
  position: absolute;
  z-index: 180;
  top: calc(100% + 12px);
  left: 50%;
  width: min(920px, calc(100vw - 32px));
  max-height: min(620px, 72vh);
  padding: 0;
  overflow: auto;
  transform: translateX(-50%);
  border: 1px solid #cfe5aa;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(39, 97, 12, 0.24);
}

body.cs-public-encros .cs-encros-live-search-enhanced[hidden] {
  display: none;
}

body.cs-public-encros .cs-encros-live-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #e6f2d4;
  background: #f8fff0;
}

body.cs-public-encros .cs-encros-live-header strong {
  color: #246000;
  font-size: 1.05rem;
  font-weight: 1000;
}

body.cs-public-encros .cs-encros-live-header span {
  color: #53665c;
  font-size: 0.9rem;
  font-weight: 800;
}

body.cs-public-encros .cs-encros-live-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 18px;
  color: #24401a;
  font-size: 1rem;
  font-weight: 900;
}

body.cs-public-encros .cs-encros-live-spinner {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: 3px solid #dcf3c8;
  border-top-color: #76b900;
  border-radius: 999px;
  animation: cs-encros-live-spin 0.75s linear infinite;
}

@keyframes cs-encros-live-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.cs-public-encros .cs-encros-live-spinner {
    animation: none;
  }
}

body.cs-public-encros .cs-encros-live-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid #e6f2d4;
}

body.cs-public-encros .cs-encros-live-card {
  display: grid;
  grid-template-rows: 118px 1fr;
  min-width: 0;
  min-height: 300px;
  padding: 14px;
  border-right: 1px solid #edf5e5;
  border-bottom: 1px solid #edf5e5;
  color: #172414;
  text-align: center;
  text-decoration: none;
  background: #fff;
}

body.cs-public-encros .cs-encros-live-card:hover,
body.cs-public-encros .cs-encros-live-card:focus-visible {
  background: #fbfff5;
  outline: 2px solid #76b900;
  outline-offset: -2px;
}

body.cs-public-encros .cs-encros-live-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
}

body.cs-public-encros .cs-encros-live-media img {
  width: 100%;
  max-width: 136px;
  height: 112px;
  object-fit: contain;
}

body.cs-public-encros .cs-encros-live-card-body {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

body.cs-public-encros .cs-encros-live-match,
body.cs-public-encros .cs-encros-live-content-type,
body.cs-public-encros .cs-encros-live-link-type {
  display: inline-flex;
  justify-self: center;
  width: fit-content;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 1000;
  line-height: 1.15;
}

body.cs-public-encros .cs-encros-live-match--exact {
  background: #dff8bf;
  color: #2d7b00;
}

body.cs-public-encros .cs-encros-live-match--compatible {
  background: #dff7f2;
  color: #006e61;
}

body.cs-public-encros .cs-encros-live-match--approximate {
  background: #fff0cd;
  color: #9a5a00;
}

body.cs-public-encros .cs-encros-live-match--suggestion {
  background: #edf2f3;
  color: #53665c;
}

body.cs-public-encros .cs-encros-live-name {
  color: #111b0e;
  font-size: 0.98rem;
  font-weight: 1000;
  line-height: 1.18;
}

body.cs-public-encros .cs-encros-live-fact,
body.cs-public-encros .cs-encros-live-desc {
  color: #53665c;
  font-size: 0.8rem;
  line-height: 1.28;
}

body.cs-public-encros .cs-encros-live-desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

body.cs-public-encros .cs-encros-live-price {
  color: #ff7a1a;
  font-size: 1.05rem;
  font-weight: 1000;
}

body.cs-public-encros .cs-encros-live-secondary {
  display: grid;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid #e6f2d4;
}

body.cs-public-encros .cs-encros-live-heading {
  color: #246000;
  font-size: 0.82rem;
  font-weight: 1000;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.cs-public-encros .cs-encros-live-secondary-grid,
body.cs-public-encros .cs-encros-live-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.cs-public-encros .cs-encros-live-link-card,
body.cs-public-encros .cs-encros-live-content-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dfeec5;
  border-radius: 16px;
  background: #fff;
  color: #17330f;
  text-decoration: none;
}

body.cs-public-encros .cs-encros-live-link-card:hover,
body.cs-public-encros .cs-encros-live-link-card:focus-visible,
body.cs-public-encros .cs-encros-live-content-card:hover,
body.cs-public-encros .cs-encros-live-content-card:focus-visible {
  border-color: #76b900;
  background: #f9fff2;
}

body.cs-public-encros .cs-encros-live-link-card strong,
body.cs-public-encros .cs-encros-live-content-card strong {
  font-size: 0.95rem;
  font-weight: 1000;
  line-height: 1.22;
}

body.cs-public-encros .cs-encros-live-link-summary {
  display: -webkit-box;
  overflow: hidden;
  color: #53665c;
  font-size: 0.82rem;
  line-height: 1.32;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

body.cs-public-encros .cs-encros-live-content-card {
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
}

body.cs-public-encros .cs-encros-live-content-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 58px;
  overflow: hidden;
  border-radius: 12px;
  background: #f1f7ef;
}

body.cs-public-encros .cs-encros-live-content-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.cs-public-encros .cs-encros-live-play {
  position: absolute;
  inset: auto auto 6px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ff7a1a;
  color: #fff;
  font-size: 0.72rem;
}

body.cs-public-encros .cs-encros-live-content-body {
  display: grid;
  gap: 5px;
  min-width: 0;
}

body.cs-public-encros .cs-encros-live-content-type,
body.cs-public-encros .cs-encros-live-link-type {
  justify-self: start;
  background: #e8f8d9;
  color: #246000;
}

body.cs-public-encros .cs-encros-live-content-type--video {
  background: #fff0cd;
  color: #9a5a00;
}

body.cs-public-encros .cs-search-page-encros .cs-search-content-item {
  display: grid;
  grid-template-columns: minmax(128px, 180px) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #dfeec5;
  border-radius: 18px;
  background: #fff;
  color: #17330f;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(39, 97, 12, 0.06);
}

body.cs-public-encros .cs-search-page-encros .cs-search-content-item:hover,
body.cs-public-encros .cs-search-page-encros .cs-search-content-item:focus-visible {
  border-color: #76b900;
  background: #fbfff5;
  box-shadow: 0 16px 34px rgba(39, 97, 12, 0.14);
  outline: 0;
}

body.cs-public-encros .cs-search-page-encros .cs-search-content-thumb {
  position: relative;
  display: block;
  width: 100%;
  max-width: 180px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #f1f7ef;
}

body.cs-public-encros .cs-search-page-encros .cs-search-content-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.cs-public-encros .cs-search-page-encros .cs-search-content-item--video .cs-search-content-thumb::after {
  content: "";
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #ff7a1a;
  box-shadow: 0 8px 18px rgba(255, 122, 26, 0.24);
}

body.cs-public-encros .cs-search-page-encros .cs-search-content-item--video .cs-search-content-thumb::before {
  content: "";
  position: absolute;
  left: 24px;
  bottom: 19px;
  z-index: 1;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid #fff;
}

body.cs-public-encros .cs-search-page-encros .cs-search-content-body {
  display: grid;
  gap: 7px;
  min-width: 0;
}

body.cs-public-encros .cs-search-page-encros .cs-search-content-type {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e8f8d9;
  color: #246000;
  font-size: 0.72rem;
  font-weight: 1000;
  line-height: 1.15;
  text-transform: uppercase;
}

body.cs-public-encros .cs-search-page-encros .cs-search-content-type--video {
  background: #fff0cd;
  color: #9a5a00;
}

body.cs-public-encros .cs-search-page-encros .cs-search-content-title {
  color: #17330f;
  font-size: 1.04rem;
  font-weight: 1000;
  line-height: 1.22;
}

body.cs-public-encros .cs-search-page-encros .cs-search-content-summary {
  display: -webkit-box;
  overflow: hidden;
  color: #53665c;
  font-size: 0.9rem;
  line-height: 1.4;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

body.cs-public-encros .cs-encros-live-empty {
  display: grid;
  gap: 6px;
  padding: 18px;
  color: #53665c;
}

body.cs-public-encros .cs-encros-live-empty strong {
  color: #17330f;
  font-size: 1rem;
  font-weight: 1000;
}

body.cs-public-encros .cs-encros-live-all {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #ff7a1a, #ff9c3a);
  color: #fff;
  font-weight: 1000;
  text-decoration: none;
}

body.cs-public-encros .cs-encros-live-all:hover,
body.cs-public-encros .cs-encros-live-all:focus-visible {
  background: #d85900;
}

@media (max-width: 700px) {
  body.cs-public-encros .cs-encros-live-search-enhanced {
    top: calc(100% + 14px);
    left: 50%;
    width: min(96vw, 520px);
    max-height: 74vh;
    border-radius: 20px;
  }

  body.cs-public-encros .cs-encros-live-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  body.cs-public-encros .cs-encros-live-grid,
  body.cs-public-encros .cs-encros-live-secondary-grid,
  body.cs-public-encros .cs-encros-live-content-grid {
    grid-template-columns: 1fr;
  }

  body.cs-public-encros .cs-encros-live-card {
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: none;
    min-height: 0;
    text-align: left;
  }

  body.cs-public-encros .cs-encros-live-media img {
    max-width: 88px;
    height: 86px;
  }

  body.cs-public-encros .cs-encros-live-match {
    justify-self: start;
  }

  body.cs-public-encros .cs-search-page-encros .cs-search-content-item {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  body.cs-public-encros .cs-search-page-encros .cs-search-content-thumb {
    max-width: 96px;
  }

  body.cs-public-encros .cs-search-page-encros .cs-search-content-title {
    font-size: 0.96rem;
  }

  body.cs-public-encros .cs-search-page-encros .cs-search-content-summary {
    font-size: 0.82rem;
    -webkit-line-clamp: 2;
  }
}
