/*
 * The ONE look of every filter panel's frame: TMB.filterPanel
 * (scripts/tmb-common.js). Matchup (matchup-filter-dock.js, mfd-), Player
 * Stats (ps-core.js, psb-), Player Search (player-search-stat-view.js, psv-)
 * and the dashboards that show them. A change here reaches every panel; a
 * page's own stylesheet styles only what its panel HOLDS (its rows), never
 * the frame. Loaded by every page that has a panel, before the page's own.
 */

/* ---- The column docked against a side ---- */
.tmb-fp {
    /* Ends at the top of the 40px fixed footer bar (front.css), not under it */
    position: fixed; top: var(--fp-top, 70px); bottom: 40px; width: var(--fp-w, 340px);
    z-index: 90; display: flex; flex-direction: column;
    background: var(--tmb-surface); box-shadow: 0 0 12px var(--tmb-black-10);
}
.tmb-fp[hidden] { display: none; }
.tmb-fp.tmb-fp-left { left: 0; border-right: 1px solid var(--tmb-gray-300); }
.tmb-fp.tmb-fp-right { right: 0; border-left: 1px solid var(--tmb-gray-300); }
.tmb-fp-head {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 8px 10px; border-bottom: 1px solid var(--tmb-gray-300); background: var(--tmb-gray-100);
}
.tmb-fp-lhead { display: inline-flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.tmb-fp-title { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 700; color: var(--tmb-gray-900); }
.tmb-fp-beta { padding: 1px 6px; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; color: white; background: var(--tmb-purple); border-radius: 8px; }
.tmb-fp-btns { display: inline-flex; gap: 4px; flex: 0 0 auto; }
.tmb-fp .tmb-fp-btn {
    width: 26px; height: 26px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.75rem; color: var(--tmb-gray-700); cursor: pointer; margin: 0; box-shadow: none;
    background: var(--tmb-surface) !important; border: 1px solid var(--tmb-gray-300); border-radius: 6px;
}
.tmb-fp .tmb-fp-btn:hover { color: var(--tmb-gray-900); border-color: var(--tmb-gray-400); }
.tmb-fp .tmb-fp-btn[aria-pressed="true"] { color: white; background: var(--tmb-switch-on) !important; border-color: var(--tmb-switch-on); }
/* A button a page puts in the head (Clear all, + Save) */
.tmb-fp .tmb-fp-hbtn {
    padding: 2px 9px; font-size: 0.72rem; line-height: 1.3; color: var(--tmb-gray-700); cursor: pointer; margin: 0; box-shadow: none;
    background: var(--tmb-surface) !important; border: 1px solid var(--tmb-gray-300); border-radius: 6px;
}
.tmb-fp .tmb-fp-hbtn:hover:not(:disabled) { border-color: var(--tmb-switch-on); color: var(--tmb-gray-900); }
.tmb-fp .tmb-fp-hbtn:disabled { opacity: 0.45; cursor: default; }

/* The count of filters set */
.tmb-fp-count { display: none; }
.tmb-fp-count.on {
    display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px;
    font-size: 0.68rem; font-weight: 700; color: white; background: var(--tmb-switch-on); border-radius: 9px;
}

/* The body scrolls; its width is a container, so a wider panel can lay its rows side by side */
.tmb-fp-body { flex: 1 1 auto; overflow-y: auto; padding: 10px 10px 72px; container-type: inline-size; container-name: tmbfp; }

/* Minimized: a thin bar that opens it again */
.tmb-fp .tmb-fp-bar {
    display: none; flex: 1 1 auto; width: 100%; flex-direction: column; align-items: center; justify-content: flex-start;
    gap: 10px; padding: 12px 0; font-size: 0.78rem; font-weight: 700; color: var(--tmb-gray-700); cursor: pointer; margin: 0;
    background: var(--tmb-gray-100) !important; border: none; border-radius: 0; box-shadow: none;
}
.tmb-fp .tmb-fp-bar:hover { color: var(--tmb-gray-900); background: var(--tmb-gray-300) !important; }
.tmb-fp-bar-text { writing-mode: vertical-rl; letter-spacing: 0.04em; }
.tmb-fp.tmb-fp-left .tmb-fp-bar-text { transform: rotate(180deg); }
.tmb-fp.tmb-fp-min .tmb-fp-head, .tmb-fp.tmb-fp-min .tmb-fp-body { display: none; }
.tmb-fp.tmb-fp-min .tmb-fp-bar { display: flex; }

/* ---- Phone: the sheet that slides up (opened by the page's #<prefix>-m-filters pill) ---- */
.tmb-fp-sheet { position: fixed; inset: 0; z-index: 100000; visibility: hidden; pointer-events: none; }
.tmb-fp-sheet-back { position: absolute; inset: 0; background: var(--tmb-black-45); opacity: 0; transition: opacity 0.25s ease; }
.tmb-fp-sheet-pane {
    position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; display: flex; flex-direction: column;
    background: var(--tmb-surface); border-radius: 14px 14px 0 0; box-shadow: 0 -6px 24px var(--tmb-black-20);
    transform: translateY(100%); transition: transform 0.28s ease;
}
.tmb-fp-sheet.open { visibility: visible; pointer-events: auto; }
.tmb-fp-sheet.open .tmb-fp-sheet-back { opacity: 1; }
.tmb-fp-sheet.open .tmb-fp-sheet-pane { transform: translateY(0); }
html.tmb-fp-noscroll { overflow: hidden; }
.tmb-fp-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--tmb-gray-300); }
.tmb-fp-sheet-title { display: inline-flex; align-items: center; gap: 6px; font-size: 0.95rem; font-weight: 700; color: var(--tmb-gray-900); }
.tmb-fp-sheet .tmb-fp-sheet-done {
    padding: 5px 16px; font-size: 0.85rem; font-weight: 700; color: white; border: 0; border-radius: 16px;
    background: var(--tmb-switch-on) !important; margin: 0 !important;
}
.tmb-fp-sheet-body { flex: 1 1 auto; overflow-y: auto; padding: 10px 14px 24px; -webkit-overflow-scrolling: touch; container-type: inline-size; container-name: tmbfp; }
.tmb-fp-mpill .tmb-fp-count.on { margin-left: 4px; }

/* The sheet by SECTION (fsTag() / fsDraw(), tmb-common.js): the top bar's own
   sections, a line each. The content element and what stands between it and a
   row are display: contents, so a row's `order` puts it under its button. */
.tmb-fs { display: flex; flex-direction: column; }
.tmb-fs-heads, .tmb-fs .tmb-fs-thru { display: contents !important; }
.tmb-fs [data-ft-sec]:not(.tmb-ft-on) { display: none !important; }
.tmb-fs .tmb-fs-b {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; margin: 0 !important; padding: 10px 2px;
    font-size: 0.92rem; font-weight: 700; color: var(--tmb-gray-900); text-align: left; cursor: pointer;
    background: none !important; border: 0; border-top: 1px solid var(--tmb-gray-300); border-radius: 0; box-shadow: none;
}
.tmb-fs-k { flex: 0 0 auto; }
.tmb-fs-v { flex: 1 1 auto; min-width: 0; overflow: hidden; font-size: 0.8rem; font-weight: 600; color: var(--tmb-gray-600); text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.tmb-fs-b.set .tmb-fs-v { color: var(--tmb-switch-on); }
.tmb-fs-car { flex: 0 0 auto; font-size: 0.7rem; color: var(--tmb-gray-600); transition: transform 0.15s ease; }
.tmb-fs-b.open .tmb-fs-car { transform: rotate(180deg); }
/* A row that is a line of its own (the Saved menu, a switch): its label left, its choice right */
.tmb-fs [data-fs-inl] { margin: 0 !important; padding: 9px 2px; border-top: 1px solid var(--tmb-gray-300); }
.tmb-fs .tmb-fr[data-fs-inl] { justify-content: space-between; }
.tmb-fs [data-ft-sec="saved"] { border-top: 0; padding-top: 2px; }
.tmb-fs .tmb-fr[data-fs-inl] > .tmb-fr-label { flex: 1 1 auto; margin: 0; font-size: 0.92rem; font-weight: 700; color: var(--tmb-gray-900); text-transform: none; letter-spacing: 0; }
.tmb-fs[data-fs-single] [data-ft-sec].tmb-ft-on:not([data-fs-inl]) > .tmb-fr-label { display: none; }
.tmb-fs .tmb-fs-reset { order: 999; align-self: flex-start; margin: 14px 0 0 !important; }

/* ===== The rows: TMB.filterRows (tmb-common.js), every panel's ===== */
/* A row: its label above, its choice under it, any (i) or link beside the choice */
.tmb-fr { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 8px; margin-bottom: 10px; }
.tmb-fr > .tmb-fr-label { flex: 0 0 100%; }
.tmb-fr > .tmb-fr-seg { flex: 0 1 auto; min-width: 0; }
.tmb-fr-label { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--tmb-gray-600); }
/* The segmented choice */
.tmb-fr-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 2px; background: var(--tmb-gray-100); border: 1px solid var(--tmb-gray-300); border-radius: 8px; }
/* doubled class + !important: front.css paints every button, and a site-wide button.active outranks a plain rule */
.tmb-fr-seg .tmb-fr-pill.tmb-fr-pill {
    margin: 0 !important; /* front.css gives every button margin-bottom: 3px !important: the switch read thicker under its pills than over them */
    padding: 3px 10px; font-size: 0.74rem; font-weight: 400; line-height: 1.3; color: var(--tmb-gray-900); cursor: pointer;
    border: none; border-radius: 6px; background: transparent !important; box-shadow: none;
}
.tmb-fr-seg .tmb-fr-pill.tmb-fr-pill:hover { background: var(--tmb-gray-300) !important; }
.tmb-fr-seg .tmb-fr-pill.tmb-fr-pill.active { background-color: var(--tmb-switch-on) !important; color: white !important; }
/* A choice that has nothing to show yet (After All-Star before the game is played) */
.tmb-fr-pill.tmb-fr-off { opacity: 0.45; cursor: not-allowed; }
.tmb-fr-i { color: var(--tmb-gray-500); font-size: 0.72rem; cursor: help; }
/* Two short rows on one line */
.tmb-fr-pair { display: flex; flex-wrap: wrap; gap: 0 10px; }
/* Each a column (label over choice): a wrapping row's own width is label + choice, and two of those did not fit a line */
.tmb-fr-pair > .tmb-fr { flex: 0 1 auto; flex-direction: column; flex-wrap: nowrap; align-items: flex-start; }
.tmb-fr-pair > .tmb-fr > .tmb-fr-label { flex: 0 0 auto; }
/* The Games slider */
.tmb-fr-slide { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; }
.tmb-fr-slide .tmb-fr-range { flex: 1 1 auto; min-width: 120px; max-width: 320px; margin: 0; accent-color: var(--tmb-switch-on); cursor: pointer; }
.tmb-fr-slide .tmb-fr-range:disabled { opacity: 0.5; cursor: default; }
.tmb-fr-val { flex: 0 0 auto; font-size: 0.72rem; font-weight: 600; color: var(--tmb-gray-700); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ===== Similar / Ranked: TMB.oppPanel (tmb-common.js), every panel's ===== */
.tmb-op { margin: -4px 0 12px; padding: 10px; background: var(--tmb-gray-100); border: 1px solid var(--tmb-gray-300); border-radius: 8px; }
.tmb-op .tmb-fr-seg { background: var(--tmb-surface); }
/* The position switch over a stat list (Player Props, Player Search) */
.tmb-op-switch { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 0.75rem; font-weight: 600; color: var(--tmb-gray-700); cursor: pointer; }
.tmb-op-switch input { margin: 0; accent-color: var(--tmb-switch-on); }
.tmb-op-title { margin-bottom: 6px; font-size: 0.78rem; font-weight: 700; color: var(--tmb-gray-900); }
.tmb-op-sub { margin-top: 6px; font-size: 0.7rem; line-height: 1.35; color: var(--tmb-gray-600); }
.tmb-op-warn { color: var(--tmb-red); }
.tmb-op-row { margin: 8px 0 0; }
.tmb-op-count { flex-wrap: nowrap; }
.tmb-op-count > .tmb-fr-label { flex: 0 0 auto; }
.tmb-op-count .tmb-fr-slide { flex: 1 1 auto; }
.tmb-op-count .tmb-fr-range { min-width: 100px; max-width: 260px; }
/* The stats ticked (Similar) */
.tmb-op-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.tmb-op .tmb-op-chip {
    margin: 0; padding: 2px 8px; font-size: 0.72rem; line-height: 1.4; color: white; cursor: pointer; box-shadow: none;
    background: var(--tmb-switch-on) !important; border: none; border-radius: 10px;
}
.tmb-op .tmb-op-chip i { margin-left: 3px; font-size: 0.6rem; opacity: 0.85; }
/* The stats picked (Ranked), each with its own High / Low */
.tmb-op-rks { display: flex; flex-direction: column; gap: 3px; margin-bottom: 6px; }
.tmb-op-rk { display: flex; align-items: center; gap: 6px; padding: 2px 4px 2px 8px; font-size: 0.75rem; color: var(--tmb-navy-700); background: var(--tmb-blue-50); border: 1px solid var(--tmb-blue-200); border-radius: 8px; }
.tmb-op-rk-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tmb-op-rk .tmb-fr-seg { padding: 1px; }
.tmb-op .tmb-op-rk .tmb-fr-pill.tmb-fr-pill { padding: 1px 8px; font-size: 0.7rem; }
.tmb-op .tmb-op-x { margin: 0; padding: 0 2px; font-size: 0.65rem; color: var(--tmb-gray-600); cursor: pointer; background: none !important; border: 0; box-shadow: none; }
.tmb-op .tmb-op-x:hover { color: var(--tmb-red); }
/* The stat list: search, then a row a stat with 0, 1 or 2 teams' figures (place in rankcolor) */
.tmb-op .tmb-op-q.tmb-search { --tmb-search-h: 30px; --tmb-search-font: 13px; width: 100%; margin: 6px 0 0; }   /* the box is .tmb-search (styles/search-box.css), compact in the panel */
.tmb-op-list { max-height: 260px; overflow-y: auto; margin-top: 6px; padding-right: 2px; background: var(--tmb-surface); border: 1px solid var(--tmb-gray-300); border-radius: 4px; padding: 2px 6px 4px; }
.tmb-op-lhead, .tmb-op-opt { display: grid; align-items: center; gap: 6px; }
.tmb-op-c0 .tmb-op-lhead, .tmb-op-c0 .tmb-op-opt { grid-template-columns: minmax(0, 1fr); }
.tmb-op-c1 .tmb-op-lhead, .tmb-op-c1 .tmb-op-opt { grid-template-columns: minmax(0, 1fr) 76px; }
.tmb-op-c2 .tmb-op-lhead, .tmb-op-c2 .tmb-op-opt { grid-template-columns: minmax(0, 1fr) 76px 76px; }
.tmb-op-list-rk.tmb-op-c0 .tmb-op-lhead, .tmb-op-list-rk.tmb-op-c0 .tmb-op-opt { grid-template-columns: minmax(0, 1fr) 68px; }
.tmb-op-list-rk.tmb-op-c1 .tmb-op-lhead, .tmb-op-list-rk.tmb-op-c1 .tmb-op-opt { grid-template-columns: minmax(0, 1fr) 64px 68px; }
.tmb-op-list-rk.tmb-op-c2 .tmb-op-lhead, .tmb-op-list-rk.tmb-op-c2 .tmb-op-opt { grid-template-columns: minmax(0, 1fr) 60px 60px 68px; gap: 4px; }
.tmb-op-lhead { position: sticky; top: 0; z-index: 1; padding: 2px 5px; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; color: var(--tmb-gray-600); background: var(--tmb-surface); }
.tmb-op-lhead > span:not(:first-child) { text-align: center; }
.tmb-op-g { margin: 6px 0 2px; font-size: 0.64rem; font-weight: 700; text-transform: uppercase; color: var(--tmb-gray-600); }
.tmb-op .tmb-op-opt { margin: 0 -5px; padding: 3px 5px; font-size: 0.74rem; font-weight: 400; color: var(--tmb-gray-900); border-radius: 4px; cursor: pointer; transition: background 0.12s; }
.tmb-op .tmb-op-opt:hover { background: color-mix(in srgb, var(--tmb-switch-on) 8%, transparent); }
.tmb-op .tmb-op-opt.on { font-weight: 600; background: color-mix(in srgb, var(--tmb-switch-on) 12%, transparent); }
.tmb-op-list-rk .tmb-op-opt { cursor: default; }
.tmb-op-name { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tmb-op-name input { flex: 0 0 auto; margin: 0; accent-color: var(--tmb-switch-on); }
.tmb-op-v { padding: 1px 4px; font-size: 0.7rem; font-weight: 600; text-align: center; white-space: nowrap; border-radius: 4px; font-variant-numeric: tabular-nums; }
.tmb-op-v small { font-size: 0.62rem; font-weight: 500; opacity: 0.8; }
.tmb-op-none { color: var(--tmb-gray-500); font-weight: 400; }
.tmb-fr-seg.tmb-op-mini { justify-self: end; padding: 1px; }
.tmb-op .tmb-op-mini .tmb-fr-pill.tmb-fr-pill { padding: 0 5px; font-size: 0.6rem; line-height: 1.35; }
.tmb-op-result { margin-top: 8px; font-size: 0.72rem; line-height: 1.35; color: var(--tmb-gray-700); }

/* ===== The TOP BAR: TMB.filterPanel's bar across the page (BETA: feature
   filter_top_bar; Zach, 2026-11-30). A button a section, each opening that
   section of the page's own filters in a pop-out; pinned under the site's
   sticky bars once scrolled past, the page's header condensed over it. ===== */
.tmb-ft-slot { margin: 12px 0 16px; }
.tmb-ft-slot[hidden] { display: none; }
/* On a dashboard: laid over the gap kept open under the game header widget (topFloat(), tmb-common.js) */
.tmb-ft-slot.tmb-ft-float { position: absolute; z-index: 30; margin: 0; }
.tmb-ft-gap { margin-top: 12px; }
.tmb-ft {
    position: relative; z-index: 30; background: var(--tmb-surface);
    border: 1px solid var(--tmb-gray-300); border-radius: 10px; box-shadow: 0 4px 18px var(--tmb-black-5);
}
/* Pinned: the page's full width, its contents kept in line with the page's (--ft-pad-*, topPlace()) */
/* Pinned, the page does not rubber-band (Zach, 2026-11-30): the page scrolls in
   <body>, so an elastic overscroll moved the sticky sport bar while the fixed
   header and this bar stayed, and the page showed between them. */
html.tmb-ft-pin, html.tmb-ft-pin body { overscroll-behavior-y: none; }
/* Pinned right under them, the sticky bars above drop their shadow: it fell over the
   bar's top edge (Zach, 2026-12-01). The pinned bar casts its own below. */
html.tmb-ft-pin .tmb-sport-bar, html.tmb-ft-pin #mdb-toolbar { box-shadow: none !important; }
.tmb-ft.tmb-ft-pinned { position: fixed; z-index: 39; border-width: 0 0 1px; border-radius: 0; box-shadow: 0 8px 18px var(--tmb-black-15); }
/* Two bars pinned at once stack (topStack()); a bar whose pop-out is open sits over the one under it */
.tmb-ft.tmb-ft-pinned:has(> .tmb-ft-pop:not([hidden])) { z-index: 40; }
/* Minimize a pinned bar to one thin full-width line (Zach, 2026-12-01). Unpinned, the bar is
   always whole; only where a second bar is on the page (.tmb-ft-multi, topPlace()). */
.tmb-ft-minbtn, .tmb-ft-minrow { display: none; }
.tmb-ft.tmb-ft-pinned.tmb-ft-multi .tmb-ft-minbtn {
    display: inline-flex; align-items: center; justify-content: center; order: 999; margin-left: auto; align-self: center;
    width: 26px; height: 26px; padding: 0; border: 1px solid var(--tmb-gray-300); border-radius: 6px;
    background: var(--tmb-surface, #fff); color: var(--tmb-gray-600); font-size: 11px; cursor: pointer;
}
.tmb-ft.tmb-ft-pinned .tmb-ft-minbtn:hover { color: var(--tmb-gray-900); border-color: var(--tmb-gray-400); }
.tmb-ft.tmb-ft-pinned.tmb-ft-multi.tmb-ft-min > :not(.tmb-ft-minrow) { display: none !important; }
.tmb-ft.tmb-ft-pinned.tmb-ft-multi.tmb-ft-min .tmb-ft-minrow { display: flex; padding: 0; }
/* Folding and unfolding are animated (topSetMin(), tmb-common.js, 500ms), a CROSS-fade so the
   dark header never flashes to white on its way to the light row (Zach, 2026-12-01): folding,
   the bar's rows fade out as the thin row fades in over its foot; unfolding, the thin row
   fades out over its top as the rows fade in. */
.tmb-ft.tmb-ft.tmb-ft-folding > :not(.tmb-ft-minrow) { animation: tmbFtFadeOut 500ms ease forwards; }   /* doubled: beats the header's own rule below */
.tmb-ft.tmb-ft-folding > .tmb-ft-minrow { display: flex; position: absolute; left: 0; right: 0; bottom: 0; animation: tmbFtFadeIn 500ms ease; }
.tmb-ft.tmb-ft-unfolding > :is(.tmb-ft-mini, .tmb-ft-main, .tmb-ft-sum) { animation: tmbFtFadeIn 500ms ease; }
.tmb-ft.tmb-ft-unfolding > .tmb-ft-minrow { display: flex; position: absolute; left: 0; right: 0; top: 0; animation: tmbFtFadeOut 500ms ease forwards; }
/* The condensed header eases open as it appears over a pinned bar, and closed as it goes
   (.tmb-ft-mini-out, topPlace()), every page */
.tmb-ft .tmb-ft-mini:not([hidden]) { overflow: hidden; animation: tmbFtMiniIn 450ms ease; }
.tmb-ft .tmb-ft-mini.tmb-ft-mini-out { animation: tmbFtMiniOut 450ms ease forwards; }
/* ...and what it holds slides down with its foot, up with it as it goes (Zach, 2026-12-02: every
   sticky header as the app's Player Props line). .tmb-ft-mini-in is set as it opens (topPlace()),
   so a redraw of its text while shown does not slide it again. */
.tmb-ft .tmb-ft-mini.tmb-ft-mini-in > * { animation: tmbMiniSlideIn 450ms ease; }
.tmb-ft .tmb-ft-mini.tmb-ft-mini-out > * { animation: tmbMiniSlideOut 450ms ease forwards; }
@keyframes tmbMiniSlideIn { from { transform: translateY(-40px); } to { transform: none; } }
@keyframes tmbMiniSlideOut { from { transform: none; } to { transform: translateY(-40px); } }
@media (prefers-reduced-motion: reduce) { .tmb-ft-mini, .tmb-ft-mini > * { animation: none !important; } }
@keyframes tmbFtMiniIn { from { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; } to { max-height: 120px; padding-top: 7px; padding-bottom: 7px; opacity: 1; } }
@keyframes tmbFtMiniOut { from { max-height: 120px; padding-top: 7px; padding-bottom: 7px; opacity: 1; } to { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; } }
/* Let go back into the page, it slides into its place (topLand()) and its rows fade in */
.tmb-ft.tmb-ft-landing > :is(.tmb-ft-main, .tmb-ft-sum) { animation: tmbFtFadeIn 450ms ease; }
@keyframes tmbFtFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes tmbFtFadeOut { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tmb-ft .tmb-ft-minrow, .tmb-ft > * { animation: none !important; transition: none !important; } }
.tmb-ft-minopen {
    display: flex; align-items: center; gap: 7px; width: 100%; height: 24px; margin: 0 !important;   /* the site's button rules add a bottom margin */
    padding: 0 var(--ft-pad-r, 14px) 0 var(--ft-pad-l, 14px); border: 0; border-radius: 0; box-shadow: none;
    background: var(--tmb-gray-100) !important; color: var(--tmb-gray-700); font-size: 12px; font-weight: 600; text-align: left; cursor: pointer;
}
.tmb-ft-minopen:hover { color: var(--tmb-gray-900); background: var(--tmb-gray-300) !important; }
.tmb-ft-minopen .fa-sliders-h { font-size: 11px; color: var(--tmb-gray-600); }
.tmb-ft-minopen .fa-chevron-down { margin-left: auto; font-size: 10px; color: var(--tmb-gray-500); }
.tmb-ft-mincount:not(:empty) { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--tmb-switch-on, var(--tmb-blue)); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
/* No inset of its own there: what it holds starts at the page's edge, under the menu button (Zach, 2026-11-30) */
.tmb-ft.tmb-ft-pinned .tmb-ft-main, .tmb-ft.tmb-ft-pinned .tmb-ft-mini { padding-left: var(--ft-pad-l, 0px); padding-right: var(--ft-pad-r, 0px); }
.tmb-ft-main { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 9px 14px; }
.tmb-ft-inl, .tmb-ft-btns { display: contents; }

/* A section's button. Doubled class + !important: front.css paints every button. */
.tmb-ft .tmb-ft-b.tmb-ft-b {
    margin: 0 !important; box-shadow: none; cursor: pointer; text-align: left; line-height: 1.25;
    font-size: 0.84rem; color: var(--tmb-gray-900); background: transparent !important;
    border: 1px solid transparent; border-radius: 8px;
}
.tmb-ft .tmb-ft-b.tmb-ft-b:hover { background: var(--tmb-gray-100) !important; border-color: var(--tmb-gray-300); }
.tmb-ft .tmb-ft-b.tmb-ft-b.open { background: color-mix(in srgb, var(--tmb-switch-on) 8%, transparent) !important; border-color: var(--tmb-switch-on); }
/* 'field': its label over its value */
.tmb-ft .tmb-ft-b.tmb-ft-field { display: inline-flex; flex-direction: column; gap: 1px; min-width: 128px; padding: 5px 10px; }
.tmb-ft-k { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--tmb-gray-600); }
.tmb-ft-v { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; white-space: nowrap; }
.tmb-ft-car { font-size: 0.58rem; color: var(--tmb-gray-600); }
.tmb-ft .tmb-ft-b.set .tmb-ft-vt { color: var(--tmb-switch-on); }
/* 'text': a plain green label, its choice beside it once set */
.tmb-ft .tmb-ft-b.tmb-ft-text { display: inline-flex; align-items: center; gap: 7px; padding: 9px 9px; font-weight: 600; color: var(--tmb-switch-on); white-space: nowrap; }
.tmb-ft-tv { max-width: 170px; overflow: hidden; text-overflow: ellipsis; font-weight: 400; color: var(--tmb-gray-700); }
.tmb-ft .tmb-ft-b.tmb-ft-more { display: inline-flex; align-items: center; gap: 8px; margin-left: auto !important; padding: 9px 12px; font-weight: 600; white-space: nowrap; border-color: var(--tmb-gray-300); }
.tmb-ft-n { min-width: 20px; padding: 1px 6px; font-size: 0.7rem; font-weight: 700; text-align: center; color: var(--tmb-gray-700); background: var(--tmb-gray-100); border-radius: 6px; }
.tmb-ft-n.on { color: white; background: var(--tmb-switch-on); }
/* Save: an icon before the Saved menu, on every page (Zach, 2026-11-30; it was a star after it) */
.tmb-ft .tmb-ft-b.tmb-ft-save {
    display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; font-size: 0.95rem;
    color: var(--tmb-switch-on); border-color: var(--tmb-gray-300);
}

/* The Saved menu in the bar (an 'inline' section): the mock's preset button */
.tmb-ft-inl > * { flex: 0 0 auto; margin: 0 !important; }
/* A row that is only a switch sits in the bar itself (Zach, 2026-11-30): its
   label over its choices, the size of a 'field' button, no pop-out */
.tmb-ft-inl > .tmb-fr { display: inline-grid; grid-template-columns: repeat(4, auto); align-items: center; justify-content: start; gap: 2px 6px; padding: 3px 6px; }
.tmb-ft-inl > .tmb-fr > .tmb-fr-label { grid-column: 1 / -1; }
.tmb-ft-inl > .tmb-fr > .tmb-fr-label { flex: 0 0 auto; font-size: 0.62rem; letter-spacing: 0.07em; }
/* A bar that holds such a row is two lines everywhere (Zach, 2026-11-30): the
   small labels (GAME WINDOW, PERIOD, INJURIES) on one line, and under them the
   value, the switches and the text buttons (Opponent profile, Coming off) on one. */
.tmb-ft-main:has(.tmb-ft-inl > .tmb-fr) { align-items: flex-end; --ft-row: 30px; padding-bottom: 15px; }   /* as much room under the second line as over the labels */
.tmb-ft-main:has(.tmb-ft-inl > .tmb-fr) .tmb-ft-inl > .tmb-fr { padding: 4px 6px 0; gap: 3px 0; }
.tmb-ft-inl > .tmb-fr > :not(.tmb-fr-label):not(.tmb-fr-seg) { margin-left: 6px; }
.tmb-ft-main:has(.tmb-ft-inl > .tmb-fr) .tmb-fr-label, .tmb-ft-main:has(.tmb-ft-inl > .tmb-fr) .tmb-ft-k { line-height: 1.25; }
.tmb-ft-main:has(.tmb-ft-inl > .tmb-fr) .tmb-ft-inl > .tmb-fr > .tmb-fr-seg { min-height: var(--ft-row); align-items: stretch; } /* stretch: the pills fill the switch's height, the same 2px all round */
.tmb-ft .tmb-ft-main:has(.tmb-ft-inl > .tmb-fr) .tmb-ft-b.tmb-ft-field { padding: 4px 10px 0; gap: 3px; }
.tmb-ft-main:has(.tmb-ft-inl > .tmb-fr) .tmb-ft-field .tmb-ft-v { min-height: var(--ft-row); }
.tmb-ft .tmb-ft-main:has(.tmb-ft-inl > .tmb-fr) .tmb-ft-b.tmb-ft-text { height: var(--ft-row); padding-top: 0; padding-bottom: 2px; }
.tmb-ft .tsf-bar { margin: 0; flex-wrap: nowrap; }
.tmb-ft .tsf-save-btn { display: none; }   /* the bar's own save icon saves (.tmb-ft-save) */
.tmb-ft .tsf-menu-btn, .tmb-ft .ps-saved-toggle {
    min-width: 168px; height: 40px; padding: 0 12px; font-size: 0.84rem; font-weight: 600; margin: 0 !important;
    color: var(--tmb-switch-on); background: var(--tmb-good-7) !important; border: 1px solid var(--tmb-good-5); border-radius: 8px;
}
.tmb-ft .tsf-menu { min-width: 240px; right: auto; }

/* The second line: what is set, Reset, what the filters reach */
.tmb-ft-sum { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-height: 38px; padding: 6px 14px; border-top: 1px solid var(--tmb-gray-300); font-size: 0.72rem; }
/* Pinned, the line stays while a filter is set (Zach, 2026-12-01: what is selected
   shows under the pinned bar too); with none set it is left out, to keep the bar short. */
.tmb-ft.tmb-ft-pinned .tmb-ft-sum:has(.tmb-ft-none) { display: none; }
.tmb-ft.tmb-ft-pinned .tmb-ft-sum { min-height: 0; padding: 5px var(--ft-pad-r, 0px) 5px var(--ft-pad-l, 0px); }
.tmb-ft-chips { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
:is(.tmb-ft, .tmb-fp-mchips) .tmb-ft-chip {
    margin: 0 !important; padding: 3px 8px; font-size: 0.72rem; line-height: 1.35; cursor: pointer; box-shadow: none;
    color: var(--tmb-gray-700); background: var(--tmb-gray-100) !important; border: 1px solid var(--tmb-gray-300); border-radius: 5px;
}
:is(.tmb-ft, .tmb-fp-mchips) .tmb-ft-chip.set { color: var(--tmb-switch-on); background: var(--tmb-good-7) !important; border-color: var(--tmb-good-5); }
:is(.tmb-ft, .tmb-fp-mchips) .tmb-ft-chip span { color: var(--tmb-gray-600); }
.tmb-ft-none { color: var(--tmb-gray-600); }
/* A chip with its x: the words open the filter, the x takes it off */
:is(.tmb-ft, .tmb-fp-mchips) .tmb-ft-chip.tmb-ft-chip-x { display: inline-flex; align-items: center; padding: 0; cursor: default; }
:is(.tmb-ft, .tmb-fp-mchips) .tmb-ft-chip-x button { min-height: 0; margin: 0 !important; padding: 3px 3px 3px 8px; font: inherit; line-height: 1.35; color: inherit; cursor: pointer; background: none !important; border: 0; border-radius: 5px; box-shadow: none; }
:is(.tmb-ft, .tmb-fp-mchips) .tmb-ft-chip-x .tmb-ft-chip-off { padding: 3px 7px 3px 3px; font-size: 0.9rem; line-height: 1; color: var(--tmb-gray-600); }
:is(.tmb-ft, .tmb-fp-mchips) .tmb-ft-chip-x .tmb-ft-chip-off:hover { color: var(--tmb-gray-900); }
/* A phone: the same chips in the site's sticky bar, under the Filters pill (mobileChips, tmb-common.js) */
.tmb-fp-mchips { display: flex; flex: 0 0 100%; flex-wrap: wrap; align-items: center; gap: 6px; width: 100%; margin-top: 8px; }
.tmb-fp-mchips[hidden] { display: none; }
/* The bar lists each Similar / Ranked pick in that row: not again in the pop-out */
.tmb-ft-pop-body .tmb-op-chips:has(.tmb-op-chip), .tmb-ft-pop-body .tmb-op-rks { display: none; }
.tmb-ft .tmb-ft-reset { margin: 0 !important; padding: 3px 6px; font-size: 0.74rem; color: var(--tmb-gray-700); cursor: pointer; background: none !important; border: 0; box-shadow: none; }
.tmb-ft .tmb-ft-reset:hover:not(:disabled) { color: var(--tmb-gray-900); text-decoration: underline; }
.tmb-ft .tmb-ft-reset:disabled { opacity: 0.45; cursor: default; }
.tmb-ft-note { margin-left: auto; color: var(--tmb-gray-600); white-space: nowrap; }
.tmb-ft-note i { cursor: help; }

/* The page's header, condensed, over the pinned bar */
.tmb-ft-mini {
    display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; padding: 7px 14px; font-size: 0.84rem;
    color: white; background: var(--tmb-game-header-bg);
}
.tmb-ft-mini[hidden] { display: none; }
.tmb-ft-mini img { width: 22px; height: 22px; object-fit: contain; vertical-align: middle; }
.tmb-ft-mini img.tmb-ft-mini-face { width: 26px; height: 26px; object-fit: cover; object-position: top; border-radius: 50%; background: var(--tmb-white-20); }   /* a player's headshot (Player Props) */
.tmb-ft-mini-t { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.92rem; white-space: nowrap; }
.tmb-ft-mini-sub { font-weight: 400; color: var(--tmb-white-70); }
.tmb-ft-mini-kv { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.tmb-ft-mini-kv span { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tmb-white-70); }
.tmb-ft-mini-kv b { font-weight: 700; font-variant-numeric: tabular-nums; }
.tmb-ft-mini-r { margin-left: auto; color: var(--tmb-white-70); white-space: nowrap; }

/* A section's pop-out */
.tmb-ft-pop {
    position: absolute; z-index: 2; display: flex; flex-direction: column; background: var(--tmb-surface);
    border: 1px solid var(--tmb-gray-300); border-radius: 10px; box-shadow: 0 12px 30px var(--tmb-black-20);
}
.tmb-ft-pop[hidden] { display: none; }
.tmb-ft-pop-body { flex: 1 1 auto; overflow-y: auto; padding: 12px 12px 2px; }
/* A section of ONE labelled row: its label (the panel's word: Period, Where)
   only repeats the button's. Several rows keep theirs (data-ft-single, topPop()). */
.tmb-ft-pop[data-ft-single]:not([data-ft-open="more"]) .tmb-ft-pop-body [data-ft-sec].tmb-ft-on > .tmb-fr-label { display: none; }
/* Only the open section's units show; the rest of the content stays where it is, unseen. */
.tmb-ft-pop-body [data-ft-sec]:not(.tmb-ft-on) { display: none !important; }

/* The Injuries players: ONE row across every page's top bar (TMB.filterBar.players(),
   tmb-common.js; Zach, 2026-12-01), between the buttons and the summary line,
   shown while it holds players (Injuries on). A team a line. Pinned, left out.
   The pills are .injury-pill (player-injury-common.css). */
.tmb-ft-players { border-top: 1px solid var(--tmb-gray-300); padding: 6px 14px 2px; }
.tmb-ft-players:empty, .tmb-ft-players[hidden],
.tmb-ft-players:has(> .injury-pill-strip[style*="none"]),
.tmb-ft.tmb-ft-pinned .tmb-ft-players { display: none; }
.tmb-ft-players, .tmb-ft-players > .injury-pill-strip { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; }
.tmb-ft-players > .injury-pill-strip { grid-column: 1 / -1; display: grid !important; padding: 0; }
.tmb-ft-players .team-pills-label { margin: 0; font-size: 0.68rem; font-weight: 700; color: var(--tmb-gray-700); white-space: nowrap; }
.tmb-ft-players .team-pills-row { display: flex; flex-wrap: wrap; margin: 0; gap: 4px; }
.tmb-ft-players .injury-pill { padding: 2px 7px; font-size: 0.66rem; }
.tmb-ft-players .injury-pill-strip > :not(.team-pills-label):not(.team-pills-row) { grid-column: 1 / -1; }
.tmb-ft-players-flash { animation: tmb-ft-players-flash 1.2s ease-in-out 1; }
@keyframes tmb-ft-players-flash {
    0%, 100% { background: transparent; box-shadow: none; }
    40% { background: var(--tmb-good-7); box-shadow: inset 0 0 0 2px var(--tmb-switch-on); }
}
