/* style — the gallery's Change frame rate box (js/panel/44n-gallery-frame-rate.js) and the
   25 fps warning on a clip's tile (js/panel/47j-gallery-fps-badge.js).   (GALLERY FRAME RATE)
   Simon, 17 Nov 2026: "lets add a change frame rate option when right clicking video in gallery";
   14:08: "can we have a little warning on items in gallery when they are 25fps".
   The box is in the frame of Retime's (48d-gallery-retime.css): the same veil, card, head and foot. */
#galfps {
  position: fixed; inset: 0; z-index: 430;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6, 6, 8, .72); backdrop-filter: blur(3px);
  padding: 16px;
}
#galfps .gfr-card {
  width: min(420px, 100%); max-height: 100%; overflow: auto;
  display: flex; flex-direction: column; gap: 10px;
  background: #141418; border: 1px solid var(--border); border-radius: 6px;
  padding: 12px 14px; box-shadow: 0 24px 64px rgba(0, 0, 0, .7);
}
#galfps .gfr-head { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
#galfps .gfr-title { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text); white-space: nowrap; }
#galfps .gfr-name { flex: 1 1 auto; min-width: 0; font-size: 11.5px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#galfps .gfr-x { background: none; border: none; color: var(--text-dim); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 2px; }
#galfps .gfr-x:hover { color: var(--text); }
#galfps .gfr-src { font-size: 11px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
#galfps .gfr-src .gfr-cur { color: var(--text); font-weight: 600; }
#galfps .gfr-src .gfr-cur.vfr { color: var(--warn, #ffd35a); }
#galfps .gfr-src.bad, #galfps .gfr-msg { color: #ff6b81; }
#galfps .gfr-lbl { font-size: 11px; color: var(--text-dim); margin-bottom: -4px; }
#galfps .gfr-ts { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 5px; }
#galfps .gfr-t {
  position: relative; padding: 6px 0 5px; font: inherit; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--text); background: var(--card, #1d1d22); border: 1px solid var(--border); border-radius: 4px; cursor: pointer;
}
#galfps .gfr-t:hover { border-color: var(--accent); }
#galfps .gfr-t.on { background: var(--accent); border-color: var(--accent); color: #fff; }
/* the clip's current rate: a small "now" under the number */
#galfps .gfr-t.cur { padding-bottom: 13px; }
#galfps .gfr-t.cur::after {
  content: 'now'; position: absolute; left: 0; right: 0; bottom: 2px;
  font-size: 8.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim);
}
#galfps .gfr-t.cur.on::after { color: rgba(255, 255, 255, .8); }
#galfps .gfr-ms { display: flex; flex-direction: column; gap: 4px; }
#galfps .gfr-m { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; font-size: 12px; color: var(--text); }
#galfps .gfr-m input { margin: 2px 0 0; accent-color: var(--accent); }
#galfps .gfr-m span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
#galfps .gfr-m b { font-weight: 600; }
#galfps .gfr-m i { font-style: normal; font-size: 10.5px; color: var(--text-dim); }
#galfps .gfr-sub { display: flex; align-items: center; gap: 6px; margin: 0 0 4px 22px; font-size: 11px; color: var(--text); cursor: pointer; }
#galfps .gfr-sub input { margin: 0; accent-color: var(--accent); }
#galfps .gfr-sub.off { opacity: .45; cursor: default; }
#galfps .gfr-warn { font-size: 10.5px; color: var(--warn, #ffd35a); }
#galfps .gfr-warn:empty { display: none; }
#galfps .gfr-len { font-size: 20px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; text-align: center; padding: 2px 0 0; }
#galfps .gfr-note { font-size: 10.5px; color: var(--text-dim); text-align: center; font-variant-numeric: tabular-nums; }
#galfps .gfr-makes { font-size: 10.5px; color: var(--text-dim); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#galfps .gfr-note:empty, #galfps .gfr-makes:empty { display: none; }
#galfps .gfr-foot { display: flex; align-items: center; gap: 8px; }
#galfps .gfr-msg { font-size: 11px; flex: 1 1 auto; min-width: 0; }
#galfps .gfr-go:disabled { opacity: .45; cursor: default; }

/* A clip having its frame rate changed: the tile says so, with its progress (as .gal-retiming does). */
.gal-item.gal-fpsing { border-color: var(--accent); }
.gal-item.gal-fpsing::before {
  content: attr(data-gfr);
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  padding: 5px 8px; font-size: 10.5px; color: #fff; pointer-events: none;
  background: rgba(10, 10, 14, .78); border-top: 1px solid var(--accent);
  animation: gal-rev-pulse 1.4s ease-in-out infinite;
}

/* THE 25 FPS WARNING. Top-left beside the type icon, where the 4K word sits (one seat right of it when both
   are there); the 4K word's hand -- small, heavy, no pill, a shadow for legibility -- in the warning amber.
   Under the hover action groups (z-index 2, and before them in the tile), so it never covers a button. */
.gal-item > .gfps25 {
  position: absolute; left: 35px; top: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 3px; padding: 0; margin: 0;
  background: none; border: none; cursor: pointer;
  font: inherit; font-size: 9px; font-weight: 800; letter-spacing: .4px; line-height: 1; white-space: nowrap;
  color: var(--warn, #ffd35a);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .95), 0 0 2px rgba(0, 0, 0, .8);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .85));
}
.gal-item > .gfps25 svg { width: 11px; height: 11px; flex: none; display: block; }
.gal-item > .gfps25:hover { color: #fff; }
.gal-item:has(> .gres) > .gfps25 { left: 58px; }
.gal-item:has(> .gtype.crop) > .gfps25 { left: 39px; top: 13px; }
/* GALLERY TILE OVERFLOW: on a cramped tile, the triangle alone -- and out of the way while its buttons are up */
.gal-item.gto-compact > .gfps25 .gfps25-t { display: none; }
.gal-item.gto-compact:hover > .gfps25 { opacity: 0; pointer-events: none; }
