/* Gig Media (custom_899). Touch targets 44px for the iPad; follows the
   theme's tool colours where it sets them. No :has(), no newer selectors. */
.gm-bar, .gm-players, .gm-pair, .gm-chips, .gm-table, .gm-tools { --gm-edge: var(--tool-border, #4a4740); --gm-accent: var(--tool-accent, #e8c760); }
.gm-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.gm-btn {
  display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box;
  padding: 6px 14px; border: 1px solid var(--gm-edge); border-radius: 4px;
  color: inherit; font-size: 15px; text-decoration: none; background: transparent;
}
.gm-btn:hover, .gm-btn:focus-visible { border-color: var(--gm-accent); color: var(--gm-accent); outline: none; }
.gm-btn--back { font-weight: 600; }
.gm-btn--go { border-color: var(--gm-accent); }
.gm-h { margin: 22px 0 8px; font-size: 1.15em; }
.gm-dim { opacity: 0.75; font-size: 0.92em; }
.gm-note { padding: 8px 12px; border-left: 3px solid var(--tool-accent, #e8c760); background: rgba(232, 199, 96, 0.08); }
.gm-facts { font-weight: 600; margin: 0 0 6px; }
.gm-warn { margin: 6px 0; padding: 8px 12px 8px 28px; border-left: 3px solid #d65a4a; background: rgba(214, 90, 74, 0.08); }
.gm-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gm-table { width: 100%; min-width: 640px; border-collapse: collapse; }
.gm-table td, .gm-table th { padding: 6px 8px; vertical-align: top; border-bottom: 1px solid var(--gm-edge); }
/* custom_900 (Jay's Inbox screenshot: no pictures, a wide empty column on
   the left, the words squeezed into narrow columns). The theme gives every
   img max-width: 100% (global.css), which lets a table squeeze these
   pictures (seen in Chrome: 96 px down to about 60). Pictures here keep their
   size, and the tables have set column widths so the words get the room. */
.gm-thumb { width: 96px; max-width: none; height: 54px; object-fit: cover; border-radius: 3px; display: block; background: #000; }
.gm-table--fixed { table-layout: fixed; }
.gm-table--fixed th.select-all, .gm-table--fixed th.checkbox, .gm-table--fixed .gm-col-check { width: 44px; text-align: center; }
.gm-table--fixed .gm-col-thumb { width: 108px; }
.gm-table--fixed .gm-col-yt { width: 34%; }
.gm-table--fixed .gm-col-ops { width: 104px; }
.gm-table--fixed .gm-col-kind { width: 15%; }
.gm-table--fixed .gm-col-who { width: 17%; }
.gm-table--fixed .gm-col-len { width: 64px; }
.gm-table--fixed td { overflow-wrap: anywhere; }
.gm-thumb--big { width: 192px; max-width: 100%; height: 108px; }
.gm-edit-head { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; }
.gm-ops a { white-space: nowrap; }
.gm-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 10px; }
.gm-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 10px; border: 1px solid var(--gm-edge); border-radius: 18px; font-size: 13px; text-decoration: none; color: inherit; }
.gm-chip.is-on { border-color: var(--gm-accent); color: var(--gm-accent); box-shadow: inset 0 -2px 0 var(--gm-accent); }
.gm-chip-sep { width: 8px; }
.gm-st { display: inline-block; padding: 1px 8px; border-radius: 10px; border: 1px solid var(--gm-edge); font-size: 12px; white-space: nowrap; }
.gm-st--keep, .gm-st--clips { border-color: var(--tool-accent, #e8c760); }
.gm-st--dump { border-color: #d65a4a; }
.gm-st--done, .gm-st--none { opacity: 0.7; }
.gm-copyline { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gm-copyline code { word-break: break-all; }
.gm-copyline--big { font-size: 1.05em; margin: 0 0 4px; }
.gm-mini { min-height: 32px; min-width: 44px; padding: 2px 10px; border: 1px solid var(--gm-edge, #4a4740); border-radius: 4px; background: transparent; color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.gm-mini:hover, .gm-mini.is-done { border-color: var(--tool-accent, #e8c760); color: var(--tool-accent, #e8c760); }
.gm-danger:hover, .gm-danger:focus-visible { border-color: #d65a4a !important; color: #d65a4a !important; }
.gm-pair { margin: 0 0 18px; padding: 10px 12px; border: 1px solid var(--gm-edge); border-radius: 6px; }
.gm-pair__label { font-weight: 600; margin: 0 0 6px; }
.gm-field { margin: 0 0 8px; }
.gm-field__top { display: flex; gap: 8px; align-items: center; margin: 0 0 3px; font-size: 13px; }
.gm-field__top span:first-child { margin-right: auto; opacity: 0.8; }
.gm-text { width: 100%; box-sizing: border-box; padding: 6px 8px; font: inherit; font-size: 14px; border: 1px solid var(--tool-border, #4a4740); border-radius: 4px; background: rgba(0, 0, 0, 0.15); color: inherit; }
.gm-count { font-size: 12px; opacity: 0.8; }
.gm-count.is-over { color: #d65a4a; opacity: 1; font-weight: 600; }
.gm-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.gm-chtable td { vertical-align: middle; }
.gm-radios .form-item { margin: 2px 0; }

/* Players: show page and song page. */
.gm-players { margin: 1.5em 0; }
.gm-players__h { margin: 0 0 10px; }
.gm-player { margin: 0 0 18px; max-width: 860px; }
.gm-player__screen {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 6px;
  overflow: hidden; background: #000; cursor: pointer;
}
@supports not (aspect-ratio: 16 / 9) { .gm-player__screen { height: 0; padding-bottom: 56.25%; } }
.gm-player__screen img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.gm-player__btn {
  position: absolute; top: 50%; left: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px;
  background: rgba(0, 0, 0, 0.72); color: #fff; font-size: 24px; line-height: 48px; text-align: center;
}
.gm-player__screen:hover .gm-player__btn, .gm-player__screen:focus-visible .gm-player__btn { background: #c4302b; }
.gm-player__len { position: absolute; right: 8px; bottom: 8px; padding: 1px 6px; border-radius: 3px; background: rgba(0, 0, 0, 0.8); color: #fff; font-size: 12px; }
.gm-player__frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 6px; background: #000; }
@supports not (aspect-ratio: 16 / 9) { .gm-player__frame { height: 56vw; max-height: 484px; } }
.gm-player__meta { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; margin: 6px 0 0; }
.gm-player__title { font-weight: 600; }
.gm-player__sub { opacity: 0.8; font-size: 0.92em; }
.gm-player__yt { margin-left: auto; font-size: 0.9em; }
.gm-badge { padding: 1px 8px; border: 1px solid var(--gm-edge); border-radius: 10px; font-size: 12px; }
.gm-chapters { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gm-chapter { min-height: 36px; padding: 4px 10px; border: 1px solid var(--gm-edge); border-radius: 4px; background: transparent; color: inherit; font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.gm-chapter:hover, .gm-chapter:focus-visible { border-color: var(--gm-accent); color: var(--gm-accent); outline: none; }
.gm-chapter__t { opacity: 0.75; font-variant-numeric: tabular-nums; margin-right: 4px; }
.gm-manage { margin: 6px 0 0; font-size: 0.92em; }
@media (max-width: 640px) { .gm-thumb--big { width: 144px; height: 81px; } .gm-player__yt { margin-left: 0; } }

/* custom_901: the Inbox's tick buttons (Drupal's checkboxes were drawn out
   of place and couldn't be ticked). 40 px box; the whole row is a target. */
.gm-table--pick tbody tr { cursor: pointer; }
.gm-table--pick tbody tr.is-picked td { background: rgba(232, 199, 96, 0.10); }
.gm-pick {
  position: static; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin: 0; padding: 0; box-sizing: border-box;
  border: 0; background: transparent; cursor: pointer; color: inherit;
}
.gm-pick span {
  display: block; width: 22px; height: 22px; box-sizing: border-box;
  border: 2px solid var(--tool-border, #8a857a); border-radius: 4px; position: relative;
}
.gm-pick[aria-pressed="true"] span { background: var(--tool-accent, #e8c760); border-color: var(--tool-accent, #e8c760); }
.gm-pick[aria-pressed="true"] span::after {
  content: ""; position: absolute; left: 6px; top: 1px; width: 6px; height: 12px;
  border: solid #1a1a1a; border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.gm-pick:focus-visible { outline: 2px solid var(--tool-accent, #e8c760); outline-offset: -2px; }
.gm-table--fixed .gm-col-check { width: 52px; padding-left: 4px; padding-right: 4px; }

/* custom_902: why nothing (or not everything) was suggested. */
.gm-why { display: inline-block; margin-top: 2px; font-size: 0.9em; color: var(--tool-accent, #e8c760); }
.gm-find-count { margin-top: 2px; }
