/* V1 source component transplanted into V2. The current V2 query component remains intact. */
body.panda-app .discover-v2-intro {
  margin: 0 0 12px;
  padding: 0;
}

body.panda-app .discover-v2-intro > .discover-v1-original-hero {
  position: relative;
  display: block;
  width: 100%;
  height: 236px;
  min-height: 236px;
  overflow: visible;
}

body.panda-app .discover-v2-intro > .discover-v1-original-hero::after {
  content: none;
}

body.panda-app .discover-v2-intro > .discover-v1-original-hero > .discover-v1-hero-copy {
  position: absolute;
  z-index: 6;
  display: block;
  top: 108px;
  left: 27px;
  width: 182px;
  max-width: 182px;
  padding: 0;
}

body.panda-app .discover-v1-hello {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #17141b;
  font-size: 21px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

body.panda-app .discover-v1-hello-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.panda-app .discover-v1-hello-wave {
  display: inline-block;
  flex: 0 0 auto;
  transform: translateY(1px);
  font-size: 18px;
}

body.panda-app .discover-v1-hero-copy > p {
  display: block;
  width: max-content;
  max-width: none;
  margin: 15px 0 0;
  color: #17141b;
  font-size: 14px;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

body.panda-app .discover-v1-hero-prompts {
  display: block;
  width: 172px;
  min-height: 26px;
  margin-top: 10px;
  margin-left: 0;
}

body.panda-app .discover-v1-hero-prompts .discover-v2-guide {
  position: relative;
  z-index: 0;
  display: inline-flex;
  width: 100%;
  min-height: 26px;
  align-items: center;
  margin: 0;
  padding: 0 0 4px;
  appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #e6a000;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.15;
  font-weight: 900;
  text-align: left;
  white-space: nowrap;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72), 0 6px 16px rgba(230, 160, 0, 0.14);
  transform: translateX(0);
  opacity: 1;
  animation: none;
  cursor: pointer;
}

body.panda-app .discover-v1-hero-prompts .discover-v2-guide::after {
  position: absolute;
  z-index: -1;
  right: 1px;
  bottom: 2px;
  left: -4px;
  height: 10px;
  content: "";
  border-radius: 999px 68% 999px 74%;
  background:
    linear-gradient(90deg, rgba(255, 194, 20, 0.14) 0%, rgba(255, 194, 20, 0.5) 42%, rgba(255, 228, 132, 0.2) 100%),
    repeating-linear-gradient(-5deg, rgba(255, 199, 33, 0.35) 0 7px, rgba(255, 232, 146, 0.2) 7px 13px);
  background-size: 220% 100%, 28px 100%;
  transform: rotate(-1.2deg) skewX(-8deg);
  opacity: 0.95;
  animation: discover-v1-original-marker 3.6s ease-in-out infinite;
}

body.panda-app .discover-v1-hero-prompts .discover-v2-guide.is-leaving {
  animation: discover-v1-original-fade-out 0.76s ease-in-out forwards;
}

body.panda-app .discover-v1-hero-prompts .discover-v2-guide.is-entering {
  animation: discover-v1-original-fade-in 0.98s ease-in-out both;
}

body.panda-app .discover-v1-curve-lines {
  position: absolute;
  z-index: 1;
  top: 161px;
  left: 0;
  width: 100%;
  height: 120px;
  overflow: visible;
  pointer-events: none;
}

body.panda-app .discover-v1-curve-fade {
  fill: url("#discover-v1-curve-fade");
}

body.panda-app .discover-v1-curve-line {
  fill: none;
  stroke: #f0ad00;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.panda-app .discover-v2-intro > .discover-v1-original-hero > .discover-v1-panda-logo {
  position: absolute;
  z-index: 4;
  top: 54px;
  right: auto;
  bottom: auto;
  left: 152px;
  width: 244px;
  height: 205px;
  object-fit: cover;
  object-position: 55% 14%;
  filter: none;
  mix-blend-mode: multiply;
  pointer-events: none;
}

body.panda-app .discover-v1-panda-shadow {
  position: absolute;
  z-index: 3;
  top: 231px;
  left: 198px;
  width: 142px;
  height: 29px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 30% 48%, rgba(0, 0, 0, 0.34) 0 17%, rgba(0, 0, 0, 0.2) 34%, transparent 67%),
    radial-gradient(ellipse at 73% 58%, rgba(0, 0, 0, 0.2) 0 15%, rgba(0, 0, 0, 0.12) 39%, transparent 74%);
  filter: blur(7px);
  opacity: 0.9;
  pointer-events: none;
}

/* Keep the newest V2 search/filter bubble, while preserving V1 overlap order. */
body.panda-app .discover-v2-query-row {
  z-index: auto;
  margin: 0 var(--pc-inset);
}

body.panda-app .discover-v2-search {
  z-index: 2;
}

body.panda-app .discover-v2-filter-trigger {
  position: relative;
  z-index: 5;
}

body.panda-app .discover-v2-filter-panel,
body.panda-app .discover-v2-common {
  margin-right: var(--pc-inset);
  margin-left: var(--pc-inset);
}

@keyframes discover-v1-original-marker {
  from { background-position: 0% 50%, 0 0; }
  to { background-position: 100% 50%, 28px 0; }
}

@keyframes discover-v1-original-fade-out {
  from { opacity: 1; transform: translateX(0); filter: blur(0); }
  to { opacity: 0; transform: translateX(-4px); filter: blur(1px); }
}

@keyframes discover-v1-original-fade-in {
  from { opacity: 0; transform: translateX(4px); filter: blur(1px); }
  to { opacity: 1; transform: translateX(0); filter: blur(0); }
}

@media (max-width: 400px) {
  body.panda-app .discover-v2-intro > .discover-v1-original-hero > .discover-v1-panda-logo {
    left: 142px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.panda-app .discover-v1-hero-prompts .discover-v2-guide,
  body.panda-app .discover-v1-hero-prompts .discover-v2-guide::after {
    animation: none;
  }
}
