.tv-mobile-header, .tv-mobile-search-history, .tv-mobile-search-suggest { display: none; }

@media (max-width: 767px) {
  .tv-app > .tv-top, .tv-mobile-header--compact + .tv-chan { display: none; }
  .tv-mobile-header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    background: var(--bg, #141414);
    color: var(--t1);
  }
  .tv-mobile-header__brand, .tv-mobile-header__back {
    display: flex; flex: none; height: 44px; align-items: center; justify-content: center;
  }
  .tv-mobile-header__brand .tv-brand-image { width: 80px; max-height: 32px; }
  .tv-mobile-header__back { width: 32px; }
  .tv-mobile-header__back .tv-ico { width: 20px; height: 20px; }
  .tv-mobile-header__find, .tv-mobile-header__search {
    position: relative; isolation: isolate; display: flex; align-items: center;
    height: 44px; min-width: 0; flex: 1; padding: 0 12px; gap: 6px;
    color: var(--t2); font-size: 12px;
  }
  .tv-mobile-header__find::before, .tv-mobile-header__search::before {
    content: ''; position: absolute; z-index: -1; inset: 10px 0;
    border-radius: 24px; background: rgba(255,255,255,.08);
  }
  .tv-mobile-header__find span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tv-mobile-header__find .tv-ico, .tv-mobile-header__search .tv-ico { width: 16px; height: 16px; }
  .tv-mobile-header__search { padding-right: 0; }
  .tv-mobile-header__search input {
    flex: 1; width: 0; min-width: 0; height: 100%; border: 0; padding: 0;
    outline: none; color: var(--t1); background: transparent; font-size: 16px;
  }
  .tv-mobile-header__search input::placeholder { color: var(--t2); font-size: 12px; }
  .tv-mobile-header__search:focus-within::before { box-shadow: inset 0 0 0 1px var(--accent); }
  .tv-mobile-header__search button { display: grid; place-items: center; width: 40px; height: 44px; }
  .tv-page-search-hub .tv-page-hd, .tv-page-search-hub .tv-hub-search { display: none; }
  .tv-page-search-hub .tv-mobile-search-history:not([hidden]),
  .tv-page-search-hub .tv-mobile-search-suggest:not([hidden]) { display: block; margin: 16px 0; }
  .tv-mobile-search-history header { display: flex; align-items: center; justify-content: space-between; }
  .tv-mobile-search-history h2, .tv-mobile-search-suggest h2 { margin: 0; font-size: 16px; }
  .tv-mobile-search-history button { color: var(--t2); padding: 6px 0 6px 12px; font-size: 13px; }
  .tv-mobile-terms { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
  .tv-mobile-terms a { max-width: 100%; overflow-wrap: anywhere; }
  .tv-mobile-search-suggest a { display: block; padding: 10px 0; overflow-wrap: anywhere; }
  .tv-page-search-hub [data-mobile-popular] .tv-chips { flex-wrap: wrap; }
  .tv-page-search-hub [data-mobile-has-suggestions] [data-mobile-history],
  .tv-page-search-hub [data-mobile-has-suggestions] [data-mobile-popular] { display: none; }
  .tv-page-search-hub [data-mobile-recommended] { display: none; }
  .tv-page-search:not(.tv-page-search-hub) .tv-grid--v { --gc: 3; --gx: 8px; }
}
