/* Look add-ons: glowing light around the big search bar, sliding hint in the phone search bar. */

/* ---- big search bar (start page): a light that travels around its outline ---- */
/* own layer, so the glow sits right behind the bar on every device */
.land-search { isolation: isolate; }
@property --cm-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.land-search::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; --cm-a: 0deg;
  background: conic-gradient(from var(--cm-a),
    transparent 0deg, transparent 200deg,
    rgba(var(--accent-rgb,233,180,76),.15) 245deg, rgba(var(--accent-rgb,233,180,76),.95) 300deg, #fff8e6 322deg, rgba(var(--accent-rgb,233,180,76),.9) 334deg,
    transparent 352deg);
  animation: cmOrbit 5.5s linear infinite;
}
.land-search::before { /* the sharp line */
  padding: 1.5px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.land-search:focus-within::before { animation-duration: 2.6s; }
/* no big coloured halo when the bar is active: just the moving line and a slightly brighter edge */
.land-search:focus-within { box-shadow: 0 30px 70px -30px #000, inset 0 1px rgba(var(--text-rgb,244,241,234),.06) !important; border-color: rgba(var(--accent-rgb,233,180,76),.4) !important; }
@keyframes cmOrbit { to { --cm-a: 360deg; } }
@media (prefers-reduced-motion: reduce) { .land-search::before { animation: none; --cm-a: 120deg; } }

/* ---- top search bar (phone and desktop): the hint gently slides left and right with a soft shine ---- */
.cm-ph { position: absolute; top: 0; bottom: 0; overflow: hidden; pointer-events: none; display: flex; align-items: center;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 10px), transparent);
          mask: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 10px), transparent); }
.cm-ph span { white-space: nowrap; font-size: 14px; font-weight: 500; padding: 0 10px;
  background: linear-gradient(100deg, var(--dim,#6c6a75) 0 38%, rgba(var(--accent-rgb,233,180,76),1) 50%, var(--dim,#6c6a75) 62% 100%);
  background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: cmSlide 7s ease-in-out infinite, cmShine 3.5s linear infinite; will-change: transform; }
.cm-ph.off { display: none; }
@keyframes cmSlide { 0%, 12% { transform: translateX(0); } 46%, 58% { transform: translateX(var(--cm-d, 24px)); } 92%, 100% { transform: translateX(0); } }
@keyframes cmShine { from { background-position: 130% 0; } to { background-position: -30% 0; } }
@media (prefers-reduced-motion: reduce) { .cm-ph span { animation: none; } }

/* ---- titles without a backdrop: a softly blurred wall of posters instead of an empty box ---- */
.slide-bg[style*="url('')"], .ip-poster:not([style*="background-image"]) {
  background-image: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.25)), url(/backdrop-default.jpg) !important;
  background-size: cover !important; background-position: center !important;
}
.wcard .noimg {
  background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.55)), url(/backdrop-default-640.jpg) center / cover !important;
  color: var(--text, #f4f1ea); text-shadow: 0 2px 12px rgba(0,0,0,.8);
}
