/* ShotPropz v2: search from anywhere (0.100.0). The window (#spz-search), the Dashboard's field (.spz-search-bar) and the
   menu's item (.spz-search-mi). The window sets its own type and colours on everything in it, whatever the theme styles. */

#spz-search {
  --ss-bg: #ffffff; --ss-ink: #1f272a; --ss-muted: #64726d; --ss-line: #dde2e0; --ss-soft: #f1f4f3; --ss-hover: #eef7f2;
  --ss-green: #00913d; --ss-green-ink: #ffffff; --ss-mark: #cdeedb; --ss-scrim: rgba(15, 23, 42, .55);
  position: fixed; inset: 0; z-index: 100001; display: block;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.4;
  letter-spacing: 0; text-align: left; color: var(--ss-ink); -webkit-text-size-adjust: 100%;
}
html[data-spz-theme="dark"] #spz-search {
  --ss-bg: #151f2e; --ss-ink: #eef2f6; --ss-muted: #9aa8b4; --ss-line: #2a3646; --ss-soft: #1c2838; --ss-hover: #1e3329;
  --ss-green: #1fb35a; --ss-green-ink: #04140a; --ss-mark: #1f5a37; --ss-scrim: rgba(2, 6, 15, .7);
}
#spz-search[hidden] { display: none !important; }
html.spz-search-on, html.spz-search-on body { overflow: hidden !important; }
#spz-search *, #spz-search *::before, #spz-search *::after { box-sizing: border-box; }
#spz-search :is(div, span, p, a, button, input, mark, kbd, abbr) { font-family: inherit; letter-spacing: 0; text-transform: none; text-shadow: none; }
#spz-search .spz-search-scrim { position: absolute; inset: 0; background: var(--ss-scrim); }
#spz-search .spz-search-panel {
  position: relative; display: flex; flex-direction: column; width: min(680px, calc(100% - 32px)); max-height: min(72vh, 640px); margin: 11vh auto 0;
  border: 1px solid var(--ss-line); border-radius: 16px; background: var(--ss-bg); box-shadow: 0 24px 60px rgba(0, 0, 0, .28), 0 2px 6px rgba(0, 0, 0, .08); overflow: hidden;
}

/* the field */
#spz-search .spz-search-top { display: flex; align-items: center; gap: 10px; padding: 0 10px 0 16px; border-bottom: 1px solid var(--ss-line); }
#spz-search .spz-search-ico { flex: 0 0 auto; width: 20px; height: 20px; fill: none; stroke: var(--ss-muted); stroke-width: 2.2; stroke-linecap: round; }
html body #spz-search #spz-search-q {
  flex: 1 1 auto; width: auto; min-width: 0; height: 58px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; outline: 0;
  background: transparent; box-shadow: none; color: var(--ss-ink); font-size: 18px; font-weight: 500; line-height: 1.3; appearance: none; -webkit-appearance: none;
}
html body #spz-search #spz-search-q::placeholder { color: var(--ss-muted); opacity: 1; font-weight: 400; }
html body #spz-search .spz-search-x {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: auto; height: 30px; min-height: 0; margin: 0; padding: 0 8px;
  border: 1px solid var(--ss-line); border-radius: 7px; background: var(--ss-soft); color: var(--ss-muted); box-shadow: none; cursor: pointer; font-size: 12px; font-weight: 600; line-height: 1;
}
html body #spz-search .spz-search-x:hover { color: var(--ss-ink); }
#spz-search .spz-search-times { display: none; font-size: 22px; font-weight: 400; }

/* the results */
#spz-search .spz-search-list { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 6px 8px 10px; }
#spz-search .spz-sr-h { padding: 12px 10px 5px; color: var(--ss-muted); font-size: 12px; font-weight: 600; }
#spz-search .spz-sr-row {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 10px; border-radius: 10px; cursor: pointer;
}
#spz-search .spz-sr-row.is-active { background: var(--ss-hover); }
#spz-search .spz-sr-row.is-active::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--ss-green); }
#spz-search .spz-sr-chip {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 46px; padding: 3px 0; border-bottom: 3px solid var(--spz-chip-bar, transparent);
  border-radius: 6px; background: #64748b; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .03em; line-height: 1.5; box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}
html[data-spz-theme="dark"] #spz-search .spz-sr-chip { box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); }
#spz-search .spz-sr-tool { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 46px; height: 30px; border-radius: 7px; background: var(--ss-soft); }
#spz-search .spz-sr-tool svg { width: 17px; height: 17px; fill: none; stroke: var(--ss-muted); stroke-width: 2; }
#spz-search .spz-sr-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
#spz-search .spz-sr-name { overflow: hidden; color: var(--ss-ink); font-size: 15.5px; font-weight: 650; white-space: nowrap; text-overflow: ellipsis; }
#spz-search .spz-sr-name mark { padding: 0 1px; border-radius: 3px; background: var(--ss-mark); color: inherit; }
#spz-search .spz-sr-meta { overflow: hidden; color: var(--ss-muted); font-size: 12.5px; white-space: nowrap; text-overflow: ellipsis; }
#spz-search .spz-sr-meta abbr { border: 0; text-decoration: none; cursor: inherit; }
#spz-search .spz-sr-pro { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: 10.5px; font-weight: 700; vertical-align: 2px; }
html[data-spz-theme="dark"] #spz-search .spz-sr-pro { background: #3b2f0b; color: #fcd34d; }
#spz-search .spz-sr-acts { flex: 0 0 auto; display: none; gap: 4px; }   /* (a keyboard and mouse: the links of the result you're on, so the rest show their whole line) */
#spz-search .spz-sr-row.is-active .spz-sr-acts { display: flex; }
html body #spz-search a.spz-sr-act {
  display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border: 1px solid var(--ss-line); border-radius: 7px; background: var(--ss-bg);
  color: var(--ss-ink); font-size: 12.5px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; box-shadow: none;
}
html body #spz-search a.spz-sr-act:hover { border-color: var(--ss-green); }
html body #spz-search .spz-sr-row.is-active a.spz-sr-act.is-on { border-color: var(--ss-green); background: var(--ss-green); color: var(--ss-green-ink); }
#spz-search .spz-sr-empty { margin: 0; padding: 26px 14px; color: var(--ss-muted); font-size: 14px; text-align: center; }
html body #spz-search .spz-sr-retry { margin-left: 6px; padding: 4px 10px; border: 1px solid var(--ss-line); border-radius: 7px; background: var(--ss-soft); color: var(--ss-ink); font-size: 13px; font-weight: 600; cursor: pointer; }

/* the keys, along the foot (a keyboard only) */
#spz-search .spz-search-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 9px 16px; border-top: 1px solid var(--ss-line); background: var(--ss-soft); color: var(--ss-muted); font-size: 12px; }
#spz-search kbd, .spz-search-kbd {
  display: inline-block; min-width: 20px; margin: 0 2px; padding: 1px 5px; border: 1px solid var(--ss-line, #dde2e0); border-bottom-width: 2px; border-radius: 5px;
  background: var(--ss-bg, #fff); color: inherit; font: 600 11px/1.4 'Inter', system-ui, sans-serif; text-align: center; box-shadow: none;
}

/* phones and touch: the whole screen, every result's links showing, no key hints */
@media (max-width: 640px), (hover: none) and (pointer: coarse) {
  #spz-search .spz-search-foot { display: none; }
  #spz-search .spz-sr-acts { display: flex; }
}
@media (max-width: 640px) {
  #spz-search .spz-search-panel { width: 100%; max-height: none; height: 100%; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  html body #spz-search #spz-search-q { height: 56px; font-size: 17px; }
  #spz-search .spz-search-esc { display: none; }
  #spz-search .spz-search-times { display: inline; }
  html body #spz-search .spz-search-x { width: 40px; height: 40px; border: 0; background: transparent; padding: 0; }
  #spz-search .spz-sr-row { flex-wrap: wrap; align-items: flex-start; row-gap: 8px; padding: 10px; }
  #spz-search .spz-sr-row.is-active { background: transparent; }
  #spz-search .spz-sr-row.is-active::before { display: none; }
  #spz-search .spz-sr-row + .spz-sr-row { border-top: 1px solid var(--ss-line); border-radius: 0; }
  #spz-search .spz-sr-chip, #spz-search .spz-sr-tool { margin-top: 2px; }
  #spz-search .spz-sr-acts { flex: 1 1 100%; flex-wrap: wrap; gap: 6px; padding-left: 58px; }
  html body #spz-search a.spz-sr-act { height: 34px; padding: 0 12px; font-size: 13.5px; }
  html body #spz-search .spz-sr-row a.spz-sr-act:first-child { border-color: transparent; background: var(--ss-hover); color: var(--ss-green); }   /* (what a tap on the result opens) */
  html[data-spz-theme="dark"] body #spz-search .spz-sr-row a.spz-sr-act:first-child { color: #6ee7a0; }
  html body #spz-search .spz-sr-row.is-active a.spz-sr-act.is-on:not(:first-child) { border-color: var(--ss-line); background: var(--ss-bg); color: var(--ss-ink); }
}
@media (prefers-reduced-motion: no-preference) {
  #spz-search .spz-search-panel { animation: spz-search-in .14s ease-out; }
  @keyframes spz-search-in { from { opacity: 0; transform: translateY(-6px) scale(.99); } }
}

/* the Dashboard's field ([spz_search]) */
.spz-search-bar { margin: 0 0 18px; }
html body .spz-search-bar .spz-search-field {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 50px; min-height: 0; margin: 0; padding: 0 12px 0 16px; border: 1px solid #dde2e0; border-radius: 12px;
  background: #ffffff; color: #64726d; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); cursor: text; text-align: left; text-transform: none; letter-spacing: 0;
  font: 400 15.5px/1.2 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
html body .spz-search-bar .spz-search-field:hover { border-color: #b9c4c0; }
html body .spz-search-bar .spz-search-field:focus-visible { outline: 2px solid #00913d; outline-offset: 2px; }
.spz-search-bar .spz-search-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; flex: 0 0 auto; }
.spz-search-bar .spz-search-field-txt { flex: 1 1 auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.spz-search-bar .spz-search-kbd { flex: 0 0 auto; }
html[data-spz-theme="dark"] body .spz-search-bar .spz-search-field { border-color: #2a3646; background: #151f2e; color: #9aa8b4; }
html[data-spz-theme="dark"] .spz-search-bar .spz-search-kbd { border-color: #2a3646; background: #1c2838; }
@media (hover: none) and (pointer: coarse) { .spz-search-bar .spz-search-kbd { display: none; } }

/* the menu's item: the theme's own link look, with the glass */
.spz-search-mi > a.spz-search-mi-a { display: inline-flex !important; align-items: center; gap: 6px; }
.spz-search-mi .spz-search-ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; flex: 0 0 auto; }

/* ── 0.100.1: on a phone or tablet (the owner: "I hate it on mobile"). The round search button at the bottom right, beside the
   dark-mode switch, on every page; the menu's Search item is left out there (in the theme's phone menu it sat last under
   "Go to..." as a black dot). Wherever the item is left out, the button is there. ── */
.spz-search-fab { display: none; }
@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
  li.spz-search-mi, li:has(> a .spz-search-ico) { display: none !important; }   /* (the theme's phone menu copies the item without its classes, the glass with them) */
  html body .spz-search-fab {
    position: fixed; right: 76px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 99999;
    display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 0; margin: 0; padding: 0;
    border: 2px solid #ffffff; border-radius: 50%; background: #00913d; color: #ffffff; box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
    cursor: pointer; -webkit-tap-highlight-color: transparent; appearance: none; -webkit-appearance: none;
  }
  html body .spz-search-fab { transition: transform .2s ease, opacity .2s ease; }
  html body .spz-search-fab.is-away { transform: translateY(calc(90px + env(safe-area-inset-bottom, 0px))); opacity: 0; pointer-events: none; }
  html body .spz-search-fab:active { transform: scale(.94); }
  html body .spz-search-fab:focus { outline: none; }
  html body .spz-search-fab:focus-visible { outline: 2px solid #00913d; outline-offset: 3px; }
  html body .spz-search-fab .spz-search-ico { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
  html[data-spz-theme="dark"] body .spz-search-fab { background: #1fb35a; color: #04140a; border-color: #0f172a; }
  /* (where the dark-mode switch isn't floating, a game log on a phone: its place; above a game log's line bar or a parlay being built) */
  html.spz-linebar-on body .spz-search-fab { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  html.spz-pbar-on body .spz-search-fab { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
  html.spz-search-on body .spz-search-fab { display: none; }
}
@media (max-width: 640px) {
  html:has(.spz-gamelog .spz-ph-theme) body .spz-search-fab { right: 20px; }   /* (as spz-gamelog.css takes the switch away) */
  /* (a game log or shot map on a phone: not over the chart, where the latest game is; its header's glass finds another player,
     and its ⋯ menu has Search players and teams) */
  html:has(.spz-ph-head .spz-ph-find) body .spz-search-fab { display: none; }
}
@media (prefers-reduced-motion: reduce) { html body .spz-search-fab { transition: none; } }
@media print { .spz-search-fab { display: none !important; } }

/* the last row: the site's own search of its pages and posts */
#spz-search .spz-sr-site .spz-search-ico { width: 18px; height: 18px; stroke: var(--ss-muted); }
