.sg-quality {
  display: none !important;
}

.search-suggest {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  left: auto;
  transform: translateY(-4px);
  z-index: 999999;
  width: max(100%, 440px);
  max-width: 520px;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  overflow-x: hidden;
  font-size: 13px !important;
  line-height: 1.35 !important;
  background: rgba(8, 9, 14, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.search-suggest.show {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

.sg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 6px;
}

.sg-header-title {
  font-size: 11px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: rgba(255, 255, 255, 0.5);
}

.sg-header-count {
  font-size: 11px !important;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 9px;
  border-radius: 999px;
  border: none;
}

.sg-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background .16s ease, border-color .16s ease;
  cursor: pointer;
  position: relative;
  border: 1px solid transparent;
  background: transparent;
  margin-bottom: 2px;
}

.sg-item:last-of-type {
  margin-bottom: 0;
}

.sg-item:hover,
.sg-item.hl {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
  transform: none;
}

.sg-poster {
  flex: none;
  width: 46px;
  height: 66px;
  border-radius: 8px;
  background: #11131c center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #636372;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .14);
  transition: transform .2s ease, box-shadow .2s ease;
}

.sg-item:hover .sg-poster,
.sg-item.hl .sg-poster {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .7);
}

.sg-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sg-title {
  font-size: 14px !important;
  font-weight: 600;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: .1px;
  line-height: 1.3;
}

.sg-match {
  background: transparent;
  color: #ffffff;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.sg-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}

.sg-category,
.sg-quality,
.sg-lang {
  flex: none;
  font-size: 10.5px !important;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.2 !important;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.sg-category {
  background: rgba(229, 9, 20, 0.18);
  color: #fda4af;
}

.sg-category.is-saga,
.sg-category.is-serie,
.sg-category.is-anime {
  background: rgba(229, 9, 20, 0.18);
  color: #fda4af;
}

.sg-detail {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px !important;
  color: #8e92a4;
  font-weight: 500;
}

.sg-quality {
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.78);
}

.sg-quality.q-4k {
  border-color: rgba(255, 215, 106, 0.45);
  color: #ffd76a;
  box-shadow: none;
  background: rgba(0, 0, 0, 0.78);
}

.sg-quality.q-1080 {
  border-color: rgba(79, 195, 247, 0.45);
  color: #4fc3f7;
  box-shadow: none;
  background: rgba(0, 0, 0, 0.78);
}

.sg-quality.q-720 {
  border-color: rgba(255, 255, 255, 0.18);
  color: #cbd5e1;
  background: rgba(0, 0, 0, 0.78);
}

.sg-quality.q-480 {
  border-color: rgba(255, 255, 255, 0.14);
  color: #94a3b8;
  background: rgba(0, 0, 0, 0.78);
}

.sg-lang {
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
}

.sg-lang.cam {
  background: rgba(229, 9, 20, 0.22);
  color: #ff858d;
}

.sg-arrow {
  flex: none;
  width: 15px;
  height: 15px;
  color: rgba(255, 255, 255, 0.35);
  opacity: 0.6;
  transform: translateX(0);
  transition: opacity .18s ease, transform .18s ease, color .18s ease;
}

.sg-item:hover .sg-arrow,
.sg-item.hl .sg-arrow {
  opacity: 1;
  transform: translateX(2px);
  color: #ffffff;
}

.sg-more {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 11px;
  font-size: 12.5px !important;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  background: rgba(18, 20, 30, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.11);
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.sg-more span {
  font-size: 12.5px !important;
  line-height: 1.3 !important;
}

.sg-more:hover {
  background: rgba(32, 35, 50, 0.98);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transform: none;
}

.sg-more svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: rgba(255, 255, 255, 0.65);
  transition: transform .18s ease, color .18s ease;
}

.sg-more:hover svg {
  color: #ffffff;
  transform: translateX(2px);
}

.nav-search-clear,
.nav-search .nav-search-clear,
.topnav .nav-search .nav-search-clear,
.topnav #searchWrap .nav-search-clear,
.topnav .nav-search.has-val .nav-search-clear,
.topnav #searchWrap.has-val .nav-search-clear {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  opacity: 0 !important;
}

/* État vide */
.sg-empty {
  padding: 24px 18px 18px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.sg-empty-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0aec0;
  margin-bottom: 6px;
}

.sg-empty-icon svg {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  flex: none !important;
  display: block !important;
}

.sg-empty strong,
.sg-empty-title {
  font-weight: 800;
  font-size: 14.5px;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.sg-empty-desc {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.45;
  max-width: 320px;
}

.sg-request {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 6px 8px 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 750;
  text-decoration: none !important;
  color: #ffffff !important;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.25), rgba(255, 59, 74, 0.18));
  border: 1px solid rgba(229, 9, 20, 0.45);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.2);
  transition: all .2s cubic-bezier(.16, 1, .3, 1);
  box-sizing: border-box;
}

.sg-request svg {
  width: 17px !important;
  height: 17px !important;
  max-width: 17px !important;
  max-height: 17px !important;
  flex: none !important;
  display: block !important;
  color: #ff5263;
  transition: transform .2s ease;
}

.sg-request .sg-req-arrow {
  width: 15px !important;
  height: 15px !important;
  margin-left: auto;
  opacity: 0.7;
  color: #ffffff;
}

.sg-request:hover {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.42), rgba(255, 59, 74, 0.3));
  border-color: rgba(229, 9, 20, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(229, 9, 20, 0.35);
  color: #ffffff !important;
}

.sg-request:hover .sg-req-arrow {
  opacity: 1;
  transform: translateX(3px);
}

.search-suggest::-webkit-scrollbar {
  width: 6px;
}

.search-suggest::-webkit-scrollbar-track {
  background: transparent;
}

.search-suggest::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .15);
  border-radius: 3px;
}

.search-suggest::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, .25);
}

.mobile-search-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999999 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 12px 14px !important;
  box-sizing: border-box !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease, visibility 0.2s ease !important;
}

.mobile-search-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.mobile-search-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(6, 7, 12, 0.82) !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
  z-index: 1 !important;
}

.mobile-search-panel {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  max-width: 580px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin-top: env(safe-area-inset-top, 0px) !important;
}

.mobile-search-bar {
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  border-radius: 999px !important;
  background: rgba(18, 21, 32, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 8px 0 16px !important;
  gap: 10px !important;
  box-sizing: border-box !important;
}

.mobile-search-btn-icon {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 20px !important;
  height: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  flex: 0 0 20px !important;
}

.mobile-search-btn-icon svg {
  width: 18px !important;
  height: 18px !important;
  stroke: #ffffff !important;
  stroke-width: 2.2 !important;
  display: block !important;
}

.mobile-search-bar input {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #ffffff !important;
  padding: 0 !important;
}

.mobile-search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 13.5px !important;
}

.mobile-search-close-btn {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 34px !important;
  transition: background 0.18s ease, transform 0.18s ease !important;
}

.mobile-search-close-btn:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  transform: scale(1.05) !important;
}

.mobile-search-close-btn svg {
  width: 14px !important;
  height: 14px !important;
  stroke: #ffffff !important;
  stroke-width: 2.2 !important;
  display: block !important;
}

.mobile-search-results.search-suggest {
  position: static !important;
  transform: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  max-height: calc(100vh - 90px - env(safe-area-inset-top, 0px)) !important;
  margin: 0 !important;
  padding: 10px !important;
  border-radius: 16px !important;
  background: rgba(8, 9, 14, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.92) !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  box-sizing: border-box !important;
  display: none !important;
}

.mobile-search-results.search-suggest.show {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

@media (max-width: 1240px) {

  .search-suggest,
  .nav-search .search-suggest,
  .search-wrap .search-suggest {
    position: fixed !important;
    left: 10px !important;
    right: 10px !important;
    top: calc(56px + env(safe-area-inset-top, 0px)) !important;
    transform: none !important;
    width: auto !important;
    max-width: calc(100vw - 20px) !important;
    min-width: 0 !important;
    max-height: min(76vh, 540px) !important;
    padding: 10px !important;
    border-radius: 16px !important;
    z-index: 9999999 !important;
    background: rgba(8, 9, 14, 0.96) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.92), 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
  }

  .search-suggest.show {
    transform: none !important;
  }

  .search-suggest .sg-item,
  .nav-search .sg-item,
  .search-wrap .sg-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 7px 9px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 12px !important;
    min-width: 0 !important;
    margin-bottom: 2px !important;
    background: transparent !important;
    border: 1px solid transparent !important;
  }

  .search-suggest .sg-poster,
  .nav-search .sg-poster,
  .search-wrap .sg-poster {
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 56px !important;
    border-radius: 6px !important;
  }

  .search-suggest .sg-info,
  .nav-search .sg-info,
  .search-wrap .sg-info {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .search-suggest .sg-title,
  .nav-search .sg-title,
  .search-wrap .sg-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #fff !important;
    line-height: 1.3 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    width: 100% !important;
    margin-bottom: 3px !important;
  }

  .search-suggest .sg-sub,
  .nav-search .sg-sub,
  .search-wrap .sg-sub {
    font-size: 10.5px !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    flex-wrap: wrap !important;
  }

  .search-suggest .sg-category,
  .nav-search .sg-category,
  .search-wrap .sg-category,
  .search-suggest .sg-quality,
  .nav-search .sg-quality,
  .search-wrap .sg-quality,
  .search-suggest .sg-lang,
  .nav-search .sg-lang,
  .search-wrap .sg-lang {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    font-size: 9px !important;
    padding: 2px 5px !important;
    border-radius: 4px !important;
    background: rgba(0, 0, 0, 0.78) !important;
  }

  .search-suggest .sg-detail,
  .nav-search .sg-detail,
  .search-wrap .sg-detail {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: #8e92a4 !important;
  }

  .search-suggest .sg-arrow {
    display: none !important;
  }
}