/* A single visual language for searching from anywhere in the Atlas. */
.global-watch-search { width: min(440px, 52%); }
.watch-search { position: relative; margin: 0; letter-spacing: normal; }
.watch-search-control {
  display: flex; align-items: center; gap: 12px; padding: 8px;
  border: 1px solid #5b5140; border-radius: 12px;
  background: linear-gradient(110deg, #1e2026, #171a21);
  box-shadow: 0 6px 24px #0002, inset 0 1px 0 #ffffff05;
  transition: border-color .18s, box-shadow .18s;
}
.watch-search-control:hover { border-color: #8a7855; }
.watch-search-control:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px #dbc28e14, 0 8px 28px #0003;
}
.watch-search svg { width: 20px; height: 20px; flex-shrink: 0; display: block; }
.watch-search-icon { flex-shrink: 0; margin-left: 12px; color: var(--gold); }
.watch-search-control input {
  flex: 1; min-width: 0; width: 0; min-height: 54px; padding: 12px 0;
  border: 0; border-radius: 0; outline: none; box-shadow: none;
  background: transparent; color: var(--text); font-size: 16px;
  text-overflow: ellipsis; appearance: none;
}
.watch-search-control input:focus { outline: none; box-shadow: none; }
.watch-search-control input::placeholder { color: #a5a39e; opacity: 1; }
.watch-search-control input::-webkit-search-cancel-button,
.watch-search-control input::-webkit-search-decoration { appearance: none; }
.watch-search button { font-family: inherit; }
.watch-search-clear {
  flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px;
  padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--muted);
}
.watch-search-clear:hover { background: #ffffff09; color: var(--text); }
.watch-search-submit {
  min-height: 52px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  gap: 20px; padding: 12px 20px; border: 1px solid #e4cfaa; border-radius: 7px;
  background: var(--gold); color: #201c15; font-size: 14px; font-weight: 600;
  transition: background .18s;
}
.watch-search-submit:hover { background: #ead5ac; }
.watch-search button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.watch-search-hint { color: var(--muted); font-size: 12px; margin: 12px 2px 0; line-height: 1.6; }
.watch-search kbd { font: 10px 'DM Sans', sans-serif; }
.watch-search-shortcut { white-space: nowrap; color: #aaa9a2; border: 1px solid #45444a; border-radius: 4px; padding: 4px 6px; }
.watch-search--compact .watch-search-control { padding: 4px; gap: 9px; border-color: #414149; border-radius: 9px; background: #181b22; box-shadow: none; }
.watch-search--compact .watch-search-control:hover { border-color: #7f7054; }
.watch-search--compact .watch-search-control:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px #dbc28e14; }
.watch-search--compact .watch-search-icon { margin-left: 10px; }
.watch-search--compact .watch-search-icon svg { width: 17px; height: 17px; }
.watch-search--compact input { min-height: 38px; font-size: 13px; padding: 8px 0; }
.watch-search--compact .watch-search-submit { min-height: 38px; width: 38px; padding: 0; border: 0; background: #292a2d; color: var(--gold); border-radius: 5px; }
.watch-search--compact .watch-search-submit:hover { background: #3b362b; }
.watch-search--compact .watch-search-clear { width: 34px; height: 38px; }
.watch-search-panel {
  display: flex; flex-direction: column;
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 30;
  background: #191c23; border: 1px solid #61543d; border-radius: 12px;
  box-shadow: 0 24px 60px #0009; overflow: hidden;
}
.watch-search--full .watch-search-panel { top: 80px; }
.watch-search--compact .watch-search-panel { left: auto; width: min(520px, calc(100vw - 48px)); min-width: 100%; }
.watch-search-heading {
  flex-shrink: 0;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 17px 18px 13px; border-bottom: 1px solid #34343a;
  color: var(--gold); font-size: 9px; letter-spacing: 1.6px;
}
.watch-search-summary { color: #aaa9a2; font-size: 10px; letter-spacing: 0; text-align: right; }
.watch-search-options { min-height: 0; max-height: min(430px, 60dvh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 7px; }
.watch-search-group + .watch-search-group { border-top: 1px solid #32343c; margin-top: 6px; }
.watch-search-group-label { font-size: 10px; color: #b9b6ad; padding: 12px 11px 7px; }
.watch-search-group [role=option] {
  display: flex; align-items: center; gap: 13px; width: 100%; min-height: 52px;
  text-align: left; border: 1px solid transparent; border-radius: 7px; background: transparent;
  color: var(--text); padding: 10px; cursor: pointer;
}
.watch-search-group [role=option]:hover,
.watch-search-group [role=option][aria-selected=true] { background: #dbc28e0d; border-color: #dbc28e30; }
.watch-search-option-icon { color: #a89b81; background: #24262d; width: 32px; height: 32px; border-radius: 6px; display: grid; place-items: center; flex-shrink: 0; }
.watch-search-option-icon svg { width: 16px; height: 16px; }
.watch-search-option-copy { flex: 1; min-width: 0; }
.watch-search-option-copy strong { font-size: 13px; font-weight: 500; line-height: 1.5; display: block; overflow-wrap: anywhere; }
.watch-search-option-copy small { font-size: 11px; color: var(--muted); line-height: 1.5; display: block; margin-top: 2px; overflow-wrap: anywhere; }
.watch-search-option-arrow { color: var(--gold); padding: 0 4px; font-size: 16px; }
.watch-search-footer { flex-shrink: 0; border-top: 1px solid #34343a; display: flex; justify-content: space-between; gap: 12px; padding: 11px 18px; color: #a19e97; font-size: 10px; }
.watch-search-footer kbd { border: 1px solid #444349; padding: 1px 4px; border-radius: 3px; margin-right: 3px; }
.watch-search-loading { padding: 30px 18px; color: var(--muted); font-size: 13px; }
.watch-search [hidden] { display: none !important; }
.watch-search--full + .finder-discovery { margin: 18px 0 30px; gap: 8px; }
.watch-search--full + .finder-discovery .tiny-label { margin-right: 6px; }
.watch-search--full + .finder-discovery button { padding: 8px 12px; border: 1px solid #383940; border-radius: 20px; color: #c9c6bf; background: #171a21; line-height: 1.5; }
.watch-search--full + .finder-discovery button:hover { border-color: #827050; color: var(--gold); }
@media (max-width: 820px) {
  .global-watch-search { width: 100%; }
  .watch-search--compact input { font-size: 16px; min-height: 44px; }
  .watch-search--compact .watch-search-submit, .watch-search--compact .watch-search-clear { width: 44px; min-height: 44px; }
  .watch-search--compact .watch-search-panel { width: 100%; min-width: 0; }
  .watch-search-shortcut { display: none; }
}
@media (max-width: 560px) {
  .watch-search-control { gap: 6px; padding: 6px; }
  .watch-search-icon { margin-left: 6px; }
  .watch-search-control input { font-size: 16px; min-height: 48px; }
  .watch-search-submit { min-height: 46px; width: 46px; padding: 0; }
  .watch-search-submit span { display: none; }
  .watch-search--full .watch-search-panel { top: 70px; }
  .watch-search-hint { font-size: 11px; }
  .watch-search-heading { padding: 14px 12px; letter-spacing: 1px; }
  .watch-search-summary { max-width: 140px; font-size: 9px; }
  .watch-search-options { max-height: min(340px, 60dvh); padding: 5px; }
  .watch-search-group [role=option] { gap: 9px; padding: 10px 7px; }
  .watch-search-option-icon { display: none; }
  .watch-search-footer { display: none; }
  .watch-search--full + .finder-discovery .tiny-label { flex-basis: 100%; margin-bottom: 2px; }
  .watch-search--full + .finder-discovery button { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .watch-search-control, .watch-search-submit { transition: none; }
}
