.video-table {
  min-width: 1120px;
  table-layout: fixed;
}

.video-table .video-col { width: 250px; }
.video-table .scene-col { width: 210px; }
.video-table .size-col { width: 72px; }
.video-table .resolution-col { width: 86px; min-width: 0; }
.video-table .reference-col { width: 96px; }
.video-table .result-col { width: 56px; }
.video-table .date-col { width: 160px; min-width: 0; }
.video-table .actions-col { width: 126px; }
.video-table td.actions-col { display: table-cell; white-space: nowrap; }
.video-table td.actions-col .table-action + .table-action { margin-left: 5px; }
.video-table td:nth-child(3),
.video-table td:nth-child(3) .muted { overflow: hidden; text-overflow: ellipsis; }
.video-table td:nth-child(3) .muted { display: block; }

.file-cell {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.file-cell-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 4px;
  background: #1d2428;
  color: var(--teal);
}

.video-thumbnail {
  position: relative;
  display: grid;
  width: 80px;
  height: 45px;
  min-height: 45px;
  padding: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #1d2428;
  color: var(--muted);
  cursor: pointer;
}

.video-thumbnail > svg {
  position: relative;
  z-index: 2;
  width: 18px;
  height: 18px;
  color: #fff;
  filter: drop-shadow(0 1px 4px rgb(0 0 0 / 80%));
}

.video-thumbnail img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 160ms ease;
}

.video-thumbnail img.is-loaded { opacity: 1; }
.video-thumbnail:hover::after,
.video-thumbnail:focus-visible::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 28%);
}

.file-cell strong,
.file-cell span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-cell span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.video-player-dialog { width: min(980px, calc(100vw - 28px)); }
.video-player-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.video-player-head h2 {
  margin: 3px 0 4px;
  font-size: 16px;
  letter-spacing: 0;
}

.video-player-head .mono {
  display: block;
  max-width: min(760px, calc(100vw - 120px));
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-player-dialog video {
  display: block;
  width: 100%;
  max-height: min(72vh, 720px);
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: contain;
}
