/* view: frontier ----------------------------------------------------------
 * Twenty from the frontier (dev and local copies only, views/frontier.js):
 * light, the listener's side, the version page's row (a still, what it is,
 * the verbs). Tokens are listen.css's; nothing here defines a colour of its
 * own. The verbs wrap under the words on a phone.
 */

.fr-head {
  padding: 10px var(--gutter) 0;
}

.fr-title {
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.025em;
}

.fr-line {
  margin-top: 10px;
  font-size: var(--t-body);
  line-height: 1.4;
  color: var(--body-ink);
  text-wrap: pretty;
}

.fr-dev,
.fr-draws {
  margin-top: 4px;
  font-size: var(--t-meta);
  line-height: 1.35;
  color: var(--fg-muted);
}

.fr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.fr-actions .pill,
.fr-tools .pill {
  border-color: var(--accent);
  color: var(--accent);
  font-size: var(--t-small);
  padding: 0 14px;
}

.fr-play.is-play {
  background: var(--accent);
  color: var(--on-accent);
}

.fr-youtube {
  margin-top: 2px;
  font: 600 var(--t-meta) / 1.35 var(--sans);
}

.fr-youtube a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--accent);
}

.fr-empty {
  margin: 16px var(--gutter) 0;
  font-size: var(--t-body);
  color: var(--fg-muted);
}

.fr-rows {
  margin-top: 12px;
}

/* A row: the still (a play), what it is, then the verbs. */
.fr-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  min-height: var(--row-min);
  padding: 10px var(--gutter);
  border-top: 1px solid var(--line);
}

/* Skipped or set aside: still there to undo, quieter. */
.fr-row.is-passed .fr-still,
.fr-row.is-passed .fr-what {
  opacity: 0.45;
}

.fr-still {
  position: relative;
  width: 100%;
  min-height: var(--tap);
  aspect-ratio: 16 / 9;
  border-radius: 6px;
}

.fr-what {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fr-song {
  font-size: var(--t-field);
  line-height: 1.15;
  color: var(--fg);
  overflow-wrap: anywhere;
}

.fr-who,
.fr-source {
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--fg-muted);
  overflow-wrap: anywhere;
}

.fr-name {
  color: var(--fg);
  font-weight: 600;
}

.fr-source {
  color: var(--accent);
  font-weight: 600;
}

.fr-verbs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Four verbs on one line at 375px: the pill's own padding is wider. */
.fr-verbs .pill {
  font-size: var(--t-small);
  padding: 0 10px;
}

.fr-tally {
  margin-top: 24px;
  padding: 16px var(--gutter) 24px;
  border-top: 1px solid var(--line);
}

.fr-tally-head {
  font-size: var(--t-field);
  font-weight: 600;
}

.fr-sources,
.fr-hits {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--t-meta);
  line-height: 1.4;
}

.fr-source-row {
  display: flex;
  flex-direction: column;
}

.fr-source-name {
  font-weight: 600;
  color: var(--fg);
}

.fr-source-line,
.fr-hits {
  color: var(--fg-muted);
}

.fr-hits-head {
  margin-top: 16px;
  font-size: var(--t-meta);
  font-weight: 600;
}

.fr-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

@media (min-width: 561px) {
  .fr-row {
    grid-template-columns: 120px minmax(0, 1fr) auto;
  }

  .fr-verbs {
    grid-column: auto;
    justify-content: flex-end;
  }

  .fr-verbs .pill {
    padding: 0 12px;
  }
}

@media (min-width: 900px) {
  .fr {
    max-width: 960px;
    margin: 0 auto;
  }
}
