html .discovery-tv .tools #today {display:inline-flex;align-items:center;justify-content:flex-end;align-self:center;min-width:44px;min-height:44px;padding:0;color:var(--fm-action) !important;background:transparent !important;border:0 !important;box-shadow:none;font:inherit;font-size:14px;font-weight:500} @media(max-width:700px){html .discovery-main.discovery-tv .tools{grid-template-columns:minmax(0,1fr)}html .discovery-tv .tools .tool{grid-column:1;min-width:0}html .discovery-tv .tools input{width:100%;box-sizing:border-box}html .discovery-tv .tool-label-row{min-height:0}}
/* ==========================================================================
   2026-12-02 · 触摸设备（iPhone / iPad）顶部工具栏
   用户定（第二轮）：日期入口用「跳转至日期 ⌄」文字按钮，不要 44×44 日历图标；
   「今天」按钮多余，去掉；搜索保留自己的文字说明（label）。两件事同一行：
     左：跳转至日期 ⌄（44 高，宽度随文字）
     右：搜索节目或集数（label）+ 带放大镜的输入框
   2026-12-03 用户改口径：Mac 也用同一套胶囊工具栏——「顶部两个功能按钮没有照着 iPhone 改」。

   参数：命中区 44（HIG，也是 .tool input 既有 min-height）；间距 8/12；圆角 12（与输入框一致）。
   ========================================================================== */
/* 默认（鼠标/细指针）：文字按钮与箭头不出现；放大镜也不出现（Mac 版式不变）。
   注意：放大镜不给 display:none 的话，SVG 默认 300×150，会把整个工具栏撑坏。 */
html .discovery-tv .tools .fmc-date-text,
html .discovery-tv .tools .fmc-date-chev,
html .discovery-tv .tools .tool-field-glass { display: none; }
html .discovery-tv .tools .tool-field { display: block; }

@media all {
  /* 2026-12-03 用户定：Mac 也用同一套（原来只在触屏生效，桌面是旧的带标签两栏版式）。 */
  /* 一行两列：左边日期按钮（宽度随内容），右边搜索（占满）。
     用 flex 而不是 grid：grid 的 max-content 列在 iOS 上算不准（会少算箭头宽度，和搜索框叠上）。 */
  html .discovery-tv .tools {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 12px;
    padding: 0 0 10px;
    margin-bottom: 12px;
  }
  html .discovery-tv .tools .tool { display: block; min-width: 0; }
  html .discovery-tv .tools .tool-date { flex: 0 0 auto; }
  html .discovery-tv .tools .tool-search { flex: 1 1 auto; min-width: 0; }
  /* 日期这一侧不再有标签；搜索的标签也不再显示——
     用户 2026-12-02 指出：标签「搜索节目或集数」和框里的占位「节目名称或集数」是重复的。
     标签保留在 DOM 里给读屏（label for=search），视觉隐藏。 */
  html .discovery-tv .tools .tool-label-row { display: none; }
  html .discovery-tv .tools label {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  /* 「今天」去掉：app.js 仍引用 #today，所以只隐藏不删 */
  html .discovery-tv .tools #today { display: none !important; }
  /* 日期按钮：文字 + ⌄，整块是 label 的点击区（input 透明覆盖在上面） */
  html .discovery-tv .tools .fmc-date-field {
    width: auto; height: 44px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 0 12px;
    border-radius: 12px !important;
    background: var(--card) !important;
  }
  html .discovery-tv .tools .fmc-date-text {
    display: block;
    font-size: 15px; line-height: 1; white-space: nowrap;
    color: var(--fm-ink, #1d1d1f);
  }
  /* date-field 组件里所有 svg 默认是 right:12px 的绝对定位（那是日历图标的规则），
     箭头要回到正常流里，否则会被绝对定位到文字上面。 */
  html .discovery-tv .tools .fmc-date-chev {
    display: block; width: 12px; height: 12px; flex: none;
    position: static; right: auto; top: auto;
    transform: none;
    color: var(--fm-ink, #6e6e73);
  }
  html .discovery-tv .tools .fmc-date-cal { display: none; }
  /* 搜索 */
  html .discovery-tv .tools .tool-field { position: relative; display: flex; align-items: center; min-width: 0; }
  html .discovery-tv .tools .tool-field-glass {
    display: block;
    position: absolute; left: 12px;
    width: 18px; height: 18px;
    opacity: .5; pointer-events: none;
  }
  html .discovery-tv .tools .tool-search input {
    width: 100%; height: 44px; min-height: 44px;
    padding: 0 14px 0 38px;
    border-radius: 12px !important;
  }
}

/* 2026-12-03：胶囊工具栏在桌面上的尺度。
   触屏是「日期按钮随内容 + 搜索占满剩余」；桌面版心很宽，搜索框如果跟着 1fr 会拉成一条长带，
   所以给搜索一个上限宽度，整行左对齐并与下方日历的起始边对齐。 */
@media (pointer: fine) and (min-width: 641px) {
  html .discovery-tv .tools {
    align-items: center;
    max-width: 760px;
  }
  html .discovery-tv .tools .tool-search {
    flex: 0 1 380px;
    min-width: 200px;
  }
  html .discovery-tv .tools .fmc-date-field:hover {
    background: color-mix(in srgb, var(--card, #f5f5f7) 88%, var(--fm-ink, #1d1d1f)) !important;
  }
}
