/* The Verifier 2026: search results. Builds on category.css (feed, pager, chips) and author.css (topic chips). */

.tvsearch__panel { background: var(--tv-surface); border-bottom: 1px solid var(--tv-line); }
.tvsearch__in { padding: 20px 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.tvsearch__form { display: flex; gap: 8px; }
.tvsearch__field { flex: 1; min-height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: var(--tv-bg); border: 2px solid var(--tv-cyan); color: var(--tv-muted); }
.tvsearch__field input { flex: 1; min-width: 0; border: 0 !important; outline: 0; background: transparent !important; color: var(--tv-text); font: 600 20px var(--tv-font); padding: 0 !important; box-shadow: none !important; }
.tvsearch__go { min-height: 56px; padding: 0 20px; border: 0; background: var(--tv-cyan); color: var(--tv-navy); font: 700 16px var(--tv-font); cursor: pointer; }
.tvsearch__meta { display: flex; flex-direction: column; gap: 8px; }
.tvsearch__chips { padding: 0; }
.tvsearch__count { font-size: 14px; color: var(--tv-muted); }

.tvsearch__body { margin-top: 20px; }
.tvres__kind { font-size: 12px; font-weight: 700; color: var(--tv-muted); }
.tvres mark { background: none; color: var(--tv-accent-text); font-weight: inherit; padding: 0; }
.tvres__img { position: relative; flex-shrink: 0; display: block; }
.tvres__img .tvring { width: 44px; height: 44px; left: 6px; bottom: -14px; }
.tvres__img .tvring__in { width: 36px; height: 36px; }
.tvres__img .tvring__in b { font-size: 16px; }
.tvres__img .tvring__in small { display: none; }
.tvres--guide { padding: 18px 16px; margin: 6px 0; background: var(--tv-surface); border-top: 3px solid var(--tv-lavender); border-bottom: 0; }

.tvsearch__empty { padding: 24px 0; }
.tvsearch__empty-t { font-size: 28px !important; line-height: 1.2; font-weight: 700; margin: 0 0 8px !important; }
.tvsearch__empty p { margin: 0; font-size: 17px; color: var(--tv-body); }

@media (min-width: 768px) and (max-width: 1024px) {
  .tvsearch__in { padding: 28px 32px 20px; }
  .tvsearch__field { min-height: 64px; }
  .tvsearch__field input { font-size: 24px; }
  .tvsearch__meta { flex-direction: row; align-items: center; justify-content: space-between; }
  .tvres__img .tvfeed__img { width: 180px; height: 110px; }
}

@media (min-width: 1025px) {
  .tvsearch__in { width: min(1200px, calc(100% - 64px)); margin: 0 auto; padding: 32px 0 22px; gap: 18px; }
  .tvsearch__field { min-height: 68px; padding: 0 20px; gap: 14px; }
  .tvsearch__field input { font-size: 28px; }
  .tvsearch__go { min-height: 68px; padding: 0 28px; font-size: 17px; }
  .tvsearch__meta { flex-direction: row; align-items: center; justify-content: space-between; }
  .tvsearch__body { margin-top: 36px; }
  .tvres--guide { padding: 24px 28px; }
  .tvres__img .tvring { width: 56px; height: 56px; left: 10px; bottom: -18px; }
  .tvres__img .tvring__in { width: 46px; height: 46px; }
  .tvres__img .tvring__in b { font-size: 20px; }
}

/* Fixes after the first review */
.tvres mark { margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; display: inline !important; }
body.tv-2026 .tvsearch__field input[type="search"] {
  font: 600 22px/1.2 var(--tv-font) !important;
  color: var(--tv-text) !important;
  height: auto !important;
  min-height: 0 !important;
}
@media (min-width: 768px) { body.tv-2026 .tvsearch__field input[type="search"] { font-size: 26px !important; } }
@media (min-width: 1025px) { body.tv-2026 .tvsearch__field input[type="search"] { font-size: 28px !important; } }

/* Best match: the full guide, pinned above the results */
.tvbest { display: flex; gap: 16px; align-items: center; margin: 0 0 8px; padding: 18px 16px; background: var(--tv-surface); border-top: 3px solid var(--tv-lavender); color: var(--tv-text); }
.tvbest__icon { width: 52px; height: 52px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--tv-navy); color: var(--tv-lavender); }
.tvbest__txt { display: flex; flex-direction: column; gap: 6px; }
.tvbest__k { font-size: 13px; font-weight: 700; color: var(--tv-muted); }
.tvbest__t { font-size: 20px; line-height: 1.25; font-weight: 700; }
.tvbest mark { background: none; color: var(--tv-accent-text); margin: 0 !important; padding: 0 !important; }
@media (min-width: 1025px) {
  .tvbest { gap: 24px; padding: 24px 28px; }
  .tvbest__icon { width: 64px; height: 64px; }
  .tvbest__t { font-size: 24px; }
}

/* The results count stays on one line */
.tvsearch__count { white-space: nowrap; }

/* ---------- 404 ---------- */
.tv404__hero { padding: 40px 16px 32px; display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid var(--tv-line); }
.tv404__code {
  font: 800 120px/0.85 var(--tv-font); letter-spacing: -4px;
  background: var(--tv-band); -webkit-background-clip: text; background-clip: text; color: transparent;
  align-self: flex-start;
}
.tv404__t { font-size: 32px !important; line-height: 1.1; font-weight: 700; margin: 6px 0 0 !important; }
.tv404__p { margin: 0; font-size: 17px; color: var(--tv-body); }
.tv404__form { margin-top: 6px; }
.tv404__chips { padding: 6px 0 0; flex-wrap: wrap; overflow: visible; }
.tv404__chips a { border: 0; }
.tv404__latest { padding-top: 36px; padding-bottom: 12px; }
.tv404__grid { background: none; padding: 0; margin-top: 14px; }
@media (min-width: 768px) {
  .tv404__hero { padding: 56px 32px 40px; }
  .tv404__code { font-size: 180px; }
  .tv404__t { font-size: 44px !important; }
}
@media (min-width: 1025px) {
  .tv404__hero { width: min(1200px, calc(100% - 64px)); margin: 0 auto; padding: 72px 0 48px; }
  .tv404__code { font-size: 220px; letter-spacing: -8px; }
  .tv404__t { font-size: 56px !important; }
  .tv404__p { font-size: 20px; }
  .tv404__form { max-width: 760px; }
  .tv404__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}

/* 404: the top block is centred: number, text, search and the category buttons */
.tv404__hero { align-items: center; text-align: center; }
.tv404__code { align-self: center; }
.tv404__form { width: 100%; max-width: 760px; }
.tv404__chips { justify-content: center; }

/* Narrow phones: the field kept its input's natural width and pushed the "חיפוש" button off the screen */
.tvsearch__form { box-sizing: border-box; max-width: 100%; }
.tvsearch__field { min-width: 0; }
.tvsearch__go { flex-shrink: 0; }
