.ddtv-search-shell {
  --ddtv-shell-bg: linear-gradient(180deg, rgba(16, 29, 48, 0.88), rgba(11, 21, 36, 0.92));
  --ddtv-panel-bg: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.03));
  --ddtv-field-bg: linear-gradient(180deg, rgba(8, 18, 32, 0.96), rgba(11, 23, 39, 0.94));
  --ddtv-field-edge: rgba(255,255,255,0.08);
  --ddtv-line: rgba(255,255,255,0.08);
  --ddtv-line-strong: rgba(255,255,255,0.14);
  --ddtv-text: #f5f7fb;
  --ddtv-muted: rgba(245,247,251,0.72);
  --ddtv-placeholder: rgba(245,247,251,0.42);
  --ddtv-brand: #dfeaff;
  --ddtv-chip-bg: rgba(255,255,255,0.055);
  --ddtv-chip-bg-active: rgba(255,255,255,0.12);
  --ddtv-radius-xl: 30px;
  --ddtv-radius-lg: 24px;
  --ddtv-radius-md: 18px;
  --ddtv-radius-full: 999px;
  --ddtv-shadow: 0 24px 60px rgba(0,0,0,.22);
  position: relative;
  width: 100%;
}

.ddtv-search-card {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: var(--ddtv-radius-xl);
  background: var(--ddtv-panel-bg);
  border: 1px solid var(--ddtv-line);
  backdrop-filter: blur(18px);
  box-shadow: var(--ddtv-shadow);
}

.ddtv-search-box-wrap {
  position: relative;
}

.ddtv-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 7px;
  background: var(--ddtv-shell-bg);
  border: 1px solid var(--ddtv-line);
  border-radius: var(--ddtv-radius-full);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.ddtv-search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  padding: 0 18px;
  background: var(--ddtv-field-bg);
  border: 1px solid var(--ddtv-field-edge);
  border-radius: calc(var(--ddtv-radius-full) - 8px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.025),
    inset 0 -1px 0 rgba(0,0,0,0.18);
}

.ddtv-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--ddtv-placeholder);
}

.ddtv-search-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.ddtv-search-input,
.ddtv-search-input[type="search"] {
  width: 100%;
  min-width: 0;
  height: 48px;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  outline: none !important;
  color: var(--ddtv-text) !important;
  font: inherit !important;
  font-size: 1rem !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0 !important;
}

.ddtv-search-input::-webkit-search-decoration,
.ddtv-search-input::-webkit-search-cancel-button,
.ddtv-search-input::-webkit-search-results-button,
.ddtv-search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

.ddtv-search-input::placeholder {
  color: var(--ddtv-placeholder) !important;
}

.ddtv-search-input:focus {
  box-shadow: none !important;
}

.ddtv-search-box:focus-within {
  border-color: var(--ddtv-line-strong);
}

.ddtv-search-field:focus-within {
  border-color: rgba(223,234,255,0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 0 0 1px rgba(223,234,255,0.06);
}

.ddtv-search-submit {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: calc(var(--ddtv-radius-full) - 8px);
  color: #08111f;
  background: linear-gradient(180deg, #fafdff, #e3ecff);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
}

.ddtv-search-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.ddtv-filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ddtv-chip {
  min-height: 56px;
  padding: 0 18px;
  border-radius: var(--ddtv-radius-full);
  background: var(--ddtv-chip-bg);
  border: 1px solid var(--ddtv-line);
  color: var(--ddtv-muted);
  cursor: pointer;
  font: inherit;
  transition: .18s ease;
}

.ddtv-chip:hover,
.ddtv-chip.is-active {
  color: var(--ddtv-text);
  background: var(--ddtv-chip-bg-active);
  border-color: var(--ddtv-line-strong);
}

.ddtv-search-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  z-index: 30;
  border: 1px solid var(--ddtv-line);
  background: rgba(7,17,31,.96);
  border-radius: 22px;
  box-shadow: var(--ddtv-shadow);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.ddtv-search-suggestions a {
  display: block;
  padding: 13px 16px;
  text-decoration: none;
  color: var(--ddtv-text);
  border-top: 1px solid rgba(255,255,255,.06);
}

.ddtv-search-suggestions a:first-child {
  border-top: 0;
}

.ddtv-search-suggestions a:hover {
  background: rgba(255,255,255,.06);
}

.ddtv-suggestion-type {
  display: block;
  margin-top: 4px;
  font-size: .84rem;
  color: var(--ddtv-muted);
}

.ddtv-search-empty {
  padding: 14px 16px;
  color: var(--ddtv-muted);
}

@media (max-width: 920px) {
  .ddtv-search-card {
    grid-template-columns: 1fr;
  }

  .ddtv-filter-row {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .ddtv-search-box {
    flex-wrap: wrap;
    border-radius: 26px;
  }

  .ddtv-search-field,
  .ddtv-search-submit {
    width: 100%;
  }

  .ddtv-chip {
    min-height: 48px;
  }
}
