/* Dedicated Discover page */
.discover-shell{width:min(1120px,calc(100% - 40px));margin:0 auto;padding:58px 0 90px;flex:1}
.discover-page-heading{margin-bottom:26px}
.discover-page-heading h1{font:600 clamp(48px,7vw,76px)/.98 var(--display);letter-spacing:-.075em;margin:12px 0}
.discover-page-heading h1 span{color:#65e6f0}
.discover-page-heading p{margin:0;color:var(--muted);font-size:14px;line-height:1.7}
.discover-search-panel{margin:0;padding:clamp(20px,3vw,32px)}
.discover-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:24px;padding:25px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(120deg,rgba(30,43,72,.65),rgba(13,18,30,.7))}
.discover-intro h2{font:600 23px var(--display);margin:9px 0}
.discover-intro p{max-width:560px;margin:0;color:var(--muted);font-size:12px;line-height:1.7}
.discover-intro .button{flex:0 0 auto}
.discover-page .clips-status{margin-top:20px}
@media(max-width:620px){.discover-shell{width:calc(100% - 28px);padding-top:34px}.discover-intro{align-items:flex-start;flex-direction:column}.discover-intro .button{width:100%}}


/* Search results live as their own page section, never inside the search card.
   This removes clipping and stacking-context collisions with the Watch Clips panel. */
.discover-page .discover-search-panel { position:relative; z-index:1; overflow:visible; }
.discover-page .discover-results-surface {
  position:relative; z-index:2; display:block; width:100%; max-height:min(68vh,620px);
  overflow:auto; margin:14px 0 0; padding:clamp(16px,2.5vw,24px);
  border:1px solid rgba(181,215,164,.25); border-radius:2px;
  background:rgba(7,19,10,.96); box-shadow:0 18px 55px rgba(0,0,0,.34);
  backdrop-filter:blur(20px);
}
.discover-page .discover-results-surface[hidden] { display:none !important; }
.discover-page .discover-results-surface .discover-result-section + .discover-result-section {
  margin-top:22px; padding-top:18px; border-top:1px solid rgba(181,215,164,.16);
}
.discover-page .discover-results-surface .discover-creator-grid,
.discover-page .discover-results-surface .discover-clip-grid { min-width:0; }
.discover-page .discover-results-surface video { max-width:100%; }
@media(max-width:620px) {
  .discover-page .discover-results-surface { max-height:65vh; padding:14px; }
}
