/* The page is the ground: the stage takes the site's own black */
.lr .ss-stage {
  overflow: hidden;
  background: #0b0b0c;
}

/* Inset top and on both sides by one gutter, off the bottom */
.lr-win {
  position: absolute;
  top: 40px;
  left: 40px;
  /* Off the right by its empty margin only: the comments end a gutter inside the stage */
  width: 780px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06), 0 0 0 1px rgb(255 255 255 / 0.06);
}

.lr .ss-stage[data-layout='compact'] .lr-win {
  top: 20px;
  left: 16px;
  width: 326px;
}

.lr-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 324px;
  min-height: 460px;
  background: var(--ss-surface);
}

.lr .ss-stage[data-layout='compact'] .lr-body {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  min-height: 360px;
}

/* Compact: a thumbnail beside the versions and the status, the note under it */
.lr-mini {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.lr-mini .lr-frame {
  width: 160px;
}

.lr-mini-side {
  display: grid;
  justify-items: start;
  gap: 10px;
}

/* The player */
.lr-player {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
}

.lr-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--ss-radius-sm);
  background: #000;
}

.lr-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.lr-frame img[data-on] {
  opacity: 1;
}

.lr-timeline {
  position: relative;
  height: 22px;
  display: flex;
  align-items: center;
}

.lr-track {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--ss-ink-2);
}

.lr-progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 19%;
  border-radius: 2px;
  background: var(--ss-ink-4);
}

/* The note's pin, its point on 0:12 of a 1:04 cut */
.lr-pin {
  position: absolute;
  left: 19%;
  bottom: 6px;
}

.lr-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lr-seg {
  width: 108px;
  font-size: 13px;
}

/* The comments */
.lr-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border-left: 1px solid var(--ss-line);
}

.lr-panel--wide {
  padding-right: 76px;
}

.lr-tc {
  font-size: 12px;
  color: var(--ss-text-faint);
  font-variant-numeric: tabular-nums;
}

.lr .ss-stage[data-layout='compact'] .lr-panel {
  border-left: 0;
  border-top: 1px solid var(--ss-line);
}

.lr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 24px;
}

.lr-head-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ss-text-strong);
}

.lr-note {
  font-size: 13px;
}

.lr-who {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lr-name {
  font-weight: 600;
  color: var(--ss-text-strong);
}

.lr-time {
  margin-left: auto;
  color: var(--ss-text-faint);
  font-variant-numeric: tabular-nums;
}

/* The note's body and its button start at the name's edge, not under the avatar */
.lr-text {
  margin-left: 32px;
}

/* The button's label, not its box, lines up with the note: back by its padding */
.lr-actions {
  margin-left: 24px;
}

.lr-text {
  margin-block: 0;
  line-height: 1.4;
  color: var(--ss-text-strong);
  transition: opacity 0.3s ease;
}

.lr-note[data-resolved] .lr-text,
.lr-note[data-resolved] .lr-name {
  opacity: 0.6;
}

.lr-actions {
  display: flex;
}

.lr-filler {
  display: grid;
  gap: 10px;
  padding: 4px 16px 4px;
}

.lr-lines {
  display: grid;
  gap: 7px;
  padding-left: 32px;
}
