
.live-preview-title-block {
  max-width: 35rem;
  margin: 0 auto 2rem;
}

.live-preview-title-block h1 {
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.55rem;
}

.live-preview-title-block p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

.live-search-engines {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  font-size: 0.875rem;
  user-select: none;
}

.home-live-preview .search-engine-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  border-bottom-color: transparent;
  background-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  cursor: default;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  transition: all 0.2s ease;
}

.home-live-preview .search-engine-option.active {
  background-color: #fff;
  color: #1d4ed8;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

.home-live-preview.has-wallpaper .search-engine-option {
  background-color: rgba(255, 255, 255, 0.7);
  color: #374151;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.home-live-preview.has-wallpaper .search-engine-option.active {
  background-color: #2563eb;
  color: #fff;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.live-search-box {
  position: relative;
  width: min(100%, 36rem);
  margin: 0 auto;
  text-align: left;
}

.home-live-preview .search-input-target {
  display: block;
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  height: 3.25rem;
  padding: 0.875rem 1rem 0.875rem 3rem !important;
  border: 0;
  border-radius: 1rem !important;
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: default;
  font-size: 1rem;
  line-height: 1.5rem;
  outline: none;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.1);
}

.home-live-preview .search-input-target::placeholder {
  color: #bfdbfe;
  opacity: 1;
}

.home-live-preview .live-search-icon {
  position: absolute;
  top: 0.875rem;
  left: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  color: #bfdbfe;
  pointer-events: none;
  z-index: 1;
}

.home-live-preview.has-wallpaper .search-input-target {
  border: 1px solid #e5e7eb;
  background-color: rgba(255, 255, 255, 0.9);
  color: #1f2937;
  backdrop-filter: blur(4px);
}

.home-live-preview.has-wallpaper .search-input-target::placeholder {
  color: #9ca3af;
}

.home-live-preview.has-wallpaper .live-search-icon {
  color: #9ca3af;
}

.live-category-nav {
  width: min(100%, 46rem);
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-self: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.75rem;
  max-height: 3.75rem;
  overflow: visible;
  box-sizing: border-box;
  margin: 0 auto;
}

.home-live-preview.category-below-search .live-category-nav {
  margin-top: 2rem;
}

.home-live-preview.category-above-search .live-category-nav {
  margin-bottom: 2rem;
}

.home-live-preview.category-top .live-category-nav {
  margin-bottom: 1.5rem;
}

.live-category-nav.multi-line {
  justify-content: flex-start;
  flex-wrap: wrap;
  max-height: none;
  overflow: visible;
}

.live-category-nav.single-line {
  flex-wrap: nowrap;
  overflow: visible;
}

.live-category-item {
  position: relative;
  display: inline-block;
  max-width: 100%;
  text-align: left;
}

.live-category-nav .live-category-button,
.live-category-nav .live-category-more {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  max-width: 100%;
  min-width: min(calc(4em + 2rem), 100%);
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  backdrop-filter: blur(4px);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.live-category-arrow {
  width: 0.75rem;
  height: 0.75rem;
  flex: 0 0 0.75rem;
  opacity: 0.72;
}

.live-category-nav .live-category-more {
  flex: 0 0 2.5rem;
  width: 2.5rem;
  min-width: 2.5rem;
  padding: 0.5rem;
  cursor: pointer;
}

.live-category-nav .live-category-button.active,
.live-category-nav .live-category-more.active {
  background: #fff;
  color: #1d4ed8;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

.live-category-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 60;
  min-width: 9rem;
  padding: 0.25rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px) scale(0.98);
  transform-origin: top left;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  visibility: hidden;
}

.live-category-dropdown .live-category-dropdown {
  top: 0;
  left: calc(100% + 0.2rem);
  transform: translateX(-4px);
}

.live-category-dropdown::after {
  content: '';
  position: absolute;
  top: -0.5rem;
  left: 0;
  width: 100%;
  height: 0.5rem;
  background: transparent;
}

.live-category-dropdown .live-category-dropdown::after {
  top: 0;
  left: -0.25rem;
  width: 0.25rem;
  height: 100%;
}

.live-category-item:not(.live-category-more-wrapper):hover > .live-category-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.live-category-more-wrapper.is-open > .live-category-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.live-category-dropdown .live-category-item {
  display: block;
  width: 100%;
}

.live-category-dropdown .live-category-button {
  width: 100%;
  height: auto;
  min-width: 0;
  justify-content: space-between;
  border-radius: 0.25rem;
  background: transparent;
  color: #4b5563;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0.5rem 0.75rem;
}

.live-category-dropdown .live-category-button.active {
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: none;
}

.home-live-preview.has-wallpaper .live-category-nav > .live-category-item > .live-category-button,
.home-live-preview.has-wallpaper .live-category-nav > .live-category-more-wrapper > .live-category-more {
  background: rgba(255, 255, 255, 0.7);
  color: #374151;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.home-live-preview.has-wallpaper .live-category-nav > .live-category-item > .live-category-button.active,
.home-live-preview.has-wallpaper .live-category-nav > .live-category-more-wrapper > .live-category-more.active {
  background: #2563eb;
  color: #fff;
}

.home-live-preview.has-wallpaper .live-category-dropdown .live-category-button {
  color: #374151;
}

.home-live-preview.has-wallpaper .live-category-dropdown .live-category-button.active {
  background: #2563eb;
  color: #fff;
}

.live-preview-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.35rem;
}

